diff --git a/.github/index.php b/.github/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/.github/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/.github/workflows/index.php b/.github/workflows/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/.github/workflows/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 000000000..fc77b34e3 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - master + - develop + - 'releases/**' + pull_request: + types: [opened, synchronize, reopened] +name: SonarQube PR Analysis +jobs: + sonarqube: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/.gitignore b/.gitignore index 0bdc59ba5..ecb3ecca0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ -certificate/BuckarooPrivateKey.pem -/api/log \ No newline at end of file +/api/log +composer.lock +.php-cs-fixer.cache +var +tools +dev/node_modules +.idea diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 000000000..b3d4b82a1 --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,48 @@ +in([ + __DIR__, +])->notPath([ + 'vendor', + 'dev' +]); + +return (new PhpCsFixer\Config()) + ->setRiskyAllowed(true) + ->setRules([ + '@Symfony' => true, + 'array_indentation' => true, + 'cast_spaces' => [ + 'space' => 'single', + ], + 'combine_consecutive_issets' => true, + 'concat_space' => [ + 'spacing' => 'one', + ], + 'error_suppression' => [ + 'mute_deprecation_error' => false, + 'noise_remaining_usages' => false, + 'noise_remaining_usages_exclude' => [], + ], + 'function_to_constant' => false, + 'method_chaining_indentation' => true, + 'no_alias_functions' => false, + 'no_superfluous_phpdoc_tags' => false, + 'non_printable_character' => [ + 'use_escape_sequences_in_strings' => true, + ], + 'phpdoc_summary' => false, + 'protected_to_private' => false, + 'psr_autoloading' => false, + 'self_accessor' => false, + 'yoda_style' => false, + 'single_line_throw' => false, + 'no_alias_language_construct_call' => false, + 'phpdoc_align' => [ + 'align' => 'vertical', + ], + ]) + ->setFinder($finder) + ->setCacheFile(__DIR__.'/var/.php_cs.cache'); \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..9fdd00224 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,16 @@ +# Contribution Guidelines + +### Repository setup: +- Fork the repository to your account. +- More details about [how to fork a repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) can be found [here](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo). + +### Making changes: +- Create a branch from the develop branch. +- The name of the branch should be something like: `feature/GITHUB-ISSUE-ID-slug` (eg: `feature/50-configprovider-update`) +- Your code changes should follow the PrestaShop coding standard. +- Including unit tests is encouraged. + +### Pull Request: +- Open the PR to develop branch. +- If there is no issue referenced, add a description about the problem and the way it is being solved. +- Allow edits from maintainers. \ No newline at end of file diff --git a/README.md b/README.md index 6ce4cd540..d379df3c0 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,66 @@ -# Buckaroo PrestaShop Extension +

+ +

-### Installation & Configuration +# Buckaroo PrestaShop Payments Plugin +[![Latest release](https://badgen.net/github/release/buckaroo-it/PrestaShop)](https://github.com/buckaroo-it/PrestaShop/releases) -Below you will find a link to the installation and configuration manual of the Buckaroo PrestaShop extension. This will provide you a step-by-step description of how you can install the extension on your environment. +### Index +- [About](#about) +- [Requirements](#requirements) +- [Installation](#installation) +- [Configuration](#configuration) +- [Contribute](#contribute) +- [Versioning](#versioning) +- [Additional information](#additional-information) +--- -https://support.buckaroo.nl/categorieen/plugins/prestashop +### About -### Additional information +PrestaShop started in 2005 as a student project. It was originally named phpOpenStore. +Between May 2010 and April 2012, PrestaShop grew from 17 employees to more than a hundred. As of April 2016, PrestaShop has over 120 employees and offices in 6 countries. +PrestaShop is currently used by more then 300,000 shops worldwide and it is available in 60 different languages. + +The Buckaroo PrestaShop Payments Plugin ([Dutch](https://support.buckaroo.nl/categorieen/plugins/prestashop) or [English](https://support.buckaroo.eu/categories/plugins)) is convenient and works like a charm, it's easy to install and takes all the trouble out of your hands. It is a plugin with many different payment methods, all of which are SEPA proof. Last but not least the plugin is completely free to download as well. + +### Requirements + +To use the Buckaroo plugin, please be aware of the following minimum requirements: +- A Buckaroo account ([Dutch](https://www.buckaroo.nl/start) or [English](https://www.buckaroo.eu/solutions/request-form)) +- PrestaShop 1.7.x or 8.1.2 +- PHP 7.4 or higher + +### Installation -Release notes: +1. Go to our [PrestaShop Github repository](https://github.com/buckaroo-it/PrestaShop) and go to → [Releases](https://github.com/buckaroo-it/PrestaShop/releases). +2. Click on the latest **Buckaroo plugin version** and download the → **.ZIP file**. +3. Now login to your **PrestaShop backend** and go to → **Modules** → **Module Manager** → **Upload Module** → and select the downloaded .ZIP file of the Buckaroo plugin to upload it (the installation will start automatically.) +4. The Buckaroo plugin will be visible once the installation is completed. +In your **Plugin Manager** tab it will appear at the **Payment** section. -https://support.buckaroo.nl/categorie%C3%ABn/plugins/prestashop/release-notes +### Configuration -Knowledge base & FAQ: +For the configuration of the plugin, please refer to our [Dutch](https://support.buckaroo.nl/categorieen/plugins/prestashop) or [English](https://support.buckaroo.eu/categories/plugins) support website. You'll find all the needed information there. +You can also contact our [technical support department](mailto:support@buckaroo.nl) if you still have some unanswered questions. -https://support.buckaroo.nl/categorie%C3%ABn/plugins/prestashop +### Contribute -Support: +We really appreciate it when developers contribute to improve the Buckaroo plugins. +If you want to contribute as well, then please follow our [Contribution Guidelines](CONTRIBUTING.md). + +### Versioning +

+ +

+ +- **MAJOR:** Breaking changes that require additional testing/caution. +- **MINOR:** Changes that should not have a big impact. +- **PATCHES:** Bug and hotfixes only. + +### Additional information +- **Knowledge base & FAQ:** Available in [Dutch](https://support.buckaroo.nl/categorieen/plugins/prestashop) or [English](https://support.buckaroo.eu/categories/plugins). +- **Support:** https://support.buckaroo.eu/contact +- **Contact:** [support@buckaroo.nl](mailto:support@buckaroo.nl) or [+31 (0)30 711 50 50](tel:+310307115050) -https://support.buckaroo.nl/contact +Please note:
+This file has been prepared with the greatest possible care and is subject to language and/or spelling errors. diff --git a/api/SoapClientWSSEC.php b/api/SoapClientWSSEC.php deleted file mode 100644 index 8d0c05783..000000000 --- a/api/SoapClientWSSEC.php +++ /dev/null @@ -1,166 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class SoapClientWSSEC extends SoapClient -{ - /** - * Contains the request XML - * @var DOMDocument - */ - private $document; - - /** - * Path to the privateKey file - * @var string - */ - public $privateKey = ''; - - /** - * Password for the privatekey - * @var string - */ - public $privateKeyPassword = ''; - - /** - * Thumbprint from Payment Plaza - * @var type - */ - public $thumbprint = ''; - - public function __doRequest($request, $location, $action, $version, $one_way = 0) - { - // Add code to inspect/dissect/debug/adjust the XML given in $request here - $domDOC = new DOMDocument(); - $domDOC->preserveWhiteSpace = false; - $domDOC->formatOutput = true; - $domDOC->loadXML($request); - - //Sign the document - $domDOC = $this->SignDomDocument($domDOC); - - // Uncomment the following line, if you actually want to do the request - return parent::__doRequest($domDOC->saveXML($domDOC->documentElement), $location, $action, $version, $one_way); - } - - //Get nodeset based on xpath and ID - private function getReference($ID, $xPath) - { - $query = '//*[@Id="'.$ID.'"]'; - $nodeset = $xPath->query($query); - return $nodeset->item(0); - } - - //Canonicalize nodeset - private function getCanonical($Object) - { - return $Object->C14N(true, false); - } - - //Calculate digest value (sha1 hash) - private function calculateDigestValue($input) - { - return mb_convert_encoding(pack('H*', sha1($input)), "BASE64", "UTF-8"); - } - - private function signDomDocument($domDocument) - { - //create xPath - $xPath = new DOMXPath($domDocument); - - //register namespaces to use in xpath query's - $xPath->registerNamespace('wsse', 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd');//phpcs:ignore - $xPath->registerNamespace('sig', 'http://www.w3.org/2000/09/xmldsig#'); - $xPath->registerNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/'); - - //Set id on soap body to easily extract the body later. - $bodyNodeList = $xPath->query('/soap:Envelope/soap:Body'); - $bodyNode = $bodyNodeList->item(0); - $bodyNode->setAttribute('Id', '_body'); - - //Get the digest values - $controlHash = $this->CalculateDigestValue($this->GetCanonical($this->GetReference('_control', $xPath))); - $bodyHash = $this->CalculateDigestValue($this->GetCanonical($this->GetReference('_body', $xPath))); - - //Set the digest value for the control reference - $Control = '#_control'; - $controlHashQuery = '//*[@URI="'.$Control.'"]/sig:DigestValue'; - $controlHashQueryNodeset = $xPath->query($controlHashQuery); - $controlHashNode = $controlHashQueryNodeset->item(0); - $controlHashNode->nodeValue = $controlHash; - - //Set the digest value for the body reference - $Body = '#_body'; - $bodyHashQuery = '//*[@URI="'.$Body.'"]/sig:DigestValue'; - $bodyHashQueryNodeset = $xPath->query($bodyHashQuery); - $bodyHashNode = $bodyHashQueryNodeset->item(0); - $bodyHashNode->nodeValue = $bodyHash; - - //Get the SignedInfo nodeset - $SignedInfoQuery = '//wsse:Security/sig:Signature/sig:SignedInfo'; - $SignedInfoQueryNodeSet = $xPath->query($SignedInfoQuery); - $SignedInfoNodeSet = $SignedInfoQueryNodeSet->item(0); - - //Canonicalize nodeset - $signedINFO = $this->GetCanonical($SignedInfoNodeSet); - - if (!file_exists($this->privateKey)) { - $logger = new Logger(1); - $logger->logForUser($this->privateKey.' do not exists'); - } - $fp = fopen($this->privateKey, "r"); - $priv_key = fread($fp, 8192); - fclose($fp); - - if ($priv_key === false) { - throw new Exception('Unable to read certificate.'); - } - - $pkeyid = openssl_get_privatekey($priv_key, ''); - if ($pkeyid === false) { - throw new Exception('Unable to retrieve private key from certificate.'); - } - - //Sign signedinfo with privatekey - $signature2 = null; - openssl_sign($signedINFO, $signature2, $pkeyid); - - //Add signature value to xml document - $sigValQuery = '//wsse:Security/sig:Signature/sig:SignatureValue'; - $sigValQueryNodeset = $xPath->query($sigValQuery); - $sigValNodeSet = $sigValQueryNodeset->item(0); - $sigValNodeSet->nodeValue = mb_convert_encoding($signature2, "BASE64", "UTF-8"); - - //Get signature node - $sigQuery = '//wsse:Security/sig:Signature'; - $sigQueryNodeset = $xPath->query($sigQuery); - $sigNodeSet = $sigQueryNodeset->item(0); - - //Create keyinfo element and Add public key to KeyIdentifier element - $KeyTypeNode = $domDocument->createElementNS("http://www.w3.org/2000/09/xmldsig#", "KeyInfo"); - $SecurityTokenReference = $domDocument->createElementNS('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'SecurityTokenReference');//phpcs:ignore - $KeyIdentifier = $domDocument->createElement("KeyIdentifier"); - $KeyIdentifier->nodeValue = $this->thumbprint; - $KeyIdentifier->setAttribute('ValueType', 'http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#ThumbPrintSHA1');//phpcs:ignore - $SecurityTokenReference->appendChild($KeyIdentifier); - $KeyTypeNode->appendChild($SecurityTokenReference); - $sigNodeSet->appendChild($KeyTypeNode); - - return $domDocument; - } -} diff --git a/api/abstract.php b/api/abstract.php index fb1eb0046..892d72ef7 100644 --- a/api/abstract.php +++ b/api/abstract.php @@ -1,118 +1,78 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once dirname(__FILE__) . '/../config.php'; -require_once dirname(__FILE__) . '/software.php'; - + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ abstract class BuckarooAbstract { - const BUCKAROO_SUCCESS = 'BUCKAROO_SUCCESS'; - const BUCKAROO_FAILED = 'BUCKAROO_FAILED'; - const BUCKAROO_CANCELED = 'BUCKAROO_CANCELED'; - const BUCKAROO_ERROR = 'BUCKAROO_ERROR'; - const BUCKAROO_NEUTRAL = 'BUCKAROO_NEUTRAL'; - const BUCKAROO_PENDING_PAYMENT = 'BUCKAROO_PENDING_PAYMENT'; - const BUCKAROO_INCORRECT_PAYMENT = 'BUCKAROO_INCORRECT_PAYMENT'; - const REQUEST_ERROR = 'REQUEST_ERROR'; + public const BUCKAROO_SUCCESS = 'BUCKAROO_SUCCESS'; + public const BUCKAROO_FAILED = 'BUCKAROO_FAILED'; + public const BUCKAROO_CANCELED = 'BUCKAROO_CANCELED'; + public const BUCKAROO_ERROR = 'BUCKAROO_ERROR'; + public const BUCKAROO_NEUTRAL = 'BUCKAROO_NEUTRAL'; + public const BUCKAROO_PENDING_PAYMENT = 'BUCKAROO_PENDING_PAYMENT'; + public const BUCKAROO_INCORRECT_PAYMENT = 'BUCKAROO_INCORRECT_PAYMENT'; + public const REQUEST_ERROR = 'REQUEST_ERROR'; /** * List of possible response codes sent by buckaroo. * This is the list for the BPE 3.0 gateway. */ - public $responseCodes = array( - 190 => array( + public $responseCodes = [ + 190 => [ 'message' => 'Success', 'status' => self::BUCKAROO_SUCCESS, - ), - 490 => array( + ], + 490 => [ 'message' => 'Payment failure', 'status' => self::BUCKAROO_FAILED, - ), - 491 => array( + ], + 491 => [ 'message' => 'Validation error', 'status' => self::BUCKAROO_FAILED, - ), - 492 => array( + ], + 492 => [ 'message' => 'Technical error', 'status' => self::BUCKAROO_ERROR, - ), - 690 => array( + ], + 690 => [ 'message' => 'Payment rejected', 'status' => self::BUCKAROO_FAILED, - ), - 790 => array( + ], + 790 => [ 'message' => 'Waiting for user input', 'status' => self::BUCKAROO_PENDING_PAYMENT, - ), - 791 => array( + ], + 791 => [ 'message' => 'Waiting for processor', 'status' => self::BUCKAROO_PENDING_PAYMENT, - ), - 792 => array( + ], + 792 => [ 'message' => 'Waiting on consumer action', 'status' => self::BUCKAROO_PENDING_PAYMENT, - ), - 793 => array( + ], + 793 => [ 'message' => 'Payment on hold', 'status' => self::BUCKAROO_PENDING_PAYMENT, - ), - 890 => array( + ], + 890 => [ 'message' => 'Cancelled by consumer', 'status' => self::BUCKAROO_CANCELED, - ), - 891 => array( + ], + 891 => [ 'message' => 'Cancelled by merchant', 'status' => self::BUCKAROO_FAILED, - ), - ); - - public function printResponse($requestResponse) - { - list($response, $responseXML, $requestXML) = $requestResponse; - - echo "The SOAP request has been sent.
"; - if (is_object($requestXML) && is_object($responseXML)) { - echo "Request: " . var_export($requestXML->saveXML(), true) . "

"; - echo "Response: " . var_export($response, true) . "

"; - echo "Response XML:" . var_export($responseXML->saveXML(), true) . "

"; - } - - echo "Response recieved. \n"; - } - - public function buckarooSort($array) - { - $arrayToSort = array(); - $origArray = array(); - foreach ($array as $key => $value) { - $arrayToSort[Tools::strtolower($key)] = $value; - $origArray[Tools::strtolower($key)] = $key; - } - - ksort($arrayToSort); - - $sortedArray = array(); - foreach ($arrayToSort as $key => $value) { - $key = $origArray[$key]; - $sortedArray[$key] = $value; - } - - return $sortedArray; - } + ], + ]; } diff --git a/api/apiclasses/Body.php b/api/apiclasses/Body.php deleted file mode 100644 index 61b44f8f8..000000000 --- a/api/apiclasses/Body.php +++ /dev/null @@ -1,36 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class Body -{ - public $Currency; - public $AmountDebit; - public $AmountCredit; - public $Invoice; - public $Order; - public $Description; - public $ClientIP; - public $ReturnURL; - public $ReturnURLCancel; - public $ReturnURLError; - public $ReturnURLReject; - public $OriginalTransactionKey; - public $StartRecurrent; - public $Services; -} diff --git a/api/apiclasses/CanonicalizationMethodType.php b/api/apiclasses/CanonicalizationMethodType.php deleted file mode 100644 index 9c7e8dd89..000000000 --- a/api/apiclasses/CanonicalizationMethodType.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class CanonicalizationMethodType -{ - public $Algorithm; -} diff --git a/api/apiclasses/DigestMethodType.php b/api/apiclasses/DigestMethodType.php deleted file mode 100644 index 1aa5070fd..000000000 --- a/api/apiclasses/DigestMethodType.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class DigestMethodType -{ - public $Algorithm; -} diff --git a/api/apiclasses/Header.php b/api/apiclasses/Header.php deleted file mode 100644 index db879e323..000000000 --- a/api/apiclasses/Header.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class Header -{ - public $MessageControlBlock; -} diff --git a/api/apiclasses/IPAddress.php b/api/apiclasses/IPAddress.php deleted file mode 100644 index d8e12f254..000000000 --- a/api/apiclasses/IPAddress.php +++ /dev/null @@ -1,26 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class IPAddress -{ - // @codingStandardsIgnoreStart - public $_; - // @codingStandardsIgnoreEnd - public $Type; -} diff --git a/api/apiclasses/MessageControlBlock.php b/api/apiclasses/MessageControlBlock.php deleted file mode 100644 index c625d77ae..000000000 --- a/api/apiclasses/MessageControlBlock.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class MessageControlBlock -{ - public $Id; - public $WebsiteKey; - public $Culture; - public $TimeStamp; - public $Channel; - public $Software; -} diff --git a/api/apiclasses/ReferenceType.php b/api/apiclasses/ReferenceType.php deleted file mode 100644 index 5b3a66bc1..000000000 --- a/api/apiclasses/ReferenceType.php +++ /dev/null @@ -1,27 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class ReferenceType -{ - public $Transforms; - public $DigestMethod; - public $DigestValue; - public $URI; - public $Id; -} diff --git a/api/apiclasses/RequestParameter.php b/api/apiclasses/RequestParameter.php deleted file mode 100644 index dff9ccc1e..000000000 --- a/api/apiclasses/RequestParameter.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class RequestParameter -{ - // @codingStandardsIgnoreStart - public $_; - // @codingStandardsIgnoreEnd - public $Name; - public $Group; - public $GroupID; -} diff --git a/api/apiclasses/SecurityType.php b/api/apiclasses/SecurityType.php deleted file mode 100644 index 6434feed8..000000000 --- a/api/apiclasses/SecurityType.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class SecurityType -{ - public $Signature; -} diff --git a/api/apiclasses/Service.php b/api/apiclasses/Service.php deleted file mode 100644 index 1e3d699f3..000000000 --- a/api/apiclasses/Service.php +++ /dev/null @@ -1,26 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class Service -{ - public $RequestParameter; - public $Name; - public $Action; - public $Version; -} diff --git a/api/apiclasses/Services.php b/api/apiclasses/Services.php deleted file mode 100644 index 766dccf18..000000000 --- a/api/apiclasses/Services.php +++ /dev/null @@ -1,24 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class Services -{ - public $Global; - public $Service; -} diff --git a/api/apiclasses/SignatureMethodType.php b/api/apiclasses/SignatureMethodType.php deleted file mode 100644 index 9f78047dd..000000000 --- a/api/apiclasses/SignatureMethodType.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class SignatureMethodType -{ - public $Algorithm; -} diff --git a/api/apiclasses/SignatureType.php b/api/apiclasses/SignatureType.php deleted file mode 100644 index c5a6630c2..000000000 --- a/api/apiclasses/SignatureType.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class SignatureType -{ - public $SignedInfo; - public $SignatureValue; - public $KeyInfo; -} diff --git a/api/apiclasses/SignedInfoType.php b/api/apiclasses/SignedInfoType.php deleted file mode 100644 index 8e776647a..000000000 --- a/api/apiclasses/SignedInfoType.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class SignedInfoType -{ - public $CanonicalizationMethod; - public $SignatureMethod; - public $Reference; -} diff --git a/api/apiclasses/TransformType.php b/api/apiclasses/TransformType.php deleted file mode 100644 index 9cbaad888..000000000 --- a/api/apiclasses/TransformType.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class TransformType -{ - public $Algorithm; -} diff --git a/api/apiclasses/index.php b/api/apiclasses/index.php deleted file mode 100644 index dfdcf6779..000000000 --- a/api/apiclasses/index.php +++ /dev/null @@ -1,27 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/api/config/configcore.php b/api/config/configcore.php deleted file mode 100644 index 8aaf02863..000000000 --- a/api/config/configcore.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -abstract class ConfigCore -{ - const WSDL_URL = 'https://checkout.buckaroo.nl/soap/soap.svc?wsdl'; - const WSDL_FILE = '/wsdl/Buckaroo.wsdl'; - const CHANNEL = 'Web'; - const LOCATION = 'https://checkout.buckaroo.nl/soap/'; - const LOCATION_TEST = 'https://testcheckout.buckaroo.nl/soap/'; - const LOG = false; - const LOG_DIR = '/log/'; - const CERTIFICATE_PATH = 'certificate/'; - - // @codingStandardsIgnoreStart - public static function get($key) - { - $value = ''; - switch ($key) { - case 'BUCKAROO_TEST': - $value = '1'; - break; - case 'BUCKAROO_MERCHANT_KEY': - $value = ''; - break; - case 'BUCKAROO_SECRET_KEY': - $value = ''; - break; - case 'BUCKAROO_CERTIFICATE_THUMBPRINT': - $value = ''; - break; - case 'BUCKAROO_CERTIFICATE_PATH': - $value = ""; - break; - case 'CULTURE': - $value = 'en-US'; - break; - case 'BUCKAROO_CREDITCARD_CARDS': - $value = 'amex,mastercard,visa,vpay,postepay'; - break; - case 'BUCKAROO_CREDITCARD_ALLOWED_CARDS': - $value = 'amex,mastercard,visa,vpay,postepay'; - break; - case 'BUCKAROO_GIFTCARDS_CARDS': - $value = 'ideal,ippies,babygiftcard,babyparkgiftcard,beautywellness,boekenbon,boekenvoordeel,designshopsgiftcard,fashioncheque,fashionucadeaukaart,fijncadeau,koffiecadeau,kokenzo,kookcadeau,nationaleentertainmentcard,naturesgift,podiumcadeaukaart,shoesaccessories,webshopgiftcard,wijncadeau,wonenzo,yourgift,vvvgiftcard,customgiftcard,customgiftcard2,customgiftcard3'; - break; - case 'BUCKAROO_GIFTCARD_ALLOWED_CARDS': - $value = 'ideal,ippies,babygiftcard,babyparkgiftcard,beautywellness,boekenbon,boekenvoordeel,designshopsgiftcard,fashioncheque,fashionucadeaukaart,fijncadeau,koffiecadeau,kokenzo,kookcadeau,nationaleentertainmentcard,naturesgift,podiumcadeaukaart,shoesaccessories,webshopgiftcard,wijncadeau,wonenzo,yourgift,vvvgiftcard,customgiftcard,customgiftcard2,customgiftcard3'; - break; - } - return $value; - } - // @codingStandardsIgnoreEnd - - public static function getSoftware() - { - $Software = new Software(); - $Software->PlatformName = 'API'; - $Software->PlatformVersion = '1'; - $Software->ModuleSupplier = 'Buckaroo'; - $Software->ModuleName = 'Plugin'; - $Software->ModuleVersion = '0.8'; - return $Software; - } -} diff --git a/api/config/index.php b/api/config/index.php deleted file mode 100644 index c8e9f2af3..000000000 --- a/api/config/index.php +++ /dev/null @@ -1,28 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/api/corelogger.php b/api/corelogger.php index 411894164..79f59e39a 100644 --- a/api/corelogger.php +++ b/api/corelogger.php @@ -1,7 +1,5 @@ 'Debug', - self::INFO => 'Info', - self::WARN => 'Warning', + self::INFO => 'Info', + self::WARN => 'Warning', self::ERROR => 'Error', - ); - private $level = self::DEBUG; + ]; + private $level = self::DEBUG; private $filename = 'logger'; - private $logtype = 'api'; + private $logtype = 'api'; public function __construct($level, $filename = 'logger') { - $this->level = $level; + $this->level = $level; $this->filename = $filename; } private function logEvent($info, $level, $descr = null) { - if (Config::LOG && $level >= $this->level) { + if (self::LOG && $level >= $this->level) { $file = fopen( dirname( __FILE__ - ) . '/../api' . Config::LOG_DIR . $this->logtype . '-' . $this->filename . '-log-' . date( + ) . '/../api' . self::LOG_DIR . $this->logtype . '-' . $this->filename . '-log-' . date( 'Y-m-d' ) . '.txt', 'a' ); - $prefix = self::$log_level[$level] . ' ' . date('Y-m-d h:i:s') . ' '; + $prefix = self::$log_level[$level] . ' ' . date('Y-m-d h:i:s') . ' '; $info_str = $info; if (!is_null($descr)) { if (is_object($descr) || is_array($descr)) { @@ -70,8 +68,7 @@ private function logEvent($info, $level, $descr = null) private function logUserEvent($info) { - - $file = fopen(dirname(__FILE__) . '/../api' . Config::LOG_DIR . 'report_log.txt', 'a'); + $file = fopen(dirname(__FILE__) . '/../api' . self::LOG_DIR . 'report_log.txt', 'a'); $prefix = date('Y-m-d h:i:s') . '|||'; fwrite($file, $prefix . $info . "\n"); fclose($file); diff --git a/api/index.php b/api/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/index.php +++ b/api/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/log/index.php b/api/log/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/log/index.php +++ b/api/log/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/afterpay/afterpay.php b/api/paymentmethods/afterpay/afterpay.php index 6340dd499..14529d867 100644 --- a/api/paymentmethods/afterpay/afterpay.php +++ b/api/paymentmethods/afterpay/afterpay.php @@ -1,266 +1,45 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class AfterPay extends PaymentMethod { - public $BillingGender; - public $BillingInitials; - public $BillingFirstName; - public $BillingLastName; - public $BillingBirthDate; - public $BillingStreet; - public $BillingHouseNumber; - public $BillingHouseNumberSuffix; - public $BillingPostalCode; - public $BillingCity; - public $BillingCountry; - public $BillingEmail; - public $BillingPhoneNumber; - public $BillingLanguage; - public $IdentificationNumber; - public $AddressesDiffer; - public $ShippingGender; - public $ShippingInitials; - public $ShippingFirstName; - public $ShippingLastName; - public $ShippingBirthDate; - public $ShippingStreet; - public $ShippingHouseNumber; - public $ShippingHouseNumberSuffix; - public $ShippingPostalCode; - public $ShippingCity; - public $ShippingCountryCode; - public $ShippingEmail; - public $ShippingPhoneNumber; - public $ShippingLanguage; - public $ShippingCosts; - public $ShippingCostsTax; - public $CustomerIPAddress; - public $Accept; - public $CompanyCOCRegistration; - public $CompanyName; - public $CostCentre; - public $VatNumber; - public function __construct() { - $this->type = "afterpay"; + $this->type = 'afterpay'; $this->version = '1'; - $this->mode = Config::getMode('AFTERPAY'); } // @codingStandardsIgnoreStart - public function pay($customVars = Array()) + public function pay($customVars = []) { - // @codingStandardsIgnoreEnd + // @codingStandardsIgnoreEnd return null; } - public function payAfterpay($products = array(), $customVars = array()) + public function payAfterpay($customVars = []) { - $itemsTotalAmount = 0; - - $this->data['customVars'][$this->type]["Category"][0]["value"] = 'Person'; - $this->data['customVars'][$this->type]["Category"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["Category"][1]["value"] = 'Person'; - $this->data['customVars'][$this->type]["Category"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["FirstName"][0]["value"] = $this->BillingFirstName; - $this->data['customVars'][$this->type]["FirstName"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['FirstName'][1]["value"] = - !empty($this->ShippingFirstName) ? $this->ShippingFirstName : $this->BillingFirstName; - $this->data['customVars'][$this->type]["FirstName"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["LastName"][0]["value"] = $this->BillingLastName; - $this->data['customVars'][$this->type]["LastName"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['LastName'][1]["value"] = - !empty($this->ShippingLastName) ? $this->ShippingLastName : $this->BillingLastName; - $this->data['customVars'][$this->type]["LastName"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Street"][0]["value"] = $this->BillingStreet; - $this->data['customVars'][$this->type]["Street"][0]["group"] = 'BillingCustomer'; - - $this->data['customVars'][$this->type]['Street'][1]["value"] = - !empty($this->ShippingStreet) ? $this->ShippingStreet : $this->BillingStreet; - $this->data['customVars'][$this->type]["Street"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["StreetNumber"][0]["value"] = $this->BillingHouseNumber . ' '; - $this->data['customVars'][$this->type]["StreetNumber"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['StreetNumber'][1]["value"] = - !empty($this->ShippingHouseNumber) ? $this->ShippingHouseNumber . ' ' : $this->BillingHouseNumber . ' '; - $this->data['customVars'][$this->type]["StreetNumber"][1]["group"] = 'ShippingCustomer'; - - if (!empty($this->BillingHouseNumberSuffix)) { - $this->data['customVars'][$this->type]["StreetNumberAdditional"][0]["value"] = - $this->BillingHouseNumberSuffix; - $this->data['customVars'][$this->type]["StreetNumberAdditional"][0]["group"] = 'BillingCustomer'; - } - - if (!empty($this->BillingHouseNumberSuffix) || !empty($this->ShippingHouseNumberSuffix)) { - $this->data['customVars'][$this->type]['StreetNumberAdditional'][1]["value"] = - !empty($this->ShippingHouseNumberSuffix) ? - $this->ShippingHouseNumberSuffix : $this->BillingHouseNumberSuffix; - $this->data['customVars'][$this->type]["StreetNumberAdditional"][1]["group"] = 'ShippingCustomer'; - } - - $this->data['customVars'][$this->type]["PostalCode"][0]["value"] = $this->BillingPostalCode; - $this->data['customVars'][$this->type]["PostalCode"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['PostalCode'][1]["value"] = - !empty($this->ShippingPostalCode) ? $this->ShippingPostalCode : $this->BillingPostalCode; - $this->data['customVars'][$this->type]["PostalCode"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["City"][0]["value"] = $this->BillingCity; - $this->data['customVars'][$this->type]["City"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['City'][1]["value"] = - !empty($this->ShippingCity) ? $this->ShippingCity : $this->BillingCity; - $this->data['customVars'][$this->type]["City"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Country"][0]["value"] = $this->BillingCountry; - $this->data['customVars'][$this->type]["Country"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['Country'][1]["value"] = - !empty($this->ShippingCountryCode) ? $this->ShippingCountryCode : $this->BillingCountry; - $this->data['customVars'][$this->type]["Country"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Email"][0]["value"] = $this->BillingEmail; - $this->data['customVars'][$this->type]["Email"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["Email"][1]["value"] = $this->BillingEmail; - $this->data['customVars'][$this->type]["Email"][1]["group"] = 'ShippingCustomer'; - + $this->payload = $this->getPayload($customVars); - if ((isset($this->ShippingCountryCode) && in_array($this->ShippingCountryCode, ['NL', 'BE'])) - || (!isset($this->ShippingCountryCode) - && in_array($this->BillingCountry, ['NL', 'BE'])) - ) { - // Send parameters (Salutation, BirthDate, MobilePhone and Phone) if shipping country is NL || BE. - $this->data['customVars'][$this->type]["Salutation"][0]["value"] = - ($this->BillingGender) == '1' ? 'Mr' : 'Mrs'; - $this->data['customVars'][$this->type]["Salutation"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["Salutation"][1]["value"] = - ($this->ShippingGender) == '1' ? 'Mr' : 'Mrs'; - $this->data['customVars'][$this->type]["Salutation"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["BirthDate"][0]["value"] = $this->BillingBirthDate; - $this->data['customVars'][$this->type]["BirthDate"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["BirthDate"][1]["value"] = - !empty($this->ShippingBirthDate) ? $this->ShippingBirthDate : $this->BillingBirthDate; - $this->data['customVars'][$this->type]["BirthDate"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["MobilePhone"][0]["value"] = $this->BillingPhoneNumber; - $this->data['customVars'][$this->type]["MobilePhone"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["MobilePhone"][1]["value"] = - !empty($this->ShippingPhoneNumber) ? $this->ShippingPhoneNumber : $this->BillingPhoneNumber; - $this->data['customVars'][$this->type]["MobilePhone"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Phone"][0]["value"] = $this->BillingPhoneNumber; - $this->data['customVars'][$this->type]["Phone"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["Phone"][1]["value"] = - !empty($this->ShippingPhoneNumber) ? $this->ShippingPhoneNumber : $this->BillingPhoneNumber; - $this->data['customVars'][$this->type]["Phone"][1]["group"] = 'ShippingCustomer'; - } - - if ((isset($this->ShippingCountryCode) && ($this->ShippingCountryCode == "FI")) - || (!isset($this->ShippingCountryCode) - && ($this->BillingCountry == "FI")) - ) { - // Send parameter IdentificationNumber if country equals FI. - $this->data['customVars'][$this->type]["IdentificationNumber"][0]["value"] = $this->IdentificationNumber; - $this->data['customVars'][$this->type]["IdentificationNumber"][0]["group"] = 'BillingCustomer'; - // Send parameter IdentificationNumber if country equals FI. - $this->data['customVars'][$this->type]["IdentificationNumber"][1]["value"] = $this->IdentificationNumber; - $this->data['customVars'][$this->type]["IdentificationNumber"][1]["group"] = 'ShippingCustomer'; - } - - // Merge products with same SKU - - $mergedProducts = array(); - foreach ($products as $product) { - if (! isset($mergedProducts[$product['ArticleId']])) { - $mergedProducts[$product['ArticleId']] = $product; - } else { - $mergedProducts[$product['ArticleId']]["ArticleQuantity"] += 1; - } - } - - $products = $mergedProducts; - - $i = 1; - foreach ($products as $p) { - $this->data['customVars'][$this->type]["Description"][$i - 1]["value"] = $p["ArticleDescription"]; - $this->data['customVars'][$this->type]["Description"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["value"] = $p["ArticleId"]; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["value"] = $p["ArticleQuantity"]; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["GrossUnitprice"][$i - 1]["value"] = $p["ArticleUnitprice"]; - $this->data['customVars'][$this->type]["GrossUnitprice"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["value"] = - isset($p["ArticleVatcategory"]) ? $p["ArticleVatcategory"] : 0; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["group"] = 'Article'; - $itemsTotalAmount += - $this->data['customVars'][$this->type]["GrossUnitprice"][$i - 1]["value"] * $p["ArticleQuantity"]; - $i++; - } - - $this->data['customVars'][$this->type]["Description"][$i]["value"] = 'Shipping Cost'; - $this->data['customVars'][$this->type]["Description"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Identifier"][$i]["value"] = 'shipping'; - $this->data['customVars'][$this->type]["Identifier"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Quantity"][$i]["value"] = '1'; - $this->data['customVars'][$this->type]["Quantity"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["GrossUnitprice"][$i]["value"] = - (!empty($this->ShippingCosts) ? $this->ShippingCosts : '0'); - $itemsTotalAmount += $this->data['customVars'][$this->type]["GrossUnitprice"][$i]["value"]; - $this->data['customVars'][$this->type]["GrossUnitprice"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["VatPercentage"][$i]["value"] = - (!empty($this->ShippingCostsTax) ? $this->ShippingCostsTax : '0'); - $this->data['customVars'][$this->type]["VatPercentage"][$i]["group"] = 'Article'; - - if (!empty($this->usenotification) && !empty($customVars['Customeremail'])) { - $this->data['services']['notification']['action'] = 'ExtraInfo'; - $this->data['services']['notification']['version'] = '1'; - $this->data['customVars']['notification']['NotificationType'] = $customVars['Notificationtype']; - $this->data['customVars']['notification']['CommunicationMethod'] = 'email'; - $this->data['customVars']['notification']['RecipientEmail'] = $customVars['Customeremail']; - $this->data['customVars']['notification']['RecipientFirstName'] = $customVars['CustomerFirstName']; - $this->data['customVars']['notification']['RecipientLastName'] = $customVars['CustomerLastName']; - $this->data['customVars']['notification']['RecipientGender'] = $customVars['Customergender']; - if (!empty($customVars['Notificationdelay'])) { - $this->data['customVars']['notification']['SendDatetime'] = $customVars['Notificationdelay']; - } - } - - if ($this->amountDedit != $itemsTotalAmount) { - $diff = $this->amountDedit - $itemsTotalAmount; - - $this->data['customVars'][$this->type]["Description"][$i - 1]["value"] = 'Discount/Fee'; - $this->data['customVars'][$this->type]["Description"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["value"] = '1'; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["value"] = 1; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["GrossUnitprice"][$i - 1]["value"] = $diff; - $this->data['customVars'][$this->type]["GrossUnitprice"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["value"] = 0; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["group"] = 'Article'; - } return parent::pay(); } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } } diff --git a/api/paymentmethods/afterpay/index.php b/api/paymentmethods/afterpay/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/afterpay/index.php +++ b/api/paymentmethods/afterpay/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/alipay/alipay.php b/api/paymentmethods/alipay/alipay.php new file mode 100644 index 000000000..67836fbdb --- /dev/null +++ b/api/paymentmethods/alipay/alipay.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Alipay extends PaymentMethod +{ + public function __construct() + { + $this->type = 'alipay'; + } +} diff --git a/api/paymentmethods/alipay/index.php b/api/paymentmethods/alipay/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/alipay/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/applepay/applepay.php b/api/paymentmethods/applepay/applepay.php index 8075e6d51..b92abe9b9 100644 --- a/api/paymentmethods/applepay/applepay.php +++ b/api/paymentmethods/applepay/applepay.php @@ -1,7 +1,5 @@ type = "applepay"; + $this->type = 'applepay'; $this->version = 1; - $this->mode = Config::getMode("applepay"); } - public function pay($customVars = array()) + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } + + public function pay($customVars = []) { - $this->data['customVars']['continueOnIncomplete'] = 'RedirectToHTML'; - $this->data['customVars']['servicesSelectableByClient'] = 'applepay'; - $this->data['customVars']['ServicesExcludedForClient'] = null; + $this->payload = $this->getPayload($customVars); - return parent::pay($customVars); + return parent::executeCustomPayAction('payRedirect'); } } diff --git a/api/paymentmethods/applepay/index.php b/api/paymentmethods/applepay/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/applepay/index.php +++ b/api/paymentmethods/applepay/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/bancontactmrcash/bancontactmrcash.php b/api/paymentmethods/bancontactmrcash/bancontactmrcash.php new file mode 100644 index 000000000..bd6c5f322 --- /dev/null +++ b/api/paymentmethods/bancontactmrcash/bancontactmrcash.php @@ -0,0 +1,26 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Bancontactmrcash extends PaymentMethod +{ + public function __construct() + { + $this->type = 'bancontactmrcash'; + $this->version = 1; + } +} diff --git a/api/paymentmethods/bancontactmrcash/index.php b/api/paymentmethods/bancontactmrcash/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/bancontactmrcash/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/belfius/belfius.php b/api/paymentmethods/belfius/belfius.php index 99e8586bc..7b5c5b1e7 100644 --- a/api/paymentmethods/belfius/belfius.php +++ b/api/paymentmethods/belfius/belfius.php @@ -1,7 +1,5 @@ type = "belfius"; + $this->type = 'belfius'; $this->version = 0; - $this->mode = Config::getMode("belfius"); } } diff --git a/api/paymentmethods/belfius/index.php b/api/paymentmethods/belfius/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/belfius/index.php +++ b/api/paymentmethods/belfius/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/billink/billink.php b/api/paymentmethods/billink/billink.php new file mode 100644 index 000000000..550a721fc --- /dev/null +++ b/api/paymentmethods/billink/billink.php @@ -0,0 +1,45 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +require_once dirname(__FILE__) . '/../paymentmethod.php'; +class Billink extends PaymentMethod +{ + public function __construct() + { + $this->type = 'billink'; + $this->version = '1'; + } + + // @codingStandardsIgnoreStart + public function pay($customVars = []) + { + // @codingStandardsIgnoreEnd + return null; + } + + public function payBillink($customVars = []) + { + $this->payload = $this->getPayload($customVars); + + return parent::pay(); + } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } +} diff --git a/api/paymentmethods/billink/index.php b/api/paymentmethods/billink/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/billink/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/buckaroopaypal/buckaroopaypal.php b/api/paymentmethods/buckaroopaypal/buckaroopaypal.php deleted file mode 100644 index 079ceea66..000000000 --- a/api/paymentmethods/buckaroopaypal/buckaroopaypal.php +++ /dev/null @@ -1,30 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); - -class BuckarooPayPal extends PaymentMethod -{ - public function __construct() - { - $this->type = "paypal"; - $this->version = 1; - $this->mode = Config::getMode($this->type); - } -} diff --git a/api/paymentmethods/buckaroopaypal/index.php b/api/paymentmethods/buckaroopaypal/index.php deleted file mode 100644 index c8e9f2af3..000000000 --- a/api/paymentmethods/buckaroopaypal/index.php +++ /dev/null @@ -1,28 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/api/paymentmethods/buckaroopaypal/paypalresponse.php b/api/paymentmethods/buckaroopaypal/paypalresponse.php deleted file mode 100644 index 894a61029..000000000 --- a/api/paymentmethods/buckaroopaypal/paypalresponse.php +++ /dev/null @@ -1,62 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../response.php'); - -class PayPalResponse extends Response -{ - public $payerEmail; - public $payerCountry; - public $payerStatus; - public $payerFirstname; - public $payerLastname; - public $paypalTransactionID; - - protected function parseSoapResponseChild() - { - $this->payerEmail = ''; - $this->payerCountry = ''; - $this->payerStatus = ''; - $this->payerFirstname = ''; - $this->payerLastname = ''; - $this->paypalTransactionID = ''; - } - - protected function parsePostResponseChild() - { - if (Tools::getValue('brq_service_paypal_payerEmail')) { - $this->payerEmail = Tools::getValue('brq_service_paypal_payerEmail'); - } - if (Tools::getValue('brq_service_paypal_payerCountry')) { - $this->payerCountry = Tools::getValue('brq_service_paypal_payerCountry'); - } - if (Tools::getValue('brq_service_paypal_payerStatus')) { - $this->payerStatus = Tools::getValue('brq_service_paypal_payerStatus'); - } - if (Tools::getValue('brq_service_paypal_payerFirstname')) { - $this->payerFirstname = Tools::getValue('brq_service_paypal_payerFirstname'); - } - if (Tools::getValue('brq_service_paypal_payerLastname')) { - $this->payerLastname = Tools::getValue('brq_service_paypal_payerLastname'); - } - if (Tools::getValue('brq_service_paypal_paypalTransactionID')) { - $this->paypalTransactionID = Tools::getValue('brq_service_paypal_paypalTransactionID'); - } - } -} diff --git a/api/paymentmethods/creditcard/creditcard.php b/api/paymentmethods/creditcard/creditcard.php index b11c19c0a..0eef3fbd5 100644 --- a/api/paymentmethods/creditcard/creditcard.php +++ b/api/paymentmethods/creditcard/creditcard.php @@ -1,45 +1,36 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class CreditCard extends PaymentMethod { + public $issuer; + public function __construct() { + $this->type = 'creditcard'; $this->version = 1; - $this->mode = Config::getMode('CREDITCARD'); - } - - public function refund() - { - return parent::refund(); } // @codingStandardsIgnoreStart - public function pay($customVars = array()) + public function pay($customVars = []) { - // @codingStandardsIgnoreEnd - $this->data['customVars']['servicesSelectableByClient'] = Config::get('BUCKAROO_CREDITCARD_ALLOWED_CARDS'); - $this->data['customVars']['continueOnIncomplete'] = 'RedirectToHTML'; - $this->data['services'] = array(); + $this->payload['name'] = $this->issuer; - return parent::payGlobal(); + return parent::pay(); } } diff --git a/api/paymentmethods/creditcard/creditcardresponse.php b/api/paymentmethods/creditcard/creditcardresponse.php deleted file mode 100644 index c8ff911ac..000000000 --- a/api/paymentmethods/creditcard/creditcardresponse.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -require_once dirname(__FILE__) . '/../response.php'; - -class CreditCardResponse extends Response -{ - public $cardNumberEnding = ''; - - protected function parseSoapResponseChild() - { - return null; - } - - protected function parsePostResponseChild() - { - if (Tools::getValue('brq_service_' . $this->payment_method . '_CardNumberEnding')) { - $this->cardNumberEnding = Tools::getValue('brq_service_' . $this->payment_method . '_CardNumberEnding'); - } - } -} diff --git a/api/paymentmethods/creditcard/index.php b/api/paymentmethods/creditcard/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/creditcard/index.php +++ b/api/paymentmethods/creditcard/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/directdebit/directdebit.php b/api/paymentmethods/directdebit/directdebit.php deleted file mode 100644 index 13ed9899b..000000000 --- a/api/paymentmethods/directdebit/directdebit.php +++ /dev/null @@ -1,88 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -require_once dirname(__FILE__) . '/../paymentmethod.php'; - -class DirectDebit extends PaymentMethod -{ - public $customeraccountname; - public $customeraccountnumber; - - public function __construct() - { - $this->type = "directdebit"; - $this->version = '1'; - $this->mode = Config::getMode('DD'); - } - - public function pay($customVars = array()) - { - return null; - } - - public function payDirectDebit($customVars) - { - $this->data['customVars'][$this->type]['customeraccountname'] = $this->customeraccountname; - $this->data['customVars'][$this->type]['customeraccountnumber'] = $this->customeraccountnumber; - - if ($this->usecreditmanagment) { - $this->data['services']['creditmanagement']['action'] = 'Invoice'; - $this->data['services']['creditmanagement']['version'] = '1'; - $this->data['customVars']['creditmanagement']['MaxReminderLevel'] = $customVars['MaxReminderLevel']; - $this->data['customVars']['creditmanagement']['DateDue'] = $customVars['DateDue']; - $this->data['customVars']['creditmanagement']['InvoiceDate'] = $customVars['InvoiceDate']; - if (Tools::getIsset($customVars['CustomerCode'])) { - $this->data['customVars']['creditmanagement']['CustomerCode'] = $customVars['CustomerCode']; - } - if (!empty($customVars['CompanyName'])) { - $this->data['customVars']['creditmanagement']['CompanyName'] = $customVars['CompanyName']; - } - $this->data['customVars']['creditmanagement']['CustomerFirstName'] = $customVars['CustomerFirstName']; - $this->data['customVars']['creditmanagement']['CustomerLastName'] = $customVars['CustomerLastName']; - $this->data['customVars']['creditmanagement']['CustomerInitials'] = $customVars['CustomerInitials']; - $this->data['customVars']['creditmanagement']['Customergender'] = $customVars['Customergender']; - $this->data['customVars']['creditmanagement']['Customeremail'] = $customVars['Customeremail']; - - if (!empty($customVars['PaymentMethodsAllowed'])) { - $this->data['customVars']['creditmanagement']['PaymentMethodsAllowed'] = $customVars['PaymentMethodsAllowed'];//phpcs:ignore - } - - if (Tools::getIsset($customVars['MobilePhoneNumber'])) { - $this->data['customVars']['creditmanagement']['MobilePhoneNumber'] = $customVars['MobilePhoneNumber']; - $this->data['customVars']['creditmanagement']['PhoneNumber'] = $customVars['MobilePhoneNumber']; - } - if (Tools::getIsset($customVars['PhoneNumber'])) { - $this->data['customVars']['creditmanagement']['PhoneNumber'] = $customVars['PhoneNumber']; - } - if (Tools::getIsset($customVars['CustomerBirthDate'])) { - $this->data['customVars']['creditmanagement']['CustomerBirthDate'] = $customVars['CustomerBirthDate']; - } - - $this->data['customVars']['creditmanagement']['CustomerType'] = '0'; - $this->data['customVars']['creditmanagement']['AmountVat'] = $customVars['AmountVat']; - - foreach ($customVars['ADDRESS'] as $key => $adress) { - $this->data['customVars']['creditmanagement'][$key]['value'] = $adress; - $this->data['customVars']['creditmanagement'][$key]['group'] = 'address'; - } - } - - return parent::Pay(); - } -} diff --git a/api/paymentmethods/directdebit/index.php b/api/paymentmethods/directdebit/index.php deleted file mode 100644 index c8e9f2af3..000000000 --- a/api/paymentmethods/directdebit/index.php +++ /dev/null @@ -1,28 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/api/paymentmethods/empayment/empayment.php b/api/paymentmethods/empayment/empayment.php deleted file mode 100644 index 2782ed0c2..000000000 --- a/api/paymentmethods/empayment/empayment.php +++ /dev/null @@ -1,77 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); - -class Empayment extends PaymentMethod -{ - - public function __construct() - { - $this->type = "empayment"; - $this->version = 1; - $this->mode = Config::getMode('EMPAYMENT'); - //$this->returnUrl = 'http://localhost/trunk/buckarooTest/response.php'; - } - - public function pay($customVars = array()) - { - return null; - } - - public function emPay($customVars) - { - $this->data['customVars'][$this->type]['reference'] = $this->invoiceId; - $this->data['customVars'][$this->type]['emailAddress'] = $customVars['emailAddress']; - $this->data['customVars'][$this->type]['FirstName']['value'] = $customVars['FirstName']; - $this->data['customVars'][$this->type]['FirstName']['group'] = 'person'; - $this->data['customVars'][$this->type]['LastName']['value'] = $customVars['LastName']; - $this->data['customVars'][$this->type]['LastName']['group'] = 'person'; - $this->data['customVars'][$this->type]['Initials']['value'] = $customVars['Initials']; - $this->data['customVars'][$this->type]['Initials']['group'] = 'person'; - $this->data['customVars'][$this->type]['browserAgent']['value'] = $_SERVER['HTTP_USER_AGENT']; - $this->data['customVars'][$this->type]['browserAgent']['group'] = 'clientInfo'; - - $this->data['customVars'][$this->type]['Type']['value'] = 'DOM'; - $this->data['customVars'][$this->type]['Type']['group'] = 'bankaccount'; - /* - $this->data['customVars'][$this->type]['DomesticAccountHolderName']['value'] = $customVars['AccountHolder']; - $this->data['customVars'][$this->type]['DomesticAccountHolderName']['group'] = 'bankaccount'; - */ - $this->data['customVars'][$this->type]['DomesticCountry']['value'] = '528'; - $this->data['customVars'][$this->type]['DomesticCountry']['group'] = 'bankaccount'; - /* - $this->data['customVars'][$this->type]['DomesticBankIdentifier']['value'] = $customVars['BankIdentifier']; - $this->data['customVars'][$this->type]['DomesticBankIdentifier']['group'] = 'bankaccount'; - $this->data['customVars'][$this->type]['DomesticAccountNumber']['value'] = $customVars['AccountNumber']; - $this->data['customVars'][$this->type]['DomesticAccountNumber']['group'] = 'bankaccount'; - */ - $this->data['customVars'][$this->type]['Collect']['value'] = '1'; - $this->data['customVars'][$this->type]['Collect']['group'] = 'bankaccount'; - - foreach ($customVars['ADDRESS'] as $key => $adress) { - foreach ($adress as $key2 => $value) { - $this->data['customVars'][$this->type][$key2][$key]['value'] = $value; - $this->data['customVars'][$this->type][$key2][$key]['group'] = 'address'; - } - } - - return parent::pay(); - } -} diff --git a/api/paymentmethods/empayment/index.php b/api/paymentmethods/empayment/index.php deleted file mode 100644 index c8e9f2af3..000000000 --- a/api/paymentmethods/empayment/index.php +++ /dev/null @@ -1,28 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/api/paymentmethods/eps/eps.php b/api/paymentmethods/eps/eps.php new file mode 100644 index 000000000..ab10bd2bd --- /dev/null +++ b/api/paymentmethods/eps/eps.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Eps extends PaymentMethod +{ + public function __construct() + { + $this->type = 'eps'; + } +} diff --git a/api/paymentmethods/eps/index.php b/api/paymentmethods/eps/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/eps/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/functions.php b/api/paymentmethods/functions.php index da1e1fc96..98c587a56 100644 --- a/api/paymentmethods/functions.php +++ b/api/paymentmethods/functions.php @@ -1,38 +1,27 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ function autoload($payment_method) { + require_once _PS_ROOT_DIR_ . '/modules/buckaroo3/vendor/autoload.php'; $class_name = Tools::strtolower($payment_method); $path = dirname(__FILE__) . "/{$class_name}/{$class_name}.php"; if (file_exists($path)) { - require_once($path); + require_once $path; } else { - die('Class not found!'); + exit('Class not found!'); } } - -function initials($str) -{ - $ret = ''; - foreach (explode(' ', $str) as $word) { - $ret .= Tools::strtoupper($word[0]) . '.'; - } - return $ret; -} diff --git a/api/paymentmethods/giftcard/giftcard.php b/api/paymentmethods/giftcard/giftcard.php index 54bb6254e..7dda8a287 100644 --- a/api/paymentmethods/giftcard/giftcard.php +++ b/api/paymentmethods/giftcard/giftcard.php @@ -1,42 +1,37 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class GiftCard extends PaymentMethod { - //put your code here - public $cardtype = ''; - public function __construct() { - $this->mode = Config::getMode('GIFTCARD'); + $this->type = 'giftcard'; } - // @codingStandardsIgnoreStart - public function pay($customVars = array()) + public function pay($customVars = []) { - // @codingStandardsIgnoreEnd - $this->data['customVars']['servicesSelectableByClient'] = Config::get('BUCKAROO_GIFTCARD_ALLOWED_CARDS'); - $this->data['customVars']['continueOnIncomplete'] = 'RedirectToHTML'; - $this->data['services'] = array(); + $this->payload = $this->getPayload($customVars); - return parent::payGlobal(); + return parent::executeCustomPayAction('payRedirect'); + } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); } } diff --git a/api/paymentmethods/giftcard/giftcardresponse.php b/api/paymentmethods/giftcard/giftcardresponse.php deleted file mode 100644 index aa244c2d8..000000000 --- a/api/paymentmethods/giftcard/giftcardresponse.php +++ /dev/null @@ -1,33 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -require_once dirname(__FILE__) . '/../response.php'; - -class GiftCardResponse extends Response -{ - protected function parseSoapResponseChild() - { - return null; - } - - protected function parsePostResponseChild() - { - return null; - } -} diff --git a/api/paymentmethods/giftcard/index.php b/api/paymentmethods/giftcard/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/giftcard/index.php +++ b/api/paymentmethods/giftcard/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/giropay/giropay.php b/api/paymentmethods/giropay/giropay.php index 95d684c21..8ebf3540a 100644 --- a/api/paymentmethods/giropay/giropay.php +++ b/api/paymentmethods/giropay/giropay.php @@ -1,38 +1,33 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class Giropay extends PaymentMethod { - //put your code here public $bic = ''; public function __construct() { - $this->type = "giropay"; + $this->type = 'giropay'; $this->version = 2; - $this->mode = Config::getMode($this->type); } // @codingStandardsIgnoreStart - public function pay($customVars = array()) + public function pay($customVars = []) { // @codingStandardsIgnoreEnd $this->data['customVars'][$this->type]['bic'] = $this->bic; diff --git a/api/paymentmethods/giropay/index.php b/api/paymentmethods/giropay/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/giropay/index.php +++ b/api/paymentmethods/giropay/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/ideal/ideal.php b/api/paymentmethods/ideal/ideal.php index 85187cca8..bd017ac0b 100644 --- a/api/paymentmethods/ideal/ideal.php +++ b/api/paymentmethods/ideal/ideal.php @@ -1,7 +1,5 @@ type = "ideal"; + $this->type = 'ideal'; $this->version = 2; - $this->mode = Config::getMode($this->type); } // @codingStandardsIgnoreStart - public function pay($customVars = array()) + public function pay($customVars = []) { - // @codingStandardsIgnoreEnd - $this->data['customVars'][$this->type]['issuer'] = $this->getIssuer($this->issuer); + $this->payload['issuer'] = is_string($this->issuer) ? $this->issuer : ''; return parent::pay(); } - - public function refund() - { - return parent::refund(); - } - - public static function getIssuerList() - { - $issuerArray = array( - 'ABNAMRO' => array( - 'name' => 'ABN AMRO', - 'logo' => 'ABNAMRO.png', - ), - 'ASNBANK' => array( - 'name' => 'ASN Bank', - 'logo' => 'ASNBANK.png', - ), - 'INGBANK' => array( - 'name' => 'ING', - 'logo' => 'ING.png', - ), - 'RABOBANK' => array( - 'name' => 'Rabobank', - 'logo' => 'Rabobank.png', - ), - 'SNSBANK' => array( - 'name' => 'SNS Bank', - 'logo' => 'SNS.png', - ), - 'SNSREGIO' => array( - 'name' => 'RegioBank', - 'logo' => 'Regiobank.png', - ), - 'TRIODOS' => array( - 'name' => 'Triodos Bank', - 'logo' => 'Triodos.png', - ), - 'LANSCHOT' => array( - 'name' => 'Van Lanschot', - 'logo' => 'vanLanschot.png', - ), - 'KNAB' => array( - 'name' => 'Knab', - 'logo' => 'KNAB.png', - ), - 'BUNQ' => array( - 'name' => 'Bunq', - 'logo' => 'Bunq.png', - ), - 'HANDNL2A' => array( - 'name' => 'Handelsbanken', - 'logo' => 'Handelsbank.png', - ), - 'REVOLT21' => array( - 'name' => 'Revolut', - 'logo' => 'Revolut.png', - ), - ); - - return $issuerArray; - } - - protected function getIssuer($issuer) - { - - $issuerCode = ''; - switch ($issuer) { - case 'ABNAMRO': - $issuerCode = 'ABNANL2A'; - break; - case 'ASNBANK': - $issuerCode = 'ASNBNL21'; - break; - case 'INGBANK': - $issuerCode = 'INGBNL2A'; - break; - case 'RABOBANK': - $issuerCode = 'RABONL2U'; - break; - case 'SNSBANK': - $issuerCode = 'SNSBNL2A'; - break; - case 'SNSREGIO': - $issuerCode = 'RBRBNL21'; - break; - case 'TRIODOS': - $issuerCode = 'TRIONL2U'; - break; - case 'LANSCHOT': - $issuerCode = 'FVLBNL22'; - break; - case 'KNAB': - $issuerCode = 'KNABNL2H'; - break; - case 'BUNQ': - $issuerCode = 'BUNQNL2A'; - break; - case 'MOYONL21': - $issuerCode = 'MOYONL21'; - break; - case 'HANDNL2A': - $issuerCode = 'HANDNL2A'; - break; - case 'REVOLT21': - $issuerCode = 'REVOLT21'; - break; - } - - return $issuerCode; - } } diff --git a/api/paymentmethods/ideal/idealresponse.php b/api/paymentmethods/ideal/idealresponse.php deleted file mode 100644 index 7275bf2fd..000000000 --- a/api/paymentmethods/ideal/idealresponse.php +++ /dev/null @@ -1,49 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../response.php'); - -class IDealResponse extends Response -{ - public $consumerIssuer; - public $consumerName; - public $consumerAccountNumber; - public $consumerCity; - - protected function parseSoapResponseChild() - { - return null; - } - - protected function parsePostResponseChild() - { - if (Tools::getValue('brq_service_ideal_consumerIssuer')) { - $this->consumerIssuer = Tools::getValue('brq_service_ideal_consumerIssuer'); - } - if (Tools::getValue('brq_service_ideal_consumerName')) { - $this->consumerName = Tools::getValue('brq_service_ideal_consumerName'); - } - if (Tools::getValue('brq_service_ideal_consumerAccountNumber')) { - $this->consumerAccountNumber = Tools::getValue('brq_service_ideal_consumerAccountNumber'); - } - if (Tools::getValue('brq_service_ideal_consumerCity')) { - $this->consumerCity = Tools::getValue('brq_service_ideal_consumerCity'); - } - } -} diff --git a/api/paymentmethods/ideal/index.php b/api/paymentmethods/ideal/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/ideal/index.php +++ b/api/paymentmethods/ideal/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/idin/idin.php b/api/paymentmethods/idin/idin.php index 8b1951f96..0e7eccde1 100644 --- a/api/paymentmethods/idin/idin.php +++ b/api/paymentmethods/idin/idin.php @@ -1,7 +1,5 @@ type = "idin"; + $this->type = 'idin'; $this->version = 0; - $this->mode = Config::getMode($this->type); } - public function verify($customVars = array()) + public function verify($customVars = []) { - $this->data['customVars'][$this->type]['issuerId'] = $this->getIssuer($this->issuer); + $this->payload['issuer'] = $this->getIssuer($this->issuer); + if (isset($customVars['cid'])) { - $this->data['customParameters']['cid'] = $customVars['cid']; + $this->payload['additionalParameters']['cid'] = $customVars['cid']; } return parent::verify(); } // @codingStandardsIgnoreStart - public function pay($customVars = array()) + public function pay($customVars = []) { // @codingStandardsIgnoreEnd return null; } - public function refund() - { - return parent::refund(); - } - -/* public static function getIssuerList() - { - $issuerArray = array( - 'ABNAMRO' => array( - 'name' => 'ABN AMRO', - 'logo' => 'ABNAMRO.png', - ), - 'ASNBANK' => array( - 'name' => 'ASN Bank', - 'logo' => 'ASNBANK.png', - ), - 'INGBANK' => array( - 'name' => 'ING', - 'logo' => 'ING.png', - ), - 'RABOBANK' => array( - 'name' => 'Rabobank', - 'logo' => 'Rabobank.png', - ), - 'SNSBANK' => array( - 'name' => 'SNS Bank', - 'logo' => 'SNS.png', - ), - 'SNSREGIO' => array( - 'name' => 'RegioBank', - 'logo' => 'Regiobank.png', - ), - 'TRIODOS' => array( - 'name' => 'Triodos Bank', - 'logo' => 'Triodos.png', - ), - 'LANSCHOT' => array( - 'name' => 'Van Lanschot', - 'logo' => 'vanLanschot.png', - ), - 'KNAB' => array( - 'name' => 'Knab', - 'logo' => 'KNAB.png', - ), - 'BUNQ' => array( - 'name' => 'Bunq', - 'logo' => 'Bunq.png', - ), - 'HANDNL2A' => array( - 'name' => 'Handelsbanken', - 'logo' => 'Handelsbank.png', - ), - 'REVOLT21' => array( - 'name' => 'Revolut', - 'logo' => 'Revolut.png', - ), - ); - - return $issuerArray; - }*/ - protected function getIssuer($issuer) { $issuerCode = ''; diff --git a/api/paymentmethods/idin/idinresponse.php b/api/paymentmethods/idin/idinresponse.php index ba59f5452..9b8d2d924 100644 --- a/api/paymentmethods/idin/idinresponse.php +++ b/api/paymentmethods/idin/idinresponse.php @@ -1,45 +1,46 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ -require_once(dirname(__FILE__) . '/../response.php'); +use Buckaroo\PrestaShop\Src\Service\BuckarooIdinService; + +require_once dirname(__FILE__) . '/../response.php'; +require_once dirname(__FILE__) . '/../../../library/logger.php'; class IdinResponse extends Response { - public $idinConsumerbin; - public $idinIseighteenorolder; - public $buckarooCid; + protected $buckarooIdinService; - protected function parseSoapResponseChild() + public function __construct($transactionResponse = null) { - return null; + $this->buckarooIdinService = new BuckarooIdinService(); + $this->parsePostResponseChild(); + parent::__construct($transactionResponse); } protected function parsePostResponseChild() { - if ($customerId = Tools::getValue('add_cid')) { - if ($consumerbin = pSQL(Tools::getValue('brq_service_idin_consumerbin'))) { - if ($iseighteenorolder = pSQL(Tools::getValue('brq_service_idin_iseighteenorolder'))) { - Db::getInstance()->execute( - 'UPDATE '._DB_PREFIX_.'customer SET buckaroo_idin_consumerbin="'. - $consumerbin.'", buckaroo_idin_iseighteenorolder="'.$iseighteenorolder.'" WHERE id_customer='. - (int) $customerId - ); + if ($customerId = \Tools::getValue('ADD_cid')) { + if ($consumerbin = \Tools::getValue('brq_SERVICE_idin_ConsumerBIN')) { + if ($iseighteenorolder = \Tools::getValue('brq_SERVICE_idin_IsEighteenOrOlder')) { + if ($this->buckarooIdinService->checkCustomerIdExists($customerId)) { + $this->buckarooIdinService->updateCustomerData($customerId, $consumerbin, $iseighteenorolder); + } else { + $this->buckarooIdinService->insertCustomerData($customerId, $consumerbin, $iseighteenorolder); + } } } } diff --git a/api/paymentmethods/idin/index.php b/api/paymentmethods/idin/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/idin/index.php +++ b/api/paymentmethods/idin/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/in3/in3.php b/api/paymentmethods/in3/in3.php new file mode 100644 index 000000000..4fd66f45b --- /dev/null +++ b/api/paymentmethods/in3/in3.php @@ -0,0 +1,37 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class In3 extends PaymentMethod +{ + public function __construct() + { + $this->type = 'in3'; + } + + public function pay($customVars = []) + { + $this->payload = $this->getPayload($customVars); + + return parent::executeCustomPayAction('pay'); + } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } +} diff --git a/api/paymentmethods/in3/index.php b/api/paymentmethods/in3/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/in3/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/in3old/in3old.php b/api/paymentmethods/in3old/in3old.php new file mode 100644 index 000000000..62a8d2f0b --- /dev/null +++ b/api/paymentmethods/in3old/in3old.php @@ -0,0 +1,37 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class In3Old extends PaymentMethod +{ + public function __construct() + { + $this->type = 'in3Old'; + } + + public function pay($customVars = []) + { + $this->payload = $this->getPayload($customVars); + + return parent::executeCustomPayAction('payInInstallments'); + } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } +} diff --git a/api/paymentmethods/in3old/index.php b/api/paymentmethods/in3old/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/in3old/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/index.php b/api/paymentmethods/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/index.php +++ b/api/paymentmethods/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/kbc/index.php b/api/paymentmethods/kbc/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/kbc/index.php +++ b/api/paymentmethods/kbc/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/kbc/kbc.php b/api/paymentmethods/kbc/kbc.php index a5bfafd53..872ce177d 100644 --- a/api/paymentmethods/kbc/kbc.php +++ b/api/paymentmethods/kbc/kbc.php @@ -1,37 +1,26 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class Kbc extends PaymentMethod { public function __construct() { - $this->type = "KBCPaymentButton"; + $this->type = 'kbc'; $this->version = 1; - $this->mode = Config::getMode($this->type); - } - - // @codingStandardsIgnoreStart - public function pay($customVars = array()) - { - // @codingStandardsIgnoreEnd - return parent::pay(); } } diff --git a/api/paymentmethods/klarna/index.php b/api/paymentmethods/klarna/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/klarna/index.php +++ b/api/paymentmethods/klarna/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/klarna/klarna.php b/api/paymentmethods/klarna/klarna.php index 30e5fe217..9c3aeac68 100644 --- a/api/paymentmethods/klarna/klarna.php +++ b/api/paymentmethods/klarna/klarna.php @@ -1,230 +1,46 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class Klarna extends PaymentMethod { - public $BillingGender; - public $BillingInitials; - public $BillingFirstName; - public $BillingLastName; - public $BillingBirthDate; - public $BillingStreet; - public $BillingHouseNumber; - public $BillingHouseNumberSuffix; - public $BillingPostalCode; - public $BillingCity; - public $BillingCountry; - public $BillingEmail; - public $BillingPhoneNumber; - public $BillingLanguage; - public $AddressesDiffer; - public $ShippingGender; - public $ShippingInitials; - public $ShippingFirstName; - public $ShippingLastName; - public $ShippingBirthDate; - public $ShippingStreet; - public $ShippingHouseNumber; - public $ShippingHouseNumberSuffix; - public $ShippingPostalCode; - public $ShippingCity; - public $ShippingCountryCode; - public $ShippingEmail; - public $ShippingPhoneNumber; - public $ShippingLanguage; - public $ShippingCosts; - public $ShippingCostsTax; - public $CustomerIPAddress; - public $Accept; - public $CompanyCOCRegistration; - public $CompanyName; - public $CostCentre; - public $VatNumber; - public function __construct() { - $this->type = "klarna"; + $this->type = 'klarnakp'; $this->version = '0'; - $this->mode = Config::getMode('KLARNA'); } // @codingStandardsIgnoreStart - public function pay($customVars = Array()) + public function pay($customVars = []) { - // @codingStandardsIgnoreEnd + // @codingStandardsIgnoreEnd return null; } - // @codingStandardsIgnoreStart - public function payKlarna($products = array(), $customVars = array()) + public function getPayload($data) { - // @codingStandardsIgnoreEnd - $itemsTotalAmount = 0; - $business = unserialize(Configuration::get('BUCKAROO_KLARNA_BUSINESS')); - $this->data['customVars'][$this->type]["Category"][0]["value"] = $business; - $this->data['customVars'][$this->type]["Category"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["Category"][1]["value"] = $business; - $this->data['customVars'][$this->type]["Category"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["FirstName"][0]["value"] = $this->BillingFirstName; - $this->data['customVars'][$this->type]["FirstName"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['FirstName'][1]["value"] = - !empty($this->ShippingFirstName) ? $this->ShippingFirstName : $this->BillingFirstName; - $this->data['customVars'][$this->type]["FirstName"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["LastName"][0]["value"] = $this->BillingLastName; - $this->data['customVars'][$this->type]["LastName"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['LastName'][1]["value"] = - !empty($this->ShippingLastName) ? $this->ShippingLastName : $this->BillingLastName; - $this->data['customVars'][$this->type]["LastName"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Street"][0]["value"] = $this->BillingStreet; - $this->data['customVars'][$this->type]["Street"][0]["group"] = 'BillingCustomer'; - - $this->data['customVars'][$this->type]['Street'][1]["value"] = - !empty($this->ShippingStreet) ? $this->ShippingStreet : $this->BillingStreet; - $this->data['customVars'][$this->type]["Street"][1]["group"] = 'ShippingCustomer'; - - $this->BillingHouseNumber = $this->BillingHouseNumber ? $this->BillingHouseNumber : 1; - $this->data['customVars'][$this->type]["StreetNumber"][0]["value"] = $this->BillingHouseNumber . ' '; - $this->data['customVars'][$this->type]["StreetNumber"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['StreetNumber'][1]["value"] = - !empty($this->ShippingHouseNumber) ? $this->ShippingHouseNumber . ' ' : $this->BillingHouseNumber . ' '; - $this->data['customVars'][$this->type]["StreetNumber"][1]["group"] = 'ShippingCustomer'; - - if (!empty($this->BillingHouseNumberSuffix)) { - $this->data['customVars'][$this->type]["StreetNumberAdditional"][0]["value"] = - $this->BillingHouseNumberSuffix; - $this->data['customVars'][$this->type]["StreetNumberAdditional"][0]["group"] = 'BillingCustomer'; - } - - if (!empty($this->BillingHouseNumberSuffix) || !empty($this->ShippingHouseNumberSuffix)) { - $this->data['customVars'][$this->type]['StreetNumberAdditional'][1]["value"] = - !empty($this->ShippingHouseNumberSuffix) ? - $this->ShippingHouseNumberSuffix : $this->BillingHouseNumberSuffix; - $this->data['customVars'][$this->type]["StreetNumberAdditional"][1]["group"] = 'ShippingCustomer'; - } - - $this->data['customVars'][$this->type]["PostalCode"][0]["value"] = $this->BillingPostalCode; - $this->data['customVars'][$this->type]["PostalCode"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['PostalCode'][1]["value"] = - !empty($this->ShippingPostalCode) ? $this->ShippingPostalCode : $this->BillingPostalCode; - $this->data['customVars'][$this->type]["PostalCode"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["City"][0]["value"] = $this->BillingCity; - $this->data['customVars'][$this->type]["City"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['City'][1]["value"] = - !empty($this->ShippingCity) ? $this->ShippingCity : $this->BillingCity; - $this->data['customVars'][$this->type]["City"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Country"][0]["value"] = $this->BillingCountry; - $this->data['customVars'][$this->type]["Country"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]['Country'][1]["value"] = - !empty($this->ShippingCountryCode) ? $this->ShippingCountryCode : $this->BillingCountry; - $this->data['customVars'][$this->type]["Country"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Email"][0]["value"] = $this->BillingEmail; - $this->data['customVars'][$this->type]["Email"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["Email"][1]["value"] = $this->BillingEmail; - $this->data['customVars'][$this->type]["Email"][1]["group"] = 'ShippingCustomer'; - - $this->data['customVars'][$this->type]["Gender"][0]["value"] = - ($this->BillingGender) == '1' ? 'male' : 'female'; - $this->data['customVars'][$this->type]["Gender"][0]["group"] = 'BillingCustomer'; - $this->data['customVars'][$this->type]["Gender"][1]["value"] = - ($this->ShippingGender) == '1' ? 'male' : 'female'; - $this->data['customVars'][$this->type]["Gender"][1]["group"] = 'ShippingCustomer'; - - if (!empty($this->BillingPhoneNumber)) { - $this->data['customVars'][$this->type]["Phone"][0]["value"] = $this->BillingPhoneNumber; - $this->data['customVars'][$this->type]["Phone"][0]["group"] = 'BillingCustomer'; - } - - if (!empty($this->ShippingPhoneNumber) || !empty($this->BillingPhoneNumber)) { - $this->data['customVars'][$this->type]["Phone"][1]["value"] = - !empty($this->ShippingPhoneNumber) ? $this->ShippingPhoneNumber : $this->BillingPhoneNumber; - $this->data['customVars'][$this->type]["Phone"][1]["group"] = 'ShippingCustomer'; - } - - // Merge products with same SKU - - $mergedProducts = array(); - foreach ($products as $product) { - if (! isset($mergedProducts[$product['ArticleId']])) { - $mergedProducts[$product['ArticleId']] = $product; - } else { - $mergedProducts[$product['ArticleId']]["ArticleQuantity"] += 1; - } - } - - $products = $mergedProducts; - - $i = 1; - foreach ($products as $p) { - $this->data['customVars'][$this->type]["Description"][$i - 1]["value"] = $p["ArticleDescription"]; - $this->data['customVars'][$this->type]["Description"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["value"] = $p["ArticleId"]; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["value"] = $p["ArticleQuantity"]; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["GrossUnitPrice"][$i - 1]["value"] = $p["ArticleUnitprice"]; - $this->data['customVars'][$this->type]["GrossUnitPrice"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["value"] = - isset($p["ArticleVatcategory"]) ? $p["ArticleVatcategory"] : 0; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["group"] = 'Article'; - $itemsTotalAmount += - $this->data['customVars'][$this->type]["GrossUnitPrice"][$i - 1]["value"] * $p["ArticleQuantity"]; - $i++; - } - - if (!empty($this->ShippingCosts) && $this->ShippingCosts > 0) { - $this->data['customVars'][$this->type]["Description"][$i]["value"] = 'Shipping Cost'; - $this->data['customVars'][$this->type]["Description"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Identifier"][$i]["value"] = 'shipping'; - $this->data['customVars'][$this->type]["Identifier"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Quantity"][$i]["value"] = '1'; - $this->data['customVars'][$this->type]["Quantity"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["GrossUnitPrice"][$i]["value"] = - (!empty($this->ShippingCosts) ? $this->ShippingCosts : '0'); - $itemsTotalAmount += $this->data['customVars'][$this->type]["GrossUnitPrice"][$i]["value"]; - $this->data['customVars'][$this->type]["GrossUnitPrice"][$i]["group"] = 'Article'; - $this->data['customVars'][$this->type]["VatPercentage"][$i]["value"] = - (!empty($this->ShippingCostsTax) ? $this->ShippingCostsTax : '0'); - $this->data['customVars'][$this->type]["VatPercentage"][$i]["group"] = 'Article'; - } + return array_merge_recursive($this->payload, $data); + } - if ($this->amountDedit != $itemsTotalAmount) { - $diff = $this->amountDedit - $itemsTotalAmount; + // @codingStandardsIgnoreStart + public function payKlarna($customVars = []) + { + $this->payload = $this->getPayload($customVars); - $this->data['customVars'][$this->type]["Description"][$i - 1]["value"] = 'Discount/Fee'; - $this->data['customVars'][$this->type]["Description"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["value"] = '1'; - $this->data['customVars'][$this->type]["Identifier"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["value"] = 1; - $this->data['customVars'][$this->type]["Quantity"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["GrossUnitPrice"][$i - 1]["value"] = $diff; - $this->data['customVars'][$this->type]["GrossUnitPrice"][$i - 1]["group"] = 'Article'; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["value"] = 0; - $this->data['customVars'][$this->type]["VatPercentage"][$i - 1]["group"] = 'Article'; - } - return parent::pay(); + return parent::executeCustomPayAction('reserve'); } } diff --git a/api/paymentmethods/mbway/index.php b/api/paymentmethods/mbway/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/mbway/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/mbway/mbway.php b/api/paymentmethods/mbway/mbway.php new file mode 100644 index 000000000..4d1c1501e --- /dev/null +++ b/api/paymentmethods/mbway/mbway.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class MBway extends PaymentMethod +{ + public function __construct() + { + $this->type = 'mbway'; + } +} diff --git a/api/paymentmethods/mistercash/index.php b/api/paymentmethods/mistercash/index.php deleted file mode 100644 index c8e9f2af3..000000000 --- a/api/paymentmethods/mistercash/index.php +++ /dev/null @@ -1,28 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/api/paymentmethods/mistercash/mistercash.php b/api/paymentmethods/mistercash/mistercash.php deleted file mode 100644 index 09fac0a48..000000000 --- a/api/paymentmethods/mistercash/mistercash.php +++ /dev/null @@ -1,30 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); - -class MisterCash extends PaymentMethod -{ - public function __construct() - { - $this->type = "bancontactmrcash"; - $this->version = 1; - $this->mode = Config::getMode('MISTERCASH'); - } -} diff --git a/api/paymentmethods/multibanco/index.php b/api/paymentmethods/multibanco/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/multibanco/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/multibanco/multibanco.php b/api/paymentmethods/multibanco/multibanco.php new file mode 100644 index 000000000..4302597ee --- /dev/null +++ b/api/paymentmethods/multibanco/multibanco.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Multibanco extends PaymentMethod +{ + public function __construct() + { + $this->type = 'multibanco'; + } +} diff --git a/api/paymentmethods/paybybank/index.php b/api/paymentmethods/paybybank/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/paybybank/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/paybybank/paybybank.php b/api/paymentmethods/paybybank/paybybank.php new file mode 100644 index 000000000..3e3f3ca56 --- /dev/null +++ b/api/paymentmethods/paybybank/paybybank.php @@ -0,0 +1,43 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; +class PayByBank extends PaymentMethod +{ + public $issuer; + protected const CACHE_LAST_ISSUER_LABEL = 'BUCKAROO_LAST_PAYBYBANK_ISSUER'; + protected $data; + protected $payload; + + public function __construct() + { + $this->type = 'paybybank'; + $this->version = 2; + } + + // @codingStandardsIgnoreStart + public function pay($customVars = []) + { + Context::getContext()->cookie->__set(self::CACHE_LAST_ISSUER_LABEL, $this->issuer); + + if ($this->issuer === 'INGBNL2A' && Context::getContext()->isMobile()) { + $this->type = 'ideal'; // send ideal request if issuer is ING and is on mobile + } + $this->payload['issuer'] = is_string($this->issuer) ? $this->issuer : ''; + + return parent::pay(); + } +} diff --git a/api/paymentmethods/payconiq/index.php b/api/paymentmethods/payconiq/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/payconiq/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/payconiq/payconiq.php b/api/paymentmethods/payconiq/payconiq.php new file mode 100644 index 000000000..07d8d118c --- /dev/null +++ b/api/paymentmethods/payconiq/payconiq.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Payconiq extends PaymentMethod +{ + public function __construct() + { + $this->type = 'payconiq'; + } +} diff --git a/api/paymentmethods/paymentmethod.php b/api/paymentmethods/paymentmethod.php index 4cdcf0f55..5ecd0a277 100644 --- a/api/paymentmethods/paymentmethod.php +++ b/api/paymentmethods/paymentmethod.php @@ -1,7 +1,5 @@ type = $type; - } - - /** - * @return mixed - */ - public function getType() - { - return $this->type; - } - public $currency; - public $amountDedit; + public $amountDebit; public $amountCredit = 0; public $orderId; public $invoiceId; public $description; public $OriginalTransactionKey; public $returnUrl; + public $pushUrl; + public $platformName; + public $platformVersion; + public $moduleVersion; + public $moduleSupplier; + public $moduleName; public $mode; public $version; public $usecreditmanagment = 0; - protected $data = array(); + protected $data = []; + protected $payload = []; + + public function getBuckarooClient($mode) + { + return new BuckarooClient(Configuration::get('BUCKAROO_MERCHANT_KEY'), Configuration::get('BUCKAROO_SECRET_KEY'), $mode); + } + + public function executeCustomPayAction($action) + { + return $this->payGlobal($action); + } // @codingStandardsIgnoreStart - public function pay($customVars = array()) + public function pay($customVars = []) { // @codingStandardsIgnoreEnd - $this->data['services'][$this->type]['action'] = 'Pay'; + $this->data['services'][$this->type]['action'] = 'Pay'; $this->data['services'][$this->type]['version'] = $this->version; return $this->payGlobal(); @@ -68,101 +66,102 @@ public function pay($customVars = array()) public function refund() { - $this->data['services'][$this->type]['action'] = 'Refund'; + $this->data['services'][$this->type]['action'] = 'Refund'; $this->data['services'][$this->type]['version'] = $this->version; return $this->refundGlobal(); } - public function payGlobal() + /** + * @throws Exception + */ + public function payGlobal($customPayAction = null) { - $this->data['currency'] = $this->currency; - $this->data['amountDebit'] = $this->amountDedit; - $this->data['amountCredit'] = $this->amountCredit; - $this->data['invoice'] = $this->invoiceId; - $this->data['order'] = $this->orderId; - $this->data['description'] = $this->description; - $this->data['returnUrl'] = $this->returnUrl; - $this->data['mode'] = $this->mode; - $soap = new Soap($this->data); - return ResponseFactory::getResponse($soap->transactionRequest()); + (!$customPayAction) ? $payAction = 'pay' : $payAction = $customPayAction; + + $this->payload = array_merge($this->payload, + [ + 'currency' => $this->currency, + 'amountDebit' => $this->amountDebit, + 'invoice' => $this->invoiceId, + 'order' => $this->orderId, + 'returnURL' => $this->returnUrl, + 'pushURL' => $this->pushUrl, + 'platformName' => $this->platformName, + 'platformVersion' => $this->platformVersion, + 'moduleVersion' => $this->moduleVersion, + 'moduleSupplier' => $this->moduleSupplier, + 'moduleName' => $this->moduleName, + ]); + + $buckaroo = $this->getBuckarooClient(Config::getMode($this->type)); + // Pay + $response = $buckaroo->method($this->type)->$payAction($this->payload); + + return ResponseFactory::getResponse($response); } + /** + * @throws Exception + */ public function refundGlobal() { - if ($this->type == "afterpay") { - if ($refund_amount = Tools::getValue('refund_amount')) { - $this->data['customVars'][$this->type]["RefundType"][0]["value"] = 'Return'; - $this->data['customVars'][$this->type]["RefundType"][0]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Description"][0]["value"] = 'Refund'; - $this->data['customVars'][$this->type]["Description"][0]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Identifier"][0]["value"] = '1'; - $this->data['customVars'][$this->type]["Identifier"][0]["group"] = 'Article'; - $this->data['customVars'][$this->type]["Quantity"][0]["value"] = 1; - $this->data['customVars'][$this->type]["Quantity"][0]["group"] = 'Article'; - $this->data['customVars'][$this->type]["GrossUnitprice"][0]["value"] = $refund_amount; - $this->data['customVars'][$this->type]["GrossUnitprice"][0]["group"] = 'Article'; - $this->data['customVars'][$this->type]["VatPercentage"][0]["value"] = 0; - $this->data['customVars'][$this->type]["VatPercentage"][0]["group"] = 'Article'; - } + $refund_amount = Tools::getValue('refund_amount') ? Tools::getValue('refund_amount') : $this->amountCredit; + if (in_array($this->type, ['afterpay', 'klarnakp', 'billink'])) { + $this->data['articles'] = [[ + 'refundType' => 'Return', + 'identifier' => 1, + 'description' => 'Refund', + 'quantity' => 1, + 'price' => round($refund_amount, 2), + 'vatPercentage' => 0, + ]]; } - $this->data['currency'] = $this->currency; - $this->data['amountDebit'] = $this->amountDedit; - $this->data['amountCredit'] = - Tools::getValue('refund_amount') ? Tools::getValue('refund_amount') : $this->amountCredit; - $this->data['invoice'] = $this->invoiceId; - $this->data['order'] = $this->orderId; - $this->data['description'] = $this->description; - $this->data['OriginalTransactionKey'] = $this->OriginalTransactionKey; - $this->data['returnUrl'] = $this->returnUrl; - $this->data['mode'] = $this->mode; - $soap = new Soap($this->data); - return ResponseFactory::getResponse($soap->transactionRequest()); - } - - public static function isIBAN($iban) - { - // Normalize input (remove spaces and make upcase) - $iban = Tools::strtoupper(str_replace(' ', '', $iban)); - - if (preg_match('/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/', $iban)) { - $country = Tools::substr($iban, 0, 2); - $check = (int) (Tools::substr($iban, 2, 2)); - $account = Tools::substr($iban, 4); - - // To numeric representation - $search = range('A', 'Z'); - $replace = array(); - foreach (range(10, 35) as $tmp) { - $replace[] = (string) ($tmp); - } - $numstr = str_replace($search, $replace, $account . $country . '00'); - - // Calculate checksum - $checksum = (int) (Tools::substr($numstr, 0, 1)); - for ($pos = 1; $pos < Tools::strlen($numstr); $pos++) { - $checksum *= 10; - $checksum += (int) (Tools::substr($numstr, $pos, 1)); - $checksum %= 97; - } - - return ((98 - $checksum) == $check); - } else { - return false; - } + $this->data = array_merge($this->data, + [ + 'currency' => $this->currency, + 'amountDebit' => $this->amountDebit, + 'amountCredit' => $this->amountCredit, + 'invoice' => $this->invoiceId, + 'order' => $this->orderId, + 'description' => $this->description, + 'originalTransactionKey' => $this->OriginalTransactionKey, + ]); + + $buckaroo = $this->getBuckarooClient(Config::getMode($this->type)); + // Refund + $response = $buckaroo->method($this->type)->refund($this->data); + + return ResponseFactory::getResponse($response); } // @codingStandardsIgnoreStart - public function verify($customVars = array()) + + /** + * @throws Exception + */ + public function verify($customVars = []) { // @codingStandardsIgnoreEnd - $this->data['services'][$this->type]['action'] = 'verify'; + $this->data['services'][$this->type]['action'] = 'verify'; $this->data['services'][$this->type]['version'] = $this->version; - $this->data['returnUrl'] = $this->returnUrl; - $this->data['mode'] = $this->mode; - $soap = new Soap($this->data); - return ResponseFactory::getResponse($soap->dataRequest()); + $this->payload = array_merge($this->payload, + [ + 'returnURL' => $this->returnUrl, + 'pushURL' => $this->pushUrl, + 'platformName' => $this->platformName, + 'platformVersion' => $this->platformVersion, + 'moduleVersion' => $this->moduleVersion, + 'moduleSupplier' => $this->moduleSupplier, + 'moduleName' => $this->moduleName, + ]); + + $buckaroo = $this->getBuckarooClient(Config::getMode($this->type)); + // Verify + $response = $buckaroo->method('idin')->verify($this->payload); + + return ResponseFactory::getResponse($response); } } diff --git a/api/paymentmethods/paymentrequestfactory.php b/api/paymentmethods/paymentrequestfactory.php index 569207cd8..e683e717b 100644 --- a/api/paymentmethods/paymentrequestfactory.php +++ b/api/paymentmethods/paymentrequestfactory.php @@ -1,54 +1,62 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -include_once(dirname(__FILE__) . '/functions.php'); - + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once dirname(__FILE__) . '/functions.php'; class PaymentRequestFactory { - - const REQUEST_TYPE_PAYPAL = 'buckaroopaypal'; - const REQUEST_TYPE_EMPAYMENT = 'empayment'; - const REQUEST_TYPE_IDEAL = 'ideal'; - const REQUEST_TYPE_GIROPAY = 'giropay'; - const REQUEST_TYPE_KBC = 'kbc'; - const REQUEST_TYPE_SEPADIRECTDEBIT = 'sepadirectdebit'; - const REQUEST_TYPE_MISTERCASH = 'bancontactmrcash'; - const REQUEST_TYPE_SOFORTBANKING = 'sofortueberweisung'; - const REQUEST_TYPE_GIFTCARD = 'giftcard'; - const REQUEST_TYPE_CREDITCARD = 'creditcard'; - const REQUEST_TYPE_TRANSFER = 'transfer'; - const REQUEST_TYPE_AFTERPAY = 'afterpay'; - const REQUEST_TYPE_KLARNA = 'klarna'; - const REQUEST_TYPE_APPLEPAY = 'applepay'; - const REQUEST_TYPE_BELFIUS = 'belfius'; - const REQUEST_TYPE_IDIN = 'idin'; + public const REQUEST_TYPE_PAYPAL = 'paypal'; + public const REQUEST_TYPE_IDEAL = 'ideal'; + public const REQUEST_TYPE_PAYBYBANK = 'paybybank'; + public const REQUEST_TYPE_GIROPAY = 'giropay'; + public const REQUEST_TYPE_KBC = 'kbc'; + public const REQUEST_TYPE_SEPADIRECTDEBIT = 'sepadirectdebit'; + public const REQUEST_TYPE_BANCONTACTMRCASH = 'bancontactmrcash'; + public const REQUEST_TYPE_SOFORTBANKING = 'sofortueberweisung'; + public const REQUEST_TYPE_GIFTCARD = 'giftcard'; + public const REQUEST_TYPE_CREDITCARD = 'creditcard'; + public const REQUEST_TYPE_TRANSFER = 'transfer'; + public const REQUEST_TYPE_AFTERPAY = 'afterpay'; + public const REQUEST_TYPE_KLARNA = 'klarna'; + public const REQUEST_TYPE_APPLEPAY = 'applepay'; + public const REQUEST_TYPE_BELFIUS = 'belfius'; + public const REQUEST_TYPE_IDIN = 'idin'; + public const REQUEST_TYPE_IN3 = 'in3'; + public const REQUEST_TYPE_IN3OLD = 'in3Old'; + public const REQUEST_TYPE_BILLINK = 'billink'; + public const REQUEST_TYPE_EPS = 'eps'; + public const REQUEST_TYPE_PAYCONIQ = 'payconiq'; + public const REQUEST_TYPE_PAYPEREMAIL = 'payperemail'; + public const REQUEST_TYPE_PRZELEWY24 = 'przelewy24'; + public const REQUEST_TYPE_TINKA = 'tinka'; + public const REQUEST_TYPE_TRUSTLY = 'trustly'; + public const REQUEST_TYPE_WECHATPAY = 'wechatpay'; + public const REQUEST_TYPE_ALIPAY = 'alipay'; + public const REQUEST_TYPE_MULTIBANCO = 'multibanco'; + public const REQUEST_TYPE_MBWAY = 'mbway'; // Request types (Payment Methods). - public static $valid_request_types = array( - PaymentRequestFactory::REQUEST_TYPE_PAYPAL => 'BuckarooPayPal', - PaymentRequestFactory::REQUEST_TYPE_EMPAYMENT => 'Empayment', + public static $valid_request_types = [ + PaymentRequestFactory::REQUEST_TYPE_PAYPAL => 'PayPal', PaymentRequestFactory::REQUEST_TYPE_IDEAL => 'IDeal', + PaymentRequestFactory::REQUEST_TYPE_PAYBYBANK => 'PayByBank', PaymentRequestFactory::REQUEST_TYPE_SEPADIRECTDEBIT => 'SepaDirectDebit', PaymentRequestFactory::REQUEST_TYPE_GIROPAY => 'Giropay', PaymentRequestFactory::REQUEST_TYPE_KBC => 'Kbc', - PaymentRequestFactory::REQUEST_TYPE_MISTERCASH => 'MisterCash', + PaymentRequestFactory::REQUEST_TYPE_BANCONTACTMRCASH => 'Bancontactmrcash', PaymentRequestFactory::REQUEST_TYPE_SOFORTBANKING => 'Sofortbanking', PaymentRequestFactory::REQUEST_TYPE_GIFTCARD => 'GiftCard', PaymentRequestFactory::REQUEST_TYPE_CREDITCARD => 'CreditCard', @@ -58,16 +66,30 @@ class PaymentRequestFactory PaymentRequestFactory::REQUEST_TYPE_APPLEPAY => 'ApplePay', PaymentRequestFactory::REQUEST_TYPE_BELFIUS => 'Belfius', PaymentRequestFactory::REQUEST_TYPE_IDIN => 'Idin', - ); + PaymentRequestFactory::REQUEST_TYPE_IN3 => 'In3', + PaymentRequestFactory::REQUEST_TYPE_IN3OLD => 'In3Old', + PaymentRequestFactory::REQUEST_TYPE_BILLINK => 'Billink', + PaymentRequestFactory::REQUEST_TYPE_EPS => 'Eps', + PaymentRequestFactory::REQUEST_TYPE_PAYCONIQ => 'Payconiq', + PaymentRequestFactory::REQUEST_TYPE_PAYPEREMAIL => 'PayPerEmail', + PaymentRequestFactory::REQUEST_TYPE_PRZELEWY24 => 'Przelewy24', + PaymentRequestFactory::REQUEST_TYPE_TINKA => 'Tinka', + PaymentRequestFactory::REQUEST_TYPE_TRUSTLY => 'Trustly', + PaymentRequestFactory::REQUEST_TYPE_WECHATPAY => 'Wechatpay', + PaymentRequestFactory::REQUEST_TYPE_ALIPAY => 'Alipay', + PaymentRequestFactory::REQUEST_TYPE_MULTIBANCO => 'Multibanco', + PaymentRequestFactory::REQUEST_TYPE_MBWAY => 'MBway', + ]; - final public static function create($request_type_id, $data = array()) + final public static function create($request_type_id, $data = []) { - $class_name = self::$valid_request_types[$request_type_id]; - autoload($class_name); //Try to find class in api directory + autoload($class_name); // Try to find class in api directory + if (!class_exists($class_name)) { - throw new Exception('Payment method not found', '1'); //TODO: ExceptionPayment + throw new Exception('Payment method not found', '1'); // TODO: ExceptionPayment } + return new $class_name($data); } } diff --git a/api/paymentmethods/paypal/index.php b/api/paymentmethods/paypal/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/paypal/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/paypal/paypal.php b/api/paymentmethods/paypal/paypal.php new file mode 100644 index 000000000..781620759 --- /dev/null +++ b/api/paymentmethods/paypal/paypal.php @@ -0,0 +1,55 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +use Buckaroo\PrestaShop\Src\Service\BuckarooConfigService; + +class PayPal extends PaymentMethod +{ + /** + * @var BuckarooConfigService + */ + protected $buckarooConfigService; + + public function __construct() + { + $this->type = 'paypal'; + $this->version = 1; + + $this->buckarooConfigService = \Module::getInstanceByName('buckaroo3')->getBuckarooConfigService(); + } + + // Seller protection payload + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } + + public function pay($customVars = []) + { + $sellerProtection = $this->buckarooConfigService->getConfigValue('paypal', 'seller_protection'); + if ($sellerProtection == '1') { + // Pay with Seller Protection enabled + $this->payload = $this->getPayload($customVars); + + return parent::executeCustomPayAction('extraInfo'); + } else { + // Regular paypal payment + return parent::pay(); + } + } +} diff --git a/api/paymentmethods/payperemail/index.php b/api/paymentmethods/payperemail/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/payperemail/index.php +++ b/api/paymentmethods/payperemail/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/payperemail/payperemail.php b/api/paymentmethods/payperemail/payperemail.php index 9a59b2e3b..ec600ad26 100644 --- a/api/paymentmethods/payperemail/payperemail.php +++ b/api/paymentmethods/payperemail/payperemail.php @@ -1,7 +1,5 @@ type = "payperemail"; + $this->type = 'payperemail'; $this->version = '1'; - $this->mode = Config::getMode('SDD'); } - // @codingStandardsIgnoreStart - public function pay($customVars = array()) + public function pay($customVars = []) { - // @codingStandardsIgnoreEnd - return null; + $this->payload = $this->getPayload($customVars); + + return parent::executeCustomPayAction('paymentInvitation'); } - public function paymentInvitation($customVars) + public function getPayload($data) { - $this->data['services'][$this->type]['action'] = 'PaymentInvitation'; - $this->data['services'][$this->type]['version'] = $this->version; - - $this->data['customVars'][$this->type]['customergender'] = $customVars['Customergender']; - $this->data['customVars'][$this->type]['CustomerEmail'] = $customVars['Customeremail']; - $this->data['customVars'][$this->type]['CustomerFirstName'] = $customVars['CustomerFirstName']; - $this->data['customVars'][$this->type]['CustomerLastName'] = $customVars['CustomerLastName']; - $this->data['customVars'][$this->type]['MerchantSendsEmail'] = 'false'; - if (!empty($customVars['PaymentMethodsAllowed'])) { - $this->data['customVars'][$this->type]['PaymentMethodsAllowed'] = $customVars['PaymentMethodsAllowed']; - } - - $this->data['currency'] = $this->currency; - $this->data['amountDebit'] = $this->amountDedit; - $this->data['amountCredit'] = $this->amountCredit; - $this->data['invoice'] = $this->invoiceId; - $this->data['order'] = $this->orderId; - $this->data['description'] = $this->description; - $this->data['returnUrl'] = $this->returnUrl; - $this->data['mode'] = $this->mode; - - if ($this->usecreditmanagment) { - $this->data['services']['creditmanagement']['action'] = 'Invoice'; - $this->data['services']['creditmanagement']['version'] = '1'; - $this->data['customVars']['creditmanagement']['MaxReminderLevel'] = $customVars['MaxReminderLevel']; - $this->data['customVars']['creditmanagement']['DateDue'] = $customVars['DateDue']; - $this->data['customVars']['creditmanagement']['InvoiceDate'] = $customVars['InvoiceDate']; - if (Tools::getIsset($customVars['CustomerCode'])) { - $this->data['customVars']['creditmanagement']['CustomerCode'] = $customVars['CustomerCode']; - } - if (!empty($customVars['CompanyName'])) { - $this->data['customVars']['creditmanagement']['CompanyName'] = $customVars['CompanyName']; - } - $this->data['customVars']['creditmanagement']['CustomerFirstName'] = $customVars['CustomerFirstName']; - $this->data['customVars']['creditmanagement']['CustomerLastName'] = $customVars['CustomerLastName']; - $this->data['customVars']['creditmanagement']['CustomerInitials'] = $customVars['CustomerInitials']; - $this->data['customVars']['creditmanagement']['Customergender'] = $customVars['Customergender']; - $this->data['customVars']['creditmanagement']['Customeremail'] = $customVars['Customeremail']; - - if (!empty($customVars['PaymentMethodsAllowed'])) { - $this->data['customVars']['creditmanagement']['PaymentMethodsAllowed'] = $customVars['PaymentMethodsAllowed'];//phpcs:ignore - } - - if (Tools::getIsset($customVars['MobilePhoneNumber'])) { - $this->data['customVars']['creditmanagement']['MobilePhoneNumber'] = $customVars['MobilePhoneNumber']; - $this->data['customVars']['creditmanagement']['PhoneNumber'] = $customVars['MobilePhoneNumber']; - } - if (Tools::getIsset($customVars['PhoneNumber'])) { - $this->data['customVars']['creditmanagement']['PhoneNumber'] = $customVars['PhoneNumber']; - } - if (Tools::getIsset($customVars['CustomerBirthDate'])) { - $this->data['customVars']['creditmanagement']['CustomerBirthDate'] = $customVars['CustomerBirthDate']; - } - - $this->data['customVars']['creditmanagement']['CustomerType'] = '0'; - $this->data['customVars']['creditmanagement']['AmountVat'] = $customVars['AmountVat']; - - foreach ($customVars['ADDRESS'] as $key => $adress) { - foreach ($adress as $key2 => $value) { - $this->data['customVars']['creditmanagement'][$key2][$key]['value'] = $value; - $this->data['customVars']['creditmanagement'][$key2][$key]['group'] = 'address'; - } - } - } - - $soap = new Soap($this->data); - - return ResponseFactory::getResponse($soap->transactionRequest()); + return array_merge_recursive($this->payload, $data); } } diff --git a/api/paymentmethods/przelewy24/index.php b/api/paymentmethods/przelewy24/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/przelewy24/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/przelewy24/przelewy24.php b/api/paymentmethods/przelewy24/przelewy24.php new file mode 100644 index 000000000..6ce045bb6 --- /dev/null +++ b/api/paymentmethods/przelewy24/przelewy24.php @@ -0,0 +1,37 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Przelewy24 extends PaymentMethod +{ + public function __construct() + { + $this->type = 'przelewy24'; + } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } + + public function pay($customVars = []) + { + $this->payload = $this->getPayload($customVars); + + return parent::pay(); + } +} diff --git a/api/paymentmethods/refunds/index.php b/api/paymentmethods/refunds/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/refunds/index.php +++ b/api/paymentmethods/refunds/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/refunds/refunds.php b/api/paymentmethods/refunds/refunds.php index fd896f138..04d195ddd 100644 --- a/api/paymentmethods/refunds/refunds.php +++ b/api/paymentmethods/refunds/refunds.php @@ -1,23 +1,20 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class Refunds extends PaymentMethod { @@ -28,11 +25,5 @@ public function __construct($type) { $this->type = $type; $this->version = 2; - $this->mode = Config::getMode($this->type); - } - - public function refund() - { - return parent::refund(); } } diff --git a/api/paymentmethods/response.php b/api/paymentmethods/response.php index 82013b637..ba41a511a 100644 --- a/api/paymentmethods/response.php +++ b/api/paymentmethods/response.php @@ -1,7 +1,5 @@ response = $response; + } else { + $this->isPush = $this->isPushRequest(); + $this->received = true; + $this->parsePushRequest(); + } + } + + /** + * Get code required for payment + * + * @param string $configCode + * + * @return string + */ + protected function getPaymentCode(string $configCode): string + { + if ($configCode === 'Capayable') { + return 'in3'; + } + + return $configCode; + } + + private function parsePushRequest() + { + if (!$this->isPushRequest()) { + return false; + } + + $this->payment = $this->setPostVariable('brq_payment'); + if (Tools::getValue('brq_payment_method')) { + $this->payment_method = $this->getPaymentCode(Tools::getValue('brq_payment_method')); + } elseif (Tools::getValue('brq_transaction_method')) { + $this->payment_method = $this->getPaymentCode(Tools::getValue('brq_transaction_method')); + } + + $this->statuscode = $this->setPostVariable('brq_statuscode'); + $this->statusmessage = $this->setPostVariable('brq_statusmessage'); + $this->statuscode_detail = $this->setPostVariable('brq_statuscode_detail'); + $this->brq_relatedtransaction_partialpayment = $this->setPostVariable('brq_relatedtransaction_partialpayment'); + $this->brq_transaction_type = $this->setPostVariable('brq_transaction_type'); + $this->brq_relatedtransaction_refund = $this->setPostVariable('brq_relatedtransaction_refund'); + $this->invoice = $this->setPostVariable('brq_invoicenumber'); + $this->invoicenumber = $this->setPostVariable('brq_invoicenumber'); + $this->amount = $this->setPostVariable('brq_amount'); + if (Tools::getValue('brq_amount_credit')) { + $this->amount_credit = Tools::getValue('brq_amount_credit'); + } + + $this->currency = $this->setPostVariable('brq_currency'); + $this->test = $this->setPostVariable('brq_test'); + $this->timestamp = $this->setPostVariable('brq_timestamp'); + $this->transactions = $this->setPostVariable('brq_transactions'); + $this->signature = $this->setPostVariable('brq_signature'); + + if (!empty($this->statuscode)) { + $responseArray = $this->responseCodes[(int) $this->statuscode]; + $this->status = $responseArray['status']; + $this->message = $responseArray['message']; + } + } + /*TODO - Remove unused code public function __construct($data = null) { $logger = new Logger(Logger::INFO, 'response'); $logger->logInfo("\n\n\n\n***************** Response ***********************"); - if ($this->isHttpRequest()) { - $logger->logInfo("Type: HTTP"); + if ($this->isPushRequest()) { + $logger->logInfo("Type: Push"); $logger->logInfo("POST", print_r($_POST, true)); } else { - $logger->logInfo("Type: SOAP"); + $logger->logInfo("Type: Response"); if (!is_null($data)) { if ($data[0] != false) { $logger->logInfo("Data[0]: ", print_r($data[0], true)); @@ -79,443 +145,204 @@ public function __construct($data = null) } } - $this->isPost = $this->isHttpRequest(); + $this->isPush = $this->isPushRequest(); $this->received = false; - if ($this->isPost) { - //HTTP - $this->parsePostResponse(); - $this->parsePostResponseChild(); + if ($this->isPush) { + //Push response $this->received = true; } else { if (!is_null($data) && $data[0] != false) { - //if valid SOAP response + //if valid response $this->setResponse($data[0]); - $this->setResponseXML($data[1]); - $this->parseSoapResponse(); - $this->parseSoapResponseChild(); $this->received = true; } else { $this->status = self::REQUEST_ERROR; } } } + */ - //Determine if response is HTTP or SOAP - private function isHttpRequest() + /** + * @return bool + */ + public function isSuccess(): bool { - if (Tools::getValue('brq_statuscode')) { - return true; - } - return false; + return $this->response->isSuccess(); } - public function isTest() + /** + * @return bool + */ + public function isFailed(): bool { - return $this->test; + return $this->response->isFailed(); } - public function isValid() + /** + * @return bool + */ + public function isCanceled(): bool { - if (!$this->validated) { - if ($this->isPost) { - $this->validated = $this->canProcessPush(); - } else { - $this->validated = $this->verifyResponse(); - } - } - return $this->validated; + return $this->response->isCanceled(); } - public function isReceived() + /** + * @return bool + */ + public function isAwaitingConsumer(): bool { - return $this->received; + return $this->response->isAwaitingConsumer(); } - public function hasSucceeded() + /** + * @return bool + */ + public function isPendingProcessing(): bool { - //if isValid false return false - if ($this->isValid() && $this->isReceived()) { - // if ($this->status === self::BUCKAROO_SUCCESS) - if ($this->status === self::BUCKAROO_PENDING_PAYMENT || $this->status === self::BUCKAROO_SUCCESS) { - return true; - } - } - return false; + return $this->response->isPendingProcessing(); } - public function isRedirectRequired() + /** + * @return bool + */ + public function isWaitingOnUserInput(): bool { - if (!empty($this->response->RequiredAction->Name) - && isset($this->response->RequiredAction->Type)) { - if ($this->response->RequiredAction->Name == 'Redirect' - && $this->response->RequiredAction->Type == 'Redirect') { - return true; - } - } - return false; + return $this->response->isWaitingOnUserInput(); } - public function getRedirectUrl() + /** + * @return bool + */ + public function isRejected(): bool { - if (!empty($this->response->RequiredAction->RedirectURL)) { - return $this->response->RequiredAction->RedirectURL; - } else { - return false; - } + return $this->response->isRejected(); } - private function setResponseXML($xml) + /** + * @return bool + */ + public function isValidationFailure(): bool { - $this->responseXML = $xml; + return $this->response->isValidationFailure(); } - private function getResponseXML() + // Determine if is buckaroo response or push + private function isPushRequest() { - return $this->responseXML; - } + if (Tools::getValue('brq_statuscode')) { + return true; + } - private function setResponse($response) - { - $this->response = $response; + return false; } - public function getResponse() + public function isTest() { - return $this->response; + return $this->response->get('IsTest') === true; } - private function parseSoapResponse() + public function isValid() { - $this->payment = ''; - if (!empty($this->response->ServiceCode)) { - $this->payment_method = $this->response->ServiceCode; - } - $this->transactions = $this->response->Key; - $this->statuscode = $this->response->Status->Code->Code; - if (!empty($this->response->Status->SubCode->_)) { - $this->statusmessage = $this->response->Status->SubCode->_; - } - $this->statuscode_detail = ''; - if (!empty($this->response->Invoice)) { - $this->invoice = $this->response->Invoice; - } - if (!empty($this->response->Order)) { - $this->order = $this->response->Order; - } - $this->invoicenumber = $this->invoice; - $this->amount = 0; - if (!empty($this->response->AmountDebit)) { - $this->amount = $this->response->AmountDebit; - } - $this->amount_credit = 0; - if (!empty($this->response->AmountCredit)) { - $this->amount = $this->response->AmountCredit; - $this->amount_credit = $this->response->AmountCredit; - } - if (!empty($this->response->Currency)) { - $this->currency = $this->response->Currency; - } - $this->test = ($this->response->IsTest == 1) ? true : false; - $this->timestamp = $this->response->Status->DateTime; - if (!empty($this->response->RequestErrors->ChannelError->_)) { - $this->ChannelError = $this->response->RequestErrors->ChannelError->_; - } - if (!empty($this->response->Status->Code->_) && empty($this->ChannelError)) { - $this->ChannelError = $this->response->Status->Code->_; - if (!empty($this->response->Status->SubCode->_)) { - $this->ChannelError = $this->ChannelError . ': ' . $this->response->Status->SubCode->_; - } - } + return true; + /* TODO - fix validation + if (!$this->validated) { + if ($this->isPush) { + $buckaroo = new BuckarooClient(Configuration::get('BUCKAROO_MERCHANT_KEY'), Configuration::get('BUCKAROO_SECRET_KEY')); + $reply_handler = new ReplyHandler($buckaroo->client()->config(), json_encode($this->getData())); + $reply_handler->validate(); + $this->validated = $reply_handler->isValid(); - $responseArray = $this->responseCodes[(int) $this->statuscode]; - $this->status = $responseArray['status']; - $this->message = $responseArray['message']; + } else { + $this->validated = (!$this->isValidationFailure()); + } - if (!empty($this->response->RequestErrors->ParameterError)) { - $this->ParameterError = $this->response->RequestErrors->ParameterError; } + return $this->validated; + */ } - abstract protected function parseSoapResponseChild(); - - private function setPostVariable($key) + public function hasSucceeded() { - if (Tools::getValue($key)) { - return Tools::getValue($key); + if (isset($this->response)) { + if ($this->isValid()) { + if ($this->isPendingProcessing() || $this->isAwaitingConsumer() || $this->isWaitingOnUserInput() || $this->isSuccess()) { + return true; + } + } } else { - return null; + if ($this->status === self::BUCKAROO_PENDING_PAYMENT || $this->status === self::BUCKAROO_SUCCESS) { + return true; + } } + + return false; } - private function parsePostResponse() + public function isRedirectRequired() { - $this->payment = $this->setPostVariable('brq_payment'); - if (Tools::getValue('brq_payment_method')) { - $this->payment_method = Tools::getValue('brq_payment_method'); - } elseif (Tools::getValue('brq_transaction_method')) { - $this->payment_method = Tools::getValue('brq_transaction_method'); - } - - $this->statuscode = $this->setPostVariable('brq_statuscode'); - $this->statusmessage = $this->setPostVariable('brq_statusmessage'); - $this->statuscode_detail = $this->setPostVariable('brq_statuscode_detail'); - $this->brq_relatedtransaction_partialpayment = $this->setPostVariable('brq_relatedtransaction_partialpayment'); - $this->brq_transaction_type = $this->setPostVariable('brq_transaction_type'); - $this->brq_relatedtransaction_refund = $this->setPostVariable('brq_relatedtransaction_refund'); - $this->invoice = $this->setPostVariable('brq_invoicenumber'); - $this->invoicenumber = $this->setPostVariable('brq_invoicenumber'); - $this->amount = $this->setPostVariable('brq_amount'); - if (Tools::getValue('brq_amount_credit')) { - $this->amount_credit = Tools::getValue('brq_amount_credit'); - } - - $this->currency = $this->setPostVariable('brq_currency'); - $this->test = $this->setPostVariable('brq_test'); - $this->timestamp = $this->setPostVariable('brq_timestamp'); - $this->transactions = $this->setPostVariable('brq_transactions'); - $this->signature = $this->setPostVariable('brq_signature'); - - if (!empty($this->statuscode)) { - $responseArray = $this->responseCodes[(int) $this->statuscode]; - $this->status = $responseArray['status']; - $this->message = $responseArray['message']; - } + return $this->response->hasRedirect(); } - abstract protected function parsePostResponseChild(); - - protected function verifyResponse() + public function getRedirectUrl() { - $verified = false; - if ($this->isReceived()) { - $verifiedSignature = $this->verifySignature(); - $verifiedDigest = $this->verifyDigest(); - - if ($verifiedSignature === true && $verifiedDigest === true) { - $verified = true; - } - }; - return $verified; + return $this->response->getRedirectUrl(); } - protected function verifySignature() + public function getResponse() { - $verified = false; - - //save response XML to string - $responseDomDoc = $this->responseXML; - $responseString = $responseDomDoc->saveXML(); - - //retrieve the signature value - $sigatureRegex = "#(.*)#ims"; - $signatureArray = array(); - preg_match_all($sigatureRegex, $responseString, $signatureArray); - - //decode the signature - $signature = $signatureArray[1][0]; - $sigDecoded = mb_convert_encoding($signature, "UTF-8", "BASE64"); - - $xPath = new DOMXPath($responseDomDoc); - - //register namespaces to use in xpath query's - $xPath->registerNamespace( - 'wsse', - 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' - ); - $xPath->registerNamespace('sig', 'http://www.w3.org/2000/09/xmldsig#'); - $xPath->registerNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/'); - - //Get the SignedInfo nodeset - $SignedInfoQuery = '//wsse:Security/sig:Signature/sig:SignedInfo'; - $SignedInfoQueryNodeSet = $xPath->query($SignedInfoQuery); - $SignedInfoNodeSet = $SignedInfoQueryNodeSet->item(0); - - //Canonicalize nodeset - $signedInfo = $SignedInfoNodeSet->C14N(true, false); - - $certificatesDir = dirname(__FILE__) . '/../../' . Config::CERTIFICATE_PATH; - - $keyIdentifier = '//wsse:Security/sig:Signature/sig:KeyInfo/wsse:SecurityTokenReference/wsse:KeyIdentifier'; - $keyIdentifierList = $xPath->query($keyIdentifier); - - if ($keyIdentifierList && $keyIdentifierList->item(0) && $keyIdentifierList->item(0)->nodeValue) { - $certificatePath = $certificatesDir . 'Buckaroo' . $keyIdentifierList->item(0)->nodeValue . '.pem'; - if (!file_exists($certificatePath)) { - $certificatePath = $certificatesDir . 'Checkout.pem'; - } - } - //get the public key - if (!file_exists($certificatePath)) { - $logger = new Logger(1); - $logger->logForUser($certificatePath . ' do not exists'); - } - $pubKey = openssl_get_publickey(openssl_x509_read(Tools::file_get_contents($certificatePath))); - - //verify the signature - $sigVerify = openssl_verify($signedInfo, $sigDecoded, $pubKey); - - if ($sigVerify === 1) { - $verified = true; - } - - // workaround - if (!$verified) { - $keyDetails = openssl_pkey_get_details($pubKey); - if (!empty($keyDetails["key"])) { - $sigVerify = openssl_verify($signedInfo, $sigDecoded, $keyDetails["key"]); - if ($sigVerify === 1) { - $verified = true; - } - } - } - - return $verified; + return $this->response; } - protected function verifyDigest() + // TODO - remove unused code + public function getData($key = null) { - $verified = false; - - //save response XML to string - $responseDomDoc = $this->responseXML; - $responseString = $responseDomDoc->saveXML(); - - //retrieve the signature value - $digestRegex = "#(.*?)#ims"; - $digestArray = array(); - preg_match_all($digestRegex, $responseString, $digestArray); - - $digestValues = array(); - foreach ($digestArray[1] as $digest) { - $digestValues[] = $digest; - } + $data = $this->response->data(); - $xPath = new DOMXPath($responseDomDoc); - - //register namespaces to use in xpath query's - $xPath->registerNamespace( - 'wsse', - 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' - ); - $xPath->registerNamespace('sig', 'http://www.w3.org/2000/09/xmldsig#'); - $xPath->registerNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/'); - - $controlHashReference = $xPath->query('//*[@Id="_control"]')->item(0); - $controlHashCanonical = $controlHashReference->C14N(true, false); - $controlHash = mb_convert_encoding(pack('H*', sha1($controlHashCanonical)), "BASE64", "UTF-8"); - - $bodyHashReference = $xPath->query('//*[@Id="_body"]')->item(0); - $bodyHashCanonical = $bodyHashReference->C14N(true, false); - $bodyHash = mb_convert_encoding(pack('H*', sha1($bodyHashCanonical)), "BASE64", "UTF-8"); - - if (in_array($controlHash, $digestValues) === true && in_array($bodyHash, $digestValues) === true) { - $verified = true; + if (isset($key, $data[$key])) { + return $data[$key]; + } else { + return $data; } - - return $verified; } - /** - * Checks if the post recieved is valid by checking its signature field. - * This field is unique for every payment and every store. - * Also calls method that checks if an order is able to be updated further. - * Canceled, completed, holded etc. orders are not able to be updated - */ - protected function canProcessPush() + public function getServiceParameters() { - $correctSignature = false; - // $canUpdate = false; - $signature = $this->calculateSignature(); - if ($signature === Tools::getValue('brq_signature')) { - $correctSignature = true; - } - /* - //check if the order can recieve further status updates - if ($correctSignature === true) { - $canUpdate = $this->canUpdate(); - } - - $return = array( - (bool) $correctSignature, - (bool) $canUpdate, - ); - * - */ - return $correctSignature; //$return; + return $this->response->getServiceParameters(); } - /** - * Checks if the order can be updated by checking if its state and status is not - * complete, closed, cancelled or holded and the order can be invoiced - * - * @return boolean $return - */ - protected function canUpdate() + public function hasSomeError() { - $return = false; - - // Get successful state and status - $completedStateAndStatus = array('complete', 'complete'); - $cancelledStateAndStatus = array('canceled', 'canceled'); - $holdedStateAndStatus = array('holded', 'holded'); - $closedStateAndStatus = array('closed', 'closed'); - - $currentStateAndStatus = array($this->_order->getState(), $this->_order->getStatus()); - - //prevent completed orders from recieving further updates - if ($completedStateAndStatus != $currentStateAndStatus - && $cancelledStateAndStatus != $currentStateAndStatus - && $holdedStateAndStatus != $currentStateAndStatus - && $closedStateAndStatus != $currentStateAndStatus - ) { - $return = true; - } else { - $logger = new Logger(Logger::INFO, 'response'); - $logger->logWarn("\nOrder already has succes, complete, closed, or holded state \n\n"); - } - - return $return; + return $this->response->hasSomeError(); } - /** - * Determines the signature using array sorting and the SHA1 hash algorithm - * - * @return string $signature - */ - protected function calculateSignature() + public function getSomeError() { - $origArray = $_POST; - unset($origArray['brq_signature']); - - //sort the array - $sortableArray = $this->buckarooSort($origArray); + return $this->response->getSomeError(); + } - //turn into string and add the secret key to the end - $signatureString = ''; - foreach ($sortableArray as $key => $value) { - $value = $this->decodePushValue($key, $value); - $signatureString .= $key . '=' . $value; + private function setPostVariable($key) + { + if (Tools::getValue($key)) { + return Tools::getValue($key); + } else { + return null; } - $signatureString .= Config::get('BUCKAROO_SECRET_KEY'); - //return the SHA1 encoded string for comparison - $signature = SHA1($signatureString); - - return $signature; } public function getCartIdAndReferenceId($show = false) { - $e = explode("_", urldecode($this->invoicenumber)); + $e = explode('_', urldecode($this->invoicenumber)); if (!empty($e[1])) { list($reference, $cartId) = $e; } else { - $cartId = 0; + $cartId = 0; $reference = $this->invoicenumber; } if ($show == 'cartId') { return (int) $cartId; } + return $reference; } @@ -528,39 +355,4 @@ public function getReferenceId() { return $this->getCartIdAndReferenceId('reference'); } - - /** - * @param string $brq_key - * @param string $brq_value - * - * @return string - */ - private function decodePushValue($brq_key, $brq_value) - { - switch (Tools::strtolower($brq_key)) { - case 'brq_customer_name': - case 'brq_service_ideal_consumername': - case 'brq_service_transfer_consumername': - case 'brq_service_payconiq_payconiqandroidurl': - case 'brq_service_paypal_payeremail': - case 'brq_service_paypal_payerfirstname': - case 'brq_service_paypal_payerlastname': - case 'brq_service_payconiq_payconiqiosurl': - case 'brq_service_payconiq_payconiqurl': - case 'brq_service_payconiq_qrurl': - case 'brq_service_masterpass_customerphonenumber': - case 'brq_service_masterpass_shippingrecipientphonenumber': - case 'brq_invoicedate': - case 'brq_duedate': - case 'brq_previousstepdatetime': - case 'brq_eventdatetime': - case 'brq_service_transfer_accountholdername': - $decodedValue = $brq_value; - break; - default: - $decodedValue = urldecode($brq_value); - } - - return $decodedValue; - } } diff --git a/api/paymentmethods/responsedefault.php b/api/paymentmethods/responsedefault.php index 352f63a94..e335ab894 100644 --- a/api/paymentmethods/responsedefault.php +++ b/api/paymentmethods/responsedefault.php @@ -1,7 +1,5 @@ ServiceCode)) { - $paymentMethod = $data[0]->ServiceCode; - } - } else { - if (Tools::getValue('brq_payment_method')) { - $paymentMethod = Tools::getValue('brq_payment_method'); - } elseif (Tools::getValue('brq_primary_service')) { - $paymentMethod = Tools::getValue('brq_primary_service'); - } else { - if (Tools::getValue('brq_transaction_method')) { - $paymentMethod = Tools::getValue('brq_transaction_method'); - } + if ($transactionResponse != null) { + $data = $transactionResponse->data(); + + if (isset($data['Services'][0]['Name'])) { + $paymentmethod = $data['Services'][0]['Name']; + } elseif (!empty($data['ServiceCode'])) { + $paymentmethod = $data['ServiceCode']; } + } elseif (Tools::isSubmit('brq_payment_method')) { + $paymentmethod = Tools::getValue('brq_payment_method'); + } elseif (Tools::getValue('brq_primary_service')) { + $paymentmethod = Tools::getValue('brq_primary_service'); } - return $paymentMethod; - } - - //If $data is not null - SOAP response, otherwise HTTP response - final public static function getResponse($data = null) - { - $paymentmethod = self::getPaymentMethod($data); - - switch ($paymentmethod) { - case 'paypal': - return new PayPalResponse($data); - case 'ideal': - return new IdealResponse($data); - case 'transfer': - return new TransferResponse($data); - case 'IDIN': - return new IdinResponse($data); - default: - if (stripos(Config::get('BUCKAROO_CREDITCARD_CARDS'), $paymentmethod) !== false) { - return new CreditCardResponse($data); - } else { - if (stripos(Config::get('BUCKAROO_GIFTCARD_CARDS'), $paymentmethod) !== false) { - return new GiftCardResponse($data); - } else { - return new ResponseDefault($data); - } - } - break; + if ($paymentmethod === 'IDIN') { + return new IdinResponse($transactionResponse); } + + return new ResponseDefault($transactionResponse); } } diff --git a/api/paymentmethods/sepadirectdebit/index.php b/api/paymentmethods/sepadirectdebit/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/sepadirectdebit/index.php +++ b/api/paymentmethods/sepadirectdebit/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/sepadirectdebit/sepadirectdebit.php b/api/paymentmethods/sepadirectdebit/sepadirectdebit.php index eb346752e..290270de5 100644 --- a/api/paymentmethods/sepadirectdebit/sepadirectdebit.php +++ b/api/paymentmethods/sepadirectdebit/sepadirectdebit.php @@ -1,91 +1,43 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class SepaDirectDebit extends PaymentMethod { - public $customeraccountname; - public $CustomerBIC; - public $CustomerIBAN; - public function __construct() { - $this->type = "sepadirectdebit"; + $this->type = 'sepadirectdebit'; $this->version = '1'; - $this->mode = Config::getMode('SDD'); } - public function pay($customVars = array()) + public function pay($customVars = []) { return null; } - public function payDirectDebit($customVars) + public function getPayload($data) { + return array_merge_recursive($this->payload, $data); + } - $this->data['customVars'][$this->type]['customeraccountname'] = $this->customeraccountname; - $this->data['customVars'][$this->type]['CustomerBIC'] = $this->CustomerBIC; - $this->data['customVars'][$this->type]['CustomerIBAN'] = $this->CustomerIBAN; - - if ($this->usecreditmanagment) { - $this->data['services']['creditmanagement']['action'] = 'Invoice'; - $this->data['services']['creditmanagement']['version'] = '1'; - $this->data['customVars']['creditmanagement']['MaxReminderLevel'] = $customVars['MaxReminderLevel']; - $this->data['customVars']['creditmanagement']['DateDue'] = $customVars['DateDue']; - $this->data['customVars']['creditmanagement']['InvoiceDate'] = $customVars['InvoiceDate']; - if (Tools::getIsset($customVars['CustomerCode'])) { - $this->data['customVars']['creditmanagement']['CustomerCode'] = $customVars['CustomerCode']; - } - if (!empty($customVars['CompanyName'])) { - $this->data['customVars']['creditmanagement']['CompanyName'] = $customVars['CompanyName']; - } - $this->data['customVars']['creditmanagement']['CustomerFirstName'] = $customVars['CustomerFirstName']; - $this->data['customVars']['creditmanagement']['CustomerLastName'] = $customVars['CustomerLastName']; - $this->data['customVars']['creditmanagement']['CustomerInitials'] = $customVars['CustomerInitials']; - $this->data['customVars']['creditmanagement']['Customergender'] = $customVars['Customergender']; - $this->data['customVars']['creditmanagement']['Customeremail'] = $customVars['Customeremail']; - - if (!empty($customVars['PaymentMethodsAllowed'])) { - $this->data['customVars']['creditmanagement']['PaymentMethodsAllowed'] = $customVars['PaymentMethodsAllowed'];//phpcs:ignore - } - - if (Tools::getIsset($customVars['MobilePhoneNumber'])) { - $this->data['customVars']['creditmanagement']['MobilePhoneNumber'] = $customVars['MobilePhoneNumber']; - $this->data['customVars']['creditmanagement']['PhoneNumber'] = $customVars['MobilePhoneNumber']; - } - if (Tools::getIsset($customVars['PhoneNumber'])) { - $this->data['customVars']['creditmanagement']['PhoneNumber'] = $customVars['PhoneNumber']; - } - if (Tools::getIsset($customVars['CustomerBirthDate'])) { - $this->data['customVars']['creditmanagement']['CustomerBirthDate'] = $customVars['CustomerBirthDate']; - } - - $this->data['customVars']['creditmanagement']['CustomerType'] = '0'; - $this->data['customVars']['creditmanagement']['AmountVat'] = $customVars['AmountVat']; + public function payDirectDebit($customVars) + { + $this->payload = $this->getPayload($customVars); - foreach ($customVars['ADDRESS'] as $key => $adress) { - $this->data['customVars']['creditmanagement'][$key]['value'] = $adress; - $this->data['customVars']['creditmanagement'][$key]['group'] = 'address'; - } - } - return parent::pay(); } } diff --git a/api/paymentmethods/sofortbanking/index.php b/api/paymentmethods/sofortbanking/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/sofortbanking/index.php +++ b/api/paymentmethods/sofortbanking/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/sofortbanking/sofortbanking.php b/api/paymentmethods/sofortbanking/sofortbanking.php index eb46b07f1..2835de93e 100644 --- a/api/paymentmethods/sofortbanking/sofortbanking.php +++ b/api/paymentmethods/sofortbanking/sofortbanking.php @@ -1,7 +1,5 @@ type = "sofortueberweisung"; + $this->type = 'sofortueberweisung'; $this->version = 1; - $this->mode = Config::getMode("sofortbanking"); } } diff --git a/api/paymentmethods/tinka/index.php b/api/paymentmethods/tinka/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/tinka/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/tinka/tinka.php b/api/paymentmethods/tinka/tinka.php new file mode 100644 index 000000000..4b3c3816e --- /dev/null +++ b/api/paymentmethods/tinka/tinka.php @@ -0,0 +1,37 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Tinka extends PaymentMethod +{ + public function __construct() + { + $this->type = 'tinka'; + } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } + + public function pay($customVars = []) + { + $this->payload = $this->getPayload($customVars); + + return parent::pay(); + } +} diff --git a/api/paymentmethods/transfer/index.php b/api/paymentmethods/transfer/index.php index c8e9f2af3..97ec565fb 100644 --- a/api/paymentmethods/transfer/index.php +++ b/api/paymentmethods/transfer/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/api/paymentmethods/transfer/transfer.php b/api/paymentmethods/transfer/transfer.php index bbb70f866..4b3d04758 100644 --- a/api/paymentmethods/transfer/transfer.php +++ b/api/paymentmethods/transfer/transfer.php @@ -1,64 +1,39 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../paymentmethod.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; class Transfer extends PaymentMethod { - //put your code here + // put your code here public function __construct() { - $this->type = "transfer"; + $this->type = 'transfer'; $this->version = 1; - $this->mode = Config::getMode($this->type); } - public function pay($customVars = array()) + public function pay($customVars = []) { - return null; + $this->payload = $this->getPayload($customVars); + + return parent::pay(); } - public function payTransfer($customVars) + public function getPayload($data) { - $this->data['services'][$this->type]['action'] = 'Pay'; - $this->data['services'][$this->type]['version'] = $this->version; - - if (!empty($customVars['CustomerGender'])) { - $this->data['customVars'][$this->type]['customergender'] = $customVars['CustomerGender']; - } - if (!empty($customVars['CustomerFirstName'])) { - $this->data['customVars'][$this->type]['customerFirstName'] = $customVars['CustomerFirstName']; - } - if (!empty($customVars['CustomerLastName'])) { - $this->data['customVars'][$this->type]['customerLastName'] = $customVars['CustomerLastName']; - } - if (!empty($customVars['CustomerEmail'])) { - $this->data['customVars'][$this->type]['customeremail'] = $customVars['CustomerEmail']; - } - if (!empty($customVars['DateDue'])) { - $this->data['customVars'][$this->type]['DateDue'] = $customVars['DateDue']; - } - if (!empty($customVars['CustomerCountry'])) { - $this->data['customVars'][$this->type]['customercountry'] = $customVars['CustomerCountry']; - } - $this->data['customVars'][$this->type]['SendMail'] = $customVars['SendMail']; - - return parent::pay($customVars); + return array_merge_recursive($this->payload, $data); } } diff --git a/api/paymentmethods/transfer/transferresponse.php b/api/paymentmethods/transfer/transferresponse.php deleted file mode 100644 index 9ad4ac3da..000000000 --- a/api/paymentmethods/transfer/transferresponse.php +++ /dev/null @@ -1,76 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -require_once(dirname(__FILE__) . '/../response.php'); - -class TransferResponse extends Response -{ - public $BIC = ''; - public $IBAN = ''; - public $accountHolderName = ''; - public $accountHolderCountry = ''; - public $paymentReference = ''; - public $consumerMessage = array( - 'MustRead' => '', - 'CultureName' => '', - 'Title' => '', - 'PlainText' => '', - 'HtmlText' => '' - ); - - protected function parseSoapResponseChild() - { - if (!empty( - $this->_response->Services->Service->ResponseParameter - ) && !empty($this->_response->Services->Service->Name) - ) { - if ($this->_response->Services->Service->Name == 'transfer' - && $this->_response->Services->Service->ResponseParameter[5]->Name == 'PaymentReference') { - $this->BIC = $this->_response->Services->Service->ResponseParameter[0]->_; - $this->IBAN = $this->_response->Services->Service->ResponseParameter[1]->_; - $this->accountHolderName = $this->_response->Services->Service->ResponseParameter[2]->_; - $this->accountHolderCity = $this->_response->Services->Service->ResponseParameter[3]->_; - $this->accountHolderCountry = $this->_response->Services->Service->ResponseParameter[4]->_; - $this->paymentReference = $this->_response->Services->Service->ResponseParameter[5]->_; - } - } - if (!empty($this->_response->ConsumerMessage)) { - if (!empty($this->_response->ConsumerMessage->MustRead)) { - $this->consumerMessage['MustRead'] = $this->_response->ConsumerMessage->MustRead; - } - if (!empty($this->_response->ConsumerMessage->CultureName)) { - $this->consumerMessage['CultureName'] = $this->_response->ConsumerMessage->CultureName; - } - if (!empty($this->_response->ConsumerMessage->Title)) { - $this->consumerMessage['Title'] = $this->_response->ConsumerMessage->Title; - } - if (!empty($this->_response->ConsumerMessage->PlainText)) { - $this->consumerMessage['PlainText'] = $this->_response->ConsumerMessage->PlainText; - } - if (!empty($this->_response->ConsumerMessage->HtmlText)) { - $this->consumerMessage['HtmlText'] = $this->_response->ConsumerMessage->HtmlText; - } - } - } - - protected function parsePostResponseChild() - { - return null; - } -} diff --git a/api/paymentmethods/trustly/index.php b/api/paymentmethods/trustly/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/trustly/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/trustly/trustly.php b/api/paymentmethods/trustly/trustly.php new file mode 100644 index 000000000..19875c4cf --- /dev/null +++ b/api/paymentmethods/trustly/trustly.php @@ -0,0 +1,38 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Trustly extends PaymentMethod +{ + public function __construct() + { + $this->type = 'trustly'; + } + + // @codingStandardsIgnoreStart + public function pay($customVars = []) + { + $this->payload = $this->getPayload($customVars); + + return parent::pay(); + } + + public function getPayload($data) + { + return array_merge_recursive($this->payload, $data); + } +} diff --git a/api/paymentmethods/wechatpay/index.php b/api/paymentmethods/wechatpay/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/api/paymentmethods/wechatpay/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/api/paymentmethods/wechatpay/wechatpay.php b/api/paymentmethods/wechatpay/wechatpay.php new file mode 100644 index 000000000..f4e8129db --- /dev/null +++ b/api/paymentmethods/wechatpay/wechatpay.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once dirname(__FILE__) . '/../paymentmethod.php'; + +class Wechatpay extends PaymentMethod +{ + public function __construct() + { + $this->type = 'wechatpay'; + } +} diff --git a/api/soap.php b/api/soap.php deleted file mode 100644 index 46b064707..000000000 --- a/api/soap.php +++ /dev/null @@ -1,526 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -if (!class_exists('SoapClient')) { - $logger = new Logger(1); - $logger->logForUser( - 'SoapClient is not installed. Please ask your hosting provider to install SoapClient http://'//phpcs:ignore - ); -} - -require_once dirname(__FILE__) . '/SoapClientWSSEC.php'; -require_once dirname(__FILE__) . '/apiclasses/Body.php'; -require_once dirname(__FILE__) . '/apiclasses/CanonicalizationMethodType.php'; -require_once dirname(__FILE__) . '/apiclasses/DigestMethodType.php'; -require_once dirname(__FILE__) . '/apiclasses/Header.php'; -require_once dirname(__FILE__) . '/apiclasses/IPAddress.php'; -require_once dirname(__FILE__) . '/apiclasses/MessageControlBlock.php'; -require_once dirname(__FILE__) . '/apiclasses/ReferenceType.php'; -require_once dirname(__FILE__) . '/apiclasses/RequestParameter.php'; -require_once dirname(__FILE__) . '/apiclasses/SecurityType.php'; -require_once dirname(__FILE__) . '/apiclasses/Service.php'; -require_once dirname(__FILE__) . '/apiclasses/Services.php'; -require_once dirname(__FILE__) . '/apiclasses/SignatureMethodType.php'; -require_once dirname(__FILE__) . '/apiclasses/SignatureType.php'; -require_once dirname(__FILE__) . '/apiclasses/SignedInfoType.php'; -require_once dirname(__FILE__) . '/apiclasses/TransformType.php'; - -final class Soap extends BuckarooAbstract -{ - // @codingStandardsIgnoreStart - private $_vars; - // @codingStandardsIgnoreEnd - - public function setVars($vars = array()) - { - $this->_vars = $vars; - } - - public function __construct($data) - { - $this->setVars($data); - } - - public function transactionRequest() - { - try { - //first attempt: use the cached WSDL - $client = new SoapClientWSSEC( - Config::WSDL_URL, - array( - 'trace' => 1, - 'cache_wsdl' => WSDL_CACHE_DISK, - ) - ); - } catch (Exception $e) { - //(SoapFault $e) { - try { - //second attempt: use an uncached WSDL - ini_set('soap.wsdl_cache_ttl', 1); - $client = new SoapClientWSSEC( - Config::WSDL_URL, - array( - 'trace' => 1, - 'cache_wsdl' => WSDL_CACHE_NONE, - ) - ); - } catch (Exception $e) { - //(SoapFault $e) { - try { - //third and final attempt: use the supplied wsdl found in the lib folder - $client = new SoapClientWSSEC( - dirname(__FILE__) . Config::WSDL_FILE, - array( - 'trace' => 1, - 'cache_wsdl' => WSDL_CACHE_NONE, - ) - ); - } catch (Exception $e) { - //(SoapFault $e) { - return $this->error($e); - } - } - } - - $client->thumbprint = Config::get('BUCKAROO_CERTIFICATE_THUMBPRINT'); - $client->privateKey = Config::get('BUCKAROO_CERTIFICATE_PATH'); - - $search = array(",", " "); - $replace = array(".", ""); - $TransactionRequest = new Body(); - $TransactionRequest->Currency = $this->_vars['currency']; - - $debit = round($this->_vars['amountDebit'], 2); - $credit = round($this->_vars['amountCredit'], 2); - $TransactionRequest->AmountDebit = str_replace($search, $replace, $debit); - $TransactionRequest->AmountCredit = str_replace($search, $replace, $credit); - $TransactionRequest->Invoice = $this->_vars['invoice']; - $TransactionRequest->Order = $this->_vars['order']; - $TransactionRequest->Description = $this->_vars['description']; - $TransactionRequest->ReturnURL = $this->_vars['returnUrl']; - if (!empty($this->_vars['OriginalTransactionKey'])) { - $TransactionRequest->OriginalTransactionKey = $this->_vars['OriginalTransactionKey']; - } - $TransactionRequest->StartRecurrent = false; - - if (!empty($this->_vars['customVars']['servicesSelectableByClient']) && !empty( - $this->_vars['customVars']['continueOnIncomplete'] - ) - ) { - $TransactionRequest->ServicesSelectableByClient = $this->_vars['customVars']['servicesSelectableByClient']; - $TransactionRequest->ContinueOnIncomplete = $this->_vars['customVars']['continueOnIncomplete']; - $TransactionRequest->ServicesExcludedForClient = null; - } - /* - if (array_key_exists('OriginalTransactionKey', $this->_vars)) { - $TransactionRequest->OriginalTransactionKey = $this->_vars['OriginalTransactionKey']; - } - */ - if (!empty($this->_vars['customParameters'])) { - $TransactionRequest = $this->addCustomParameters($TransactionRequest); - } - - $TransactionRequest->Services = new Services(); - $this->addServices($TransactionRequest); - - /* - $TransactionRequest->Services = new Services(); - - $TransactionRequest->Services->Service = new Service(); - $TransactionRequest->Services->Service->Name= $this->_vars['service']['type']; - $TransactionRequest->Services->Service->Action = $this->_vars['service']['action'];; - $TransactionRequest->Services->Service->Version = $this->_vars['service']['version'];; - */ - $TransactionRequest->ClientIP = new IPAddress(); - $TransactionRequest->ClientIP->Type = 'IPv4'; - $TransactionRequest->ClientIP->_ = $_SERVER['REMOTE_ADDR']; - - foreach ($TransactionRequest->Services->Service as $key => $service) { - $this->addCustomFields($TransactionRequest, $key, $service->Name); - } - - $Header = new Header(); - $Header->MessageControlBlock = new MessageControlBlock(); - $Header->MessageControlBlock->Id = '_control'; - $Header->MessageControlBlock->WebsiteKey = Config::get('BUCKAROO_MERCHANT_KEY'); - $Header->MessageControlBlock->Culture = Config::get('CULTURE'); - $Header->MessageControlBlock->TimeStamp = time(); - $Header->MessageControlBlock->Channel = Config::CHANNEL; - $Header->MessageControlBlock->Software = Config::getSoftware(); - $Header->Security = new SecurityType(); - $Header->Security->Signature = new SignatureType(); - - $Header->Security->Signature->SignedInfo = new SignedInfoType(); - $Header->Security->Signature->SignedInfo->CanonicalizationMethod = new CanonicalizationMethodType(); - $Header->Security->Signature->SignedInfo->CanonicalizationMethod->Algorithm = 'http://www.w3.org/2001/10/xml-exc-c14n#';//phpcs:ignore - $Header->Security->Signature->SignedInfo->SignatureMethod = new SignatureMethodType(); - $Header->Security->Signature->SignedInfo->SignatureMethod->Algorithm = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1';//phpcs:ignore - - $Reference = new ReferenceType(); - $Reference->URI = '#_body'; - $Transform = new TransformType(); - $Transform->Algorithm = 'http://www.w3.org/2001/10/xml-exc-c14n#'; - $Reference->Transforms = array($Transform); - - $Reference->DigestMethod = new DigestMethodType(); - $Reference->DigestMethod->Algorithm = 'http://www.w3.org/2000/09/xmldsig#sha1'; - $Reference->DigestValue = ''; - - $Transform2 = new TransformType(); - $Transform2->Algorithm = 'http://www.w3.org/2001/10/xml-exc-c14n#'; - $ReferenceControl = new ReferenceType(); - $ReferenceControl->URI = '#_control'; - $ReferenceControl->DigestMethod = new DigestMethodType(); - $ReferenceControl->DigestMethod->Algorithm = 'http://www.w3.org/2000/09/xmldsig#sha1'; - $ReferenceControl->DigestValue = ''; - $ReferenceControl->Transforms = array($Transform2); - - $Header->Security->Signature->SignedInfo->Reference = array($Reference, $ReferenceControl); - $Header->Security->Signature->SignatureValue = ''; - - $soapHeaders = array(); - $soapHeaders[] = new SOAPHeader('https://checkout.buckaroo.nl/PaymentEngine/', 'MessageControlBlock', $Header->MessageControlBlock);//phpcs:ignore - $soapHeaders[] = new SOAPHeader('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'Security', $Header->Security);//phpcs:ignore - $client->__setSoapHeaders($soapHeaders); - - if ($this->_vars['mode'] == 'test') { - //$location = 'http://localhost:8080/'; - $location = Config::LOCATION_TEST; - } else { - $location = Config::LOCATION; - } - - $client->__SetLocation($location); - - try { - $response = $client->TransactionRequest($TransactionRequest); - } catch (SoapFault $e) { - $logger = new Logger(1); - $logger->logForUser($e->getMessage()); - //$this->logException($e->getMessage()); - return $this->error($client); - } catch (Exception $e) { - $logger = new Logger(1); - $logger->logForUser($e->getMessage()); - //$this->logException($e->getMessage()); - return $this->error($client); - } - - if (is_null($response)) { - $response = false; - } - - $responseXML = $client->__getLastResponse(); - $requestXML = $client->__getLastRequest(); - - $responseDomDOC = new DOMDocument(); - $responseDomDOC->loadXML($responseXML); - $responseDomDOC->preserveWhiteSpace = false; - $responseDomDOC->formatOutput = true; - - $requestDomDOC = new DOMDocument(); - $requestDomDOC->loadXML($requestXML); - $requestDomDOC->preserveWhiteSpace = false; - $requestDomDOC->formatOutput = true; - - return array($response, $responseDomDOC, $requestDomDOC); - } - - public function dataRequest() - { - try { - //first attempt: use the cached WSDL - $client = new SoapClientWSSEC( - Config::WSDL_URL, - array( - 'trace' => 1, - 'cache_wsdl' => WSDL_CACHE_DISK, - ) - ); - } catch (Exception $e) { - //(SoapFault $e) { - try { - //second attempt: use an uncached WSDL - ini_set('soap.wsdl_cache_ttl', 1); - $client = new SoapClientWSSEC( - Config::WSDL_URL, - array( - 'trace' => 1, - 'cache_wsdl' => WSDL_CACHE_NONE, - ) - ); - } catch (Exception $e) { - //(SoapFault $e) { - try { - //third and final attempt: use the supplied wsdl found in the lib folder - $client = new SoapClientWSSEC( - dirname(__FILE__) . Config::WSDL_FILE, - array( - 'trace' => 1, - 'cache_wsdl' => WSDL_CACHE_NONE, - ) - ); - } catch (Exception $e) { - //(SoapFault $e) { - return $this->error($e); - } - } - } - - $client->thumbprint = Config::get('BUCKAROO_CERTIFICATE_THUMBPRINT'); - $client->privateKey = Config::get('BUCKAROO_CERTIFICATE_PATH'); - - $DataRequest = new Body(); - $DataRequest->ReturnURL = $this->_vars['returnUrl']; - $DataRequest->StartRecurrent = false; - - if (!empty($this->_vars['customVars']['servicesSelectableByClient']) && !empty( - $this->_vars['customVars']['continueOnIncomplete'] - ) - ) { - $DataRequest->ServicesSelectableByClient = $this->_vars['customVars']['servicesSelectableByClient']; - $DataRequest->ContinueOnIncomplete = $this->_vars['customVars']['continueOnIncomplete']; - $DataRequest->ServicesExcludedForClient = null; - } - - if (!empty($this->_vars['customParameters'])) { - $DataRequest = $this->addCustomParameters($DataRequest); - } - - $DataRequest->Services = new Services(); - $this->addServices($DataRequest); - - $DataRequest->ClientIP = new IPAddress(); - $DataRequest->ClientIP->Type = 'IPv4'; - $DataRequest->ClientIP->_ = $_SERVER['REMOTE_ADDR']; - - foreach ($DataRequest->Services->Service as $key => $service) { - $this->addCustomFields($DataRequest, $key, $service->Name); - } - - $Header = new Header(); - $Header->MessageControlBlock = new MessageControlBlock(); - $Header->MessageControlBlock->Id = '_control'; - $Header->MessageControlBlock->WebsiteKey = Config::get('BUCKAROO_MERCHANT_KEY'); - $Header->MessageControlBlock->Culture = Config::get('CULTURE'); - $Header->MessageControlBlock->TimeStamp = time(); - $Header->MessageControlBlock->Channel = Config::CHANNEL; - $Header->MessageControlBlock->Software = Config::getSoftware(); - $Header->Security = new SecurityType(); - $Header->Security->Signature = new SignatureType(); - - $Header->Security->Signature->SignedInfo = new SignedInfoType(); - $Header->Security->Signature->SignedInfo->CanonicalizationMethod = new CanonicalizationMethodType(); - $Header->Security->Signature->SignedInfo->CanonicalizationMethod->Algorithm = 'http://www.w3.org/2001/10/xml-exc-c14n#';//phpcs:ignore - $Header->Security->Signature->SignedInfo->SignatureMethod = new SignatureMethodType(); - $Header->Security->Signature->SignedInfo->SignatureMethod->Algorithm = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1';//phpcs:ignore - - $Reference = new ReferenceType(); - $Reference->URI = '#_body'; - $Transform = new TransformType(); - $Transform->Algorithm = 'http://www.w3.org/2001/10/xml-exc-c14n#'; - $Reference->Transforms = array($Transform); - - $Reference->DigestMethod = new DigestMethodType(); - $Reference->DigestMethod->Algorithm = 'http://www.w3.org/2000/09/xmldsig#sha1'; - $Reference->DigestValue = ''; - - $Transform2 = new TransformType(); - $Transform2->Algorithm = 'http://www.w3.org/2001/10/xml-exc-c14n#'; - $ReferenceControl = new ReferenceType(); - $ReferenceControl->URI = '#_control'; - $ReferenceControl->DigestMethod = new DigestMethodType(); - $ReferenceControl->DigestMethod->Algorithm = 'http://www.w3.org/2000/09/xmldsig#sha1'; - $ReferenceControl->DigestValue = ''; - $ReferenceControl->Transforms = array($Transform2); - - $Header->Security->Signature->SignedInfo->Reference = array($Reference, $ReferenceControl); - $Header->Security->Signature->SignatureValue = ''; - - $soapHeaders = array(); - $soapHeaders[] = new SOAPHeader('https://checkout.buckaroo.nl/PaymentEngine/', 'MessageControlBlock', $Header->MessageControlBlock);//phpcs:ignore - $soapHeaders[] = new SOAPHeader('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'Security', $Header->Security);//phpcs:ignore - $client->__setSoapHeaders($soapHeaders); - - if ($this->_vars['mode'] == 'test') { - $location = Config::LOCATION_TEST; - } else { - $location = Config::LOCATION; - } - - $client->__SetLocation($location); - - try { - $response = $client->DataRequest($DataRequest); - } catch (SoapFault $e) { - $logger = new Logger(1); - $logger->logForUser($e->getMessage()); - return $this->error($client); - } catch (Exception $e) { - $logger = new Logger(1); - $logger->logForUser($e->getMessage()); - return $this->error($client); - } - - if (is_null($response)) { - $response = false; - } - - $responseXML = $client->__getLastResponse(); - $requestXML = $client->__getLastRequest(); - - $responseDomDOC = new DOMDocument(); - $responseDomDOC->loadXML($responseXML); - $responseDomDOC->preserveWhiteSpace = false; - $responseDomDOC->formatOutput = true; - - $requestDomDOC = new DOMDocument(); - $requestDomDOC->loadXML($requestXML); - $requestDomDOC->preserveWhiteSpace = false; - $requestDomDOC->formatOutput = true; - - return array($response, $responseDomDOC, $requestDomDOC); - } - - protected function addServices(&$TransactionRequest) - { - $services = array(); - foreach ($this->_vars['services'] as $fieldName => $value) { - if (empty($value)) { - continue; - } - - $service = new Service(); - $service->Name = $fieldName; - $service->Action = $value['action']; - $service->Version = $value['version']; - - $services[] = $service; - } - - $TransactionRequest->Services->Service = $services; - } - - protected function addCustomFields(&$TransactionRequest, $key, $name) - { - if (empty($this->_vars['customVars']) || empty($this->_vars['customVars'][$name])) { - unset($TransactionRequest->Services->Service->RequestParameter); - return; - } - - $requestParameters = array(); - foreach ($this->_vars['customVars'][$name] as $fieldName => $value) { - if ((is_null($value) || $value === '') - || (is_array($value) && (!empty($value['value']) - && (is_null($value['value']) - || $value['value'] === '')))) { - continue; - } - - if (is_array($value)) { - if (isset($value[0]) && is_array($value[0])) { - foreach ($value as $k => $val) { - $requestParameter = new RequestParameter(); - $requestParameter->Name = $fieldName; - $requestParameter->Group = $val['group']; - $requestParameter->GroupID = $k + 1; - $requestParameter->_ = $val['value']; - $requestParameters[] = $requestParameter; - } - } else { - $requestParameter = new RequestParameter(); - $requestParameter->Name = $fieldName; - $requestParameter->Group = $value['group']; - $requestParameter->_ = $value['value']; - $requestParameters[] = $requestParameter; - }; - } else { - $requestParameter = new RequestParameter(); - $requestParameter->Name = $fieldName; - $requestParameter->_ = $value; - $requestParameters[] = $requestParameter; - } - } - - if (empty($requestParameters)) { - unset($TransactionRequest->Services->Service->RequestParameter); - return; - } else { - $TransactionRequest->Services->Service[$key]->RequestParameter = $requestParameters; - } - } - - protected function addCustomParameters(&$TransactionRequest) - { - $requestParameters = array(); - foreach ($this->_vars['customParameters'] as $fieldName => $value) { - if ((is_null($value) || $value === '') - || (is_array($value) && (is_null($value['value']) - || $value['value'] === ''))) { - continue; - } - - $requestParameter = new RequestParameter(); - $requestParameter->Name = $fieldName; - if (is_array($value)) { - $requestParameter->Group = $value['group']; - $requestParameter->_ = $value['value']; - } else { - $requestParameter->_ = $value; - } - - $requestParameters[] = $requestParameter; - } - - if (empty($requestParameters)) { - unset($TransactionRequest->AdditionalParameters); - return false; - } else { - $TransactionRequest->AdditionalParameters = $requestParameters; - } - - return $TransactionRequest; - } - - protected function error($client = false) - { - $response = false; - - $responseDomDOC = new DOMDocument(); - $requestDomDOC = new DOMDocument(); - if ($client) { - $responseXML = $client->__getLastResponse(); - $requestXML = $client->__getLastRequest(); - - if (!empty($responseXML)) { - $responseDomDOC->loadXML($responseXML); - $responseDomDOC->preserveWhiteSpace = false; - $responseDomDOC->formatOutput = true; - } - - if (!empty($requestXML)) { - $requestDomDOC->loadXML($requestXML); - $requestDomDOC->preserveWhiteSpace = false; - $requestDomDOC->formatOutput = true; - } - } - - return array($response, $responseDomDOC, $requestDomDOC); - } -} diff --git a/api/software.php b/api/software.php deleted file mode 100644 index ca70f673e..000000000 --- a/api/software.php +++ /dev/null @@ -1,27 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class Software -{ - public $PlatformName; - public $PlatformVersion; - public $ModuleSupplier; - public $ModuleName; - public $ModuleVersion; -} diff --git a/api/wsdl/Buckaroo.wsdl b/api/wsdl/Buckaroo.wsdl deleted file mode 100644 index cec52bec1..000000000 --- a/api/wsdl/Buckaroo.wsdl +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_1.xsd b/api/wsdl/Import_1.xsd deleted file mode 100644 index 5e58d5225..000000000 --- a/api/wsdl/Import_1.xsd +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_10.xsd b/api/wsdl/Import_10.xsd deleted file mode 100644 index 5a5b9b644..000000000 --- a/api/wsdl/Import_10.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_11.xsd b/api/wsdl/Import_11.xsd deleted file mode 100644 index 5e4d6e753..000000000 --- a/api/wsdl/Import_11.xsd +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_12.xsd b/api/wsdl/Import_12.xsd deleted file mode 100644 index a85f90049..000000000 --- a/api/wsdl/Import_12.xsd +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_13.xsd b/api/wsdl/Import_13.xsd deleted file mode 100644 index 809a60d2e..000000000 --- a/api/wsdl/Import_13.xsd +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_14.xsd b/api/wsdl/Import_14.xsd deleted file mode 100644 index d8d63a22c..000000000 --- a/api/wsdl/Import_14.xsd +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_15.xsd b/api/wsdl/Import_15.xsd deleted file mode 100644 index 3cc636aee..000000000 --- a/api/wsdl/Import_15.xsd +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_16.xsd b/api/wsdl/Import_16.xsd deleted file mode 100644 index 9b15c3a2c..000000000 --- a/api/wsdl/Import_16.xsd +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/api/wsdl/Import_17.xsd b/api/wsdl/Import_17.xsd deleted file mode 100644 index 62d1fceae..000000000 --- a/api/wsdl/Import_17.xsd +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_18.xsd b/api/wsdl/Import_18.xsd deleted file mode 100644 index ef479fab8..000000000 --- a/api/wsdl/Import_18.xsd +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_19.xsd b/api/wsdl/Import_19.xsd deleted file mode 100644 index bd77abb18..000000000 --- a/api/wsdl/Import_19.xsd +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_2.xsd b/api/wsdl/Import_2.xsd deleted file mode 100644 index bac7b18c2..000000000 --- a/api/wsdl/Import_2.xsd +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_20.xsd b/api/wsdl/Import_20.xsd deleted file mode 100644 index dda4c27b5..000000000 --- a/api/wsdl/Import_20.xsd +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_21.xsd b/api/wsdl/Import_21.xsd deleted file mode 100644 index 33a724908..000000000 --- a/api/wsdl/Import_21.xsd +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_22.xsd b/api/wsdl/Import_22.xsd deleted file mode 100644 index 5e2ab3e2b..000000000 --- a/api/wsdl/Import_22.xsd +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_23.xsd b/api/wsdl/Import_23.xsd deleted file mode 100644 index 928a0965b..000000000 --- a/api/wsdl/Import_23.xsd +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_24.xsd b/api/wsdl/Import_24.xsd deleted file mode 100644 index 47515361b..000000000 --- a/api/wsdl/Import_24.xsd +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_25.xsd b/api/wsdl/Import_25.xsd deleted file mode 100644 index d5bcd35e1..000000000 --- a/api/wsdl/Import_25.xsd +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_3.xsd b/api/wsdl/Import_3.xsd deleted file mode 100644 index de06d82a8..000000000 --- a/api/wsdl/Import_3.xsd +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_4.xsd b/api/wsdl/Import_4.xsd deleted file mode 100644 index 06acaea49..000000000 --- a/api/wsdl/Import_4.xsd +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_5.xsd b/api/wsdl/Import_5.xsd deleted file mode 100644 index dbb742d1f..000000000 --- a/api/wsdl/Import_5.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_6.xsd b/api/wsdl/Import_6.xsd deleted file mode 100644 index 65666b959..000000000 --- a/api/wsdl/Import_6.xsd +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_7.xsd b/api/wsdl/Import_7.xsd deleted file mode 100644 index 654adc7d5..000000000 --- a/api/wsdl/Import_7.xsd +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_8.xsd b/api/wsdl/Import_8.xsd deleted file mode 100644 index 2a0cc241b..000000000 --- a/api/wsdl/Import_8.xsd +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/Import_9.xsd b/api/wsdl/Import_9.xsd deleted file mode 100644 index 04af279bd..000000000 --- a/api/wsdl/Import_9.xsd +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/api/wsdl/index.php b/api/wsdl/index.php deleted file mode 100644 index e5ee62b38..000000000 --- a/api/wsdl/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) - */ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/buckaroo3.php b/buckaroo3.php index 9bbc8ec26..ff909a989 100644 --- a/buckaroo3.php +++ b/buckaroo3.php @@ -1,7 +1,5 @@ name = 'buckaroo3'; - $this->tab = 'payments_gateways'; - $this->version = '3.4.0'; - $this->author = 'Buckaroo'; - $this->need_instance = 1; - $this->module_key = '8d2a2f65a77a8021da5d5ffccc9bbd2b'; - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => '1.7'); + $this->name = 'buckaroo3'; + $this->tab = 'payments_gateways'; + $this->version = '4.0.1'; + $this->author = 'Buckaroo'; + $this->need_instance = 1; + $this->bootstrap = true; + $this->module_key = '8d2a2f65a77a8021da5d5ffccc9bbd2b'; + $this->ps_versions_compliancy = ['min' => '1', 'max' => _PS_VERSION_]; parent::__construct(); + $this->setContainer(); + $this->displayName = $this->l('Buckaroo Payments') . ' (v ' . $this->version . ')'; - $this->description = $this->l('Buckaroo Payment module. Compatible with PrestaShop version 1.6.x + 1.7.x'); + $this->description = $this->l('Buckaroo Payment module. Compatible with PrestaShop version 1.7.x + 8.1.2'); $this->confirmUninstall = $this->l('Are you sure you want to delete Buckaroo Payments module?'); - $this->tpl_folder = 'buckaroo3'; + $this->tpl_folder = 'buckaroo3'; + $this->logger = new \Logger(CoreLogger::INFO, ''); + $this->locale = \Tools::getContextLocale($this->context); $response = ResponseFactory::getResponse(); - if ($response->isValid()) { + if ($response && $response->isValid()) { if ($response->brq_transaction_type == 'I150') { $this->displayName = 'Group transaction'; + } elseif ($response->hasSucceeded()) { + $this->displayName = $response->payment_method; + } elseif (isset($response->status) && $response->status > 0) { + $this->displayName = + (new RawPaymentMethodRepository())->getPaymentMethodsLabel($response->payment_method); } else { - if ($response->hasSucceeded()) { - $this->displayName = $response->payment_method; - } else { - if (isset($response->status) && $response->status > 0) { - $this->displayName = $this->getPaymentTranslation($response->payment_method); - } else { - $this->displayName = $this->l('Buckaroo Payments (v 3.4.0)'); - } - } + $this->displayName = $this->l('Buckaroo Payments (v 4.0.1)'); } } - if (!Configuration::get('BUCKAROO_MERCHANT_KEY') || - !Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT') || - !Configuration::get('BUCKAROO_ORDER_STATE_SUCCESS') || - !Configuration::get('BUCKAROO_ORDER_STATE_FAILED') + if (!Configuration::get('BUCKAROO_MERCHANT_KEY') + || !Configuration::get('BUCKAROO_SECRET_KEY') + || !Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT') + || !Configuration::get('BUCKAROO_ORDER_STATE_SUCCESS') + || !Configuration::get('BUCKAROO_ORDER_STATE_FAILED') ) { - $this->warning = $this->l('You should configurate Buckaroo module before use!'); + return ''; } - $translations = array(); + $translations = []; $translations[] = $this->l('Your payment was unsuccessful. Please try again or choose another payment method.'); $translations[] = $this->l('Order confirmation'); $translations[] = $this->l('current_step'); @@ -93,530 +108,220 @@ public function __construct() $translations[] = $this->l('Buckaroo supports the following gift cards:'); } - public function hookDisplayBackOfficeTop($params) - { - return $this->display(__FILE__, 'views/templates/hook/buckaroolog-quicklinks.tpl'); - } - + /** + * @throws PrestaShopException + * @throws PrestaShopDatabaseException + */ public function hookDisplayAdminOrderMainBottom($params) { - $order = new Order($params["id_order"]); - $payments = $order->getOrderPaymentCollection(); - $messages = ''; - $messageStatus = 0; - if (!empty($this->context->cookie->refundMessage)) { - $messages = $this->context->cookie->refundMessage; - $messageStatus = $this->context->cookie->refundStatus; - $this->context->cookie->__set('refundMessage', null); - $this->context->cookie->__set('refundStatus', null); - $this->context->cookie->write(); - } - $paymentInfo = array(); - $transactionIds = array(); - - foreach ($payments as $payment) { - $transactionIds[] = "'".$payment->transaction_id."'"; - } - $transactionList = $this->getAllRefundedTransactions($transactionIds); + $refundProvider = $this->get('buckaroo.refund.admin.provider'); - $payments = iterator_to_array($payments); - foreach ($payments as $payment) { - $availableAmount = $payment->amount; - - if((float)$payment->amount > 0) { - $availableAmount = (float)$payment->amount - $this->getRefundedAmountForTransaction( - $payment->transaction_id, - $payments, - $transactionList - ); - } - /* @var $payment OrderPaymentCore */ - $paymentInfo[$payment->id] = array( - "available_amount" => number_format($availableAmount, 2) - ); - } - $buckarooFee = $this->getBuckarooFeeByCartId($order->id_cart); - $currency = new Currency((int) $order->id_currency); - $buckarooFee = Tools::displayPrice($buckarooFee, $currency, false); $this->smarty->assign( - array( - 'order' => $order, - 'payments' => $payments, - 'messages' => $messages, - 'paymentInfo' => $paymentInfo, - 'messageStatus' => $messageStatus, - 'buckarooFee' => $buckarooFee, - 'refundLink' => $this->context->link->getAdminLink('AdminRefund', true) + $refundProvider->get( + new Order($params['id_order']) ) ); + return $this->display(__FILE__, 'views/templates/hook/refund-hook.tpl'); } + /** - * Get all transaction_id grouped by original transaction - * - * @param array $transactionIds - * - * @return array - */ - protected function getAllRefundedTransactions(array $transactionIds) - { - if(empty($transactionIds)){ - return 0; - } - - $transactionIds = implode(",",$transactionIds); - $transactions = Db::getInstance()->query( - 'SELECT `transaction_id`, `original_transaction` - FROM `' . _DB_PREFIX_ . 'buckaroo_transactions` - WHERE `original_transaction` IN (' . $transactionIds . ')' - ); - - $refunds = []; - foreach ($transactions as $transaction) { - if (!isset($refunds[$transaction['original_transaction']])) { - $refunds[$transaction['original_transaction']] = array(); - } - $refunds[$transaction['original_transaction']][] = $transaction['transaction_id']; - } - return $refunds; - } - /** - * Get refund done for transaction - * - * @param string $transactionId - * @param array $payments - * @param array $transactionList - * - * @return float + * @throws LocalizationException */ - public function getRefundedAmountForTransaction( - string $transactionId, - $payments, - array $transactionList - ) - { - if (!isset($transactionList[$transactionId])) { - return 0; - } - $refundsDone = []; - - foreach ($payments as $payment) { - if (in_array($payment->transaction_id, $transactionList[$transactionId])) { - $refundsDone[] = $payment; - } - } - - return (-1) * array_reduce( - $refundsDone, - function($carry, $payment) { - /** @var OrderPaymentCore $payment */ - return $carry + (float)$payment->amount; - }, - 0 - ); - } - public function hookDisplayOrderConfirmation(array $params) { $order = isset($params['objOrder']) ? $params['objOrder'] : null; $order = isset($params['order']) ? $params['order'] : $order; - if (!$order) { - return ''; - } - $cart = new Cart($order->id_cart); - if (!$cart) { + + if (!$order || !($cart = new Cart($order->id_cart))) { return ''; } - $buckarooFee = $this->getBuckarooFeeByCartId($cart->id); if (!$buckarooFee) { return ''; } - $sql = "UPDATE `" . _DB_PREFIX_ . "orders` SET total_paid_tax_incl = '" . ($order->total_paid) . + $sql = 'UPDATE `' . _DB_PREFIX_ . "orders` SET total_paid_tax_incl = '" . $order->total_paid . "' WHERE id_cart = '" . $cart->id . "'"; Db::getInstance()->execute($sql); - $currency = new Currency((int) $order->id_currency); - $buckarooFee = Tools::displayPrice($buckarooFee, $currency, false); - - $return = ''; - return $return; - } - - public function hookDisplayBackOfficeHeader() - { - $this->context->controller->addCss($this->_path . 'views/css/tab.css'); } - public function addBuckarooIdin() + /** + * @throws PrestaShopException + * @throws PrestaShopDatabaseException + */ + public function install() { - Db::getInstance()->query('SHOW COLUMNS FROM `'._DB_PREFIX_.'customer` LIKE "buckaroo_idin_%"'); - if (Db::getInstance()->NumRows() == 0) { - Db::getInstance()->execute("ALTER TABLE `" . _DB_PREFIX_ . "customer` - ADD buckaroo_idin_consumerbin VARCHAR(255) NULL, ADD buckaroo_idin_iseighteenorolder VARCHAR(255) NULL;"); - } - - Db::getInstance()->query('SHOW COLUMNS FROM `'._DB_PREFIX_.'product` LIKE "buckaroo_idin"'); - if (Db::getInstance()->NumRows() == 0) { - Db::getInstance()->execute("ALTER TABLE `" . _DB_PREFIX_ . "product` - ADD buckaroo_idin TINYINT(1) NULL;"); + if (Shop::isFeatureActive()) { + Shop::setContext(Shop::CONTEXT_ALL); } - } - public function createTransactionTable() - { - $sql = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'buckaroo_transactions`( - `id_buckaroo_transaction` int(10) unsigned NOT NULL auto_increment, - `transaction_id` varchar(255) NOT NULL default \'\', - `original_transaction` varchar(255) NOT NULL default \'\', - PRIMARY KEY (`id_buckaroo_transaction`) - ) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8'; - - return Db::getInstance()->execute($sql); - } + if (!parent::install()) { + $this->_errors[] = $this->l('Unable to install module'); -// this also works, and is more future-proof - public function install() - { - if (!parent::install() || !$this->registerHook('payment') || !$this->registerHook( - 'header' - ) || !$this->registerHook('paymentReturn') || !$this->registerHook('backOfficeHeader') - || !$this->registerHook('paymentOptions') - || !$this->registerHook('displayBackOfficeTop') - || !$this->registerHook('displayAdminOrderMainBottom') - || !$this->registerHook('displayOrderConfirmation') - || !$this->installModuleTab('AdminBuckaroolog', array(1 => 'Buckaroo error log'), 0) - || !$this->installModuleTab('AdminRefund', array(1 => 'Buckaroo Refunds'), -1) - || !$this->createTransactionTable() - || !$this->registerHook('actionEmailSendBefore') - || !$this->registerHook('displayPDFInvoice') - ) { return false; } - $this->registerHook('displayBackOfficeHeader'); - $this->registerHook('displayBeforeCarrier'); - $this->registerHook('actionAdminCustomersListingFieldsModifier'); - $this->registerHook('displayAdminProductsMainStepLeftColumnMiddle'); - $this->registerHook('displayProductExtraContent'); - $this->addBuckarooIdin(); + $databaseTableInstaller = new DatabaseTableInstaller(); - if (Shop::isFeatureActive()) { - Shop::setContext(Shop::CONTEXT_ALL); + $coreInstaller = new Installer($this, $databaseTableInstaller); + + if (!$coreInstaller->install()) { + $this->_errors = array_merge($this->_errors, $coreInstaller->getErrors()); + + return false; } - Configuration::updateValue('BUCKAROO_TEST', '1'); - Configuration::updateValue('BUCKAROO_MERCHANT_KEY', ''); - Configuration::updateValue('BUCKAROO_SECRET_KEY', ''); - Configuration::updateValue('BUCKAROO_CERTIFICATE', ''); - Configuration::updateValue('BUCKAROO_CERTIFICATE_FILE', ''); - Configuration::updateValue('BUCKAROO_CERTIFICATE_THUMBPRINT', ''); - Configuration::updateValue('BUCKAROO_TRANSACTION_LABEL', ''); - Configuration::updateValue('BUCKAROO_TRANSACTION_FEE', ''); - Configuration::updateValue('BUCKAROO_PAYPAL_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_PAYPAL_TEST', '1'); - Configuration::updateValue('BUCKAROO_PAYPAL_LABEL', ''); - Configuration::updateValue('BUCKAROO_BUCKAROOPAYPAL_FEE', ''); - Configuration::updateValue('BUCKAROO_EMPAYMENT_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_EMPAYMENT_TEST', '1'); - Configuration::updateValue('BUCKAROO_EMPAYMENT_LABEL', ''); - Configuration::updateValue('BUCKAROO_EMPAYMENT_FEE', ''); - Configuration::updateValue('BUCKAROO_DD_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_DD_TEST', '1'); - Configuration::updateValue('BUCKAROO_DD_LABEL', ''); - Configuration::updateValue('BUCKAROO_DD_FEE', ''); - Configuration::updateValue('BUCKAROO_DD_USECREDITMANAGMENT', 'No'); - Configuration::updateValue('BUCKAROO_DD_INVOICEDELAY', '0'); - Configuration::updateValue('BUCKAROO_DD_DATEDUE', '0'); - Configuration::updateValue('BUCKAROO_DD_MAXREMINDERLEVEL', '4'); - Configuration::updateValue('BUCKAROO_IDEAL_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_IDEAL_TEST', '1'); - Configuration::updateValue('BUCKAROO_IDEAL_LABEL', ''); - Configuration::updateValue('BUCKAROO_IDEAL_FEE', ''); - Configuration::updateValue('BUCKAROO_GIROPAY_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_GIROPAY_TEST', '1'); - Configuration::updateValue('BUCKAROO_GIROPAY_LABEL', ''); - Configuration::updateValue('BUCKAROO_GIROPAY_FEE', ''); - Configuration::updateValue('BUCKAROO_KBC_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_KBC_TEST', '1'); - Configuration::updateValue('BUCKAROO_KBC_LABEL', ''); - Configuration::updateValue('BUCKAROO_KBC_FEE', ''); - Configuration::updateValue('BUCKAROO_MISTERCASH_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_MISTERCASH_TEST', '1'); - Configuration::updateValue('BUCKAROO_MISTERCASH_LABEL', ''); - Configuration::updateValue('BUCKAROO_MISTERCASH_FEE', ''); - Configuration::updateValue('BUCKAROO_GIFTCARD_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_GIFTCARD_TEST', '1'); - Configuration::updateValue('BUCKAROO_GIFTCARD_LABEL', ''); - Configuration::updateValue('BUCKAROO_GIFTCARD_FEE', ''); - Configuration::updateValue('BUCKAROO_CREDITCARD_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_CREDITCARD_TEST', '1'); - Configuration::updateValue('BUCKAROO_CREDITCARD_LABEL', ''); - Configuration::updateValue('BUCKAROO_CREDITCARD_FEE', ''); - Configuration::updateValue('BUCKAROO_SOFORTBANKING_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_SOFORTBANKING_TEST', '1'); - Configuration::updateValue('BUCKAROO_SOFORTBANKING_LABEL', ''); - Configuration::updateValue('BUCKAROO_SOFORTBANKING_FEE', ''); - Configuration::updateValue('BUCKAROO_BELFIUS_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_BELFIUS_TEST', '1'); - Configuration::updateValue('BUCKAROO_BELFIUS_LABEL', ''); - Configuration::updateValue('BUCKAROO_BELFIUS_FEE', ''); - Configuration::updateValue('BUCKAROO_TRANSFER_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_TRANSFER_TEST', '1'); - Configuration::updateValue('BUCKAROO_TRANSFER_LABEL', ''); - Configuration::updateValue('BUCKAROO_TRANSFER_FEE', ''); - Configuration::updateValue('BUCKAROO_TRANSFER_DATEDUE', '14'); - Configuration::updateValue('BUCKAROO_TRANSFER_SENDMAIL', '0'); - - Configuration::updateValue('BUCKAROO_AFTERPAY_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_AFTERPAY_TEST', '1'); - Configuration::updateValue('BUCKAROO_AFTERPAY_LABEL', ''); - Configuration::updateValue('BUCKAROO_AFTERPAY_FEE', ''); - Configuration::updateValue('BUCKAROO_AFTERPAY_DEFAULT_VAT', '2'); - Configuration::updateValue('BUCKAROO_AFTERPAY_WRAPPING_VAT', '2'); - Configuration::updateValue('BUCKAROO_AFTERPAY_TAXRATE', serialize(array())); - Configuration::updateValue('BUCKAROO_AFTERPAY_BUSINESS', 'B2C'); - - Configuration::updateValue('BUCKAROO_KLARNA_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_KLARNA_TEST', '1'); - Configuration::updateValue('BUCKAROO_KLARNA_LABEL', ''); - Configuration::updateValue('BUCKAROO_KLARNA_FEE', ''); - Configuration::updateValue('BUCKAROO_KLARNA_DEFAULT_VAT', '2'); - Configuration::updateValue('BUCKAROO_KLARNA_WRAPPING_VAT', '2'); - Configuration::updateValue('BUCKAROO_KLARNA_TAXRATE', serialize(array())); - - Configuration::updateValue('BUCKAROO_APPLEPAY_ENABLED', '0'); - Configuration::updateValue('BUCKAROO_APPLEPAY_TEST', '1'); - Configuration::updateValue('BUCKAROO_APPLEPAY_LABEL', ''); - Configuration::updateValue('BUCKAROO_APPLEPAY_FEE', ''); + + (new RefundSettings())->install(); $states = OrderState::getOrderStates((int) Configuration::get('PS_LANG_DEFAULT')); - $currentStates = array(); + $currentStates = []; foreach ($states as $state) { - $state = (object) $state; + $state = (object) $state; $currentStates[$state->id_order_state] = $state->name; } - $state_id = 0; if (($state_id = array_search($this->l('Awaiting for Remote payment'), $currentStates)) === false) { // Add the custom order state - $defaultOrderState = new OrderState(); - $defaultOrderState->name = array( + $defaultOrderState = new OrderState(); + $defaultOrderState->name = [ Configuration::get('PS_LANG_DEFAULT') => $this->l( 'Awaiting for Remote payment' ), - ); + ]; $defaultOrderState->module_name = $this->name; - $defaultOrderState->send_mail = 0; - $defaultOrderState->template = ''; - $defaultOrderState->invoice = 0; - $defaultOrderState->color = '#FFF000'; + $defaultOrderState->send_mail = 0; + $defaultOrderState->template = ''; + $defaultOrderState->invoice = 0; + $defaultOrderState->color = '#FFF000'; $defaultOrderState->unremovable = false; - $defaultOrderState->logable = 0; + $defaultOrderState->logable = 0; if ($defaultOrderState->add()) { - $source = dirname(__FILE__) . '/logo.gif'; + $source = dirname(__FILE__) . '/logo.gif'; $destination = dirname(__FILE__) . '/../../img/os/' . (int) $defaultOrderState->id . '.gif'; if (!file_exists($destination)) { copy($source, $destination); } } } else { - $defaultOrderState = new stdClass; + $defaultOrderState = new stdClass(); $defaultOrderState->id = $state_id; } Configuration::updateValue('BUCKAROO_ORDER_STATE_DEFAULT', $defaultOrderState->id); Configuration::updateValue('BUCKAROO_ORDER_STATE_SUCCESS', Configuration::get('PS_OS_PAYMENT')); Configuration::updateValue('BUCKAROO_ORDER_STATE_FAILED', Configuration::get('PS_OS_CANCELED')); - $this->addBuckarooFeeTable(); - //Cookie SameSite fix + // Cookie SameSite fix Configuration::updateValue('PS_COOKIE_SAMESITE', 'None'); - - //override - $this->overrideClasses(); return true; } - protected function overrideClasses() + public function uninstall() { - copy(_PS_ROOT_DIR_ . "/modules/buckaroo3/classes/Mail.php", _PS_ROOT_DIR_ . "/override/classes/Mail.php"); + $databaseTableUninstaller = new DatabaseTableUninstaller(); + $databaseIdinColumnsRemover = new IdinColumnsRemover(); + $uninstall = new Uninstaller($this, $databaseTableUninstaller, $databaseIdinColumnsRemover); + + if (!$uninstall->uninstall()) { + $this->_errors[] = $uninstall->getErrors(); + + return false; + } + + $refundSettingsService = $this->get('buckaroo.refund.settings'); + if ($refundSettingsService) { + $refundSettingsService->uninstall(); + } + + return parent::uninstall(); } - protected function addBuckarooFeeTable() + public function hookDisplayBackOfficeHeader() { - $sql = "CREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "buckaroo_fee` - ( `id` INT NOT NULL AUTO_INCREMENT , `reference` TEXT NOT NULL , `id_cart` TEXT NOT NULL , `buckaroo_fee` FLOAT, - `currency` TEXT NOT NULL , PRIMARY KEY (id) )"; - - Db::getInstance()->execute($sql); + $this->context->controller->addCSS($this->_path . 'views/css/buckaroo3.admin.css', 'all'); + $this->context->controller->addCSS($this->_path . 'views/css/buckaroo3.vue.css', 'all'); } - public function uninstall() + public function getContent() { - if (!parent::uninstall()) { - return false; - } - $this->uninstallModuleTab('AdminBuckaroolog'); - $this->uninstallModuleTab('AdminRefund'); - $this->unregisterHook('displayBackOfficeHeader'); - $this->unregisterHook('displayAdminOrderMainBottom'); - $this->unregisterHook('displayOrderConfirmation'); - $this->unregisterHook('actionEmailSendBefore'); - $this->unregisterHook('displayPDFInvoice'); - - // Clean configuration table - Configuration::deleteByName('BUCKAROO_TEST'); - Configuration::deleteByName('BUCKAROO_MERCHANT_KEY'); - Configuration::deleteByName('BUCKAROO_SECRET_KEY'); - Configuration::deleteByName('BUCKAROO_CERTIFICATE'); - Configuration::deleteByName('BUCKAROO_CERTIFICATE_FILE'); - Configuration::deleteByName('BUCKAROO_CERTIFICATE_THUMBPRINT'); - Configuration::deleteByName('BUCKAROO_TRANSACTION_LABEL'); - Configuration::deleteByName('BUCKAROO_TRANSACTION_FEE'); - //paypal - Configuration::deleteByName('BUCKAROO_PAYPAL_ENABLED'); - Configuration::deleteByName('BUCKAROO_PAYPAL_TEST'); - //empayment - Configuration::deleteByName('BUCKAROO_EMPAYMENT_ENABLED'); - Configuration::deleteByName('BUCKAROO_EMPAYMENT_TEST'); - Configuration::deleteByName('BUCKAROO_EMPAYMENT_LABEL'); - Configuration::deleteByName('BUCKAROO_EMPAYMENT_FEE'); - //directdebit - Configuration::deleteByName('BUCKAROO_DD_ENABLED'); - Configuration::deleteByName('BUCKAROO_DD_TEST'); - Configuration::deleteByName('BUCKAROO_DD_LABEL'); - Configuration::deleteByName('BUCKAROO_DD_FEE'); - Configuration::deleteByName('BUCKAROO_DD_USECREDITMANAGMENT'); - Configuration::deleteByName('BUCKAROO_DD_INVOICEDELAY'); - Configuration::deleteByName('BUCKAROO_DD_DATEDUE'); - Configuration::deleteByName('BUCKAROO_DD_MAXREMINDERLEVEL'); - //sepadirectdebit - Configuration::deleteByName('BUCKAROO_SDD_ENABLED'); - Configuration::deleteByName('BUCKAROO_SDD_TEST'); - Configuration::deleteByName('BUCKAROO_SDD_LABEL'); - Configuration::deleteByName('BUCKAROO_SDD_FEE'); - - Configuration::deleteByName('BUCKAROO_IDEAL_ENABLED'); - Configuration::deleteByName('BUCKAROO_IDEAL_TEST'); - Configuration::deleteByName('BUCKAROO_IDEAL_LABEL'); - Configuration::deleteByName('BUCKAROO_IDEAL_FEE'); - - Configuration::deleteByName('BUCKAROO_GIROPAY_ENABLED'); - Configuration::deleteByName('BUCKAROO_GIROPAY_TEST'); - Configuration::deleteByName('BUCKAROO_GIROPAY_LABEL'); - Configuration::deleteByName('BUCKAROO_GIROPAY_FEE'); - - Configuration::deleteByName('BUCKAROO_KBC_ENABLED'); - Configuration::deleteByName('BUCKAROO_KBC_TEST'); - Configuration::deleteByName('BUCKAROO_KBC_LABEL'); - Configuration::deleteByName('BUCKAROO_KBC_FEE'); - - Configuration::deleteByName('BUCKAROO_MISTERCASH_ENABLED'); - Configuration::deleteByName('BUCKAROO_MISTERCASH_TEST'); - Configuration::deleteByName('BUCKAROO_MISTERCASH_LABEL'); - Configuration::deleteByName('BUCKAROO_MISTERCASH_FEE'); - - Configuration::deleteByName('BUCKAROO_GIFTCARD_ENABLED'); - Configuration::deleteByName('BUCKAROO_GIFTCARD_TEST'); - Configuration::deleteByName('BUCKAROO_GIFTCARD_LABEL'); - Configuration::deleteByName('BUCKAROO_GIFTCARD_FEE'); - - Configuration::deleteByName('BUCKAROO_CREDITCARD_ENABLED'); - Configuration::deleteByName('BUCKAROO_CREDITCARD_TEST'); - Configuration::deleteByName('BUCKAROO_CREDITCARD_LABEL'); - Configuration::deleteByName('BUCKAROO_CREDITCARD_FEE'); - - Configuration::deleteByName('BUCKAROO_SOFORTBANKING_ENABLED'); - Configuration::deleteByName('BUCKAROO_SOFORTBANKING_TEST'); - Configuration::deleteByName('BUCKAROO_SOFORTBANKING_LABEL'); - Configuration::deleteByName('BUCKAROO_SOFORTBANKING_FEE'); - - Configuration::deleteByName('BUCKAROO_BELFIUS_ENABLED'); - Configuration::deleteByName('BUCKAROO_BELFIUS_TEST'); - Configuration::deleteByName('BUCKAROO_BELFIUS_LABEL'); - Configuration::deleteByName('BUCKAROO_BELFIUS_FEE'); - - Configuration::deleteByName('BUCKAROO_AFTERPAY_ENABLED'); - Configuration::deleteByName('BUCKAROO_AFTERPAY_TEST'); - Configuration::deleteByName('BUCKAROO_AFTERPAY_LABEL'); - Configuration::deleteByName('BUCKAROO_AFTERPAY_FEE'); - Configuration::deleteByName('BUCKAROO_AFTERPAY_DEFAULT_VAT'); - Configuration::deleteByName('BUCKAROO_AFTERPAY_WRAPPING_VAT'); - Configuration::deleteByName('BUCKAROO_AFTERPAY_TAXRATE'); - Configuration::deleteByName('BUCKAROO_AFTERPAY_BUSINESS'); - - Configuration::deleteByName('BUCKAROO_KLARNA_ENABLED'); - Configuration::deleteByName('BUCKAROO_KLARNA_TEST'); - Configuration::deleteByName('BUCKAROO_KLARNA_LABEL'); - Configuration::deleteByName('BUCKAROO_KLARNA_FEE'); - Configuration::deleteByName('BUCKAROO_KLARNA_DEFAULT_VAT'); - Configuration::deleteByName('BUCKAROO_KLARNA_WRAPPING_VAT'); - Configuration::deleteByName('BUCKAROO_KLARNA_TAXRATE'); - - Configuration::deleteByName('BUCKAROO_ORDER_STATE_DEFAULT'); - Configuration::deleteByName('BUCKAROO_ORDER_STATE_SUCCESS'); - Configuration::deleteByName('BUCKAROO_ORDER_STATE_FAILED'); - - Configuration::deleteByName('BUCKAROO_APPLEPAY_ENABLED'); - Configuration::deleteByName('BUCKAROO_APPLEPAY_TEST'); - Configuration::deleteByName('BUCKAROO_APPLEPAY_LABEL'); - Configuration::deleteByName('BUCKAROO_APPLEPAY_FEE'); + $tokenManager = $this->get('security.csrf.token_manager'); + $userProvider = $this->get('prestashop.user_provider'); + + $token = $tokenManager->getToken( + $userProvider->getUsername() + )->getValue(); + $this->context->smarty->assign([ + 'pathApp' => $this->_path . 'views/js/buckaroo.vue.js', + 'baseUrl' => $this->context->shop->getBaseURL(true), + 'adminUrl' => explode('?', $this->context->link->getAdminLink(AdminDashboard::class))[0], + 'token' => $token, + ]); - return true; + return $this->context->smarty->fetch('module:buckaroo3/views/templates/admin/app.tpl'); } - public function getContent() + private function isActivated() { - $this->context->controller->addCSS($this->_path . 'views/css/buckaroo3.admin.css', 'all'); - $this->context->controller->addJS($this->_path . 'views/js/buckaroo.admin.js'); - include_once _PS_MODULE_DIR_ . '/' . $this->name . '/buckaroo3_admin.php'; - $buckaroo_admin = new Buckaroo3Admin($this); - return $buckaroo_admin->postProcess() . $buckaroo_admin->displayForm(); + $websiteKey = Configuration::get('BUCKAROO_MERCHANT_KEY'); + $secretKey = Configuration::get('BUCKAROO_SECRET_KEY'); + + return $this->active && $this->checkKeys($websiteKey, $secretKey); } - public function hookBackOfficeHeader() + private function checkKeys($websiteKey, $secretKey): bool { + if (empty($websiteKey) || empty($secretKey)) { + return false; + } + $buckarooClient = new BuckarooClient($websiteKey, $secretKey); + + return $buckarooClient->confirmCredential(); } public function hookPaymentOptions($params) { - if (!$this->active) { - return; + if (!$this->isActivated()) { + return []; } - $cookie = new Cookie('ps'); - $cart = new Cart($params['cookie']->__get('id_cart')); - $customer = new Customer($cart->id_customer); - $cookie_id_lang = (int) ($cookie->id_lang); - $id_lang = $cookie_id_lang ? $cookie_id_lang : (int) (Configuration::get('PS_LANG_DEFAULT')); - $addresses = $customer->getAddresses($id_lang); - $company = ''; - $vat = ''; - $firstNameBilling = ''; + + $cookie = new Cookie('ps'); + $cart = new Cart($params['cookie']->__get('id_cart')); + $customer = new Customer($cart->id_customer); + $cookie_id_lang = (int) $cookie->id_lang; + $id_lang = $cookie_id_lang ? $cookie_id_lang : (int) (Configuration::get('PS_LANG_DEFAULT')); + $addresses = $customer->getAddresses($id_lang); + $company = ''; + $vat = ''; + $firstNameBilling = ''; $firstNameShipping = ''; - $lastNameBilling = ''; - $lastNameShipping = ''; - $phone = ''; - $phone_mobile = ''; + $lastNameBilling = ''; + $lastNameShipping = ''; + $phone = ''; + $phone_mobile = ''; + foreach ($addresses as $address) { if ($address['id_address'] == $cart->id_address_delivery) { - $phone = $address['phone']; - $phone_mobile = $address['phone_mobile']; - $firstNameShipping = $address["firstname"]; - $lastNameShipping = $address["lastname"]; + $phone = $address['phone']; + $phone_mobile = $address['phone_mobile']; + $firstNameShipping = $address['firstname']; + $lastNameShipping = $address['lastname']; } if ($address['id_address'] == $cart->id_address_invoice) { - $company = $address['company']; - $vat = $address['vat_number']; - $phone_billing = $address['phone']; + $company = $address['company']; + $vat = $address['vat_number']; + $phone_billing = $address['phone']; $phone_mobile_billing = $address['phone_mobile']; - $firstNameBilling = $address["firstname"]; - $lastNameBilling = $address["lastname"]; + $firstNameBilling = $address['firstname']; + $lastNameBilling = $address['lastname']; } } $phone_afterpay_shipping = ''; @@ -628,256 +333,119 @@ public function hookPaymentOptions($params) } $phone_afterpay_billing = ''; + if (!empty($phone_mobile_billing)) { $phone_afterpay_billing = $phone_mobile_billing; - } - if (empty($phone_afterpay_billing) && !empty($phone_billing)) { + } elseif (!empty($phone_billing)) { $phone_afterpay_billing = $phone_billing; } $address_differ = 0; - if ($cart->id_address_delivery != $cart->id_address_invoice - && $lastNameShipping == $lastNameBilling - && $firstNameShipping == $firstNameBilling) { - $address_differ = 2; - } elseif ($cart->id_address_delivery != $cart->id_address_invoice) { - $address_differ = 1; + if ($cart->id_address_delivery != $cart->id_address_invoice) { + if ($lastNameShipping == $lastNameBilling + && $firstNameShipping == $firstNameBilling) { + $address_differ = 2; + } else { + $address_differ = 1; + } } - require_once dirname(__FILE__) . '/config.php'; - - $this->context->smarty->assign( - array( - 'address_differ' => $address_differ, - 'this_path' => $this->_path, - 'customer_gender' => $customer->id_gender, - 'customer_name' => $customer->firstname . ' ' . $customer->lastname, - 'customer_email' => $customer->email, - 'customer_birthday' => explode('-', $customer->birthday), - 'customer_company' => $company, - 'customer_vat' => $vat, - 'phone' => $phone, - 'phone_mobile' => $phone_mobile, - 'phone_afterpay_shipping' => $phone_afterpay_shipping, - 'phone_afterpay_billing' => $phone_afterpay_billing, - 'total' => $cart->getOrderTotal(true, 3), - 'country' => Country::getIsoById(Tools::getCountry()), - ) - ); - $payment_options = []; - libxml_use_internal_errors(true); - if (Config::get('BUCKAROO_IDEAL_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('IDEAL', 'Pay by iDeal')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'ideal'])) - ->setForm($this->context->smarty->fetch('module:buckaroo3/views/templates/hook/payment_ideal.tpl')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_ideal.png?v'); - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_PAYPAL_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('BUCKAROOPAYPAL', 'Pay by PayPal')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'buckaroopaypal'])) - ->setInputs($this->getBuckarooFeeInputs('BUCKAROOPAYPAL')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_paypal.png?v'); - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_SDD_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('SDD', 'Pay by SEPA Direct Debit')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'sepadirectdebit'])) //phpcs:ignore - ->setForm($this->context->smarty->fetch('module:buckaroo3/views/templates/hook/payment_sepadirectdebit.tpl')) //phpcs:ignore - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_sepa_dd.png?v'); //phpcs:ignore - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_GIROPAY_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('GIROPAY', 'Pay by GiroPay')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'giropay'])) - ->setForm($this->context->smarty->fetch('module:buckaroo3/views/templates/hook/payment_giropay.tpl')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_giropay.png?v'); - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_KBC_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('KBC', 'Pay by KBC')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'kbc'])) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_kbc.png?v'); - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_MISTERCASH_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('MISTERCASH', 'Pay by Bancontact / Mister Cash')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'bancontactmrcash'])) //phpcs:ignore - ->setInputs($this->getBuckarooFeeInputs('MISTERCASH')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_mistercash.png?vv'); //phpcs:ignore - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_GIFTCARD_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('GIFTCARD', 'Pay by Giftcards')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'giftcard'])) - ->setInputs($this->getBuckarooFeeInputs('GIFTCARD')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_giftcards.png?v'); - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_CREDITCARD_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('CREDITCARD', 'Pay by Creditcards')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'creditcard'])) - ->setInputs($this->getBuckarooFeeInputs('CREDITCARD')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_cc.png?v'); - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_SOFORTBANKING_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('SOFORTBANKING', 'Pay by Sofortbanking')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'sofortueberweisung'])) //phpcs:ignore - ->setInputs($this->getBuckarooFeeInputs('SOFORTBANKING')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_sofort.png?v'); //phpcs:ignore - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_BELFIUS_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('BELFIUS', 'Pay by Belfius')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'belfius'])) //phpcs:ignore - ->setInputs($this->getBuckarooFeeInputs('BELFIUS')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_belfius.png?v'); //phpcs:ignore - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_TRANSFER_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('TRANSFER', 'Pay by Bank Transfer')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'transfer'])) - ->setInputs($this->getBuckarooFeeInputs('TRANSFER')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_transfer.png?vv1'); - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_AFTERPAY_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('AFTERPAY', 'Afterpay')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'afterpay'])) //phpcs:ignore - ->setForm($this->context->smarty->fetch('module:buckaroo3/views/templates/hook/payment_afterpay.tpl')) //phpcs:ignore - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_afterpay.png?vv'); //phpcs:ignore - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_KLARNA_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('KLARNA', 'Klarna: Pay later')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'klarna'])) //phpcs:ignore - ->setInputs($this->getBuckarooFeeInputs('KLARNA')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_klarna.png?v'); //phpcs:ignore - $payment_options[] = $newOption; - } - if (Config::get('BUCKAROO_APPLEPAY_ENABLED')) { - $newOption = new PaymentOption(); - $newOption->setCallToActionText($this->getBuckarooLabel('APPLEPAY', 'Apple Pay')) - ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => 'applepay'])) //phpcs:ignore - ->setInputs($this->getBuckarooFeeInputs('APPLEPAY')) - ->setLogo($this->_path . 'views/img/buckaroo_images/buckaroo_applepay.png?v'); //phpcs:ignore - $payment_options[] = $newOption; + $buckarooConfigService = $this->getBuckarooConfigService(); + + $buckarooPaymentService = $this->symContainer->get('buckaroo.config.api.payment.service'); + + try { + $this->context->smarty->assign( + [ + 'address_differ' => $address_differ, + 'this_path' => $this->_path, + 'customer_gender' => $customer->id_gender, + 'customer_name' => $customer->firstname . ' ' . $customer->lastname, + 'customer_email' => $customer->email, + 'customer_birthday' => explode('-', $customer->birthday), + 'customer_company' => $company, + 'customer_vat' => $vat, + 'phone' => $phone, + 'phone_mobile' => $phone_mobile, + 'phone_afterpay_shipping' => $phone_afterpay_shipping, + 'phone_afterpay_billing' => $phone_afterpay_billing, + 'total' => $cart->getOrderTotal(true, 3), + 'country' => Country::getIsoById(Tools::getCountry()), + 'afterpay_show_coc' => $buckarooPaymentService->showAfterpayCoc($cart), + 'billink_show_coc' => $buckarooPaymentService->showBillinkCoc($cart), + 'idealIssuers' => (new IssuersIdeal())->get(), + 'idealDisplayMode' => $buckarooConfigService->getConfigValue('ideal', 'display_type'), + 'paybybankIssuers' => (new IssuersPayByBank())->getIssuerList(), + 'payByBankDisplayMode' => $buckarooConfigService->getConfigValue('paybybank', 'display_type'), + 'creditcardIssuers' => $buckarooConfigService->getActiveCreditCards(), + 'creditCardDisplayMode' => $buckarooConfigService->getConfigValue('creditcard', 'display_type'), + 'in3Method' => $this->symContainer->get('buckaroo.classes.issuers.capayableIn3')->getMethod(), + ] + ); + } catch (Exception $e) { + $this->logger->logError('Buckaroo3::hookPaymentOptions - ' . $e->getMessage()); } - return $payment_options; + + return $buckarooPaymentService->getPaymentOptions($cart); } + /** + * @throws PrestaShopException + * @throws PrestaShopDatabaseException + * @throws LocalizationException + */ public function hookPaymentReturn($params) { if (!$this->active) { return; } + if (Tools::getValue('response_received') + || (Tools::getValue('id_order') && Tools::getValue('success'))) { + $order = new Order(Tools::getValue('id_order')); + $price = $this->formatPrice($order->getOrdersTotalPaid()); + $isGuest = $this->context->customer->is_guest || !$this->context->customer->id; - if (Tools::getValue("responce_received")) { - switch (Tools::getValue("responce_received")) { - case 'transfer': - $order = new Order(Tools::getValue('id_order')); - $price = $order->getOrdersTotalPaid(); - $message = $this->context->cookie->HtmlText; - $this->context->smarty->assign( - array( - 'is_guest' => (($this->context->customer->is_guest) - || $this->context->customer->id == false), - 'order' => $order, - 'message' => $message, - 'price' => Tools::displayPrice($price, $this->context->currency->id), - ) - ); - return $this->display(__FILE__, 'payment_return_redirectsuccess.tpl'); - default: - $order = new Order(Tools::getValue('id_order')); - $price = $order->getOrdersTotalPaid(); - $this->context->smarty->assign( - array( - 'is_guest' => (($this->context->customer->is_guest) - || $this->context->customer->id == false), - 'order' => $order, - 'price' => Tools::displayPrice($price, $this->context->currency->id), - ) - ); - return $this->display(__FILE__, 'payment_return_success.tpl'); - } - } else { - if (Tools::getValue("id_order") && Tools::getValue("success")) { - $order = new Order(Tools::getValue("id_order")); - if ($order) { - $price = $order->getOrdersTotalPaid(); - $this->context->smarty->assign( - array( - 'is_guest' => (($this->context->customer->is_guest) || $this->context->customer->id == false), //phpcs:ignore - 'order' => $order, - 'price' => Tools::displayPrice($price, $this->context->currency->id), - ) - ); - return $this->display(__FILE__, 'payment_return_success.tpl'); - } else { - Tools::redirect('index.php?fc=module&module=buckaroo3&controller=error'); - exit(); - } - } else { - Tools::redirect('index.php?fc=module&module=buckaroo3&controller=error'); - exit(); - } - } - } - - public function installModuleTab($tabClass, $tabName, $idTabParent) - { - $tab = new Tab(); - $tab->name = $tabName; - $tab->class_name = $tabClass; - $tab->module = $this->name; - $tab->id_parent = $idTabParent; + if (Tools::getValue('response_received') == 'transfer') { + $this->context->smarty->assign( + [ + 'is_guest' => $isGuest, + 'order' => $order, + 'price' => $price, + 'message' => $this->context->cookie->HtmlText, + ] + ); - if (!$tab->save()) { - return false; - } - return true; - } + return $this->display(__FILE__, 'payment_return_redirectsuccess.tpl'); + } + $this->context->smarty->assign( + [ + 'is_guest' => $isGuest, + 'order' => $order, + 'price' => $this->formatPrice($price), + ] + ); - public function uninstallModuleTab($tabClass) - { - $idTab = Tab::getIdFromClassName($tabClass); - if ($idTab != 0) { - $tab = new Tab($idTab); - $tab->delete(); - return true; + return $this->display(__FILE__, 'payment_return_success.tpl'); } - return false; + Tools::redirect('index.php?fc=module&module=buckaroo3&controller=error'); + exit; } public function hookDisplayHeader() { Media::addJsDef([ 'buckarooAjaxUrl' => $this->context->link->getModuleLink('buckaroo3', 'ajax'), - 'buckarooFees' => $this->getBuckarooFees(), - 'buckarooMessages'=> [ - "validation" => [ - "date"=>$this->l('Please enter correct birthdate date'), - "required"=>$this->l('Field is required'), - "agreement" => $this->l('Please accept licence agreements'), - "iban" => $this->l('A valid IBAN is required'), - ] - ] + 'buckarooFees' => $this->getBuckarooFeeService()->getBuckarooFees(), + 'buckarooMessages' => [ + 'validation' => [ + 'date' => $this->l('Please enter correct birthdate date'), + 'required' => $this->l('Field is required'), + 'agreement' => $this->l('Please accept licence agreements'), + 'iban' => $this->l('A valid IBAN is required'), + 'age' => $this->l('You must be at least 18 years old'), + ], + ], ]); $this->context->controller->addCSS($this->_path . 'views/css/buckaroo3.css', 'all'); @@ -903,164 +471,16 @@ public static function resolveStatusCode($status_code) } } - public function getPaymentTranslation($payment_method) - { - switch ($payment_method) { - case 'paypal': - case 'buckaroopaypal': - $payment_method_tr = $this->l('PayPal'); - break; - case 'SepaDirectDebit': - case 'sepadirectdebit': - $payment_method_tr = $this->l('Sepa Direct Debit'); - break; - case 'ideal': - $payment_method_tr = $this->l('iDeal'); - break; - case 'giropay': - $payment_method_tr = $this->l('Giro Pay'); - break; - case 'kbc': - $payment_method_tr = $this->l('KBC Pay'); - break; - case 'bancontactmrcash': - $payment_method_tr = $this->l('Bancontact / MisterCash'); - break; - case 'maestro': - $payment_method_tr = $this->l('Maestro'); - break; - case 'sofortueberweisung': - $payment_method_tr = $this->l('Sofort banking'); - break; - case 'belfius': - $payment_method_tr = $this->l('Belfius'); - break; - case 'cashticket': - $payment_method_tr = $this->l('Cash Ticket'); - break; - case 'transfer': - $payment_method_tr = $this->l('Transfer'); - break; - case 'afterpay': - $payment_method_tr = $this->l('AfterPay'); - break; - case 'klarna': - $payment_method_tr = $this->l('Klarna'); - break; - case 'giftcard': - $payment_method_tr = $this->l('GiftCard'); - break; - case 'creditcard': - $payment_method_tr = $this->l('CreditCard'); - break; - case 'applepay': - $payment_method_tr = $this->l('Apple Pay'); - break; - default: - $payment_method_tr = $this->l($payment_method); - break; - } - return $payment_method_tr; - } - - public static function cleanUpPhone($phone) - { - $phone = preg_replace('/[^0-9]/', '', $phone); - - if (Tools::substr($phone, 0, 3) == '316' || Tools::substr($phone, 0, 5) == '00316' || Tools::substr( - $phone, - 0, - 6 - ) == '003106' || Tools::substr($phone, 0, 2) == '06' - ) { - if (Tools::substr($phone, 0, 6) == '003106') { - $phone = substr_replace($phone, '00316', 0, 6); - } - $response = array('type' => 'mobile', 'phone' => $phone); - } else { - $response = array('type' => 'landline', 'phone' => $phone); - } - - return $response; - } - - public function getBuckarooLabel($method, $label) - { - if (Config::get('BUCKAROO_' . $method . '_LABEL')) { - $label = Config::get('BUCKAROO_' . $method . '_LABEL'); - } - - if (Config::get('BUCKAROO_' . $method . '_FEE')) { - $buckarooFee = Config::get('BUCKAROO_' . $method . '_FEE'); - if ($buckarooFee > 0) { - $label .= ' + ' . Tools::displayPrice($buckarooFee, $this->context->currency->id); - } - } - return $this->l($label); - } - public function getBuckarooFeeByCartId($id_cart) { - $sql = 'SELECT buckaroo_fee FROM ' . _DB_PREFIX_ . 'buckaroo_fee where id_cart = ' . (int) ($id_cart); - return Db::getInstance()->getValue($sql); - } - - public function getBuckarooFees() - { - $methods = [ - 'IDEAL', - 'BUCKAROOPAYPAL', - 'SDD', - 'GIROPAY', - 'KBC', - 'MISTERCASH', - 'GIFTCARD', - 'CREDITCARD', - 'SOFORTBANKING', - 'BELFIUS', - 'TRANSFER', - 'AFTERPAY', - 'KLARNA', - 'APPLEPAY' - ]; - $result = []; - foreach ($methods as $method) { - if (Config::get('BUCKAROO_' . $method . '_FEE')) { - $buckarooFee = Config::get('BUCKAROO_' . $method . '_FEE'); - if ($buckarooFee > 0) { - $result[$method] = [ - "buckarooFee" => $buckarooFee, - "buckarooFeeDisplay" => Tools::displayPrice($buckarooFee), - ]; - } - } - } - return $result; - } + $sql = 'SELECT buckaroo_fee FROM ' . _DB_PREFIX_ . 'buckaroo_fee where id_cart = ' . (int) $id_cart; - public function getBuckarooFeeInputs($method) - { - $result = []; - if (Config::get('BUCKAROO_' . $method . '_FEE')) { - $buckarooFee = Config::get('BUCKAROO_' . $method . '_FEE'); - if ($buckarooFee > 0) { - $result = [ - [ - 'type' => 'hidden', - 'name' => "payment-fee-price", - 'value' => $buckarooFee, - ], - [ - 'type' => 'hidden', - 'name' => "payment-fee-price-display", - 'value' => Tools::displayPrice($buckarooFee), - ], - ]; - } - } - return $result; + return Db::getInstance()->getValue($sql); } + /** + * @throws LocalizationException + */ public function hookActionEmailSendBefore($params) { if (!isset($params['cart']->id)) { @@ -1072,24 +492,24 @@ public function hookActionEmailSendBefore($params) return true; } - if ($params['template'] === 'order_conf' || - $params['template'] === 'account' || - $params['template'] === 'backoffice_order' || - $params['template'] === 'contact_form' || - $params['template'] === 'credit_slip' || - $params['template'] === 'in_transit' || - $params['template'] === 'order_changed' || - $params['template'] === 'order_merchant_comment' || - $params['template'] === 'order_return_state' || - $params['template'] === 'cheque' || - $params['template'] === 'payment' || - $params['template'] === 'preparation' || - $params['template'] === 'shipped' || - $params['template'] === 'order_canceled' || - $params['template'] === 'payment_error' || - $params['template'] === 'outofstock' || - $params['template'] === 'bankwire' || - $params['template'] === 'refund') { + if ($params['template'] === 'order_conf' + || $params['template'] === 'account' + || $params['template'] === 'backoffice_order' + || $params['template'] === 'contact_form' + || $params['template'] === 'credit_slip' + || $params['template'] === 'in_transit' + || $params['template'] === 'order_changed' + || $params['template'] === 'order_merchant_comment' + || $params['template'] === 'order_return_state' + || $params['template'] === 'cheque' + || $params['template'] === 'payment' + || $params['template'] === 'preparation' + || $params['template'] === 'shipped' + || $params['template'] === 'order_canceled' + || $params['template'] === 'payment_error' + || $params['template'] === 'outofstock' + || $params['template'] === 'bankwire' + || $params['template'] === 'refund') { $order = Order::getByCartId($cart->id); if (!$order) { return true; @@ -1097,13 +517,17 @@ public function hookActionEmailSendBefore($params) $buckarooFee = $this->getBuckarooFeeByCartId($cart->id); if ($buckarooFee) { - $params['templateVars']['{buckaroo_fee}'] = Tools::displayPrice($buckarooFee); + $params['templateVars']['{buckaroo_fee}'] = $this->formatPrice($buckarooFee); } else { - $params['templateVars']['{buckaroo_fee}'] = Tools::displayPrice(0); + $params['templateVars']['{buckaroo_fee}'] = $this->formatPrice(0); } } } + /** + * @throws SmartyException + * @throws LocalizationException + */ public function hookDisplayPDFInvoice($params) { if ($params['object'] instanceof OrderInvoice) { @@ -1117,7 +541,7 @@ public function hookDisplayPDFInvoice($params) $this->context->smarty->assign( [ - 'order_buckaroo_fee' => Tools::displayPrice($buckarooFee), + 'order_buckaroo_fee' => $this->formatPrice($buckarooFee), ] ); @@ -1127,161 +551,151 @@ public function hookDisplayPDFInvoice($params) } } - public function hookDisplayBeforeCarrier(array $params) + public function isPaymentModeActive($method) { - $cart = isset($params['cart']) ? $params['cart'] : null; - if ($cart === null || !$cart->id_address_delivery) { - return ''; - } - - $address = new Address($cart->id_address_delivery); - $country = new Country($address->id_country); - $context = $this->context; - - $this->smarty->assign(array( - 'buckaroo_idin_test' => Configuration::get('BUCKAROO_IDIN_TEST'), - 'this_path' => _MODULE_DIR_ . $this->tpl_folder . '/', - 'cart' => $cart, - 'to_country' => $country->iso_code, - 'to_postal_code' => $address->postcode, - 'language' => $context->language->language_code, - )); - - if ($this->isIdinBoxShow($cart)) { - return $this->display(__FILE__, 'views/templates/hook/idin.tpl'); - } - } + $isLive = (int) \Configuration::get(Config::BUCKAROO_TEST); + $configArray = $this->getBuckarooConfigService()->getConfigArrayForMethod($method); - public function isIdinBoxShow($cart) - { - if ($this->isIdinCheckout($cart)) { - if ($this->isCustomerIdinValid($cart)) { - return false; + if (!empty($configArray) && isset($configArray['mode'])) { + if ($isLive === 0) { + return $configArray['mode'] === 'test'; + } elseif ($isLive === 1) { + return $configArray['mode'] === 'live'; } - return true; } + return false; } public function isIdinProductBoxShow($params) { - $buckaroo_idin_category = array(); - $tmp_arr = Configuration::get('BUCKAROO_IDIN_CATEGORY'); - if (!empty($tmp_arr)) { - $c = unserialize($tmp_arr); - if (is_array($c)) { - $buckaroo_idin_category = array_flip($c); - } + if (!$this->isPaymentModeActive('idin')) { + return false; } - if (Configuration::get('BUCKAROO_IDIN_ENABLED') == '1') { - switch (Configuration::get('BUCKAROO_IDIN_MODE')) { - case 1: - if (isset($params['product']->buckaroo_idin) && $params['product']->buckaroo_idin == 1) { - return true; - } - break; - case 2: - if (isset($params['product']->id_category_default) - && isset($buckaroo_idin_category[$params['product']->id_category_default]) - ) { - return true; - } - break; - default: - return true; - } + switch ($this->getBuckarooConfigService()->getConfigValue('idin', 'display_mode')) { + case 'product': + return $this->isProductBuckarooIdinEnabled($params['product']->id); + case 'global': + return true; + default: + return false; } - return false; + } + + private function isProductBuckarooIdinEnabled($productId) + { + $sql = 'SELECT buckaroo_idin FROM ' . _DB_PREFIX_ . 'bk_product_idin WHERE product_id = ' . (int) $productId; + $buckarooIdin = Db::getInstance()->getValue($sql); + + return $buckarooIdin == 1; } public function isIdinCheckout($cart) { - $buckaroo_idin_category = array(); - $tmp_arr = Configuration::get('BUCKAROO_IDIN_CATEGORY'); - if (!empty($tmp_arr)) { - $c = unserialize($tmp_arr); - if (is_array($c)) { - $buckaroo_idin_category = array_flip($c); - } + if (!$this->isPaymentModeActive('idin')) { + return false; } - $cart_products = $cart->getProducts(true); - - if (Configuration::get('BUCKAROO_IDIN_ENABLED') == '1') { - switch (Configuration::get('BUCKAROO_IDIN_MODE')) { - case 1: - foreach ($cart_products as $value) { - $product = new Product($value['id_product']); - if (isset($product->buckaroo_idin) && $product->buckaroo_idin == 1) { - return true; - } - } - break; - case 2: - foreach ($cart_products as $product) { - if (isset($product['id_category_default']) - && isset($buckaroo_idin_category[$product['id_category_default']]) - ) { - return true; - } - } - break; - default: - return true; - } + switch ($this->getBuckarooConfigService()->getConfigValue('idin', 'display_mode')) { + case 'product': + foreach ($cart->getProducts(true) as $value) { + return $this->isProductBuckarooIdinEnabled($value['id_product']); + } + break; + case 'global': + return true; + default: + return false; } + return false; } - public function isCustomerIdinValid($cart) + public function getBuckarooConfigService() { - $id_customer = $cart->id_customer; - $query = 'SELECT c.`buckaroo_idin_iseighteenorolder`' - . ' FROM `' . _DB_PREFIX_ . 'customer` c ' - . ' WHERE c.id_customer = ' . (int) $id_customer; - return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query) == 'True' ? true : false; + return $this->symContainer->get('buckaroo.config.api.config.service'); } - public function hookActionAdminCustomersListingFieldsModifier($params) + public function getBuckarooFeeService() { - $params['fields']['buckaroo_idin_consumerbin'] = array( - 'title' => $this->l('iDIN Consumerbin'), - 'align' => 'center', - ); - - $params['fields']['buckaroo_idin_iseighteenorolder'] = array( - 'title' => $this->l('iDIN isEighteenOrOlder'), - 'align' => 'center', - ); + return $this->symContainer->get('buckaroo.config.api.fee.service'); } public function hookDisplayProductExtraContent($params) { if ($this->isIdinProductBoxShow($params)) { - $content = $this->display(__FILE__, 'views/templates/hook/idin_box.tpl', array( + $this->smarty->assign([ 'this_path' => _MODULE_DIR_ . $this->tpl_folder . '/', - )); + ]); - $array = []; - $array[] = (new PrestaShop\PrestaShop\Core\Product\ProductExtraContent()) - ->setTitle('iDIN Info') - ->setContent($content); + $content = $this->display(__FILE__, 'views/templates/hook/idin_box.tpl'); + $productExtraContent = new PrestaShop\PrestaShop\Core\Product\ProductExtraContent(); + $productExtraContent->setTitle($this->l('iDIN Info')); + $productExtraContent->setContent($content); - return $array; + return [$productExtraContent]; } } - public function hookDisplayAdminProductsMainStepLeftColumnMiddle($params) + /** + * Modify product form builder + * + * @param array $params + * + * @throws Exception + */ + public function hookActionProductFormBuilderModifier(array $params): void + { + /** @var ProductFormModifier $productFormModifier */ + $productFormModifier = $this->get(ProductFormModifier::class); + $productId = (int) $params['id']; + + $productFormModifier->modify($productId, $params['form_builder']); + } + + public function hookActionAfterUpdateProductFormHandler(array $params) + { + $this->updateProductFormHandler($params); + } + + private function updateProductFormHandler(array $params) { - $product = new Product($params['id_product']); - $languages = Language::getLanguages(false); - $this->context->smarty->assign(array( - 'buckaroo_idin' => $product->buckaroo_idin, - 'languages' => $languages, - 'default_language' => $this->context->employee->id_lang, - )); - - return $this->display(__FILE__, 'views/templates/hook/product_fileds.tpl'); + $productId = $params['form_data']['id']; + $buckarooIdin = $params['form_data']['buckaroo_idin']['buckaroo_idin']; + + $buckarooIdinService = new BuckarooIdinService(); + + try { + if ($buckarooIdinService->checkProductIdExists($productId)) { + $buckarooIdinService->updateProductData($productId, $buckarooIdin); + } else { + $buckarooIdinService->insertProductData($productId, $buckarooIdin); + } + } catch (Exception $e) { + $this->logger->logError('Buckaroo3::updateCustomerReviewStatus - ' . $e->getMessage()); + } + } + + private function setContainer() + { + global $kernel; + + if (!$kernel) { + require_once _PS_ROOT_DIR_ . '/app/AppKernel.php'; + $kernel = new \AppKernel('prod', false); + $kernel->boot(); + } + $this->symContainer = $kernel->getContainer(); + } + + /** + * @throws LocalizationException + */ + private function formatPrice($amount): string + { + $currency = \Context::getContext()->currency; + + return $this->locale->formatPrice($amount, $currency->iso_code); } } diff --git a/buckaroo3_admin.php b/buckaroo3_admin.php deleted file mode 100644 index 466c8cce2..000000000 --- a/buckaroo3_admin.php +++ /dev/null @@ -1,1554 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -class Buckaroo3Admin -{ - private $error = ''; - - public function __construct($module) - { - $this->module = $module; - } - - //put your code here - public function postProcess() - { - if (Tools::getValue('refresh_module')) { - $this->module->createTransactionTable(); - $idTab = Tab::getIdFromClassName('AdminRefund'); - if ($idTab == 0) { - $this->module->installModuleTab('AdminRefund', array(1 => 'Buckaroo Refunds'), -1); - } - } else { - if (Tools::isSubmit('BUCKAROO_TEST')) { - if (!empty( - $_FILES['BUCKAROO_CERTIFICATE'] - ) && !empty($_FILES['BUCKAROO_CERTIFICATE']['tmp_name']) - && !empty($_FILES['BUCKAROO_CERTIFICATE']['tmp_name']) - ) { - if ($_FILES['BUCKAROO_CERTIFICATE']["error"] > 0) { - $this->error .= $this->module->l('Error uploading file'); - } else { - if (stripos($_FILES['BUCKAROO_CERTIFICATE']["name"], '.pem', 1) === false) { - $error = 'Expected file extension: .pem
Get file type: ' . $_FILES['BUCKAROO_CERTIFICATE']["type"] . '
Get file name: ' . $_FILES['BUCKAROO_CERTIFICATE']["name"];//phpcs:ignore - $this->error .= $this->module->l('Wrong file type!
') . $error; - } else { - $file_name = $_FILES['BUCKAROO_CERTIFICATE']['name']; - $path = _PS_MODULE_DIR_ . $this->module->name . '/certificate/'; - - if (!is_writable($path)) { - $this->error .= $this->module->l('Cannot save certificate in location ') . $path; - } else - if ( - move_uploaded_file( - $_FILES['BUCKAROO_CERTIFICATE']['tmp_name'], - $path.$file_name - ) - ) { - Configuration::updateValue('BUCKAROO_CERTIFICATE_FILE', $file_name); - Configuration::updateValue( - 'BUCKAROO_CERTIFICATE', - $file_name . ' (' . date('Y.m.d H:i') . ')' - ); - } else { - $this->error .= $this->module->l('Error move uploaded file'); - } - }; - } - } - Configuration::updateValue('BUCKAROO_TEST', Tools::getValue('BUCKAROO_TEST')); - Configuration::updateValue( - 'BUCKAROO_ORDER_STATE_DEFAULT', - Tools::getValue('BUCKAROO_ORDER_STATE_DEFAULT') - ); - Configuration::updateValue( - 'BUCKAROO_ORDER_STATE_SUCCESS', - Tools::getValue('BUCKAROO_ORDER_STATE_SUCCESS') - ); - Configuration::updateValue( - 'BUCKAROO_ORDER_STATE_FAILED', - Tools::getValue('BUCKAROO_ORDER_STATE_FAILED') - ); - Configuration::updateValue('BUCKAROO_MERCHANT_KEY', Tools::getValue('BUCKAROO_MERCHANT_KEY')); - Configuration::updateValue('BUCKAROO_SECRET_KEY', Tools::getValue('BUCKAROO_SECRET_KEY')); - Configuration::updateValue( - 'BUCKAROO_CERTIFICATE_THUMBPRINT', - Tools::getValue('BUCKAROO_CERTIFICATE_THUMBPRINT') - ); - Configuration::updateValue('BUCKAROO_TRANSACTION_LABEL', Tools::getValue('BUCKAROO_TRANSACTION_LABEL')); - Configuration::updateValue('BUCKAROO_TRANSACTION_FEE', Tools::getValue('BUCKAROO_TRANSACTION_FEE')); - Configuration::updateValue( - 'BUCKAROO_TRANSACTION_RETURNURL', - Tools::getValue('BUCKAROO_TRANSACTION_RETURNURL') - ); - Configuration::updateValue( - 'BUCKAROO_TRANSACTION_CULTURE', - Tools::getValue('BUCKAROO_TRANSACTION_CULTURE') - ); - - Configuration::updateValue( - 'BUCKAROO_PGST_PAYMENT', - serialize(Tools::getValue('BUCKAROO_PGST_PAYMENT')) - ); - - Configuration::updateValue( - 'BUCKAROO_PGBY_PAYMENT', - serialize(Tools::getValue('BUCKAROO_PGBY_PAYMENT')) - ); - - Configuration::updateValue( - 'BUCKAROO_IDIN_CATEGORY', - serialize(Tools::getValue('BUCKAROO_IDIN_CATEGORY')) - ); - - Configuration::updateValue('BUCKAROO_IDIN_ENABLED', Tools::getValue('BUCKAROO_IDIN_ENABLED')); - Configuration::updateValue('BUCKAROO_IDIN_TEST', Tools::getValue('BUCKAROO_IDIN_TEST')); - Configuration::updateValue('BUCKAROO_IDIN_MODE', Tools::getValue('BUCKAROO_IDIN_MODE')); - Configuration::updateValue('BUCKAROO_PAYPAL_ENABLED', Tools::getValue('BUCKAROO_PAYPAL_ENABLED')); - Configuration::updateValue('BUCKAROO_PAYPAL_TEST', Tools::getValue('BUCKAROO_PAYPAL_TEST')); - Configuration::updateValue('BUCKAROO_PAYPAL_LABEL', Tools::getValue('BUCKAROO_PAYPAL_LABEL')); - Configuration::updateValue( - 'BUCKAROO_BUCKAROOPAYPAL_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_BUCKAROOPAYPAL_FEE')) - ); - Configuration::updateValue('BUCKAROO_EMPAYMENT_ENABLED', Tools::getValue('BUCKAROO_EMPAYMENT_ENABLED')); - Configuration::updateValue('BUCKAROO_EMPAYMENT_TEST', Tools::getValue('BUCKAROO_EMPAYMENT_TEST')); - Configuration::updateValue('BUCKAROO_EMPAYMENT_LABEL', Tools::getValue('BUCKAROO_EMPAYMENT_LABEL')); - Configuration::updateValue( - 'BUCKAROO_EMPAYMENT_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_EMPAYMENT_FEE')) - ); - Configuration::updateValue('BUCKAROO_DD_ENABLED', Tools::getValue('BUCKAROO_DD_ENABLED')); - Configuration::updateValue('BUCKAROO_DD_TEST', Tools::getValue('BUCKAROO_DD_TEST')); - Configuration::updateValue('BUCKAROO_DD_LABEL', Tools::getValue('BUCKAROO_DD_LABEL')); - Configuration::updateValue( - 'BUCKAROO_DD_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_DD_FEE')) - ); - Configuration::updateValue( - 'BUCKAROO_DD_USECREDITMANAGMENT', - Tools::getValue('BUCKAROO_DD_USECREDITMANAGMENT') - ); - Configuration::updateValue('BUCKAROO_DD_INVOICEDELAY', Tools::getValue('BUCKAROO_DD_INVOICEDELAY')); - Configuration::updateValue('BUCKAROO_DD_DATEDUE', Tools::getValue('BUCKAROO_DD_DATEDUE')); - Configuration::updateValue( - 'BUCKAROO_DD_MAXREMINDERLEVEL', - Tools::getValue('BUCKAROO_DD_MAXREMINDERLEVEL') - ); - Configuration::updateValue('BUCKAROO_SDD_ENABLED', Tools::getValue('BUCKAROO_SDD_ENABLED')); - Configuration::updateValue('BUCKAROO_SDD_TEST', Tools::getValue('BUCKAROO_SDD_TEST')); - Configuration::updateValue('BUCKAROO_SDD_LABEl', Tools::getValue('BUCKAROO_SDD_LABEL')); - Configuration::updateValue( - 'BUCKAROO_SDD_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_SDD_FEE')) - ); - Configuration::updateValue('BUCKAROO_IDEAL_ENABLED', Tools::getValue('BUCKAROO_IDEAL_ENABLED')); - Configuration::updateValue('BUCKAROO_IDEAL_TEST', Tools::getValue('BUCKAROO_IDEAL_TEST')); - Configuration::updateValue('BUCKAROO_IDEAL_LABEL', Tools::getValue('BUCKAROO_IDEAL_LABEL')); - Configuration::updateValue( - 'BUCKAROO_IDEAL_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_IDEAL_FEE')) - ); - Configuration::updateValue('BUCKAROO_GIROPAY_ENABLED', Tools::getValue('BUCKAROO_GIROPAY_ENABLED')); - Configuration::updateValue('BUCKAROO_GIROPAY_TEST', Tools::getValue('BUCKAROO_GIROPAY_TEST')); - Configuration::updateValue('BUCKAROO_GIROPAY_LABEL', Tools::getValue('BUCKAROO_GIROPAY_LABEL')); - Configuration::updateValue( - 'BUCKAROO_GIROPAY_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_GIROPAY_FEE')) - ); - Configuration::updateValue('BUCKAROO_KBC_ENABLED', Tools::getValue('BUCKAROO_KBC_ENABLED')); - Configuration::updateValue('BUCKAROO_KBC_TEST', Tools::getValue('BUCKAROO_KBC_TEST')); - Configuration::updateValue('BUCKAROO_KBC_LABEL', Tools::getValue('BUCKAROO_KBC_LABEL')); - Configuration::updateValue( - 'BUCKAROO_KBC_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_KBC_FEE')) - ); - Configuration::updateValue( - 'BUCKAROO_MISTERCASH_ENABLED', - Tools::getValue('BUCKAROO_MISTERCASH_ENABLED') - ); - Configuration::updateValue('BUCKAROO_MISTERCASH_TEST', Tools::getValue('BUCKAROO_MISTERCASH_TEST')); - Configuration::updateValue('BUCKAROO_MISTERCASH_LABEL', Tools::getValue('BUCKAROO_MISTERCASH_LABEL')); - Configuration::updateValue( - 'BUCKAROO_MISTERCASH_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_MISTERCASH_FEE')) - ); - Configuration::updateValue('BUCKAROO_GIFTCARD_ENABLED', Tools::getValue('BUCKAROO_GIFTCARD_ENABLED')); - Configuration::updateValue('BUCKAROO_GIFTCARD_TEST', Tools::getValue('BUCKAROO_GIFTCARD_TEST')); - Configuration::updateValue('BUCKAROO_GIFTCARD_LABEL', Tools::getValue('BUCKAROO_GIFTCARD_LABEL')); - Configuration::updateValue( - 'BUCKAROO_GIFTCARD_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_GIFTCARD_FEE')) - ); - Configuration::updateValue( - 'BUCKAROO_CREDITCARD_ENABLED', - Tools::getValue('BUCKAROO_CREDITCARD_ENABLED') - ); - Configuration::updateValue('BUCKAROO_CREDITCARD_TEST', Tools::getValue('BUCKAROO_CREDITCARD_TEST')); - Configuration::updateValue('BUCKAROO_CREDITCARD_LABEL', Tools::getValue('BUCKAROO_CREDITCARD_LABEL')); - Configuration::updateValue( - 'BUCKAROO_CREDITCARD_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_CREDITCARD_FEE')) - ); - Configuration::updateValue( - 'BUCKAROO_SOFORTBANKING_ENABLED', - Tools::getValue('BUCKAROO_SOFORTBANKING_ENABLED') - ); - Configuration::updateValue( - 'BUCKAROO_SOFORTBANKING_TEST', - Tools::getValue('BUCKAROO_SOFORTBANKING_TEST') - ); - Configuration::updateValue( - 'BUCKAROO_SOFORTBANKING_LABEL', - Tools::getValue('BUCKAROO_SOFORTBANKING_LABEL') - ); - Configuration::updateValue( - 'BUCKAROO_SOFORTBANKING_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_SOFORTBANKING_FEE')) - ); - Configuration::updateValue( - 'BUCKAROO_BELFIUS_ENABLED', - Tools::getValue('BUCKAROO_BELFIUS_ENABLED') - ); - Configuration::updateValue( - 'BUCKAROO_BELFIUS_TEST', - Tools::getValue('BUCKAROO_BELFIUS_TEST') - ); - Configuration::updateValue( - 'BUCKAROO_BELFIUS_LABEL', - Tools::getValue('BUCKAROO_BELFIUS_LABEL') - ); - Configuration::updateValue( - 'BUCKAROO_BELFIUS_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_BELFIUS_FEE')) - ); - Configuration::updateValue('BUCKAROO_TRANSFER_ENABLED', Tools::getValue('BUCKAROO_TRANSFER_ENABLED')); - Configuration::updateValue('BUCKAROO_TRANSFER_TEST', Tools::getValue('BUCKAROO_TRANSFER_TEST')); - Configuration::updateValue('BUCKAROO_TRANSFER_LABEL', Tools::getValue('BUCKAROO_TRANSFER_LABEL')); - Configuration::updateValue( - 'BUCKAROO_TRANSFER_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_TRANSFER_FEE')) - ); - Configuration::updateValue('BUCKAROO_TRANSFER_DATEDUE', Tools::getValue('BUCKAROO_TRANSFER_DATEDUE')); - Configuration::updateValue('BUCKAROO_TRANSFER_SENDMAIL', Tools::getValue('BUCKAROO_TRANSFER_SENDMAIL')); - - Configuration::updateValue('BUCKAROO_AFTERPAY_ENABLED', Tools::getValue('BUCKAROO_AFTERPAY_ENABLED')); - Configuration::updateValue('BUCKAROO_AFTERPAY_TEST', Tools::getValue('BUCKAROO_AFTERPAY_TEST')); - Configuration::updateValue('BUCKAROO_AFTERPAY_LABEL', Tools::getValue('BUCKAROO_AFTERPAY_LABEL')); - Configuration::updateValue( - 'BUCKAROO_AFTERPAY_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_AFTERPAY_FEE')) - ); - Configuration::updateValue( - 'BUCKAROO_AFTERPAY_DEFAULT_VAT', - Tools::getValue('BUCKAROO_AFTERPAY_DEFAULT_VAT') - ); - Configuration::updateValue( - 'BUCKAROO_AFTERPAY_WRAPPING_VAT', - Tools::getValue('BUCKAROO_AFTERPAY_WRAPPING_VAT') - ); - Configuration::updateValue( - 'BUCKAROO_AFTERPAY_TAXRATE', - serialize(Tools::getValue('BUCKAROO_AFTERPAY_TAXRATE')) - ); - - Configuration::updateValue('BUCKAROO_KLARNA_ENABLED', Tools::getValue('BUCKAROO_KLARNA_ENABLED')); - Configuration::updateValue('BUCKAROO_KLARNA_TEST', Tools::getValue('BUCKAROO_KLARNA_TEST')); - Configuration::updateValue('BUCKAROO_KLARNA_LABEL', Tools::getValue('BUCKAROO_KLARNA_LABEL')); - Configuration::updateValue( - 'BUCKAROO_KLARNA_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_KLARNA_FEE')) - ); - Configuration::updateValue( - 'BUCKAROO_KLARNA_DEFAULT_VAT', - Tools::getValue('BUCKAROO_KLARNA_DEFAULT_VAT') - ); - Configuration::updateValue( - 'BUCKAROO_KLARNA_WRAPPING_VAT', - Tools::getValue('BUCKAROO_KLARNA_WRAPPING_VAT') - ); - Configuration::updateValue( - 'BUCKAROO_KLARNA_TAXRATE', - serialize(Tools::getValue('BUCKAROO_KLARNA_TAXRATE')) - ); - Configuration::updateValue( - 'BUCKAROO_KLARNA_BUSINESS', - serialize(Tools::getValue('BUCKAROO_KLARNA_BUSINESS')) - ); - - Configuration::updateValue('BUCKAROO_APPLEPAY_ENABLED', Tools::getValue('BUCKAROO_APPLEPAY_ENABLED')); - Configuration::updateValue('BUCKAROO_APPLEPAY_TEST', Tools::getValue('BUCKAROO_APPLEPAY_TEST')); - Configuration::updateValue('BUCKAROO_APPLEPAY_LABEL', Tools::getValue('BUCKAROO_APPLEPAY_LABEL')); - Configuration::updateValue( - 'BUCKAROO_APPLEPAY_FEE', - $this->handlePaymentFee(Tools::getValue('BUCKAROO_APPLEPAY_FEE')) - ); - } - } - return null; - } - - public function displayForm() - { - // Get default Language - $fields_value = array(); - $default_lang = (int) Configuration::get('PS_LANG_DEFAULT'); - - $helper_head = new HelperForm(); - // Module, token and currentIndex - $helper_head->module = $this->module; //$helper_fields->module = $this->module; - $helper_head->name_controller = $this->module->name; //$helper_fields->name_controller = $this->module->name; - $helper_head->token = Tools::getAdminTokenLite( - 'AdminModules' - ); //$helper_fields->token = Tools::getAdminTokenLite('AdminModules'); - $helper_head->currentIndex = - AdminController::$currentIndex . '&configure=' . $this->module->name; - // Language - $helper_head->default_form_language = $default_lang; //$helper_fields->default_form_language = $default_lang; - $helper_head->allow_employee_form_lang = $default_lang; - - // Title and toolbar - $helper_head->title = $this->module->displayName; - $helper_head->show_toolbar = true; // false -> remove toolbar - $helper_head->toolbar_scroll = true; // yes - > Toolbar is always visible on the top of the screen. - $helper_head->submit_action = 'submit' . $this->module->name; - $helper_head->toolbar_btn = array( - 'save' => array( - 'desc' => $this->module->l('Save'), - 'js' => "$('#buckaroo3settings_form').submit();", - ), - 'back' => array( - 'href' => AdminController::$currentIndex . '&token=' . Tools::getAdminTokenLite('AdminModules'), - 'desc' => $this->module->l('Back to list'), - ), - ); - - $fields_value['BUCKAROO_TEST'] = Configuration::get('BUCKAROO_TEST'); - $fields_value['BUCKAROO_ORDER_STATE_DEFAULT'] = Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT'); - $fields_value['BUCKAROO_ORDER_STATE_SUCCESS'] = Configuration::get('BUCKAROO_ORDER_STATE_SUCCESS') ? - Configuration::get('BUCKAROO_ORDER_STATE_SUCCESS'):Configuration::get('PS_OS_PAYMENT'); - $fields_value['BUCKAROO_ORDER_STATE_FAILED'] = Configuration::get('BUCKAROO_ORDER_STATE_FAILED') ? - Configuration::get('BUCKAROO_ORDER_STATE_FAILED') : Configuration::get('PS_OS_CANCELED'); - $fields_value['BUCKAROO_MERCHANT_KEY'] = Configuration::get('BUCKAROO_MERCHANT_KEY'); - $fields_value['BUCKAROO_SECRET_KEY'] = Configuration::get('BUCKAROO_SECRET_KEY'); - $fields_value['BUCKAROO_CERTIFICATE_THUMBPRINT'] = Configuration::get('BUCKAROO_CERTIFICATE_THUMBPRINT'); - $fields_value['BUCKAROO_CERTIFICATE'] = Configuration::get('BUCKAROO_CERTIFICATE'); - $fields_value['BUCKAROO_TRANSACTION_LABEL'] = Configuration::get('BUCKAROO_TRANSACTION_LABEL'); - $fields_value['BUCKAROO_TRANSACTION_FEE'] = Configuration::get('BUCKAROO_TRANSACTION_FEE'); - $fields_value['BUCKAROO_TRANSACTION_RETURNURL'] = Configuration::get('BUCKAROO_TRANSACTION_RETURNURL'); - if (empty($fields_value['BUCKAROO_TRANSACTION_RETURNURL'])) { - $fields_value['BUCKAROO_TRANSACTION_RETURNURL'] = 'http' . ((!empty( - $_SERVER["HTTPS"] - ) && $_SERVER["HTTPS"] == "on") ? 's' : '') . '://' . $_SERVER["SERVER_NAME"] . __PS_BASE_URI__ . 'index.php?fc=module&module=buckaroo3&controller=return';//phpcs:ignore - } - $fields_value['BUCKAROO_TRANSACTION_CULTURE'] = Configuration::get('BUCKAROO_TRANSACTION_CULTURE'); - - $fields_value['BUCKAROO_PGST_PAYMENT'] = array(); - $fields_value['BUCKAROO_PGBY_PAYMENT'] = array(); - $fields_value['BUCKAROO_IDIN_CATEGORY'] = array(); - - $tmp_arr = Configuration::get('BUCKAROO_PGST_PAYMENT'); - if (!empty($tmp_arr)) { - $c = unserialize($tmp_arr); - if (is_array($c)) { - $fields_value['BUCKAROO_PGST_PAYMENT'] = array_flip($c); - } - } - - $tmp_arr = Configuration::get('BUCKAROO_PGBY_PAYMENT'); - if (!empty($tmp_arr)) { - $c = unserialize($tmp_arr); - if (is_array($c)) { - $fields_value['BUCKAROO_PGBY_PAYMENT'] = array_flip($c); - } - } - - $tmp_arr = Configuration::get('BUCKAROO_IDIN_CATEGORY'); - if (!empty($tmp_arr)) { - $c = unserialize($tmp_arr); - if (is_array($c)) { - $fields_value['BUCKAROO_IDIN_CATEGORY'] = array_flip($c); - } - } - - $fields_value['BUCKAROO_IDIN_ENABLED'] = Configuration::get('BUCKAROO_IDIN_ENABLED'); - $fields_value['BUCKAROO_IDIN_TEST'] = Configuration::get('BUCKAROO_IDIN_TEST'); - $fields_value['BUCKAROO_IDIN_MODE'] = Configuration::get('BUCKAROO_IDIN_MODE'); - $fields_value['BUCKAROO_PAYPAL_ENABLED'] = Configuration::get('BUCKAROO_PAYPAL_ENABLED'); - $fields_value['BUCKAROO_PAYPAL_TEST'] = Configuration::get('BUCKAROO_PAYPAL_TEST'); - $fields_value['BUCKAROO_PAYPAL_LABEL'] = Configuration::get('BUCKAROO_PAYPAL_LABEL'); - $fields_value['BUCKAROO_BUCKAROOPAYPAL_FEE'] = Configuration::get('BUCKAROO_BUCKAROOPAYPAL_FEE'); - $fields_value['BUCKAROO_EMPAYMENT_ENABLED'] = Configuration::get('BUCKAROO_EMPAYMENT_ENABLED'); - $fields_value['BUCKAROO_EMPAYMENT_TEST'] = Configuration::get('BUCKAROO_EMPAYMENT_TEST'); - $fields_value['BUCKAROO_EMPAYMENT_LABEL'] = Configuration::get('BUCKAROO_EMPAYMENT_LABEL'); - $fields_value['BUCKAROO_EMPAYMENT_FEE'] = Configuration::get('BUCKAROO_EMPAYMENT_FEE'); - $fields_value['BUCKAROO_DD_ENABLED'] = Configuration::get('BUCKAROO_DD_ENABLED'); - $fields_value['BUCKAROO_DD_TEST'] = Configuration::get('BUCKAROO_DD_TEST'); - $fields_value['BUCKAROO_DD_LABEL'] = Configuration::get('BUCKAROO_DD_LABEL'); - $fields_value['BUCKAROO_DD_FEE'] = Configuration::get('BUCKAROO_DD_FEE'); - $fields_value['BUCKAROO_DD_USECREDITMANAGMENT'] = Configuration::get('BUCKAROO_DD_USECREDITMANAGMENT'); - $fields_value['BUCKAROO_DD_INVOICEDELAY'] = Configuration::get('BUCKAROO_DD_INVOICEDELAY'); - $fields_value['BUCKAROO_DD_DATEDUE'] = Configuration::get('BUCKAROO_DD_DATEDUE'); - $fields_value['BUCKAROO_DD_MAXREMINDERLEVEL'] = Configuration::get('BUCKAROO_DD_MAXREMINDERLEVEL'); - $fields_value['BUCKAROO_SDD_ENABLED'] = Configuration::get('BUCKAROO_SDD_ENABLED'); - $fields_value['BUCKAROO_SDD_TEST'] = Configuration::get('BUCKAROO_SDD_TEST'); - $fields_value['BUCKAROO_SDD_LABEL'] = Configuration::get('BUCKAROO_SDD_LABEL'); - $fields_value['BUCKAROO_SDD_FEE'] = Configuration::get('BUCKAROO_SDD_FEE'); - $fields_value['BUCKAROO_IDEAL_NOTIFICATIONDELAY'] = Configuration::get('BUCKAROO_IDEAL_NOTIFICATIONDELAY'); - $fields_value['BUCKAROO_IDEAL_ENABLED'] = Configuration::get('BUCKAROO_IDEAL_ENABLED'); - $fields_value['BUCKAROO_IDEAL_TEST'] = Configuration::get('BUCKAROO_IDEAL_TEST'); - $fields_value['BUCKAROO_IDEAL_LABEL'] = Configuration::get('BUCKAROO_IDEAL_LABEL'); - $fields_value['BUCKAROO_IDEAL_FEE'] = Configuration::get('BUCKAROO_IDEAL_FEE'); - $fields_value['BUCKAROO_GIROPAY_ENABLED'] = Configuration::get('BUCKAROO_GIROPAY_ENABLED'); - $fields_value['BUCKAROO_GIROPAY_TEST'] = Configuration::get('BUCKAROO_GIROPAY_TEST'); - $fields_value['BUCKAROO_GIROPAY_LABEL'] = Configuration::get('BUCKAROO_GIROPAY_LABEL'); - $fields_value['BUCKAROO_GIROPAY_FEE'] = Configuration::get('BUCKAROO_GIROPAY_FEE'); - - $fields_value['BUCKAROO_KBC_ENABLED'] = Configuration::get('BUCKAROO_KBC_ENABLED'); - $fields_value['BUCKAROO_KBC_TEST'] = Configuration::get('BUCKAROO_KBC_TEST'); - $fields_value['BUCKAROO_KBC_LABEL'] = Configuration::get('BUCKAROO_KBC_LABEL'); - $fields_value['BUCKAROO_KBC_FEE'] = Configuration::get('BUCKAROO_KBC_FEE'); - - $fields_value['BUCKAROO_MISTERCASH_ENABLED'] = Configuration::get('BUCKAROO_MISTERCASH_ENABLED'); - $fields_value['BUCKAROO_MISTERCASH_TEST'] = Configuration::get('BUCKAROO_MISTERCASH_TEST'); - $fields_value['BUCKAROO_MISTERCASH_LABEL'] = Configuration::get('BUCKAROO_MISTERCASH_LABEL'); - $fields_value['BUCKAROO_MISTERCASH_FEE'] = Configuration::get('BUCKAROO_MISTERCASH_FEE'); - $fields_value['BUCKAROO_GIFTCARD_ENABLED'] = Configuration::get('BUCKAROO_GIFTCARD_ENABLED'); - $fields_value['BUCKAROO_GIFTCARD_TEST'] = Configuration::get('BUCKAROO_GIFTCARD_TEST'); - $fields_value['BUCKAROO_GIFTCARD_LABEL'] = Configuration::get('BUCKAROO_GIFTCARD_LABEL'); - $fields_value['BUCKAROO_GIFTCARD_FEE'] = Configuration::get('BUCKAROO_GIFTCARD_FEE'); - $fields_value['BUCKAROO_GIFTCARD_ALLOWED_CARDS'] = Configuration::get('BUCKAROO_GIFTCARD_ALLOWED_CARDS'); - $fields_value['BUCKAROO_CREDITCARD_ALLOWED_CARDS'] = Configuration::get('BUCKAROO_CREDITCARD_ALLOWED_CARDS'); - $fields_value['BUCKAROO_CREDITCARD_ENABLED'] = Configuration::get('BUCKAROO_CREDITCARD_ENABLED'); - $fields_value['BUCKAROO_CREDITCARD_TEST'] = Configuration::get('BUCKAROO_CREDITCARD_TEST'); - $fields_value['BUCKAROO_CREDITCARD_LABEL'] = Configuration::get('BUCKAROO_CREDITCARD_LABEL'); - $fields_value['BUCKAROO_CREDITCARD_FEE'] = Configuration::get('BUCKAROO_CREDITCARD_FEE'); - $fields_value['BUCKAROO_SOFORTBANKING_ENABLED'] = Configuration::get('BUCKAROO_SOFORTBANKING_ENABLED'); - $fields_value['BUCKAROO_SOFORTBANKING_TEST'] = Configuration::get('BUCKAROO_SOFORTBANKING_TEST'); - $fields_value['BUCKAROO_SOFORTBANKING_LABEL'] = Configuration::get('BUCKAROO_SOFORTBANKING_LABEL'); - $fields_value['BUCKAROO_SOFORTBANKING_FEE'] = Configuration::get('BUCKAROO_SOFORTBANKING_FEE'); - $fields_value['BUCKAROO_BELFIUS_ENABLED'] = Configuration::get('BUCKAROO_BELFIUS_ENABLED'); - $fields_value['BUCKAROO_BELFIUS_TEST'] = Configuration::get('BUCKAROO_BELFIUS_TEST'); - $fields_value['BUCKAROO_BELFIUS_LABEL'] = Configuration::get('BUCKAROO_BELFIUS_LABEL'); - $fields_value['BUCKAROO_BELFIUS_FEE'] = Configuration::get('BUCKAROO_BELFIUS_FEE'); - $fields_value['BUCKAROO_TRANSFER_ENABLED'] = Configuration::get('BUCKAROO_TRANSFER_ENABLED'); - $fields_value['BUCKAROO_TRANSFER_TEST'] = Configuration::get('BUCKAROO_TRANSFER_TEST'); - $fields_value['BUCKAROO_TRANSFER_LABEL'] = Configuration::get('BUCKAROO_TRANSFER_LABEL'); - $fields_value['BUCKAROO_TRANSFER_FEE'] = Configuration::get('BUCKAROO_TRANSFER_FEE'); - $fields_value['BUCKAROO_TRANSFER_DATEDUE'] = Configuration::get('BUCKAROO_TRANSFER_DATEDUE'); - $fields_value['BUCKAROO_TRANSFER_SENDMAIL'] = Configuration::get('BUCKAROO_TRANSFER_SENDMAIL'); - - $fields_value['BUCKAROO_AFTERPAY_ENABLED'] = Configuration::get('BUCKAROO_AFTERPAY_ENABLED'); - $fields_value['BUCKAROO_AFTERPAY_TEST'] = Configuration::get('BUCKAROO_AFTERPAY_TEST'); - $fields_value['BUCKAROO_AFTERPAY_LABEL'] = Configuration::get('BUCKAROO_AFTERPAY_LABEL'); - $fields_value['BUCKAROO_AFTERPAY_FEE'] = Configuration::get('BUCKAROO_AFTERPAY_FEE'); - $fields_value['BUCKAROO_AFTERPAY_DEFAULT_VAT'] = Configuration::get('BUCKAROO_AFTERPAY_DEFAULT_VAT'); - $fields_value['BUCKAROO_AFTERPAY_WRAPPING_VAT'] = Configuration::get('BUCKAROO_AFTERPAY_WRAPPING_VAT'); - $fields_value['BUCKAROO_AFTERPAY_TAXRATE'] = unserialize(Configuration::get('BUCKAROO_AFTERPAY_TAXRATE')); - $fields_value['BUCKAROO_AFTERPAY_BUSINESS'] = Configuration::get('BUCKAROO_AFTERPAY_BUSINESS'); - - $fields_value['BUCKAROO_KLARNA_ENABLED'] = Configuration::get('BUCKAROO_KLARNA_ENABLED'); - $fields_value['BUCKAROO_KLARNA_TEST'] = Configuration::get('BUCKAROO_KLARNA_TEST'); - $fields_value['BUCKAROO_KLARNA_LABEL'] = Configuration::get('BUCKAROO_KLARNA_LABEL'); - $fields_value['BUCKAROO_KLARNA_FEE'] = Configuration::get('BUCKAROO_KLARNA_FEE'); - $fields_value['BUCKAROO_KLARNA_DEFAULT_VAT'] = Configuration::get('BUCKAROO_KLARNA_DEFAULT_VAT'); - $fields_value['BUCKAROO_KLARNA_WRAPPING_VAT'] = Configuration::get('BUCKAROO_KLARNA_WRAPPING_VAT'); - $fields_value['BUCKAROO_KLARNA_TAXRATE'] = unserialize(Configuration::get('BUCKAROO_KLARNA_TAXRATE')); - $fields_value['BUCKAROO_KLARNA_BUSINESS'] = unserialize(Configuration::get('BUCKAROO_KLARNA_BUSINESS')); - - $fields_value['BUCKAROO_APPLEPAY_ENABLED'] = Configuration::get('BUCKAROO_APPLEPAY_ENABLED'); - $fields_value['BUCKAROO_APPLEPAY_TEST'] = Configuration::get('BUCKAROO_APPLEPAY_TEST'); - $fields_value['BUCKAROO_APPLEPAY_LABEL'] = Configuration::get('BUCKAROO_APPLEPAY_LABEL'); - $fields_value['BUCKAROO_APPLEPAY_FEE'] = Configuration::get('BUCKAROO_APPLEPAY_FEE'); - //Global Settings - $i = 0; - $orderStatesGet = OrderState::getOrderStates((int) (Configuration::get('PS_LANG_DEFAULT'))); - $orderStatesPending = []; - $orderStatesSuccess = []; - $orderStatesFailed = []; - - foreach ($orderStatesGet as $o) { - if (in_array($o["name"], ['Awaiting for Remote payment', 'Awaiting check payment'])) { - $orderStatesPending[] = array("text" => $o["name"], "value" => $o["id_order_state"]); - } - if (in_array($o["name"], ['On backorder (paid)', 'Payment accepted'])) { - $orderStatesSuccess[] = array("text" => $o["name"], "value" => $o["id_order_state"]); - } - if (in_array($o["name"], ['Canceled', 'Payment error'])) { - $orderStatesFailed[] = array("text" => $o["name"], "value" => $o["id_order_state"]); - } - } - - $orderStatesPending2 = []; - $orderStatesSuccess2 = []; - $orderStatesFailed2 = []; - foreach ($orderStatesGet as $o) { - if (in_array($o["id_order_state"], [14,1])) { - $orderStatesPending[] = array("text" => $o["name"], "value" => $o["id_order_state"]); - } - if (in_array($o["id_order_state"], [9,2])) { - $orderStatesSuccess[] = array("text" => $o["name"], "value" => $o["id_order_state"]); - } - if (in_array($o["id_order_state"], [6,8])) { - $orderStatesFailed[] = array("text" => $o["name"], "value" => $o["id_order_state"]); - } - } - $orderStatesPending = empty($orderStatesPending) ? $orderStatesPending2 : $orderStatesPending; - $orderStatesSuccess = empty($orderStatesSuccess) ? $orderStatesSuccess2 : $orderStatesSuccess; - $orderStatesFailed = empty($orderStatesFailed) ? $orderStatesFailed2 : $orderStatesFailed; - - $fields_form = array(); - $fields_form[$i++] = array( - 'legend' => $this->module->l('Global settings'), - 'name' => 'GLOBAL', - 'enabled' => true, - 'test' => Configuration::get('BUCKAROO_TEST'), - 'input' => array( - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Merchant key'), - 'name' => 'BUCKAROO_MERCHANT_KEY', - 'size' => 25, - 'required' => true, - ) - , - array( - 'type' => 'text', - 'label' => $this->module->l('Secret key'), - 'name' => 'BUCKAROO_SECRET_KEY', - 'size' => 80, - 'required' => true, - ) - , - array( - 'type' => 'certificate', - 'label' => $this->module->l('Certificate'), - 'name' => 'BUCKAROO_CERTIFICATE', - ) - , - array( - 'type' => 'text', - 'label' => $this->module->l('Certificate thumbprint'), - 'name' => 'BUCKAROO_CERTIFICATE_THUMBPRINT', - 'size' => 80, - 'required' => true, - ) - , - array( - 'type' => 'text', - 'label' => $this->module->l('Transaction label'), - 'name' => 'BUCKAROO_TRANSACTION_LABEL', - 'size' => 80, - 'required' => true, - ) - , - array( - 'type' => 'text', - 'label' => $this->module->l('Push URL'), - 'name' => 'BUCKAROO_TRANSACTION_RETURNURL', - 'size' => 100, - 'required' => true, - 'description' => $this->module->l('Push URL must be filled in Buckaroo Plaza > My Buckaroo > Websites > Push Settings > Add link to Success/Failure URL.'), - ) - , - array( - 'type' => 'select', - 'name' => 'BUCKAROO_TRANSACTION_CULTURE', - 'label' => $this->module->l('Language'), - 'description' => $this->module->l('Payment engine language. Can be used only English, Dutch, French and German language.'),//phpcs:ignore - 'options' => array( - array( - 'text' => $this->module->l('Use webshop culture'), - 'value' => 'A', - ), - array( - 'text' => $this->module->l('English'), - 'value' => 'en', - ), - array( - 'text' => $this->module->l('Dutch'), - 'value' => 'nl', - ), - array( - 'text' => $this->module->l('French'), - 'value' => 'fr', - ), - array( - 'text' => $this->module->l('German'), - 'value' => 'de', - ), - ), - ), - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_ADVANCED_CONFIGURATION_ENABLED', - 'label' => $this->module->l('Advanced Configuration'), - 'description' => $this->module->l('Advanced settings for the payment plugin'), - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_ORDER_STATE_DEFAULT', - 'label' => $this->module->l('Pending payment status'), - 'options' => $orderStatesPending, - 'description' => $this->module->l('This status will be given to orders pending payment.'), - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_ORDER_STATE_SUCCESS', - 'label' => $this->module->l('Payment success status'), - 'options' => $orderStatesSuccess, - 'description' => $this->module->l('This status will be given to orders paid.'), - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_ORDER_STATE_FAILED', - 'label' => $this->module->l('Payment failed status'), - 'options' => $orderStatesFailed, - 'description' => $this->module->l('This status will be given to unsuccessful orders.'), - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - array( - 'type' => 'submit', - 'name' => 'refresh_module', - 'label' => $this->module->l('Refresh module'), - 'required' => true, - ), - ), - ); - - $cookie = new Cookie('ps'); - $cats = Category::getCategories((int)($cookie->id_lang), true, false); - $categories = []; - foreach ($cats as $value) { - $categories[] = array( - 'text' => $value['name'], - 'value' => $value['id_category'], - ); - } - - $fields_form[$i++] = array( - 'legend' => $this->module->l('iDIN verification Settings'), - 'name' => 'PAYPAL', - 'test' => Configuration::get('BUCKAROO_IDIN_TEST'), - 'enabled' => Configuration::get('BUCKAROO_IDIN_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_IDIN_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_IDIN_TEST', - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_IDIN_MODE', - 'label' => $this->module->l('iDIN verification mode'), - 'description' => $this->module->l( - 'iDIN verification mode' - ), - 'options' => array( - array( - 'text' => $this->module->l('Global'), - 'value' => '0', - ), - array( - 'text' => $this->module->l('Per product'), - 'value' => '1', - ), - array( - 'text' => $this->module->l('Per category'), - 'value' => '2', - ), - ), - ), - array( - 'type' => 'multiselect', - 'name' => 'BUCKAROO_IDIN_CATEGORY', - 'label' => $this->module->l('iDIN verification categorys'), - 'description' => $this->module->l( - 'iDIN verification categorys' - ), - 'options' => $categories - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('PayPal Settings'), - 'name' => 'PAYPAL', - 'test' => Configuration::get('BUCKAROO_PAYPAL_TEST'), - 'enabled' => Configuration::get('BUCKAROO_PAYPAL_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_PAYPAL_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_PAYPAL_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_PAYPAL_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_BUCKAROOPAYPAL_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('SEPA Direct debit settings'), - 'name' => 'SEPADD', - 'test' => Configuration::get('BUCKAROO_SDD_TEST'), - 'enabled' => Configuration::get('BUCKAROO_SDD_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_SDD_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_SDD_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_SDD_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_SDD_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('IDeal settings'), - 'name' => 'IDEAL', - 'test' => Configuration::get('BUCKAROO_IDEAL_TEST'), - 'enabled' => Configuration::get('BUCKAROO_IDEAL_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_IDEAL_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_IDEAL_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_IDEAL_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_IDEAL_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ) - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('Giropay settings'), - 'name' => 'GIROPAY', - 'test' => Configuration::get('BUCKAROO_GIROPAY_TEST'), - 'enabled' => Configuration::get('BUCKAROO_GIROPAY_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_GIROPAY_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_GIROPAY_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_GIROPAY_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_GIROPAY_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('KBC settings'), - 'name' => 'KBC', - 'test' => Configuration::get('BUCKAROO_KBC_TEST'), - 'enabled' => Configuration::get('BUCKAROO_KBC_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_KBC_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_KBC_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_KBC_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_KBC_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('Bancontact / Mister Cash settings'), - 'name' => 'MISTERCASH', - 'test' => Configuration::get('BUCKAROO_MISTERCASH_TEST'), - 'enabled' => Configuration::get('BUCKAROO_MISTERCASH_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_MISTERCASH_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_MISTERCASH_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_MISTERCASH_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_MISTERCASH_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('GiftCard settings'), - 'name' => 'GIFTCARD', - 'test' => Configuration::get('BUCKAROO_GIFTCARD_TEST'), - 'enabled' => Configuration::get('BUCKAROO_GIFTCARD_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_GIFTCARD_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_GIFTCARD_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_GIFTCARD_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_GIFTCARD_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('CreditCard settings'), - 'name' => 'CREDITCARD', - 'test' => Configuration::get('BUCKAROO_CREDITCARD_TEST'), - 'enabled' => Configuration::get('BUCKAROO_CREDITCARD_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_CREDITCARD_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_CREDITCARD_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_CREDITCARD_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_CREDITCARD_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('Sofortbanking settings'), - 'name' => 'SOFORTBANKING', - 'test' => Configuration::get('BUCKAROO_SOFORTBANKING_TEST'), - 'enabled' => Configuration::get('BUCKAROO_SOFORTBANKING_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_SOFORTBANKING_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_SOFORTBANKING_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_SOFORTBANKING_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_SOFORTBANKING_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('Bank Transfer settings'), - 'name' => 'TRANSFER', - 'test' => (Configuration::get('BUCKAROO_TRANSFER_TEST') == '1' ? true : false), - 'enabled' => (Configuration::get('BUCKAROO_TRANSFER_ENABLED') == '1' ? true : false), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_TRANSFER_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_TRANSFER_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_TRANSFER_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_TRANSFER_FEE', - 'size' => 80, - ), - array( - 'type' => 'text', - 'name' => 'BUCKAROO_TRANSFER_DATEDUE', - 'label' => $this->module->l('Number of days to the date that the order should be payed.'), - 'description' => $this->module->l( - 'This is only for display purposes, to be able to use it in email templates.' - ), - 'size' => 4, - 'required' => true, - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_TRANSFER_SENDMAIL', - 'label' => $this->module->l('Send payment email'), - 'description' => $this->module->l( - 'Buckaroo sends an email to the customer with the payment procedures.' - ), - 'options' => array( - array( - 'text' => $this->module->l('No'), - 'value' => '0', - ), - array( - 'text' => $this->module->l('Yes'), - 'value' => '1', - ), - ), - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - $tx = Tax::getTaxes(Configuration::get('PS_LANG_DEFAULT')); - $taxes = array(); - $taxes[] = "No tax"; - $defaultTaxvalues = []; - $defaultTaxvalues[0] = 1; - foreach ($tx as $t) { - $taxes[$t["id_tax"]] = $t["name"]; - $defaultTaxvalues[$t["id_tax"]] = 1; - } - $taxvalues = $defaultTaxvalues; - $savedtaxvalues = Configuration::get('BUCKAROO_AFTERPAY_TAXRATE'); - if (!empty($savedtaxvalues)) { - $savedtaxvalues = unserialize($savedtaxvalues); - if(count($savedtaxvalues)) { - $taxvalues = $savedtaxvalues; - } - } - $fields_form[$i++] = array( - 'legend' => $this->module->l('AfterPay Settings'), - 'name' => 'AFTERPAY', - 'test' => Configuration::get('BUCKAROO_AFTERPAY_TEST'), - 'enabled' => Configuration::get('BUCKAROO_AFTERPAY_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_AFTERPAY_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_AFTERPAY_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_AFTERPAY_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_AFTERPAY_FEE', - 'size' => 80, - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_AFTERPAY_DEFAULT_VAT', - 'label' => $this->module->l('Default product Vat type'), - 'description' => $this->module->l('Please select default vat type for your products'), - 'options' => array( - array( - 'text' => $this->module->l('1 = High rate'), - 'value' => '1', - ), - array( - 'text' => $this->module->l('2 = Low rate'), - 'value' => '2', - ), - array( - 'text' => $this->module->l('3 = Zero rate'), - 'value' => '3', - ), - array( - 'text' => $this->module->l('4 = Null rate'), - 'value' => '4', - ), - array( - 'text' => $this->module->l('5 = Middle rate'), - 'value' => '5', - ), - ), - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_AFTERPAY_WRAPPING_VAT', - 'label' => $this->module->l('Vat type for wrapping'), - 'description' => $this->module->l('Please select vat type for wrapping'), - 'options' => array( - array( - 'text' => $this->module->l('1 = High rate'), - 'value' => '1', - ), - array( - 'text' => $this->module->l('2 = Low rate'), - 'value' => '2', - ), - array( - 'text' => $this->module->l('3 = Zero rate'), - 'value' => '3', - ), - array( - 'text' => $this->module->l('4 = Null rate'), - 'value' => '4', - ), - array( - 'text' => $this->module->l('5 = Middle rate'), - 'value' => '5', - ), - ), - ), - array( - 'type' => 'taxrate', - 'name' => 'BUCKAROO_AFTERPAY_TAXRATE', - 'label' => $this->module->l('Select tax rates'), - 'taxarray' => $taxes, - 'taxvalues' => $taxvalues, - 'taxoptions' => array( - array( - 'text' => $this->module->l('1 = High rate'), - 'value' => '1', - ), - array( - 'text' => $this->module->l('2 = Low rate'), - 'value' => '2', - ), - array( - 'text' => $this->module->l('3 = Zero rate'), - 'value' => '3', - ), - array( - 'text' => $this->module->l('4 = Null rate'), - 'value' => '4', - ), - array( - 'text' => $this->module->l('5 = Middle rate'), - 'value' => '5', - ), - ), - 'required' => true, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('ApplePay settings'), - 'name' => 'APPLEPAY', - 'test' => Configuration::get('BUCKAROO_APPLEPAY_TEST'), - 'enabled' => Configuration::get('BUCKAROO_APPLEPAY_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_APPLEPAY_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_APPLEPAY_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_APPLEPAY_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_APPLEPAY_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $taxvalues = $defaultTaxvalues; - $savedtaxvalues = Configuration::get('BUCKAROO_KLARNA_TAXRATE'); - if (!empty($savedtaxvalues)) { - $savedtaxvalues = unserialize($savedtaxvalues); - if(count($savedtaxvalues)) { - $taxvalues = $savedtaxvalues; - } - } - $fields_form[$i++] = array( - 'legend' => $this->module->l('Klarna Pay later (pay) Settings'), - 'name' => 'KLARNA', - 'test' => Configuration::get('BUCKAROO_KLARNA_TEST'), - 'enabled' => Configuration::get('BUCKAROO_KLARNA_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_KLARNA_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_KLARNA_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_KLARNA_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_KLARNA_FEE', - 'size' => 80, - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_KLARNA_DEFAULT_VAT', - 'label' => $this->module->l('Default product Vat type'), - 'description' => $this->module->l('Please select default vat type for your products'), - 'options' => array( - array( - 'text' => $this->module->l('1 = High rate'), - 'value' => '1', - ), - array( - 'text' => $this->module->l('2 = Low rate'), - 'value' => '2', - ), - array( - 'text' => $this->module->l('3 = Zero rate'), - 'value' => '3', - ), - array( - 'text' => $this->module->l('4 = Null rate'), - 'value' => '4', - ), - array( - 'text' => $this->module->l('5 = Middle rate'), - 'value' => '5', - ), - ), - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_KLARNA_WRAPPING_VAT', - 'label' => $this->module->l('Vat type for wrapping'), - 'description' => $this->module->l('Please select vat type for wrapping'), - 'options' => array( - array( - 'text' => $this->module->l('1 = High rate'), - 'value' => '1', - ), - array( - 'text' => $this->module->l('2 = Low rate'), - 'value' => '2', - ), - array( - 'text' => $this->module->l('3 = Zero rate'), - 'value' => '3', - ), - array( - 'text' => $this->module->l('4 = Null rate'), - 'value' => '4', - ), - array( - 'text' => $this->module->l('5 = Middle rate'), - 'value' => '5', - ), - ), - ), - array( - 'type' => 'taxrate', - 'name' => 'BUCKAROO_KLARNA_TAXRATE', - 'label' => $this->module->l('Select tax rates'), - 'taxarray' => $taxes, - 'taxvalues' => $taxvalues, - 'taxoptions' => array( - array( - 'text' => $this->module->l('1 = High rate'), - 'value' => '1', - ), - array( - 'text' => $this->module->l('2 = Low rate'), - 'value' => '2', - ), - array( - 'text' => $this->module->l('3 = Zero rate'), - 'value' => '3', - ), - array( - 'text' => $this->module->l('4 = Null rate'), - 'value' => '4', - ), - array( - 'text' => $this->module->l('5 = Middle rate'), - 'value' => '5', - ), - ), - 'required' => true, - ), - array( - 'type' => 'select', - 'name' => 'BUCKAROO_KLARNA_BUSINESS', - 'label' => $this->module->l('Klarna payment method'), - 'description' => $this->module->l('Select which paymethod must be used at Klarna.'), - 'options' => array( - array( - 'text' => $this->module->l('B2C'), - 'value' => 'B2C', - ), - array( - 'text' => $this->module->l('B2B'), - 'value' => 'B2B', - ), - ), - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $fields_form[$i++] = array( - 'legend' => $this->module->l('Belfius settings'), - 'name' => 'BELFIUS', - 'test' => Configuration::get('BUCKAROO_BELFIUS_TEST'), - 'enabled' => Configuration::get('BUCKAROO_BELFIUS_ENABLED'), - 'input' => array( - array( - 'type' => 'enabled', - 'name' => 'BUCKAROO_BELFIUS_ENABLED', - ), - array( - 'type' => 'hidearea_start', - ), - array( - 'type' => 'mode', - 'name' => 'BUCKAROO_BELFIUS_TEST', - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Frontend label'), - 'name' => 'BUCKAROO_BELFIUS_LABEL', - 'size' => 80, - ), - array( - 'type' => 'text', - 'label' => $this->module->l('Buckaroo Fee'), - 'name' => 'BUCKAROO_BELFIUS_FEE', - 'size' => 80, - ), - array( - 'type' => 'hidearea_end', - ), - array( - 'type' => 'submit', - 'name' => 'save_data', - 'label' => $this->module->l('Save configuration'), - 'required' => true, - ), - ), - ); - - $this->module->context->smarty->assign( - array( - 'fields_form' => $fields_form, - 'fields_value' => $fields_value, - 'form_action' => Tools::safeOutput($_SERVER['REQUEST_URI']), - 'dir' => dirname(__FILE__) . '/views/templates/admin', - 'top_error' => $this->error, - ) - ); - - $tpl = 'views/templates/admin/admin.tpl'; - $output = $this->module->display(dirname(__FILE__), $tpl); - - return $helper_head->generate() . $output; - } - - private function handlePaymentFee($value) - { - return preg_replace('/[^0-9\.]/', '', $value); - } -} diff --git a/certificate/Buckaroo85694BFB9716140DFF33604775A9668DAA67ECD4.pem b/certificate/Buckaroo85694BFB9716140DFF33604775A9668DAA67ECD4.pem deleted file mode 100644 index 42f032bb6..000000000 --- a/certificate/Buckaroo85694BFB9716140DFF33604775A9668DAA67ECD4.pem +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICeTCCAeKgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBwjEUMBIGA1UEBhMLTmV0 -aGVybGFuZHMxEDAOBgNVBAgTB1V0cmVjaHQxEDAOBgNVBAcTB1V0cmVjaHQxFjAU -BgNVBAoTDUJ1Y2thcm9vIEIuVi4xGjAYBgNVBAsTEVRlY2huaWNhbCBTdXBwb3J0 -MS4wLAYDVQQDEyVCdWNrYXJvbyBPbmxpbmUgUGF5bWVudCBTZXJ2aWNlcyBCLlYu -MSIwIAYJKoZIhvcNAQkBFhNzdXBwb3J0QGJ1Y2thcm9vLm5sMB4XDTIxMDgzMDA3 -MDQxMVoXDTMxMDgzMDA3MDQxMVowQjEQMA4GA1UEBxMHVVRSRUNIVDEWMBQGA1UE -ChMNQnVja2Fyb28gQi5WLjEWMBQGA1UEAxMNQnVja2Fyb28gQi5WLjCBnzANBgkq -hkiG9w0BAQEFAAOBjQAwgYkCgYEAyL7qNsQiaMA0rzWJZrttntoonFqJmpO6nGtc -CIRZhDt8SEZaE4/SL0nvXHGDLSub8kqpn1AftFfTFeYAekENsyc7yyY37e52W271 -PLVhURSa/amASYyJ71arzmleAGK9TNykGk9dawffQFA8mJoa3eTRHtItqWMr/y5q -nLckFEkCAwEAATANBgkqhkiG9w0BAQUFAAOBgQBBwefjXSPdMKEO7D0j7W1YN1PF -beWhkJoSST8HsnX9E5uUNCL0roNg/XDA9EpgsbPeXS2e4160pq6BhDVllu/FkRHl -/w4nWCvWZdLJVU/jtmfo/Mc/01GsusX/jjp3Qfy0uLgHTXIOOLhVhAHaUVS+fYfB -rGiZ8AqhytAWg+r5Yw== ------END CERTIFICATE----- diff --git a/certificate/Checkout.pem b/certificate/Checkout.pem deleted file mode 100644 index 04b7bd917..000000000 --- a/certificate/Checkout.pem +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICeDCCAeGgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBwjEUMBIGA1UEBhMLTmV0 -aGVybGFuZHMxEDAOBgNVBAgTB1V0cmVjaHQxEDAOBgNVBAcTB1V0cmVjaHQxFjAU -BgNVBAoTDUJ1Y2thcm9vIEIuVi4xGjAYBgNVBAsTEVRlY2huaWNhbCBTdXBwb3J0 -MS4wLAYDVQQDEyVCdWNrYXJvbyBPbmxpbmUgUGF5bWVudCBTZXJ2aWNlcyBCLlYu -MSIwIAYJKoZIhvcNAQkBFhNzdXBwb3J0QGJ1Y2thcm9vLm5sMB4XDTEyMDIwNzEx -MTQ1NVoXDTIyMDIwNzExMTQ1NVowQTEPMA0GA1UEBxMGQkVJTEVOMRYwFAYDVQQK -Ew1CdWNrYXJvbyBCLlYuMRYwFAYDVQQDEw1CdWNrYXJvbyBCLlYuMIGfMA0GCSqG -SIb3DQEBAQUAA4GNADCBiQKBgQD4u6psr+HtBpZIB9cGkg/Aov+yJNm0GPVV+f3w -yoXPNDhbHxCnKXslKxO6WYxEzUQJuuphtUdxb5tR1wbuv8NSnBNUv2qB1SLRIEJH -CLCtUyTC79HvpWHIDaibuRCqCjNlOgphgc0Am/PruwGqvG3qtVcWjG1io7iXzlJJ -XF+UbQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBANj91vccLfvwIMU5L++ONcx6Ymck -wU0UnlIDKapCvNIcpfCH1wE9QiSvgfe22G9TPtYCGl3EkD+1QetQ/luFuSchD+/Q -RJgSa1IpXGvqmV3g8H2xSj0N+a7z1fK2N2CqREHQZ7VbYZdWSNXYyn5yggNefuCC -utpwIl+bFlxvC64V ------END CERTIFICATE----- diff --git a/certificate/index.php b/certificate/index.php deleted file mode 100644 index c8e9f2af3..000000000 --- a/certificate/index.php +++ /dev/null @@ -1,28 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/classes/CapayableIn3.php b/classes/CapayableIn3.php new file mode 100644 index 000000000..d23ad3ab9 --- /dev/null +++ b/classes/CapayableIn3.php @@ -0,0 +1,57 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Classes; + +class CapayableIn3 +{ + protected $apiVersion; + protected $paymentLogo; + public const VERSION_V2 = 'V2'; + public const LOGO_IN3_IDEAL = 'in3_ideal'; + public const LOGO_IN3_IDEAL_FILENAME = 'In3_ideal.svg?v1'; + public const LOGO_DEFAULT = 'In3.svg?v'; + + public function __construct($buckarooConfigService) + { + $this->apiVersion = $buckarooConfigService->getConfigValue('in3', 'version'); + $this->paymentLogo = $buckarooConfigService->getConfigValue('in3', 'payment_logo'); + } + + public function isV3(): bool + { + return $this->apiVersion !== self::VERSION_V2; + } + + public function getLogo(): string + { + if (!$this->isV3()) { + return self::LOGO_DEFAULT; + } + + if ($this->paymentLogo === self::LOGO_IN3_IDEAL) { + return self::LOGO_IN3_IDEAL_FILENAME; + } + + return self::LOGO_DEFAULT; + } + + public function getMethod(): string + { + return $this->isV3() ? 'in3' : 'in3Old'; + } +} diff --git a/classes/CarrierHandler.php b/classes/CarrierHandler.php new file mode 100644 index 000000000..b64448aaf --- /dev/null +++ b/classes/CarrierHandler.php @@ -0,0 +1,52 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +require_once _PS_MODULE_DIR_ . 'buckaroo3/vendor/autoload.php'; +class CarrierHandler +{ + private $carrier; + private $cart; + + public function __construct($cart) + { + $this->cart = $cart; + $this->initializeCarrier(); + } + + private function initializeCarrier() + { + $this->carrier = new Carrier((int) $this->cart->id_carrier, Configuration::get('PS_LANG_DEFAULT')); + } + + public function handleSendCloud() + { + if ($this->carrier->external_module_name !== 'sendcloud') { + return null; + } + + $service_point = SendcloudServicePoint::getFromCart($this->cart->id); + $point = $service_point->getDetails(); + + return [ + 'street' => $point->street, + 'houseNumber' => $point->house_number, + 'houseNumberSuffix' => '', + 'zipcode' => $point->postal_code, + 'city' => $point->city, + 'country' => $point->country, + ]; + } +} diff --git a/classes/Config.php b/classes/Config.php new file mode 100644 index 000000000..35e628e44 --- /dev/null +++ b/classes/Config.php @@ -0,0 +1,38 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Classes; + +use Buckaroo\PrestaShop\Src\Repository\RawPaymentMethodRepository; + +class Config +{ + /** + * @throws \Exception + */ + public static function getMode($key) + { + $paymentMethodRepository = new RawPaymentMethodRepository(); + $getPaymentMethodMode = $paymentMethodRepository->getPaymentMethodMode($key); + + if (\Configuration::get('BUCKAROO_TEST') == 1 && $getPaymentMethodMode == 'live') { + return 'live'; + } + + return 'test'; + } +} diff --git a/classes/IssuersIdeal.php b/classes/IssuersIdeal.php new file mode 100644 index 000000000..dadf690c6 --- /dev/null +++ b/classes/IssuersIdeal.php @@ -0,0 +1,161 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Classes; + +use Buckaroo\BuckarooClient; + +class IssuersIdeal +{ + protected const CACHE_ISSUERS_KEY = 'BUCKAROO_IDEAL_ISSUERS_CACHE'; + protected const CACHE_ISSUERS_DATE_KEY = 'BUCKAROO_IDEAL_ISSUERS_CACHE_DATE'; + + protected const ISSUERS_IMAGES = [ + 'ABNANL2A' => 'ABNAMRO.svg', + 'ASNBNL21' => 'ASNBank.svg', + 'INGBNL2A' => 'ING.svg', + 'RABONL2U' => 'Rabobank.svg', + 'SNSBNL2A' => 'SNS.svg', + 'RBRBNL21' => 'RegioBank.svg', + 'TRIONL2U' => 'Triodos.svg', + 'FVLBNL22' => 'vanLanschot.svg', + 'KNABNL2H' => 'KNAB.svg', + 'BUNQNL2A' => 'Bunq.svg', + 'REVOLT21' => 'Revolut.svg', + 'NNBANL2G' => 'NN.svg', + 'BITSNL2A' => 'YourSafe.svg', + 'NTSBDEB1' => 'n26.svg', + ]; + + public function get() + { + $issuers = $this->getCacheIssuers(); + $cacheDate = $this->getCacheDate(); + + if (!is_array($issuers) || $cacheDate !== (new \DateTime())->format('Y-m-d')) { + return $this->updateCacheIssuers($issuers); + } + + return $issuers; + } + + /** + * Add logos to the issuers + * + * @param array $issuers + * + * @return array + */ + private function addLogos($issuers) + { + return array_map( + function ($issuer) { + $logo = null; + if ( + isset($issuer['id'], self::ISSUERS_IMAGES[$issuer['id']]) + ) { + $logo = self::ISSUERS_IMAGES[$issuer['id']]; + } + $issuer['logo'] = $logo; + + return $issuer; + }, + $issuers + ); + } + + /** + * update cache with issues from payment engine + * + * @return array + * + * @throws \Exception + */ + private function updateCacheIssuers($issuers) + { + $retrievedIssuers = $this->addLogos( + $this->requestIssuers() + ); + + if (count($retrievedIssuers)) { + $this->saveIssuers($retrievedIssuers); + + return $retrievedIssuers; + } + + return $issuers; + } + + /** + * @throws \Exception + */ + private function requestIssuers() + { + if (\Configuration::get('BUCKAROO_MERCHANT_KEY') || \Configuration::get('BUCKAROO_SECRET_KEY')) { + $buckaroo = new BuckarooClient( + \Configuration::get('BUCKAROO_MERCHANT_KEY'), + \Configuration::get('BUCKAROO_SECRET_KEY'), + Config::getMode('ideal') + ); + + return $buckaroo->method('ideal')->issuers(); + } else { + throw new \Exception('Buckaroo master settings not found.'); + } + } + + /** + * Save issuers to cache with new date + * + * @param array $issuers + * + * @return void + */ + private function saveIssuers($issuers) + { + if (!is_array($issuers)) { + return; + } + \Configuration::updateValue(self::CACHE_ISSUERS_KEY, json_encode($issuers)); + \Configuration::updateValue(self::CACHE_ISSUERS_DATE_KEY, (new \DateTime())->format('Y-m-d')); + } + + /** + * Get cached issuers + * + * @return array|null + */ + private function getCacheIssuers() + { + $issuersString = \Configuration::get(self::CACHE_ISSUERS_KEY); + if (!is_string($issuersString)) { + return null; + } + + return json_decode($issuersString, true); + } + + /** + * Get cached date + * + * @return bool|string + */ + private function getCacheDate() + { + return \Configuration::get(self::CACHE_ISSUERS_DATE_KEY); + } +} diff --git a/classes/IssuersPayByBank.php b/classes/IssuersPayByBank.php new file mode 100644 index 000000000..5c8f2bce7 --- /dev/null +++ b/classes/IssuersPayByBank.php @@ -0,0 +1,95 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Classes; + +class IssuersPayByBank +{ + protected const CACHE_LAST_ISSUER_LABEL = 'BUCKAROO_LAST_PAYBYBANK_ISSUER'; + + public function getIssuerList() + { + $savedBankIssuer = \Context::getContext()->cookie->{self::CACHE_LAST_ISSUER_LABEL}; + + $issuerArray = [ + 'ABNANL2A' => [ + 'name' => 'ABN AMRO', + 'logo' => 'ABNAMRO.svg', + ], + 'ASNBNL21' => [ + 'name' => 'ASN Bank', + 'logo' => 'ASNBank.svg', + ], + 'INGBNL2A' => [ + 'name' => 'ING', + 'logo' => 'ING.svg', + ], + 'RABONL2U' => [ + 'name' => 'Rabobank', + 'logo' => 'Rabobank.svg', + ], + 'SNSBNL2A' => [ + 'name' => 'SNS Bank', + 'logo' => 'SNS.svg', + ], + 'RBRBNL21' => [ + 'name' => 'RegioBank', + 'logo' => 'RegioBank.svg', + ], + 'KNABNL2H' => [ + 'name' => 'Knab', + 'logo' => 'KNAB.svg', + ], + 'NTSBDEB1' => [ + 'name' => 'N26', + 'logo' => 'n26.svg', + ], + ]; + + $issuers = []; + + foreach ($issuerArray as $key => $issuer) { + $issuer['selected'] = $key === $savedBankIssuer; + + $issuers[$key] = $issuer; + } + + $savedIssuer = array_filter($issuers, function ($issuer) { + return $issuer['selected']; + }); + $issuers = array_filter($issuers, function ($issuer) { + return !$issuer['selected']; + }); + + return array_merge($savedIssuer, $issuers); + } + + public function getSelectedIssuerLogo() + { + $issuers = $this->getIssuerList(); + $selectedIssuer = array_filter($issuers, function ($issuer) { + return $issuer['selected']; + }); + if (!empty($selectedIssuer)) { + $selectedIssuer = reset($selectedIssuer); + + return '../../PayByBank issuers/' . $selectedIssuer['logo']; + } else { + return 'PayByBank.gif?v'; + } + } +} diff --git a/classes/Mail.php b/classes/Mail.php index 609c50211..7202b38b9 100644 --- a/classes/Mail.php +++ b/classes/Mail.php @@ -1,7 +1,5 @@ cart->id)) { - $payment_method = Tools::getValue('method'); - if ($buckarooFee = Config::get('BUCKAROO_' . Tools::strtoupper($payment_method) . '_FEE')) { - // @codingStandardsIgnoreStart - $templateVars['{discounts}'] .= ' Buckaroo Fee ' . Tools::displayPrice($buckarooFee) . ' '; - // @codingStandardsIgnoreEnd - } - } - } - return parent::Send( $idLang, $template, diff --git a/classes/Product.php b/classes/Product.php index ab41c5418..552694da5 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -1,7 +1,5 @@ self::TYPE_BOOL, 'validate' => 'isBool', 'shop' => true); parent::__construct($id_product, $full, $id_lang, $id_shop, $context); } } diff --git a/classes/index.php b/classes/index.php index c8e9f2af3..97ec565fb 100644 --- a/classes/index.php +++ b/classes/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/composer.json b/composer.json new file mode 100644 index 000000000..65ed3e4e4 --- /dev/null +++ b/composer.json @@ -0,0 +1,29 @@ +{ + "name": "buckaroo/prestashop", + "description": "Buckaroo Payments", + "authors": [ + { + "name": "Buckaroo B.V.", + "email": "plugins@buckaroo.nl" + } + ], + "require": { + "php": ">=7.4", + "buckaroo/sdk": "^1.8.0" + }, + "autoload": { + "psr-4": { + "Buckaroo\\PrestaShop\\Src\\": "src", + "Buckaroo\\PrestaShop\\Classes\\": "classes", + "Buckaroo\\PrestaShop\\Controllers\\": "controllers", + "Buckaroo\\PrestaShop\\Library\\": "library" + } + }, + "config": { + "preferred-install": "dist", + "prepend-autoloader": false + }, + "type": "prestashop-module", + "author": "Buckaroo B.V.", + "license": "AFL" +} diff --git a/config.php b/config.php deleted file mode 100644 index b897e2578..000000000 --- a/config.php +++ /dev/null @@ -1,93 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -require_once dirname(__FILE__) . '/api/config/configcore.php'; - -class Config extends ConfigCore -{ - const NAME = 'buckaroo3'; - const PLUGIN_NAME = 'Buckaroo Payments'; - const VERSION = '3.4.0'; - //ATTENTION: If log is enabled it can be potential vulnerability - const LOG = false; - - public static function get($key) - { - switch ($key) { - case 'RETURN_URL': - $val = Config::get('BUCKAROO_TRANSACTION_RETURNURL'); - break; - case 'CULTURE': - $val = Config::getApiCulture(); - break; - case 'BUCKAROO_CERTIFICATE_PATH': - $val = _PS_MODULE_DIR_ . Config::NAME . '/' . Config::CERTIFICATE_PATH . Config::get( - 'BUCKAROO_CERTIFICATE_FILE' - ); - break; - default: - $val = Configuration::get($key); - } - - if (is_null($val) || $val === false) { - return parent::get($key); - } else { - return $val; - } - } - - public static function getMode($key) - { - $key = Tools::strtoupper($key); - if (Config::get('BUCKAROO_TEST') == "0" && Config::get('BUCKAROO_' . $key . '_TEST') == "0") { - return 'live'; - } - return 'test'; - } - - public static function getSoftware() - { - $Software = new Software(); - $Software->PlatformName = 'Prestashop'; - $Software->PlatformVersion = _PS_VERSION_; - $Software->ModuleSupplier = 'Buckaroo'; - $Software->ModuleName = Config::PLUGIN_NAME; - $Software->ModuleVersion = Config::VERSION; - return $Software; - } - - public static function getApiCulture() - { - if (Config::get('BUCKAROO_TRANSACTION_CULTURE') == 'A') { - $iso_code = Context::getContext()->language->iso_code; - } else { - $iso_code = Config::get('BUCKAROO_TRANSACTION_CULTURE'); - } - switch ($iso_code) { - case 'nl': - return 'nl-NL'; - case 'fr': - return 'fr-FR'; - case 'de': - return 'de-DE'; - default: - return 'en-US'; - } - } -} diff --git a/config.xml b/config.xml index cdf4b36f3..7d2ed490c 100644 --- a/config.xml +++ b/config.xml @@ -1,13 +1,12 @@ buckaroo3 - - - + + + 1 1 - \ No newline at end of file diff --git a/config/index.php b/config/index.php new file mode 100644 index 000000000..42d646f15 --- /dev/null +++ b/config/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../../../../../'); +exit; diff --git a/config/routes.yml b/config/routes.yml new file mode 100644 index 000000000..a6c4a44e2 --- /dev/null +++ b/config/routes.yml @@ -0,0 +1,77 @@ +buckaroo_refund: + path: buckaroo3/refund + methods: [POST] + defaults: + _controller: 'buckaroo.refund_controller::refund' + +buckaroo_config_paymentMethod: + path: buckaroo3/config/payment/methods + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.paymentMethod::initContent' + options: + expose: true + +buckaroo_config_countries: + path: buckaroo3/config/countries + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.countries::initContent' + options: + expose: true + +buckaroo_config_creditcards: + path: buckaroo3/config/creditcards + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.creditcards::initContent' + options: + expose: true + +buckaroo_config_orderings: + path: buckaroo3/config/orderings + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.orderings::initContent' + options: + expose: true + +buckaroo_config_methodMode: + path: buckaroo3/config/methodMode + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.methodMode::initContent' + options: + expose: true + +buckaroo_config_methods: + path: buckaroo3/config/methods + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.methods::initContent' + options: + expose: true + +buckaroo_config_settings: + path: buckaroo3/config/settings + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.settings::initContent' + options: + expose: true + +buckaroo_config_testCredentials: + path: buckaroo3/config/testCredentials + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.testCredentials::initContent' + options: + expose: true + +buckaroo_config_verificationMethods: + path: buckaroo3/config/verificationMethods + methods: [POST, GET] + defaults: + _controller: 'buckaroo.config.controllers.verificationMethods::initContent' + options: + expose: true \ No newline at end of file diff --git a/config/services.yml b/config/services.yml new file mode 100644 index 000000000..7b19c86a0 --- /dev/null +++ b/config/services.yml @@ -0,0 +1,197 @@ +services: + buckaroo.refund_handler: + class: Buckaroo\PrestaShop\Src\Refund\Handler + arguments: + - "@prestashop.adapter.order.refund.order_refund_calculator" + - "@buckaroo.refund.request.handler" + - "@buckaroo.refund.request.builder" + - "@buckaroo.refund.request.response.handler" + public: true + + buckaroo.refund_controller: + class: Buckaroo\PrestaShop\Controllers\admin\AdminRefundController + arguments: + - "@buckaroo.refund.request.quantity_based_builder" + - "@buckaroo.refund.request.handler" + - "@buckaroo.refund.request.response.handler" + - "@buckaroo.refund.order.service" + public: true + + buckaroo.refund.request.handler: + class: Buckaroo\PrestaShop\Src\Refund\Request\Handler + public: true + + buckaroo.refund.settings: + class: Buckaroo\PrestaShop\Src\Refund\Settings + public: true + + buckaroo.refund.request.builder: + class: Buckaroo\PrestaShop\Src\Refund\Request\Builder + public: true + + buckaroo.refund.request.quantity_based_builder: + class: Buckaroo\PrestaShop\Src\Refund\Request\QuantityBasedBuilder + public: true + + buckaroo.refund.payment.service: + class: Buckaroo\PrestaShop\Src\Refund\Payment\Service + public: true + + buckaroo.refund.status.service: + class: Buckaroo\PrestaShop\Src\Refund\StatusService + arguments: + - "@doctrine.orm.entity_manager" + public: true + + buckaroo.refund.request.response.handler: + class: Buckaroo\PrestaShop\Src\Refund\Request\Response\Handler + arguments: + - "@doctrine.orm.entity_manager" + - "@buckaroo.refund.payment.service" + - "@buckaroo.refund.status.service" + public: true + + buckaroo.refund.push.handler: + class: Buckaroo\PrestaShop\Src\Refund\Push\Handler + arguments: + - "@doctrine.orm.entity_manager" + - "@buckaroo.refund.payment.service" + - "@buckaroo.refund.status.service" + public: true + + buckaroo.refund.order.service: + class: Buckaroo\PrestaShop\Src\Refund\OrderService + arguments: + - "@prestashop.core.command_bus" + - "@session" + public: true + + buckaroo.refund.order.message: + class: Buckaroo\PrestaShop\Src\Refund\OrderMessage + public: true + + buckaroo.refund.admin.provider: + class: Buckaroo\PrestaShop\Src\Refund\Admin\Provider + arguments: + - "@doctrine.orm.entity_manager" + - "@prestashop.router" + public: true + + buckaroo.decorator.issue_partial_refund_handler: + class: Buckaroo\PrestaShop\Src\Refund\Decorators\IssuePartialRefundHandler + decorates: "prestashop.adapter.order.command_handler.issue_partial_refund_handler" + arguments: + - "@buckaroo.decorator.issue_partial_refund_handler.inner" + - "@buckaroo.refund_handler" + - "@session" + public: false + + buckaroo.decorator.issue_standard_refund_handler: + class: Buckaroo\PrestaShop\Src\Refund\Decorators\IssueStandardRefundHandler + decorates: "prestashop.adapter.order.command_handler.issue_standard_refund_handler" + arguments: + - "@buckaroo.decorator.issue_standard_refund_handler.inner" + - "@buckaroo.refund_handler" + public: false + + Buckaroo\PrestaShop\Src\Form\Modifier\ProductFormModifier: + class: Buckaroo\PrestaShop\Src\Form\Modifier\ProductFormModifier + autowire: true + public: true + arguments: + $formBuilderModifier: '@form.form_builder_modifier' + + Buckaroo\PrestaShop\Src\Form\Type\IdinTabType: + class: Buckaroo\PrestaShop\Src\Form\Type\IdinTabType + parent: 'form.type.translatable.aware' + public: true + arguments: + - '@=service("prestashop.adapter.data_provider.currency").getDefaultCurrency()' + tags: + - { name: form.type } + + buckaroo.config.api.config.service: + class: Buckaroo\PrestaShop\Src\Service\BuckarooConfigService + arguments: + - "@doctrine.orm.entity_manager" + public: true + + buckaroo.config.controllers.paymentMethod: + class: Buckaroo\PrestaShop\Controllers\admin\PaymentMethodConfig + arguments: + - "@buckaroo.config.api.config.service" + public: true + + buckaroo.config.countries.service: + class: Buckaroo\PrestaShop\Src\Service\BuckarooCountriesService + arguments: + - "@doctrine.orm.entity_manager" + public: true + + buckaroo.config.controllers.countries: + class: Buckaroo\PrestaShop\Controllers\admin\Countries + arguments: + - "@buckaroo.config.countries.service" + public: true + + buckaroo.config.controllers.creditcards: + class: Buckaroo\PrestaShop\Controllers\admin\Creditcards + public: true + + buckaroo.config.controllers.orderings: + class: Buckaroo\PrestaShop\Controllers\admin\Orderings + arguments: + - "@doctrine.orm.entity_manager" + public: true + + buckaroo.config.controllers.methodMode: + class: Buckaroo\PrestaShop\Controllers\admin\PaymentMethodMode + arguments: + - "@buckaroo.config.api.config.service" + public: true + + buckaroo.config.controllers.methods: + class: Buckaroo\PrestaShop\Controllers\admin\PaymentMethods + arguments: + - "@buckaroo.config.api.config.service" + public: true + + buckaroo.config.controllers.settings: + class: Buckaroo\PrestaShop\Controllers\admin\Settings + public: true + + buckaroo.config.controllers.testCredentials: + class: Buckaroo\PrestaShop\Controllers\admin\TestCredentialsApi + public: true + + buckaroo.config.controllers.verificationMethods: + class: Buckaroo\PrestaShop\Controllers\admin\VerificationMethods + arguments: + - "@buckaroo.config.api.config.service" + public: true + + buckaroo.config.api.fee.service: + class: Buckaroo\PrestaShop\Src\Service\BuckarooFeeService + arguments: + - "@doctrine.orm.entity_manager" + public: true + + buckaroo.classes.issuers.payByBank: + class: Buckaroo\PrestaShop\Classes\IssuersPayByBank + public: true + + buckaroo.classes.issuers.capayableIn3: + class: Buckaroo\PrestaShop\Classes\CapayableIn3 + arguments: + - "@buckaroo.config.api.config.service" + public: true + + buckaroo.config.api.payment.service: + class: Buckaroo\PrestaShop\Src\Service\BuckarooPaymentService + arguments: + - "@doctrine.orm.entity_manager" + - "@buckaroo.config.api.fee.service" + - "@buckaroo.config.api.config.service" + - "@buckaroo.classes.issuers.payByBank" + - "@buckaroo.classes.issuers.capayableIn3" + public: true \ No newline at end of file diff --git a/controllers/admin/AdminBuckarooController.php b/controllers/admin/AdminBuckarooController.php new file mode 100644 index 000000000..2793d0440 --- /dev/null +++ b/controllers/admin/AdminBuckarooController.php @@ -0,0 +1,27 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +class AdminBuckarooController extends ModuleAdminController +{ + public function initContent() + { + $configure = $this->context->link->getAdminLink('AdminModules', false) + . '&configure=' . $this->module->name . '&tab_module=' . $this->module->tab + . '&module_name=' . $this->module->name . '&token=' . Tools::getAdminTokenLite('AdminModules'); + Tools::redirectAdmin($configure); + exit; + } +} diff --git a/controllers/admin/AdminBuckaroologController.php b/controllers/admin/AdminBuckaroologController.php index f1bd966dc..b1ad6671c 100644 --- a/controllers/admin/AdminBuckaroologController.php +++ b/controllers/admin/AdminBuckaroologController.php @@ -1,7 +1,5 @@ lang = (!Tools::getIsset($this->context->cookie) || !is_object( - $this->context->cookie - )) ? (int) (Configuration::get('PS_LANG_DEFAULT')) : (int) ($this->context->cookie->id_lang); + $this->lang = Configuration::get('PS_LANG_DEFAULT'); $this->bootstrap = true; parent::__construct(); } - public function display() - { - parent::display(); - } - public function renderList() { - $file = dirname(__FILE__) . '/../../api/log/report_log.txt'; - $returndata = array(); + $file = dirname(__FILE__) . '/../../api/log/report_log.txt'; + $returndata = []; if (file_exists($file)) { - $data = array(); - $handle = @fopen($file, "r"); + $data = []; + $handle = @fopen($file, 'r'); if ($handle) { while (($buffer = fgets($handle, 4096)) !== false) { $data[] = $buffer; @@ -48,23 +38,24 @@ public function renderList() } if (!empty($data)) { $data = array_reverse($data); - $i = 1; + $i = 1; foreach ($data as $d) { - $tmp = explode("|||", $d); + $tmp = explode('|||', $d); if (!empty($tmp[1])) { list($time, $value) = $tmp; } else { - $time = 'unknown'; + $time = 'unknown'; $value = $d; } - $returndata[$i]["id"] = $i; - $returndata[$i]["time"] = $time; - $returndata[$i]["value"] = $value; - $i++; + $returndata[$i]['id'] = $i; + $returndata[$i]['time'] = $time; + $returndata[$i]['value'] = $value; + ++$i; } } } - $this->context->smarty->assign(array("data" => $returndata)); + $this->context->smarty->assign(['data' => $returndata]); + return $this->context->smarty->fetch(dirname(__FILE__) . '/../../views/templates/admin/buckaroolog.tpl'); } } diff --git a/controllers/admin/AdminRefundController.php b/controllers/admin/AdminRefundController.php index 22418ab13..28b6b5c42 100644 --- a/controllers/admin/AdminRefundController.php +++ b/controllers/admin/AdminRefundController.php @@ -1,89 +1,195 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -include_once(_PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'); -include_once(_PS_MODULE_DIR_ . 'buckaroo3/library/logger.php'); -include_once(_PS_MODULE_DIR_ . 'buckaroo3/controllers/front/common.php'); - -class AdminRefundController extends AdminControllerCore + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Refund\OrderService; +use Buckaroo\PrestaShop\Src\Refund\Request\Handler as RefundRequestHandler; +use Buckaroo\PrestaShop\Src\Refund\Request\QuantityBasedBuilder; +use Buckaroo\PrestaShop\Src\Refund\Request\Response\Handler as RefundResponseHandler; +use PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException; +use PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController; +use Symfony\Component\HttpFoundation\JsonResponse; +use Symfony\Component\HttpFoundation\Request; + +class AdminRefundController extends FrameworkBundleAdminController { - public function __construct() - { - parent::__construct(); - if (Tools::getValue('action') && Tools::getValue('action') == 'refund') { - $this->refundAction(); - } + /** + * @var QuantityBasedBuilder + */ + private $refundBuilder; + + /** + * @var RefundRequestHandler + */ + private $refundHandler; + + /** + * @var RefundResponseHandler + */ + private $responseHandler; + + /** + * @var OrderService + */ + private $orderService; + + public function __construct( + QuantityBasedBuilder $refundBuilder, + RefundRequestHandler $refundHandler, + RefundResponseHandler $responseHandler, + OrderService $orderService + ) { + $this->refundHandler = $refundHandler; + $this->refundBuilder = $refundBuilder; + $this->responseHandler = $responseHandler; + $this->orderService = $orderService; } - public function display() + public function refund(Request $request) { - return true; + $orderId = $request->get('orderId'); + $refundAmount = $request->get('refundAmount'); + + if (!is_scalar($orderId)) { + return $this->renderError('Invalid value for `orderId`'); + } + + if (!is_scalar($refundAmount)) { + return $this->renderError('Invalid value for `refundAmount`'); + } + + $order = new \Order($orderId); + + try { + $totalRefundAmount = $this->sendRefundRequests($order, (float) $refundAmount); + + $message = 'Successfully refunded amount of ' . $this->formatPrice($order, $totalRefundAmount); + $this->addFlash('success', $message); + + return new JsonResponse( + ['error' => false, 'message' => $message] + ); + } catch (\Throwable $th) { + return $this->renderError($th->getMessage()); + } } - public function refundAction() + /** + * Send refund request to payment engine, return total amount refunded + * + * @param \Order $order + * @param float $maxRefundAmount + * + * @return float + */ + private function sendRefundRequests(\Order $order, float $maxRefundAmount): float { - $order = new Order(Tools::getValue("id_order")); - $transactions = $order->getOrderPayments(); - foreach ($transactions as $transaction) { - /* @var $transaction OrderPaymentCore */ - if ($transaction->transaction_id == Tools::getValue("transaction_id")) { - //refund this transaction - autoload('refunds'); - $transaction_amount = - Tools::getValue('refund_amount') ? Tools::getValue('refund_amount') : $transaction->amount; - $Refunds = new Refunds($transaction->payment_method); - $currency = new Currency((int)$transaction->id_currency); - $Refunds->amountDedit = 0; - $Refunds->amountCredit = $transaction_amount; - $Refunds->currency = $currency->iso_code; - $Refunds->description = ''; - $Refunds->invoiceId = $transaction->order_reference . '_' . $order->id_cart; - $Refunds->orderId = $transaction->order_reference . '_' . $order->id_cart; - $Refunds->OriginalTransactionKey = $transaction->transaction_id; - $Refunds->returnUrl = ''; - $response = $Refunds->refund(); - if ($response && $response->isValid() && $response->hasSucceeded()) { - $this->context->cookie->__set('refundStatus', '1'); - $this->context->cookie->__set('refundMessage', sprintf( - 'Refunded %s - Refund transaction ID: %s', - $transaction_amount . ' ' . $currency->iso_code, - $response->transactions - )); - } else { - if (!empty($response->ChannelError)) { - $this->context->cookie->__set('refundStatus', '0'); - $this->context->cookie->__set('refundMessage', sprintf( - 'Refund failed for transaction ID: %s ' . $response->ChannelError, - $transaction->transaction_id - )); - } else { - $this->context->cookie->__set('refundStatus', '0'); - $this->context->cookie->__set('refundMessage', sprintf( - 'Refund failed for transaction ID: %s. See error in Buckaroo Payment Plaza', - $transaction->transaction_id - )); - } + $refundAmount = $maxRefundAmount; + $buckarooPayments = $this->getBuckarooPayments($order); + if (count($buckarooPayments)) { + foreach ($buckarooPayments as $payment) { + if ($payment->amount > 0) { + $refundAmount = $this->sentRefundRequest($order, $payment, $refundAmount); } - $this->context->cookie->write(); } } - Tools::redirectAdmin('index.php?tab=AdminOrders&id_order=' . (int) $order->id . '&vieworder' . '&token=' . Tools::getAdminTokenLite('AdminOrders').'#formAddPaymentPanel'); - exit(); + + return $maxRefundAmount - $refundAmount; + } + + /** + * Refund individual payment with amount, return remaining amount to be refunded + * + * @param \Order $order + * @param \OrderPayment $payment + * @param float $maxRefundAmount + * + * @return float + */ + private function sentRefundRequest(\Order $order, \OrderPayment $payment, float $maxRefundAmount): float + { + $refundAmount = $maxRefundAmount; + if ($maxRefundAmount > $payment->amount) { + $refundAmount = $payment->amount; + } + $maxRefundAmount -= $refundAmount; + + try { + $this->orderService->refund($order, $refundAmount); + } catch (\Throwable $th) { // phpcs:ignore + // throw $th; + } + + $body = $this->refundBuilder->create($order, $payment, $refundAmount); + $this->responseHandler->parse( + $this->refundHandler->refund( + $body, + $payment->payment_method + ), + $body, + $order->id + ); + + return $maxRefundAmount; + } + + /** + * Get buckaroo payments + * + * @param \Order $order + * + * @return array + */ + private function getBuckarooPayments(\Order $order): array + { + // todo: filter payments for only buckaroo requests + return $order->getOrderPayments(); + } + + /** + * Render any errors generated + * + * @param string $message + * + * @return JsonResponse + */ + private function renderError(string $message): JsonResponse + { + $this->addFlash('error', $message); + + return new JsonResponse(['error' => true, 'message' => $message]); + } + + /** + * Format price based on order currency + * + * @param \Order $order + * @param float $price + * + * @return string + * + * @throws LocalizationException + * @throws \Exception + */ + private function formatPrice(\Order $order, float $price): string + { + return \Tools::getContextLocale(\Context::getContext())->formatPrice( + $price, \Currency::getIsoCodeById((int) $order->id_currency) + ); } } diff --git a/controllers/admin/BaseApiController.php b/controllers/admin/BaseApiController.php new file mode 100644 index 000000000..2a6e3f87c --- /dev/null +++ b/controllers/admin/BaseApiController.php @@ -0,0 +1,41 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController; +use Symfony\Component\HttpFoundation\JsonResponse; + +class BaseApiController extends FrameworkBundleAdminController +{ + protected function sendResponse($data, $status = 200) + { + return new JsonResponse($data, $status); + } + + protected function sendErrorResponse($message, $status = 400) + { + return $this->sendResponse(['error' => $message], $status); + } + + protected function getJsonInput(): array + { + $rawData = \Tools::file_get_contents('php://input'); + + return json_decode($rawData, true); + } +} diff --git a/controllers/admin/Countries.php b/controllers/admin/Countries.php new file mode 100644 index 000000000..62470a2de --- /dev/null +++ b/controllers/admin/Countries.php @@ -0,0 +1,42 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Service\BuckarooCountriesService; + +class Countries extends BaseApiController +{ + private BuckarooCountriesService $buckarooCountriesService; + + public function __construct(BuckarooCountriesService $buckarooCountriesService) + { + $this->buckarooCountriesService = $buckarooCountriesService; + } + + public function initContent() + { + $countries = $this->buckarooCountriesService->synchronizeCountries(); + + $data = [ + 'status' => true, + 'countries' => $countries, + ]; + + return $this->sendResponse($data); + } +} diff --git a/controllers/admin/Creditcards.php b/controllers/admin/Creditcards.php new file mode 100644 index 000000000..03602bba9 --- /dev/null +++ b/controllers/admin/Creditcards.php @@ -0,0 +1,42 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Repository\RawCreditCardsRepository; + +class Creditcards extends BaseApiController +{ + private RawCreditCardsRepository $creditCardsRepository; + + public function __construct() + { + $this->creditCardsRepository = new RawCreditCardsRepository(); + } + + public function initContent() + { + $countries = $this->creditCardsRepository->getCreditCardsFromDB(); + + $data = [ + 'status' => true, + 'creditcards' => $countries, + ]; + + return $this->sendResponse($data); + } +} diff --git a/controllers/admin/Orderings.php b/controllers/admin/Orderings.php new file mode 100644 index 000000000..198c26250 --- /dev/null +++ b/controllers/admin/Orderings.php @@ -0,0 +1,84 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Entity\BkOrdering; +use Doctrine\ORM\EntityManager; + +class Orderings extends BaseApiController +{ + private $bkOrderingRepository; + public $module; + + public function __construct(EntityManager $entityManager) + { + $this->bkOrderingRepository = $entityManager->getRepository(BkOrdering::class); + } + + public function initContent() + { + switch ($_SERVER['REQUEST_METHOD']) { + case 'GET': + return $this->handleGet(); + case 'POST': + return $this->handlePost(); + } + } + + private function handleGet() + { + $countryCode = \Tools::getValue('country'); + $countryCode = !empty($countryCode) ? $countryCode : null; + + $ordering = $this->getOrdering($countryCode); + + return $this->sendResponse([ + 'status' => true, + 'orderings' => $ordering, + ]); + } + + private function getOrdering($countryCode) + { + return $this->bkOrderingRepository->getOrdering($countryCode); + } + + private function handlePost() + { + $data = $this->getJsonInput(); + + $countryId = $this->getValueOrNull($data, 'country_id'); + $value = $this->getValueOrNull($data, 'value'); + + if (!$value) { + return $this->sendResponse([ + 'status' => false, + 'message' => 'Missing or invalid data', + ]); + } + + $result = $this->bkOrderingRepository->updateOrdering(json_encode($value), $countryId); + + return $this->sendResponse(['status' => $result]); + } + + private function getValueOrNull(array $data, $key) + { + return isset($data[$key]) && !empty($data[$key]) ? $data[$key] : null; + } +} diff --git a/controllers/admin/PaymentMethodConfig.php b/controllers/admin/PaymentMethodConfig.php new file mode 100644 index 000000000..1c41ac888 --- /dev/null +++ b/controllers/admin/PaymentMethodConfig.php @@ -0,0 +1,74 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Service\BuckarooConfigService; + +class PaymentMethodConfig extends BaseApiController +{ + private BuckarooConfigService $buckarooConfigService; + + public function __construct(BuckarooConfigService $buckarooConfigService) + { + $this->buckarooConfigService = $buckarooConfigService; + } + + public function initContent() + { + switch ($_SERVER['REQUEST_METHOD']) { + case 'GET': + return $this->handleGet(); + break; + case 'POST': + return $this->handlePost(); + break; + } + } + + private function handleGet() + { + // Fetch the parameter from the GET request + $paymentName = \Tools::getValue('paymentName'); + + if (!$paymentName) { + return $this->sendErrorResponse('Payment name is missing.', 400); + } + + $data = [ + 'status' => true, + 'config' => [ + 'value' => $this->buckarooConfigService->getConfigArrayForMethod($paymentName), // Call the repository to fetch the data + ], + ]; + + return $this->sendResponse($data); + } + + private function handlePost() + { + $data = $this->getJsonInput(); + + $paymentName = \Tools::getValue('paymentName'); + if (!$paymentName || !$data) { + return $this->sendErrorResponse('Invalid data provided.', 400); + } + $result = $this->buckarooConfigService->updatePaymentMethodConfig($paymentName, $data); // Call the repository to update the data + + return $this->sendResponse(['status' => $result]); + } +} diff --git a/controllers/admin/PaymentMethodMode.php b/controllers/admin/PaymentMethodMode.php new file mode 100644 index 000000000..4750d4356 --- /dev/null +++ b/controllers/admin/PaymentMethodMode.php @@ -0,0 +1,47 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Service\BuckarooConfigService; +use Symfony\Component\HttpFoundation\Request; + +class PaymentMethodMode extends BaseApiController +{ + private BuckarooConfigService $buckarooConfigService; + + public function __construct(BuckarooConfigService $buckarooConfigService) + { + $this->buckarooConfigService = $buckarooConfigService; + } + + public function initContent(Request $request) + { + if ($_SERVER['REQUEST_METHOD'] !== 'POST') { + return $this->sendErrorResponse('Invalid request method', 405); // 405: Method Not Allowed + } + + $data = $this->getJsonInput(); + if (!isset($data['name'], $data['mode'])) { + return $this->sendErrorResponse('Required data not provided', 400); // 400: Bad Request + } + + $this->buckarooConfigService->updatePaymentMethodMode($data['name'], $data['mode']); + + return $this->sendResponse(['status' => true]); + } +} diff --git a/controllers/admin/PaymentMethods.php b/controllers/admin/PaymentMethods.php new file mode 100644 index 000000000..35eeb89c9 --- /dev/null +++ b/controllers/admin/PaymentMethods.php @@ -0,0 +1,57 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Service\BuckarooConfigService; + +class PaymentMethods extends BaseApiController +{ + private BuckarooConfigService $buckarooConfigService; + + public function __construct(BuckarooConfigService $buckarooConfigService) + { + $this->buckarooConfigService = $buckarooConfigService; + } + + public function initContent() + { + $data = $this->getAllPaymentMethods(); + + return $this->sendResponse($data); + } + + public function getAllPaymentMethods() + { + $payments = $this->getPaymentConfigurations(); + + $data = [ + 'status' => true, + 'payments' => $payments, + ]; + + return $data; + } + + /** + * @throws Exception + */ + private function getPaymentConfigurations() + { + return $this->buckarooConfigService->getPaymentMethodsFromDBWithConfig(); + } +} diff --git a/controllers/admin/Settings.php b/controllers/admin/Settings.php new file mode 100644 index 000000000..617b2094d --- /dev/null +++ b/controllers/admin/Settings.php @@ -0,0 +1,68 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Service\BuckarooSettingsService; + +class Settings extends BaseApiController +{ + private BuckarooSettingsService $settingsService; + + public function __construct() + { + $this->settingsService = new BuckarooSettingsService(); + } + + public function initContent() + { + switch ($_SERVER['REQUEST_METHOD']) { + case 'GET': + return $this->handleGet(); + case 'POST': + return $this->handlePost(); + } + } + + private function handleGet() + { + $data = [ + 'status' => true, + 'settings' => $this->settingsService->getSettings(), + ]; + + return $this->sendResponse($data); + } + + private function handlePost() + { + $data = $this->getJsonInput(); + + if ($this->settingsService->isValidData($data)) { + $this->settingsService->updateSettings($data); + + $data = [ + 'status' => true, + 'settings' => $this->settingsService->getSettings(), + ]; + + return $this->sendResponse($data); + } + + return $this->sendErrorResponse('Invalid input data', 400); + } +} diff --git a/controllers/admin/TestCredentialsApi.php b/controllers/admin/TestCredentialsApi.php new file mode 100644 index 000000000..dcc5d1aa7 --- /dev/null +++ b/controllers/admin/TestCredentialsApi.php @@ -0,0 +1,43 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\BuckarooClient; + +class TestCredentialsApi extends BaseApiController +{ + /** + * @throws PrestaShopException + */ + public function initContent() + { + $data = $this->getJsonInput(); + + if (empty($data['website_key']) || empty($data['secret_key'])) { + return $this->sendResponse([ + 'status' => false, + 'message' => 'Missing website_key or secret_key', + ]); + } + + $buckarooClient = new BuckarooClient($data['website_key'], $data['secret_key']); + $status = $buckarooClient->confirmCredential(); + + return $this->sendResponse(['status' => $status]); + } +} diff --git a/controllers/admin/VerificationMethods.php b/controllers/admin/VerificationMethods.php new file mode 100644 index 000000000..5e952c60c --- /dev/null +++ b/controllers/admin/VerificationMethods.php @@ -0,0 +1,53 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Controllers\admin; + +use Buckaroo\PrestaShop\Src\Service\BuckarooConfigService; + +class VerificationMethods extends BaseApiController +{ + private BuckarooConfigService $buckarooConfigService; + + public function __construct(BuckarooConfigService $buckarooConfigService) + { + $this->buckarooConfigService = $buckarooConfigService; + } + + public function initContent() + { + $data = $this->getAllPaymentMethods(); + + return $this->sendResponse($data); + } + + public function getAllPaymentMethods() + { + $payments = $this->getPaymentConfigurations(); + + return [ + 'status' => true, + 'payments' => $payments, + ]; + } + + private function getPaymentConfigurations() + { + return $this->buckarooConfigService->getVerificationMethodsFromDBWithConfig(); + } +} diff --git a/controllers/admin/index.php b/controllers/admin/index.php index c8e9f2af3..97ec565fb 100644 --- a/controllers/admin/index.php +++ b/controllers/admin/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/controllers/front/ajax.php b/controllers/front/ajax.php index a2765f3a8..8911041ae 100644 --- a/controllers/front/ajax.php +++ b/controllers/front/ajax.php @@ -1,102 +1,156 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -use PrestaShop\Decimal\Number; + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +use PrestaShop\Decimal\DecimalNumber; +use PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException; class Buckaroo3AjaxModuleFrontController extends ModuleFrontController { - + /** + * @throws PrestaShopException + * @throws LocalizationException + */ public function postProcess() { $action = Tools::getValue('action'); - switch ($action) { - case 'getTotalCartPrice': - $cart = Context::getContext()->cart; - $paymentFee = Tools::getValue('paymentFee'); - if (!$paymentFee) { - $presentedCart = $this->cart_presenter->present($this->context->cart); - $this->context->smarty->assign([ - 'configuration' => $this->getTemplateVarConfiguration(), - 'cart' => $presentedCart, - 'display_transaction_updated_info' => Tools::getIsset('updatedTransaction'), - ]); - - $this->ajaxDie( - json_encode( - [ - 'cart_summary_totals' => $this->render('checkout/_partials/cart-summary-totals'), - ] - ) - ); - } - - $paymentFee = new Number(Tools::getValue('paymentFee')); - $orderTotal = new Number((string)$cart->getOrderTotal()); - $orderTotalWithFee = $orderTotal->plus($paymentFee); - - $orderTotalNoTax = new Number((string)$cart->getOrderTotal(false)); - $orderTotalNoTaxWithFee = $orderTotalNoTax->plus($paymentFee); - - $total_including_tax = $orderTotalWithFee->toPrecision(2); - $total_excluding_tax = $orderTotalNoTaxWithFee->toPrecision(2); - - $taxConfiguration = new TaxConfiguration(); - $presentedCart = $this->cart_presenter->present($this->context->cart); - - $presentedCart['totals'] = array( - 'total' => array( - 'type' => 'total', - 'label' => $this->translator->trans('Total', array(), 'Shop.Theme.Checkout'), - 'amount' => $taxConfiguration->includeTaxes() ? $total_including_tax : $total_excluding_tax, - 'value' => Tools::displayPrice( - $taxConfiguration->includeTaxes() ? $total_including_tax : $total_excluding_tax - ), - ), - 'total_including_tax' => array( - 'type' => 'total', - 'label' => $this->translator->trans('Total (tax incl.)', array(), 'Shop.Theme.Checkout'), - 'amount' => $total_including_tax, - 'value' => Tools::displayPrice($total_including_tax), - ), - 'total_excluding_tax' => array( - 'type' => 'total', - 'label' => $this->translator->trans('Total (tax excl.)', array(), 'Shop.Theme.Checkout'), - 'amount' => $total_excluding_tax, - 'value' => Tools::displayPrice($total_excluding_tax), - ), - ); - - $this->context->smarty->assign([ - 'configuration' => $this->getTemplateVarConfiguration(), - 'cart' => $presentedCart, - 'display_transaction_updated_info' => Tools::getIsset('updatedTransaction'), - ]); - - $this->ajaxDie( - json_encode( - [ - 'cart_summary_totals' => $this->render('checkout/_partials/cart-summary-totals'), - ] - ) - ); - break; - default: + if ($action === 'getTotalCartPrice') { + $this->calculateTotalWithPaymentFee(); + } + } + + /** + * @throws PrestaShopException + * @throws Exception + */ + private function renderCartSummary(Cart $cart, array $presentedCart = null) + { + if (!$presentedCart) { + $presentedCart = $this->cart_presenter->present($cart); + } + + $this->context->smarty->assign([ + 'configuration' => $this->getTemplateVarConfiguration(), + 'cart' => $presentedCart, + 'display_transaction_updated_info' => Tools::getIsset('updatedTransaction'), + ]); + + $responseArray = [ + 'cart_summary_totals' => $this->render('checkout/_partials/cart-summary-totals'), + ]; + + $paymentFee = $presentedCart['totals']['paymentFee'] ?? null; + if (isset($paymentFee)) { + $responseArray['paymentFee'] = $paymentFee; + } + + $this->ajaxRender(json_encode($responseArray)); + } + + /** + * @throws PrestaShopException + * @throws LocalizationException + */ + private function calculateTotalWithPaymentFee() + { + $cart = $this->context->cart; + $paymentFeeValue = Tools::getValue('paymentFee'); + $paymentFeeValue = trim($paymentFeeValue); + + if (!$paymentFeeValue) { + $this->renderCartSummary($cart); + + return; + } + + $paymentFee = $this->calculatePaymentFee($paymentFeeValue, $cart); + $orderTotals = $this->calculateOrderTotals($cart, $paymentFee); + + $this->updatePresentedCart($cart, $orderTotals, $paymentFee); + } + + private function calculatePaymentFee($paymentFeeValue, $cart): DecimalNumber + { + $orderTotal = new DecimalNumber((string) $cart->getOrderTotal()); + + if (strpos($paymentFeeValue, '%') !== false) { + $paymentFeeValue = str_replace('%', '', $paymentFeeValue); + $paymentFeeValue = new DecimalNumber((string) $paymentFeeValue); + $percentage = $paymentFeeValue->dividedBy(new DecimalNumber('100')); + + return $orderTotal->times($percentage); + } elseif ($paymentFeeValue > 0) { + return new DecimalNumber((string) $paymentFeeValue); } + + return new DecimalNumber('0'); + } + + private function calculateOrderTotals($cart, $paymentFee): array + { + $orderTotalWithFee = (new DecimalNumber((string) $cart->getOrderTotal()))->plus($paymentFee); + $orderTotalNoTaxWithFee = (new DecimalNumber((string) $cart->getOrderTotal(false)))->plus($paymentFee); + + return [ + 'total_including_tax' => $orderTotalWithFee->toPrecision(2), + 'total_excluding_tax' => $orderTotalNoTaxWithFee->toPrecision(2), + ]; + } + + /** + * @throws PrestaShopException + * @throws LocalizationException + * @throws Exception + */ + private function updatePresentedCart($cart, $orderTotals, $paymentFee) + { + $taxConfiguration = new TaxConfiguration(); + $presentedCart = $this->cart_presenter->present($cart); + + $buckarooFee = $this->formatPrice($paymentFee->toPrecision(2)); + $presentedCart['totals'] = [ + 'total' => [ + 'type' => 'total', + 'label' => $this->translator->trans('Total', [], 'Shop.Theme.Checkout'), + 'amount' => $taxConfiguration->includeTaxes() ? $orderTotals['total_including_tax'] : $orderTotals['total_excluding_tax'], + 'value' => $this->formatPrice($taxConfiguration->includeTaxes() ? $orderTotals['total_including_tax'] : $orderTotals['total_excluding_tax']), + ], + 'total_including_tax' => [ + 'type' => 'total', + 'label' => $this->translator->trans('Total (tax incl.)', [], 'Shop.Theme.Checkout'), + 'amount' => $orderTotals['total_including_tax'], + 'value' => $this->formatPrice($orderTotals['total_including_tax']), + ], + 'total_excluding_tax' => [ + 'type' => 'total', + 'label' => $this->translator->trans('Total (tax excl.)', [], 'Shop.Theme.Checkout'), + 'amount' => $orderTotals['total_excluding_tax'], + 'value' => $this->formatPrice($orderTotals['total_excluding_tax']), + ], + 'paymentFee' => $buckarooFee, + ]; + + $this->renderCartSummary($cart, $presentedCart); + } + + /** + * @throws LocalizationException + */ + private function formatPrice($amount): string + { + return $this->context->getCurrentLocale()->formatPrice($amount, $this->context->currency->iso_code); } } diff --git a/controllers/front/common.php b/controllers/front/common.php index 62d6fcf7a..38871fed4 100644 --- a/controllers/front/common.php +++ b/controllers/front/common.php @@ -1,32 +1,29 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +use PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException; class BuckarooCommonController extends ModuleFrontController { - private $id_order; protected function displayConfirmationTransfer($response) { - $this->context = Context::getContext(); - - $this->id_order = Order::getOrderByCartId($response->getCartId()); + $this->id_order = Order::getIdByCartId($response->getCartId()); $order = new Order($this->id_order); $message = ''; if (!empty($response->consumerMessage['HtmlText'])) { @@ -34,18 +31,25 @@ protected function displayConfirmationTransfer($response) } $this->context->smarty->assign( - array( - 'is_guest' => (($this->context->customer->is_guest) || $this->context->customer->id == false), + [ + 'is_guest' => ($this->context->customer->is_guest || $this->context->customer->id == false), 'order' => $order, 'message' => $message, - ) + ] ); $this->setTemplate('order-confirmation-transfer.tpl'); } + /** + * @throws PrestaShopException + * @throws PrestaShopDatabaseException + * @throws LocalizationException + * @throws Exception + */ protected function displayConfirmation($order_id) { - $this->context = Context::getContext(); + $currency = $this->context->currency; + $locale = \Tools::getContextLocale($this->context); $this->id_order = $order_id; $order = new Order($this->id_order); @@ -53,29 +57,27 @@ protected function displayConfirmation($order_id) $price = $order->getOrdersTotalPaid(); $this->context->smarty->assign( - array( - 'is_guest' => (($this->context->customer->is_guest) || $this->context->customer->id == false), + [ + 'is_guest' => ($this->context->customer->is_guest || $this->context->customer->id == false), 'order' => $order, - 'price' => Tools::displayPrice($price, $this->context->currency->id), - ) + 'price' => $locale->formatPrice($price, $currency->iso_code), + ] ); $this->setTemplate('order-confirmation.tpl'); } protected function displayError($invoicenumber = null, $error_message = null) { - - //if ($invoicenumber != null) if (is_null($error_message)) { $error_message = $this->module->l( 'Your payment was unsuccessful. Please try again or choose another payment method.' ); } $this->context->smarty->assign( - array( + [ 'order_id' => $invoicenumber, 'error_message' => $error_message, - ) + ] ); $this->setTemplate('module:buckaroo3/views/templates/front/error.tpl'); diff --git a/controllers/front/error.php b/controllers/front/error.php index 820f3d6e1..d07970a79 100644 --- a/controllers/front/error.php +++ b/controllers/front/error.php @@ -1,7 +1,5 @@ display_column_left = false; + $cookie = new Cookie('ps'); + $this->display_column_left = false; $this->display_column_right = false; parent::initContent(); $error = Tools::getValue('error', null); diff --git a/controllers/front/index.php b/controllers/front/index.php index 41d7b22cd..42d646f15 100644 --- a/controllers/front/index.php +++ b/controllers/front/index.php @@ -1,22 +1,19 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); @@ -25,4 +22,4 @@ header('Pragma: no-cache'); header('Location: ../../../../../'); -exit; \ No newline at end of file +exit; diff --git a/controllers/front/request.php b/controllers/front/request.php index 12a38610f..5db7c9627 100644 --- a/controllers/front/request.php +++ b/controllers/front/request.php @@ -1,7 +1,5 @@ logInfo("\n\n\n\n***************** Request start ***********************"); - $this->display_column_left = false; - $this->display_column_right = false; - $cart = $this->context->cart; - $logger->logDebug("Get cart", $cart); + $cart = $this->context->cart; + $logger->logDebug('Get cart', $cart->id); if ($cart->id_customer == 0 || $cart->id_address_delivery == 0 || $cart->id_address_invoice == 0 || !$this->module->active) { - $debug = "Customer Id: " . $cart->id_customer . "\nDelivery Address ID: " . - $cart->id_address_delivery . "Invoice Address ID: " . + $debug = 'Customer Id: ' . $cart->id_customer . "\nDelivery Address ID: " . + $cart->id_address_delivery . 'Invoice Address ID: ' . $cart->id_address_invoice . "\nModule Active: " . $this->module->active; - $logger->logError("Validation Error", $debug); + $logger->logError('Validation Error', $debug); Tools::redirect('index.php?controller=order&step=1'); } - $filename = Config::get('BUCKAROO_CERTIFICATE_PATH'); - $merchantkey = Config::get('BUCKAROO_MERCHANT_KEY'); - $secret_key = Config::get('BUCKAROO_SECRET_KEY'); - $thumbprint = Config::get('BUCKAROO_CERTIFICATE_THUMBPRINT'); - if (!file_exists($filename) || empty($merchantkey) || empty($secret_key) || empty($thumbprint)) { + $merchantkey = Configuration::get('BUCKAROO_MERCHANT_KEY'); + $secret_key = Configuration::get('BUCKAROO_SECRET_KEY'); + if (empty($merchantkey) || empty($secret_key)) { $error = $this->module->l( - "Please contact merchant:

Buckaroo Plug-in is not properly configured." + 'Please contact merchant:

Buckaroo Plug-in is not properly configured.' ); Tools::redirect('index.php?fc=module&module=buckaroo3&controller=error&error=' . $error); } @@ -73,47 +73,64 @@ public function postProcess() } if (!$authorized) { - $logger->logError("Authorization Error", 'This payment method is not available.'); - die($this->module->l('This payment method is not available.', 'validation')); + $logger->logError('Authorization Error', 'This payment method is not available.'); + exit($this->module->l('This payment method is not available.', 'validation')); } $customer = new Customer($cart->id_customer); if (!Validate::isLoadedObject($customer)) { - $logger->logError("Load a customer", 'Failed to load the customer with ID: ' . $cart->id_customer); + $logger->logError('Load a customer', 'Failed to load the customer with ID: ' . $cart->id_customer); Tools::redirect('index.php?controller=order&step=1'); - exit(); + exit; } - $currency = $this->context->currency; - $total = (float) $cart->getOrderTotal(true, Cart::BOTH); + $currency = $this->context->currency; + $total = (float) $cart->getOrderTotal(true, Cart::BOTH); $payment_method = Tools::getValue('method'); - if ($buckarooFee = Config::get('BUCKAROO_'.Tools::strtoupper($payment_method).'_FEE')) { - if ($buckarooFee>0) { + $getBuckarooFeeValue = $this->module->getBuckarooFeeService()->getBuckarooFeeValue($payment_method); + if ($buckarooFee = $getBuckarooFeeValue) { + $buckarooFee = trim($buckarooFee); + + if (strpos($buckarooFee, '%') !== false) { + // The fee includes a percentage sign, so treat it as a percentage. + // Remove the percentage sign and convert the remaining value to a float. + $buckarooFee = str_replace('%', '', $buckarooFee); + $total += ($total * ((float) $buckarooFee / 100)); + } elseif ($buckarooFee > 0) { + // The fee is a flat amount. $total += (float) $buckarooFee; } } if (empty($payment_method)) { - $logger->logError("Load a method", 'Failed to load the method'); + $logger->logError('Load a method', 'Failed to load the method'); Tools::redirect('index.php?controller=order&step=1'); - exit(); + exit; } - if (Tools::getValue("service") - && Tools::getValue("service") != 'digi' - && Tools::getValue("service") != 'sepa') { - $logger->logError("Load a method", 'Failed to load the method'); + if (Tools::getValue('service') + && Tools::getValue('service') != 'digi' + && Tools::getValue('service') != 'sepa') { + $logger->logError('Load a method', 'Failed to load the method'); Tools::redirect('index.php?controller=order&step=1'); - exit(); + exit; } - $debug = "Currency: " . $currency->name . "\nTotal Amount: " . $total . "\nPayment Method: " . $payment_method; - $logger->logInfo("Checkout info", $debug); + $debug = 'Currency: ' . $currency->name . "\nTotal Amount: " . $total . "\nPayment Method: " . $payment_method; + $logger->logInfo('Checkout info', $debug); $this->checkout = Checkout::getInstance($payment_method, $cart); - $this->checkout->returnUrl = 'http' . ((!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? 's' : '') . '://' . $_SERVER["SERVER_NAME"] . __PS_BASE_URI__ . 'index.php?fc=module&module=buckaroo3&controller=userreturn';//phpcs:ignore - $logger->logDebug("Get checkout class: ", $this->checkout); - $pending = Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT'); - $payment_method_tr = $this->module->getPaymentTranslation($payment_method); + $this->checkout->platformName = 'PrestaShop'; + $this->checkout->platformVersion = _PS_VERSION_; + $this->checkout->moduleSupplier = $this->module->author; + $this->checkout->moduleName = $this->module->name; + $this->checkout->moduleVersion = $this->module->version; + $this->checkout->returnUrl = 'http' . ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . __PS_BASE_URI__ . 'index.php?fc=module&module=buckaroo3&controller=userreturn'; // phpcs:ignore + $this->checkout->pushUrl = 'http' . ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . __PS_BASE_URI__ . 'index.php?fc=module&module=buckaroo3&controller=return'; + $logger->logDebug('Get checkout class: '); + $pending = Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT'); + + $payment_method_tr = (new RawPaymentMethodRepository())->getPaymentMethodsLabel($payment_method); + if (!$this->checkout->isVerifyRequired()) { $this->module->validateOrder( $cart->id, @@ -127,15 +144,15 @@ public function postProcess() $customer->secure_key ); } - $id_order_cart = Order::getOrderByCartId($cart->id); - $order = new Order($id_order_cart); + $id_order_cart = Order::getIdByCartId($cart->id); + $order = new Order($id_order_cart); $this->checkout->setReference($order->reference); $this->checkout->setCheckout(); - $logger->logDebug("Set checkout info: ", $this->checkout); + $logger->logDebug('Set checkout info: '); if ($this->checkout->isVerifyRequired()) { $logger->logInfo('Start verify process'); - $this->checkout->startVerify(['cid'=>$cart->id_customer]); + $this->checkout->startVerify(['cid' => $cart->id_customer]); } else { $logger->logInfo('Start the payment process'); $this->checkout->startPayment(); @@ -146,50 +163,50 @@ public function postProcess() $logger->loginfo('Request succeeded'); if ($this->checkout->isRedirectRequired()) { - $oldCart = new Cart($response->getCartId()); + $oldCart = new Cart($cart->id); $duplication = $oldCart->duplicate(); if ($duplication && Validate::isLoadedObject($duplication['cart']) && $duplication['success']) { $this->context->cookie->id_cart = $duplication['cart']->id; $this->context->cookie->write(); } + $logger->logInfo('Redirecting ... '); $this->checkout->doRedirect(); - exit(); + exit; } - $response = $this->checkout->getResponse(); $logger->logDebug('Checkout response', $response); if ($response->hasSucceeded()) { $logger->logInfo('Payment request succeeded. Wait push message!'); - $id_order = $this->module->currentOrder; - $message = new Message(); + $id_order = $this->module->currentOrder; + $message = new Message(); $message->id_order = $id_order; - $message->message = 'Transaction key: ' . $response->transactions; + $message->message = 'Transaction key: ' . $response->transactions; $message->add(); - + // TODO fix adding Mandateref & date as message if ($response->payment_method == 'SepaDirectDebit') { /* @var $response Response */ foreach ($response->getResponse()->Services->Service->ResponseParameter as $param) { if ($param->Name == 'MandateReference') { - $message = new Message(); + $message = new Message(); $message->id_order = $id_order; - $message->message = 'MandateReference: ' . $param->_; + $message->message = 'MandateReference: ' . $param->_; $message->add(); } if ($param->Name == 'MandateDate') { - $message = new Message(); + $message = new Message(); $message->id_order = $id_order; - $message->message = 'MandateDate: ' . $param->_; + $message->message = 'MandateDate: ' . $param->_; $message->add(); } } } if ($response->payment_method == 'transfer') { - $this->context->cookie->__set("HtmlText", $response->consumerMessage['HtmlText']); + $this->context->cookie->__set('HtmlText', $response->consumerMessage['HtmlText']); } Tools::redirect( - 'index.php?controller=order-confirmation&id_cart=' . $cart->id . '&id_module=' . $this->module->id . '&id_order=' . $id_order . '&key=' . $customer->secure_key . '&responce_received=' . $response->payment_method//phpcs:ignore + 'index.php?controller=order-confirmation&id_cart=' . $cart->id . '&id_module=' . $this->module->id . '&id_order=' . $id_order . '&key=' . $customer->secure_key . '&success=true&response_received=' . $response->payment_method// phpcs:ignore ); } else { $logger->logInfo('Payment request failed/canceled'); @@ -201,17 +218,17 @@ public function postProcess() $logger->logInfo( 'Update order history with status: ' . Buckaroo3::resolveStatusCode($response->status) ); - $order = new Order($id_order); + $order = new Order($id_order); $new_status_code = Buckaroo3::resolveStatusCode($response->status); - $pending = Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT'); - $canceled = Configuration::get('BUCKAROO_ORDER_STATE_FAILED'); - $error = Configuration::get('PS_OS_ERROR'); + $pending = Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT'); + $canceled = Configuration::get('BUCKAROO_ORDER_STATE_FAILED'); + $error = Configuration::get('PS_OS_ERROR'); if ($new_status_code != $order->getCurrentState() && ($pending == $order->getCurrentState() || $error == $order->getCurrentState() || $canceled == $order->getCurrentState()) ) { - $order_history = new OrderHistory(); + $order_history = new OrderHistory(); $order_history->id_order = $id_order; $order_history->changeIdOrderState( Buckaroo3::resolveStatusCode($response->status), @@ -223,7 +240,7 @@ public function postProcess() $logger->logInfo('Find order by cart ID', 'Order not found.'); } - $oldCart = new Cart($response->getCartId()); + $oldCart = new Cart($cart->id); $duplication = $oldCart->duplicate(); if ($duplication && Validate::isLoadedObject($duplication['cart']) @@ -239,40 +256,44 @@ public function postProcess() } $this->displayError($id_order, $error); } else { - $oldCart = new Cart($cart->id); + $oldCart = new Cart($cart->id); $duplication = $oldCart->duplicate(); if ($duplication && Validate::isLoadedObject($duplication['cart']) && $duplication['success']) { $this->context->cookie->id_cart = $duplication['cart']->id; $this->context->cookie->write(); } - $logger->logError('Payment request not valid', $response); + $logger->logInfo('Payment request not valid'); $error = null; if (($response->payment_method == 'afterpayacceptgiro' || $response->payment_method == 'afterpaydigiaccept') && $response->statusmessage) { $error = $response->statusmessage; } - $this->displayError(null, error); + $this->displayError(null, $error); } - }; + } } else { $response = $this->checkout->getResponse(); - $logger->logError('Request not succeeded', $this->checkout); - $oldCart = new Cart($cart->id); + $logger->logInfo('Request not succeeded'); + + $oldCart = new Cart($cart->id); $duplication = $oldCart->duplicate(); + if ($duplication && Validate::isLoadedObject($duplication['cart']) && $duplication['success']) { $this->context->cookie->id_cart = $duplication['cart']->id; $this->context->cookie->write(); } + $error = null; - if (!empty($response) && !empty($response->payment_method) - && !empty($response->payment_method) - && ($response->payment_method == 'afterpayacceptgiro' - || $response->payment_method == 'afterpaydigiaccept') - ) { - $error = $response->statusmessage; + if ($response->hasSomeError()) { + $error = $response->getSomeError(); } - $this->displayError(null, $error); - }; + + if (isset($error['errorresponsemessage']) && is_array($error)) { + $this->displayError(null, $error['errorresponsemessage']); + } else { + $this->displayError(null, $error); + } + } } } diff --git a/controllers/front/return.php b/controllers/front/return.php index bb81ad0ae..ecde2326c 100644 --- a/controllers/front/return.php +++ b/controllers/front/return.php @@ -1,7 +1,5 @@ setContainer(); + } + /** * @see FrontController::initContent() */ public function initContent() { - - $this->display_column_left = false; + $this->display_column_left = false; $this->display_column_right = false; - $logger = new Logger(Logger::INFO, 'return'); + $logger = new Logger(Logger::INFO, 'return'); $logger->logInfo("\n\n\n\n***************** Return start ***********************"); parent::initContent(); - $statuses = array(); - $tmp = OrderState::getOrderStates(1); + $statuses = []; + $tmp = OrderState::getOrderStates(1); foreach ($tmp as $stat) { - $statuses[$stat["id_order_state"]] = $stat["name"]; + $statuses[$stat['id_order_state']] = $stat['name']; } $response = ResponseFactory::getResponse(); $logger->logInfo('Parse response', $response); @@ -50,36 +53,33 @@ public function initContent() if ($response->isValid()) { $logger->logInfo('Response valid'); if (!empty($response->payment_method) - && - ($response->payment_method == 'paypal') - && - !empty($response->statuscode) - && - ($response->statuscode == 791) + && ($response->payment_method == 'paypal') + && !empty($response->statuscode) + && ($response->statuscode == 791) ) { $response->statuscode == 890; $response->status = $response::BUCKAROO_CANCELED; } - $id_order = Order::getOrderByCartId($response->getCartId()); - $orders = Order::getByReference($response->getReferenceId()); - $references = array(); + $id_order = Order::getOrderByCartId($response->getCartId()); + $orders = Order::getByReference($response->getReferenceId()); + $references = []; foreach ($orders as $order) { - $row = get_object_vars($order); + $row = get_object_vars($order); $references[] = $row['reference']; } $logger->logInfo('Get order by cart id', 'Order ID: ' . $id_order); if ($response->brq_relatedtransaction_partialpayment != null) { - $logger->logInfo('PUSH', "Partial payment PUSH received " . $response->status); + $logger->logInfo('PUSH', 'Partial payment PUSH received ' . $response->status); if ($id_order && $response->hasSucceeded()) { $order = new Order($id_order); $order->setInvoice(false); - $payment = new OrderPayment(); + $payment = new OrderPayment(); $payment->order_reference = $order->reference; - $payment->id_currency = $order->id_currency; - $payment->transaction_id = $response->transactions; - $payment->amount = urldecode($response->amount); - $payment->payment_method = $response->payment_method; + $payment->id_currency = $order->id_currency; + $payment->transaction_id = $response->transactions; + $payment->amount = urldecode($response->amount); + $payment->payment_method = $response->payment_method; if ($payment->id_currency == $order->id_currency) { $order->total_paid_real += $response->amount; } else { @@ -97,91 +97,60 @@ public function initContent() VALUES(' . (int) $order->invoice_number . ', ' . (int) $payment->id . ', ' . (int) $order->id . ')' ); - $message = new Message(); + $message = new Message(); $message->id_order = $id_order; - $message->message = 'Buckaroo partial payment message (' . $response->transactions . '): ' . $response->statusmessage;//phpcs:ignore + $message->message = 'Buckaroo partial payment message (' . $response->transactions . '): ' . $response->statusmessage; // phpcs:ignore $message->add(); } - exit(); + exit; } - if ($response->brq_relatedtransaction_refund != null) { - $logger->logInfo('PUSH', "Refund payment PUSH received " . $response->status); - if ($response->hasSucceeded()) { - $order = new Order($id_order); - if (isset(OrderPayment::$definition['fields']['amount']['validate'])) { - OrderPayment::$definition['fields']['amount']['validate'] = 'isAnything'; - } - $payment = new OrderPayment(); - $payment->order_reference = $order->reference; - $payment->id_currency = $order->id_currency; - $payment->transaction_id = $response->transactions; - $payment->amount = urldecode($response->amount_credit) * (-1); - $payment->payment_method = $response->payment_method; - - // $oldRealpaid = $order->total_paid_real; -/* if ($payment->id_currency == $order->id_currency) { - $order->total_paid_real += $payment->amount; - } else { - $order->total_paid_real += Tools::ps_round( - Tools::convertPrice($payment->amount, $payment->id_currency, false), - 2 - ); - }*/ - $order->save(); - // if ($order->total_paid_real == 0 && $oldRealpaid > 0) { - $new_status_code = Configuration::get('PS_OS_REFUND'); - $history = new OrderHistory(); - $history->id_order = $id_order; - $history->date_add = date('Y-m-d H:i:s'); - $history->date_upd = date('Y-m-d H:i:s'); - $history->changeIdOrderState($new_status_code, $id_order); - $history->addWithemail(false); - // } - $payment->conversion_rate = 1; - $payment->save(); - - $query = "INSERT INTO `" . _DB_PREFIX_ . "buckaroo_transactions` (transaction_id, original_transaction) VALUES('" . pSQL($response->transactions) . "', '" . pSQL($response->brq_relatedtransaction_refund) . "')";//phpcs:ignore - Db::getInstance()->execute($query); - $message = new Message(); - $message->id_order = $id_order; - $message->message = 'Buckaroo refund message (' . $response->transactions . '): ' . $response->statusmessage;//phpcs:ignore - $message->add(); + if ($response->brq_relatedtransaction_refund != null) { + try { + $refundPushHandler = $this->symContainer->get('buckaroo.refund.push.handler'); + $refundPushHandler->handle(); + $messageRepo = $this->symContainer->get('buckaroo.refund.order.message'); + $messageRepo->add( + $order, + 'Buckaroo refund message (' . $response->transactions . '): ' . $response->statusmessage + ); + } catch (\Throwable $th) { + $logger->logInfo('PUSH', (string) $th); } - exit(); + exit; } if (!$id_order) { - header("HTTP/1.1 503 Service Unavailable"); - echo "Order do not exists"; - $logger->logInfo('PUSH', "Order do not exists"); - exit(); + header('HTTP/1.1 503 Service Unavailable'); + echo 'Order do not exists'; + $logger->logInfo('PUSH', 'Order do not exists'); + exit; } else { - $logger->logInfo('Update the order', "Order ID: " . $id_order); + $logger->logInfo('Update the order', 'Order ID: ' . $id_order); $new_status_code = Buckaroo3::resolveStatusCode($response->status); - $order = new Order($id_order); + $order = new Order($id_order); if (!in_array($order->reference, $references)) { - header("HTTP/1.1 503 Service Unavailable"); + header('HTTP/1.1 503 Service Unavailable'); $logger->logInfo('Order not in reference ' . $order->reference); echo 'Order not in reference: ' . $order->reference; - exit(); + exit; } $logger->logInfo( 'Old order status code: ' . $order->getCurrentState( - ) . "; new order status code: " . $new_status_code + ) . '; new order status code: ' . $new_status_code ); - $pending = Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT'); + $pending = Configuration::get('BUCKAROO_ORDER_STATE_DEFAULT'); $canceled = Configuration::get('BUCKAROO_ORDER_STATE_FAILED'); $error = Configuration::get('PS_OS_ERROR'); $outofstock_unpaid = Configuration::get('PS_OS_OUTOFSTOCK_UNPAID'); - if ($new_status_code != $order->getCurrentState() && - ($pending == $order->getCurrentState() || $canceled == $order->getCurrentState( + if ($new_status_code != $order->getCurrentState() + && ($pending == $order->getCurrentState() || $canceled == $order->getCurrentState( ) || $error == $order->getCurrentState() || $outofstock_unpaid == $order->getCurrentState()) ) { - $logger->logInfo("Update order status"); - $history = new OrderHistory(); + $logger->logInfo('Update order status'); + $history = new OrderHistory(); $history->id_order = $id_order; $history->date_add = date('Y-m-d H:i:s'); $history->date_upd = date('Y-m-d H:i:s'); @@ -208,43 +177,55 @@ public function initContent() if (!empty($statuses[$new_status_code])) { $statusCodeName = $statuses[$new_status_code]; } - $message = new Message(); + $message = new Message(); $message->id_order = $id_order; - $message->message = 'Push message recieved. Buckaroo status: ' . $statusCodeName . '. Transaction key: ' . $response->transactions;//phpcs:ignore + $message->message = 'Push message recieved. Buckaroo status: ' . $statusCodeName . '. Transaction key: ' . $response->transactions; // phpcs:ignore $message->add(); if ($response->statusmessage) { - $message = new Message(); + $message = new Message(); $message->id_order = $id_order; - $message->message = 'Buckaroo message: ' . $response->statusmessage; + $message->message = 'Buckaroo message: ' . $response->statusmessage; $message->add(); } } } else { - header("HTTP/1.1 503 Service Unavailable"); + header('HTTP/1.1 503 Service Unavailable'); $logger->logError('Payment response not valid', $response); echo 'Payment response not valid'; - exit(); + exit; } $sql = 'SELECT buckaroo_fee FROM ' . _DB_PREFIX_ . 'buckaroo_fee where id_cart = ' . - (int)($response->getCartId()); + (int) $response->getCartId(); $buckarooFee = Db::getInstance()->getValue($sql); if ($buckarooFee && (isset($payment) && $payment->payment_method != 'Group transaction')) { - $jj=0; + $jj = 0; foreach ($payments as $payment) { - if ($jj>0) { + if ($jj > 0) { continue; } if ($payment->amount != $response->amount && $payment->transaction_id == '') { $payment->amount = $response->amount; $payment->transaction_id = $response->transactions; $payment->update(); - $jj++; + ++$jj; } } } - exit(); + exit; + } + + private function setContainer() + { + global $kernel; + + if (!$kernel) { + require_once _PS_ROOT_DIR_ . '/app/AppKernel.php'; + $kernel = new \AppKernel('prod', false); + $kernel->boot(); + } + $this->symContainer = $kernel->getContainer(); } } diff --git a/controllers/front/userreturn.php b/controllers/front/userreturn.php index 080e3e9f8..2e9bcb52c 100644 --- a/controllers/front/userreturn.php +++ b/controllers/front/userreturn.php @@ -1,7 +1,5 @@ logDebug('Checkout response', $response); if ($response->isValid()) { $logger->logInfo('Payment request succeeded'); if (!empty($response->payment_method) - && - ($response->payment_method == 'paypal') - && - !empty($response->statuscode) - && - ($response->statuscode == 791) + && ($response->payment_method == 'paypal') + && !empty($response->statuscode) + && ($response->statuscode == 791) ) { $response->statuscode == 890; $response->status = $response::BUCKAROO_CANCELED; } $id_order = Order::getOrderByCartId($response->getCartId()); - $logger->logInfo('Update the order', "Order ID: " . $id_order); + $logger->logInfo('Update the order', 'Order ID: ' . $id_order); if ($response->hasSucceeded()) { - $cart = new Cart($response->getCartId()); + $cart = new Cart($response->getCartId()); $customer = new Customer($cart->id_customer); if (!Validate::isLoadedObject($customer)) { - $logger->logError("Load a customer", 'Failed to load the customer with ID: ' . $cart->id_customer); + $logger->logError('Load a customer', 'Failed to load the customer with ID: ' . $cart->id_customer); Tools::redirect('index.php?controller=order&step=1'); - exit(); + exit; } $payment_method = $response->payment_method; - if ($payment_method=='bancontactmrcash') { - $payment_method='MISTERCASH'; + if ($payment_method == 'bancontactmrcash') { + $payment_method = 'MISTERCASH'; } $this->context->cart->delete(); - $redirectUrl = 'http' . ((Tools::getIsset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? 's' : '') . '://' . $_SERVER["SERVER_NAME"] . __PS_BASE_URI__ . 'index.php?controller=order-confirmation&id_cart=' . $cart->id . '&id_module=' . $this->module->id . '&id_order=' . $id_order . '&key=' . $customer->secure_key . '&success=true';//phpcs:ignore + $redirectUrl = $this->context->link->getPageLink('order-confirmation', null, null, [ + 'id_cart' => $cart->id, + 'id_module' => $this->module->id, + 'id_order' => $id_order, + 'key' => $customer->secure_key, + 'success' => 'true', + ]); Tools::redirect($redirectUrl); } else { $cookie->statusMessage = ''; @@ -77,12 +77,12 @@ public function initContent() $cookie->statusMessage = $response->statusmessage; } Tools::redirect('index.php?fc=module&module=buckaroo3&controller=error'); - exit(); + exit; } } else { $cookie->statusMessage = 'Not valid response'; Tools::redirect('index.php?fc=module&module=buckaroo3&controller=error'); } - exit(); + exit; } } diff --git a/controllers/index.php b/controllers/index.php index 6ef29d251..42d646f15 100644 --- a/controllers/index.php +++ b/controllers/index.php @@ -1,28 +1,25 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../../../../../'); -exit; \ No newline at end of file + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../../../../../'); +exit; diff --git a/dev/README.md b/dev/README.md new file mode 100644 index 000000000..bbe8ae1b0 --- /dev/null +++ b/dev/README.md @@ -0,0 +1,24 @@ +# dev + +## Project setup +``` +npm install +``` + +### Compiles and hot-reloads for development +``` +npm run serve +``` + +### Compiles and minifies for production +``` +npm run build +``` + +### Lints and fixes files +``` +npm run lint +``` + +### Customize configuration +See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/dev/index.php b/dev/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/lang/index.php b/dev/lang/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/lang/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/lang/php_en.json b/dev/lang/php_en.json new file mode 100644 index 000000000..b6923329d --- /dev/null +++ b/dev/lang/php_en.json @@ -0,0 +1,424 @@ +{ + "buckaroo.response.invalid_parameter_originaltransaction": "Invalid parameter originaltransaction.", + "buckaroo.response.an_error_occurred_while_processing_the_transaction_unable_to_pay_more_with_giftcards": "An error occurred while processing the transaction: Unable to pay more with giftcards", + "countries.afghanistan": "Afghanistan", + "countries.albania": "Albania", + "countries.algeria": "Algeria", + "countries.american_samoa": "American Samoa", + "countries.andorra": "Andorra", + "countries.angola": "Angola", + "countries.anguilla": "Anguilla", + "countries.antigua_and_barbuda": "Antigua and Barbuda", + "countries.argentina": "Argentina", + "countries.armenia": "Armenia", + "countries.aruba": "Aruba", + "countries.australia": "Australia", + "countries.austria": "Austria", + "countries.azerbaijan": "Azerbaijan", + "countries.bahamas": "Bahamas", + "countries.bahrain": "Bahrain", + "countries.bangladesh": "Bangladesh", + "countries.barbados": "Barbados", + "countries.belarus": "Belarus", + "countries.belgium": "Belgium", + "countries.belize": "Belize", + "countries.benin": "Benin", + "countries.bermuda": "Bermuda", + "countries.bhutan": "Bhutan", + "countries.bolivia": "Bolivia", + "countries.bosnia_and_herzegovina": "Bosnia and Herzegovina", + "countries.botswana": "Botswana", + "countries.brazil": "Brazil", + "countries.brunei_darussalam": "Brunei Darussalam", + "countries.bulgaria": "Bulgaria", + "countries.burkina_faso": "Burkina Faso", + "countries.burundi": "Burundi", + "countries.cambodia": "Cambodia", + "countries.cameroon": "Cameroon", + "countries.canada": "Canada", + "countries.cape_verde": "Cape Verde", + "countries.cayman_islands": "Cayman Islands", + "countries.central_african_republic": "Central African Republic", + "countries.chad": "Chad", + "countries.chile": "Chile", + "countries.china": "China", + "countries.colombia": "Colombia", + "countries.comoros": "Comoros", + "countries.republic_of_the_congo": "Democratic Republic of the Congo", + "countries.democratic_republic_of_the_congo": "Democratic Republic of the Congo", + "countries.cook_islands": "Island", + "countries.costa_rica": "Costa Rica", + "countries.côte_d'ivoire": "Cote Divoire", + "countries.croatia": "Croatia", + "countries.cuba": "Cuba", + "countries.curaçao": "Curacao", + "countries.cyprus": "Cyprus", + "countries.czech_republic": "Czech Republic", + "countries.denmark": "Denmark", + "countries.djibouti": "Djibouti", + "countries.dominica": "Dominica", + "countries.dominican_republic": "Dominican Republic", + "countries.ecuador": "Ecuador", + "countries.egypt": "Egypt", + "countries.el_salvador": "El Salvador", + "countries.equatorial_guinea": "Equatorial Guinea", + "countries.eritrea": "Eritrea", + "countries.estonia": "Estonia", + "countries.ethiopia": "Ethiopia", + "countries.falkland_island": "Falkland Island", + "countries.faroe_islands": "Faroe Islands", + "countries.fiji": "Fiji", + "countries.finland": "Finland", + "countries.france": "France", + "countries.french_polynesia": "French Polynesia", + "countries.gabon": "Gabon", + "countries.gambia": "Gambia", + "countries.georgia": "Georgia", + "countries.germany": "Germany", + "countries.ghana": "Ghana", + "countries.gibraltar": "Gibraltar", + "countries.greece": "Greece", + "countries.greenland": "Greenland", + "countries.grenada": "Grenada", + "countries.guam": "Guam", + "countries.guatemala": "Guatemala", + "countries.guernsey": "Guernsey", + "countries.guinea": "Guinea", + "countries.guinea-bissau": "Guinea-Bissau", + "countries.guyana": "Guyana", + "countries.haiti": "Haiti", + "countries.honduras": "Honduras", + "countries.hong_kong": "Hong Kong", + "countries.hungary": "Hungary", + "countries.iceland": "Iceland", + "countries.india": "India", + "countries.indonesia": "Indonesia", + "countries.iran": "Iran", + "countries.iraq": "Iraq", + "countries.ireland": "Ireland", + "countries.isle_of_man": "Isle of Man", + "countries.israel": "Israel", + "countries.italy": "Italy", + "countries.jamaica": "Jamaica", + "countries.japan": "Japan", + "countries.jersey": "Jersey", + "countries.jordan": "Jordan", + "countries.kazakhstan": "Kazakhstan", + "countries.kenya": "Kenya", + "countries.kiribati": "Kiribati", + "countries.north_korea": "North Korea", + "countries.south_korea": "South Korea", + "countries.kosovo": "Kosovo", + "countries.kuwait": "Kuwait", + "countries.kyrgyzstan": "Kyrgyzstan", + "countries.laos": "Laos", + "countries.latvia": "Latvia", + "countries.lebanon": "Lebanon", + "countries.lesotho": "Lesotho", + "countries.liberia": "Liberia", + "countries.libya": "Libya", + "countries.liechtenstein": "Liechtenstein", + "countries.lithuania": "Lithuania", + "countries.luxembourg": "Luxembourg", + "countries.macau": "Macao", + "countries.macedonia": "Macedonia", + "countries.madagascar": "Madagascar", + "countries.malawi": "Malawi", + "countries.malaysia": "Malaysia", + "countries.maldives": "Maldives", + "countries.mali": "Mali", + "countries.malta": "Malta", + "countries.marshall_islands": "Marshall Islands", + "countries.mauritania": "Mauritania", + "countries.mauritius": "Mauritius", + "countries.mayotte": "Mayotte", + "countries.mexico": "Mexico", + "countries.micronesia": "Micronesia", + "countries.moldova": "Moldova", + "countries.monaco": "Monaco", + "countries.mongolia": "Mongolia", + "countries.montenegro": "Montenegro", + "countries.montserrat": "Montserrat", + "countries.morocco": "Morocco", + "countries.mozambique": "Mozambique", + "countries.myanmar": "Myanmar", + "countries.namibia": "Namibia", + "countries.nauru": "Nauru", + "countries.nepal": "Nepal", + "countries.netherlands": "Netherlands", + "countries.new_caledonia": "New Caledonia", + "countries.new_zealand": "New Zealand", + "countries.nicaragua": "Nicaragua", + "countries.niger": "Niger", + "countries.nigeria": "Nigeria", + "countries.niue": "Niue", + "countries.norfolk_island": "Norfolk Island", + "countries.northern_mariana_islands": "Northern Mariana Islands", + "countries.norway": "Norway", + "countries.oman": "Oman", + "countries.pakistan": "Pakistan", + "countries.palau": "Palau", + "countries.palestine": "Palestine", + "countries.panama": "Panama", + "countries.papua_new_guinea": "Papua New Guinea", + "countries.paraguay": "Paraguay", + "countries.peru": "Peru", + "countries.philippines": "Philippines", + "countries.pitcairn": "Pitekaien", + "countries.poland": "Poland", + "countries.portugal": "Portugal", + "countries.puerto_rico": "Puerto Rico", + "countries.qatar": "Qatar", + "countries.romania": "Romania", + "countries.russia": "Russia", + "countries.rwanda": "Rwanda", + "countries.saint_helena": "St. Helena", + "countries.saint_kitts_and_nevis": "Saint Kitts and Nevis", + "countries.saint_lucia": "Saint Lucia", + "countries.saint_vincent_and_the_grenadines": "Saint Vincent and the Grenadines", + "countries.samoa": "Samoa", + "countries.san_marino": "San Marino", + "countries.sao_tome_and_principe": "Sao Tome and Principe", + "countries.saudi_arabia": "Saudi Arabia", + "countries.senegal": "Senegal", + "countries.serbia": "Serbia", + "countries.seychelles": "Seychelles", + "countries.sierra_leone": "Sierra Leone", + "countries.singapore": "Singapore", + "countries.slovakia": "Slovakia", + "countries.slovenia": "Slovenia", + "countries.solomon_islands": "Solomon Islands", + "countries.somalia": "Somalia", + "countries.south_africa": "South Africa", + "countries.south_sudan": "South Sudan", + "countries.spain": "Spain", + "countries.sri_lanka": "Sri Lanka", + "countries.sudan": "Sudan", + "countries.suriname": "Surinam", + "countries.swaziland": "Swaziland", + "countries.sweden": "Sweden", + "countries.switzerland": "Switzerland", + "countries.syrian_arab_republic": "Syrian Arab Republic", + "countries.taiwan": "Taiwan", + "countries.tajikistan": "Tajikistan", + "countries.tanzania": "Tanzania", + "countries.thailand": "Thailand", + "countries.east_timor": "East Timor", + "countries.togo": "Togo", + "countries.tokelau": "Tokelau", + "countries.tonga": "Tonga", + "countries.trinidad_and_tobago": "Trinidad and Tobago", + "countries.tunisia": "Tunisia", + "countries.turkey": "Turkey", + "countries.turkmenistan": "Turkmenistan", + "countries.turks_and_caicos_islands": "Turks and Caicos Islands", + "countries.tuvalu": "Tuvalu", + "countries.uganda": "Uganda", + "countries.ukraine": "Ukraine", + "countries.united_arab_emirates": "United Arab Emirates", + "countries.united_kingdom": "United Kingdom", + "countries.united states": "United States", + "countries.uruguay": "Uruguay", + "countries.uzbekistan": "Uzbekistan", + "countries.vanuatu": "Vanuatu", + "countries.venezuela": "Venezuela", + "countries.vietnam": "Vietnam", + "countries.british_virgin_islands": "The British Virgin Islands", + "countries.us_virgin_islands": "US Virgin Islands", + "countries.wallis_and_futuna": "Wallis and Futuna", + "countries.western_sahara": "Western Sahara", + "countries.yemen": "Yemen", + "countries.zambia": "Zambia", + "countries.zimbabwe": "Zimbabwe", + "dashboard.channel_selector.select_channel": "Select Channel", + "dashboard.channel_selector.select_channel_label": "Each channel has its configuration settings.", + "dashboard.country_select.search_countries": "Search Countries", + "dashboard.menu.channel": "Channel", + "dashboard.menu.settings": "Settings", + "dashboard.menu.payment_methods": "Payment methods", + "dashboard.menu.verification_methods": "Verification methods", + "dashboard.menu.order_payment_methods": "Order Payments Methods", + "dashboard.pages.order_payment_methods.if_you_have_any_questions": "If you have any questions about this plugin from Buckaroo, then you can contact us by e-mail:", + "dashboard.pages.order_payment_methods.order_payment_methods": "Order Payment Methods", + "dashboard.pages.order_payment_methods.order_payment_methods_label": "Change the order of payment methods.", + "dashboard.pages.order_payment_methods.all_countries": "All Countries", + "dashboard.pages.order_payment_methods.all_coquesuntries": "All Countries", + "dashboard.pages.order_payment_methods.search_country": "Search country", + "dashboard.pages.order_payment_methods.payment_method_order_updated_successfully": "Payment method order updated successfully.", + "dashboard.pages.order_payment_methods.something_went_wrong": "Something went wrong.", + "dashboard.pages.order_payment_methods.how_to_order_payment_method": "How to change the order of the payment methods in the checkout", + "dashboard.pages.order_payment_methods.explanation_intro": "You can easily change the order of the payment methods by dragging them into the right place, from top to bottom.\nEven setting a specific payment method order for a specific country is possible.\nThis so you can highlight local payment methods for customers across different countries.", + "dashboard.pages.order_payment_methods.step_one": "First select the country for which you want to change the display order of the payment methods.\nOr you can select “All Countries” to use a specific order of the payment methods globally.", + "dashboard.pages.order_payment_methods.step_two": "Drag and drop the payment methods in the order of your liking.\nThis can be done by dragging them from top to bottom with the arrow icons.", + "dashboard.pages.order_payment_methods.step_three": "Save your chosen payment methods order and check if the payment methods are showed in the correct order in the checkout of your webshop.", + "dashboard.pages.payments.service_code_label": "After you request your custom giftcard by Intersolve you will receive an email about your service code. If you have any questions about this do not hesitate to mail us at ", + "dashboard.pages.payments.configure_your_payment_name_settings": "Configure your {payment_name} settings", + "dashboard.pages.payments.configure_your_verification_name_settings": "Configure your {verification_name} settings", + "dashboard.pages.payments.modes_settings.live": "Live", + "dashboard.pages.payments.modes_settings.test": "Test", + "dashboard.pages.payments.modes_settings.off": "Off", + "dashboard.pages.payments.configure": "Configure", + "dashboard.pages.payments.settings": "Settings", + "dashboard.pages.payments.save": "Save", + "dashboard.pages.payments.mode": "Mode", + "dashboard.pages.payments.mode_label": "When set to \"Live\" you can do actual payments. When set to \"Testing\" you can do test transactions. This payment method will not appear when it is set to \"Off\".", + "dashboard.pages.payments.front_label": "Front Label", + "dashboard.pages.payments.front_label_label": "This name will be displayed for this payment method in the checkout. When this field is empty, the standard payment method name will be displayed.", + "dashboard.pages.payments.payment_fee_incl_vat": "Payment fee incl. VAT", + "dashboard.pages.payments.payment_fee_incl_vat_label": "You can charge a fee when the customer select this payment. Specify static (e.g. 1.50). Decimals must be separated by a dot (.)", + "dashboard.pages.payments.order_amount_allowed": "Order amount allowed", + "dashboard.pages.payments.order_amount_allowed_label": "This method will only be shown when this condition is met.", + "dashboard.pages.payments.minimum_order_amount": "Minimum order amount", + "dashboard.pages.payments.maximum_order_amount": "Maximum order amount", + "dashboard.pages.payments.countries": "Countries", + "dashboard.pages.payments.countries_label": "The payment method will only be showed for selected countries. You can leave this setting empty to display the payment method for all countries.", + "dashboard.pages.payments.all_countries": "All Countries", + "dashboard.pages.payments.clear": "Clear", + "dashboard.pages.payments.search_country": "Search Country", + "dashboard.pages.payments.show_country_number_and_more": "and {country_number} more...", + "dashboard.pages.payments.show_less": "Show less", + "dashboard.pages.payments.client_side": "Client Side Encryption", + "dashboard.pages.payments.client_side_label": "Enable or disable client sided payment method behavior.", + "dashboard.pages.payments.seperate_authorize_and_capture": "Seperate authorize and capture", + "dashboard.pages.payments.seperate_authorize_and_capture_label": "When this option is enabled you have to manually capture the credit- or debitcard payment.", + "dashboard.pages.payments.allowed_creditcards": "Allowed Credit- and debitcards", + "dashboard.pages.payments.allowed_creditcards_label": "Only selected credit- or debitcards will be showed for this method", + "dashboard.pages.payments.search_creditcard": "Search Credit- or debitcard", + "dashboard.pages.payments.allowed_giftcards": "Allowed giftcards", + "dashboard.pages.payments.allowed_giftcards_label": "Only selected giftcards will this method be shown", + "dashboard.pages.payments.add_custom_giftcard": "Add custom giftcard", + "dashboard.pages.payments.search_giftcard": "Search Giftcard", + "dashboard.pages.payments.custom_giftcard": "Custom giftcard", + "dashboard.pages.payments.add": "Add", + "dashboard.pages.payments.edit": "Edit", + "dashboard.pages.payments.remove": "Remove", + "dashboard.pages.payments.giftcard_name": "Giftcard Name", + "dashboard.pages.payments.enter_giftcard_details": "Enter giftcard details", + "dashboard.pages.payments.service_code": "Service Code", + "dashboard.pages.payments.custom_icon_url": "Custom Icon URL", + "dashboard.pages.payments.payment_methods": "Payments methods", + "dashboard.pages.payments.verification_methods": "Verification methods", + "dashboard.pages.payments.configure_your_payment_method_settings": "Configure your payment method settings", + "dashboard.pages.payments.configure_your_verification_method_settings": "Configure your verification method settings", + "dashboard.pages.payments.customer_type": "Customer type", + "dashboard.pages.payments.display_type": "Button Display Type", + "dashboard.pages.payments.display_type_label": "This setting determines how the bank selection for this payment method will be displayed in the checkout.
You can choose between radio buttons or a dropdown selection.", + "dashboard.pages.payments.display_types.radio": "Radio", + "dashboard.pages.payments.display_types.dropdown": "Dropdown", + "dashboard.pages.payments.send_email_instruction":"Send payment instruction email", + "dashboard.pages.payments.send_email_instruction_yes": "Yes", + "dashboard.pages.payments.send_email_instruction_no": "No", + "dashboard.pages.payments.send_email_merchant":"Merchant sends email", + "dashboard.pages.payments.due_date": "Due date (in days)", + "dashboard.pages.payments.allowed_methods": "Allowed payment methods", + "dashboard.pages.payments.vat_type_for_wrap": "Vat type for gift wrapping", + "dashboard.pages.payments.vat_type_for_wrap_select": "Please select vat type for gift wrapping", + "dashboard.pages.payments.min_order_amount_b2b": "Minimum B2B order amount", + "dashboard.pages.payments.max_order_amount_b2c": "Maximum B2B order amount", + "dashboard.pages.payments.in3.version.label": "In3 version", + "dashboard.pages.payments.in3.version.v3": "V3 (iDEAL In3)", + "dashboard.pages.payments.in3.version.v2": "V2 (Capayabel/In3)", + "dashboard.pages.payments.customer.type_label": "Customer Type", + "dashboard.pages.payments.customer.type.both": "Both", + "dashboard.pages.payments.customer.type.b2c": "B2C", + "dashboard.pages.payments.customer.type.b2c.long": "Business-to-consumer", + "dashboard.pages.payments.customer.type.b2b": "B2B", + "dashboard.pages.payments.customer.type.b2b.long": "Business-to-Business", + "dashboard.pages.payments.logo": "Payment logo", + "dashboard.pages.payments.seller_protection": "Seller protection", + "dashboard.pages.payments.seller_protection_enable": "Enable PayPal Seller Protection", + "dashboard.pages.payments.seller_protection_enabled": "Yes", + "dashboard.pages.payments.seller_protection_disabled": "No", + "dashboard.pages.payments.idin.display_mode": "iDIN mode:", + "dashboard.pages.payments.idin.display_mode.product": "Specific products", + "dashboard.pages.payments.idin.display_mode.global": "Global", + "dashboard.pages.payments.idin.display_mode_label": "With this setting you can select whether iDIN is enabled for all the products in the store (globally) or only for specific products.\nFor specific products you also need to enable it for the products in the PrestaShop catalog.", + "dashboard.pages.settings.credentials_label": "Get your Buckaroo credentials from the
Buckaroo Plaza", + "dashboard.pages.settings.refunds_label_label": "When enabled you can do (partial) refunds directly from your PrestaShop admin area Read more", + "dashboard.pages.settings.refunds_label_explanation": "This description is used for the refunds and will be visible in Buckaroo and on the bank statement of the consumer. We recommend using the webshop name so customers can easily recognize the payment.", + "dashboard.pages.settings.settings": "Settings", + "dashboard.pages.settings.settings_label": "Configure your settings", + "dashboard.pages.settings.mode": "Mode", + "dashboard.pages.settings.mode_label": "Easily change the mode", + "dashboard.pages.settings.no_im_testing": "No, I'm Testing", + "dashboard.pages.settings.when_your_shop_is_not_live_yet": "When your shop is not live yet", + "dashboard.pages.settings.yes_im_ready_to_receive_payments": "Yes, I'm ready to receive payments", + "dashboard.pages.settings.your_shop_is_live_and_ready_to_receive_real_payments": "Your shop is live and ready to receive real payments", + "dashboard.pages.settings.credentials": "Credentials", + "dashboard.pages.settings.test_connection": "Test Connection", + "dashboard.pages.settings.successfully_verified_the_credentials": "Successfully verified the credentials!", + "dashboard.pages.settings.the_credentials_are_not_valid": "The credentials are not valid!", + "dashboard.pages.settings.website_key": "Website key", + "dashboard.pages.settings.secret_key": "Secret key", + "dashboard.pages.settings.transaction_description": "Transaction Description", + "dashboard.pages.settings.transaction_description_label": "Transaction description can be filled with static text and tags like: {order_number} and {shop_name}.", + "dashboard.pages.settings.example": "Example", + "dashboard.pages.settings.order_number": "Order number", + "dashboard.pages.settings.shop_name": "Shop name", + "dashboard.pages.settings.order_number2": "order_number", + "dashboard.pages.settings.shop_name2": "shop_name", + "dashboard.pages.settings.refunds": "Refunds", + "dashboard.pages.settings.refunds_label": "Refund Description", + "dashboard.pages.settings.return_url": "Return URL", + "dashboard.pages.settings.return_url_label": "Set a custom return URL after the customer finishes the payment.", + "dashboard.pages.settings.return_url_explanation": "When this field is left empty, the customer will return to the default PrestaShop confirmation page.", + "dashboard.pages.settings.checkout_url": "Checkout URL", + "dashboard.pages.settings.checkout_url_label": "Set a custom checkout URL after the customer cancel the payment or something went wrong during the process.", + "dashboard.pages.settings.checkout_url_explanation": "When this field is left empty, the customer will return to the default PrestaShop checkout page.", + "dashboard.pages.settings.save": "Save", + "dashboard.pages.settings.add": "Add", + "dashboard.pages.settings.remove": "Remove", + "dashboard.pages.settings.custom_scripts": "Custom scripts", + "dashboard.pages.settings.custom_scripts_label": "Add custom javascript or css to your checkout.", + "dashboard.pages.settings.custom_scripts_placeholder": "Javascript / CSS (https://example.com/style.css)", + "dashboard.pages.settings.settings_successfully_updated": "Settings successfully updated.", + "dashboard.pages.settings.welcome_to_buckaroo": "Welcome to Buckaroo", + "dashboard.pages.settings.explanation_intro": "Welcome to the configuration panel of the Buckaroo Payment app for your PrestaShop webshop. In this panel you can set the app completely to your liking. Below you will find the steps to configue the settings. For further questions, please refer to our documentation page.", + "dashboard.pages.settings.step_one": "Fill in your websitekey", + "dashboard.pages.settings.step_two": "Fill in your secretkey", + "dashboard.pages.settings.step_three": "Click on ‘test connection’, when oke proceed to step 4.", + "dashboard.pages.settings.step_four": "Configure advanced settings & payment methods", + "dashboard.pages.settings.step_five": "Start testing, when testing is oke you can start LIVE transactions", + "dashboard.pages.settings.if_you_have_any_questions": "If you have any questions about the above, you can contact us by email:", + "dashboard.pages.settings.if_you_have_any_questions_link": " or phone ", + "dashboard.pages.settings.advance_settings": "Advanced Settings", + "dashboard.pages.settings.hide_advance_settings": "Hide Advanced Settings", + "dashboard.pages.settings.re_stock_products": "Re-stock Products", + "dashboard.pages.settings.re_stock_products_label": "Whether refunded products should be returned to inventory (increasing the quantity in stock).", + "dashboard.pages.settings.generate_credit_slip": "Generate a Credit Slip", + "dashboard.pages.settings.generate_credit_slip_label": "Whether a credit note should be generated.", + "dashboard.pages.settings.generate_voucher": "Generate a Voucher", + "dashboard.pages.settings.generate_voucher_label": "Whether a voucher should be generated.", + "dashboard.pages.settings.generate_negative_payments": "Create Negative Payments on Refund", + "dashboard.pages.settings.generate_negative_payments_label": "Whether a negative payment does also need to be created when performing a refund.", + "payment_methods.applepay": "Apple Pay", + "payment_methods.creditcard": "Cards", + "payment_methods.giftcard": "Giftcard", + "payment_methods.ideal": "iDEAL", + "payment_methods.paybybank": "PayByBank", + "payment_methods.sepadirectdebit": "SEPA Direct Debit", + "payment_methods.kbc": "KBC", + "payment_methods.in3": "In3", + "payment_methods.billink": "Billink", + "payment_methods.eps": "EPS", + "payment_methods.przelewy24": "Przelewy24", + "payment_methods.payperemail": "PayPerEmail", + "payment_methods.payconiq": "Payconiq", + "payment_methods.tinka": "Tinka", + "payment_methods.paypal": "PayPal", + "payment_methods.bancontact": "Bancontact", + "payment_methods.bancontactmrcash": "Bancontact", + "payment_methods.sofortueberweisung": "Sofort", + "payment_methods.giropay": "Giropay", + "payment_methods.klarna": "Klarna", + "payment_methods.afterpay": "Riverty", + "payment_methods.trustly": "Trustly", + "payment_methods.belfius": "Belfius", + "payment_methods.transfer": "Transfer", + "payment_methods.wechatpay": "WeChatPay", + "payment_methods.alipay": "Alipay", + "payment_methods.idin": "iDIN", + "payment_methods.multibanco": "Multibanco", + "payment_methods.mbway": "MB WAY", + "verification_methods.idin": "iDIN" +} diff --git a/dev/lang/php_nl.json b/dev/lang/php_nl.json new file mode 100644 index 000000000..6832fa410 --- /dev/null +++ b/dev/lang/php_nl.json @@ -0,0 +1,418 @@ +{ + "buckaroo.response.invalid_parameter_originaltransaction": "Ongeldige parameter originaltransaction.", + "buckaroo.response.an_error_occurred_while_processing_the_transaction_unable_to_pay_more_with_giftcards": "Er is een fout opgetreden tijdens het verwerken van de transactie: Je kunt niet meer cadeaukaarten gebruiken", + "countries.afghanistan": "Afghanistan", + "countries.albania": "Albanië", + "countries.algeria": "Algerije", + "countries.american_samoa": "Amerikaans Samoa", + "countries.andorra": "Andorra", + "countries.angola": "Angola", + "countries.anguilla": "Anguilla", + "countries.antigua_and_barbuda": "Antigua en Barbuda", + "countries.argentina": "Argentinië", + "countries.armenia": "Armenië", + "countries.aruba": "Aruba", + "countries.australia": "Australië", + "countries.austria": "Oostenrijk", + "countries.azerbaijan": "Azerbeidzjan", + "countries.bahamas": "Bahamas", + "countries.bahrain": "Bahrein", + "countries.bangladesh": "Bangladesh", + "countries.barbados": "Barbados", + "countries.belarus": "Wit-Rusland", + "countries.belgium": "België", + "countries.belize": "Belize", + "countries.benin": "Benin", + "countries.bermuda": "Bermuda", + "countries.bhutan": "Bhutan", + "countries.bolivia": "Bolivia", + "countries.bosnia_and_herzegovina": "Bosnië en Herzegovina", + "countries.botswana": "Botswana", + "countries.brazil": "Brazilië", + "countries.brunei_darussalam": "Brunei Darussalam", + "countries.bulgaria": "Bulgarije", + "countries.burkina_faso": "Burkina Faso", + "countries.burundi": "Burundi", + "countries.cambodia": "Cambodja", + "countries.cameroon": "Kameroen", + "countries.canada": "Canada", + "countries.cape_verde": "Kaapverdië", + "countries.cayman_islands": "Kaaimaneilanden", + "countries.central_african_republic": "Centraal-Afrikaanse Republiek", + "countries.chad": "Tsjaad", + "countries.chile": "Chili", + "countries.china": "China", + "countries.colombia": "Colombia", + "countries.comoros": "Comoren", + "countries.republic_of_the_congo": "Republiek Congo", + "countries.democratic_republic_of_the_congo": "Democratische Republiek Congo", + "countries.cook_islands": "Cookeilanden", + "countries.costa_rica": "Costa Rica", + "countries.côte_d'ivoire": "Ivoorkust", + "countries.croatia": "Kroatië", + "countries.cuba": "Cuba", + "countries.curaçao": "Curaçao", + "countries.cyprus": "Cyprus", + "countries.czech_republic": "Tsjechische Republiek", + "countries.denmark": "Denemarken", + "countries.djibouti": "Djibouti", + "countries.dominica": "Dominica", + "countries.dominican_republic": "Dominicaanse Republiek", + "countries.ecuador": "Ecuador", + "countries.egypt": "Egypte", + "countries.el_salvador": "El Salvador", + "countries.equatorial_guinea": "Equatoriaal-Guinea", + "countries.eritrea": "Eritrea", + "countries.estonia": "Estland", + "countries.ethiopia": "Ethiopië", + "countries.falkland_island": "Falklandeiland", + "countries.faroe_islands": "Faeröer Eilanden", + "countries.fiji": "Fiji", + "countries.finland": "Finland", + "countries.france": "Frankrijk", + "countries.french_polynesia": "Frans-Polynesië", + "countries.gabon": "Gabon", + "countries.gambia": "Gambia", + "countries.georgia": "Georgië", + "countries.germany": "Duitsland", + "countries.ghana": "Ghana", + "countries.gibraltar": "Gibraltar", + "countries.greece": "Griekenland", + "countries.greenland": "Groenland", + "countries.grenada": "Grenada", + "countries.guam": "Guam", + "countries.guatemala": "Guatemala", + "countries.guernsey": "Guernsey", + "countries.guinea": "Guinee", + "countries.guinea-bissau": "Guinee-Bissau", + "countries.guyana": "Guyana", + "countries.haiti": "Haïti", + "countries.honduras": "Honduras", + "countries.hong_kong": "Hongkong", + "countries.hungary": "Hongarije", + "countries.iceland": "IJsland", + "countries.india": "India", + "countries.indonesia": "Indonesië", + "countries.iran": "Iran", + "countries.iraq": "Irak", + "countries.ireland": "Ierland", + "countries.isle_of_man": "Man", + "countries.israel": "Israël", + "countries.italy": "Italië", + "countries.jamaica": "Jamaica", + "countries.japan": "Japan", + "countries.jersey": "Jersey", + "countries.jordan": "Jordanië", + "countries.kazakhstan": "Kazachstan", + "countries.kenya": "Kenia", + "countries.kiribati": "Kiribati", + "countries.north_korea": "Noord-Korea", + "countries.south_korea": "Zuid-Korea", + "countries.kosovo": "Kosovo", + "countries.kuwait": "Koeweit", + "countries.kyrgyzstan": "Kirgizië", + "countries.laos": "Laos", + "countries.latvia": "Letland", + "countries.lebanon": "Libanon", + "countries.lesotho": "Lesotho", + "countries.liberia": "Liberia", + "countries.libya": "Libië", + "countries.liechtenstein": "Liechtenstein", + "countries.lithuania": "Litouwen", + "countries.luxembourg": "Luxemburg", + "countries.macau": "Macau", + "countries.macedonia": "Macedonië", + "countries.madagascar": "Madagaskar", + "countries.malawi": "Malawi", + "countries.malaysia": "Maleisië", + "countries.maldives": "Maldiven", + "countries.mali": "Mali", + "countries.malta": "Malta", + "countries.marshall_islands": "Marshalleilanden", + "countries.mauritania": "Mauritanië", + "countries.mauritius": "Mauritius", + "countries.mayotte": "Mayotte", + "countries.mexico": "Mexico", + "countries.micronesia": "Micronesië", + "countries.moldova": "Moldavië", + "countries.monaco": "Monaco", + "countries.mongolia": "Mongolië", + "countries.montenegro": "Montenegro", + "countries.montserrat": "Montserrat", + "countries.morocco": "Marokko", + "countries.mozambique": "Mozambique", + "countries.myanmar": "Myanmar", + "countries.namibia": "Namibië", + "countries.nauru": "Nauru", + "countries.nepal": "Nepal", + "countries.netherlands": "Nederland", + "countries.new_caledonia": "Nieuw-Caledonië", + "countries.new_zealand": "Nieuw-Zeeland", + "countries.nicaragua": "Nicaragua", + "countries.niger": "Niger", + "countries.nigeria": "Nigeria", + "countries.niue": "Niue", + "countries.norfolk_island": "Norfolkeiland", + "countries.northern_mariana_islands": "Noordelijke Marianen", + "countries.norway": "Noorwegen", + "countries.oman": "Oman", + "countries.pakistan": "Pakistan", + "countries.palau": "Palau", + "countries.palestine": "Palestina", + "countries.panama": "Panama", + "countries.papua_new_guinea": "Papoea-Nieuw-Guinea", + "countries.paraguay": "Paraguay", + "countries.peru": "Peru", + "countries.philippines": "Filipijnen", + "countries.pitcairn": "Pitcairn", + "countries.poland": "Polen", + "countries.portugal": "Portugal", + "countries.puerto_rico": "Puerto Rico", + "countries.qatar": "Qatar", + "countries.romania": "Roemenië", + "countries.russia": "Rusland", + "countries.rwanda": "Rwanda", + "countries.saint_helena": "Sint-Helena", + "countries.saint_kitts_and_nevis": "Saint Kitts en Nevis", + "countries.saint_lucia": "Saint Lucia", + "countries.saint_vincent_and_the_grenadines": "Saint Vincent en de Grenadines", + "countries.samoa": "Samoa", + "countries.san_marino": "San Marino", + "countries.são_tomé_and_príncipe": "Sao Tomé en Principe", + "countries.saudi_arabia": "Saoedi-Arabië", + "countries.senegal": "Senegal", + "countries.serbia": "Servië", + "countries.seychelles": "Seychellen", + "countries.sierra_leone": "Sierra Leone", + "countries.singapore": "Singapore", + "countries.sint_maarten": "Sint-Maarten", + "countries.slovakia": "Slowakije", + "countries.slovenia": "Slovenië", + "countries.solomon_islands": "Salomonseilanden", + "countries.somalia": "Somalië", + "countries.south_africa": "Zuid-Afrika", + "countries.south_sudan": "Zuid-Soedan", + "countries.spain": "Spanje", + "countries.sri_lanka": "Sri Lanka", + "countries.sudan": "Soedan", + "countries.suriname": "Suriname", + "countries.swaziland": "Swaziland", + "countries.sweden": "Zweden", + "countries.switzerland": "Zwitserland", + "countries.syria": "Syrië", + "countries.taiwan": "Taiwan", + "countries.tajikistan": "Tadzjikistan", + "countries.tanzania": "Tanzania", + "countries.thailand": "Thailand", + "countries.timor-leste": "Oost-Timor", + "countries.togo": "Togo", + "countries.tonga": "Tonga", + "countries.trinidad_and_tobago": "Trinidad en Tobago", + "countries.tunisia": "Tunesië", + "countries.turkey": "Turkije", + "countries.turkmenistan": "Turkmenistan", + "countries.turks_and_caicos_islands": "Turks- en Caicoseilanden", + "countries.tuvalu": "Tuvalu", + "countries.uganda": "Oeganda", + "countries.ukraine": "Oekraïne", + "countries.united_arab_emirates": "Verenigde Arabische Emiraten", + "countries.united_kingdom": "Verenigd Koninkrijk", + "countries.united_states": "Verenigde Staten", + "countries.uruguay": "Uruguay", + "countries.uzbekistan": "Oezbekistan", + "countries.vanuatu": "Vanuatu", + "countries.vatican_city": "Vaticaanstad", + "countries.venezuela": "Venezuela", + "countries.vietnam": "Vietnam", + "countries.british_virgin_islands": "Britse Maagdeneilanden", + "countries.us_virgin_islands": "Amerikaanse Maagdeneilanden", + "countries.wallis_and_futuna": "Wallis en Futuna", + "countries.western_sahara": "Westelijke Sahara", + "countries.yemen": "Jemen", + "countries.zambia": "Zambia", + "countries.zimbabwe": "Zimbabwe", + "dashboard.channel_selector.select_channel": "Selecteer Kanaal", + "dashboard.channel_selector.select_channel_label": "Elk kanaal heeft zijn eigen configuratie-instellingen.", + "dashboard.country_select.search_countries": "Zoek Landen", + "dashboard.menu.channel": "Kanaal", + "dashboard.menu.settings": "Instellingen", + "dashboard.menu.payment_methods": "Betaalmethoden", + "dashboard.menu.verification_methods": "Verificatiemethoden", + "dashboard.menu.order_payment_methods": "Betaalmethoden Volgorde", + "dashboard.pages.order_payment_methods.order_payment_methods": "Betaalmethode volgorde", + "dashboard.pages.order_payment_methods.if_you_have_any_questions": "Heeft u vragen over deze plugin van Buckaroo, dan kunt u contact met ons opnemen via e-mail:", + "dashboard.pages.order_payment_methods.if_you_have_any_questions_link": " of telefoon ", + "dashboard.pages.order_payment_methods.order_payment_methods_label": "Wijzig de volgorde van betaalmethoden", + "dashboard.pages.order_payment_methods.all_countries": "Alle landen", + "dashboard.pages.order_payment_methods.search_country": "Zoek land", + "dashboard.pages.order_payment_methods.payment_method_order_updated_successfully": "Betaalmethoden volgorde succesvol geüpdatet.", + "dashboard.pages.order_payment_methods.something_went_wrong": "Er is iets fout gegaan.", + "dashboard.pages.order_payment_methods.how_to_order_payment_method": "Hoe u uw betaalmethode volgorde aan kunt passen", + "dashboard.pages.order_payment_methods.explanation_intro": "Om de betaalmethoden per land in de juiste volgorde in te stellen, dient u aan de linkerkant van dit scherm het gewenste land te selecteren. Uw krijgt dan een overzicht van de betaalmethoden die voor dat land 'aan' staan. U kunt vervolgens de betaalmethoden in de juiste volgorde zetten door te slepen.", + "dashboard.pages.order_payment_methods.step_one": "Selecteer het land waarvoor u de volgorde van de betaalmethoden wilt wijzigen.", + "dashboard.pages.order_payment_methods.step_two": "Sleep de betaalmethoden in de volgorde van uw voorkeur.", + "dashboard.pages.order_payment_methods.step_three": "Sla de instellingen op en controleer in uw webshop (checkout) of alles correct weergeven wordt.", + "dashboard.pages.payments.configure_your_payment_name_settings": "Configureer uw instellingen voor {payment_name}", + "dashboard.pages.payments.configure_your_verification_name_settings": "Configureer uw instellingen voor {verification_name}", + "dashboard.pages.payments.modes_settings.live": "Live", + "dashboard.pages.payments.modes_settings.test": "Test", + "dashboard.pages.payments.modes_settings.off": "Uit", + "dashboard.pages.payments.configure": "Configuratie", + "dashboard.pages.payments.settings": "Instellingen", + "dashboard.pages.payments.save": "Opslaan", + "dashboard.pages.payments.mode": "Modus", + "dashboard.pages.payments.mode_label": "Indien ingesteld op \"Live\", dan kunt u daadwerkelijke betalingen doen. Indien ingesteld op \"Test\", dan kun je testtransacties doen. De betaalmethode verschijnt niet als deze op \"Uit\" staat.", + "dashboard.pages.payments.front_label": "Betaalmethode naam", + "dashboard.pages.payments.front_label_label": "Deze naam wordt weergegeven in de checkout.", + "dashboard.pages.payments.payment_fee_incl_vat": "Betaalkosten incl. BTW", + "dashboard.pages.payments.payment_fee_incl_vat_label": "U kunt kosten in rekening brengen wanneer de klant deze betaalmethode selecteert. Specificeer statisch (bijv. 1,50). Decimalen moeten worden gescheiden door een punt (.)", + "dashboard.pages.payments.order_amount_allowed": "Bestelbedrag restricties", + "dashboard.pages.payments.order_amount_allowed_label": "Deze methode wordt alleen weergegeven als aan deze voorwaarde is voldaan.", + "dashboard.pages.payments.minimum_order_amount": "Minimaal toegestane bestelbedrag", + "dashboard.pages.payments.maximum_order_amount": "Maximaal toegestane bestelbedrag", + "dashboard.pages.payments.countries": "Landen", + "dashboard.pages.payments.countries_label": "Alleen geselecteerde landen zullen deze betaalmethode tonen, laat dit veld leeg om de methode voor alle landen in te schakelen.", + "dashboard.pages.payments.all_countries": "Alle landen", + "dashboard.pages.payments.clear": "Resetten", + "dashboard.pages.payments.search_country": "Zoek Land", + "dashboard.pages.payments.show_country_number_and_more": "en {country_number} meer...", + "dashboard.pages.payments.show_less": "Minder tonen", + "dashboard.pages.payments.client_side": "Cliënt Side Encryption", + "dashboard.pages.payments.client_side_label": "Gedrag van cliëntzijdige betaalmethode in- of uitschakelen.", + "dashboard.pages.payments.seperate_authorize_and_capture": "Losse authorize en capture", + "dashboard.pages.payments.seperate_authorize_and_capture_label": "Wanneer deze optie is ingeschakeld, dient u de betaling van de credit- of debitcard handmatig vast te leggen (capture).", + "dashboard.pages.payments.allowed_creditcards": "Toegestane Cards", + "dashboard.pages.payments.allowed_creditcards_label": "Alleen geselecteerde credit- of debitcards worden op deze manier getoond", + "dashboard.pages.payments.search_creditcard": "Zoek Credit- of debitcard", + "dashboard.pages.payments.allowed_giftcards": "Toegestane cadeaukaarten", + "dashboard.pages.payments.allowed_giftcards_label": "Alleen geselecteerde cadeaukaarten worden op deze manier getoond", + "dashboard.pages.payments.add_custom_giftcard": "Eigen cadeaukaart toevoegen", + "dashboard.pages.payments.search_giftcard": "Zoek Cadeaukaart", + "dashboard.pages.payments.custom_giftcard": "Eigen cadeaukaart", + "dashboard.pages.payments.add": "Toevoegen", + "dashboard.pages.payments.edit": "Aanpassen", + "dashboard.pages.payments.remove": "Verwijderen", + "dashboard.pages.payments.giftcard_name": "Cadeaukaart Naam", + "dashboard.pages.payments.enter_giftcard_details": "Voer cadeaukaartgegevens in", + "dashboard.pages.payments.service_code": "Service Code", + "dashboard.pages.payments.custom_icon_url": "Aangepaste cadeaukaart logo URL", + "dashboard.pages.payments.payment_methods": "Betaalmethoden", + "dashboard.pages.payments.verification_methods": "Verificatiemethoden", + "dashboard.pages.payments.configure_your_payment_method_settings": "Configureer uw betaalmethoden instellingen", + "dashboard.pages.payments.configure_your_verification_method_settings": "Configureer uw instellingen voor de verificatiemethoden", + "dashboard.pages.payments.customer_type": "Klant type", + "dashboard.pages.payments.display_type": "Weergavetype", + "dashboard.pages.payments.display_type_label": "Deze instelling bepaalt hoe de bankselectie voor deze betaalmethode wordt weergegeven bij het afrekenen.
U kunt kiezen tussen keuzerondjes of een vervolgkeuzelijst.", + "dashboard.pages.payments.display_types.radio": "Radio", + "dashboard.pages.payments.display_types.dropdown": "Laten vallen", + "dashboard.pages.payments.send_email_instruction": "Stuur betalingsinstructie e-mail", + "dashboard.pages.payments.send_email_instruction_yes": "Ja", + "dashboard.pages.payments.send_email_instruction_no": "Nee", + "dashboard.pages.payments.send_email_merchant": "Merchant stuurt e-mail", + "dashboard.pages.payments.due_date": "Vervaldatum (in dagen)", + "dashboard.pages.payments.allowed_methods": "Toegestane betaalmethoden", + "dashboard.pages.payments.vat_type_for_wrap": "BTW-type voor cadeauverpakking", + "dashboard.pages.payments.vat_type_for_wrap_select": "Selecteer BTW-type voor cadeauverpakking", + "dashboard.pages.payments.min_order_amount_b2b": "Minimale B2B bestelbedrag", + "dashboard.pages.payments.max_order_amount_b2c": "Maximale B2B bestelbedrag", + "dashboard.pages.payments.in3.version.label": "In3 versie", + "dashboard.pages.payments.in3.version.v3": "V3 (iDEAL In3)", + "dashboard.pages.payments.in3.version.v2": "V2 (Capayabel/In3)", + "dashboard.pages.payments.customer.type_label": "Klanttype", + "dashboard.pages.payments.customer.type.both": "Beide", + "dashboard.pages.payments.customer.type.b2c": "B2C", + "dashboard.pages.payments.customer.type.b2c.long": "Business-to-consumer", + "dashboard.pages.payments.customer.type.b2b": "B2B", + "dashboard.pages.payments.customer.type.b2b.long": "Business-to-Business", + "dashboard.pages.payments.logo": "Betaalmethode logo", + "dashboard.pages.payments.seller_protection": "Verkopersbescherming", + "dashboard.pages.payments.seller_protection_enable": "Schakel de PayPal Verkopersbescherming in", + "dashboard.pages.payments.seller_protection_enabled": "Ja", + "dashboard.pages.payments.seller_protection_disabled": "Nee", + "dashboard.pages.payments.idin.display_mode": "iDIN modus:", + "dashboard.pages.payments.idin.display_mode.product": "Specifieke producten", + "dashboard.pages.payments.idin.display_mode.global": "Globaal", + "dashboard.pages.payments.idin.display_mode_label": "Met deze instelling kunt u selecteren of iDIN is ingeschakeld voor alle producten in de winkel (globaal) of alleen voor specifieke producten. Voor specifieke producten dient u het ook in te schakelen voor de producten in de PrestaShop-catalogus.", + "dashboard.pages.settings.credentials_label": "Haal uw Buckaroo gegevens op uit de Buckaroo Plaza", + "dashboard.pages.settings.refunds_label_label": "Indien ingeschakeld, kunt u (gedeeltelijke) terugbetalingen rechtstreeks vanuit uw PrestaShop-beheergebied uitvoeren Read more", + "dashboard.pages.settings.refunds_label_explanation": "Deze omschrijving wordt gebruikt bij de terugbetaling en zal zichtbaar zijn in Buckaroo en op het bankafschrift van de consument. Wij adviseren om de webshopnaam te gebruiken, zodat klanten de betaling gemakkelijk kunnen herkennen.", + "dashboard.pages.settings.settings": "Instellingen", + "dashboard.pages.settings.settings_label": "Configureer uw instellingen", + "dashboard.pages.settings.mode": "Modus", + "dashboard.pages.settings.mode_label": "Verander eenvoudig de modus", + "dashboard.pages.settings.no_im_testing": "Nee, ik wil testen", + "dashboard.pages.settings.when_your_shop_is_not_live_yet": "Wanneer u webwinkel nog niet live is", + "dashboard.pages.settings.yes_im_ready_to_receive_payments": "Ja, ik ben klaar om betalingen te ontvangen", + "dashboard.pages.settings.your_shop_is_live_and_ready_to_receive_real_payments": "Uw webwinkel is live en klaar om echte betalingen te ontvangen", + "dashboard.pages.settings.credentials": "Buckaroo gegevens", + "dashboard.pages.settings.test_connection": "Test Gegevens", + "dashboard.pages.settings.successfully_verified_the_credentials": "De gegevens zijn succesvol geverifieerd!", + "dashboard.pages.settings.the_credentials_are_not_valid": "De gegevens zijn onjuist!", + "dashboard.pages.settings.website_key": "Website key", + "dashboard.pages.settings.secret_key": "Secret key", + "dashboard.pages.settings.transaction_description": "Transactie Beschrijving", + "dashboard.pages.settings.transaction_description_label": "De transactiebeschrijving kan worden gevuld met een statische tekst en tags zoals: {order_number} en {shop_name}.", + "dashboard.pages.settings.example": "Voorbeeld", + "dashboard.pages.settings.order_number": "Bestellingsnummer", + "dashboard.pages.settings.shop_name": "Winkelnaam", + "dashboard.pages.settings.order_number2": "bestellingsnummer", + "dashboard.pages.settings.shop_name2": "winkelnaam", + "dashboard.pages.settings.refunds": "Terugbetalingen", + "dashboard.pages.settings.refunds_label": "Terugbetaling omschrijving", + "dashboard.pages.settings.return_url": "Return-URL", + "dashboard.pages.settings.return_url_label": "Stel een aangepaste return-URL in nadat de klant de betaling heeft voltooid.", + "dashboard.pages.settings.return_url_explanation": "Wanneer dit veld leeg wordt gelaten, keert de klant terug naar de standaard PrestaShop bevestigingspagina.", + "dashboard.pages.settings.checkout_url": "Cancel-URL", + "dashboard.pages.settings.checkout_url_label": "Stel een aangepaste cancel-URL in nadat de klant de betaling heeft geannuleerd of als er iets mis is gegaan tijdens het proces.", + "dashboard.pages.settings.checkout_url_explanation": "Wanneer dit veld leeg wordt gelaten, keert de klant terug naar de standaard PrestaShop afrekenpagina.", + "dashboard.pages.settings.save": "Opslaan", + "dashboard.pages.settings.add": "Toevoegen", + "dashboard.pages.settings.remove": "Verwijder", + "dashboard.pages.settings.custom_scripts": "Aangepaste scripts", + "dashboard.pages.settings.custom_scripts_label": "Voeg aangepaste javascript of css code toe aan uw checkout.", + "dashboard.pages.settings.custom_scripts_placeholder": "Javascript / CSS (https://example.com/style.css)", + "dashboard.pages.settings.settings_successfully_updated": "Instellingen succesvol bijgewerkt.", + "dashboard.pages.settings.welcome_to_buckaroo": "Welkom bij Buckaroo", + "dashboard.pages.settings.explanation_intro": "Welkom bij het configuratiescherm van de Buckaroo Payment app voor jouw PrestaShop webshop. In dit scherm kunt u de app helemaal naar wens instellen. Hieronder vind u de stappen om de instellingen te configureren. Voor verdere vragen verwijzen wij u naar onze documentatie pagina.", + "dashboard.pages.settings.step_three": "Klik op ‘test verbinding’, indien correct ga verder naar stap 4.", + "dashboard.pages.settings.step_four": "Configureer de geavanceerde instellingen & Betaalmethodes", + "dashboard.pages.settings.step_five": "Begin met testen, als het testen goed gaat, kunt u LIVE transacties starten", + "dashboard.pages.settings.advance_settings": "Geavanceerde Instellingen", + "dashboard.pages.settings.hide_advance_settings": "Geavanceerde Instellingen Verbergen", + "dashboard.pages.settings.re_stock_products": "De voorraad aanvullen bij retourproducten", + "dashboard.pages.settings.re_stock_products_label": "Of terugbetaalde producten moeten worden teruggeplaatst in de voorraad (waardoor de voorraadhoeveelheid wordt verhoogd).", + "dashboard.pages.settings.generate_credit_slip": "Een creditnota genereren", + "dashboard.pages.settings.generate_credit_slip_label": "Of er een creditnota moet worden gegenereerd.", + "dashboard.pages.settings.generate_voucher": "Een voucher genereren", + "dashboard.pages.settings.generate_voucher_label": "Of er een voucher moet worden gegenereerd.", + "dashboard.pages.settings.generate_negative_payments": "Een negatieve betaling bij terugbetalingen aanmaken", + "dashboard.pages.settings.generate_negative_payments_label": "Of er ook een negatieve betaling moet worden gecreëerd bij het uitvoeren van een terugbetaling.", + "payment_methods.applepay": "Apple Pay", + "payment_methods.creditcard": "Cards", + "payment_methods.giftcard": "Giftcard", + "payment_methods.ideal": "iDEAL", + "payment_methods.paybybank": "PayByBank", + "payment_methods.sepadirectdebit": "SEPA Direct Debit", + "payment_methods.kbc": "KBC", + "payment_methods.in3": "In3", + "payment_methods.billink": "Billink", + "payment_methods.eps": "EPS", + "payment_methods.przelewy24": "Przelewy24", + "payment_methods.payperemail": "PayPerEmail", + "payment_methods.payconiq": "Payconiq", + "payment_methods.tinka": "Tinka", + "payment_methods.paypal": "PayPal", + "payment_methods.bancontactmrcash": "Bancontact", + "payment_methods.sofortueberweisung": "Sofort", + "payment_methods.giropay": "Giropay", + "payment_methods.klarna": "Klarna", + "payment_methods.afterpay": "Riverty", + "payment_methods.trustly": "Trustly", + "payment_methods.transfer": "Transfer", + "payment_methods.wechatpay": "WeChatPay", + "payment_methods.alipay": "Alipay", + "payment_methods.idin": "iDIN", + "payment_methods.multibanco": "Multibanco", + "payment_methods.mbway": "MB WAY", + "verification_methods.idin": "iDIN" +} diff --git a/dev/package-lock.json b/dev/package-lock.json new file mode 100644 index 000000000..09043bff5 --- /dev/null +++ b/dev/package-lock.json @@ -0,0 +1,25606 @@ +{ + "name": "dev", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "dev", + "version": "0.1.0", + "dependencies": { + "core-js": "^3.8.3", + "fos-routing": "^0.0.6", + "i": "^0.3.7", + "npm": "^10.1.0", + "or": "^0.2.0", + "vue": "^3.2.13", + "vue-i18n": "^9.2.2" + }, + "devDependencies": { + "@babel/core": "^7.12.16", + "@types/lodash": "^4.14.195", + "@types/node": "^20.3.2", + "@types/webpack-env": "^1.18.1", + "@vitejs/plugin-vue": "^3.0.3", + "@vitejs/plugin-vue-jsx": "^2.0.0", + "@vue/cli-plugin-babel": "~5.0.0", + "@vue/cli-plugin-typescript": "~5.0.0", + "@vue/cli-service": "~5.0.0", + "@vuelidate/core": "^2.0.0-alpha.44", + "@vuelidate/validators": "^2.0.0-alpha.31", + "@vueuse/core": "^10.2.1", + "autoprefixer": "^10.4.14", + "axios": "^0.27", + "dayjs": "^1.11.7", + "lodash": "^4.17.19", + "postcss": "^8.4.24", + "react-scripts": "^5.0.1", + "sass": "^1.54.8", + "tailwindcss": "^3.3.2", + "toastr": "^2.1.4", + "typescript": "^4.6.4", + "vite": "^3.2.7", + "vite-plugin-css-injected-by-js": "^2.0.3", + "vue-tsc": "^0.39.5", + "vuedraggable": "^4.1.0" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@achrinza/node-ipc": { + "version": "9.2.7", + "resolved": "https://registry.npmjs.org/@achrinza/node-ipc/-/node-ipc-9.2.7.tgz", + "integrity": "sha512-/EvNkqB4HNxPWCZASmgrjqG8gIdPOolD67LGASvGMp/FY5ne0rbvpYg5o9x8RmgjAl8KdmNQ4YlV1et9DYiW8g==", + "dev": true, + "dependencies": { + "@node-ipc/js-queue": "2.0.3", + "event-pubsub": "4.3.0", + "js-message": "1.0.7" + }, + "engines": { + "node": "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", + "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz", + "integrity": "sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz", + "integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helpers": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/eslint-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.22.5.tgz", + "integrity": "sha512-C69RWYNYtrgIRE5CmTd77ZiLDXqgBipahJc/jHP3sLcAGj6AJzxNIuKNpVnICqbyK7X3pFUfEvL++rvtbQpZkQ==", + "dev": true, + "dependencies": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.11.0", + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz", + "integrity": "sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.5.tgz", + "integrity": "sha512-m1EP3lVOPptR+2DwD125gziZNcmoNSHGmJROKoy87loWUQyJaVXDgpmruWqDARZSmtYQ+Dl25okU8+qhVzuykw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz", + "integrity": "sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.5.tgz", + "integrity": "sha512-xkb58MyOYIslxu3gKmVXmjTtUPvBU4odYzbiIQbWwLKIHCsx6UGZGX6F1IznMFVnDdirseUZopzN+ZRt8Xb33Q==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-member-expression-to-functions": "^7.22.5", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.5.tgz", + "integrity": "sha512-1VpEFOIbMRaXyDeUwUfmTIxExLwQ+zkW+Bh5zXpApA3oQedBx9v/updixWxnx/bZpKw7u8VxWjb/qWpIcmPq8A==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "regexpu-core": "^5.3.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", + "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", + "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.5.tgz", + "integrity": "sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", + "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz", + "integrity": "sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", + "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.5.tgz", + "integrity": "sha512-cU0Sq1Rf4Z55fgz7haOakIyM7+x/uCFwXpLPaeRzfoUtAEAuUZjZvFPjL/rk5rW693dIgn2hng1W7xbT7lWT4g==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-wrap-function": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.5.tgz", + "integrity": "sha512-aLdNM5I3kdI/V9xGNyKSF3X/gTyMUBohTZ+/3QdQKAA9vxIiy12E+8E2HoOP1/DjeqU+g6as35QHJNMDDYpuCg==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-member-expression-to-functions": "^7.22.5", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", + "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz", + "integrity": "sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", + "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", + "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.5.tgz", + "integrity": "sha512-bYqLIBSEshYcYQyfks8ewYA8S30yaGSeRslcvKMvoUk6HHPySbxHq9YRi6ghhzEU+yhQv9bP/jXnygkStOcqZw==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz", + "integrity": "sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", + "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz", + "integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.5.tgz", + "integrity": "sha512-NP1M5Rf+u2Gw9qfSO4ihjcTGW5zXTi36ITLd4/EoAcEhIZ0yjMqmftDNl3QC19CX7olhrjpyU454g/2W7X0jvQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.5.tgz", + "integrity": "sha512-31Bb65aZaUwqCbWMnZPduIZxCBngHFlzyN6Dq6KAJjtx+lx6ohKHubc61OomYi7XwVD4Ol0XCVz4h+pYFR048g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-transform-optional-chaining": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.22.5.tgz", + "integrity": "sha512-h8hlezQ4dl6ixodgXkH8lUfcD7x+WAuIqPUjwGoItynrXOAv4a4Tci1zA/qjzQjjcl0v3QpLdc2LM6ZACQuY7A==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/plugin-syntax-decorators": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.5.tgz", + "integrity": "sha512-avpUOBS7IU6al8MmF1XpAyj9QYeLPuSDJI5D4pVMSMdL7xQokKqJPYQC67RCT0aCTashUXPiGwMJ0DEXXCEmMA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.22.5.tgz", + "integrity": "sha512-9RdCl0i+q0QExayk2nOS7853w08yLucnnPML6EN9S8fgMPVtdLDCdx/cOQ/i44Lb9UeQX9A35yaqBBOMMZxPxQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz", + "integrity": "sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz", + "integrity": "sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", + "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", + "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz", + "integrity": "sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.5.tgz", + "integrity": "sha512-gGOEvFzm3fWoyD5uZq7vVTD57pPJ3PczPUD/xCFGjzBpUosnklmXyKnGQbbbGs1NPNPskFex0j93yKbHt0cHyg==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.5", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz", + "integrity": "sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz", + "integrity": "sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.22.5.tgz", + "integrity": "sha512-EcACl1i5fSQ6bt+YGuU/XGCeZKStLmyVGytWkpyhCLeQVA0eu6Wtiw92V+I1T/hnezUv7j74dA/Ro69gWcU+hg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz", + "integrity": "sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.5.tgz", + "integrity": "sha512-SPToJ5eYZLxlnp1UzdARpOGeC2GbHvr9d/UV0EukuVx8atktg194oe+C5BqQ8jRTkgLRVOPYeXRSBg1IlMoVRA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.5.tgz", + "integrity": "sha512-2edQhLfibpWpsVBx2n/GKOz6JdGQvLruZQfGr9l1qes2KQaWswjBzhQF7UDUZMNaMMQeYnQzxwOMPsbYF7wqPQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz", + "integrity": "sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.22.5.tgz", + "integrity": "sha512-GfqcFuGW8vnEqTUBM7UtPd5A4q797LTvvwKxXTgRsFjoqaJiEg9deBG6kWeQYkVEL569NpnmpC0Pkr/8BLKGnQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz", + "integrity": "sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz", + "integrity": "sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.5.tgz", + "integrity": "sha512-0MC3ppTB1AMxd8fXjSrbPa7LT9hrImt+/fcj+Pg5YMD7UQyWp/02+JWpdnCymmsXwIx5Z+sYn1bwCn4ZJNvhqQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz", + "integrity": "sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==", + "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.5.tgz", + "integrity": "sha512-X4hhm7FRnPgd4nDA4b/5V280xCx6oL7Oob5+9qVS5C13Zq4bh1qq7LU0GgRU6b5dBWBvhGaXYVB4AcN6+ol6vg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-flow-strip-types": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.22.5.tgz", + "integrity": "sha512-tujNbZdxdG0/54g/oua8ISToaXTFBf8EnSb5PgQSciIXWOWKX3S4+JR7ZE9ol8FZwf9kxitzkGQ+QWeov/mCiA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-flow": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.5.tgz", + "integrity": "sha512-3kxQjX1dU9uudwSshyLeEipvrLjBCVthCgeTp6CzE/9JYrlAIaeekVxRpCWsDDfYTfRZRoCeZatCQvwo+wvK8A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz", + "integrity": "sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.5.tgz", + "integrity": "sha512-DuCRB7fu8MyTLbEQd1ew3R85nx/88yMoqo2uPSjevMj3yoN7CDM8jkgrY0wmVxfJZyJ/B9fE1iq7EQppWQmR5A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz", + "integrity": "sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.5.tgz", + "integrity": "sha512-MQQOUW1KL8X0cDWfbwYP+TbVbZm16QmQXJQ+vndPtH/BoO0lOKpVoEDMI7+PskYxH+IiE0tS8xZye0qr1lGzSA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz", + "integrity": "sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.22.5.tgz", + "integrity": "sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.22.5.tgz", + "integrity": "sha512-B4pzOXj+ONRmuaQTg05b3y/4DuFz3WcCNAXPLb2Q0GT0TrGKGxNKV4jwsXts+StaM0LQczZbOpj8o1DLPDJIiA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.5.tgz", + "integrity": "sha512-emtEpoaTMsOs6Tzz+nbmcePl6AKVtS1yC4YNAeMun9U8YCsgadPNxnOPQ8GhHFB2qdx+LZu9LgoC0Lthuu05DQ==", + "dev": true, + "dependencies": { + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz", + "integrity": "sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", + "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz", + "integrity": "sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.5.tgz", + "integrity": "sha512-6CF8g6z1dNYZ/VXok5uYkkBBICHZPiGEl7oDnAx2Mt1hlHVHOSIKWJaXHjQJA5VB43KZnXZDIexMchY4y2PGdA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.5.tgz", + "integrity": "sha512-NbslED1/6M+sXiwwtcAB/nieypGw02Ejf4KtDeMkCEpP6gWFMX1wI9WKYua+4oBneCCEmulOkRpwywypVZzs/g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.5.tgz", + "integrity": "sha512-Kk3lyDmEslH9DnvCDA1s1kkd3YWQITiBOHngOtDL9Pt6BZjzqb6hiOlb8VfjiiQJ2unmegBqZu0rx5RxJb5vmQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz", + "integrity": "sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.5.tgz", + "integrity": "sha512-pH8orJahy+hzZje5b8e2QIlBWQvGpelS76C63Z+jhZKsmzfNaPQ+LaW6dcJ9bxTpo1mtXbgHwy765Ro3jftmUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.5.tgz", + "integrity": "sha512-AconbMKOMkyG+xCng2JogMCDcqW8wedQAqpVIL4cOSescZ7+iW8utC6YDZLMCSUIReEA733gzRSaOSXMAt/4WQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.5.tgz", + "integrity": "sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz", + "integrity": "sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.5.tgz", + "integrity": "sha512-/9xnaTTJcVoBtSSmrVyhtSvO3kbqS2ODoh2juEU72c3aYonNF0OMGiaz2gjukyKM2wBBYJP38S4JiE0Wfb5VMQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz", + "integrity": "sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-constant-elements": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.5.tgz", + "integrity": "sha512-BF5SXoO+nX3h5OhlN78XbbDrBOffv+AxPP2ENaJOVqjWCgBDeOY3WcaUcddutGSfoap+5NEQ/q/4I3WZIvgkXA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.22.5.tgz", + "integrity": "sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.5.tgz", + "integrity": "sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.22.5.tgz", + "integrity": "sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==", + "dev": true, + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.22.5.tgz", + "integrity": "sha512-gP4k85wx09q+brArVinTXhWiyzLl9UpmGva0+mWyKxk6JZequ05x3eUcIUE+FyttPKJFRRVtAvQaJ6YF9h1ZpA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.5.tgz", + "integrity": "sha512-rR7KePOE7gfEtNTh9Qw+iO3Q/e4DEsoQ+hdvM6QUDH7JRJ5qxq5AA52ZzBWbI5i9lfNuvySgOGP8ZN7LAmaiPw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz", + "integrity": "sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.5.tgz", + "integrity": "sha512-bg4Wxd1FWeFx3daHFTWk1pkSWK/AyQuiyAoeZAOkAOUBjnZPH6KT7eMxouV47tQ6hl6ax2zyAWBdWZXbrvXlaw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "babel-plugin-polyfill-corejs2": "^0.4.3", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz", + "integrity": "sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz", + "integrity": "sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz", + "integrity": "sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz", + "integrity": "sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz", + "integrity": "sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.5.tgz", + "integrity": "sha512-SMubA9S7Cb5sGSFFUlqxyClTA9zWJ8qGQrppNUm05LtFuN1ELRFNndkix4zUJrC9F+YivWwa1dHMSyo0e0N9dA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-typescript": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.5.tgz", + "integrity": "sha512-biEmVg1IYB/raUO5wT1tgfacCef15Fbzhkx493D3urBI++6hpJ+RFG4SrWMn0NEZLfvilqKf3QDrRVZHo08FYg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz", + "integrity": "sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz", + "integrity": "sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz", + "integrity": "sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.5.tgz", + "integrity": "sha512-fj06hw89dpiZzGZtxn+QybifF07nNiZjZ7sazs2aVDcysAZVGjW7+7iFYxg6GLNM47R/thYfLdrXc+2f11Vi9A==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.5", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.5", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.22.5", + "@babel/plugin-syntax-import-attributes": "^7.22.5", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.22.5", + "@babel/plugin-transform-async-generator-functions": "^7.22.5", + "@babel/plugin-transform-async-to-generator": "^7.22.5", + "@babel/plugin-transform-block-scoped-functions": "^7.22.5", + "@babel/plugin-transform-block-scoping": "^7.22.5", + "@babel/plugin-transform-class-properties": "^7.22.5", + "@babel/plugin-transform-class-static-block": "^7.22.5", + "@babel/plugin-transform-classes": "^7.22.5", + "@babel/plugin-transform-computed-properties": "^7.22.5", + "@babel/plugin-transform-destructuring": "^7.22.5", + "@babel/plugin-transform-dotall-regex": "^7.22.5", + "@babel/plugin-transform-duplicate-keys": "^7.22.5", + "@babel/plugin-transform-dynamic-import": "^7.22.5", + "@babel/plugin-transform-exponentiation-operator": "^7.22.5", + "@babel/plugin-transform-export-namespace-from": "^7.22.5", + "@babel/plugin-transform-for-of": "^7.22.5", + "@babel/plugin-transform-function-name": "^7.22.5", + "@babel/plugin-transform-json-strings": "^7.22.5", + "@babel/plugin-transform-literals": "^7.22.5", + "@babel/plugin-transform-logical-assignment-operators": "^7.22.5", + "@babel/plugin-transform-member-expression-literals": "^7.22.5", + "@babel/plugin-transform-modules-amd": "^7.22.5", + "@babel/plugin-transform-modules-commonjs": "^7.22.5", + "@babel/plugin-transform-modules-systemjs": "^7.22.5", + "@babel/plugin-transform-modules-umd": "^7.22.5", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", + "@babel/plugin-transform-new-target": "^7.22.5", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.5", + "@babel/plugin-transform-numeric-separator": "^7.22.5", + "@babel/plugin-transform-object-rest-spread": "^7.22.5", + "@babel/plugin-transform-object-super": "^7.22.5", + "@babel/plugin-transform-optional-catch-binding": "^7.22.5", + "@babel/plugin-transform-optional-chaining": "^7.22.5", + "@babel/plugin-transform-parameters": "^7.22.5", + "@babel/plugin-transform-private-methods": "^7.22.5", + "@babel/plugin-transform-private-property-in-object": "^7.22.5", + "@babel/plugin-transform-property-literals": "^7.22.5", + "@babel/plugin-transform-regenerator": "^7.22.5", + "@babel/plugin-transform-reserved-words": "^7.22.5", + "@babel/plugin-transform-shorthand-properties": "^7.22.5", + "@babel/plugin-transform-spread": "^7.22.5", + "@babel/plugin-transform-sticky-regex": "^7.22.5", + "@babel/plugin-transform-template-literals": "^7.22.5", + "@babel/plugin-transform-typeof-symbol": "^7.22.5", + "@babel/plugin-transform-unicode-escapes": "^7.22.5", + "@babel/plugin-transform-unicode-property-regex": "^7.22.5", + "@babel/plugin-transform-unicode-regex": "^7.22.5", + "@babel/plugin-transform-unicode-sets-regex": "^7.22.5", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.22.5", + "babel-plugin-polyfill-corejs2": "^0.4.3", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "core-js-compat": "^3.30.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.5.tgz", + "integrity": "sha512-M+Is3WikOpEJHgR385HbuCITPTaPRaNkibTEa9oiofmJvIsrceb4yp9RL9Kb+TE8LznmeyZqpP+Lopwcx59xPQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "@babel/plugin-transform-react-display-name": "^7.22.5", + "@babel/plugin-transform-react-jsx": "^7.22.5", + "@babel/plugin-transform-react-jsx-development": "^7.22.5", + "@babel/plugin-transform-react-pure-annotations": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.22.5.tgz", + "integrity": "sha512-YbPaal9LxztSGhmndR46FmAbkJ/1fAsw293tSU+I5E5h+cnJ3d4GTwyUgGYmOXJYdGA+uNePle4qbaRzj2NISQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "@babel/plugin-transform-modules-commonjs": "^7.22.5", + "@babel/plugin-transform-typescript": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", + "dev": true + }, + "node_modules/@babel/runtime": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz", + "integrity": "sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", + "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz", + "integrity": "sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", + "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@csstools/normalize.css": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-12.0.0.tgz", + "integrity": "sha512-M0qqxAcwCsIVfpFQSlGN5XjXWu8l5JDZN+fPt1LeW5SZexQTgnaEvgXAY+CeygRw0EeppWHi12JxESWiWrB0Sg==", + "dev": true + }, + "node_modules/@csstools/postcss-cascade-layers": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz", + "integrity": "sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA==", + "dev": true, + "dependencies": { + "@csstools/selector-specificity": "^2.0.2", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-color-function": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz", + "integrity": "sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw==", + "dev": true, + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-font-format-keywords": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz", + "integrity": "sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-hwb-function": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz", + "integrity": "sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-ic-unit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz", + "integrity": "sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw==", + "dev": true, + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-is-pseudo-class": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz", + "integrity": "sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA==", + "dev": true, + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-nested-calc": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz", + "integrity": "sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-normalize-display-values": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz", + "integrity": "sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-oklab-function": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz", + "integrity": "sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA==", + "dev": true, + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-progressive-custom-properties": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz", + "integrity": "sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/@csstools/postcss-stepped-value-functions": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz", + "integrity": "sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-text-decoration-shorthand": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz", + "integrity": "sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-trigonometric-functions": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz", + "integrity": "sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-unset-value": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz", + "integrity": "sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g==", + "dev": true, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", + "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", + "dev": true, + "engines": { + "node": "^14 || ^16 || >=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.10" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.18.tgz", + "integrity": "sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.18.tgz", + "integrity": "sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.2", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", + "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==", + "dev": true + }, + "node_modules/@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", + "dev": true, + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@intlify/core-base": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-9.2.2.tgz", + "integrity": "sha512-JjUpQtNfn+joMbrXvpR4hTF8iJQ2sEFzzK3KIESOx+f+uwIjgw20igOyaIdhfsVVBCds8ZM64MoeNSx+PHQMkA==", + "dependencies": { + "@intlify/devtools-if": "9.2.2", + "@intlify/message-compiler": "9.2.2", + "@intlify/shared": "9.2.2", + "@intlify/vue-devtools": "9.2.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@intlify/devtools-if": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@intlify/devtools-if/-/devtools-if-9.2.2.tgz", + "integrity": "sha512-4ttr/FNO29w+kBbU7HZ/U0Lzuh2cRDhP8UlWOtV9ERcjHzuyXVZmjyleESK6eVP60tGC9QtQW9yZE+JeRhDHkg==", + "dependencies": { + "@intlify/shared": "9.2.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-9.2.2.tgz", + "integrity": "sha512-IUrQW7byAKN2fMBe8z6sK6riG1pue95e5jfokn8hA5Q3Bqy4MBJ5lJAofUsawQJYHeoPJ7svMDyBaVJ4d0GTtA==", + "dependencies": { + "@intlify/shared": "9.2.2", + "source-map": "0.6.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@intlify/shared": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-9.2.2.tgz", + "integrity": "sha512-wRwTpsslgZS5HNyM7uDQYZtxnbI12aGiBZURX3BTR9RFIKKRWpllTsgzHWvj3HKm3Y2Sh5LPC1r0PDCKEhVn9Q==", + "engines": { + "node": ">= 14" + } + }, + "node_modules/@intlify/vue-devtools": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@intlify/vue-devtools/-/vue-devtools-9.2.2.tgz", + "integrity": "sha512-+dUyqyCHWHb/UcvY1MlIpO87munedm3Gn6E9WWYdWrMuYLcoIoOEVDWSS8xSwtlPU+kA+MEQTP6Q1iI/ocusJg==", + "dependencies": { + "@intlify/core-base": "9.2.2", + "@intlify/shared": "9.2.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", + "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", + "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", + "dev": true, + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", + "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", + "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", + "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.24.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", + "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", + "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "dev": true, + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", + "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "dev": true, + "dependencies": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", + "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.4.tgz", + "integrity": "sha512-KE/SxsDqNs3rrWwFHcRh15ZLVFrI0YoZtgAdIyIq9k5hUNmiWRXXThPomIxHuL20sLdgzbDFyvkUMna14bvtrw==", + "dev": true + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", + "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==", + "dev": true + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dev": true, + "dependencies": { + "eslint-scope": "5.1.1" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@node-ipc/js-queue": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@node-ipc/js-queue/-/js-queue-2.0.3.tgz", + "integrity": "sha512-fL1wpr8hhD5gT2dA1qifeVaoDFlQR5es8tFuKqjHX+kdOtdNHnxkVZbtIrR2rxnMFvehkjaZRNV2H/gPXlb0hw==", + "dev": true, + "dependencies": { + "easy-stack": "1.0.1" + }, + "engines": { + "node": ">=1.0.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz", + "integrity": "sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==", + "dev": true, + "dependencies": { + "ansi-html-community": "^0.0.8", + "common-path-prefix": "^3.0.0", + "core-js-pure": "^3.23.3", + "error-stack-parser": "^2.0.6", + "find-up": "^5.0.0", + "html-entities": "^2.1.0", + "loader-utils": "^2.0.4", + "schema-utils": "^3.0.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">= 10.13" + }, + "peerDependencies": { + "@types/webpack": "4.x || 5.x", + "react-refresh": ">=0.10.0 <1.0.0", + "sockjs-client": "^1.4.0", + "type-fest": ">=0.17.0 <4.0.0", + "webpack": ">=4.43.0 <6.0.0", + "webpack-dev-server": "3.x || 4.x", + "webpack-hot-middleware": "2.x", + "webpack-plugin-serve": "0.x || 1.x" + }, + "peerDependenciesMeta": { + "@types/webpack": { + "optional": true + }, + "sockjs-client": { + "optional": true + }, + "type-fest": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + }, + "webpack-hot-middleware": { + "optional": true + }, + "webpack-plugin-serve": { + "optional": true + } + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, + "node_modules/@rollup/plugin-babel": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", + "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", + "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/plugin-replace": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", + "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "magic-string": "^0.25.7" + }, + "peerDependencies": { + "rollup": "^1.20.0 || ^2.0.0" + } + }, + "node_modules/@rollup/plugin-replace/node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "dev": true, + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/pluginutils/node_modules/@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "dev": true + }, + "node_modules/@rollup/pluginutils/node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "dev": true + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.2.tgz", + "integrity": "sha512-V+MvGwaHH03hYhY+k6Ef/xKd6RYlc4q8WBx+2ANmipHJcKuktNcI/NgEsJgdSUF6Lw32njT6OnrRsKYCdgHjYw==", + "dev": true + }, + "node_modules/@sideway/address": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", + "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", + "dev": true, + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@sideway/formula": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==", + "dev": true + }, + "node_modules/@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==", + "dev": true + }, + "node_modules/@sinclair/typebox": { + "version": "0.24.51", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz", + "integrity": "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@soda/friendly-errors-webpack-plugin": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.1.tgz", + "integrity": "sha512-h2ooWqP8XuFqTXT+NyAFbrArzfQA7R6HTezADrvD9Re8fxMLTPPniLdqVTdDaO0eIoLaAwKT+d6w+5GeTk7Vbg==", + "dev": true, + "dependencies": { + "chalk": "^3.0.0", + "error-stack-parser": "^2.0.6", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8.0.0" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/@soda/friendly-errors-webpack-plugin/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@soda/friendly-errors-webpack-plugin/node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@soda/friendly-errors-webpack-plugin/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@soda/friendly-errors-webpack-plugin/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@soda/friendly-errors-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@soda/friendly-errors-webpack-plugin/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@soda/get-current-script": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@soda/get-current-script/-/get-current-script-1.0.2.tgz", + "integrity": "sha512-T7VNNlYVM1SgQ+VsMYhnDkcGmWhQdL0bDyGm5TlQ3GBXnJscEClUUOKduWTmm2zCnvNLC1hc3JpuXjs/nFOc5w==", + "dev": true + }, + "node_modules/@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", + "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", + "dev": true, + "dependencies": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" + } + }, + "node_modules/@surma/rollup-plugin-off-main-thread/node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/@svgr/babel-plugin-add-jsx-attribute": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz", + "integrity": "sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz", + "integrity": "sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz", + "integrity": "sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz", + "integrity": "sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-dynamic-title": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz", + "integrity": "sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-em-dimensions": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz", + "integrity": "sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-react-native-svg": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz", + "integrity": "sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-svg-component": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz", + "integrity": "sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-preset": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz", + "integrity": "sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig==", + "dev": true, + "dependencies": { + "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", + "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", + "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", + "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", + "@svgr/babel-plugin-transform-svg-component": "^5.5.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/core": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz", + "integrity": "sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ==", + "dev": true, + "dependencies": { + "@svgr/plugin-jsx": "^5.5.0", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/core/node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@svgr/hast-util-to-babel-ast": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz", + "integrity": "sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.6" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-jsx": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz", + "integrity": "sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@svgr/babel-preset": "^5.5.0", + "@svgr/hast-util-to-babel-ast": "^5.5.0", + "svg-parser": "^2.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-svgo": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz", + "integrity": "sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ==", + "dev": true, + "dependencies": { + "cosmiconfig": "^7.0.0", + "deepmerge": "^4.2.2", + "svgo": "^1.2.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/css-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", + "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/css-tree": { + "version": "1.0.0-alpha.37", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", + "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/css-what": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz", + "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dev": true, + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/domutils/node_modules/domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true + }, + "node_modules/@svgr/plugin-svgo/node_modules/mdn-data": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", + "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==", + "dev": true + }, + "node_modules/@svgr/plugin-svgo/node_modules/nth-check": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "dev": true, + "dependencies": { + "boolbase": "~1.0.0" + } + }, + "node_modules/@svgr/plugin-svgo/node_modules/svgo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", + "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", + "deprecated": "This SVGO version is no longer supported. Upgrade to v2.x.x.", + "dev": true, + "dependencies": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/@svgr/webpack": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz", + "integrity": "sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/plugin-transform-react-constant-elements": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/preset-react": "^7.12.5", + "@svgr/core": "^5.5.0", + "@svgr/plugin-jsx": "^5.5.0", + "@svgr/plugin-svgo": "^5.5.0", + "loader-utils": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/webpack/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", + "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", + "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "dev": true, + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/bonjour": { + "version": "3.5.10", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", + "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect-history-api-fallback": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", + "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", + "dev": true, + "dependencies": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.40.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", + "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", + "dev": true + }, + "node_modules/@types/express": { + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "dev": true, + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.35", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", + "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==", + "dev": true + }, + "node_modules/@types/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==", + "dev": true + }, + "node_modules/@types/http-proxy": { + "version": "1.17.11", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", + "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/lodash": { + "version": "4.14.195", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.195.tgz", + "integrity": "sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==", + "dev": true + }, + "node_modules/@types/mime": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", + "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", + "dev": true + }, + "node_modules/@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.3.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.2.tgz", + "integrity": "sha512-vOBLVQeCQfIcF/2Y7eKFTqrMnizK5lRNQ7ykML/5RuwVXVWxYkgwS7xbt4B6fKCUPgbSL5FSsjHQpaGQP/dQmw==", + "dev": true + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true + }, + "node_modules/@types/q": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz", + "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==", + "dev": true + }, + "node_modules/@types/qs": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", + "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", + "dev": true + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==", + "dev": true + }, + "node_modules/@types/resolve": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", + "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "dev": true + }, + "node_modules/@types/semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", + "dev": true + }, + "node_modules/@types/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", + "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "dev": true, + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "dev": true, + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.2.tgz", + "integrity": "sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==", + "dev": true, + "dependencies": { + "@types/http-errors": "*", + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/sockjs": { + "version": "0.3.33", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", + "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "node_modules/@types/trusted-types": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz", + "integrity": "sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==", + "dev": true + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.17", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz", + "integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA==", + "dev": true + }, + "node_modules/@types/webpack-env": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/@types/webpack-env/-/webpack-env-1.18.1.tgz", + "integrity": "sha512-D0HJET2/UY6k9L6y3f5BL+IDxZmPkYmPT4+qBrRdmRLYRuV0qNKizMgTvYxXZYn+36zjPeoDZAEYBCM6XB+gww==", + "dev": true + }, + "node_modules/@types/ws": { + "version": "8.5.5", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.5.tgz", + "integrity": "sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "16.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", + "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.60.1.tgz", + "integrity": "sha512-KSWsVvsJsLJv3c4e73y/Bzt7OpqMCADUO846bHcuWYSYM19bldbAeDv7dYyV0jwkbMfJ2XdlzwjhXtuD7OY6bw==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.60.1", + "@typescript-eslint/type-utils": "5.60.1", + "@typescript-eslint/utils": "5.60.1", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/experimental-utils": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.60.1.tgz", + "integrity": "sha512-TXUdLxv2t8181nh5yLXl/Gr/zKj1ZofQ7m+ZdmG2+El0TYOHCvlZfc35D4nturemC3RUnf3KmLuFp3bVBjkG5w==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "5.60.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.60.1.tgz", + "integrity": "sha512-pHWlc3alg2oSMGwsU/Is8hbm3XFbcrb6P5wIxcQW9NsYBfnrubl/GhVVD/Jm/t8HXhA2WncoIRfBtnCgRGV96Q==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.60.1", + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/typescript-estree": "5.60.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.60.1.tgz", + "integrity": "sha512-Dn/LnN7fEoRD+KspEOV0xDMynEmR3iSHdgNsarlXNLGGtcUok8L4N71dxUgt3YvlO8si7E+BJ5Fe3wb5yUw7DQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/visitor-keys": "5.60.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.60.1.tgz", + "integrity": "sha512-vN6UztYqIu05nu7JqwQGzQKUJctzs3/Hg7E2Yx8rz9J+4LgtIDFWjjl1gm3pycH0P3mHAcEUBd23LVgfrsTR8A==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.60.1", + "@typescript-eslint/utils": "5.60.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.60.1.tgz", + "integrity": "sha512-zDcDx5fccU8BA0IDZc71bAtYIcG9PowaOwaD8rjYbqwK7dpe/UMQl3inJ4UtUK42nOCT41jTSCwg76E62JpMcg==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.60.1.tgz", + "integrity": "sha512-hkX70J9+2M2ZT6fhti5Q2FoU9zb+GeZK2SLP1WZlvUDqdMbEKhexZODD1WodNRyO8eS+4nScvT0dts8IdaBzfw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/visitor-keys": "5.60.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.60.1.tgz", + "integrity": "sha512-tiJ7FFdFQOWssFa3gqb94Ilexyw0JVxj6vBzaSpfN/8IhoKkDuSAenUKvsSHw2A/TMpJb26izIszTXaqygkvpQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.60.1", + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/typescript-estree": "5.60.1", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.60.1.tgz", + "integrity": "sha512-xEYIxKcultP6E/RMKqube11pGjXH1DCo60mQoWhVYyKfLkwbIVVjYxmOenNMxILx0TjCujPTjjnTIVzm09TXIw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.60.1", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-vue": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-3.2.0.tgz", + "integrity": "sha512-E0tnaL4fr+qkdCNxJ+Xd0yM31UwMkQje76fsDVBBUCoGOUPexu2VDUYHL8P4CwV+zMvWw6nlRw19OnRKmYAJpw==", + "dev": true, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^3.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@vitejs/plugin-vue-jsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-2.1.1.tgz", + "integrity": "sha512-JgDhxstQlwnHBvZ1BSnU5mbmyQ14/t5JhREc6YH5kWyu2QdAAOsLF6xgHoIWarj8tddaiwFrNzLbWJPudpXKYA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.19.6", + "@babel/plugin-transform-typescript": "^7.20.0", + "@vue/babel-plugin-jsx": "^1.1.1" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^3.0.0", + "vue": "^3.0.0" + } + }, + "node_modules/@volar/code-gen": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@volar/code-gen/-/code-gen-0.39.5.tgz", + "integrity": "sha512-vQr5VoCH8T2NHmqLc/AA1/4F8l41WB+24+I+VjxBaev/Hmwjye9K0GlmMHAOl84WB3hWGOqpHaPX6JkqzRNjJg==", + "dev": true, + "dependencies": { + "@volar/source-map": "0.39.5" + } + }, + "node_modules/@volar/source-map": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-0.39.5.tgz", + "integrity": "sha512-IVOX+v++Sr5Kok4/cLbDJp2vf1ia1rChpV7adgcnMle6uORBuGFEur234UzamK0iHRCcfFFRz7z+hSPf2CO23Q==", + "dev": true + }, + "node_modules/@volar/typescript-faster": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@volar/typescript-faster/-/typescript-faster-0.39.5.tgz", + "integrity": "sha512-IzLqlxefmKkjNKXC/8aFiqPcTqnj6RG31D2f9cIWxmW9pvUYJxLED+y9phnOxNxq0OmeRtQ3Pfmvu85tUBoZsQ==", + "dev": true, + "dependencies": { + "semver": "^7.3.7" + } + }, + "node_modules/@volar/typescript-faster/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@volar/typescript-faster/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@volar/typescript-faster/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@volar/vue-code-gen": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@volar/vue-code-gen/-/vue-code-gen-0.39.5.tgz", + "integrity": "sha512-y+QUV9MuuasiIuRoGKQl+gMhDaAX6XNhckAyJCvD1FZ8f2eJuPY2VtoFxmu/Z2bGWBdtUW/g98jaeKJ+j3wwOw==", + "dev": true, + "dependencies": { + "@volar/code-gen": "0.39.5", + "@volar/source-map": "0.39.5", + "@vue/compiler-core": "^3.2.37", + "@vue/compiler-dom": "^3.2.37", + "@vue/shared": "^3.2.37" + } + }, + "node_modules/@volar/vue-language-core": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@volar/vue-language-core/-/vue-language-core-0.39.5.tgz", + "integrity": "sha512-m+e1tYuL/WRPhSeC7hZ0NuSwHsfnnGJVxCBHLaP7jR0f6xcC0DAegP3QF+gfu9ZJFPGznpZYFKadngMjuhQS9Q==", + "dev": true, + "dependencies": { + "@volar/code-gen": "0.39.5", + "@volar/source-map": "0.39.5", + "@volar/vue-code-gen": "0.39.5", + "@vue/compiler-sfc": "^3.2.37", + "@vue/reactivity": "^3.2.37" + } + }, + "node_modules/@volar/vue-typescript": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@volar/vue-typescript/-/vue-typescript-0.39.5.tgz", + "integrity": "sha512-ckhWD1xOi0OMr702XVkv/Npsb9FKAp5gvhxyLv0QqWekPdSo04t4KrZfwosJLGERIEcyr50SuB7HqBp8ndQmzA==", + "dev": true, + "dependencies": { + "@volar/code-gen": "0.39.5", + "@volar/typescript-faster": "0.39.5", + "@volar/vue-language-core": "0.39.5" + } + }, + "node_modules/@vue/babel-helper-vue-jsx-merge-props": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.4.0.tgz", + "integrity": "sha512-JkqXfCkUDp4PIlFdDQ0TdXoIejMtTHP67/pvxlgeY+u5k3LEdKuWZ3LK6xkxo52uDoABIVyRwqVkfLQJhk7VBA==", + "dev": true + }, + "node_modules/@vue/babel-helper-vue-transform-on": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.1.5.tgz", + "integrity": "sha512-SgUymFpMoAyWeYWLAY+MkCK3QEROsiUnfaw5zxOVD/M64KQs8D/4oK6Q5omVA2hnvEOE0SCkH2TZxs/jnnUj7w==", + "dev": true + }, + "node_modules/@vue/babel-plugin-jsx": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.1.5.tgz", + "integrity": "sha512-nKs1/Bg9U1n3qSWnsHhCVQtAzI6aQXqua8j/bZrau8ywT1ilXQbK4FwEJGmU8fV7tcpuFvWmmN7TMmV1OBma1g==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5", + "@vue/babel-helper-vue-transform-on": "^1.1.5", + "camelcase": "^6.3.0", + "html-tags": "^3.3.1", + "svg-tags": "^1.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-plugin-transform-vue-jsx": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-1.4.0.tgz", + "integrity": "sha512-Fmastxw4MMx0vlgLS4XBX0XiBbUFzoMGeVXuMV08wyOfXdikAFqBTuYPR0tlk+XskL19EzHc39SgjrPGY23JnA==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/plugin-syntax-jsx": "^7.2.0", + "@vue/babel-helper-vue-jsx-merge-props": "^1.4.0", + "html-tags": "^2.0.0", + "lodash.kebabcase": "^4.1.1", + "svg-tags": "^1.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-plugin-transform-vue-jsx/node_modules/html-tags": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-2.0.0.tgz", + "integrity": "sha512-+Il6N8cCo2wB/Vd3gqy/8TZhTD3QvcVeQLCnZiGkGCH3JP28IgGAY41giccp2W4R3jfyJPAP318FQTa1yU7K7g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@vue/babel-preset-app": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/babel-preset-app/-/babel-preset-app-5.0.8.tgz", + "integrity": "sha512-yl+5qhpjd8e1G4cMXfORkkBlvtPCIgmRf3IYCWYDKIQ7m+PPa5iTm4feiNmCMD6yGqQWMhhK/7M3oWGL9boKwg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.16", + "@babel/helper-compilation-targets": "^7.12.16", + "@babel/helper-module-imports": "^7.12.13", + "@babel/plugin-proposal-class-properties": "^7.12.13", + "@babel/plugin-proposal-decorators": "^7.12.13", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-jsx": "^7.12.13", + "@babel/plugin-transform-runtime": "^7.12.15", + "@babel/preset-env": "^7.12.16", + "@babel/runtime": "^7.12.13", + "@vue/babel-plugin-jsx": "^1.0.3", + "@vue/babel-preset-jsx": "^1.1.2", + "babel-plugin-dynamic-import-node": "^2.3.3", + "core-js": "^3.8.3", + "core-js-compat": "^3.8.3", + "semver": "^7.3.4" + }, + "peerDependencies": { + "@babel/core": "*", + "core-js": "^3", + "vue": "^2 || ^3.2.13" + }, + "peerDependenciesMeta": { + "core-js": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/babel-preset-app/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vue/babel-preset-app/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vue/babel-preset-app/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@vue/babel-preset-jsx": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-preset-jsx/-/babel-preset-jsx-1.4.0.tgz", + "integrity": "sha512-QmfRpssBOPZWL5xw7fOuHNifCQcNQC1PrOo/4fu6xlhlKJJKSA3HqX92Nvgyx8fqHZTUGMPHmFA+IDqwXlqkSA==", + "dev": true, + "dependencies": { + "@vue/babel-helper-vue-jsx-merge-props": "^1.4.0", + "@vue/babel-plugin-transform-vue-jsx": "^1.4.0", + "@vue/babel-sugar-composition-api-inject-h": "^1.4.0", + "@vue/babel-sugar-composition-api-render-instance": "^1.4.0", + "@vue/babel-sugar-functional-vue": "^1.4.0", + "@vue/babel-sugar-inject-h": "^1.4.0", + "@vue/babel-sugar-v-model": "^1.4.0", + "@vue/babel-sugar-v-on": "^1.4.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0", + "vue": "*" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/babel-sugar-composition-api-inject-h": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-sugar-composition-api-inject-h/-/babel-sugar-composition-api-inject-h-1.4.0.tgz", + "integrity": "sha512-VQq6zEddJHctnG4w3TfmlVp5FzDavUSut/DwR0xVoe/mJKXyMcsIibL42wPntozITEoY90aBV0/1d2KjxHU52g==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-jsx": "^7.2.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-sugar-composition-api-render-instance": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-sugar-composition-api-render-instance/-/babel-sugar-composition-api-render-instance-1.4.0.tgz", + "integrity": "sha512-6ZDAzcxvy7VcnCjNdHJ59mwK02ZFuP5CnucloidqlZwVQv5CQLijc3lGpR7MD3TWFi78J7+a8J56YxbCtHgT9Q==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-jsx": "^7.2.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-sugar-functional-vue": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.4.0.tgz", + "integrity": "sha512-lTEB4WUFNzYt2In6JsoF9sAYVTo84wC4e+PoZWSgM6FUtqRJz7wMylaEhSRgG71YF+wfLD6cc9nqVeXN2rwBvw==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-jsx": "^7.2.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-sugar-inject-h": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-sugar-inject-h/-/babel-sugar-inject-h-1.4.0.tgz", + "integrity": "sha512-muwWrPKli77uO2fFM7eA3G1lAGnERuSz2NgAxuOLzrsTlQl8W4G+wwbM4nB6iewlKbwKRae3nL03UaF5ffAPMA==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-jsx": "^7.2.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-sugar-v-model": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-sugar-v-model/-/babel-sugar-v-model-1.4.0.tgz", + "integrity": "sha512-0t4HGgXb7WHYLBciZzN5s0Hzqan4Ue+p/3FdQdcaHAb7s5D9WZFGoSxEZHrR1TFVZlAPu1bejTKGeAzaaG3NCQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-jsx": "^7.2.0", + "@vue/babel-helper-vue-jsx-merge-props": "^1.4.0", + "@vue/babel-plugin-transform-vue-jsx": "^1.4.0", + "camelcase": "^5.0.0", + "html-tags": "^2.0.0", + "svg-tags": "^1.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-sugar-v-model/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@vue/babel-sugar-v-model/node_modules/html-tags": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-2.0.0.tgz", + "integrity": "sha512-+Il6N8cCo2wB/Vd3gqy/8TZhTD3QvcVeQLCnZiGkGCH3JP28IgGAY41giccp2W4R3jfyJPAP318FQTa1yU7K7g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@vue/babel-sugar-v-on": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vue/babel-sugar-v-on/-/babel-sugar-v-on-1.4.0.tgz", + "integrity": "sha512-m+zud4wKLzSKgQrWwhqRObWzmTuyzl6vOP7024lrpeJM4x2UhQtRDLgYjXAw9xBXjCwS0pP9kXjg91F9ZNo9JA==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-jsx": "^7.2.0", + "@vue/babel-plugin-transform-vue-jsx": "^1.4.0", + "camelcase": "^5.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/babel-sugar-v-on/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@vue/cli-overlay": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-5.0.8.tgz", + "integrity": "sha512-KmtievE/B4kcXp6SuM2gzsnSd8WebkQpg3XaB6GmFh1BJGRqa1UiW9up7L/Q67uOdTigHxr5Ar2lZms4RcDjwQ==", + "dev": true + }, + "node_modules/@vue/cli-plugin-babel": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-babel/-/cli-plugin-babel-5.0.8.tgz", + "integrity": "sha512-a4qqkml3FAJ3auqB2kN2EMPocb/iu0ykeELwed+9B1c1nQ1HKgslKMHMPavYx3Cd/QAx2mBD4hwKBqZXEI/CsQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.16", + "@vue/babel-preset-app": "^5.0.8", + "@vue/cli-shared-utils": "^5.0.8", + "babel-loader": "^8.2.2", + "thread-loader": "^3.0.0", + "webpack": "^5.54.0" + }, + "peerDependencies": { + "@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0" + } + }, + "node_modules/@vue/cli-plugin-router": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-5.0.8.tgz", + "integrity": "sha512-Gmv4dsGdAsWPqVijz3Ux2OS2HkMrWi1ENj2cYL75nUeL+Xj5HEstSqdtfZ0b1q9NCce+BFB6QnHfTBXc/fCvMg==", + "dev": true, + "dependencies": { + "@vue/cli-shared-utils": "^5.0.8" + }, + "peerDependencies": { + "@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0" + } + }, + "node_modules/@vue/cli-plugin-typescript": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-typescript/-/cli-plugin-typescript-5.0.8.tgz", + "integrity": "sha512-JKJOwzJshBqsmp4yLBexwVMebOZ4VGJgbnYvmHVxasJOStF2RxwyW28ZF+zIvASGdat4sAUuo/3mAQyVhm7JHg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.16", + "@types/webpack-env": "^1.15.2", + "@vue/cli-shared-utils": "^5.0.8", + "babel-loader": "^8.2.2", + "fork-ts-checker-webpack-plugin": "^6.4.0", + "globby": "^11.0.2", + "thread-loader": "^3.0.0", + "ts-loader": "^9.2.5", + "webpack": "^5.54.0" + }, + "peerDependencies": { + "@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0", + "cache-loader": "^4.1.0", + "typescript": ">=2", + "vue": "^2 || ^3.2.13", + "vue-template-compiler": "^2.0.0" + }, + "peerDependenciesMeta": { + "cache-loader": { + "optional": true + }, + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/@vue/cli-plugin-vuex": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-5.0.8.tgz", + "integrity": "sha512-HSYWPqrunRE5ZZs8kVwiY6oWcn95qf/OQabwLfprhdpFWAGtLStShjsGED2aDpSSeGAskQETrtR/5h7VqgIlBA==", + "dev": true, + "peerDependencies": { + "@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0" + } + }, + "node_modules/@vue/cli-service": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/cli-service/-/cli-service-5.0.8.tgz", + "integrity": "sha512-nV7tYQLe7YsTtzFrfOMIHc5N2hp5lHG2rpYr0aNja9rNljdgcPZLyQRb2YRivTHqTv7lI962UXFURcpStHgyFw==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.12.16", + "@soda/friendly-errors-webpack-plugin": "^1.8.0", + "@soda/get-current-script": "^1.0.2", + "@types/minimist": "^1.2.0", + "@vue/cli-overlay": "^5.0.8", + "@vue/cli-plugin-router": "^5.0.8", + "@vue/cli-plugin-vuex": "^5.0.8", + "@vue/cli-shared-utils": "^5.0.8", + "@vue/component-compiler-utils": "^3.3.0", + "@vue/vue-loader-v15": "npm:vue-loader@^15.9.7", + "@vue/web-component-wrapper": "^1.3.0", + "acorn": "^8.0.5", + "acorn-walk": "^8.0.2", + "address": "^1.1.2", + "autoprefixer": "^10.2.4", + "browserslist": "^4.16.3", + "case-sensitive-paths-webpack-plugin": "^2.3.0", + "cli-highlight": "^2.1.10", + "clipboardy": "^2.3.0", + "cliui": "^7.0.4", + "copy-webpack-plugin": "^9.0.1", + "css-loader": "^6.5.0", + "css-minimizer-webpack-plugin": "^3.0.2", + "cssnano": "^5.0.0", + "debug": "^4.1.1", + "default-gateway": "^6.0.3", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "fs-extra": "^9.1.0", + "globby": "^11.0.2", + "hash-sum": "^2.0.0", + "html-webpack-plugin": "^5.1.0", + "is-file-esm": "^1.0.0", + "launch-editor-middleware": "^2.2.1", + "lodash.defaultsdeep": "^4.6.1", + "lodash.mapvalues": "^4.6.0", + "mini-css-extract-plugin": "^2.5.3", + "minimist": "^1.2.5", + "module-alias": "^2.2.2", + "portfinder": "^1.0.26", + "postcss": "^8.2.6", + "postcss-loader": "^6.1.1", + "progress-webpack-plugin": "^1.0.12", + "ssri": "^8.0.1", + "terser-webpack-plugin": "^5.1.1", + "thread-loader": "^3.0.0", + "vue-loader": "^17.0.0", + "vue-style-loader": "^4.1.3", + "webpack": "^5.54.0", + "webpack-bundle-analyzer": "^4.4.0", + "webpack-chain": "^6.5.1", + "webpack-dev-server": "^4.7.3", + "webpack-merge": "^5.7.3", + "webpack-virtual-modules": "^0.4.2", + "whatwg-fetch": "^3.6.2" + }, + "bin": { + "vue-cli-service": "bin/vue-cli-service.js" + }, + "engines": { + "node": "^12.0.0 || >= 14.0.0" + }, + "peerDependencies": { + "vue-template-compiler": "^2.0.0", + "webpack-sources": "*" + }, + "peerDependenciesMeta": { + "cache-loader": { + "optional": true + }, + "less-loader": { + "optional": true + }, + "pug-plain-loader": { + "optional": true + }, + "raw-loader": { + "optional": true + }, + "sass-loader": { + "optional": true + }, + "stylus-loader": { + "optional": true + }, + "vue-template-compiler": { + "optional": true + }, + "webpack-sources": { + "optional": true + } + } + }, + "node_modules/@vue/cli-shared-utils": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-5.0.8.tgz", + "integrity": "sha512-uK2YB7bBVuQhjOJF+O52P9yFMXeJVj7ozqJkwYE9PlMHL1LMHjtCYm4cSdOebuPzyP+/9p0BimM/OqxsevIopQ==", + "dev": true, + "dependencies": { + "@achrinza/node-ipc": "^9.2.5", + "chalk": "^4.1.2", + "execa": "^1.0.0", + "joi": "^17.4.0", + "launch-editor": "^2.2.1", + "lru-cache": "^6.0.0", + "node-fetch": "^2.6.7", + "open": "^8.0.2", + "ora": "^5.3.0", + "read-pkg": "^5.1.1", + "semver": "^7.3.4", + "strip-ansi": "^6.0.0" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@vue/cli-shared-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@vue/cli-shared-utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@vue/compiler-core": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz", + "integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==", + "dependencies": { + "@babel/parser": "^7.21.3", + "@vue/shared": "3.3.4", + "estree-walker": "^2.0.2", + "source-map-js": "^1.0.2" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz", + "integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==", + "dependencies": { + "@vue/compiler-core": "3.3.4", + "@vue/shared": "3.3.4" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz", + "integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==", + "dependencies": { + "@babel/parser": "^7.20.15", + "@vue/compiler-core": "3.3.4", + "@vue/compiler-dom": "3.3.4", + "@vue/compiler-ssr": "3.3.4", + "@vue/reactivity-transform": "3.3.4", + "@vue/shared": "3.3.4", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.0", + "postcss": "^8.1.10", + "source-map-js": "^1.0.2" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz", + "integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==", + "dependencies": { + "@vue/compiler-dom": "3.3.4", + "@vue/shared": "3.3.4" + } + }, + "node_modules/@vue/component-compiler-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.3.0.tgz", + "integrity": "sha512-97sfH2mYNU+2PzGrmK2haqffDpVASuib9/w2/noxiFi31Z54hW+q3izKQXXQZSNhtiUpAI36uSuYepeBe4wpHQ==", + "dev": true, + "dependencies": { + "consolidate": "^0.15.1", + "hash-sum": "^1.0.2", + "lru-cache": "^4.1.2", + "merge-source-map": "^1.1.0", + "postcss": "^7.0.36", + "postcss-selector-parser": "^6.0.2", + "source-map": "~0.6.1", + "vue-template-es2015-compiler": "^1.9.0" + }, + "optionalDependencies": { + "prettier": "^1.18.2 || ^2.0.0" + } + }, + "node_modules/@vue/component-compiler-utils/node_modules/hash-sum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz", + "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==", + "dev": true + }, + "node_modules/@vue/component-compiler-utils/node_modules/lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "dependencies": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "node_modules/@vue/component-compiler-utils/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/@vue/component-compiler-utils/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/@vue/component-compiler-utils/node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + }, + "node_modules/@vue/devtools-api": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.5.0.tgz", + "integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==" + }, + "node_modules/@vue/reactivity": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.4.tgz", + "integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==", + "dependencies": { + "@vue/shared": "3.3.4" + } + }, + "node_modules/@vue/reactivity-transform": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz", + "integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==", + "dependencies": { + "@babel/parser": "^7.20.15", + "@vue/compiler-core": "3.3.4", + "@vue/shared": "3.3.4", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.0" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.3.4.tgz", + "integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==", + "dependencies": { + "@vue/reactivity": "3.3.4", + "@vue/shared": "3.3.4" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz", + "integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==", + "dependencies": { + "@vue/runtime-core": "3.3.4", + "@vue/shared": "3.3.4", + "csstype": "^3.1.1" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.3.4.tgz", + "integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==", + "dependencies": { + "@vue/compiler-ssr": "3.3.4", + "@vue/shared": "3.3.4" + }, + "peerDependencies": { + "vue": "3.3.4" + } + }, + "node_modules/@vue/shared": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.4.tgz", + "integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==" + }, + "node_modules/@vue/vue-loader-v15": { + "name": "vue-loader", + "version": "15.10.1", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz", + "integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==", + "dev": true, + "dependencies": { + "@vue/component-compiler-utils": "^3.1.0", + "hash-sum": "^1.0.2", + "loader-utils": "^1.1.0", + "vue-hot-reload-api": "^2.3.0", + "vue-style-loader": "^4.1.0" + }, + "peerDependencies": { + "css-loader": "*", + "webpack": "^3.0.0 || ^4.1.0 || ^5.0.0-0" + }, + "peerDependenciesMeta": { + "cache-loader": { + "optional": true + }, + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/@vue/vue-loader-v15/node_modules/hash-sum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz", + "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==", + "dev": true + }, + "node_modules/@vue/web-component-wrapper": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz", + "integrity": "sha512-Iu8Tbg3f+emIIMmI2ycSI8QcEuAUgPTgHwesDU1eKMLE4YC/c/sFbGc70QgMq31ijRftV0R7vCm9co6rldCeOA==", + "dev": true + }, + "node_modules/@vuelidate/core": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@vuelidate/core/-/core-2.0.3.tgz", + "integrity": "sha512-AN6l7KF7+mEfyWG0doT96z+47ljwPpZfi9/JrNMkOGLFv27XVZvKzRLXlmDPQjPl/wOB1GNnHuc54jlCLRNqGA==", + "dev": true, + "dependencies": { + "vue-demi": "^0.13.11" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^2.0.0 || >=3.0.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vuelidate/core/node_modules/vue-demi": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.11.tgz", + "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "dev": true, + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vuelidate/validators": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@vuelidate/validators/-/validators-2.0.3.tgz", + "integrity": "sha512-P4WtmczPRbwmVihKlSAs3pIjIil4xjHW+Qoi58MCw7vnKuYr/IHarOFkwp0K8eIIqiQqY4URM5Gb4aeDjna6Yw==", + "dev": true, + "dependencies": { + "vue-demi": "^0.13.11" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^2.0.0 || >=3.0.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vuelidate/validators/node_modules/vue-demi": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.11.tgz", + "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "dev": true, + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vueuse/core": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.2.1.tgz", + "integrity": "sha512-c441bfMbkAwTNwVRHQ0zdYZNETK//P84rC01aP2Uy/aRFCiie9NE/k9KdIXbno0eDYP5NPUuWv0aA/I4Unr/7w==", + "dev": true, + "dependencies": { + "@types/web-bluetooth": "^0.0.17", + "@vueuse/metadata": "10.2.1", + "@vueuse/shared": "10.2.1", + "vue-demi": ">=0.14.5" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/core/node_modules/vue-demi": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.5.tgz", + "integrity": "sha512-o9NUVpl/YlsGJ7t+xuqJKx8EBGf1quRhCiT6D/J0pfwmk9zUwYkC7yrF4SZCe6fETvSM3UNL2edcbYrSyc4QHA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vueuse/metadata": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.2.1.tgz", + "integrity": "sha512-3Gt68mY/i6bQvFqx7cuGBzrCCQu17OBaGWS5JdwISpMsHnMKKjC2FeB5OAfMcCQ0oINfADP3i9A4PPRo0peHdQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.2.1.tgz", + "integrity": "sha512-QWHq2bSuGptkcxx4f4M/fBYC3Y8d3M2UYyLsyzoPgEoVzJURQ0oJeWXu79OiLlBb8gTKkqe4mO85T/sf39mmiw==", + "dev": true, + "dependencies": { + "vue-demi": ">=0.14.5" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared/node_modules/vue-demi": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.5.tgz", + "integrity": "sha512-o9NUVpl/YlsGJ7t+xuqJKx8EBGf1quRhCiT6D/J0pfwmk9zUwYkC7yrF4SZCe6fETvSM3UNL2edcbYrSyc4QHA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dev": true, + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals/node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/address": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", + "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/adjust-sourcemap-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", + "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/adjust-sourcemap-loader/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "dev": true, + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arch": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz", + "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.reduce": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", + "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true + }, + "node_modules/async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dev": true, + "dependencies": { + "lodash": "^4.17.14" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/autoprefixer": { + "version": "10.4.14", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", + "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "dependencies": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "dev": true, + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/axobject-query": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", + "dev": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/babel-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", + "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", + "dev": true, + "dependencies": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-loader": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", + "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", + "dev": true, + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-loader/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dev": true, + "dependencies": { + "object.assign": "^4.1.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", + "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/babel-plugin-macros/node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/babel-plugin-named-asset-import": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz", + "integrity": "sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q==", + "dev": true, + "peerDependencies": { + "@babel/core": "^7.1.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", + "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.4.0", + "semver": "^6.1.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", + "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.0", + "core-js-compat": "^3.30.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", + "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", + "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==", + "dev": true + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", + "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-react-app": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz", + "integrity": "sha512-b0D9IZ1WhhCWkrTXyFuIIgqGzSkRIH5D5AmB0bXbzYAB1OBAwHcUeyWW2LorutLWF5btNo/N7r/cIdmvvKJlYg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/plugin-proposal-class-properties": "^7.16.0", + "@babel/plugin-proposal-decorators": "^7.16.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", + "@babel/plugin-proposal-numeric-separator": "^7.16.0", + "@babel/plugin-proposal-optional-chaining": "^7.16.0", + "@babel/plugin-proposal-private-methods": "^7.16.0", + "@babel/plugin-transform-flow-strip-types": "^7.16.0", + "@babel/plugin-transform-react-display-name": "^7.16.0", + "@babel/plugin-transform-runtime": "^7.16.4", + "@babel/preset-env": "^7.16.4", + "@babel/preset-react": "^7.16.0", + "@babel/preset-typescript": "^7.16.0", + "@babel/runtime": "^7.16.3", + "babel-plugin-macros": "^3.1.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", + "dev": true + }, + "node_modules/bfj": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.0.2.tgz", + "integrity": "sha512-+e/UqUzwmzJamNF50tBV6tZPTORow7gQ96iFow+8b562OdMpEK0BcJEq2OSPEDmAbSMBQ7PKZ87ubFkgxpYWgw==", + "dev": true, + "dependencies": { + "bluebird": "^3.5.5", + "check-types": "^11.1.1", + "hoopy": "^0.1.4", + "tryer": "^1.0.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dev": true, + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/bonjour-service": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", + "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", + "dev": true, + "dependencies": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.21.9", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", + "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "dev": true, + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001509", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001509.tgz", + "integrity": "sha512-2uDDk+TRiTX5hMcUYT/7CSyzMZxjfGu0vAUjS2g0LSD8UoXOv0LtpH4LxGMemsiPq6LCVIUjNwVM0erkOkGCDA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/case-sensitive-paths-webpack-plugin": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", + "integrity": "sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/check-types": { + "version": "11.2.2", + "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", + "integrity": "sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA==", + "dev": true + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "node_modules/clean-css": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", + "dev": true, + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 10.0" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-highlight": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz", + "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "highlight.js": "^10.7.1", + "mz": "^2.4.0", + "parse5": "^5.1.1", + "parse5-htmlparser2-tree-adapter": "^6.0.0", + "yargs": "^16.0.0" + }, + "bin": { + "highlight": "bin/highlight" + }, + "engines": { + "node": ">=8.0.0", + "npm": ">=5.0.0" + } + }, + "node_modules/cli-highlight/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cli-highlight/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cli-highlight/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/cli-highlight/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/cli-highlight/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-highlight/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.0.tgz", + "integrity": "sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clipboardy": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/clipboardy/-/clipboardy-2.3.0.tgz", + "integrity": "sha512-mKhiIL2DrQIsuXMgBgnfEHOZOryC7kY7YO//TN6c63wlEm3NG5tz+YgY5rVi29KCmq/QQjKYvM7a19+MDOTHOQ==", + "dev": true, + "dependencies": { + "arch": "^2.1.1", + "execa": "^1.0.0", + "is-wsl": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/coa": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", + "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", + "dev": true, + "dependencies": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", + "dev": true + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, + "engines": { + "node": ">= 12" + } + }, + "node_modules/common-path-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", + "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==", + "dev": true + }, + "node_modules/common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dev": true, + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dev": true, + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, + "node_modules/connect-history-api-fallback": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", + "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/consolidate": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.15.1.tgz", + "integrity": "sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==", + "deprecated": "Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog", + "dev": true, + "dependencies": { + "bluebird": "^3.1.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "dev": true + }, + "node_modules/copy-webpack-plugin": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-9.1.0.tgz", + "integrity": "sha512-rxnR7PaGigJzhqETHGmAcxKnLZSR5u1Y3/bcIv/1FnqXedcL/E2ewK7ZCNrArJKCiSv8yVXhTqetJh8inDvfsA==", + "dev": true, + "dependencies": { + "fast-glob": "^3.2.7", + "glob-parent": "^6.0.1", + "globby": "^11.0.3", + "normalize-path": "^3.0.0", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + } + }, + "node_modules/copy-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/core-js": { + "version": "3.31.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.31.0.tgz", + "integrity": "sha512-NIp2TQSGfR6ba5aalZD+ZQ1fSxGhDo/s1w0nx3RYzf2pnJxt7YynxFlFScP6eV7+GZsKO95NSjGxyJsU3DZgeQ==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat": { + "version": "3.31.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.31.0.tgz", + "integrity": "sha512-hM7YCu1cU6Opx7MXNu0NuumM0ezNeAeRKadixyiQELWY3vT3De9S4J5ZBMraWV2vZnrE1Cirl0GtFtDtMUXzPw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-pure": { + "version": "3.31.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.31.0.tgz", + "integrity": "sha512-/AnE9Y4OsJZicCzIe97JP5XoPKQJfTuEG43aEVLFJGOJpyqELod+pE6LEl63DfG1Mp8wX97LDaDpy1GmLEUxlg==", + "dev": true, + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/cosmiconfig": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/cross-spawn/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/css-blank-pseudo": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz", + "integrity": "sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-blank-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", + "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-has-pseudo": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz", + "integrity": "sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-has-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-loader": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", + "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", + "dev": true, + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.3", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-loader/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/css-minimizer-webpack-plugin": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz", + "integrity": "sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==", + "dev": true, + "dependencies": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "postcss": "^8.3.5", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "@parcel/css": { + "optional": true + }, + "clean-css": { + "optional": true + }, + "csso": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-prefers-color-scheme": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz", + "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==", + "dev": true, + "bin": { + "css-prefers-color-scheme": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select-base-adapter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", + "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==", + "dev": true + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssdb": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.6.0.tgz", + "integrity": "sha512-Nna7rph8V0jC6+JBY4Vk4ndErUmfJfV6NJCaZdurL0omggabiy+QB2HCQtu5c/ACLZ0I7REv7A4QyPIoYzZx0w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + } + ] + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", + "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "dev": true, + "dependencies": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.14", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", + "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "dev": true, + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "node_modules/csstype": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/data-urls/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/data-urls/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/dayjs": { + "version": "1.11.8", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.8.tgz", + "integrity": "sha512-LcgxzFoWMEPO7ggRv1Y2N31hUf2R0Vj7fuy/m+Bg1K8rr+KAs1AEy4y9jd5DXe8pbHgX+srkHNS7TH6Q6ZhYeQ==", + "dev": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/default-gateway/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/default-gateway/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/default-gateway/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-gateway/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-gateway/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/default-gateway/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/default-gateway/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/default-gateway/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/default-gateway/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "dev": true, + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "dev": true, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true + }, + "node_modules/detect-port-alt": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", + "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", + "dev": true, + "dependencies": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "bin": { + "detect": "bin/detect-port", + "detect-port": "bin/detect-port" + }, + "engines": { + "node": ">= 4.2.1" + } + }, + "node_modules/detect-port-alt/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/detect-port-alt/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true + }, + "node_modules/diff-sequences": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==", + "dev": true + }, + "node_modules/dns-packet": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", + "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", + "dev": true, + "dependencies": { + "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "dev": true, + "dependencies": { + "utila": "~0.4" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "dev": true + }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, + "node_modules/easy-stack": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/easy-stack/-/easy-stack-1.0.1.tgz", + "integrity": "sha512-wK2sCs4feiiJeFXn3zvY0p41mdU5VUgbgs1rNsc/y5ngFUijdWd+iIN8eoyuZHKB8xN6BL4PdWmzqFmxNg6V2w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "dev": true + }, + "node_modules/ejs": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "dev": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.446", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.446.tgz", + "integrity": "sha512-4Gnw7ztEQ/E0eOt5JWfPn9jjeupfUlKoeW5ETKP9nLdWj+4spFoS3Stj19fqlKIaX28UQs0fNX+uKEyoLCBnkw==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", + "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/enhanced-resolve/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/error-stack-parser": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", + "dev": true, + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "node_modules/es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-array-method-boxes-properly": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", + "dev": true + }, + "node_modules/es-module-lexer": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", + "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", + "dev": true + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/esbuild": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.18.tgz", + "integrity": "sha512-x/R72SmW3sSFRm5zrrIjAhCeQSAWoni3CmHEqfQrZIQTM3lVCdehdwuIqaOtfC2slvpdlLa62GYoN8SxT23m6Q==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.15.18", + "@esbuild/linux-loong64": "0.15.18", + "esbuild-android-64": "0.15.18", + "esbuild-android-arm64": "0.15.18", + "esbuild-darwin-64": "0.15.18", + "esbuild-darwin-arm64": "0.15.18", + "esbuild-freebsd-64": "0.15.18", + "esbuild-freebsd-arm64": "0.15.18", + "esbuild-linux-32": "0.15.18", + "esbuild-linux-64": "0.15.18", + "esbuild-linux-arm": "0.15.18", + "esbuild-linux-arm64": "0.15.18", + "esbuild-linux-mips64le": "0.15.18", + "esbuild-linux-ppc64le": "0.15.18", + "esbuild-linux-riscv64": "0.15.18", + "esbuild-linux-s390x": "0.15.18", + "esbuild-netbsd-64": "0.15.18", + "esbuild-openbsd-64": "0.15.18", + "esbuild-sunos-64": "0.15.18", + "esbuild-windows-32": "0.15.18", + "esbuild-windows-64": "0.15.18", + "esbuild-windows-arm64": "0.15.18" + } + }, + "node_modules/esbuild-android-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.18.tgz", + "integrity": "sha512-wnpt3OXRhcjfIDSZu9bnzT4/TNTDsOUvip0foZOUBG7QbSt//w3QV4FInVJxNhKc/ErhUxc5z4QjHtMi7/TbgA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-android-arm64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.18.tgz", + "integrity": "sha512-G4xu89B8FCzav9XU8EjsXacCKSG2FT7wW9J6hOc18soEHJdtWu03L3TQDGf0geNxfLTtxENKBzMSq9LlbjS8OQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-darwin-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.18.tgz", + "integrity": "sha512-2WAvs95uPnVJPuYKP0Eqx+Dl/jaYseZEUUT1sjg97TJa4oBtbAKnPnl3b5M9l51/nbx7+QAEtuummJZW0sBEmg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-darwin-arm64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.18.tgz", + "integrity": "sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-freebsd-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.18.tgz", + "integrity": "sha512-TT3uBUxkteAjR1QbsmvSsjpKjOX6UkCstr8nMr+q7zi3NuZ1oIpa8U41Y8I8dJH2fJgdC3Dj3CXO5biLQpfdZA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-freebsd-arm64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.18.tgz", + "integrity": "sha512-R/oVr+X3Tkh+S0+tL41wRMbdWtpWB8hEAMsOXDumSSa6qJR89U0S/PpLXrGF7Wk/JykfpWNokERUpCeHDl47wA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-32": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.18.tgz", + "integrity": "sha512-lphF3HiCSYtaa9p1DtXndiQEeQDKPl9eN/XNoBf2amEghugNuqXNZA/ZovthNE2aa4EN43WroO0B85xVSjYkbg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.18.tgz", + "integrity": "sha512-hNSeP97IviD7oxLKFuii5sDPJ+QHeiFTFLoLm7NZQligur8poNOWGIgpQ7Qf8Balb69hptMZzyOBIPtY09GZYw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-arm": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.18.tgz", + "integrity": "sha512-UH779gstRblS4aoS2qpMl3wjg7U0j+ygu3GjIeTonCcN79ZvpPee12Qun3vcdxX+37O5LFxz39XeW2I9bybMVA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-arm64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.18.tgz", + "integrity": "sha512-54qr8kg/6ilcxd+0V3h9rjT4qmjc0CccMVWrjOEM/pEcUzt8X62HfBSeZfT2ECpM7104mk4yfQXkosY8Quptug==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-mips64le": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.18.tgz", + "integrity": "sha512-Mk6Ppwzzz3YbMl/ZZL2P0q1tnYqh/trYZ1VfNP47C31yT0K8t9s7Z077QrDA/guU60tGNp2GOwCQnp+DYv7bxQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-ppc64le": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.18.tgz", + "integrity": "sha512-b0XkN4pL9WUulPTa/VKHx2wLCgvIAbgwABGnKMY19WhKZPT+8BxhZdqz6EgkqCLld7X5qiCY2F/bfpUUlnFZ9w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-riscv64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.18.tgz", + "integrity": "sha512-ba2COaoF5wL6VLZWn04k+ACZjZ6NYniMSQStodFKH/Pu6RxzQqzsmjR1t9QC89VYJxBeyVPTaHuBMCejl3O/xg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-s390x": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.18.tgz", + "integrity": "sha512-VbpGuXEl5FCs1wDVp93O8UIzl3ZrglgnSQ+Hu79g7hZu6te6/YHgVJxCM2SqfIila0J3k0csfnf8VD2W7u2kzQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-netbsd-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.18.tgz", + "integrity": "sha512-98ukeCdvdX7wr1vUYQzKo4kQ0N2p27H7I11maINv73fVEXt2kyh4K4m9f35U1K43Xc2QGXlzAw0K9yoU7JUjOg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-openbsd-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.18.tgz", + "integrity": "sha512-yK5NCcH31Uae076AyQAXeJzt/vxIo9+omZRKj1pauhk3ITuADzuOx5N2fdHrAKPxN+zH3w96uFKlY7yIn490xQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-sunos-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.18.tgz", + "integrity": "sha512-On22LLFlBeLNj/YF3FT+cXcyKPEI263nflYlAhz5crxtp3yRG1Ugfr7ITyxmCmjm4vbN/dGrb/B7w7U8yJR9yw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-32": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.18.tgz", + "integrity": "sha512-o+eyLu2MjVny/nt+E0uPnBxYuJHBvho8vWsC2lV61A7wwTWC3jkN2w36jtA+yv1UgYkHRihPuQsL23hsCYGcOQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.18.tgz", + "integrity": "sha512-qinug1iTTaIIrCorAUjR0fcBk24fjzEedFYhhispP8Oc7SFvs+XeW3YpAKiKp8dRpizl4YYAhxMjlftAMJiaUw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-arm64": { + "version": "0.15.18", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.18.tgz", + "integrity": "sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "dev": true + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/eslint": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", + "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.43.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-react-app": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz", + "integrity": "sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/eslint-parser": "^7.16.3", + "@rushstack/eslint-patch": "^1.1.0", + "@typescript-eslint/eslint-plugin": "^5.5.0", + "@typescript-eslint/parser": "^5.5.0", + "babel-preset-react-app": "^10.0.1", + "confusing-browser-globals": "^1.0.11", + "eslint-plugin-flowtype": "^8.0.3", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jest": "^25.3.0", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.27.1", + "eslint-plugin-react-hooks": "^4.3.0", + "eslint-plugin-testing-library": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "eslint": "^8.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-flowtype": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", + "integrity": "sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==", + "dev": true, + "dependencies": { + "lodash": "^4.17.21", + "string-natural-compare": "^3.0.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@babel/plugin-syntax-flow": "^7.14.5", + "@babel/plugin-transform-react-jsx": "^7.14.9", + "eslint": "^8.1.0" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-jest": { + "version": "25.7.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz", + "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/experimental-utils": "^5.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "jest": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "dev": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-testing-library": { + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.0.tgz", + "integrity": "sha512-ELY7Gefo+61OfXKlQeXNIDVVLPcvKTeiQOoMZG9TeuWa7Ln4dUNRv8JdRWBQI9Mbb427XGlVB1aa1QPZxBJM8Q==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "^5.58.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0", + "npm": ">=6" + }, + "peerDependencies": { + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-webpack-plugin": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz", + "integrity": "sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==", + "dev": true, + "dependencies": { + "@types/eslint": "^7.29.0 || ^8.4.1", + "jest-worker": "^28.0.2", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0", + "webpack": "^5.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/jest-worker": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", + "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/eslint-webpack-plugin/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/espree": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "dev": true, + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-pubsub": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/event-pubsub/-/event-pubsub-4.3.0.tgz", + "integrity": "sha512-z7IyloorXvKbFx9Bpie2+vMJKKx1fH1EN5yiTfp8CiLOTptSYy1g8H4yDpGlEdshL1PBiFtBHepF2cNsqeEeFQ==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", + "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dev": true, + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "dev": true + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dev": true, + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/file-loader/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/file-loader/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/filesize": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", + "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", + "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "engines": { + "node": ">=10", + "yarn": ">=1.0.0" + }, + "peerDependencies": { + "eslint": ">= 6", + "typescript": ">= 2.7", + "vue-template-compiler": "*", + "webpack": ">= 4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + }, + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", + "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fos-routing": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/fos-routing/-/fos-routing-0.0.6.tgz", + "integrity": "sha512-+eeaFADJSbxdBI7l/hqZGZlvYmxFudOhiv+GHypQHvzbkr05pBYrm7AON80uuQp+3kBDiaRSh8Ln34Y1rHYzYw==" + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.4.tgz", + "integrity": "sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-own-enumerable-property-symbols": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", + "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==", + "dev": true + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "dev": true, + "dependencies": { + "global-prefix": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "dev": true, + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", + "dev": true + }, + "node_modules/harmony-reflect": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", + "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hash-sum": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-2.0.0.tgz", + "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", + "dev": true + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/hoopy": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", + "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==", + "dev": true, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/hpack.js/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-entities": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.4.0.tgz", + "integrity": "sha512-igBTJcNNNhvZFRtm8uA6xMY6xYleeDwn3PeBCkDz7tHttv4F2hsDI2aPgNERWzvRcNYHNT3ymRaQzllmXj4YsQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ] + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", + "dev": true, + "dependencies": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "bin": { + "html-minifier-terser": "cli.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/html-tags": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", + "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/html-webpack-plugin": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.3.tgz", + "integrity": "sha512-6YrDKTuqaP/TquFH7h4srYWsZx+x6k6+FbsTm0ziCwGHDP78Unr1r9F/H4+sGmMbX08GQcJ+K64x55b+7VM/jg==", + "dev": true, + "dependencies": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/html-webpack-plugin" + }, + "peerDependencies": { + "webpack": "^5.20.0" + } + }, + "node_modules/html-webpack-plugin/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "dev": true, + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==", + "dev": true + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dev": true, + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==", + "dev": true + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dev": true, + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "dev": true, + "dependencies": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/i": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", + "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/idb": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", + "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==", + "dev": true + }, + "node_modules/identity-obj-proxy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", + "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", + "dev": true, + "dependencies": { + "harmony-reflect": "^1.4.6" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/immutable": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz", + "integrity": "sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==", + "dev": true + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ipaddr.js": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", + "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-file-esm": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-file-esm/-/is-file-esm-1.0.0.tgz", + "integrity": "sha512-rZlaNKb4Mr8WlRu2A9XdeoKgnO5aA53XdPHgCKVyCrQ/rWi89RET1+bq37Ru46obaQXeiX4vmFIm1vks41hoSA==", + "dev": true, + "dependencies": { + "read-pkg-up": "^7.0.1" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-root": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", + "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.8.7", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", + "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", + "dev": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jake/node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + }, + "node_modules/jake/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jake/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jake/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jake/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/javascript-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-2.1.0.tgz", + "integrity": "sha512-JVAfqNPTvNq3sB/VHQJAFxN/sPgKnsKrCwyRt15zwNCdrMMJDdcEOdubuy+DuJYYdm0ox1J4uzEuYKkN+9yhVg==", + "dev": true + }, + "node_modules/jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", + "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "dev": true, + "dependencies": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", + "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-changed-files/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/jest-changed-files/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/jest-changed-files/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-changed-files/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-changed-files/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-changed-files/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-changed-files/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-changed-files/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-changed-files/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/jest-circus": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", + "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", + "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "dev": true, + "dependencies": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", + "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-docblock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", + "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", + "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", + "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", + "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", + "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-jasmine2/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-jasmine2/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-leak-detector": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", + "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "dev": true, + "dependencies": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", + "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", + "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", + "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", + "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "dev": true, + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", + "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/jest-runtime/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-runtime/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/jest-serializer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", + "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "dev": true, + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", + "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", + "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz", + "integrity": "sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.3.1", + "chalk": "^4.0.0", + "jest-regex-util": "^28.0.0", + "jest-watcher": "^28.0.0", + "slash": "^4.0.0", + "string-length": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "jest": "^27.0.0 || ^28.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/console": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", + "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", + "dev": true, + "dependencies": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^28.1.3", + "jest-util": "^28.1.3", + "slash": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/console/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/test-result": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", + "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", + "dev": true, + "dependencies": { + "@jest/console": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/types": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", + "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-watch-typeahead/node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watch-typeahead/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watch-typeahead/node_modules/emittery": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", + "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-message-util": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", + "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^28.1.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^28.1.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-message-util/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-regex-util": { + "version": "28.0.2", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", + "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", + "dev": true, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-util": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", + "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", + "dev": true, + "dependencies": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", + "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.10.2", + "jest-util": "^28.1.3", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/pretty-format": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", + "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", + "dev": true, + "dependencies": { + "@jest/schemas": "^28.1.3", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-watch-typeahead/node_modules/slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watch-typeahead/node_modules/string-length": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", + "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", + "dev": true, + "dependencies": { + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watch-typeahead/node_modules/string-length/node_modules/char-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz", + "integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==", + "dev": true, + "engines": { + "node": ">=12.20" + } + }, + "node_modules/jest-watch-typeahead/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", + "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jiti": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", + "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==", + "dev": true, + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/joi": { + "version": "17.9.2", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", + "integrity": "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==", + "dev": true, + "dependencies": { + "@hapi/hoek": "^9.0.0", + "@hapi/topo": "^5.0.0", + "@sideway/address": "^4.1.3", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" + } + }, + "node_modules/jquery": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz", + "integrity": "sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==", + "dev": true + }, + "node_modules/js-message": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.7.tgz", + "integrity": "sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA==", + "dev": true, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jsdom/node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "node_modules/jsdom/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsdom/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.4.tgz", + "integrity": "sha512-fX2TVdCViod6HwKEtSWGHs57oFhVfCMwieb9PuRDgjDPh5XeqJiHFFFJCHxU5cnTc3Bu/GRL+kPiFmw8XWOfKw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true + }, + "node_modules/language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "node_modules/launch-editor-middleware": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor-middleware/-/launch-editor-middleware-2.6.0.tgz", + "integrity": "sha512-K2yxgljj5TdCeRN1lBtO3/J26+AIDDDw+04y6VAiZbWcTdBwsYN6RrZBnW5DN/QiSIdKNjKdATLUUluWWFYTIA==", + "dev": true, + "dependencies": { + "launch-editor": "^2.6.0" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/loader-utils/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lodash.defaultsdeep": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.defaultsdeep/-/lodash.defaultsdeep-4.6.1.tgz", + "integrity": "sha512-3j8wdDzYuWO3lM3Reg03MuQR957t287Rpcxp1njpEa8oDrikb+FwGdW3n+FELh/A6qib6yPit0j/pv9G/yeAqA==", + "dev": true + }, + "node_modules/lodash.kebabcase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", + "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", + "dev": true + }, + "node_modules/lodash.mapvalues": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", + "integrity": "sha512-JPFqXFeZQ7BfS00H58kClY7SPVeHertPE0lNuCyZ26/XlN8TvakYD7b9bGyNmXbT/D3BbtPAAmq90gPWqLkxlQ==", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==", + "dev": true + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-update": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz", + "integrity": "sha512-vlP11XfFGyeNQlmEn9tJ66rEW1coA/79m5z6BCkudjbAGE83uhAcGYrBFwfs3AdLiLzGRusRPAbSPK9xZteCmg==", + "dev": true, + "dependencies": { + "ansi-escapes": "^3.0.0", + "cli-cursor": "^2.0.0", + "wrap-ansi": "^3.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", + "dev": true, + "dependencies": { + "restore-cursor": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", + "dev": true, + "dependencies": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/log-update/node_modules/wrap-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz", + "integrity": "sha512-iXR3tDXpbnTpzjKSylUJRkLuOrEC7hwEB221cgn6wtF8wpmz28puFXAEfPT5zrjM3wahygB//VuWEr1vTkDcNQ==", + "dev": true, + "dependencies": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.0.tgz", + "integrity": "sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ==", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.13" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memfs": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.3.tgz", + "integrity": "sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==", + "dev": true, + "dependencies": { + "fs-monkey": "^1.0.4" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", + "dev": true + }, + "node_modules/merge-source-map": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.1.0.tgz", + "integrity": "sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==", + "dev": true, + "dependencies": { + "source-map": "^0.6.1" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", + "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", + "dev": true, + "dependencies": { + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/module-alias": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/module-alias/-/module-alias-2.2.3.tgz", + "integrity": "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==", + "dev": true + }, + "node_modules/mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/multicast-dns": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", + "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", + "dev": true, + "dependencies": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-fetch": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "dev": true, + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/npm/-/npm-10.1.0.tgz", + "integrity": "sha512-pZ2xybXzNGbJFZEKNbPoEXsE38Xou9VTnxxBk+B3pz0ndsGCs7iWHoUCPSsISU2hjmkWfDkJo3bYKE8RDOg4eg==", + "bundleDependencies": [ + "@isaacs/string-locale-compare", + "@npmcli/arborist", + "@npmcli/config", + "@npmcli/fs", + "@npmcli/map-workspaces", + "@npmcli/package-json", + "@npmcli/promise-spawn", + "@npmcli/run-script", + "@sigstore/tuf", + "abbrev", + "archy", + "cacache", + "chalk", + "ci-info", + "cli-columns", + "cli-table3", + "columnify", + "fastest-levenshtein", + "fs-minipass", + "glob", + "graceful-fs", + "hosted-git-info", + "ini", + "init-package-json", + "is-cidr", + "json-parse-even-better-errors", + "libnpmaccess", + "libnpmdiff", + "libnpmexec", + "libnpmfund", + "libnpmhook", + "libnpmorg", + "libnpmpack", + "libnpmpublish", + "libnpmsearch", + "libnpmteam", + "libnpmversion", + "make-fetch-happen", + "minimatch", + "minipass", + "minipass-pipeline", + "ms", + "node-gyp", + "nopt", + "npm-audit-report", + "npm-install-checks", + "npm-package-arg", + "npm-pick-manifest", + "npm-profile", + "npm-registry-fetch", + "npm-user-validate", + "npmlog", + "p-map", + "pacote", + "parse-conflict-json", + "proc-log", + "qrcode-terminal", + "read", + "semver", + "ssri", + "supports-color", + "tar", + "text-table", + "tiny-relative-date", + "treeverse", + "validate-npm-package-name", + "which", + "write-file-atomic" + ], + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/arborist": "^7.1.0", + "@npmcli/config": "^7.2.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/map-workspaces": "^3.0.4", + "@npmcli/package-json": "^5.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.1", + "@sigstore/tuf": "^2.1.0", + "abbrev": "^2.0.0", + "archy": "~1.0.0", + "cacache": "^18.0.0", + "chalk": "^5.3.0", + "ci-info": "^3.8.0", + "cli-columns": "^4.0.0", + "cli-table3": "^0.6.3", + "columnify": "^1.6.0", + "fastest-levenshtein": "^1.0.16", + "fs-minipass": "^3.0.3", + "glob": "^10.3.3", + "graceful-fs": "^4.2.11", + "hosted-git-info": "^7.0.0", + "ini": "^4.1.1", + "init-package-json": "^6.0.0", + "is-cidr": "^4.0.2", + "json-parse-even-better-errors": "^3.0.0", + "libnpmaccess": "^8.0.0", + "libnpmdiff": "^6.0.1", + "libnpmexec": "^7.0.1", + "libnpmfund": "^4.1.1", + "libnpmhook": "^10.0.0", + "libnpmorg": "^6.0.0", + "libnpmpack": "^6.0.1", + "libnpmpublish": "^9.0.0", + "libnpmsearch": "^7.0.0", + "libnpmteam": "^6.0.0", + "libnpmversion": "^5.0.0", + "make-fetch-happen": "^13.0.0", + "minimatch": "^9.0.3", + "minipass": "^7.0.3", + "minipass-pipeline": "^1.2.4", + "ms": "^2.1.2", + "node-gyp": "^9.4.0", + "nopt": "^7.2.0", + "npm-audit-report": "^5.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-profile": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npm-user-validate": "^2.0.0", + "npmlog": "^7.0.1", + "p-map": "^4.0.0", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.1", + "proc-log": "^3.0.0", + "qrcode-terminal": "^0.12.0", + "read": "^2.1.0", + "semver": "^7.5.4", + "ssri": "^10.0.5", + "supports-color": "^9.4.0", + "tar": "^6.1.15", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "treeverse": "^3.0.0", + "validate-npm-package-name": "^5.0.0", + "which": "^4.0.0", + "write-file-atomic": "^5.0.1" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "dev": true, + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/@colors/colors": { + "version": "1.5.0", + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui": { + "version": "8.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/agent": { + "version": "2.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "lru-cache": "^10.0.1", + "socks-proxy-agent": "^8.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/agent-base": { + "version": "7.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/http-proxy-agent": { + "version": "7.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/https-proxy-agent": { + "version": "7.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/socks-proxy-agent": { + "version": "8.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.1", + "debug": "^4.3.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/arborist": { + "version": "7.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/installed-package-contents": "^2.0.2", + "@npmcli/map-workspaces": "^3.0.2", + "@npmcli/metavuln-calculator": "^7.0.0", + "@npmcli/name-from-folder": "^2.0.0", + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/package-json": "^5.0.0", + "@npmcli/query": "^3.0.0", + "@npmcli/run-script": "^7.0.1", + "bin-links": "^4.0.1", + "cacache": "^18.0.0", + "common-ancestor-path": "^1.0.1", + "hosted-git-info": "^7.0.0", + "json-parse-even-better-errors": "^3.0.0", + "json-stringify-nice": "^1.1.4", + "minimatch": "^9.0.0", + "nopt": "^7.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.0", + "proc-log": "^3.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^1.0.2", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "ssri": "^10.0.5", + "treeverse": "^3.0.0", + "walk-up-path": "^3.0.1" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/config": { + "version": "7.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/map-workspaces": "^3.0.2", + "ci-info": "^3.8.0", + "ini": "^4.1.0", + "nopt": "^7.0.0", + "proc-log": "^3.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.5", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/disparity-colors": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ansi-styles": "^4.3.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/fs": { + "version": "3.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/git": { + "version": "5.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^7.0.0", + "lru-cache": "^10.0.1", + "npm-pick-manifest": "^9.0.0", + "proc-log": "^3.0.0", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/installed-package-contents": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "bin": { + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/map-workspaces": { + "version": "3.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^2.0.0", + "glob": "^10.2.2", + "minimatch": "^9.0.0", + "read-package-json-fast": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cacache": "^18.0.0", + "json-parse-even-better-errors": "^3.0.0", + "pacote": "^17.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/name-from-folder": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/node-gyp": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/package-json": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.0", + "glob": "^10.2.2", + "hosted-git-info": "^7.0.0", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "proc-log": "^3.0.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/promise-spawn": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/query": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/run-script": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/npm/node_modules/@sigstore/bundle": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/protobuf-specs": { + "version": "0.2.1", + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/sign": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "make-fetch-happen": "^13.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/tuf": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.1", + "tuf-js": "^2.1.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tootallnate/once": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/@tufjs/canonical-json": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tufjs/models": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^9.0.3" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abort-controller": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/npm/node_modules/agent-base": { + "version": "6.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/npm/node_modules/agentkeepalive": { + "version": "4.5.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/npm/node_modules/aggregate-error": { + "version": "3.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/are-we-there-yet": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^4.1.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bin-links": { + "version": "4.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cmd-shim": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "read-cmd-shim": "^4.0.0", + "write-file-atomic": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/binary-extensions": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/buffer": { + "version": "6.0.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/npm/node_modules/builtins": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/npm/node_modules/cacache": { + "version": "18.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^10.0.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/chalk": { + "version": "5.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ci-info": { + "version": "3.8.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "3.1.1", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^4.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/clean-stack": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/cli-table3": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/npm/node_modules/clone": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "6.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.4", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/color-support": { + "version": "1.1.3", + "inBundle": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/npm/node_modules/columnify": { + "version": "1.6.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "strip-ansi": "^6.0.1", + "wcwidth": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/npm/node_modules/common-ancestor-path": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/console-control-strings": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/cross-spawn": { + "version": "7.0.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cssesc": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "4.3.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/npm/node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/defaults": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/delegates": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/diff": { + "version": "5.1.0", + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/npm/node_modules/eastasianwidth": { + "version": "0.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "8.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.13", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "2.0.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/event-target-shim": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/events": { + "version": "3.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/npm/node_modules/exponential-backoff": { + "version": "3.1.1", + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/npm/node_modules/fastest-levenshtein": { + "version": "1.0.16", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/npm/node_modules/foreground-child": { + "version": "3.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/fs-minipass": { + "version": "3.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/fs.realpath": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/function-bind": { + "version": "1.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/gauge": { + "version": "5.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^4.0.1", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "10.3.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.11", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/has": { + "version": "1.0.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/npm/node_modules/has-unicode": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "4.1.1", + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "5.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/humanize-ms": { + "version": "1.2.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "6.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/indent-string": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/inflight": { + "version": "1.0.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/inherits": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ini": { + "version": "4.1.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^11.0.0", + "promzard": "^1.0.0", + "read": "^2.0.0", + "read-package-json": "^7.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/ip": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/ip-regex": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "4.0.2", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "cidr-regex": "^3.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/is-core-module": { + "version": "2.12.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-lambda": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/jackspeak": { + "version": "2.2.1", + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/npm/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/json-stringify-nice": { + "version": "1.1.4", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", + "engines": [ + "node >= 0.2.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff": { + "version": "6.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff-apply": { + "version": "5.5.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/libnpmaccess": { + "version": "8.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^11.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmdiff": { + "version": "6.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0", + "@npmcli/disparity-colors": "^3.0.0", + "@npmcli/installed-package-contents": "^2.0.2", + "binary-extensions": "^2.2.0", + "diff": "^5.1.0", + "minimatch": "^9.0.0", + "npm-package-arg": "^11.0.0", + "pacote": "^17.0.4", + "tar": "^6.1.13" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmexec": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0", + "@npmcli/run-script": "^7.0.1", + "ci-info": "^3.7.1", + "npm-package-arg": "^11.0.0", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "proc-log": "^3.0.0", + "read": "^2.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmfund": { + "version": "4.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmhook": { + "version": "10.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmorg": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpack": { + "version": "6.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0", + "@npmcli/run-script": "^7.0.1", + "npm-package-arg": "^11.0.0", + "pacote": "^17.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpublish": { + "version": "9.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ci-info": "^3.6.1", + "normalize-package-data": "^6.0.0", + "npm-package-arg": "^11.0.0", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7", + "sigstore": "^2.1.0", + "ssri": "^10.0.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmsearch": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmteam": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmversion": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.3", + "@npmcli/run-script": "^7.0.1", + "json-parse-even-better-errors": "^3.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/lru-cache": { + "version": "10.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "13.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/agent": "^2.0.0", + "cacache": "^18.0.0", + "http-cache-semantics": "^4.1.1", + "is-lambda": "^1.0.1", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/minimatch": { + "version": "9.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/minipass": { + "version": "7.0.3", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/minipass-collect": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-collect/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-fetch": { + "version": "3.0.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.0.3", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/minipass-flush": { + "version": "1.0.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-json-stream": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline": { + "version": "1.2.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized": { + "version": "1.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minizlib": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/mkdirp": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ms": { + "version": "2.1.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/mute-stream": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/negotiator": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/node-gyp": { + "version": "9.4.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^11.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^12.13 || ^14.13 || >=16" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/abbrev": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/are-we-there-yet": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache": { + "version": "17.1.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^7.7.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob": { + "version": "10.3.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch": { + "version": "9.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minipass": { + "version": "7.0.3", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/gauge": { + "version": "4.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/glob": { + "version": "7.2.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/lru-cache": { + "version": "7.18.3", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/make-fetch-happen": { + "version": "11.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minipass": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/nopt": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/npmlog": { + "version": "6.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/readable-stream": { + "version": "3.6.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/signal-exit": { + "version": "3.0.7", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/which": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/nopt": { + "version": "7.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^2.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/normalize-package-data": { + "version": "6.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^7.0.0", + "is-core-module": "^2.8.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-audit-report": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-bundled": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "6.2.0", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "11.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^7.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-packlist": { + "version": "8.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^6.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "9.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "npm-package-arg": "^11.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-profile": { + "version": "9.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "16.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "make-fetch-happen": "^13.0.0", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^11.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-user-validate": { + "version": "2.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npmlog": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^4.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^5.0.0", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/once": { + "version": "1.4.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/p-map": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/pacote": { + "version": "17.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.0", + "@npmcli/installed-package-contents": "^2.0.1", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.0", + "cacache": "^18.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^11.0.0", + "npm-packlist": "^8.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "promise-retry": "^2.0.1", + "read-package-json": "^7.0.0", + "read-package-json-fast": "^3.0.0", + "sigstore": "^2.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/parse-conflict-json": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "just-diff": "^6.0.0", + "just-diff-apply": "^5.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/path-is-absolute": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/path-key": { + "version": "3.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/path-scurry": { + "version": "1.10.1", + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/postcss-selector-parser": { + "version": "6.0.13", + "inBundle": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/proc-log": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/process": { + "version": "0.11.10", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/npm/node_modules/promise-all-reject-late": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-call-limit": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-inflight": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/promise-retry": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/promzard": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "read": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/read": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "mute-stream": "~1.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^10.2.2", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json-fast": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/readable-stream": { + "version": "4.4.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/rimraf": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "optional": true + }, + "node_modules/npm/node_modules/semver": { + "version": "7.5.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/set-blocking": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/shebang-command": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/shebang-regex": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/signal-exit": { + "version": "4.0.2", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/sigstore": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "@sigstore/sign": "^2.1.0", + "@sigstore/tuf": "^2.1.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks": { + "version": "2.7.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "7.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.2.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.3.0", + "inBundle": true, + "license": "CC-BY-3.0" + }, + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.13", + "inBundle": true, + "license": "CC0-1.0" + }, + "node_modules/npm/node_modules/ssri": { + "version": "10.0.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/string_decoder": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/npm/node_modules/string-width": { + "version": "4.2.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi": { + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/supports-color": { + "version": "9.4.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/npm/node_modules/tar": { + "version": "6.1.15", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/treeverse": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/tuf-js": { + "version": "2.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/models": "2.0.0", + "debug": "^4.3.4", + "make-fetch-happen": "^13.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-filename": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "builtins": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/walk-up-path": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/wcwidth": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/npm/node_modules/which": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/which/node_modules/isexe": { + "version": "3.1.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16" + } + }, + "node_modules/npm/node_modules/wide-align": { + "version": "1.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/npm/node_modules/wrap-ansi": { + "version": "8.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "9.2.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "5.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/yallist": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/nwsapi": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.5.tgz", + "integrity": "sha512-6xpotnECFy/og7tKSBVmUNft7J3jyXAka4XvG6AUhFWRz+Q/Ljus7znJAA3bxColfQLdS+XsjoodtJfCgeTEFQ==", + "dev": true + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.getownpropertydescriptors": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz", + "integrity": "sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==", + "dev": true, + "dependencies": { + "array.prototype.reduce": "^1.0.5", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "safe-array-concat": "^1.0.0" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", + "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "dev": true, + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", + "dev": true, + "bin": { + "opener": "bin/opener-bin.js" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/or": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/or/-/or-0.2.0.tgz", + "integrity": "sha512-BHB8VZq2isxkyRaCBZ6CZCbQBzCT+gy8LPiqdbMH1+Fd6biFj3v8ebjeYzzL51PbsApsPYnGegGTO6KLQMxxDw==", + "engines": { + "node": "*" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ora/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ora/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "dev": true, + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "dev": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "dev": true + }, + "node_modules/parse5-htmlparser2-tree-adapter": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", + "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", + "dev": true, + "dependencies": { + "parse5": "^6.0.1" + } + }, + "node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "dev": true, + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/portfinder": { + "version": "1.0.32", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.32.tgz", + "integrity": "sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==", + "dev": true, + "dependencies": { + "async": "^2.6.4", + "debug": "^3.2.7", + "mkdirp": "^0.5.6" + }, + "engines": { + "node": ">= 0.12.0" + } + }, + "node_modules/portfinder/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/postcss": { + "version": "8.4.24", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", + "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-attribute-case-insensitive": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz", + "integrity": "sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-browser-comments": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz", + "integrity": "sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "peerDependencies": { + "browserslist": ">=4", + "postcss": ">=8" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-clamp": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz", + "integrity": "sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": ">=7.6.0" + }, + "peerDependencies": { + "postcss": "^8.4.6" + } + }, + "node_modules/postcss-color-functional-notation": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz", + "integrity": "sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-color-hex-alpha": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz", + "integrity": "sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-color-rebeccapurple": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz", + "integrity": "sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", + "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", + "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-custom-media": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz", + "integrity": "sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-custom-properties": { + "version": "12.1.11", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz", + "integrity": "sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-custom-selectors": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz", + "integrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-dir-pseudo-class": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz", + "integrity": "sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-double-position-gradients": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz", + "integrity": "sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ==", + "dev": true, + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-env-function": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.6.tgz", + "integrity": "sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-flexbugs-fixes": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz", + "integrity": "sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==", + "dev": true, + "peerDependencies": { + "postcss": "^8.1.4" + } + }, + "node_modules/postcss-focus-visible": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz", + "integrity": "sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-focus-within": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz", + "integrity": "sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-font-variant": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz", + "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==", + "dev": true, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-gap-properties": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz", + "integrity": "sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg==", + "dev": true, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-image-set-function": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz", + "integrity": "sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-initial": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz", + "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==", + "dev": true, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dev": true, + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-lab-function": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz", + "integrity": "sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w==", + "dev": true, + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", + "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", + "dev": true, + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^2.1.1" + }, + "engines": { + "node": ">= 14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/postcss-loader": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", + "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==", + "dev": true, + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-loader/node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/postcss-logical": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz", + "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==", + "dev": true, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-media-minmax": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz", + "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", + "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", + "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "dev": true, + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", + "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", + "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-nested": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", + "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.11" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-nesting": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz", + "integrity": "sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA==", + "dev": true, + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-normalize": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize/-/postcss-normalize-10.0.1.tgz", + "integrity": "sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA==", + "dev": true, + "dependencies": { + "@csstools/normalize.css": "*", + "postcss-browser-comments": "^4", + "sanitize.css": "*" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "browserslist": ">= 4", + "postcss": ">= 8" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", + "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "dev": true, + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-opacity-percentage": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz", + "integrity": "sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A==", + "dev": true, + "funding": [ + { + "type": "kofi", + "url": "https://ko-fi.com/mrcgrtz" + }, + { + "type": "liberapay", + "url": "https://liberapay.com/mrcgrtz" + } + ], + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "dev": true, + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-overflow-shorthand": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz", + "integrity": "sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-page-break": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz", + "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==", + "dev": true, + "peerDependencies": { + "postcss": "^8" + } + }, + "node_modules/postcss-place": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz", + "integrity": "sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-preset-env": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz", + "integrity": "sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag==", + "dev": true, + "dependencies": { + "@csstools/postcss-cascade-layers": "^1.1.1", + "@csstools/postcss-color-function": "^1.1.1", + "@csstools/postcss-font-format-keywords": "^1.0.1", + "@csstools/postcss-hwb-function": "^1.0.2", + "@csstools/postcss-ic-unit": "^1.0.1", + "@csstools/postcss-is-pseudo-class": "^2.0.7", + "@csstools/postcss-nested-calc": "^1.0.0", + "@csstools/postcss-normalize-display-values": "^1.0.1", + "@csstools/postcss-oklab-function": "^1.1.1", + "@csstools/postcss-progressive-custom-properties": "^1.3.0", + "@csstools/postcss-stepped-value-functions": "^1.0.1", + "@csstools/postcss-text-decoration-shorthand": "^1.0.0", + "@csstools/postcss-trigonometric-functions": "^1.0.2", + "@csstools/postcss-unset-value": "^1.0.2", + "autoprefixer": "^10.4.13", + "browserslist": "^4.21.4", + "css-blank-pseudo": "^3.0.3", + "css-has-pseudo": "^3.0.4", + "css-prefers-color-scheme": "^6.0.3", + "cssdb": "^7.1.0", + "postcss-attribute-case-insensitive": "^5.0.2", + "postcss-clamp": "^4.1.0", + "postcss-color-functional-notation": "^4.2.4", + "postcss-color-hex-alpha": "^8.0.4", + "postcss-color-rebeccapurple": "^7.1.1", + "postcss-custom-media": "^8.0.2", + "postcss-custom-properties": "^12.1.10", + "postcss-custom-selectors": "^6.0.3", + "postcss-dir-pseudo-class": "^6.0.5", + "postcss-double-position-gradients": "^3.1.2", + "postcss-env-function": "^4.0.6", + "postcss-focus-visible": "^6.0.4", + "postcss-focus-within": "^5.0.4", + "postcss-font-variant": "^5.0.0", + "postcss-gap-properties": "^3.0.5", + "postcss-image-set-function": "^4.0.7", + "postcss-initial": "^4.0.1", + "postcss-lab-function": "^4.2.1", + "postcss-logical": "^5.0.4", + "postcss-media-minmax": "^5.0.0", + "postcss-nesting": "^10.2.0", + "postcss-opacity-percentage": "^1.1.2", + "postcss-overflow-shorthand": "^3.0.4", + "postcss-page-break": "^3.0.4", + "postcss-place": "^7.0.5", + "postcss-pseudo-class-any-link": "^7.1.6", + "postcss-replace-overflow-wrap": "^4.0.0", + "postcss-selector-not": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-pseudo-class-any-link": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz", + "integrity": "sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", + "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-replace-overflow-wrap": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz", + "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==", + "dev": true, + "peerDependencies": { + "postcss": "^8.0.3" + } + }, + "node_modules/postcss-selector-not": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz", + "integrity": "sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "optional": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pretty-error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", + "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", + "dev": true, + "dependencies": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/progress-webpack-plugin": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/progress-webpack-plugin/-/progress-webpack-plugin-1.0.16.tgz", + "integrity": "sha512-sdiHuuKOzELcBANHfrupYo+r99iPRyOnw15qX+rNlVUqXGfjXdH4IgxriKwG1kNJwVswKQHMdj1hYZMcb9jFaA==", + "dev": true, + "dependencies": { + "chalk": "^2.1.0", + "figures": "^2.0.0", + "log-update": "^2.3.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "peerDependencies": { + "webpack": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" + } + }, + "node_modules/promise": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", + "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", + "dev": true, + "dependencies": { + "asap": "~2.0.6" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dev": true, + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "dev": true + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", + "dev": true, + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "dev": true, + "dependencies": { + "performance-now": "^2.1.0" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dev": true, + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dev": true, + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-app-polyfill": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz", + "integrity": "sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w==", + "dev": true, + "dependencies": { + "core-js": "^3.19.2", + "object-assign": "^4.1.1", + "promise": "^8.1.0", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.9", + "whatwg-fetch": "^3.6.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-dev-utils": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", + "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-dev-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/react-dev-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/react-dev-utils/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/react-dev-utils/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/loader-utils": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", + "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", + "dev": true, + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/react-dev-utils/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/react-error-overlay": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", + "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==", + "dev": true + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/react-refresh": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", + "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-scripts": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", + "integrity": "sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.16.0", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", + "@svgr/webpack": "^5.5.0", + "babel-jest": "^27.4.2", + "babel-loader": "^8.2.3", + "babel-plugin-named-asset-import": "^0.3.8", + "babel-preset-react-app": "^10.0.1", + "bfj": "^7.0.2", + "browserslist": "^4.18.1", + "camelcase": "^6.2.1", + "case-sensitive-paths-webpack-plugin": "^2.4.0", + "css-loader": "^6.5.1", + "css-minimizer-webpack-plugin": "^3.2.0", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "eslint": "^8.3.0", + "eslint-config-react-app": "^7.0.1", + "eslint-webpack-plugin": "^3.1.1", + "file-loader": "^6.2.0", + "fs-extra": "^10.0.0", + "html-webpack-plugin": "^5.5.0", + "identity-obj-proxy": "^3.0.0", + "jest": "^27.4.3", + "jest-resolve": "^27.4.2", + "jest-watch-typeahead": "^1.0.0", + "mini-css-extract-plugin": "^2.4.5", + "postcss": "^8.4.4", + "postcss-flexbugs-fixes": "^5.0.2", + "postcss-loader": "^6.2.1", + "postcss-normalize": "^10.0.1", + "postcss-preset-env": "^7.0.1", + "prompts": "^2.4.2", + "react-app-polyfill": "^3.0.0", + "react-dev-utils": "^12.0.1", + "react-refresh": "^0.11.0", + "resolve": "^1.20.0", + "resolve-url-loader": "^4.0.0", + "sass-loader": "^12.3.0", + "semver": "^7.3.5", + "source-map-loader": "^3.0.0", + "style-loader": "^3.3.1", + "tailwindcss": "^3.0.2", + "terser-webpack-plugin": "^5.2.5", + "webpack": "^5.64.4", + "webpack-dev-server": "^4.6.0", + "webpack-manifest-plugin": "^4.0.2", + "workbox-webpack-plugin": "^6.4.1" + }, + "bin": { + "react-scripts": "bin/react-scripts.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + }, + "peerDependencies": { + "react": ">= 16", + "typescript": "^3.2.1 || ^4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/react-scripts/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/recursive-readdir": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", + "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", + "dev": true, + "dependencies": { + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true + }, + "node_modules/regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regex-parser": { + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", + "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", + "dev": true + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dev": true, + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/renderkid": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", + "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", + "dev": true, + "dependencies": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-url-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", + "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", + "dev": true, + "dependencies": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^7.0.35", + "source-map": "0.6.1" + }, + "engines": { + "node": ">=8.9" + }, + "peerDependencies": { + "rework": "1.0.1", + "rework-visit": "1.0.0" + }, + "peerDependenciesMeta": { + "rework": { + "optional": true + }, + "rework-visit": { + "optional": true + } + } + }, + "node_modules/resolve-url-loader/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/resolve-url-loader/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/resolve-url-loader/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/resolve.exports": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", + "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "2.79.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", + "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-terser": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", + "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", + "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + }, + "peerDependencies": { + "rollup": "^2.0.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/rollup-plugin-terser/node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", + "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/sanitize.css": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", + "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==", + "dev": true + }, + "node_modules/sass": { + "version": "1.63.6", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.63.6.tgz", + "integrity": "sha512-MJuxGMHzaOW7ipp+1KdELtqKbfAWbH7OLIdoSMnVe3EXPMTmxTmlaZDCTsgIpPCs3w99lLo9/zDKkOrJuT5byw==", + "dev": true, + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-loader": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", + "integrity": "sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==", + "dev": true, + "dependencies": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==", + "dev": true + }, + "node_modules/selfsigned": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", + "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", + "dev": true, + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "dev": true, + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "dev": true, + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "node_modules/serve-index/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dev": true, + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "dev": true + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dev": true, + "dependencies": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sockjs": { + "version": "0.3.24", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", + "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", + "dev": true, + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/sortablejs": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.14.0.tgz", + "integrity": "sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==", + "dev": true + }, + "node_modules/source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", + "dev": true + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-loader": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.2.tgz", + "integrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==", + "dev": true, + "dependencies": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "deprecated": "Please use @jridgewell/sourcemap-codec instead", + "dev": true + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", + "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "dev": true + }, + "node_modules/spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "dev": true, + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/stackframe": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==", + "dev": true + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-natural-compare": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", + "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==", + "dev": true + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", + "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/stringify-object": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", + "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", + "dev": true, + "dependencies": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz", + "integrity": "sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-loader": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz", + "integrity": "sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw==", + "dev": true, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/stylehacks": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", + "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/sucrase": { + "version": "3.32.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.32.0.tgz", + "integrity": "sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "7.1.6", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sucrase/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/sucrase/node_modules/glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-parser": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", + "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==", + "dev": true + }, + "node_modules/svg-tags": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", + "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", + "dev": true + }, + "node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "node_modules/tailwindcss": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz", + "integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==", + "dev": true, + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.18.2", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/tempy": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz", + "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==", + "dev": true, + "dependencies": { + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/type-fest": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", + "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terminal-link/node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terminal-link/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terser": { + "version": "5.18.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.2.tgz", + "integrity": "sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/thread-loader": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/thread-loader/-/thread-loader-3.0.4.tgz", + "integrity": "sha512-ByaL2TPb+m6yArpqQUZvP+5S1mZtXsEP7nWKKlAUTm7fCml8kB5s1uI3+eHRP2bk5mVYfRSBI7FFf+tWEyLZwA==", + "dev": true, + "dependencies": { + "json-parse-better-errors": "^1.0.2", + "loader-runner": "^4.1.0", + "loader-utils": "^2.0.0", + "neo-async": "^2.6.2", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.27.0 || ^5.0.0" + } + }, + "node_modules/thread-loader/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/thread-loader/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/throat": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", + "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==", + "dev": true + }, + "node_modules/thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toastr": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/toastr/-/toastr-2.1.4.tgz", + "integrity": "sha512-LIy77F5n+sz4tefMmFOntcJ6HL0Fv3k1TDnNmFZ0bU/GcvIIfy6eG2v7zQmMiYgaalAiUv75ttFrPn5s0gyqlA==", + "dev": true, + "dependencies": { + "jquery": ">=1.12.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "dev": true, + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true + }, + "node_modules/tryer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", + "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==", + "dev": true + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true + }, + "node_modules/ts-loader": { + "version": "9.4.4", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.4.tgz", + "integrity": "sha512-MLukxDHBl8OJ5Dk3y69IsKVFRA/6MwzEqBgh+OXMPB/OD01KQuWPFd1WAQP8a5PeSCAxfnkhiuWqfmFJzJQt9w==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/ts-loader/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ts-loader/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ts-loader/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ts-loader/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ts-loader/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-loader/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-loader/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/tslib": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz", + "integrity": "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unquote": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", + "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==", + "dev": true + }, + "node_modules/upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "dev": true, + "engines": { + "node": ">=4", + "yarn": "*" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/util.promisify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", + "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==", + "dev": true + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", + "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vite": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.7.tgz", + "integrity": "sha512-29pdXjk49xAP0QBr0xXqu2s5jiQIXNvE/xwd0vUizYT2Hzqe4BksNNoWllFVXJf4eLZ+UlVQmXfB4lWrc+t18g==", + "dev": true, + "dependencies": { + "esbuild": "^0.15.9", + "postcss": "^8.4.18", + "resolve": "^1.22.1", + "rollup": "^2.79.1" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "@types/node": ">= 14", + "less": "*", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-css-injected-by-js": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/vite-plugin-css-injected-by-js/-/vite-plugin-css-injected-by-js-2.4.0.tgz", + "integrity": "sha512-fQkJ5baPEasjjJLxHINLjXuPREO61VIDFUeUqleEBghOLfZZe/k/zrxG5b3kFZXu6JtdI11pnwtj3dh3CN9X4Q==", + "dev": true, + "peerDependencies": { + "vite": ">2.0.0-0" + } + }, + "node_modules/vue": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.3.4.tgz", + "integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==", + "dependencies": { + "@vue/compiler-dom": "3.3.4", + "@vue/compiler-sfc": "3.3.4", + "@vue/runtime-dom": "3.3.4", + "@vue/server-renderer": "3.3.4", + "@vue/shared": "3.3.4" + } + }, + "node_modules/vue-hot-reload-api": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", + "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==", + "dev": true + }, + "node_modules/vue-i18n": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-9.2.2.tgz", + "integrity": "sha512-yswpwtj89rTBhegUAv9Mu37LNznyu3NpyLQmozF3i1hYOhwpG8RjcjIFIIfnu+2MDZJGSZPXaKWvnQA71Yv9TQ==", + "dependencies": { + "@intlify/core-base": "9.2.2", + "@intlify/shared": "9.2.2", + "@intlify/vue-devtools": "9.2.2", + "@vue/devtools-api": "^6.2.1" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/vue-loader": { + "version": "17.2.2", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-17.2.2.tgz", + "integrity": "sha512-aqNvKJvnz2A/6VWeJZodAo8XLoAlVwBv+2Z6dama+LHsAF+P/xijQ+OfWrxIs0wcGSJduvdzvTuATzXbNKkpiw==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "watchpack": "^2.4.0" + }, + "peerDependencies": { + "webpack": "^4.1.0 || ^5.0.0-0" + }, + "peerDependenciesMeta": { + "@vue/compiler-sfc": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/vue-loader/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/vue-loader/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/vue-loader/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/vue-loader/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/vue-loader/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/vue-loader/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/vue-style-loader": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", + "integrity": "sha512-sFuh0xfbtpRlKfm39ss/ikqs9AbKCoXZBpHeVZ8Tx650o0k0q/YCM7FRvigtxpACezfq6af+a7JeqVTWvncqDg==", + "dev": true, + "dependencies": { + "hash-sum": "^1.0.2", + "loader-utils": "^1.0.2" + } + }, + "node_modules/vue-style-loader/node_modules/hash-sum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz", + "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==", + "dev": true + }, + "node_modules/vue-template-es2015-compiler": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz", + "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", + "dev": true + }, + "node_modules/vue-tsc": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-0.39.5.tgz", + "integrity": "sha512-jhTsrKhZkafpIeN4Cbhr1K53hNfa/oesSrlh7hUaeHyCk55VhZT6oJkwJbtqN4MYkWZIwPrm3/xTwsELuf2ocg==", + "dev": true, + "dependencies": { + "@volar/vue-language-core": "0.39.5", + "@volar/vue-typescript": "0.39.5" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": "*" + } + }, + "node_modules/vuedraggable": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-4.1.0.tgz", + "integrity": "sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==", + "dev": true, + "dependencies": { + "sortablejs": "1.14.0" + }, + "peerDependencies": { + "vue": "^3.0.1" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", + "dev": true, + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "dev": true, + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/webpack": { + "version": "5.88.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.1.tgz", + "integrity": "sha512-FROX3TxQnC/ox4N+3xQoWZzvGXSuscxR32rbzjpXgEzWudJFEJBpdlkkob2ylrv5yzzufD1zph1OoFsLtm6stQ==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-bundle-analyzer": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", + "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/webpack-bundle-analyzer/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-chain": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/webpack-chain/-/webpack-chain-6.5.1.tgz", + "integrity": "sha512-7doO/SRtLu8q5WM0s7vPKPWX580qhi0/yBHkOxNkv50f6qB76Zy9o2wRTrrPULqYTvQlVHuvbA8v+G5ayuUDsA==", + "dev": true, + "dependencies": { + "deepmerge": "^1.5.2", + "javascript-stringify": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-chain/node_modules/deepmerge": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz", + "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", + "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "dev": true, + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.15.1", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz", + "integrity": "sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==", + "dev": true, + "dependencies": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.5", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server/node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/webpack-manifest-plugin": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz", + "integrity": "sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow==", + "dev": true, + "dependencies": { + "tapable": "^2.0.0", + "webpack-sources": "^2.2.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "peerDependencies": { + "webpack": "^4.44.2 || ^5.47.0" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/webpack-sources": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", + "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", + "dev": true, + "dependencies": { + "source-list-map": "^2.0.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack-merge": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", + "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.4.6.tgz", + "integrity": "sha512-5tyDlKLqPfMqjT3Q9TAqf2YqjwmnUleZwzJi1A5qXnlBCdj2AtOJ6wAWdglTIDOPgOiOrXeBeFcsQ8+aGQ6QbA==", + "dev": true + }, + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dev": true, + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-encoding/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/whatwg-fetch": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", + "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==", + "dev": true + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/whatwg-url/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wildcard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", + "dev": true + }, + "node_modules/workbox-background-sync": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-6.6.0.tgz", + "integrity": "sha512-jkf4ZdgOJxC9u2vztxLuPT/UjlH7m/nWRQ/MgGL0v8BJHoZdVGJd18Kck+a0e55wGXdqyHO+4IQTk0685g4MUw==", + "dev": true, + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-broadcast-update": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-6.6.0.tgz", + "integrity": "sha512-nm+v6QmrIFaB/yokJmQ/93qIJ7n72NICxIwQwe5xsZiV2aI93MGGyEyzOzDPVz5THEr5rC3FJSsO3346cId64Q==", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-build": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-6.6.0.tgz", + "integrity": "sha512-Tjf+gBwOTuGyZwMz2Nk/B13Fuyeo0Q84W++bebbVsfr9iLkDSo6j6PST8tET9HYA58mlRXwlMGpyWO8ETJiXdQ==", + "dev": true, + "dependencies": { + "@apideck/better-ajv-errors": "^0.3.1", + "@babel/core": "^7.11.1", + "@babel/preset-env": "^7.11.0", + "@babel/runtime": "^7.11.2", + "@rollup/plugin-babel": "^5.2.0", + "@rollup/plugin-node-resolve": "^11.2.1", + "@rollup/plugin-replace": "^2.4.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.3", + "ajv": "^8.6.0", + "common-tags": "^1.8.0", + "fast-json-stable-stringify": "^2.1.0", + "fs-extra": "^9.0.1", + "glob": "^7.1.6", + "lodash": "^4.17.20", + "pretty-bytes": "^5.3.0", + "rollup": "^2.43.1", + "rollup-plugin-terser": "^7.0.0", + "source-map": "^0.8.0-beta.0", + "stringify-object": "^3.3.0", + "strip-comments": "^2.0.1", + "tempy": "^0.6.0", + "upath": "^1.2.0", + "workbox-background-sync": "6.6.0", + "workbox-broadcast-update": "6.6.0", + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-google-analytics": "6.6.0", + "workbox-navigation-preload": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-range-requests": "6.6.0", + "workbox-recipes": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0", + "workbox-streams": "6.6.0", + "workbox-sw": "6.6.0", + "workbox-window": "6.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/workbox-build/node_modules/@apideck/better-ajv-errors": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", + "integrity": "sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==", + "dev": true, + "dependencies": { + "json-schema": "^0.4.0", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/workbox-build/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/workbox-build/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/workbox-build/node_modules/source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "dev": true, + "dependencies": { + "whatwg-url": "^7.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/workbox-build/node_modules/tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/workbox-build/node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true + }, + "node_modules/workbox-build/node_modules/whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dev": true, + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/workbox-cacheable-response": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-6.6.0.tgz", + "integrity": "sha512-JfhJUSQDwsF1Xv3EV1vWzSsCOZn4mQ38bWEBR3LdvOxSPgB65gAM6cS2CX8rkkKHRgiLrN7Wxoyu+TuH67kHrw==", + "deprecated": "workbox-background-sync@6.6.0", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-core": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-6.6.0.tgz", + "integrity": "sha512-GDtFRF7Yg3DD859PMbPAYPeJyg5gJYXuBQAC+wyrWuuXgpfoOrIQIvFRZnQ7+czTIQjIr1DhLEGFzZanAT/3bQ==", + "dev": true + }, + "node_modules/workbox-expiration": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-6.6.0.tgz", + "integrity": "sha512-baplYXcDHbe8vAo7GYvyAmlS4f6998Jff513L4XvlzAOxcl8F620O91guoJ5EOf5qeXG4cGdNZHkkVAPouFCpw==", + "dev": true, + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-google-analytics": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-6.6.0.tgz", + "integrity": "sha512-p4DJa6OldXWd6M9zRl0H6vB9lkrmqYFkRQ2xEiNdBFp9U0LhsGO7hsBscVEyH9H2/3eZZt8c97NB2FD9U2NJ+Q==", + "dev": true, + "dependencies": { + "workbox-background-sync": "6.6.0", + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-navigation-preload": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-6.6.0.tgz", + "integrity": "sha512-utNEWG+uOfXdaZmvhshrh7KzhDu/1iMHyQOV6Aqup8Mm78D286ugu5k9MFD9SzBT5TcwgwSORVvInaXWbvKz9Q==", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-precaching": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-6.6.0.tgz", + "integrity": "sha512-eYu/7MqtRZN1IDttl/UQcSZFkHP7dnvr/X3Vn6Iw6OsPMruQHiVjjomDFCNtd8k2RdjLs0xiz9nq+t3YVBcWPw==", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-range-requests": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-6.6.0.tgz", + "integrity": "sha512-V3aICz5fLGq5DpSYEU8LxeXvsT//mRWzKrfBOIxzIdQnV/Wj7R+LyJVTczi4CQ4NwKhAaBVaSujI1cEjXW+hTw==", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-recipes": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-6.6.0.tgz", + "integrity": "sha512-TFi3kTgYw73t5tg73yPVqQC8QQjxJSeqjXRO4ouE/CeypmP2O/xqmB/ZFBBQazLTPxILUQ0b8aeh0IuxVn9a6A==", + "dev": true, + "dependencies": { + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-routing": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-6.6.0.tgz", + "integrity": "sha512-x8gdN7VDBiLC03izAZRfU+WKUXJnbqt6PG9Uh0XuPRzJPpZGLKce/FkOX95dWHRpOHWLEq8RXzjW0O+POSkKvw==", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-strategies": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-6.6.0.tgz", + "integrity": "sha512-eC07XGuINAKUWDnZeIPdRdVja4JQtTuc35TZ8SwMb1ztjp7Ddq2CJ4yqLvWzFWGlYI7CG/YGqaETntTxBGdKgQ==", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-streams": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-6.6.0.tgz", + "integrity": "sha512-rfMJLVvwuED09CnH1RnIep7L9+mj4ufkTyDPVaXPKlhi9+0czCu+SJggWCIFbPpJaAZmp2iyVGLqS3RUmY3fxg==", + "dev": true, + "dependencies": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0" + } + }, + "node_modules/workbox-sw": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-6.6.0.tgz", + "integrity": "sha512-R2IkwDokbtHUE4Kus8pKO5+VkPHD2oqTgl+XJwh4zbF1HyjAbgNmK/FneZHVU7p03XUt9ICfuGDYISWG9qV/CQ==", + "dev": true + }, + "node_modules/workbox-webpack-plugin": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.0.tgz", + "integrity": "sha512-xNZIZHalboZU66Wa7x1YkjIqEy1gTR+zPM+kjrYJzqN7iurYZBctBLISyScjhkJKYuRrZUP0iqViZTh8rS0+3A==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "^2.1.0", + "pretty-bytes": "^5.4.1", + "upath": "^1.2.0", + "webpack-sources": "^1.4.3", + "workbox-build": "6.6.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "webpack": "^4.4.0 || ^5.9.0" + } + }, + "node_modules/workbox-webpack-plugin/node_modules/webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dev": true, + "dependencies": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "node_modules/workbox-window": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-6.6.0.tgz", + "integrity": "sha512-L4N9+vka17d16geaJXXRjENLFldvkWy7JyGxElRD0JvBxvFEd8LOhr+uXCcar/NzAmIBRv9EZ+M+Qr4mOoBITw==", + "dev": true, + "dependencies": { + "@types/trusted-types": "^2.0.2", + "workbox-core": "6.6.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/dev/package.json b/dev/package.json new file mode 100644 index 000000000..1987bdf72 --- /dev/null +++ b/dev/package.json @@ -0,0 +1,53 @@ +{ + "name": "dev", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "vite", + "build": "vite build", + "serve:prod": "vite preview" + }, + "dependencies": { + "core-js": "^3.8.3", + "fos-routing": "^0.0.6", + "i": "^0.3.7", + "npm": "^10.1.0", + "or": "^0.2.0", + "vue": "^3.2.13", + "vue-i18n": "^9.2.2" + }, + "devDependencies": { + "@babel/core": "^7.12.16", + "@types/lodash": "^4.14.195", + "@types/node": "^20.3.2", + "@types/webpack-env": "^1.18.1", + "@vitejs/plugin-vue": "^3.0.3", + "@vitejs/plugin-vue-jsx": "^2.0.0", + "@vue/cli-plugin-babel": "~5.0.0", + "@vue/cli-plugin-typescript": "~5.0.0", + "@vue/cli-service": "~5.0.0", + "@vuelidate/core": "^2.0.0-alpha.44", + "@vuelidate/validators": "^2.0.0-alpha.31", + "@vueuse/core": "^10.2.1", + "autoprefixer": "^10.4.14", + "axios": "^0.27", + "dayjs": "^1.11.7", + "lodash": "^4.17.19", + "postcss": "^8.4.24", + "react-scripts": "^5.0.1", + "sass": "^1.54.8", + "tailwindcss": "^3.3.2", + "toastr": "^2.1.4", + "typescript": "^4.6.4", + "vite": "^3.2.7", + "vite-plugin-css-injected-by-js": "^2.0.3", + "vue-tsc": "^0.39.5", + "vuedraggable": "^4.1.0" + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not dead", + "not ie 11" + ] +} diff --git a/dev/postcss.config.js b/dev/postcss.config.js new file mode 100644 index 000000000..aa01c0deb --- /dev/null +++ b/dev/postcss.config.js @@ -0,0 +1,20 @@ +/* + * + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) + */ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/dev/src/Dashboard.vue b/dev/src/Dashboard.vue new file mode 100644 index 000000000..a3a148998 --- /dev/null +++ b/dev/src/Dashboard.vue @@ -0,0 +1,62 @@ + + + \ No newline at end of file diff --git a/dev/src/assets/css/fontawesome/_animated.scss b/dev/src/assets/css/fontawesome/_animated.scss new file mode 100644 index 000000000..7c7c0e173 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_animated.scss @@ -0,0 +1,20 @@ +// Animated Icons +// -------------------------- + +.#{$fa-css-prefix}-spin { + animation: fa-spin 2s infinite linear; +} + +.#{$fa-css-prefix}-pulse { + animation: fa-spin 1s infinite steps(8); +} + +@keyframes fa-spin { + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +} diff --git a/dev/src/assets/css/fontawesome/_bordered-pulled.scss b/dev/src/assets/css/fontawesome/_bordered-pulled.scss new file mode 100644 index 000000000..c8c4274c4 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_bordered-pulled.scss @@ -0,0 +1,20 @@ +// Bordered & Pulled +// ------------------------- + +.#{$fa-css-prefix}-border { + border: solid .08em $fa-border-color; + border-radius: .1em; + padding: .2em .25em .15em; +} + +.#{$fa-css-prefix}-pull-left { float: left; } +.#{$fa-css-prefix}-pull-right { float: right; } + +.#{$fa-css-prefix}, +.fas, +.far, +.fal, +.fab { + &.#{$fa-css-prefix}-pull-left { margin-right: .3em; } + &.#{$fa-css-prefix}-pull-right { margin-left: .3em; } +} diff --git a/dev/src/assets/css/fontawesome/_core.scss b/dev/src/assets/css/fontawesome/_core.scss new file mode 100644 index 000000000..cbd4cf7c1 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_core.scss @@ -0,0 +1,21 @@ +// Base Class Definition +// ------------------------- + +.#{$fa-css-prefix}, +.fas, +.far, +.fal, +.fad, +.fab { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + display: inline-block; + font-style: normal; + font-variant: normal; + text-rendering: auto; + line-height: 1; +} + +%fa-icon { + @include fa-icon; +} diff --git a/dev/src/assets/css/fontawesome/_fixed-width.scss b/dev/src/assets/css/fontawesome/_fixed-width.scss new file mode 100644 index 000000000..970641ff4 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_fixed-width.scss @@ -0,0 +1,6 @@ +// Fixed Width Icons +// ------------------------- +.#{$fa-css-prefix}-fw { + text-align: center; + width: $fa-fw-width; +} diff --git a/dev/src/assets/css/fontawesome/_icons.scss b/dev/src/assets/css/fontawesome/_icons.scss new file mode 100644 index 000000000..b5ae66b2f --- /dev/null +++ b/dev/src/assets/css/fontawesome/_icons.scss @@ -0,0 +1,2312 @@ +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen +readers do not read off random characters that represent icons */ + +.#{$fa-css-prefix}-500px:before { content: fa-content($fa-var-500px); } +.#{$fa-css-prefix}-abacus:before { content: fa-content($fa-var-abacus); } +.#{$fa-css-prefix}-accessible-icon:before { content: fa-content($fa-var-accessible-icon); } +.#{$fa-css-prefix}-accusoft:before { content: fa-content($fa-var-accusoft); } +.#{$fa-css-prefix}-acorn:before { content: fa-content($fa-var-acorn); } +.#{$fa-css-prefix}-acquisitions-incorporated:before { content: fa-content($fa-var-acquisitions-incorporated); } +.#{$fa-css-prefix}-ad:before { content: fa-content($fa-var-ad); } +.#{$fa-css-prefix}-address-book:before { content: fa-content($fa-var-address-book); } +.#{$fa-css-prefix}-address-card:before { content: fa-content($fa-var-address-card); } +.#{$fa-css-prefix}-adjust:before { content: fa-content($fa-var-adjust); } +.#{$fa-css-prefix}-adn:before { content: fa-content($fa-var-adn); } +.#{$fa-css-prefix}-adversal:before { content: fa-content($fa-var-adversal); } +.#{$fa-css-prefix}-affiliatetheme:before { content: fa-content($fa-var-affiliatetheme); } +.#{$fa-css-prefix}-air-conditioner:before { content: fa-content($fa-var-air-conditioner); } +.#{$fa-css-prefix}-air-freshener:before { content: fa-content($fa-var-air-freshener); } +.#{$fa-css-prefix}-airbnb:before { content: fa-content($fa-var-airbnb); } +.#{$fa-css-prefix}-alarm-clock:before { content: fa-content($fa-var-alarm-clock); } +.#{$fa-css-prefix}-alarm-exclamation:before { content: fa-content($fa-var-alarm-exclamation); } +.#{$fa-css-prefix}-alarm-plus:before { content: fa-content($fa-var-alarm-plus); } +.#{$fa-css-prefix}-alarm-snooze:before { content: fa-content($fa-var-alarm-snooze); } +.#{$fa-css-prefix}-album:before { content: fa-content($fa-var-album); } +.#{$fa-css-prefix}-album-collection:before { content: fa-content($fa-var-album-collection); } +.#{$fa-css-prefix}-algolia:before { content: fa-content($fa-var-algolia); } +.#{$fa-css-prefix}-alicorn:before { content: fa-content($fa-var-alicorn); } +.#{$fa-css-prefix}-alien:before { content: fa-content($fa-var-alien); } +.#{$fa-css-prefix}-alien-monster:before { content: fa-content($fa-var-alien-monster); } +.#{$fa-css-prefix}-align-center:before { content: fa-content($fa-var-align-center); } +.#{$fa-css-prefix}-align-justify:before { content: fa-content($fa-var-align-justify); } +.#{$fa-css-prefix}-align-left:before { content: fa-content($fa-var-align-left); } +.#{$fa-css-prefix}-align-right:before { content: fa-content($fa-var-align-right); } +.#{$fa-css-prefix}-align-slash:before { content: fa-content($fa-var-align-slash); } +.#{$fa-css-prefix}-alipay:before { content: fa-content($fa-var-alipay); } +.#{$fa-css-prefix}-allergies:before { content: fa-content($fa-var-allergies); } +.#{$fa-css-prefix}-amazon:before { content: fa-content($fa-var-amazon); } +.#{$fa-css-prefix}-amazon-pay:before { content: fa-content($fa-var-amazon-pay); } +.#{$fa-css-prefix}-ambulance:before { content: fa-content($fa-var-ambulance); } +.#{$fa-css-prefix}-american-sign-language-interpreting:before { content: fa-content($fa-var-american-sign-language-interpreting); } +.#{$fa-css-prefix}-amilia:before { content: fa-content($fa-var-amilia); } +.#{$fa-css-prefix}-amp-guitar:before { content: fa-content($fa-var-amp-guitar); } +.#{$fa-css-prefix}-analytics:before { content: fa-content($fa-var-analytics); } +.#{$fa-css-prefix}-anchor:before { content: fa-content($fa-var-anchor); } +.#{$fa-css-prefix}-android:before { content: fa-content($fa-var-android); } +.#{$fa-css-prefix}-angel:before { content: fa-content($fa-var-angel); } +.#{$fa-css-prefix}-angellist:before { content: fa-content($fa-var-angellist); } +.#{$fa-css-prefix}-angle-double-down:before { content: fa-content($fa-var-angle-double-down); } +.#{$fa-css-prefix}-angle-double-left:before { content: fa-content($fa-var-angle-double-left); } +.#{$fa-css-prefix}-angle-double-right:before { content: fa-content($fa-var-angle-double-right); } +.#{$fa-css-prefix}-angle-double-up:before { content: fa-content($fa-var-angle-double-up); } +.#{$fa-css-prefix}-angle-down:before { content: fa-content($fa-var-angle-down); } +.#{$fa-css-prefix}-angle-left:before { content: fa-content($fa-var-angle-left); } +.#{$fa-css-prefix}-angle-right:before { content: fa-content($fa-var-angle-right); } +.#{$fa-css-prefix}-angle-up:before { content: fa-content($fa-var-angle-up); } +.#{$fa-css-prefix}-angry:before { content: fa-content($fa-var-angry); } +.#{$fa-css-prefix}-angrycreative:before { content: fa-content($fa-var-angrycreative); } +.#{$fa-css-prefix}-angular:before { content: fa-content($fa-var-angular); } +.#{$fa-css-prefix}-ankh:before { content: fa-content($fa-var-ankh); } +.#{$fa-css-prefix}-app-store:before { content: fa-content($fa-var-app-store); } +.#{$fa-css-prefix}-app-store-ios:before { content: fa-content($fa-var-app-store-ios); } +.#{$fa-css-prefix}-apper:before { content: fa-content($fa-var-apper); } +.#{$fa-css-prefix}-apple:before { content: fa-content($fa-var-apple); } +.#{$fa-css-prefix}-apple-alt:before { content: fa-content($fa-var-apple-alt); } +.#{$fa-css-prefix}-apple-crate:before { content: fa-content($fa-var-apple-crate); } +.#{$fa-css-prefix}-apple-pay:before { content: fa-content($fa-var-apple-pay); } +.#{$fa-css-prefix}-archive:before { content: fa-content($fa-var-archive); } +.#{$fa-css-prefix}-archway:before { content: fa-content($fa-var-archway); } +.#{$fa-css-prefix}-arrow-alt-circle-down:before { content: fa-content($fa-var-arrow-alt-circle-down); } +.#{$fa-css-prefix}-arrow-alt-circle-left:before { content: fa-content($fa-var-arrow-alt-circle-left); } +.#{$fa-css-prefix}-arrow-alt-circle-right:before { content: fa-content($fa-var-arrow-alt-circle-right); } +.#{$fa-css-prefix}-arrow-alt-circle-up:before { content: fa-content($fa-var-arrow-alt-circle-up); } +.#{$fa-css-prefix}-arrow-alt-down:before { content: fa-content($fa-var-arrow-alt-down); } +.#{$fa-css-prefix}-arrow-alt-from-bottom:before { content: fa-content($fa-var-arrow-alt-from-bottom); } +.#{$fa-css-prefix}-arrow-alt-from-left:before { content: fa-content($fa-var-arrow-alt-from-left); } +.#{$fa-css-prefix}-arrow-alt-from-right:before { content: fa-content($fa-var-arrow-alt-from-right); } +.#{$fa-css-prefix}-arrow-alt-from-top:before { content: fa-content($fa-var-arrow-alt-from-top); } +.#{$fa-css-prefix}-arrow-alt-left:before { content: fa-content($fa-var-arrow-alt-left); } +.#{$fa-css-prefix}-arrow-alt-right:before { content: fa-content($fa-var-arrow-alt-right); } +.#{$fa-css-prefix}-arrow-alt-square-down:before { content: fa-content($fa-var-arrow-alt-square-down); } +.#{$fa-css-prefix}-arrow-alt-square-left:before { content: fa-content($fa-var-arrow-alt-square-left); } +.#{$fa-css-prefix}-arrow-alt-square-right:before { content: fa-content($fa-var-arrow-alt-square-right); } +.#{$fa-css-prefix}-arrow-alt-square-up:before { content: fa-content($fa-var-arrow-alt-square-up); } +.#{$fa-css-prefix}-arrow-alt-to-bottom:before { content: fa-content($fa-var-arrow-alt-to-bottom); } +.#{$fa-css-prefix}-arrow-alt-to-left:before { content: fa-content($fa-var-arrow-alt-to-left); } +.#{$fa-css-prefix}-arrow-alt-to-right:before { content: fa-content($fa-var-arrow-alt-to-right); } +.#{$fa-css-prefix}-arrow-alt-to-top:before { content: fa-content($fa-var-arrow-alt-to-top); } +.#{$fa-css-prefix}-arrow-alt-up:before { content: fa-content($fa-var-arrow-alt-up); } +.#{$fa-css-prefix}-arrow-circle-down:before { content: fa-content($fa-var-arrow-circle-down); } +.#{$fa-css-prefix}-arrow-circle-left:before { content: fa-content($fa-var-arrow-circle-left); } +.#{$fa-css-prefix}-arrow-circle-right:before { content: fa-content($fa-var-arrow-circle-right); } +.#{$fa-css-prefix}-arrow-circle-up:before { content: fa-content($fa-var-arrow-circle-up); } +.#{$fa-css-prefix}-arrow-down:before { content: fa-content($fa-var-arrow-down); } +.#{$fa-css-prefix}-arrow-from-bottom:before { content: fa-content($fa-var-arrow-from-bottom); } +.#{$fa-css-prefix}-arrow-from-left:before { content: fa-content($fa-var-arrow-from-left); } +.#{$fa-css-prefix}-arrow-from-right:before { content: fa-content($fa-var-arrow-from-right); } +.#{$fa-css-prefix}-arrow-from-top:before { content: fa-content($fa-var-arrow-from-top); } +.#{$fa-css-prefix}-arrow-left:before { content: fa-content($fa-var-arrow-left); } +.#{$fa-css-prefix}-arrow-right:before { content: fa-content($fa-var-arrow-right); } +.#{$fa-css-prefix}-arrow-square-down:before { content: fa-content($fa-var-arrow-square-down); } +.#{$fa-css-prefix}-arrow-square-left:before { content: fa-content($fa-var-arrow-square-left); } +.#{$fa-css-prefix}-arrow-square-right:before { content: fa-content($fa-var-arrow-square-right); } +.#{$fa-css-prefix}-arrow-square-up:before { content: fa-content($fa-var-arrow-square-up); } +.#{$fa-css-prefix}-arrow-to-bottom:before { content: fa-content($fa-var-arrow-to-bottom); } +.#{$fa-css-prefix}-arrow-to-left:before { content: fa-content($fa-var-arrow-to-left); } +.#{$fa-css-prefix}-arrow-to-right:before { content: fa-content($fa-var-arrow-to-right); } +.#{$fa-css-prefix}-arrow-to-top:before { content: fa-content($fa-var-arrow-to-top); } +.#{$fa-css-prefix}-arrow-up:before { content: fa-content($fa-var-arrow-up); } +.#{$fa-css-prefix}-arrows:before { content: fa-content($fa-var-arrows); } +.#{$fa-css-prefix}-arrows-alt:before { content: fa-content($fa-var-arrows-alt); } +.#{$fa-css-prefix}-arrows-alt-h:before { content: fa-content($fa-var-arrows-alt-h); } +.#{$fa-css-prefix}-arrows-alt-v:before { content: fa-content($fa-var-arrows-alt-v); } +.#{$fa-css-prefix}-arrows-h:before { content: fa-content($fa-var-arrows-h); } +.#{$fa-css-prefix}-arrows-v:before { content: fa-content($fa-var-arrows-v); } +.#{$fa-css-prefix}-artstation:before { content: fa-content($fa-var-artstation); } +.#{$fa-css-prefix}-assistive-listening-systems:before { content: fa-content($fa-var-assistive-listening-systems); } +.#{$fa-css-prefix}-asterisk:before { content: fa-content($fa-var-asterisk); } +.#{$fa-css-prefix}-asymmetrik:before { content: fa-content($fa-var-asymmetrik); } +.#{$fa-css-prefix}-at:before { content: fa-content($fa-var-at); } +.#{$fa-css-prefix}-atlas:before { content: fa-content($fa-var-atlas); } +.#{$fa-css-prefix}-atlassian:before { content: fa-content($fa-var-atlassian); } +.#{$fa-css-prefix}-atom:before { content: fa-content($fa-var-atom); } +.#{$fa-css-prefix}-atom-alt:before { content: fa-content($fa-var-atom-alt); } +.#{$fa-css-prefix}-audible:before { content: fa-content($fa-var-audible); } +.#{$fa-css-prefix}-audio-description:before { content: fa-content($fa-var-audio-description); } +.#{$fa-css-prefix}-autoprefixer:before { content: fa-content($fa-var-autoprefixer); } +.#{$fa-css-prefix}-avianex:before { content: fa-content($fa-var-avianex); } +.#{$fa-css-prefix}-aviato:before { content: fa-content($fa-var-aviato); } +.#{$fa-css-prefix}-award:before { content: fa-content($fa-var-award); } +.#{$fa-css-prefix}-aws:before { content: fa-content($fa-var-aws); } +.#{$fa-css-prefix}-axe:before { content: fa-content($fa-var-axe); } +.#{$fa-css-prefix}-axe-battle:before { content: fa-content($fa-var-axe-battle); } +.#{$fa-css-prefix}-baby:before { content: fa-content($fa-var-baby); } +.#{$fa-css-prefix}-baby-carriage:before { content: fa-content($fa-var-baby-carriage); } +.#{$fa-css-prefix}-backpack:before { content: fa-content($fa-var-backpack); } +.#{$fa-css-prefix}-backspace:before { content: fa-content($fa-var-backspace); } +.#{$fa-css-prefix}-backward:before { content: fa-content($fa-var-backward); } +.#{$fa-css-prefix}-bacon:before { content: fa-content($fa-var-bacon); } +.#{$fa-css-prefix}-bacteria:before { content: fa-content($fa-var-bacteria); } +.#{$fa-css-prefix}-bacterium:before { content: fa-content($fa-var-bacterium); } +.#{$fa-css-prefix}-badge:before { content: fa-content($fa-var-badge); } +.#{$fa-css-prefix}-badge-check:before { content: fa-content($fa-var-badge-check); } +.#{$fa-css-prefix}-badge-dollar:before { content: fa-content($fa-var-badge-dollar); } +.#{$fa-css-prefix}-badge-percent:before { content: fa-content($fa-var-badge-percent); } +.#{$fa-css-prefix}-badge-sheriff:before { content: fa-content($fa-var-badge-sheriff); } +.#{$fa-css-prefix}-badger-honey:before { content: fa-content($fa-var-badger-honey); } +.#{$fa-css-prefix}-bags-shopping:before { content: fa-content($fa-var-bags-shopping); } +.#{$fa-css-prefix}-bahai:before { content: fa-content($fa-var-bahai); } +.#{$fa-css-prefix}-balance-scale:before { content: fa-content($fa-var-balance-scale); } +.#{$fa-css-prefix}-balance-scale-left:before { content: fa-content($fa-var-balance-scale-left); } +.#{$fa-css-prefix}-balance-scale-right:before { content: fa-content($fa-var-balance-scale-right); } +.#{$fa-css-prefix}-ball-pile:before { content: fa-content($fa-var-ball-pile); } +.#{$fa-css-prefix}-ballot:before { content: fa-content($fa-var-ballot); } +.#{$fa-css-prefix}-ballot-check:before { content: fa-content($fa-var-ballot-check); } +.#{$fa-css-prefix}-ban:before { content: fa-content($fa-var-ban); } +.#{$fa-css-prefix}-band-aid:before { content: fa-content($fa-var-band-aid); } +.#{$fa-css-prefix}-bandcamp:before { content: fa-content($fa-var-bandcamp); } +.#{$fa-css-prefix}-banjo:before { content: fa-content($fa-var-banjo); } +.#{$fa-css-prefix}-barcode:before { content: fa-content($fa-var-barcode); } +.#{$fa-css-prefix}-barcode-alt:before { content: fa-content($fa-var-barcode-alt); } +.#{$fa-css-prefix}-barcode-read:before { content: fa-content($fa-var-barcode-read); } +.#{$fa-css-prefix}-barcode-scan:before { content: fa-content($fa-var-barcode-scan); } +.#{$fa-css-prefix}-bars:before { content: fa-content($fa-var-bars); } +.#{$fa-css-prefix}-baseball:before { content: fa-content($fa-var-baseball); } +.#{$fa-css-prefix}-baseball-ball:before { content: fa-content($fa-var-baseball-ball); } +.#{$fa-css-prefix}-basketball-ball:before { content: fa-content($fa-var-basketball-ball); } +.#{$fa-css-prefix}-basketball-hoop:before { content: fa-content($fa-var-basketball-hoop); } +.#{$fa-css-prefix}-bat:before { content: fa-content($fa-var-bat); } +.#{$fa-css-prefix}-bath:before { content: fa-content($fa-var-bath); } +.#{$fa-css-prefix}-battery-bolt:before { content: fa-content($fa-var-battery-bolt); } +.#{$fa-css-prefix}-battery-empty:before { content: fa-content($fa-var-battery-empty); } +.#{$fa-css-prefix}-battery-full:before { content: fa-content($fa-var-battery-full); } +.#{$fa-css-prefix}-battery-half:before { content: fa-content($fa-var-battery-half); } +.#{$fa-css-prefix}-battery-quarter:before { content: fa-content($fa-var-battery-quarter); } +.#{$fa-css-prefix}-battery-slash:before { content: fa-content($fa-var-battery-slash); } +.#{$fa-css-prefix}-battery-three-quarters:before { content: fa-content($fa-var-battery-three-quarters); } +.#{$fa-css-prefix}-battle-net:before { content: fa-content($fa-var-battle-net); } +.#{$fa-css-prefix}-bed:before { content: fa-content($fa-var-bed); } +.#{$fa-css-prefix}-bed-alt:before { content: fa-content($fa-var-bed-alt); } +.#{$fa-css-prefix}-bed-bunk:before { content: fa-content($fa-var-bed-bunk); } +.#{$fa-css-prefix}-bed-empty:before { content: fa-content($fa-var-bed-empty); } +.#{$fa-css-prefix}-beer:before { content: fa-content($fa-var-beer); } +.#{$fa-css-prefix}-behance:before { content: fa-content($fa-var-behance); } +.#{$fa-css-prefix}-behance-square:before { content: fa-content($fa-var-behance-square); } +.#{$fa-css-prefix}-bell:before { content: fa-content($fa-var-bell); } +.#{$fa-css-prefix}-bell-exclamation:before { content: fa-content($fa-var-bell-exclamation); } +.#{$fa-css-prefix}-bell-on:before { content: fa-content($fa-var-bell-on); } +.#{$fa-css-prefix}-bell-plus:before { content: fa-content($fa-var-bell-plus); } +.#{$fa-css-prefix}-bell-school:before { content: fa-content($fa-var-bell-school); } +.#{$fa-css-prefix}-bell-school-slash:before { content: fa-content($fa-var-bell-school-slash); } +.#{$fa-css-prefix}-bell-slash:before { content: fa-content($fa-var-bell-slash); } +.#{$fa-css-prefix}-bells:before { content: fa-content($fa-var-bells); } +.#{$fa-css-prefix}-betamax:before { content: fa-content($fa-var-betamax); } +.#{$fa-css-prefix}-bezier-curve:before { content: fa-content($fa-var-bezier-curve); } +.#{$fa-css-prefix}-bible:before { content: fa-content($fa-var-bible); } +.#{$fa-css-prefix}-bicycle:before { content: fa-content($fa-var-bicycle); } +.#{$fa-css-prefix}-biking:before { content: fa-content($fa-var-biking); } +.#{$fa-css-prefix}-biking-mountain:before { content: fa-content($fa-var-biking-mountain); } +.#{$fa-css-prefix}-bimobject:before { content: fa-content($fa-var-bimobject); } +.#{$fa-css-prefix}-binoculars:before { content: fa-content($fa-var-binoculars); } +.#{$fa-css-prefix}-biohazard:before { content: fa-content($fa-var-biohazard); } +.#{$fa-css-prefix}-birthday-cake:before { content: fa-content($fa-var-birthday-cake); } +.#{$fa-css-prefix}-bitbucket:before { content: fa-content($fa-var-bitbucket); } +.#{$fa-css-prefix}-bitcoin:before { content: fa-content($fa-var-bitcoin); } +.#{$fa-css-prefix}-bity:before { content: fa-content($fa-var-bity); } +.#{$fa-css-prefix}-black-tie:before { content: fa-content($fa-var-black-tie); } +.#{$fa-css-prefix}-blackberry:before { content: fa-content($fa-var-blackberry); } +.#{$fa-css-prefix}-blanket:before { content: fa-content($fa-var-blanket); } +.#{$fa-css-prefix}-blender:before { content: fa-content($fa-var-blender); } +.#{$fa-css-prefix}-blender-phone:before { content: fa-content($fa-var-blender-phone); } +.#{$fa-css-prefix}-blind:before { content: fa-content($fa-var-blind); } +.#{$fa-css-prefix}-blinds:before { content: fa-content($fa-var-blinds); } +.#{$fa-css-prefix}-blinds-open:before { content: fa-content($fa-var-blinds-open); } +.#{$fa-css-prefix}-blinds-raised:before { content: fa-content($fa-var-blinds-raised); } +.#{$fa-css-prefix}-blog:before { content: fa-content($fa-var-blog); } +.#{$fa-css-prefix}-blogger:before { content: fa-content($fa-var-blogger); } +.#{$fa-css-prefix}-blogger-b:before { content: fa-content($fa-var-blogger-b); } +.#{$fa-css-prefix}-bluetooth:before { content: fa-content($fa-var-bluetooth); } +.#{$fa-css-prefix}-bluetooth-b:before { content: fa-content($fa-var-bluetooth-b); } +.#{$fa-css-prefix}-bold:before { content: fa-content($fa-var-bold); } +.#{$fa-css-prefix}-bolt:before { content: fa-content($fa-var-bolt); } +.#{$fa-css-prefix}-bomb:before { content: fa-content($fa-var-bomb); } +.#{$fa-css-prefix}-bone:before { content: fa-content($fa-var-bone); } +.#{$fa-css-prefix}-bone-break:before { content: fa-content($fa-var-bone-break); } +.#{$fa-css-prefix}-bong:before { content: fa-content($fa-var-bong); } +.#{$fa-css-prefix}-book:before { content: fa-content($fa-var-book); } +.#{$fa-css-prefix}-book-alt:before { content: fa-content($fa-var-book-alt); } +.#{$fa-css-prefix}-book-dead:before { content: fa-content($fa-var-book-dead); } +.#{$fa-css-prefix}-book-heart:before { content: fa-content($fa-var-book-heart); } +.#{$fa-css-prefix}-book-medical:before { content: fa-content($fa-var-book-medical); } +.#{$fa-css-prefix}-book-open:before { content: fa-content($fa-var-book-open); } +.#{$fa-css-prefix}-book-reader:before { content: fa-content($fa-var-book-reader); } +.#{$fa-css-prefix}-book-spells:before { content: fa-content($fa-var-book-spells); } +.#{$fa-css-prefix}-book-user:before { content: fa-content($fa-var-book-user); } +.#{$fa-css-prefix}-bookmark:before { content: fa-content($fa-var-bookmark); } +.#{$fa-css-prefix}-books:before { content: fa-content($fa-var-books); } +.#{$fa-css-prefix}-books-medical:before { content: fa-content($fa-var-books-medical); } +.#{$fa-css-prefix}-boombox:before { content: fa-content($fa-var-boombox); } +.#{$fa-css-prefix}-boot:before { content: fa-content($fa-var-boot); } +.#{$fa-css-prefix}-booth-curtain:before { content: fa-content($fa-var-booth-curtain); } +.#{$fa-css-prefix}-bootstrap:before { content: fa-content($fa-var-bootstrap); } +.#{$fa-css-prefix}-border-all:before { content: fa-content($fa-var-border-all); } +.#{$fa-css-prefix}-border-bottom:before { content: fa-content($fa-var-border-bottom); } +.#{$fa-css-prefix}-border-center-h:before { content: fa-content($fa-var-border-center-h); } +.#{$fa-css-prefix}-border-center-v:before { content: fa-content($fa-var-border-center-v); } +.#{$fa-css-prefix}-border-inner:before { content: fa-content($fa-var-border-inner); } +.#{$fa-css-prefix}-border-left:before { content: fa-content($fa-var-border-left); } +.#{$fa-css-prefix}-border-none:before { content: fa-content($fa-var-border-none); } +.#{$fa-css-prefix}-border-outer:before { content: fa-content($fa-var-border-outer); } +.#{$fa-css-prefix}-border-right:before { content: fa-content($fa-var-border-right); } +.#{$fa-css-prefix}-border-style:before { content: fa-content($fa-var-border-style); } +.#{$fa-css-prefix}-border-style-alt:before { content: fa-content($fa-var-border-style-alt); } +.#{$fa-css-prefix}-border-top:before { content: fa-content($fa-var-border-top); } +.#{$fa-css-prefix}-bow-arrow:before { content: fa-content($fa-var-bow-arrow); } +.#{$fa-css-prefix}-bowling-ball:before { content: fa-content($fa-var-bowling-ball); } +.#{$fa-css-prefix}-bowling-pins:before { content: fa-content($fa-var-bowling-pins); } +.#{$fa-css-prefix}-box:before { content: fa-content($fa-var-box); } +.#{$fa-css-prefix}-box-alt:before { content: fa-content($fa-var-box-alt); } +.#{$fa-css-prefix}-box-ballot:before { content: fa-content($fa-var-box-ballot); } +.#{$fa-css-prefix}-box-check:before { content: fa-content($fa-var-box-check); } +.#{$fa-css-prefix}-box-fragile:before { content: fa-content($fa-var-box-fragile); } +.#{$fa-css-prefix}-box-full:before { content: fa-content($fa-var-box-full); } +.#{$fa-css-prefix}-box-heart:before { content: fa-content($fa-var-box-heart); } +.#{$fa-css-prefix}-box-open:before { content: fa-content($fa-var-box-open); } +.#{$fa-css-prefix}-box-tissue:before { content: fa-content($fa-var-box-tissue); } +.#{$fa-css-prefix}-box-up:before { content: fa-content($fa-var-box-up); } +.#{$fa-css-prefix}-box-usd:before { content: fa-content($fa-var-box-usd); } +.#{$fa-css-prefix}-boxes:before { content: fa-content($fa-var-boxes); } +.#{$fa-css-prefix}-boxes-alt:before { content: fa-content($fa-var-boxes-alt); } +.#{$fa-css-prefix}-boxing-glove:before { content: fa-content($fa-var-boxing-glove); } +.#{$fa-css-prefix}-brackets:before { content: fa-content($fa-var-brackets); } +.#{$fa-css-prefix}-brackets-curly:before { content: fa-content($fa-var-brackets-curly); } +.#{$fa-css-prefix}-braille:before { content: fa-content($fa-var-braille); } +.#{$fa-css-prefix}-brain:before { content: fa-content($fa-var-brain); } +.#{$fa-css-prefix}-bread-loaf:before { content: fa-content($fa-var-bread-loaf); } +.#{$fa-css-prefix}-bread-slice:before { content: fa-content($fa-var-bread-slice); } +.#{$fa-css-prefix}-briefcase:before { content: fa-content($fa-var-briefcase); } +.#{$fa-css-prefix}-briefcase-medical:before { content: fa-content($fa-var-briefcase-medical); } +.#{$fa-css-prefix}-bring-forward:before { content: fa-content($fa-var-bring-forward); } +.#{$fa-css-prefix}-bring-front:before { content: fa-content($fa-var-bring-front); } +.#{$fa-css-prefix}-broadcast-tower:before { content: fa-content($fa-var-broadcast-tower); } +.#{$fa-css-prefix}-broom:before { content: fa-content($fa-var-broom); } +.#{$fa-css-prefix}-browser:before { content: fa-content($fa-var-browser); } +.#{$fa-css-prefix}-brush:before { content: fa-content($fa-var-brush); } +.#{$fa-css-prefix}-btc:before { content: fa-content($fa-var-btc); } +.#{$fa-css-prefix}-buffer:before { content: fa-content($fa-var-buffer); } +.#{$fa-css-prefix}-bug:before { content: fa-content($fa-var-bug); } +.#{$fa-css-prefix}-building:before { content: fa-content($fa-var-building); } +.#{$fa-css-prefix}-bullhorn:before { content: fa-content($fa-var-bullhorn); } +.#{$fa-css-prefix}-bullseye:before { content: fa-content($fa-var-bullseye); } +.#{$fa-css-prefix}-bullseye-arrow:before { content: fa-content($fa-var-bullseye-arrow); } +.#{$fa-css-prefix}-bullseye-pointer:before { content: fa-content($fa-var-bullseye-pointer); } +.#{$fa-css-prefix}-burger-soda:before { content: fa-content($fa-var-burger-soda); } +.#{$fa-css-prefix}-burn:before { content: fa-content($fa-var-burn); } +.#{$fa-css-prefix}-buromobelexperte:before { content: fa-content($fa-var-buromobelexperte); } +.#{$fa-css-prefix}-burrito:before { content: fa-content($fa-var-burrito); } +.#{$fa-css-prefix}-bus:before { content: fa-content($fa-var-bus); } +.#{$fa-css-prefix}-bus-alt:before { content: fa-content($fa-var-bus-alt); } +.#{$fa-css-prefix}-bus-school:before { content: fa-content($fa-var-bus-school); } +.#{$fa-css-prefix}-business-time:before { content: fa-content($fa-var-business-time); } +.#{$fa-css-prefix}-buy-n-large:before { content: fa-content($fa-var-buy-n-large); } +.#{$fa-css-prefix}-buysellads:before { content: fa-content($fa-var-buysellads); } +.#{$fa-css-prefix}-cabinet-filing:before { content: fa-content($fa-var-cabinet-filing); } +.#{$fa-css-prefix}-cactus:before { content: fa-content($fa-var-cactus); } +.#{$fa-css-prefix}-calculator:before { content: fa-content($fa-var-calculator); } +.#{$fa-css-prefix}-calculator-alt:before { content: fa-content($fa-var-calculator-alt); } +.#{$fa-css-prefix}-calendar:before { content: fa-content($fa-var-calendar); } +.#{$fa-css-prefix}-calendar-alt:before { content: fa-content($fa-var-calendar-alt); } +.#{$fa-css-prefix}-calendar-check:before { content: fa-content($fa-var-calendar-check); } +.#{$fa-css-prefix}-calendar-day:before { content: fa-content($fa-var-calendar-day); } +.#{$fa-css-prefix}-calendar-edit:before { content: fa-content($fa-var-calendar-edit); } +.#{$fa-css-prefix}-calendar-exclamation:before { content: fa-content($fa-var-calendar-exclamation); } +.#{$fa-css-prefix}-calendar-minus:before { content: fa-content($fa-var-calendar-minus); } +.#{$fa-css-prefix}-calendar-plus:before { content: fa-content($fa-var-calendar-plus); } +.#{$fa-css-prefix}-calendar-star:before { content: fa-content($fa-var-calendar-star); } +.#{$fa-css-prefix}-calendar-times:before { content: fa-content($fa-var-calendar-times); } +.#{$fa-css-prefix}-calendar-week:before { content: fa-content($fa-var-calendar-week); } +.#{$fa-css-prefix}-camcorder:before { content: fa-content($fa-var-camcorder); } +.#{$fa-css-prefix}-camera:before { content: fa-content($fa-var-camera); } +.#{$fa-css-prefix}-camera-alt:before { content: fa-content($fa-var-camera-alt); } +.#{$fa-css-prefix}-camera-home:before { content: fa-content($fa-var-camera-home); } +.#{$fa-css-prefix}-camera-movie:before { content: fa-content($fa-var-camera-movie); } +.#{$fa-css-prefix}-camera-polaroid:before { content: fa-content($fa-var-camera-polaroid); } +.#{$fa-css-prefix}-camera-retro:before { content: fa-content($fa-var-camera-retro); } +.#{$fa-css-prefix}-campfire:before { content: fa-content($fa-var-campfire); } +.#{$fa-css-prefix}-campground:before { content: fa-content($fa-var-campground); } +.#{$fa-css-prefix}-canadian-maple-leaf:before { content: fa-content($fa-var-canadian-maple-leaf); } +.#{$fa-css-prefix}-candle-holder:before { content: fa-content($fa-var-candle-holder); } +.#{$fa-css-prefix}-candy-cane:before { content: fa-content($fa-var-candy-cane); } +.#{$fa-css-prefix}-candy-corn:before { content: fa-content($fa-var-candy-corn); } +.#{$fa-css-prefix}-cannabis:before { content: fa-content($fa-var-cannabis); } +.#{$fa-css-prefix}-capsules:before { content: fa-content($fa-var-capsules); } +.#{$fa-css-prefix}-car:before { content: fa-content($fa-var-car); } +.#{$fa-css-prefix}-car-alt:before { content: fa-content($fa-var-car-alt); } +.#{$fa-css-prefix}-car-battery:before { content: fa-content($fa-var-car-battery); } +.#{$fa-css-prefix}-car-building:before { content: fa-content($fa-var-car-building); } +.#{$fa-css-prefix}-car-bump:before { content: fa-content($fa-var-car-bump); } +.#{$fa-css-prefix}-car-bus:before { content: fa-content($fa-var-car-bus); } +.#{$fa-css-prefix}-car-crash:before { content: fa-content($fa-var-car-crash); } +.#{$fa-css-prefix}-car-garage:before { content: fa-content($fa-var-car-garage); } +.#{$fa-css-prefix}-car-mechanic:before { content: fa-content($fa-var-car-mechanic); } +.#{$fa-css-prefix}-car-side:before { content: fa-content($fa-var-car-side); } +.#{$fa-css-prefix}-car-tilt:before { content: fa-content($fa-var-car-tilt); } +.#{$fa-css-prefix}-car-wash:before { content: fa-content($fa-var-car-wash); } +.#{$fa-css-prefix}-caravan:before { content: fa-content($fa-var-caravan); } +.#{$fa-css-prefix}-caravan-alt:before { content: fa-content($fa-var-caravan-alt); } +.#{$fa-css-prefix}-caret-circle-down:before { content: fa-content($fa-var-caret-circle-down); } +.#{$fa-css-prefix}-caret-circle-left:before { content: fa-content($fa-var-caret-circle-left); } +.#{$fa-css-prefix}-caret-circle-right:before { content: fa-content($fa-var-caret-circle-right); } +.#{$fa-css-prefix}-caret-circle-up:before { content: fa-content($fa-var-caret-circle-up); } +.#{$fa-css-prefix}-caret-down:before { content: fa-content($fa-var-caret-down); } +.#{$fa-css-prefix}-caret-left:before { content: fa-content($fa-var-caret-left); } +.#{$fa-css-prefix}-caret-right:before { content: fa-content($fa-var-caret-right); } +.#{$fa-css-prefix}-caret-square-down:before { content: fa-content($fa-var-caret-square-down); } +.#{$fa-css-prefix}-caret-square-left:before { content: fa-content($fa-var-caret-square-left); } +.#{$fa-css-prefix}-caret-square-right:before { content: fa-content($fa-var-caret-square-right); } +.#{$fa-css-prefix}-caret-square-up:before { content: fa-content($fa-var-caret-square-up); } +.#{$fa-css-prefix}-caret-up:before { content: fa-content($fa-var-caret-up); } +.#{$fa-css-prefix}-carrot:before { content: fa-content($fa-var-carrot); } +.#{$fa-css-prefix}-cars:before { content: fa-content($fa-var-cars); } +.#{$fa-css-prefix}-cart-arrow-down:before { content: fa-content($fa-var-cart-arrow-down); } +.#{$fa-css-prefix}-cart-plus:before { content: fa-content($fa-var-cart-plus); } +.#{$fa-css-prefix}-cash-register:before { content: fa-content($fa-var-cash-register); } +.#{$fa-css-prefix}-cassette-tape:before { content: fa-content($fa-var-cassette-tape); } +.#{$fa-css-prefix}-cat:before { content: fa-content($fa-var-cat); } +.#{$fa-css-prefix}-cat-space:before { content: fa-content($fa-var-cat-space); } +.#{$fa-css-prefix}-cauldron:before { content: fa-content($fa-var-cauldron); } +.#{$fa-css-prefix}-cc-amazon-pay:before { content: fa-content($fa-var-cc-amazon-pay); } +.#{$fa-css-prefix}-cc-amex:before { content: fa-content($fa-var-cc-amex); } +.#{$fa-css-prefix}-cc-apple-pay:before { content: fa-content($fa-var-cc-apple-pay); } +.#{$fa-css-prefix}-cc-diners-club:before { content: fa-content($fa-var-cc-diners-club); } +.#{$fa-css-prefix}-cc-discover:before { content: fa-content($fa-var-cc-discover); } +.#{$fa-css-prefix}-cc-jcb:before { content: fa-content($fa-var-cc-jcb); } +.#{$fa-css-prefix}-cc-mastercard:before { content: fa-content($fa-var-cc-mastercard); } +.#{$fa-css-prefix}-cc-paypal:before { content: fa-content($fa-var-cc-paypal); } +.#{$fa-css-prefix}-cc-stripe:before { content: fa-content($fa-var-cc-stripe); } +.#{$fa-css-prefix}-cc-visa:before { content: fa-content($fa-var-cc-visa); } +.#{$fa-css-prefix}-cctv:before { content: fa-content($fa-var-cctv); } +.#{$fa-css-prefix}-centercode:before { content: fa-content($fa-var-centercode); } +.#{$fa-css-prefix}-centos:before { content: fa-content($fa-var-centos); } +.#{$fa-css-prefix}-certificate:before { content: fa-content($fa-var-certificate); } +.#{$fa-css-prefix}-chair:before { content: fa-content($fa-var-chair); } +.#{$fa-css-prefix}-chair-office:before { content: fa-content($fa-var-chair-office); } +.#{$fa-css-prefix}-chalkboard:before { content: fa-content($fa-var-chalkboard); } +.#{$fa-css-prefix}-chalkboard-teacher:before { content: fa-content($fa-var-chalkboard-teacher); } +.#{$fa-css-prefix}-charging-station:before { content: fa-content($fa-var-charging-station); } +.#{$fa-css-prefix}-chart-area:before { content: fa-content($fa-var-chart-area); } +.#{$fa-css-prefix}-chart-bar:before { content: fa-content($fa-var-chart-bar); } +.#{$fa-css-prefix}-chart-line:before { content: fa-content($fa-var-chart-line); } +.#{$fa-css-prefix}-chart-line-down:before { content: fa-content($fa-var-chart-line-down); } +.#{$fa-css-prefix}-chart-network:before { content: fa-content($fa-var-chart-network); } +.#{$fa-css-prefix}-chart-pie:before { content: fa-content($fa-var-chart-pie); } +.#{$fa-css-prefix}-chart-pie-alt:before { content: fa-content($fa-var-chart-pie-alt); } +.#{$fa-css-prefix}-chart-scatter:before { content: fa-content($fa-var-chart-scatter); } +.#{$fa-css-prefix}-check:before { content: fa-content($fa-var-check); } +.#{$fa-css-prefix}-check-circle:before { content: fa-content($fa-var-check-circle); } +.#{$fa-css-prefix}-check-double:before { content: fa-content($fa-var-check-double); } +.#{$fa-css-prefix}-check-square:before { content: fa-content($fa-var-check-square); } +.#{$fa-css-prefix}-cheese:before { content: fa-content($fa-var-cheese); } +.#{$fa-css-prefix}-cheese-swiss:before { content: fa-content($fa-var-cheese-swiss); } +.#{$fa-css-prefix}-cheeseburger:before { content: fa-content($fa-var-cheeseburger); } +.#{$fa-css-prefix}-chess:before { content: fa-content($fa-var-chess); } +.#{$fa-css-prefix}-chess-bishop:before { content: fa-content($fa-var-chess-bishop); } +.#{$fa-css-prefix}-chess-bishop-alt:before { content: fa-content($fa-var-chess-bishop-alt); } +.#{$fa-css-prefix}-chess-board:before { content: fa-content($fa-var-chess-board); } +.#{$fa-css-prefix}-chess-clock:before { content: fa-content($fa-var-chess-clock); } +.#{$fa-css-prefix}-chess-clock-alt:before { content: fa-content($fa-var-chess-clock-alt); } +.#{$fa-css-prefix}-chess-king:before { content: fa-content($fa-var-chess-king); } +.#{$fa-css-prefix}-chess-king-alt:before { content: fa-content($fa-var-chess-king-alt); } +.#{$fa-css-prefix}-chess-knight:before { content: fa-content($fa-var-chess-knight); } +.#{$fa-css-prefix}-chess-knight-alt:before { content: fa-content($fa-var-chess-knight-alt); } +.#{$fa-css-prefix}-chess-pawn:before { content: fa-content($fa-var-chess-pawn); } +.#{$fa-css-prefix}-chess-pawn-alt:before { content: fa-content($fa-var-chess-pawn-alt); } +.#{$fa-css-prefix}-chess-queen:before { content: fa-content($fa-var-chess-queen); } +.#{$fa-css-prefix}-chess-queen-alt:before { content: fa-content($fa-var-chess-queen-alt); } +.#{$fa-css-prefix}-chess-rook:before { content: fa-content($fa-var-chess-rook); } +.#{$fa-css-prefix}-chess-rook-alt:before { content: fa-content($fa-var-chess-rook-alt); } +.#{$fa-css-prefix}-chevron-circle-down:before { content: fa-content($fa-var-chevron-circle-down); } +.#{$fa-css-prefix}-chevron-circle-left:before { content: fa-content($fa-var-chevron-circle-left); } +.#{$fa-css-prefix}-chevron-circle-right:before { content: fa-content($fa-var-chevron-circle-right); } +.#{$fa-css-prefix}-chevron-circle-up:before { content: fa-content($fa-var-chevron-circle-up); } +.#{$fa-css-prefix}-chevron-double-down:before { content: fa-content($fa-var-chevron-double-down); } +.#{$fa-css-prefix}-chevron-double-left:before { content: fa-content($fa-var-chevron-double-left); } +.#{$fa-css-prefix}-chevron-double-right:before { content: fa-content($fa-var-chevron-double-right); } +.#{$fa-css-prefix}-chevron-double-up:before { content: fa-content($fa-var-chevron-double-up); } +.#{$fa-css-prefix}-chevron-down:before { content: fa-content($fa-var-chevron-down); } +.#{$fa-css-prefix}-chevron-left:before { content: fa-content($fa-var-chevron-left); } +.#{$fa-css-prefix}-chevron-right:before { content: fa-content($fa-var-chevron-right); } +.#{$fa-css-prefix}-chevron-square-down:before { content: fa-content($fa-var-chevron-square-down); } +.#{$fa-css-prefix}-chevron-square-left:before { content: fa-content($fa-var-chevron-square-left); } +.#{$fa-css-prefix}-chevron-square-right:before { content: fa-content($fa-var-chevron-square-right); } +.#{$fa-css-prefix}-chevron-square-up:before { content: fa-content($fa-var-chevron-square-up); } +.#{$fa-css-prefix}-chevron-up:before { content: fa-content($fa-var-chevron-up); } +.#{$fa-css-prefix}-child:before { content: fa-content($fa-var-child); } +.#{$fa-css-prefix}-chimney:before { content: fa-content($fa-var-chimney); } +.#{$fa-css-prefix}-chrome:before { content: fa-content($fa-var-chrome); } +.#{$fa-css-prefix}-chromecast:before { content: fa-content($fa-var-chromecast); } +.#{$fa-css-prefix}-church:before { content: fa-content($fa-var-church); } +.#{$fa-css-prefix}-circle:before { content: fa-content($fa-var-circle); } +.#{$fa-css-prefix}-circle-notch:before { content: fa-content($fa-var-circle-notch); } +.#{$fa-css-prefix}-city:before { content: fa-content($fa-var-city); } +.#{$fa-css-prefix}-clarinet:before { content: fa-content($fa-var-clarinet); } +.#{$fa-css-prefix}-claw-marks:before { content: fa-content($fa-var-claw-marks); } +.#{$fa-css-prefix}-clinic-medical:before { content: fa-content($fa-var-clinic-medical); } +.#{$fa-css-prefix}-clipboard:before { content: fa-content($fa-var-clipboard); } +.#{$fa-css-prefix}-clipboard-check:before { content: fa-content($fa-var-clipboard-check); } +.#{$fa-css-prefix}-clipboard-list:before { content: fa-content($fa-var-clipboard-list); } +.#{$fa-css-prefix}-clipboard-list-check:before { content: fa-content($fa-var-clipboard-list-check); } +.#{$fa-css-prefix}-clipboard-prescription:before { content: fa-content($fa-var-clipboard-prescription); } +.#{$fa-css-prefix}-clipboard-user:before { content: fa-content($fa-var-clipboard-user); } +.#{$fa-css-prefix}-clock:before { content: fa-content($fa-var-clock); } +.#{$fa-css-prefix}-clone:before { content: fa-content($fa-var-clone); } +.#{$fa-css-prefix}-closed-captioning:before { content: fa-content($fa-var-closed-captioning); } +.#{$fa-css-prefix}-cloud:before { content: fa-content($fa-var-cloud); } +.#{$fa-css-prefix}-cloud-download:before { content: fa-content($fa-var-cloud-download); } +.#{$fa-css-prefix}-cloud-download-alt:before { content: fa-content($fa-var-cloud-download-alt); } +.#{$fa-css-prefix}-cloud-drizzle:before { content: fa-content($fa-var-cloud-drizzle); } +.#{$fa-css-prefix}-cloud-hail:before { content: fa-content($fa-var-cloud-hail); } +.#{$fa-css-prefix}-cloud-hail-mixed:before { content: fa-content($fa-var-cloud-hail-mixed); } +.#{$fa-css-prefix}-cloud-meatball:before { content: fa-content($fa-var-cloud-meatball); } +.#{$fa-css-prefix}-cloud-moon:before { content: fa-content($fa-var-cloud-moon); } +.#{$fa-css-prefix}-cloud-moon-rain:before { content: fa-content($fa-var-cloud-moon-rain); } +.#{$fa-css-prefix}-cloud-music:before { content: fa-content($fa-var-cloud-music); } +.#{$fa-css-prefix}-cloud-rain:before { content: fa-content($fa-var-cloud-rain); } +.#{$fa-css-prefix}-cloud-rainbow:before { content: fa-content($fa-var-cloud-rainbow); } +.#{$fa-css-prefix}-cloud-showers:before { content: fa-content($fa-var-cloud-showers); } +.#{$fa-css-prefix}-cloud-showers-heavy:before { content: fa-content($fa-var-cloud-showers-heavy); } +.#{$fa-css-prefix}-cloud-sleet:before { content: fa-content($fa-var-cloud-sleet); } +.#{$fa-css-prefix}-cloud-snow:before { content: fa-content($fa-var-cloud-snow); } +.#{$fa-css-prefix}-cloud-sun:before { content: fa-content($fa-var-cloud-sun); } +.#{$fa-css-prefix}-cloud-sun-rain:before { content: fa-content($fa-var-cloud-sun-rain); } +.#{$fa-css-prefix}-cloud-upload:before { content: fa-content($fa-var-cloud-upload); } +.#{$fa-css-prefix}-cloud-upload-alt:before { content: fa-content($fa-var-cloud-upload-alt); } +.#{$fa-css-prefix}-cloudflare:before { content: fa-content($fa-var-cloudflare); } +.#{$fa-css-prefix}-clouds:before { content: fa-content($fa-var-clouds); } +.#{$fa-css-prefix}-clouds-moon:before { content: fa-content($fa-var-clouds-moon); } +.#{$fa-css-prefix}-clouds-sun:before { content: fa-content($fa-var-clouds-sun); } +.#{$fa-css-prefix}-cloudscale:before { content: fa-content($fa-var-cloudscale); } +.#{$fa-css-prefix}-cloudsmith:before { content: fa-content($fa-var-cloudsmith); } +.#{$fa-css-prefix}-cloudversify:before { content: fa-content($fa-var-cloudversify); } +.#{$fa-css-prefix}-club:before { content: fa-content($fa-var-club); } +.#{$fa-css-prefix}-cocktail:before { content: fa-content($fa-var-cocktail); } +.#{$fa-css-prefix}-code:before { content: fa-content($fa-var-code); } +.#{$fa-css-prefix}-code-branch:before { content: fa-content($fa-var-code-branch); } +.#{$fa-css-prefix}-code-commit:before { content: fa-content($fa-var-code-commit); } +.#{$fa-css-prefix}-code-merge:before { content: fa-content($fa-var-code-merge); } +.#{$fa-css-prefix}-codepen:before { content: fa-content($fa-var-codepen); } +.#{$fa-css-prefix}-codiepie:before { content: fa-content($fa-var-codiepie); } +.#{$fa-css-prefix}-coffee:before { content: fa-content($fa-var-coffee); } +.#{$fa-css-prefix}-coffee-pot:before { content: fa-content($fa-var-coffee-pot); } +.#{$fa-css-prefix}-coffee-togo:before { content: fa-content($fa-var-coffee-togo); } +.#{$fa-css-prefix}-coffin:before { content: fa-content($fa-var-coffin); } +.#{$fa-css-prefix}-coffin-cross:before { content: fa-content($fa-var-coffin-cross); } +.#{$fa-css-prefix}-cog:before { content: fa-content($fa-var-cog); } +.#{$fa-css-prefix}-cogs:before { content: fa-content($fa-var-cogs); } +.#{$fa-css-prefix}-coin:before { content: fa-content($fa-var-coin); } +.#{$fa-css-prefix}-coins:before { content: fa-content($fa-var-coins); } +.#{$fa-css-prefix}-columns:before { content: fa-content($fa-var-columns); } +.#{$fa-css-prefix}-comet:before { content: fa-content($fa-var-comet); } +.#{$fa-css-prefix}-comment:before { content: fa-content($fa-var-comment); } +.#{$fa-css-prefix}-comment-alt:before { content: fa-content($fa-var-comment-alt); } +.#{$fa-css-prefix}-comment-alt-check:before { content: fa-content($fa-var-comment-alt-check); } +.#{$fa-css-prefix}-comment-alt-dollar:before { content: fa-content($fa-var-comment-alt-dollar); } +.#{$fa-css-prefix}-comment-alt-dots:before { content: fa-content($fa-var-comment-alt-dots); } +.#{$fa-css-prefix}-comment-alt-edit:before { content: fa-content($fa-var-comment-alt-edit); } +.#{$fa-css-prefix}-comment-alt-exclamation:before { content: fa-content($fa-var-comment-alt-exclamation); } +.#{$fa-css-prefix}-comment-alt-lines:before { content: fa-content($fa-var-comment-alt-lines); } +.#{$fa-css-prefix}-comment-alt-medical:before { content: fa-content($fa-var-comment-alt-medical); } +.#{$fa-css-prefix}-comment-alt-minus:before { content: fa-content($fa-var-comment-alt-minus); } +.#{$fa-css-prefix}-comment-alt-music:before { content: fa-content($fa-var-comment-alt-music); } +.#{$fa-css-prefix}-comment-alt-plus:before { content: fa-content($fa-var-comment-alt-plus); } +.#{$fa-css-prefix}-comment-alt-slash:before { content: fa-content($fa-var-comment-alt-slash); } +.#{$fa-css-prefix}-comment-alt-smile:before { content: fa-content($fa-var-comment-alt-smile); } +.#{$fa-css-prefix}-comment-alt-times:before { content: fa-content($fa-var-comment-alt-times); } +.#{$fa-css-prefix}-comment-check:before { content: fa-content($fa-var-comment-check); } +.#{$fa-css-prefix}-comment-dollar:before { content: fa-content($fa-var-comment-dollar); } +.#{$fa-css-prefix}-comment-dots:before { content: fa-content($fa-var-comment-dots); } +.#{$fa-css-prefix}-comment-edit:before { content: fa-content($fa-var-comment-edit); } +.#{$fa-css-prefix}-comment-exclamation:before { content: fa-content($fa-var-comment-exclamation); } +.#{$fa-css-prefix}-comment-lines:before { content: fa-content($fa-var-comment-lines); } +.#{$fa-css-prefix}-comment-medical:before { content: fa-content($fa-var-comment-medical); } +.#{$fa-css-prefix}-comment-minus:before { content: fa-content($fa-var-comment-minus); } +.#{$fa-css-prefix}-comment-music:before { content: fa-content($fa-var-comment-music); } +.#{$fa-css-prefix}-comment-plus:before { content: fa-content($fa-var-comment-plus); } +.#{$fa-css-prefix}-comment-slash:before { content: fa-content($fa-var-comment-slash); } +.#{$fa-css-prefix}-comment-smile:before { content: fa-content($fa-var-comment-smile); } +.#{$fa-css-prefix}-comment-times:before { content: fa-content($fa-var-comment-times); } +.#{$fa-css-prefix}-comments:before { content: fa-content($fa-var-comments); } +.#{$fa-css-prefix}-comments-alt:before { content: fa-content($fa-var-comments-alt); } +.#{$fa-css-prefix}-comments-alt-dollar:before { content: fa-content($fa-var-comments-alt-dollar); } +.#{$fa-css-prefix}-comments-dollar:before { content: fa-content($fa-var-comments-dollar); } +.#{$fa-css-prefix}-compact-disc:before { content: fa-content($fa-var-compact-disc); } +.#{$fa-css-prefix}-compass:before { content: fa-content($fa-var-compass); } +.#{$fa-css-prefix}-compass-slash:before { content: fa-content($fa-var-compass-slash); } +.#{$fa-css-prefix}-compress:before { content: fa-content($fa-var-compress); } +.#{$fa-css-prefix}-compress-alt:before { content: fa-content($fa-var-compress-alt); } +.#{$fa-css-prefix}-compress-arrows-alt:before { content: fa-content($fa-var-compress-arrows-alt); } +.#{$fa-css-prefix}-compress-wide:before { content: fa-content($fa-var-compress-wide); } +.#{$fa-css-prefix}-computer-classic:before { content: fa-content($fa-var-computer-classic); } +.#{$fa-css-prefix}-computer-speaker:before { content: fa-content($fa-var-computer-speaker); } +.#{$fa-css-prefix}-concierge-bell:before { content: fa-content($fa-var-concierge-bell); } +.#{$fa-css-prefix}-confluence:before { content: fa-content($fa-var-confluence); } +.#{$fa-css-prefix}-connectdevelop:before { content: fa-content($fa-var-connectdevelop); } +.#{$fa-css-prefix}-construction:before { content: fa-content($fa-var-construction); } +.#{$fa-css-prefix}-container-storage:before { content: fa-content($fa-var-container-storage); } +.#{$fa-css-prefix}-contao:before { content: fa-content($fa-var-contao); } +.#{$fa-css-prefix}-conveyor-belt:before { content: fa-content($fa-var-conveyor-belt); } +.#{$fa-css-prefix}-conveyor-belt-alt:before { content: fa-content($fa-var-conveyor-belt-alt); } +.#{$fa-css-prefix}-cookie:before { content: fa-content($fa-var-cookie); } +.#{$fa-css-prefix}-cookie-bite:before { content: fa-content($fa-var-cookie-bite); } +.#{$fa-css-prefix}-copy:before { content: fa-content($fa-var-copy); } +.#{$fa-css-prefix}-copyright:before { content: fa-content($fa-var-copyright); } +.#{$fa-css-prefix}-corn:before { content: fa-content($fa-var-corn); } +.#{$fa-css-prefix}-cotton-bureau:before { content: fa-content($fa-var-cotton-bureau); } +.#{$fa-css-prefix}-couch:before { content: fa-content($fa-var-couch); } +.#{$fa-css-prefix}-cow:before { content: fa-content($fa-var-cow); } +.#{$fa-css-prefix}-cowbell:before { content: fa-content($fa-var-cowbell); } +.#{$fa-css-prefix}-cowbell-more:before { content: fa-content($fa-var-cowbell-more); } +.#{$fa-css-prefix}-cpanel:before { content: fa-content($fa-var-cpanel); } +.#{$fa-css-prefix}-creative-commons:before { content: fa-content($fa-var-creative-commons); } +.#{$fa-css-prefix}-creative-commons-by:before { content: fa-content($fa-var-creative-commons-by); } +.#{$fa-css-prefix}-creative-commons-nc:before { content: fa-content($fa-var-creative-commons-nc); } +.#{$fa-css-prefix}-creative-commons-nc-eu:before { content: fa-content($fa-var-creative-commons-nc-eu); } +.#{$fa-css-prefix}-creative-commons-nc-jp:before { content: fa-content($fa-var-creative-commons-nc-jp); } +.#{$fa-css-prefix}-creative-commons-nd:before { content: fa-content($fa-var-creative-commons-nd); } +.#{$fa-css-prefix}-creative-commons-pd:before { content: fa-content($fa-var-creative-commons-pd); } +.#{$fa-css-prefix}-creative-commons-pd-alt:before { content: fa-content($fa-var-creative-commons-pd-alt); } +.#{$fa-css-prefix}-creative-commons-remix:before { content: fa-content($fa-var-creative-commons-remix); } +.#{$fa-css-prefix}-creative-commons-sa:before { content: fa-content($fa-var-creative-commons-sa); } +.#{$fa-css-prefix}-creative-commons-sampling:before { content: fa-content($fa-var-creative-commons-sampling); } +.#{$fa-css-prefix}-creative-commons-sampling-plus:before { content: fa-content($fa-var-creative-commons-sampling-plus); } +.#{$fa-css-prefix}-creative-commons-share:before { content: fa-content($fa-var-creative-commons-share); } +.#{$fa-css-prefix}-creative-commons-zero:before { content: fa-content($fa-var-creative-commons-zero); } +.#{$fa-css-prefix}-credit-card:before { content: fa-content($fa-var-credit-card); } +.#{$fa-css-prefix}-credit-card-blank:before { content: fa-content($fa-var-credit-card-blank); } +.#{$fa-css-prefix}-credit-card-front:before { content: fa-content($fa-var-credit-card-front); } +.#{$fa-css-prefix}-cricket:before { content: fa-content($fa-var-cricket); } +.#{$fa-css-prefix}-critical-role:before { content: fa-content($fa-var-critical-role); } +.#{$fa-css-prefix}-croissant:before { content: fa-content($fa-var-croissant); } +.#{$fa-css-prefix}-crop:before { content: fa-content($fa-var-crop); } +.#{$fa-css-prefix}-crop-alt:before { content: fa-content($fa-var-crop-alt); } +.#{$fa-css-prefix}-cross:before { content: fa-content($fa-var-cross); } +.#{$fa-css-prefix}-crosshairs:before { content: fa-content($fa-var-crosshairs); } +.#{$fa-css-prefix}-crow:before { content: fa-content($fa-var-crow); } +.#{$fa-css-prefix}-crown:before { content: fa-content($fa-var-crown); } +.#{$fa-css-prefix}-crutch:before { content: fa-content($fa-var-crutch); } +.#{$fa-css-prefix}-crutches:before { content: fa-content($fa-var-crutches); } +.#{$fa-css-prefix}-css3:before { content: fa-content($fa-var-css3); } +.#{$fa-css-prefix}-css3-alt:before { content: fa-content($fa-var-css3-alt); } +.#{$fa-css-prefix}-cube:before { content: fa-content($fa-var-cube); } +.#{$fa-css-prefix}-cubes:before { content: fa-content($fa-var-cubes); } +.#{$fa-css-prefix}-curling:before { content: fa-content($fa-var-curling); } +.#{$fa-css-prefix}-cut:before { content: fa-content($fa-var-cut); } +.#{$fa-css-prefix}-cuttlefish:before { content: fa-content($fa-var-cuttlefish); } +.#{$fa-css-prefix}-d-and-d:before { content: fa-content($fa-var-d-and-d); } +.#{$fa-css-prefix}-d-and-d-beyond:before { content: fa-content($fa-var-d-and-d-beyond); } +.#{$fa-css-prefix}-dagger:before { content: fa-content($fa-var-dagger); } +.#{$fa-css-prefix}-dailymotion:before { content: fa-content($fa-var-dailymotion); } +.#{$fa-css-prefix}-dashcube:before { content: fa-content($fa-var-dashcube); } +.#{$fa-css-prefix}-database:before { content: fa-content($fa-var-database); } +.#{$fa-css-prefix}-deaf:before { content: fa-content($fa-var-deaf); } +.#{$fa-css-prefix}-debug:before { content: fa-content($fa-var-debug); } +.#{$fa-css-prefix}-deer:before { content: fa-content($fa-var-deer); } +.#{$fa-css-prefix}-deer-rudolph:before { content: fa-content($fa-var-deer-rudolph); } +.#{$fa-css-prefix}-deezer:before { content: fa-content($fa-var-deezer); } +.#{$fa-css-prefix}-delicious:before { content: fa-content($fa-var-delicious); } +.#{$fa-css-prefix}-democrat:before { content: fa-content($fa-var-democrat); } +.#{$fa-css-prefix}-deploydog:before { content: fa-content($fa-var-deploydog); } +.#{$fa-css-prefix}-deskpro:before { content: fa-content($fa-var-deskpro); } +.#{$fa-css-prefix}-desktop:before { content: fa-content($fa-var-desktop); } +.#{$fa-css-prefix}-desktop-alt:before { content: fa-content($fa-var-desktop-alt); } +.#{$fa-css-prefix}-dev:before { content: fa-content($fa-var-dev); } +.#{$fa-css-prefix}-deviantart:before { content: fa-content($fa-var-deviantart); } +.#{$fa-css-prefix}-dewpoint:before { content: fa-content($fa-var-dewpoint); } +.#{$fa-css-prefix}-dharmachakra:before { content: fa-content($fa-var-dharmachakra); } +.#{$fa-css-prefix}-dhl:before { content: fa-content($fa-var-dhl); } +.#{$fa-css-prefix}-diagnoses:before { content: fa-content($fa-var-diagnoses); } +.#{$fa-css-prefix}-diamond:before { content: fa-content($fa-var-diamond); } +.#{$fa-css-prefix}-diaspora:before { content: fa-content($fa-var-diaspora); } +.#{$fa-css-prefix}-dice:before { content: fa-content($fa-var-dice); } +.#{$fa-css-prefix}-dice-d10:before { content: fa-content($fa-var-dice-d10); } +.#{$fa-css-prefix}-dice-d12:before { content: fa-content($fa-var-dice-d12); } +.#{$fa-css-prefix}-dice-d20:before { content: fa-content($fa-var-dice-d20); } +.#{$fa-css-prefix}-dice-d4:before { content: fa-content($fa-var-dice-d4); } +.#{$fa-css-prefix}-dice-d6:before { content: fa-content($fa-var-dice-d6); } +.#{$fa-css-prefix}-dice-d8:before { content: fa-content($fa-var-dice-d8); } +.#{$fa-css-prefix}-dice-five:before { content: fa-content($fa-var-dice-five); } +.#{$fa-css-prefix}-dice-four:before { content: fa-content($fa-var-dice-four); } +.#{$fa-css-prefix}-dice-one:before { content: fa-content($fa-var-dice-one); } +.#{$fa-css-prefix}-dice-six:before { content: fa-content($fa-var-dice-six); } +.#{$fa-css-prefix}-dice-three:before { content: fa-content($fa-var-dice-three); } +.#{$fa-css-prefix}-dice-two:before { content: fa-content($fa-var-dice-two); } +.#{$fa-css-prefix}-digg:before { content: fa-content($fa-var-digg); } +.#{$fa-css-prefix}-digging:before { content: fa-content($fa-var-digging); } +.#{$fa-css-prefix}-digital-ocean:before { content: fa-content($fa-var-digital-ocean); } +.#{$fa-css-prefix}-digital-tachograph:before { content: fa-content($fa-var-digital-tachograph); } +.#{$fa-css-prefix}-diploma:before { content: fa-content($fa-var-diploma); } +.#{$fa-css-prefix}-directions:before { content: fa-content($fa-var-directions); } +.#{$fa-css-prefix}-disc-drive:before { content: fa-content($fa-var-disc-drive); } +.#{$fa-css-prefix}-discord:before { content: fa-content($fa-var-discord); } +.#{$fa-css-prefix}-discourse:before { content: fa-content($fa-var-discourse); } +.#{$fa-css-prefix}-disease:before { content: fa-content($fa-var-disease); } +.#{$fa-css-prefix}-divide:before { content: fa-content($fa-var-divide); } +.#{$fa-css-prefix}-dizzy:before { content: fa-content($fa-var-dizzy); } +.#{$fa-css-prefix}-dna:before { content: fa-content($fa-var-dna); } +.#{$fa-css-prefix}-do-not-enter:before { content: fa-content($fa-var-do-not-enter); } +.#{$fa-css-prefix}-dochub:before { content: fa-content($fa-var-dochub); } +.#{$fa-css-prefix}-docker:before { content: fa-content($fa-var-docker); } +.#{$fa-css-prefix}-dog:before { content: fa-content($fa-var-dog); } +.#{$fa-css-prefix}-dog-leashed:before { content: fa-content($fa-var-dog-leashed); } +.#{$fa-css-prefix}-dollar-sign:before { content: fa-content($fa-var-dollar-sign); } +.#{$fa-css-prefix}-dolly:before { content: fa-content($fa-var-dolly); } +.#{$fa-css-prefix}-dolly-empty:before { content: fa-content($fa-var-dolly-empty); } +.#{$fa-css-prefix}-dolly-flatbed:before { content: fa-content($fa-var-dolly-flatbed); } +.#{$fa-css-prefix}-dolly-flatbed-alt:before { content: fa-content($fa-var-dolly-flatbed-alt); } +.#{$fa-css-prefix}-dolly-flatbed-empty:before { content: fa-content($fa-var-dolly-flatbed-empty); } +.#{$fa-css-prefix}-donate:before { content: fa-content($fa-var-donate); } +.#{$fa-css-prefix}-door-closed:before { content: fa-content($fa-var-door-closed); } +.#{$fa-css-prefix}-door-open:before { content: fa-content($fa-var-door-open); } +.#{$fa-css-prefix}-dot-circle:before { content: fa-content($fa-var-dot-circle); } +.#{$fa-css-prefix}-dove:before { content: fa-content($fa-var-dove); } +.#{$fa-css-prefix}-download:before { content: fa-content($fa-var-download); } +.#{$fa-css-prefix}-draft2digital:before { content: fa-content($fa-var-draft2digital); } +.#{$fa-css-prefix}-drafting-compass:before { content: fa-content($fa-var-drafting-compass); } +.#{$fa-css-prefix}-dragon:before { content: fa-content($fa-var-dragon); } +.#{$fa-css-prefix}-draw-circle:before { content: fa-content($fa-var-draw-circle); } +.#{$fa-css-prefix}-draw-polygon:before { content: fa-content($fa-var-draw-polygon); } +.#{$fa-css-prefix}-draw-square:before { content: fa-content($fa-var-draw-square); } +.#{$fa-css-prefix}-dreidel:before { content: fa-content($fa-var-dreidel); } +.#{$fa-css-prefix}-dribbble:before { content: fa-content($fa-var-dribbble); } +.#{$fa-css-prefix}-dribbble-square:before { content: fa-content($fa-var-dribbble-square); } +.#{$fa-css-prefix}-drone:before { content: fa-content($fa-var-drone); } +.#{$fa-css-prefix}-drone-alt:before { content: fa-content($fa-var-drone-alt); } +.#{$fa-css-prefix}-dropbox:before { content: fa-content($fa-var-dropbox); } +.#{$fa-css-prefix}-drum:before { content: fa-content($fa-var-drum); } +.#{$fa-css-prefix}-drum-steelpan:before { content: fa-content($fa-var-drum-steelpan); } +.#{$fa-css-prefix}-drumstick:before { content: fa-content($fa-var-drumstick); } +.#{$fa-css-prefix}-drumstick-bite:before { content: fa-content($fa-var-drumstick-bite); } +.#{$fa-css-prefix}-drupal:before { content: fa-content($fa-var-drupal); } +.#{$fa-css-prefix}-dryer:before { content: fa-content($fa-var-dryer); } +.#{$fa-css-prefix}-dryer-alt:before { content: fa-content($fa-var-dryer-alt); } +.#{$fa-css-prefix}-duck:before { content: fa-content($fa-var-duck); } +.#{$fa-css-prefix}-dumbbell:before { content: fa-content($fa-var-dumbbell); } +.#{$fa-css-prefix}-dumpster:before { content: fa-content($fa-var-dumpster); } +.#{$fa-css-prefix}-dumpster-fire:before { content: fa-content($fa-var-dumpster-fire); } +.#{$fa-css-prefix}-dungeon:before { content: fa-content($fa-var-dungeon); } +.#{$fa-css-prefix}-dyalog:before { content: fa-content($fa-var-dyalog); } +.#{$fa-css-prefix}-ear:before { content: fa-content($fa-var-ear); } +.#{$fa-css-prefix}-ear-muffs:before { content: fa-content($fa-var-ear-muffs); } +.#{$fa-css-prefix}-earlybirds:before { content: fa-content($fa-var-earlybirds); } +.#{$fa-css-prefix}-ebay:before { content: fa-content($fa-var-ebay); } +.#{$fa-css-prefix}-eclipse:before { content: fa-content($fa-var-eclipse); } +.#{$fa-css-prefix}-eclipse-alt:before { content: fa-content($fa-var-eclipse-alt); } +.#{$fa-css-prefix}-edge:before { content: fa-content($fa-var-edge); } +.#{$fa-css-prefix}-edge-legacy:before { content: fa-content($fa-var-edge-legacy); } +.#{$fa-css-prefix}-edit:before { content: fa-content($fa-var-edit); } +.#{$fa-css-prefix}-egg:before { content: fa-content($fa-var-egg); } +.#{$fa-css-prefix}-egg-fried:before { content: fa-content($fa-var-egg-fried); } +.#{$fa-css-prefix}-eject:before { content: fa-content($fa-var-eject); } +.#{$fa-css-prefix}-elementor:before { content: fa-content($fa-var-elementor); } +.#{$fa-css-prefix}-elephant:before { content: fa-content($fa-var-elephant); } +.#{$fa-css-prefix}-ellipsis-h:before { content: fa-content($fa-var-ellipsis-h); } +.#{$fa-css-prefix}-ellipsis-h-alt:before { content: fa-content($fa-var-ellipsis-h-alt); } +.#{$fa-css-prefix}-ellipsis-v:before { content: fa-content($fa-var-ellipsis-v); } +.#{$fa-css-prefix}-ellipsis-v-alt:before { content: fa-content($fa-var-ellipsis-v-alt); } +.#{$fa-css-prefix}-ello:before { content: fa-content($fa-var-ello); } +.#{$fa-css-prefix}-ember:before { content: fa-content($fa-var-ember); } +.#{$fa-css-prefix}-empire:before { content: fa-content($fa-var-empire); } +.#{$fa-css-prefix}-empty-set:before { content: fa-content($fa-var-empty-set); } +.#{$fa-css-prefix}-engine-warning:before { content: fa-content($fa-var-engine-warning); } +.#{$fa-css-prefix}-envelope:before { content: fa-content($fa-var-envelope); } +.#{$fa-css-prefix}-envelope-open:before { content: fa-content($fa-var-envelope-open); } +.#{$fa-css-prefix}-envelope-open-dollar:before { content: fa-content($fa-var-envelope-open-dollar); } +.#{$fa-css-prefix}-envelope-open-text:before { content: fa-content($fa-var-envelope-open-text); } +.#{$fa-css-prefix}-envelope-square:before { content: fa-content($fa-var-envelope-square); } +.#{$fa-css-prefix}-envira:before { content: fa-content($fa-var-envira); } +.#{$fa-css-prefix}-equals:before { content: fa-content($fa-var-equals); } +.#{$fa-css-prefix}-eraser:before { content: fa-content($fa-var-eraser); } +.#{$fa-css-prefix}-erlang:before { content: fa-content($fa-var-erlang); } +.#{$fa-css-prefix}-ethereum:before { content: fa-content($fa-var-ethereum); } +.#{$fa-css-prefix}-ethernet:before { content: fa-content($fa-var-ethernet); } +.#{$fa-css-prefix}-etsy:before { content: fa-content($fa-var-etsy); } +.#{$fa-css-prefix}-euro-sign:before { content: fa-content($fa-var-euro-sign); } +.#{$fa-css-prefix}-evernote:before { content: fa-content($fa-var-evernote); } +.#{$fa-css-prefix}-exchange:before { content: fa-content($fa-var-exchange); } +.#{$fa-css-prefix}-exchange-alt:before { content: fa-content($fa-var-exchange-alt); } +.#{$fa-css-prefix}-exclamation:before { content: fa-content($fa-var-exclamation); } +.#{$fa-css-prefix}-exclamation-circle:before { content: fa-content($fa-var-exclamation-circle); } +.#{$fa-css-prefix}-exclamation-square:before { content: fa-content($fa-var-exclamation-square); } +.#{$fa-css-prefix}-exclamation-triangle:before { content: fa-content($fa-var-exclamation-triangle); } +.#{$fa-css-prefix}-expand:before { content: fa-content($fa-var-expand); } +.#{$fa-css-prefix}-expand-alt:before { content: fa-content($fa-var-expand-alt); } +.#{$fa-css-prefix}-expand-arrows:before { content: fa-content($fa-var-expand-arrows); } +.#{$fa-css-prefix}-expand-arrows-alt:before { content: fa-content($fa-var-expand-arrows-alt); } +.#{$fa-css-prefix}-expand-wide:before { content: fa-content($fa-var-expand-wide); } +.#{$fa-css-prefix}-expeditedssl:before { content: fa-content($fa-var-expeditedssl); } +.#{$fa-css-prefix}-external-link:before { content: fa-content($fa-var-external-link); } +.#{$fa-css-prefix}-external-link-alt:before { content: fa-content($fa-var-external-link-alt); } +.#{$fa-css-prefix}-external-link-square:before { content: fa-content($fa-var-external-link-square); } +.#{$fa-css-prefix}-external-link-square-alt:before { content: fa-content($fa-var-external-link-square-alt); } +.#{$fa-css-prefix}-eye:before { content: fa-content($fa-var-eye); } +.#{$fa-css-prefix}-eye-dropper:before { content: fa-content($fa-var-eye-dropper); } +.#{$fa-css-prefix}-eye-evil:before { content: fa-content($fa-var-eye-evil); } +.#{$fa-css-prefix}-eye-slash:before { content: fa-content($fa-var-eye-slash); } +.#{$fa-css-prefix}-facebook:before { content: fa-content($fa-var-facebook); } +.#{$fa-css-prefix}-facebook-f:before { content: fa-content($fa-var-facebook-f); } +.#{$fa-css-prefix}-facebook-messenger:before { content: fa-content($fa-var-facebook-messenger); } +.#{$fa-css-prefix}-facebook-square:before { content: fa-content($fa-var-facebook-square); } +.#{$fa-css-prefix}-fan:before { content: fa-content($fa-var-fan); } +.#{$fa-css-prefix}-fan-table:before { content: fa-content($fa-var-fan-table); } +.#{$fa-css-prefix}-fantasy-flight-games:before { content: fa-content($fa-var-fantasy-flight-games); } +.#{$fa-css-prefix}-farm:before { content: fa-content($fa-var-farm); } +.#{$fa-css-prefix}-fast-backward:before { content: fa-content($fa-var-fast-backward); } +.#{$fa-css-prefix}-fast-forward:before { content: fa-content($fa-var-fast-forward); } +.#{$fa-css-prefix}-faucet:before { content: fa-content($fa-var-faucet); } +.#{$fa-css-prefix}-faucet-drip:before { content: fa-content($fa-var-faucet-drip); } +.#{$fa-css-prefix}-fax:before { content: fa-content($fa-var-fax); } +.#{$fa-css-prefix}-feather:before { content: fa-content($fa-var-feather); } +.#{$fa-css-prefix}-feather-alt:before { content: fa-content($fa-var-feather-alt); } +.#{$fa-css-prefix}-fedex:before { content: fa-content($fa-var-fedex); } +.#{$fa-css-prefix}-fedora:before { content: fa-content($fa-var-fedora); } +.#{$fa-css-prefix}-female:before { content: fa-content($fa-var-female); } +.#{$fa-css-prefix}-field-hockey:before { content: fa-content($fa-var-field-hockey); } +.#{$fa-css-prefix}-fighter-jet:before { content: fa-content($fa-var-fighter-jet); } +.#{$fa-css-prefix}-figma:before { content: fa-content($fa-var-figma); } +.#{$fa-css-prefix}-file:before { content: fa-content($fa-var-file); } +.#{$fa-css-prefix}-file-alt:before { content: fa-content($fa-var-file-alt); } +.#{$fa-css-prefix}-file-archive:before { content: fa-content($fa-var-file-archive); } +.#{$fa-css-prefix}-file-audio:before { content: fa-content($fa-var-file-audio); } +.#{$fa-css-prefix}-file-certificate:before { content: fa-content($fa-var-file-certificate); } +.#{$fa-css-prefix}-file-chart-line:before { content: fa-content($fa-var-file-chart-line); } +.#{$fa-css-prefix}-file-chart-pie:before { content: fa-content($fa-var-file-chart-pie); } +.#{$fa-css-prefix}-file-check:before { content: fa-content($fa-var-file-check); } +.#{$fa-css-prefix}-file-code:before { content: fa-content($fa-var-file-code); } +.#{$fa-css-prefix}-file-contract:before { content: fa-content($fa-var-file-contract); } +.#{$fa-css-prefix}-file-csv:before { content: fa-content($fa-var-file-csv); } +.#{$fa-css-prefix}-file-download:before { content: fa-content($fa-var-file-download); } +.#{$fa-css-prefix}-file-edit:before { content: fa-content($fa-var-file-edit); } +.#{$fa-css-prefix}-file-excel:before { content: fa-content($fa-var-file-excel); } +.#{$fa-css-prefix}-file-exclamation:before { content: fa-content($fa-var-file-exclamation); } +.#{$fa-css-prefix}-file-export:before { content: fa-content($fa-var-file-export); } +.#{$fa-css-prefix}-file-image:before { content: fa-content($fa-var-file-image); } +.#{$fa-css-prefix}-file-import:before { content: fa-content($fa-var-file-import); } +.#{$fa-css-prefix}-file-invoice:before { content: fa-content($fa-var-file-invoice); } +.#{$fa-css-prefix}-file-invoice-dollar:before { content: fa-content($fa-var-file-invoice-dollar); } +.#{$fa-css-prefix}-file-medical:before { content: fa-content($fa-var-file-medical); } +.#{$fa-css-prefix}-file-medical-alt:before { content: fa-content($fa-var-file-medical-alt); } +.#{$fa-css-prefix}-file-minus:before { content: fa-content($fa-var-file-minus); } +.#{$fa-css-prefix}-file-music:before { content: fa-content($fa-var-file-music); } +.#{$fa-css-prefix}-file-pdf:before { content: fa-content($fa-var-file-pdf); } +.#{$fa-css-prefix}-file-plus:before { content: fa-content($fa-var-file-plus); } +.#{$fa-css-prefix}-file-powerpoint:before { content: fa-content($fa-var-file-powerpoint); } +.#{$fa-css-prefix}-file-prescription:before { content: fa-content($fa-var-file-prescription); } +.#{$fa-css-prefix}-file-search:before { content: fa-content($fa-var-file-search); } +.#{$fa-css-prefix}-file-signature:before { content: fa-content($fa-var-file-signature); } +.#{$fa-css-prefix}-file-spreadsheet:before { content: fa-content($fa-var-file-spreadsheet); } +.#{$fa-css-prefix}-file-times:before { content: fa-content($fa-var-file-times); } +.#{$fa-css-prefix}-file-upload:before { content: fa-content($fa-var-file-upload); } +.#{$fa-css-prefix}-file-user:before { content: fa-content($fa-var-file-user); } +.#{$fa-css-prefix}-file-video:before { content: fa-content($fa-var-file-video); } +.#{$fa-css-prefix}-file-word:before { content: fa-content($fa-var-file-word); } +.#{$fa-css-prefix}-files-medical:before { content: fa-content($fa-var-files-medical); } +.#{$fa-css-prefix}-fill:before { content: fa-content($fa-var-fill); } +.#{$fa-css-prefix}-fill-drip:before { content: fa-content($fa-var-fill-drip); } +.#{$fa-css-prefix}-film:before { content: fa-content($fa-var-film); } +.#{$fa-css-prefix}-film-alt:before { content: fa-content($fa-var-film-alt); } +.#{$fa-css-prefix}-film-canister:before { content: fa-content($fa-var-film-canister); } +.#{$fa-css-prefix}-filter:before { content: fa-content($fa-var-filter); } +.#{$fa-css-prefix}-fingerprint:before { content: fa-content($fa-var-fingerprint); } +.#{$fa-css-prefix}-fire:before { content: fa-content($fa-var-fire); } +.#{$fa-css-prefix}-fire-alt:before { content: fa-content($fa-var-fire-alt); } +.#{$fa-css-prefix}-fire-extinguisher:before { content: fa-content($fa-var-fire-extinguisher); } +.#{$fa-css-prefix}-fire-smoke:before { content: fa-content($fa-var-fire-smoke); } +.#{$fa-css-prefix}-firefox:before { content: fa-content($fa-var-firefox); } +.#{$fa-css-prefix}-firefox-browser:before { content: fa-content($fa-var-firefox-browser); } +.#{$fa-css-prefix}-fireplace:before { content: fa-content($fa-var-fireplace); } +.#{$fa-css-prefix}-first-aid:before { content: fa-content($fa-var-first-aid); } +.#{$fa-css-prefix}-first-order:before { content: fa-content($fa-var-first-order); } +.#{$fa-css-prefix}-first-order-alt:before { content: fa-content($fa-var-first-order-alt); } +.#{$fa-css-prefix}-firstdraft:before { content: fa-content($fa-var-firstdraft); } +.#{$fa-css-prefix}-fish:before { content: fa-content($fa-var-fish); } +.#{$fa-css-prefix}-fish-cooked:before { content: fa-content($fa-var-fish-cooked); } +.#{$fa-css-prefix}-fist-raised:before { content: fa-content($fa-var-fist-raised); } +.#{$fa-css-prefix}-flag:before { content: fa-content($fa-var-flag); } +.#{$fa-css-prefix}-flag-alt:before { content: fa-content($fa-var-flag-alt); } +.#{$fa-css-prefix}-flag-checkered:before { content: fa-content($fa-var-flag-checkered); } +.#{$fa-css-prefix}-flag-usa:before { content: fa-content($fa-var-flag-usa); } +.#{$fa-css-prefix}-flame:before { content: fa-content($fa-var-flame); } +.#{$fa-css-prefix}-flashlight:before { content: fa-content($fa-var-flashlight); } +.#{$fa-css-prefix}-flask:before { content: fa-content($fa-var-flask); } +.#{$fa-css-prefix}-flask-poison:before { content: fa-content($fa-var-flask-poison); } +.#{$fa-css-prefix}-flask-potion:before { content: fa-content($fa-var-flask-potion); } +.#{$fa-css-prefix}-flickr:before { content: fa-content($fa-var-flickr); } +.#{$fa-css-prefix}-flipboard:before { content: fa-content($fa-var-flipboard); } +.#{$fa-css-prefix}-flower:before { content: fa-content($fa-var-flower); } +.#{$fa-css-prefix}-flower-daffodil:before { content: fa-content($fa-var-flower-daffodil); } +.#{$fa-css-prefix}-flower-tulip:before { content: fa-content($fa-var-flower-tulip); } +.#{$fa-css-prefix}-flushed:before { content: fa-content($fa-var-flushed); } +.#{$fa-css-prefix}-flute:before { content: fa-content($fa-var-flute); } +.#{$fa-css-prefix}-flux-capacitor:before { content: fa-content($fa-var-flux-capacitor); } +.#{$fa-css-prefix}-fly:before { content: fa-content($fa-var-fly); } +.#{$fa-css-prefix}-fog:before { content: fa-content($fa-var-fog); } +.#{$fa-css-prefix}-folder:before { content: fa-content($fa-var-folder); } +.#{$fa-css-prefix}-folder-download:before { content: fa-content($fa-var-folder-download); } +.#{$fa-css-prefix}-folder-minus:before { content: fa-content($fa-var-folder-minus); } +.#{$fa-css-prefix}-folder-open:before { content: fa-content($fa-var-folder-open); } +.#{$fa-css-prefix}-folder-plus:before { content: fa-content($fa-var-folder-plus); } +.#{$fa-css-prefix}-folder-times:before { content: fa-content($fa-var-folder-times); } +.#{$fa-css-prefix}-folder-tree:before { content: fa-content($fa-var-folder-tree); } +.#{$fa-css-prefix}-folder-upload:before { content: fa-content($fa-var-folder-upload); } +.#{$fa-css-prefix}-folders:before { content: fa-content($fa-var-folders); } +.#{$fa-css-prefix}-font:before { content: fa-content($fa-var-font); } +.#{$fa-css-prefix}-font-awesome:before { content: fa-content($fa-var-font-awesome); } +.#{$fa-css-prefix}-font-awesome-alt:before { content: fa-content($fa-var-font-awesome-alt); } +.#{$fa-css-prefix}-font-awesome-flag:before { content: fa-content($fa-var-font-awesome-flag); } +.#{$fa-css-prefix}-font-awesome-logo-full:before { content: fa-content($fa-var-font-awesome-logo-full); } +.#{$fa-css-prefix}-font-case:before { content: fa-content($fa-var-font-case); } +.#{$fa-css-prefix}-fonticons:before { content: fa-content($fa-var-fonticons); } +.#{$fa-css-prefix}-fonticons-fi:before { content: fa-content($fa-var-fonticons-fi); } +.#{$fa-css-prefix}-football-ball:before { content: fa-content($fa-var-football-ball); } +.#{$fa-css-prefix}-football-helmet:before { content: fa-content($fa-var-football-helmet); } +.#{$fa-css-prefix}-forklift:before { content: fa-content($fa-var-forklift); } +.#{$fa-css-prefix}-fort-awesome:before { content: fa-content($fa-var-fort-awesome); } +.#{$fa-css-prefix}-fort-awesome-alt:before { content: fa-content($fa-var-fort-awesome-alt); } +.#{$fa-css-prefix}-forumbee:before { content: fa-content($fa-var-forumbee); } +.#{$fa-css-prefix}-forward:before { content: fa-content($fa-var-forward); } +.#{$fa-css-prefix}-foursquare:before { content: fa-content($fa-var-foursquare); } +.#{$fa-css-prefix}-fragile:before { content: fa-content($fa-var-fragile); } +.#{$fa-css-prefix}-free-code-camp:before { content: fa-content($fa-var-free-code-camp); } +.#{$fa-css-prefix}-freebsd:before { content: fa-content($fa-var-freebsd); } +.#{$fa-css-prefix}-french-fries:before { content: fa-content($fa-var-french-fries); } +.#{$fa-css-prefix}-frog:before { content: fa-content($fa-var-frog); } +.#{$fa-css-prefix}-frosty-head:before { content: fa-content($fa-var-frosty-head); } +.#{$fa-css-prefix}-frown:before { content: fa-content($fa-var-frown); } +.#{$fa-css-prefix}-frown-open:before { content: fa-content($fa-var-frown-open); } +.#{$fa-css-prefix}-fulcrum:before { content: fa-content($fa-var-fulcrum); } +.#{$fa-css-prefix}-function:before { content: fa-content($fa-var-function); } +.#{$fa-css-prefix}-funnel-dollar:before { content: fa-content($fa-var-funnel-dollar); } +.#{$fa-css-prefix}-futbol:before { content: fa-content($fa-var-futbol); } +.#{$fa-css-prefix}-galactic-republic:before { content: fa-content($fa-var-galactic-republic); } +.#{$fa-css-prefix}-galactic-senate:before { content: fa-content($fa-var-galactic-senate); } +.#{$fa-css-prefix}-galaxy:before { content: fa-content($fa-var-galaxy); } +.#{$fa-css-prefix}-game-board:before { content: fa-content($fa-var-game-board); } +.#{$fa-css-prefix}-game-board-alt:before { content: fa-content($fa-var-game-board-alt); } +.#{$fa-css-prefix}-game-console-handheld:before { content: fa-content($fa-var-game-console-handheld); } +.#{$fa-css-prefix}-gamepad:before { content: fa-content($fa-var-gamepad); } +.#{$fa-css-prefix}-gamepad-alt:before { content: fa-content($fa-var-gamepad-alt); } +.#{$fa-css-prefix}-garage:before { content: fa-content($fa-var-garage); } +.#{$fa-css-prefix}-garage-car:before { content: fa-content($fa-var-garage-car); } +.#{$fa-css-prefix}-garage-open:before { content: fa-content($fa-var-garage-open); } +.#{$fa-css-prefix}-gas-pump:before { content: fa-content($fa-var-gas-pump); } +.#{$fa-css-prefix}-gas-pump-slash:before { content: fa-content($fa-var-gas-pump-slash); } +.#{$fa-css-prefix}-gavel:before { content: fa-content($fa-var-gavel); } +.#{$fa-css-prefix}-gem:before { content: fa-content($fa-var-gem); } +.#{$fa-css-prefix}-genderless:before { content: fa-content($fa-var-genderless); } +.#{$fa-css-prefix}-get-pocket:before { content: fa-content($fa-var-get-pocket); } +.#{$fa-css-prefix}-gg:before { content: fa-content($fa-var-gg); } +.#{$fa-css-prefix}-gg-circle:before { content: fa-content($fa-var-gg-circle); } +.#{$fa-css-prefix}-ghost:before { content: fa-content($fa-var-ghost); } +.#{$fa-css-prefix}-gift:before { content: fa-content($fa-var-gift); } +.#{$fa-css-prefix}-gift-card:before { content: fa-content($fa-var-gift-card); } +.#{$fa-css-prefix}-gifts:before { content: fa-content($fa-var-gifts); } +.#{$fa-css-prefix}-gingerbread-man:before { content: fa-content($fa-var-gingerbread-man); } +.#{$fa-css-prefix}-git:before { content: fa-content($fa-var-git); } +.#{$fa-css-prefix}-git-alt:before { content: fa-content($fa-var-git-alt); } +.#{$fa-css-prefix}-git-square:before { content: fa-content($fa-var-git-square); } +.#{$fa-css-prefix}-github:before { content: fa-content($fa-var-github); } +.#{$fa-css-prefix}-github-alt:before { content: fa-content($fa-var-github-alt); } +.#{$fa-css-prefix}-github-square:before { content: fa-content($fa-var-github-square); } +.#{$fa-css-prefix}-gitkraken:before { content: fa-content($fa-var-gitkraken); } +.#{$fa-css-prefix}-gitlab:before { content: fa-content($fa-var-gitlab); } +.#{$fa-css-prefix}-gitter:before { content: fa-content($fa-var-gitter); } +.#{$fa-css-prefix}-glass:before { content: fa-content($fa-var-glass); } +.#{$fa-css-prefix}-glass-champagne:before { content: fa-content($fa-var-glass-champagne); } +.#{$fa-css-prefix}-glass-cheers:before { content: fa-content($fa-var-glass-cheers); } +.#{$fa-css-prefix}-glass-citrus:before { content: fa-content($fa-var-glass-citrus); } +.#{$fa-css-prefix}-glass-martini:before { content: fa-content($fa-var-glass-martini); } +.#{$fa-css-prefix}-glass-martini-alt:before { content: fa-content($fa-var-glass-martini-alt); } +.#{$fa-css-prefix}-glass-whiskey:before { content: fa-content($fa-var-glass-whiskey); } +.#{$fa-css-prefix}-glass-whiskey-rocks:before { content: fa-content($fa-var-glass-whiskey-rocks); } +.#{$fa-css-prefix}-glasses:before { content: fa-content($fa-var-glasses); } +.#{$fa-css-prefix}-glasses-alt:before { content: fa-content($fa-var-glasses-alt); } +.#{$fa-css-prefix}-glide:before { content: fa-content($fa-var-glide); } +.#{$fa-css-prefix}-glide-g:before { content: fa-content($fa-var-glide-g); } +.#{$fa-css-prefix}-globe:before { content: fa-content($fa-var-globe); } +.#{$fa-css-prefix}-globe-africa:before { content: fa-content($fa-var-globe-africa); } +.#{$fa-css-prefix}-globe-americas:before { content: fa-content($fa-var-globe-americas); } +.#{$fa-css-prefix}-globe-asia:before { content: fa-content($fa-var-globe-asia); } +.#{$fa-css-prefix}-globe-europe:before { content: fa-content($fa-var-globe-europe); } +.#{$fa-css-prefix}-globe-snow:before { content: fa-content($fa-var-globe-snow); } +.#{$fa-css-prefix}-globe-stand:before { content: fa-content($fa-var-globe-stand); } +.#{$fa-css-prefix}-gofore:before { content: fa-content($fa-var-gofore); } +.#{$fa-css-prefix}-golf-ball:before { content: fa-content($fa-var-golf-ball); } +.#{$fa-css-prefix}-golf-club:before { content: fa-content($fa-var-golf-club); } +.#{$fa-css-prefix}-goodreads:before { content: fa-content($fa-var-goodreads); } +.#{$fa-css-prefix}-goodreads-g:before { content: fa-content($fa-var-goodreads-g); } +.#{$fa-css-prefix}-google:before { content: fa-content($fa-var-google); } +.#{$fa-css-prefix}-google-drive:before { content: fa-content($fa-var-google-drive); } +.#{$fa-css-prefix}-google-pay:before { content: fa-content($fa-var-google-pay); } +.#{$fa-css-prefix}-google-play:before { content: fa-content($fa-var-google-play); } +.#{$fa-css-prefix}-google-plus:before { content: fa-content($fa-var-google-plus); } +.#{$fa-css-prefix}-google-plus-g:before { content: fa-content($fa-var-google-plus-g); } +.#{$fa-css-prefix}-google-plus-square:before { content: fa-content($fa-var-google-plus-square); } +.#{$fa-css-prefix}-google-wallet:before { content: fa-content($fa-var-google-wallet); } +.#{$fa-css-prefix}-gopuram:before { content: fa-content($fa-var-gopuram); } +.#{$fa-css-prefix}-graduation-cap:before { content: fa-content($fa-var-graduation-cap); } +.#{$fa-css-prefix}-gramophone:before { content: fa-content($fa-var-gramophone); } +.#{$fa-css-prefix}-gratipay:before { content: fa-content($fa-var-gratipay); } +.#{$fa-css-prefix}-grav:before { content: fa-content($fa-var-grav); } +.#{$fa-css-prefix}-greater-than:before { content: fa-content($fa-var-greater-than); } +.#{$fa-css-prefix}-greater-than-equal:before { content: fa-content($fa-var-greater-than-equal); } +.#{$fa-css-prefix}-grimace:before { content: fa-content($fa-var-grimace); } +.#{$fa-css-prefix}-grin:before { content: fa-content($fa-var-grin); } +.#{$fa-css-prefix}-grin-alt:before { content: fa-content($fa-var-grin-alt); } +.#{$fa-css-prefix}-grin-beam:before { content: fa-content($fa-var-grin-beam); } +.#{$fa-css-prefix}-grin-beam-sweat:before { content: fa-content($fa-var-grin-beam-sweat); } +.#{$fa-css-prefix}-grin-hearts:before { content: fa-content($fa-var-grin-hearts); } +.#{$fa-css-prefix}-grin-squint:before { content: fa-content($fa-var-grin-squint); } +.#{$fa-css-prefix}-grin-squint-tears:before { content: fa-content($fa-var-grin-squint-tears); } +.#{$fa-css-prefix}-grin-stars:before { content: fa-content($fa-var-grin-stars); } +.#{$fa-css-prefix}-grin-tears:before { content: fa-content($fa-var-grin-tears); } +.#{$fa-css-prefix}-grin-tongue:before { content: fa-content($fa-var-grin-tongue); } +.#{$fa-css-prefix}-grin-tongue-squint:before { content: fa-content($fa-var-grin-tongue-squint); } +.#{$fa-css-prefix}-grin-tongue-wink:before { content: fa-content($fa-var-grin-tongue-wink); } +.#{$fa-css-prefix}-grin-wink:before { content: fa-content($fa-var-grin-wink); } +.#{$fa-css-prefix}-grip-horizontal:before { content: fa-content($fa-var-grip-horizontal); } +.#{$fa-css-prefix}-grip-lines:before { content: fa-content($fa-var-grip-lines); } +.#{$fa-css-prefix}-grip-lines-vertical:before { content: fa-content($fa-var-grip-lines-vertical); } +.#{$fa-css-prefix}-grip-vertical:before { content: fa-content($fa-var-grip-vertical); } +.#{$fa-css-prefix}-gripfire:before { content: fa-content($fa-var-gripfire); } +.#{$fa-css-prefix}-grunt:before { content: fa-content($fa-var-grunt); } +.#{$fa-css-prefix}-guilded:before { content: fa-content($fa-var-guilded); } +.#{$fa-css-prefix}-guitar:before { content: fa-content($fa-var-guitar); } +.#{$fa-css-prefix}-guitar-electric:before { content: fa-content($fa-var-guitar-electric); } +.#{$fa-css-prefix}-guitars:before { content: fa-content($fa-var-guitars); } +.#{$fa-css-prefix}-gulp:before { content: fa-content($fa-var-gulp); } +.#{$fa-css-prefix}-h-square:before { content: fa-content($fa-var-h-square); } +.#{$fa-css-prefix}-h1:before { content: fa-content($fa-var-h1); } +.#{$fa-css-prefix}-h2:before { content: fa-content($fa-var-h2); } +.#{$fa-css-prefix}-h3:before { content: fa-content($fa-var-h3); } +.#{$fa-css-prefix}-h4:before { content: fa-content($fa-var-h4); } +.#{$fa-css-prefix}-hacker-news:before { content: fa-content($fa-var-hacker-news); } +.#{$fa-css-prefix}-hacker-news-square:before { content: fa-content($fa-var-hacker-news-square); } +.#{$fa-css-prefix}-hackerrank:before { content: fa-content($fa-var-hackerrank); } +.#{$fa-css-prefix}-hamburger:before { content: fa-content($fa-var-hamburger); } +.#{$fa-css-prefix}-hammer:before { content: fa-content($fa-var-hammer); } +.#{$fa-css-prefix}-hammer-war:before { content: fa-content($fa-var-hammer-war); } +.#{$fa-css-prefix}-hamsa:before { content: fa-content($fa-var-hamsa); } +.#{$fa-css-prefix}-hand-heart:before { content: fa-content($fa-var-hand-heart); } +.#{$fa-css-prefix}-hand-holding:before { content: fa-content($fa-var-hand-holding); } +.#{$fa-css-prefix}-hand-holding-box:before { content: fa-content($fa-var-hand-holding-box); } +.#{$fa-css-prefix}-hand-holding-heart:before { content: fa-content($fa-var-hand-holding-heart); } +.#{$fa-css-prefix}-hand-holding-magic:before { content: fa-content($fa-var-hand-holding-magic); } +.#{$fa-css-prefix}-hand-holding-medical:before { content: fa-content($fa-var-hand-holding-medical); } +.#{$fa-css-prefix}-hand-holding-seedling:before { content: fa-content($fa-var-hand-holding-seedling); } +.#{$fa-css-prefix}-hand-holding-usd:before { content: fa-content($fa-var-hand-holding-usd); } +.#{$fa-css-prefix}-hand-holding-water:before { content: fa-content($fa-var-hand-holding-water); } +.#{$fa-css-prefix}-hand-lizard:before { content: fa-content($fa-var-hand-lizard); } +.#{$fa-css-prefix}-hand-middle-finger:before { content: fa-content($fa-var-hand-middle-finger); } +.#{$fa-css-prefix}-hand-paper:before { content: fa-content($fa-var-hand-paper); } +.#{$fa-css-prefix}-hand-peace:before { content: fa-content($fa-var-hand-peace); } +.#{$fa-css-prefix}-hand-point-down:before { content: fa-content($fa-var-hand-point-down); } +.#{$fa-css-prefix}-hand-point-left:before { content: fa-content($fa-var-hand-point-left); } +.#{$fa-css-prefix}-hand-point-right:before { content: fa-content($fa-var-hand-point-right); } +.#{$fa-css-prefix}-hand-point-up:before { content: fa-content($fa-var-hand-point-up); } +.#{$fa-css-prefix}-hand-pointer:before { content: fa-content($fa-var-hand-pointer); } +.#{$fa-css-prefix}-hand-receiving:before { content: fa-content($fa-var-hand-receiving); } +.#{$fa-css-prefix}-hand-rock:before { content: fa-content($fa-var-hand-rock); } +.#{$fa-css-prefix}-hand-scissors:before { content: fa-content($fa-var-hand-scissors); } +.#{$fa-css-prefix}-hand-sparkles:before { content: fa-content($fa-var-hand-sparkles); } +.#{$fa-css-prefix}-hand-spock:before { content: fa-content($fa-var-hand-spock); } +.#{$fa-css-prefix}-hands:before { content: fa-content($fa-var-hands); } +.#{$fa-css-prefix}-hands-heart:before { content: fa-content($fa-var-hands-heart); } +.#{$fa-css-prefix}-hands-helping:before { content: fa-content($fa-var-hands-helping); } +.#{$fa-css-prefix}-hands-usd:before { content: fa-content($fa-var-hands-usd); } +.#{$fa-css-prefix}-hands-wash:before { content: fa-content($fa-var-hands-wash); } +.#{$fa-css-prefix}-handshake:before { content: fa-content($fa-var-handshake); } +.#{$fa-css-prefix}-handshake-alt:before { content: fa-content($fa-var-handshake-alt); } +.#{$fa-css-prefix}-handshake-alt-slash:before { content: fa-content($fa-var-handshake-alt-slash); } +.#{$fa-css-prefix}-handshake-slash:before { content: fa-content($fa-var-handshake-slash); } +.#{$fa-css-prefix}-hanukiah:before { content: fa-content($fa-var-hanukiah); } +.#{$fa-css-prefix}-hard-hat:before { content: fa-content($fa-var-hard-hat); } +.#{$fa-css-prefix}-hashtag:before { content: fa-content($fa-var-hashtag); } +.#{$fa-css-prefix}-hat-chef:before { content: fa-content($fa-var-hat-chef); } +.#{$fa-css-prefix}-hat-cowboy:before { content: fa-content($fa-var-hat-cowboy); } +.#{$fa-css-prefix}-hat-cowboy-side:before { content: fa-content($fa-var-hat-cowboy-side); } +.#{$fa-css-prefix}-hat-santa:before { content: fa-content($fa-var-hat-santa); } +.#{$fa-css-prefix}-hat-winter:before { content: fa-content($fa-var-hat-winter); } +.#{$fa-css-prefix}-hat-witch:before { content: fa-content($fa-var-hat-witch); } +.#{$fa-css-prefix}-hat-wizard:before { content: fa-content($fa-var-hat-wizard); } +.#{$fa-css-prefix}-hdd:before { content: fa-content($fa-var-hdd); } +.#{$fa-css-prefix}-head-side:before { content: fa-content($fa-var-head-side); } +.#{$fa-css-prefix}-head-side-brain:before { content: fa-content($fa-var-head-side-brain); } +.#{$fa-css-prefix}-head-side-cough:before { content: fa-content($fa-var-head-side-cough); } +.#{$fa-css-prefix}-head-side-cough-slash:before { content: fa-content($fa-var-head-side-cough-slash); } +.#{$fa-css-prefix}-head-side-headphones:before { content: fa-content($fa-var-head-side-headphones); } +.#{$fa-css-prefix}-head-side-mask:before { content: fa-content($fa-var-head-side-mask); } +.#{$fa-css-prefix}-head-side-medical:before { content: fa-content($fa-var-head-side-medical); } +.#{$fa-css-prefix}-head-side-virus:before { content: fa-content($fa-var-head-side-virus); } +.#{$fa-css-prefix}-head-vr:before { content: fa-content($fa-var-head-vr); } +.#{$fa-css-prefix}-heading:before { content: fa-content($fa-var-heading); } +.#{$fa-css-prefix}-headphones:before { content: fa-content($fa-var-headphones); } +.#{$fa-css-prefix}-headphones-alt:before { content: fa-content($fa-var-headphones-alt); } +.#{$fa-css-prefix}-headset:before { content: fa-content($fa-var-headset); } +.#{$fa-css-prefix}-heart:before { content: fa-content($fa-var-heart); } +.#{$fa-css-prefix}-heart-broken:before { content: fa-content($fa-var-heart-broken); } +.#{$fa-css-prefix}-heart-circle:before { content: fa-content($fa-var-heart-circle); } +.#{$fa-css-prefix}-heart-rate:before { content: fa-content($fa-var-heart-rate); } +.#{$fa-css-prefix}-heart-square:before { content: fa-content($fa-var-heart-square); } +.#{$fa-css-prefix}-heartbeat:before { content: fa-content($fa-var-heartbeat); } +.#{$fa-css-prefix}-heat:before { content: fa-content($fa-var-heat); } +.#{$fa-css-prefix}-helicopter:before { content: fa-content($fa-var-helicopter); } +.#{$fa-css-prefix}-helmet-battle:before { content: fa-content($fa-var-helmet-battle); } +.#{$fa-css-prefix}-hexagon:before { content: fa-content($fa-var-hexagon); } +.#{$fa-css-prefix}-highlighter:before { content: fa-content($fa-var-highlighter); } +.#{$fa-css-prefix}-hiking:before { content: fa-content($fa-var-hiking); } +.#{$fa-css-prefix}-hippo:before { content: fa-content($fa-var-hippo); } +.#{$fa-css-prefix}-hips:before { content: fa-content($fa-var-hips); } +.#{$fa-css-prefix}-hire-a-helper:before { content: fa-content($fa-var-hire-a-helper); } +.#{$fa-css-prefix}-history:before { content: fa-content($fa-var-history); } +.#{$fa-css-prefix}-hive:before { content: fa-content($fa-var-hive); } +.#{$fa-css-prefix}-hockey-mask:before { content: fa-content($fa-var-hockey-mask); } +.#{$fa-css-prefix}-hockey-puck:before { content: fa-content($fa-var-hockey-puck); } +.#{$fa-css-prefix}-hockey-sticks:before { content: fa-content($fa-var-hockey-sticks); } +.#{$fa-css-prefix}-holly-berry:before { content: fa-content($fa-var-holly-berry); } +.#{$fa-css-prefix}-home:before { content: fa-content($fa-var-home); } +.#{$fa-css-prefix}-home-alt:before { content: fa-content($fa-var-home-alt); } +.#{$fa-css-prefix}-home-heart:before { content: fa-content($fa-var-home-heart); } +.#{$fa-css-prefix}-home-lg:before { content: fa-content($fa-var-home-lg); } +.#{$fa-css-prefix}-home-lg-alt:before { content: fa-content($fa-var-home-lg-alt); } +.#{$fa-css-prefix}-hood-cloak:before { content: fa-content($fa-var-hood-cloak); } +.#{$fa-css-prefix}-hooli:before { content: fa-content($fa-var-hooli); } +.#{$fa-css-prefix}-horizontal-rule:before { content: fa-content($fa-var-horizontal-rule); } +.#{$fa-css-prefix}-hornbill:before { content: fa-content($fa-var-hornbill); } +.#{$fa-css-prefix}-horse:before { content: fa-content($fa-var-horse); } +.#{$fa-css-prefix}-horse-head:before { content: fa-content($fa-var-horse-head); } +.#{$fa-css-prefix}-horse-saddle:before { content: fa-content($fa-var-horse-saddle); } +.#{$fa-css-prefix}-hospital:before { content: fa-content($fa-var-hospital); } +.#{$fa-css-prefix}-hospital-alt:before { content: fa-content($fa-var-hospital-alt); } +.#{$fa-css-prefix}-hospital-symbol:before { content: fa-content($fa-var-hospital-symbol); } +.#{$fa-css-prefix}-hospital-user:before { content: fa-content($fa-var-hospital-user); } +.#{$fa-css-prefix}-hospitals:before { content: fa-content($fa-var-hospitals); } +.#{$fa-css-prefix}-hot-tub:before { content: fa-content($fa-var-hot-tub); } +.#{$fa-css-prefix}-hotdog:before { content: fa-content($fa-var-hotdog); } +.#{$fa-css-prefix}-hotel:before { content: fa-content($fa-var-hotel); } +.#{$fa-css-prefix}-hotjar:before { content: fa-content($fa-var-hotjar); } +.#{$fa-css-prefix}-hourglass:before { content: fa-content($fa-var-hourglass); } +.#{$fa-css-prefix}-hourglass-end:before { content: fa-content($fa-var-hourglass-end); } +.#{$fa-css-prefix}-hourglass-half:before { content: fa-content($fa-var-hourglass-half); } +.#{$fa-css-prefix}-hourglass-start:before { content: fa-content($fa-var-hourglass-start); } +.#{$fa-css-prefix}-house:before { content: fa-content($fa-var-house); } +.#{$fa-css-prefix}-house-damage:before { content: fa-content($fa-var-house-damage); } +.#{$fa-css-prefix}-house-day:before { content: fa-content($fa-var-house-day); } +.#{$fa-css-prefix}-house-flood:before { content: fa-content($fa-var-house-flood); } +.#{$fa-css-prefix}-house-leave:before { content: fa-content($fa-var-house-leave); } +.#{$fa-css-prefix}-house-night:before { content: fa-content($fa-var-house-night); } +.#{$fa-css-prefix}-house-return:before { content: fa-content($fa-var-house-return); } +.#{$fa-css-prefix}-house-signal:before { content: fa-content($fa-var-house-signal); } +.#{$fa-css-prefix}-house-user:before { content: fa-content($fa-var-house-user); } +.#{$fa-css-prefix}-houzz:before { content: fa-content($fa-var-houzz); } +.#{$fa-css-prefix}-hryvnia:before { content: fa-content($fa-var-hryvnia); } +.#{$fa-css-prefix}-html5:before { content: fa-content($fa-var-html5); } +.#{$fa-css-prefix}-hubspot:before { content: fa-content($fa-var-hubspot); } +.#{$fa-css-prefix}-humidity:before { content: fa-content($fa-var-humidity); } +.#{$fa-css-prefix}-hurricane:before { content: fa-content($fa-var-hurricane); } +.#{$fa-css-prefix}-i-cursor:before { content: fa-content($fa-var-i-cursor); } +.#{$fa-css-prefix}-ice-cream:before { content: fa-content($fa-var-ice-cream); } +.#{$fa-css-prefix}-ice-skate:before { content: fa-content($fa-var-ice-skate); } +.#{$fa-css-prefix}-icicles:before { content: fa-content($fa-var-icicles); } +.#{$fa-css-prefix}-icons:before { content: fa-content($fa-var-icons); } +.#{$fa-css-prefix}-icons-alt:before { content: fa-content($fa-var-icons-alt); } +.#{$fa-css-prefix}-id-badge:before { content: fa-content($fa-var-id-badge); } +.#{$fa-css-prefix}-id-card:before { content: fa-content($fa-var-id-card); } +.#{$fa-css-prefix}-id-card-alt:before { content: fa-content($fa-var-id-card-alt); } +.#{$fa-css-prefix}-ideal:before { content: fa-content($fa-var-ideal); } +.#{$fa-css-prefix}-igloo:before { content: fa-content($fa-var-igloo); } +.#{$fa-css-prefix}-image:before { content: fa-content($fa-var-image); } +.#{$fa-css-prefix}-image-polaroid:before { content: fa-content($fa-var-image-polaroid); } +.#{$fa-css-prefix}-images:before { content: fa-content($fa-var-images); } +.#{$fa-css-prefix}-imdb:before { content: fa-content($fa-var-imdb); } +.#{$fa-css-prefix}-inbox:before { content: fa-content($fa-var-inbox); } +.#{$fa-css-prefix}-inbox-in:before { content: fa-content($fa-var-inbox-in); } +.#{$fa-css-prefix}-inbox-out:before { content: fa-content($fa-var-inbox-out); } +.#{$fa-css-prefix}-indent:before { content: fa-content($fa-var-indent); } +.#{$fa-css-prefix}-industry:before { content: fa-content($fa-var-industry); } +.#{$fa-css-prefix}-industry-alt:before { content: fa-content($fa-var-industry-alt); } +.#{$fa-css-prefix}-infinity:before { content: fa-content($fa-var-infinity); } +.#{$fa-css-prefix}-info:before { content: fa-content($fa-var-info); } +.#{$fa-css-prefix}-info-circle:before { content: fa-content($fa-var-info-circle); } +.#{$fa-css-prefix}-info-square:before { content: fa-content($fa-var-info-square); } +.#{$fa-css-prefix}-inhaler:before { content: fa-content($fa-var-inhaler); } +.#{$fa-css-prefix}-innosoft:before { content: fa-content($fa-var-innosoft); } +.#{$fa-css-prefix}-instagram:before { content: fa-content($fa-var-instagram); } +.#{$fa-css-prefix}-instagram-square:before { content: fa-content($fa-var-instagram-square); } +.#{$fa-css-prefix}-instalod:before { content: fa-content($fa-var-instalod); } +.#{$fa-css-prefix}-integral:before { content: fa-content($fa-var-integral); } +.#{$fa-css-prefix}-intercom:before { content: fa-content($fa-var-intercom); } +.#{$fa-css-prefix}-internet-explorer:before { content: fa-content($fa-var-internet-explorer); } +.#{$fa-css-prefix}-intersection:before { content: fa-content($fa-var-intersection); } +.#{$fa-css-prefix}-inventory:before { content: fa-content($fa-var-inventory); } +.#{$fa-css-prefix}-invision:before { content: fa-content($fa-var-invision); } +.#{$fa-css-prefix}-ioxhost:before { content: fa-content($fa-var-ioxhost); } +.#{$fa-css-prefix}-island-tropical:before { content: fa-content($fa-var-island-tropical); } +.#{$fa-css-prefix}-italic:before { content: fa-content($fa-var-italic); } +.#{$fa-css-prefix}-itch-io:before { content: fa-content($fa-var-itch-io); } +.#{$fa-css-prefix}-itunes:before { content: fa-content($fa-var-itunes); } +.#{$fa-css-prefix}-itunes-note:before { content: fa-content($fa-var-itunes-note); } +.#{$fa-css-prefix}-jack-o-lantern:before { content: fa-content($fa-var-jack-o-lantern); } +.#{$fa-css-prefix}-java:before { content: fa-content($fa-var-java); } +.#{$fa-css-prefix}-jedi:before { content: fa-content($fa-var-jedi); } +.#{$fa-css-prefix}-jedi-order:before { content: fa-content($fa-var-jedi-order); } +.#{$fa-css-prefix}-jenkins:before { content: fa-content($fa-var-jenkins); } +.#{$fa-css-prefix}-jira:before { content: fa-content($fa-var-jira); } +.#{$fa-css-prefix}-joget:before { content: fa-content($fa-var-joget); } +.#{$fa-css-prefix}-joint:before { content: fa-content($fa-var-joint); } +.#{$fa-css-prefix}-joomla:before { content: fa-content($fa-var-joomla); } +.#{$fa-css-prefix}-journal-whills:before { content: fa-content($fa-var-journal-whills); } +.#{$fa-css-prefix}-joystick:before { content: fa-content($fa-var-joystick); } +.#{$fa-css-prefix}-js:before { content: fa-content($fa-var-js); } +.#{$fa-css-prefix}-js-square:before { content: fa-content($fa-var-js-square); } +.#{$fa-css-prefix}-jsfiddle:before { content: fa-content($fa-var-jsfiddle); } +.#{$fa-css-prefix}-jug:before { content: fa-content($fa-var-jug); } +.#{$fa-css-prefix}-kaaba:before { content: fa-content($fa-var-kaaba); } +.#{$fa-css-prefix}-kaggle:before { content: fa-content($fa-var-kaggle); } +.#{$fa-css-prefix}-kazoo:before { content: fa-content($fa-var-kazoo); } +.#{$fa-css-prefix}-kerning:before { content: fa-content($fa-var-kerning); } +.#{$fa-css-prefix}-key:before { content: fa-content($fa-var-key); } +.#{$fa-css-prefix}-key-skeleton:before { content: fa-content($fa-var-key-skeleton); } +.#{$fa-css-prefix}-keybase:before { content: fa-content($fa-var-keybase); } +.#{$fa-css-prefix}-keyboard:before { content: fa-content($fa-var-keyboard); } +.#{$fa-css-prefix}-keycdn:before { content: fa-content($fa-var-keycdn); } +.#{$fa-css-prefix}-keynote:before { content: fa-content($fa-var-keynote); } +.#{$fa-css-prefix}-khanda:before { content: fa-content($fa-var-khanda); } +.#{$fa-css-prefix}-kickstarter:before { content: fa-content($fa-var-kickstarter); } +.#{$fa-css-prefix}-kickstarter-k:before { content: fa-content($fa-var-kickstarter-k); } +.#{$fa-css-prefix}-kidneys:before { content: fa-content($fa-var-kidneys); } +.#{$fa-css-prefix}-kiss:before { content: fa-content($fa-var-kiss); } +.#{$fa-css-prefix}-kiss-beam:before { content: fa-content($fa-var-kiss-beam); } +.#{$fa-css-prefix}-kiss-wink-heart:before { content: fa-content($fa-var-kiss-wink-heart); } +.#{$fa-css-prefix}-kite:before { content: fa-content($fa-var-kite); } +.#{$fa-css-prefix}-kiwi-bird:before { content: fa-content($fa-var-kiwi-bird); } +.#{$fa-css-prefix}-knife-kitchen:before { content: fa-content($fa-var-knife-kitchen); } +.#{$fa-css-prefix}-korvue:before { content: fa-content($fa-var-korvue); } +.#{$fa-css-prefix}-lambda:before { content: fa-content($fa-var-lambda); } +.#{$fa-css-prefix}-lamp:before { content: fa-content($fa-var-lamp); } +.#{$fa-css-prefix}-lamp-desk:before { content: fa-content($fa-var-lamp-desk); } +.#{$fa-css-prefix}-lamp-floor:before { content: fa-content($fa-var-lamp-floor); } +.#{$fa-css-prefix}-landmark:before { content: fa-content($fa-var-landmark); } +.#{$fa-css-prefix}-landmark-alt:before { content: fa-content($fa-var-landmark-alt); } +.#{$fa-css-prefix}-language:before { content: fa-content($fa-var-language); } +.#{$fa-css-prefix}-laptop:before { content: fa-content($fa-var-laptop); } +.#{$fa-css-prefix}-laptop-code:before { content: fa-content($fa-var-laptop-code); } +.#{$fa-css-prefix}-laptop-house:before { content: fa-content($fa-var-laptop-house); } +.#{$fa-css-prefix}-laptop-medical:before { content: fa-content($fa-var-laptop-medical); } +.#{$fa-css-prefix}-laravel:before { content: fa-content($fa-var-laravel); } +.#{$fa-css-prefix}-lasso:before { content: fa-content($fa-var-lasso); } +.#{$fa-css-prefix}-lastfm:before { content: fa-content($fa-var-lastfm); } +.#{$fa-css-prefix}-lastfm-square:before { content: fa-content($fa-var-lastfm-square); } +.#{$fa-css-prefix}-laugh:before { content: fa-content($fa-var-laugh); } +.#{$fa-css-prefix}-laugh-beam:before { content: fa-content($fa-var-laugh-beam); } +.#{$fa-css-prefix}-laugh-squint:before { content: fa-content($fa-var-laugh-squint); } +.#{$fa-css-prefix}-laugh-wink:before { content: fa-content($fa-var-laugh-wink); } +.#{$fa-css-prefix}-layer-group:before { content: fa-content($fa-var-layer-group); } +.#{$fa-css-prefix}-layer-minus:before { content: fa-content($fa-var-layer-minus); } +.#{$fa-css-prefix}-layer-plus:before { content: fa-content($fa-var-layer-plus); } +.#{$fa-css-prefix}-leaf:before { content: fa-content($fa-var-leaf); } +.#{$fa-css-prefix}-leaf-heart:before { content: fa-content($fa-var-leaf-heart); } +.#{$fa-css-prefix}-leaf-maple:before { content: fa-content($fa-var-leaf-maple); } +.#{$fa-css-prefix}-leaf-oak:before { content: fa-content($fa-var-leaf-oak); } +.#{$fa-css-prefix}-leanpub:before { content: fa-content($fa-var-leanpub); } +.#{$fa-css-prefix}-lemon:before { content: fa-content($fa-var-lemon); } +.#{$fa-css-prefix}-less:before { content: fa-content($fa-var-less); } +.#{$fa-css-prefix}-less-than:before { content: fa-content($fa-var-less-than); } +.#{$fa-css-prefix}-less-than-equal:before { content: fa-content($fa-var-less-than-equal); } +.#{$fa-css-prefix}-level-down:before { content: fa-content($fa-var-level-down); } +.#{$fa-css-prefix}-level-down-alt:before { content: fa-content($fa-var-level-down-alt); } +.#{$fa-css-prefix}-level-up:before { content: fa-content($fa-var-level-up); } +.#{$fa-css-prefix}-level-up-alt:before { content: fa-content($fa-var-level-up-alt); } +.#{$fa-css-prefix}-life-ring:before { content: fa-content($fa-var-life-ring); } +.#{$fa-css-prefix}-light-ceiling:before { content: fa-content($fa-var-light-ceiling); } +.#{$fa-css-prefix}-light-switch:before { content: fa-content($fa-var-light-switch); } +.#{$fa-css-prefix}-light-switch-off:before { content: fa-content($fa-var-light-switch-off); } +.#{$fa-css-prefix}-light-switch-on:before { content: fa-content($fa-var-light-switch-on); } +.#{$fa-css-prefix}-lightbulb:before { content: fa-content($fa-var-lightbulb); } +.#{$fa-css-prefix}-lightbulb-dollar:before { content: fa-content($fa-var-lightbulb-dollar); } +.#{$fa-css-prefix}-lightbulb-exclamation:before { content: fa-content($fa-var-lightbulb-exclamation); } +.#{$fa-css-prefix}-lightbulb-on:before { content: fa-content($fa-var-lightbulb-on); } +.#{$fa-css-prefix}-lightbulb-slash:before { content: fa-content($fa-var-lightbulb-slash); } +.#{$fa-css-prefix}-lights-holiday:before { content: fa-content($fa-var-lights-holiday); } +.#{$fa-css-prefix}-line:before { content: fa-content($fa-var-line); } +.#{$fa-css-prefix}-line-columns:before { content: fa-content($fa-var-line-columns); } +.#{$fa-css-prefix}-line-height:before { content: fa-content($fa-var-line-height); } +.#{$fa-css-prefix}-link:before { content: fa-content($fa-var-link); } +.#{$fa-css-prefix}-linkedin:before { content: fa-content($fa-var-linkedin); } +.#{$fa-css-prefix}-linkedin-in:before { content: fa-content($fa-var-linkedin-in); } +.#{$fa-css-prefix}-linode:before { content: fa-content($fa-var-linode); } +.#{$fa-css-prefix}-linux:before { content: fa-content($fa-var-linux); } +.#{$fa-css-prefix}-lips:before { content: fa-content($fa-var-lips); } +.#{$fa-css-prefix}-lira-sign:before { content: fa-content($fa-var-lira-sign); } +.#{$fa-css-prefix}-list:before { content: fa-content($fa-var-list); } +.#{$fa-css-prefix}-list-alt:before { content: fa-content($fa-var-list-alt); } +.#{$fa-css-prefix}-list-music:before { content: fa-content($fa-var-list-music); } +.#{$fa-css-prefix}-list-ol:before { content: fa-content($fa-var-list-ol); } +.#{$fa-css-prefix}-list-ul:before { content: fa-content($fa-var-list-ul); } +.#{$fa-css-prefix}-location:before { content: fa-content($fa-var-location); } +.#{$fa-css-prefix}-location-arrow:before { content: fa-content($fa-var-location-arrow); } +.#{$fa-css-prefix}-location-circle:before { content: fa-content($fa-var-location-circle); } +.#{$fa-css-prefix}-location-slash:before { content: fa-content($fa-var-location-slash); } +.#{$fa-css-prefix}-lock:before { content: fa-content($fa-var-lock); } +.#{$fa-css-prefix}-lock-alt:before { content: fa-content($fa-var-lock-alt); } +.#{$fa-css-prefix}-lock-open:before { content: fa-content($fa-var-lock-open); } +.#{$fa-css-prefix}-lock-open-alt:before { content: fa-content($fa-var-lock-open-alt); } +.#{$fa-css-prefix}-long-arrow-alt-down:before { content: fa-content($fa-var-long-arrow-alt-down); } +.#{$fa-css-prefix}-long-arrow-alt-left:before { content: fa-content($fa-var-long-arrow-alt-left); } +.#{$fa-css-prefix}-long-arrow-alt-right:before { content: fa-content($fa-var-long-arrow-alt-right); } +.#{$fa-css-prefix}-long-arrow-alt-up:before { content: fa-content($fa-var-long-arrow-alt-up); } +.#{$fa-css-prefix}-long-arrow-down:before { content: fa-content($fa-var-long-arrow-down); } +.#{$fa-css-prefix}-long-arrow-left:before { content: fa-content($fa-var-long-arrow-left); } +.#{$fa-css-prefix}-long-arrow-right:before { content: fa-content($fa-var-long-arrow-right); } +.#{$fa-css-prefix}-long-arrow-up:before { content: fa-content($fa-var-long-arrow-up); } +.#{$fa-css-prefix}-loveseat:before { content: fa-content($fa-var-loveseat); } +.#{$fa-css-prefix}-low-vision:before { content: fa-content($fa-var-low-vision); } +.#{$fa-css-prefix}-luchador:before { content: fa-content($fa-var-luchador); } +.#{$fa-css-prefix}-luggage-cart:before { content: fa-content($fa-var-luggage-cart); } +.#{$fa-css-prefix}-lungs:before { content: fa-content($fa-var-lungs); } +.#{$fa-css-prefix}-lungs-virus:before { content: fa-content($fa-var-lungs-virus); } +.#{$fa-css-prefix}-lyft:before { content: fa-content($fa-var-lyft); } +.#{$fa-css-prefix}-mace:before { content: fa-content($fa-var-mace); } +.#{$fa-css-prefix}-magento:before { content: fa-content($fa-var-magento); } +.#{$fa-css-prefix}-magic:before { content: fa-content($fa-var-magic); } +.#{$fa-css-prefix}-magnet:before { content: fa-content($fa-var-magnet); } +.#{$fa-css-prefix}-mail-bulk:before { content: fa-content($fa-var-mail-bulk); } +.#{$fa-css-prefix}-mailbox:before { content: fa-content($fa-var-mailbox); } +.#{$fa-css-prefix}-mailchimp:before { content: fa-content($fa-var-mailchimp); } +.#{$fa-css-prefix}-male:before { content: fa-content($fa-var-male); } +.#{$fa-css-prefix}-mandalorian:before { content: fa-content($fa-var-mandalorian); } +.#{$fa-css-prefix}-mandolin:before { content: fa-content($fa-var-mandolin); } +.#{$fa-css-prefix}-map:before { content: fa-content($fa-var-map); } +.#{$fa-css-prefix}-map-marked:before { content: fa-content($fa-var-map-marked); } +.#{$fa-css-prefix}-map-marked-alt:before { content: fa-content($fa-var-map-marked-alt); } +.#{$fa-css-prefix}-map-marker:before { content: fa-content($fa-var-map-marker); } +.#{$fa-css-prefix}-map-marker-alt:before { content: fa-content($fa-var-map-marker-alt); } +.#{$fa-css-prefix}-map-marker-alt-slash:before { content: fa-content($fa-var-map-marker-alt-slash); } +.#{$fa-css-prefix}-map-marker-check:before { content: fa-content($fa-var-map-marker-check); } +.#{$fa-css-prefix}-map-marker-edit:before { content: fa-content($fa-var-map-marker-edit); } +.#{$fa-css-prefix}-map-marker-exclamation:before { content: fa-content($fa-var-map-marker-exclamation); } +.#{$fa-css-prefix}-map-marker-minus:before { content: fa-content($fa-var-map-marker-minus); } +.#{$fa-css-prefix}-map-marker-plus:before { content: fa-content($fa-var-map-marker-plus); } +.#{$fa-css-prefix}-map-marker-question:before { content: fa-content($fa-var-map-marker-question); } +.#{$fa-css-prefix}-map-marker-slash:before { content: fa-content($fa-var-map-marker-slash); } +.#{$fa-css-prefix}-map-marker-smile:before { content: fa-content($fa-var-map-marker-smile); } +.#{$fa-css-prefix}-map-marker-times:before { content: fa-content($fa-var-map-marker-times); } +.#{$fa-css-prefix}-map-pin:before { content: fa-content($fa-var-map-pin); } +.#{$fa-css-prefix}-map-signs:before { content: fa-content($fa-var-map-signs); } +.#{$fa-css-prefix}-markdown:before { content: fa-content($fa-var-markdown); } +.#{$fa-css-prefix}-marker:before { content: fa-content($fa-var-marker); } +.#{$fa-css-prefix}-mars:before { content: fa-content($fa-var-mars); } +.#{$fa-css-prefix}-mars-double:before { content: fa-content($fa-var-mars-double); } +.#{$fa-css-prefix}-mars-stroke:before { content: fa-content($fa-var-mars-stroke); } +.#{$fa-css-prefix}-mars-stroke-h:before { content: fa-content($fa-var-mars-stroke-h); } +.#{$fa-css-prefix}-mars-stroke-v:before { content: fa-content($fa-var-mars-stroke-v); } +.#{$fa-css-prefix}-mask:before { content: fa-content($fa-var-mask); } +.#{$fa-css-prefix}-mastodon:before { content: fa-content($fa-var-mastodon); } +.#{$fa-css-prefix}-maxcdn:before { content: fa-content($fa-var-maxcdn); } +.#{$fa-css-prefix}-mdb:before { content: fa-content($fa-var-mdb); } +.#{$fa-css-prefix}-meat:before { content: fa-content($fa-var-meat); } +.#{$fa-css-prefix}-medal:before { content: fa-content($fa-var-medal); } +.#{$fa-css-prefix}-medapps:before { content: fa-content($fa-var-medapps); } +.#{$fa-css-prefix}-medium:before { content: fa-content($fa-var-medium); } +.#{$fa-css-prefix}-medium-m:before { content: fa-content($fa-var-medium-m); } +.#{$fa-css-prefix}-medkit:before { content: fa-content($fa-var-medkit); } +.#{$fa-css-prefix}-medrt:before { content: fa-content($fa-var-medrt); } +.#{$fa-css-prefix}-meetup:before { content: fa-content($fa-var-meetup); } +.#{$fa-css-prefix}-megaphone:before { content: fa-content($fa-var-megaphone); } +.#{$fa-css-prefix}-megaport:before { content: fa-content($fa-var-megaport); } +.#{$fa-css-prefix}-meh:before { content: fa-content($fa-var-meh); } +.#{$fa-css-prefix}-meh-blank:before { content: fa-content($fa-var-meh-blank); } +.#{$fa-css-prefix}-meh-rolling-eyes:before { content: fa-content($fa-var-meh-rolling-eyes); } +.#{$fa-css-prefix}-memory:before { content: fa-content($fa-var-memory); } +.#{$fa-css-prefix}-mendeley:before { content: fa-content($fa-var-mendeley); } +.#{$fa-css-prefix}-menorah:before { content: fa-content($fa-var-menorah); } +.#{$fa-css-prefix}-mercury:before { content: fa-content($fa-var-mercury); } +.#{$fa-css-prefix}-meteor:before { content: fa-content($fa-var-meteor); } +.#{$fa-css-prefix}-microblog:before { content: fa-content($fa-var-microblog); } +.#{$fa-css-prefix}-microchip:before { content: fa-content($fa-var-microchip); } +.#{$fa-css-prefix}-microphone:before { content: fa-content($fa-var-microphone); } +.#{$fa-css-prefix}-microphone-alt:before { content: fa-content($fa-var-microphone-alt); } +.#{$fa-css-prefix}-microphone-alt-slash:before { content: fa-content($fa-var-microphone-alt-slash); } +.#{$fa-css-prefix}-microphone-slash:before { content: fa-content($fa-var-microphone-slash); } +.#{$fa-css-prefix}-microphone-stand:before { content: fa-content($fa-var-microphone-stand); } +.#{$fa-css-prefix}-microscope:before { content: fa-content($fa-var-microscope); } +.#{$fa-css-prefix}-microsoft:before { content: fa-content($fa-var-microsoft); } +.#{$fa-css-prefix}-microwave:before { content: fa-content($fa-var-microwave); } +.#{$fa-css-prefix}-mind-share:before { content: fa-content($fa-var-mind-share); } +.#{$fa-css-prefix}-minus:before { content: fa-content($fa-var-minus); } +.#{$fa-css-prefix}-minus-circle:before { content: fa-content($fa-var-minus-circle); } +.#{$fa-css-prefix}-minus-hexagon:before { content: fa-content($fa-var-minus-hexagon); } +.#{$fa-css-prefix}-minus-octagon:before { content: fa-content($fa-var-minus-octagon); } +.#{$fa-css-prefix}-minus-square:before { content: fa-content($fa-var-minus-square); } +.#{$fa-css-prefix}-mistletoe:before { content: fa-content($fa-var-mistletoe); } +.#{$fa-css-prefix}-mitten:before { content: fa-content($fa-var-mitten); } +.#{$fa-css-prefix}-mix:before { content: fa-content($fa-var-mix); } +.#{$fa-css-prefix}-mixcloud:before { content: fa-content($fa-var-mixcloud); } +.#{$fa-css-prefix}-mixer:before { content: fa-content($fa-var-mixer); } +.#{$fa-css-prefix}-mizuni:before { content: fa-content($fa-var-mizuni); } +.#{$fa-css-prefix}-mobile:before { content: fa-content($fa-var-mobile); } +.#{$fa-css-prefix}-mobile-alt:before { content: fa-content($fa-var-mobile-alt); } +.#{$fa-css-prefix}-mobile-android:before { content: fa-content($fa-var-mobile-android); } +.#{$fa-css-prefix}-mobile-android-alt:before { content: fa-content($fa-var-mobile-android-alt); } +.#{$fa-css-prefix}-modx:before { content: fa-content($fa-var-modx); } +.#{$fa-css-prefix}-monero:before { content: fa-content($fa-var-monero); } +.#{$fa-css-prefix}-money-bill:before { content: fa-content($fa-var-money-bill); } +.#{$fa-css-prefix}-money-bill-alt:before { content: fa-content($fa-var-money-bill-alt); } +.#{$fa-css-prefix}-money-bill-wave:before { content: fa-content($fa-var-money-bill-wave); } +.#{$fa-css-prefix}-money-bill-wave-alt:before { content: fa-content($fa-var-money-bill-wave-alt); } +.#{$fa-css-prefix}-money-check:before { content: fa-content($fa-var-money-check); } +.#{$fa-css-prefix}-money-check-alt:before { content: fa-content($fa-var-money-check-alt); } +.#{$fa-css-prefix}-money-check-edit:before { content: fa-content($fa-var-money-check-edit); } +.#{$fa-css-prefix}-money-check-edit-alt:before { content: fa-content($fa-var-money-check-edit-alt); } +.#{$fa-css-prefix}-monitor-heart-rate:before { content: fa-content($fa-var-monitor-heart-rate); } +.#{$fa-css-prefix}-monkey:before { content: fa-content($fa-var-monkey); } +.#{$fa-css-prefix}-monument:before { content: fa-content($fa-var-monument); } +.#{$fa-css-prefix}-moon:before { content: fa-content($fa-var-moon); } +.#{$fa-css-prefix}-moon-cloud:before { content: fa-content($fa-var-moon-cloud); } +.#{$fa-css-prefix}-moon-stars:before { content: fa-content($fa-var-moon-stars); } +.#{$fa-css-prefix}-mortar-pestle:before { content: fa-content($fa-var-mortar-pestle); } +.#{$fa-css-prefix}-mosque:before { content: fa-content($fa-var-mosque); } +.#{$fa-css-prefix}-motorcycle:before { content: fa-content($fa-var-motorcycle); } +.#{$fa-css-prefix}-mountain:before { content: fa-content($fa-var-mountain); } +.#{$fa-css-prefix}-mountains:before { content: fa-content($fa-var-mountains); } +.#{$fa-css-prefix}-mouse:before { content: fa-content($fa-var-mouse); } +.#{$fa-css-prefix}-mouse-alt:before { content: fa-content($fa-var-mouse-alt); } +.#{$fa-css-prefix}-mouse-pointer:before { content: fa-content($fa-var-mouse-pointer); } +.#{$fa-css-prefix}-mp3-player:before { content: fa-content($fa-var-mp3-player); } +.#{$fa-css-prefix}-mug:before { content: fa-content($fa-var-mug); } +.#{$fa-css-prefix}-mug-hot:before { content: fa-content($fa-var-mug-hot); } +.#{$fa-css-prefix}-mug-marshmallows:before { content: fa-content($fa-var-mug-marshmallows); } +.#{$fa-css-prefix}-mug-tea:before { content: fa-content($fa-var-mug-tea); } +.#{$fa-css-prefix}-music:before { content: fa-content($fa-var-music); } +.#{$fa-css-prefix}-music-alt:before { content: fa-content($fa-var-music-alt); } +.#{$fa-css-prefix}-music-alt-slash:before { content: fa-content($fa-var-music-alt-slash); } +.#{$fa-css-prefix}-music-slash:before { content: fa-content($fa-var-music-slash); } +.#{$fa-css-prefix}-napster:before { content: fa-content($fa-var-napster); } +.#{$fa-css-prefix}-narwhal:before { content: fa-content($fa-var-narwhal); } +.#{$fa-css-prefix}-neos:before { content: fa-content($fa-var-neos); } +.#{$fa-css-prefix}-network-wired:before { content: fa-content($fa-var-network-wired); } +.#{$fa-css-prefix}-neuter:before { content: fa-content($fa-var-neuter); } +.#{$fa-css-prefix}-newspaper:before { content: fa-content($fa-var-newspaper); } +.#{$fa-css-prefix}-nimblr:before { content: fa-content($fa-var-nimblr); } +.#{$fa-css-prefix}-node:before { content: fa-content($fa-var-node); } +.#{$fa-css-prefix}-node-js:before { content: fa-content($fa-var-node-js); } +.#{$fa-css-prefix}-not-equal:before { content: fa-content($fa-var-not-equal); } +.#{$fa-css-prefix}-notes-medical:before { content: fa-content($fa-var-notes-medical); } +.#{$fa-css-prefix}-npm:before { content: fa-content($fa-var-npm); } +.#{$fa-css-prefix}-ns8:before { content: fa-content($fa-var-ns8); } +.#{$fa-css-prefix}-nutritionix:before { content: fa-content($fa-var-nutritionix); } +.#{$fa-css-prefix}-object-group:before { content: fa-content($fa-var-object-group); } +.#{$fa-css-prefix}-object-ungroup:before { content: fa-content($fa-var-object-ungroup); } +.#{$fa-css-prefix}-octagon:before { content: fa-content($fa-var-octagon); } +.#{$fa-css-prefix}-octopus-deploy:before { content: fa-content($fa-var-octopus-deploy); } +.#{$fa-css-prefix}-odnoklassniki:before { content: fa-content($fa-var-odnoklassniki); } +.#{$fa-css-prefix}-odnoklassniki-square:before { content: fa-content($fa-var-odnoklassniki-square); } +.#{$fa-css-prefix}-oil-can:before { content: fa-content($fa-var-oil-can); } +.#{$fa-css-prefix}-oil-temp:before { content: fa-content($fa-var-oil-temp); } +.#{$fa-css-prefix}-old-republic:before { content: fa-content($fa-var-old-republic); } +.#{$fa-css-prefix}-om:before { content: fa-content($fa-var-om); } +.#{$fa-css-prefix}-omega:before { content: fa-content($fa-var-omega); } +.#{$fa-css-prefix}-opencart:before { content: fa-content($fa-var-opencart); } +.#{$fa-css-prefix}-openid:before { content: fa-content($fa-var-openid); } +.#{$fa-css-prefix}-opera:before { content: fa-content($fa-var-opera); } +.#{$fa-css-prefix}-optin-monster:before { content: fa-content($fa-var-optin-monster); } +.#{$fa-css-prefix}-orcid:before { content: fa-content($fa-var-orcid); } +.#{$fa-css-prefix}-ornament:before { content: fa-content($fa-var-ornament); } +.#{$fa-css-prefix}-osi:before { content: fa-content($fa-var-osi); } +.#{$fa-css-prefix}-otter:before { content: fa-content($fa-var-otter); } +.#{$fa-css-prefix}-outdent:before { content: fa-content($fa-var-outdent); } +.#{$fa-css-prefix}-outlet:before { content: fa-content($fa-var-outlet); } +.#{$fa-css-prefix}-oven:before { content: fa-content($fa-var-oven); } +.#{$fa-css-prefix}-overline:before { content: fa-content($fa-var-overline); } +.#{$fa-css-prefix}-page-break:before { content: fa-content($fa-var-page-break); } +.#{$fa-css-prefix}-page4:before { content: fa-content($fa-var-page4); } +.#{$fa-css-prefix}-pagelines:before { content: fa-content($fa-var-pagelines); } +.#{$fa-css-prefix}-pager:before { content: fa-content($fa-var-pager); } +.#{$fa-css-prefix}-paint-brush:before { content: fa-content($fa-var-paint-brush); } +.#{$fa-css-prefix}-paint-brush-alt:before { content: fa-content($fa-var-paint-brush-alt); } +.#{$fa-css-prefix}-paint-roller:before { content: fa-content($fa-var-paint-roller); } +.#{$fa-css-prefix}-palette:before { content: fa-content($fa-var-palette); } +.#{$fa-css-prefix}-palfed:before { content: fa-content($fa-var-palfed); } +.#{$fa-css-prefix}-pallet:before { content: fa-content($fa-var-pallet); } +.#{$fa-css-prefix}-pallet-alt:before { content: fa-content($fa-var-pallet-alt); } +.#{$fa-css-prefix}-paper-plane:before { content: fa-content($fa-var-paper-plane); } +.#{$fa-css-prefix}-paperclip:before { content: fa-content($fa-var-paperclip); } +.#{$fa-css-prefix}-parachute-box:before { content: fa-content($fa-var-parachute-box); } +.#{$fa-css-prefix}-paragraph:before { content: fa-content($fa-var-paragraph); } +.#{$fa-css-prefix}-paragraph-rtl:before { content: fa-content($fa-var-paragraph-rtl); } +.#{$fa-css-prefix}-parking:before { content: fa-content($fa-var-parking); } +.#{$fa-css-prefix}-parking-circle:before { content: fa-content($fa-var-parking-circle); } +.#{$fa-css-prefix}-parking-circle-slash:before { content: fa-content($fa-var-parking-circle-slash); } +.#{$fa-css-prefix}-parking-slash:before { content: fa-content($fa-var-parking-slash); } +.#{$fa-css-prefix}-passport:before { content: fa-content($fa-var-passport); } +.#{$fa-css-prefix}-pastafarianism:before { content: fa-content($fa-var-pastafarianism); } +.#{$fa-css-prefix}-paste:before { content: fa-content($fa-var-paste); } +.#{$fa-css-prefix}-patreon:before { content: fa-content($fa-var-patreon); } +.#{$fa-css-prefix}-pause:before { content: fa-content($fa-var-pause); } +.#{$fa-css-prefix}-pause-circle:before { content: fa-content($fa-var-pause-circle); } +.#{$fa-css-prefix}-paw:before { content: fa-content($fa-var-paw); } +.#{$fa-css-prefix}-paw-alt:before { content: fa-content($fa-var-paw-alt); } +.#{$fa-css-prefix}-paw-claws:before { content: fa-content($fa-var-paw-claws); } +.#{$fa-css-prefix}-paypal:before { content: fa-content($fa-var-paypal); } +.#{$fa-css-prefix}-peace:before { content: fa-content($fa-var-peace); } +.#{$fa-css-prefix}-pegasus:before { content: fa-content($fa-var-pegasus); } +.#{$fa-css-prefix}-pen:before { content: fa-content($fa-var-pen); } +.#{$fa-css-prefix}-pen-alt:before { content: fa-content($fa-var-pen-alt); } +.#{$fa-css-prefix}-pen-fancy:before { content: fa-content($fa-var-pen-fancy); } +.#{$fa-css-prefix}-pen-nib:before { content: fa-content($fa-var-pen-nib); } +.#{$fa-css-prefix}-pen-square:before { content: fa-content($fa-var-pen-square); } +.#{$fa-css-prefix}-pencil:before { content: fa-content($fa-var-pencil); } +.#{$fa-css-prefix}-pencil-alt:before { content: fa-content($fa-var-pencil-alt); } +.#{$fa-css-prefix}-pencil-paintbrush:before { content: fa-content($fa-var-pencil-paintbrush); } +.#{$fa-css-prefix}-pencil-ruler:before { content: fa-content($fa-var-pencil-ruler); } +.#{$fa-css-prefix}-pennant:before { content: fa-content($fa-var-pennant); } +.#{$fa-css-prefix}-penny-arcade:before { content: fa-content($fa-var-penny-arcade); } +.#{$fa-css-prefix}-people-arrows:before { content: fa-content($fa-var-people-arrows); } +.#{$fa-css-prefix}-people-carry:before { content: fa-content($fa-var-people-carry); } +.#{$fa-css-prefix}-pepper-hot:before { content: fa-content($fa-var-pepper-hot); } +.#{$fa-css-prefix}-perbyte:before { content: fa-content($fa-var-perbyte); } +.#{$fa-css-prefix}-percent:before { content: fa-content($fa-var-percent); } +.#{$fa-css-prefix}-percentage:before { content: fa-content($fa-var-percentage); } +.#{$fa-css-prefix}-periscope:before { content: fa-content($fa-var-periscope); } +.#{$fa-css-prefix}-person-booth:before { content: fa-content($fa-var-person-booth); } +.#{$fa-css-prefix}-person-carry:before { content: fa-content($fa-var-person-carry); } +.#{$fa-css-prefix}-person-dolly:before { content: fa-content($fa-var-person-dolly); } +.#{$fa-css-prefix}-person-dolly-empty:before { content: fa-content($fa-var-person-dolly-empty); } +.#{$fa-css-prefix}-person-sign:before { content: fa-content($fa-var-person-sign); } +.#{$fa-css-prefix}-phabricator:before { content: fa-content($fa-var-phabricator); } +.#{$fa-css-prefix}-phoenix-framework:before { content: fa-content($fa-var-phoenix-framework); } +.#{$fa-css-prefix}-phoenix-squadron:before { content: fa-content($fa-var-phoenix-squadron); } +.#{$fa-css-prefix}-phone:before { content: fa-content($fa-var-phone); } +.#{$fa-css-prefix}-phone-alt:before { content: fa-content($fa-var-phone-alt); } +.#{$fa-css-prefix}-phone-laptop:before { content: fa-content($fa-var-phone-laptop); } +.#{$fa-css-prefix}-phone-office:before { content: fa-content($fa-var-phone-office); } +.#{$fa-css-prefix}-phone-plus:before { content: fa-content($fa-var-phone-plus); } +.#{$fa-css-prefix}-phone-rotary:before { content: fa-content($fa-var-phone-rotary); } +.#{$fa-css-prefix}-phone-slash:before { content: fa-content($fa-var-phone-slash); } +.#{$fa-css-prefix}-phone-square:before { content: fa-content($fa-var-phone-square); } +.#{$fa-css-prefix}-phone-square-alt:before { content: fa-content($fa-var-phone-square-alt); } +.#{$fa-css-prefix}-phone-volume:before { content: fa-content($fa-var-phone-volume); } +.#{$fa-css-prefix}-photo-video:before { content: fa-content($fa-var-photo-video); } +.#{$fa-css-prefix}-php:before { content: fa-content($fa-var-php); } +.#{$fa-css-prefix}-pi:before { content: fa-content($fa-var-pi); } +.#{$fa-css-prefix}-piano:before { content: fa-content($fa-var-piano); } +.#{$fa-css-prefix}-piano-keyboard:before { content: fa-content($fa-var-piano-keyboard); } +.#{$fa-css-prefix}-pie:before { content: fa-content($fa-var-pie); } +.#{$fa-css-prefix}-pied-piper:before { content: fa-content($fa-var-pied-piper); } +.#{$fa-css-prefix}-pied-piper-alt:before { content: fa-content($fa-var-pied-piper-alt); } +.#{$fa-css-prefix}-pied-piper-hat:before { content: fa-content($fa-var-pied-piper-hat); } +.#{$fa-css-prefix}-pied-piper-pp:before { content: fa-content($fa-var-pied-piper-pp); } +.#{$fa-css-prefix}-pied-piper-square:before { content: fa-content($fa-var-pied-piper-square); } +.#{$fa-css-prefix}-pig:before { content: fa-content($fa-var-pig); } +.#{$fa-css-prefix}-piggy-bank:before { content: fa-content($fa-var-piggy-bank); } +.#{$fa-css-prefix}-pills:before { content: fa-content($fa-var-pills); } +.#{$fa-css-prefix}-pinterest:before { content: fa-content($fa-var-pinterest); } +.#{$fa-css-prefix}-pinterest-p:before { content: fa-content($fa-var-pinterest-p); } +.#{$fa-css-prefix}-pinterest-square:before { content: fa-content($fa-var-pinterest-square); } +.#{$fa-css-prefix}-pizza:before { content: fa-content($fa-var-pizza); } +.#{$fa-css-prefix}-pizza-slice:before { content: fa-content($fa-var-pizza-slice); } +.#{$fa-css-prefix}-place-of-worship:before { content: fa-content($fa-var-place-of-worship); } +.#{$fa-css-prefix}-plane:before { content: fa-content($fa-var-plane); } +.#{$fa-css-prefix}-plane-alt:before { content: fa-content($fa-var-plane-alt); } +.#{$fa-css-prefix}-plane-arrival:before { content: fa-content($fa-var-plane-arrival); } +.#{$fa-css-prefix}-plane-departure:before { content: fa-content($fa-var-plane-departure); } +.#{$fa-css-prefix}-plane-slash:before { content: fa-content($fa-var-plane-slash); } +.#{$fa-css-prefix}-planet-moon:before { content: fa-content($fa-var-planet-moon); } +.#{$fa-css-prefix}-planet-ringed:before { content: fa-content($fa-var-planet-ringed); } +.#{$fa-css-prefix}-play:before { content: fa-content($fa-var-play); } +.#{$fa-css-prefix}-play-circle:before { content: fa-content($fa-var-play-circle); } +.#{$fa-css-prefix}-playstation:before { content: fa-content($fa-var-playstation); } +.#{$fa-css-prefix}-plug:before { content: fa-content($fa-var-plug); } +.#{$fa-css-prefix}-plus:before { content: fa-content($fa-var-plus); } +.#{$fa-css-prefix}-plus-circle:before { content: fa-content($fa-var-plus-circle); } +.#{$fa-css-prefix}-plus-hexagon:before { content: fa-content($fa-var-plus-hexagon); } +.#{$fa-css-prefix}-plus-octagon:before { content: fa-content($fa-var-plus-octagon); } +.#{$fa-css-prefix}-plus-square:before { content: fa-content($fa-var-plus-square); } +.#{$fa-css-prefix}-podcast:before { content: fa-content($fa-var-podcast); } +.#{$fa-css-prefix}-podium:before { content: fa-content($fa-var-podium); } +.#{$fa-css-prefix}-podium-star:before { content: fa-content($fa-var-podium-star); } +.#{$fa-css-prefix}-police-box:before { content: fa-content($fa-var-police-box); } +.#{$fa-css-prefix}-poll:before { content: fa-content($fa-var-poll); } +.#{$fa-css-prefix}-poll-h:before { content: fa-content($fa-var-poll-h); } +.#{$fa-css-prefix}-poll-people:before { content: fa-content($fa-var-poll-people); } +.#{$fa-css-prefix}-poo:before { content: fa-content($fa-var-poo); } +.#{$fa-css-prefix}-poo-storm:before { content: fa-content($fa-var-poo-storm); } +.#{$fa-css-prefix}-poop:before { content: fa-content($fa-var-poop); } +.#{$fa-css-prefix}-popcorn:before { content: fa-content($fa-var-popcorn); } +.#{$fa-css-prefix}-portal-enter:before { content: fa-content($fa-var-portal-enter); } +.#{$fa-css-prefix}-portal-exit:before { content: fa-content($fa-var-portal-exit); } +.#{$fa-css-prefix}-portrait:before { content: fa-content($fa-var-portrait); } +.#{$fa-css-prefix}-pound-sign:before { content: fa-content($fa-var-pound-sign); } +.#{$fa-css-prefix}-power-off:before { content: fa-content($fa-var-power-off); } +.#{$fa-css-prefix}-pray:before { content: fa-content($fa-var-pray); } +.#{$fa-css-prefix}-praying-hands:before { content: fa-content($fa-var-praying-hands); } +.#{$fa-css-prefix}-prescription:before { content: fa-content($fa-var-prescription); } +.#{$fa-css-prefix}-prescription-bottle:before { content: fa-content($fa-var-prescription-bottle); } +.#{$fa-css-prefix}-prescription-bottle-alt:before { content: fa-content($fa-var-prescription-bottle-alt); } +.#{$fa-css-prefix}-presentation:before { content: fa-content($fa-var-presentation); } +.#{$fa-css-prefix}-print:before { content: fa-content($fa-var-print); } +.#{$fa-css-prefix}-print-search:before { content: fa-content($fa-var-print-search); } +.#{$fa-css-prefix}-print-slash:before { content: fa-content($fa-var-print-slash); } +.#{$fa-css-prefix}-procedures:before { content: fa-content($fa-var-procedures); } +.#{$fa-css-prefix}-product-hunt:before { content: fa-content($fa-var-product-hunt); } +.#{$fa-css-prefix}-project-diagram:before { content: fa-content($fa-var-project-diagram); } +.#{$fa-css-prefix}-projector:before { content: fa-content($fa-var-projector); } +.#{$fa-css-prefix}-pump-medical:before { content: fa-content($fa-var-pump-medical); } +.#{$fa-css-prefix}-pump-soap:before { content: fa-content($fa-var-pump-soap); } +.#{$fa-css-prefix}-pumpkin:before { content: fa-content($fa-var-pumpkin); } +.#{$fa-css-prefix}-pushed:before { content: fa-content($fa-var-pushed); } +.#{$fa-css-prefix}-puzzle-piece:before { content: fa-content($fa-var-puzzle-piece); } +.#{$fa-css-prefix}-python:before { content: fa-content($fa-var-python); } +.#{$fa-css-prefix}-qq:before { content: fa-content($fa-var-qq); } +.#{$fa-css-prefix}-qrcode:before { content: fa-content($fa-var-qrcode); } +.#{$fa-css-prefix}-question:before { content: fa-content($fa-var-question); } +.#{$fa-css-prefix}-question-circle:before { content: fa-content($fa-var-question-circle); } +.#{$fa-css-prefix}-question-square:before { content: fa-content($fa-var-question-square); } +.#{$fa-css-prefix}-quidditch:before { content: fa-content($fa-var-quidditch); } +.#{$fa-css-prefix}-quinscape:before { content: fa-content($fa-var-quinscape); } +.#{$fa-css-prefix}-quora:before { content: fa-content($fa-var-quora); } +.#{$fa-css-prefix}-quote-left:before { content: fa-content($fa-var-quote-left); } +.#{$fa-css-prefix}-quote-right:before { content: fa-content($fa-var-quote-right); } +.#{$fa-css-prefix}-quran:before { content: fa-content($fa-var-quran); } +.#{$fa-css-prefix}-r-project:before { content: fa-content($fa-var-r-project); } +.#{$fa-css-prefix}-rabbit:before { content: fa-content($fa-var-rabbit); } +.#{$fa-css-prefix}-rabbit-fast:before { content: fa-content($fa-var-rabbit-fast); } +.#{$fa-css-prefix}-racquet:before { content: fa-content($fa-var-racquet); } +.#{$fa-css-prefix}-radar:before { content: fa-content($fa-var-radar); } +.#{$fa-css-prefix}-radiation:before { content: fa-content($fa-var-radiation); } +.#{$fa-css-prefix}-radiation-alt:before { content: fa-content($fa-var-radiation-alt); } +.#{$fa-css-prefix}-radio:before { content: fa-content($fa-var-radio); } +.#{$fa-css-prefix}-radio-alt:before { content: fa-content($fa-var-radio-alt); } +.#{$fa-css-prefix}-rainbow:before { content: fa-content($fa-var-rainbow); } +.#{$fa-css-prefix}-raindrops:before { content: fa-content($fa-var-raindrops); } +.#{$fa-css-prefix}-ram:before { content: fa-content($fa-var-ram); } +.#{$fa-css-prefix}-ramp-loading:before { content: fa-content($fa-var-ramp-loading); } +.#{$fa-css-prefix}-random:before { content: fa-content($fa-var-random); } +.#{$fa-css-prefix}-raspberry-pi:before { content: fa-content($fa-var-raspberry-pi); } +.#{$fa-css-prefix}-ravelry:before { content: fa-content($fa-var-ravelry); } +.#{$fa-css-prefix}-raygun:before { content: fa-content($fa-var-raygun); } +.#{$fa-css-prefix}-react:before { content: fa-content($fa-var-react); } +.#{$fa-css-prefix}-reacteurope:before { content: fa-content($fa-var-reacteurope); } +.#{$fa-css-prefix}-readme:before { content: fa-content($fa-var-readme); } +.#{$fa-css-prefix}-rebel:before { content: fa-content($fa-var-rebel); } +.#{$fa-css-prefix}-receipt:before { content: fa-content($fa-var-receipt); } +.#{$fa-css-prefix}-record-vinyl:before { content: fa-content($fa-var-record-vinyl); } +.#{$fa-css-prefix}-rectangle-landscape:before { content: fa-content($fa-var-rectangle-landscape); } +.#{$fa-css-prefix}-rectangle-portrait:before { content: fa-content($fa-var-rectangle-portrait); } +.#{$fa-css-prefix}-rectangle-wide:before { content: fa-content($fa-var-rectangle-wide); } +.#{$fa-css-prefix}-recycle:before { content: fa-content($fa-var-recycle); } +.#{$fa-css-prefix}-red-river:before { content: fa-content($fa-var-red-river); } +.#{$fa-css-prefix}-reddit:before { content: fa-content($fa-var-reddit); } +.#{$fa-css-prefix}-reddit-alien:before { content: fa-content($fa-var-reddit-alien); } +.#{$fa-css-prefix}-reddit-square:before { content: fa-content($fa-var-reddit-square); } +.#{$fa-css-prefix}-redhat:before { content: fa-content($fa-var-redhat); } +.#{$fa-css-prefix}-redo:before { content: fa-content($fa-var-redo); } +.#{$fa-css-prefix}-redo-alt:before { content: fa-content($fa-var-redo-alt); } +.#{$fa-css-prefix}-refrigerator:before { content: fa-content($fa-var-refrigerator); } +.#{$fa-css-prefix}-registered:before { content: fa-content($fa-var-registered); } +.#{$fa-css-prefix}-remove-format:before { content: fa-content($fa-var-remove-format); } +.#{$fa-css-prefix}-renren:before { content: fa-content($fa-var-renren); } +.#{$fa-css-prefix}-repeat:before { content: fa-content($fa-var-repeat); } +.#{$fa-css-prefix}-repeat-1:before { content: fa-content($fa-var-repeat-1); } +.#{$fa-css-prefix}-repeat-1-alt:before { content: fa-content($fa-var-repeat-1-alt); } +.#{$fa-css-prefix}-repeat-alt:before { content: fa-content($fa-var-repeat-alt); } +.#{$fa-css-prefix}-reply:before { content: fa-content($fa-var-reply); } +.#{$fa-css-prefix}-reply-all:before { content: fa-content($fa-var-reply-all); } +.#{$fa-css-prefix}-replyd:before { content: fa-content($fa-var-replyd); } +.#{$fa-css-prefix}-republican:before { content: fa-content($fa-var-republican); } +.#{$fa-css-prefix}-researchgate:before { content: fa-content($fa-var-researchgate); } +.#{$fa-css-prefix}-resolving:before { content: fa-content($fa-var-resolving); } +.#{$fa-css-prefix}-restroom:before { content: fa-content($fa-var-restroom); } +.#{$fa-css-prefix}-retweet:before { content: fa-content($fa-var-retweet); } +.#{$fa-css-prefix}-retweet-alt:before { content: fa-content($fa-var-retweet-alt); } +.#{$fa-css-prefix}-rev:before { content: fa-content($fa-var-rev); } +.#{$fa-css-prefix}-ribbon:before { content: fa-content($fa-var-ribbon); } +.#{$fa-css-prefix}-ring:before { content: fa-content($fa-var-ring); } +.#{$fa-css-prefix}-rings-wedding:before { content: fa-content($fa-var-rings-wedding); } +.#{$fa-css-prefix}-road:before { content: fa-content($fa-var-road); } +.#{$fa-css-prefix}-robot:before { content: fa-content($fa-var-robot); } +.#{$fa-css-prefix}-rocket:before { content: fa-content($fa-var-rocket); } +.#{$fa-css-prefix}-rocket-launch:before { content: fa-content($fa-var-rocket-launch); } +.#{$fa-css-prefix}-rocketchat:before { content: fa-content($fa-var-rocketchat); } +.#{$fa-css-prefix}-rockrms:before { content: fa-content($fa-var-rockrms); } +.#{$fa-css-prefix}-route:before { content: fa-content($fa-var-route); } +.#{$fa-css-prefix}-route-highway:before { content: fa-content($fa-var-route-highway); } +.#{$fa-css-prefix}-route-interstate:before { content: fa-content($fa-var-route-interstate); } +.#{$fa-css-prefix}-router:before { content: fa-content($fa-var-router); } +.#{$fa-css-prefix}-rss:before { content: fa-content($fa-var-rss); } +.#{$fa-css-prefix}-rss-square:before { content: fa-content($fa-var-rss-square); } +.#{$fa-css-prefix}-ruble-sign:before { content: fa-content($fa-var-ruble-sign); } +.#{$fa-css-prefix}-ruler:before { content: fa-content($fa-var-ruler); } +.#{$fa-css-prefix}-ruler-combined:before { content: fa-content($fa-var-ruler-combined); } +.#{$fa-css-prefix}-ruler-horizontal:before { content: fa-content($fa-var-ruler-horizontal); } +.#{$fa-css-prefix}-ruler-triangle:before { content: fa-content($fa-var-ruler-triangle); } +.#{$fa-css-prefix}-ruler-vertical:before { content: fa-content($fa-var-ruler-vertical); } +.#{$fa-css-prefix}-running:before { content: fa-content($fa-var-running); } +.#{$fa-css-prefix}-rupee-sign:before { content: fa-content($fa-var-rupee-sign); } +.#{$fa-css-prefix}-rust:before { content: fa-content($fa-var-rust); } +.#{$fa-css-prefix}-rv:before { content: fa-content($fa-var-rv); } +.#{$fa-css-prefix}-sack:before { content: fa-content($fa-var-sack); } +.#{$fa-css-prefix}-sack-dollar:before { content: fa-content($fa-var-sack-dollar); } +.#{$fa-css-prefix}-sad-cry:before { content: fa-content($fa-var-sad-cry); } +.#{$fa-css-prefix}-sad-tear:before { content: fa-content($fa-var-sad-tear); } +.#{$fa-css-prefix}-safari:before { content: fa-content($fa-var-safari); } +.#{$fa-css-prefix}-salad:before { content: fa-content($fa-var-salad); } +.#{$fa-css-prefix}-salesforce:before { content: fa-content($fa-var-salesforce); } +.#{$fa-css-prefix}-sandwich:before { content: fa-content($fa-var-sandwich); } +.#{$fa-css-prefix}-sass:before { content: fa-content($fa-var-sass); } +.#{$fa-css-prefix}-satellite:before { content: fa-content($fa-var-satellite); } +.#{$fa-css-prefix}-satellite-dish:before { content: fa-content($fa-var-satellite-dish); } +.#{$fa-css-prefix}-sausage:before { content: fa-content($fa-var-sausage); } +.#{$fa-css-prefix}-save:before { content: fa-content($fa-var-save); } +.#{$fa-css-prefix}-sax-hot:before { content: fa-content($fa-var-sax-hot); } +.#{$fa-css-prefix}-saxophone:before { content: fa-content($fa-var-saxophone); } +.#{$fa-css-prefix}-scalpel:before { content: fa-content($fa-var-scalpel); } +.#{$fa-css-prefix}-scalpel-path:before { content: fa-content($fa-var-scalpel-path); } +.#{$fa-css-prefix}-scanner:before { content: fa-content($fa-var-scanner); } +.#{$fa-css-prefix}-scanner-image:before { content: fa-content($fa-var-scanner-image); } +.#{$fa-css-prefix}-scanner-keyboard:before { content: fa-content($fa-var-scanner-keyboard); } +.#{$fa-css-prefix}-scanner-touchscreen:before { content: fa-content($fa-var-scanner-touchscreen); } +.#{$fa-css-prefix}-scarecrow:before { content: fa-content($fa-var-scarecrow); } +.#{$fa-css-prefix}-scarf:before { content: fa-content($fa-var-scarf); } +.#{$fa-css-prefix}-schlix:before { content: fa-content($fa-var-schlix); } +.#{$fa-css-prefix}-school:before { content: fa-content($fa-var-school); } +.#{$fa-css-prefix}-screwdriver:before { content: fa-content($fa-var-screwdriver); } +.#{$fa-css-prefix}-scribd:before { content: fa-content($fa-var-scribd); } +.#{$fa-css-prefix}-scroll:before { content: fa-content($fa-var-scroll); } +.#{$fa-css-prefix}-scroll-old:before { content: fa-content($fa-var-scroll-old); } +.#{$fa-css-prefix}-scrubber:before { content: fa-content($fa-var-scrubber); } +.#{$fa-css-prefix}-scythe:before { content: fa-content($fa-var-scythe); } +.#{$fa-css-prefix}-sd-card:before { content: fa-content($fa-var-sd-card); } +.#{$fa-css-prefix}-search:before { content: fa-content($fa-var-search); } +.#{$fa-css-prefix}-search-dollar:before { content: fa-content($fa-var-search-dollar); } +.#{$fa-css-prefix}-search-location:before { content: fa-content($fa-var-search-location); } +.#{$fa-css-prefix}-search-minus:before { content: fa-content($fa-var-search-minus); } +.#{$fa-css-prefix}-search-plus:before { content: fa-content($fa-var-search-plus); } +.#{$fa-css-prefix}-searchengin:before { content: fa-content($fa-var-searchengin); } +.#{$fa-css-prefix}-seedling:before { content: fa-content($fa-var-seedling); } +.#{$fa-css-prefix}-sellcast:before { content: fa-content($fa-var-sellcast); } +.#{$fa-css-prefix}-sellsy:before { content: fa-content($fa-var-sellsy); } +.#{$fa-css-prefix}-send-back:before { content: fa-content($fa-var-send-back); } +.#{$fa-css-prefix}-send-backward:before { content: fa-content($fa-var-send-backward); } +.#{$fa-css-prefix}-sensor:before { content: fa-content($fa-var-sensor); } +.#{$fa-css-prefix}-sensor-alert:before { content: fa-content($fa-var-sensor-alert); } +.#{$fa-css-prefix}-sensor-fire:before { content: fa-content($fa-var-sensor-fire); } +.#{$fa-css-prefix}-sensor-on:before { content: fa-content($fa-var-sensor-on); } +.#{$fa-css-prefix}-sensor-smoke:before { content: fa-content($fa-var-sensor-smoke); } +.#{$fa-css-prefix}-server:before { content: fa-content($fa-var-server); } +.#{$fa-css-prefix}-servicestack:before { content: fa-content($fa-var-servicestack); } +.#{$fa-css-prefix}-shapes:before { content: fa-content($fa-var-shapes); } +.#{$fa-css-prefix}-share:before { content: fa-content($fa-var-share); } +.#{$fa-css-prefix}-share-all:before { content: fa-content($fa-var-share-all); } +.#{$fa-css-prefix}-share-alt:before { content: fa-content($fa-var-share-alt); } +.#{$fa-css-prefix}-share-alt-square:before { content: fa-content($fa-var-share-alt-square); } +.#{$fa-css-prefix}-share-square:before { content: fa-content($fa-var-share-square); } +.#{$fa-css-prefix}-sheep:before { content: fa-content($fa-var-sheep); } +.#{$fa-css-prefix}-shekel-sign:before { content: fa-content($fa-var-shekel-sign); } +.#{$fa-css-prefix}-shield:before { content: fa-content($fa-var-shield); } +.#{$fa-css-prefix}-shield-alt:before { content: fa-content($fa-var-shield-alt); } +.#{$fa-css-prefix}-shield-check:before { content: fa-content($fa-var-shield-check); } +.#{$fa-css-prefix}-shield-cross:before { content: fa-content($fa-var-shield-cross); } +.#{$fa-css-prefix}-shield-virus:before { content: fa-content($fa-var-shield-virus); } +.#{$fa-css-prefix}-ship:before { content: fa-content($fa-var-ship); } +.#{$fa-css-prefix}-shipping-fast:before { content: fa-content($fa-var-shipping-fast); } +.#{$fa-css-prefix}-shipping-timed:before { content: fa-content($fa-var-shipping-timed); } +.#{$fa-css-prefix}-shirtsinbulk:before { content: fa-content($fa-var-shirtsinbulk); } +.#{$fa-css-prefix}-shish-kebab:before { content: fa-content($fa-var-shish-kebab); } +.#{$fa-css-prefix}-shoe-prints:before { content: fa-content($fa-var-shoe-prints); } +.#{$fa-css-prefix}-shopify:before { content: fa-content($fa-var-shopify); } +.#{$fa-css-prefix}-shopping-bag:before { content: fa-content($fa-var-shopping-bag); } +.#{$fa-css-prefix}-shopping-basket:before { content: fa-content($fa-var-shopping-basket); } +.#{$fa-css-prefix}-shopping-cart:before { content: fa-content($fa-var-shopping-cart); } +.#{$fa-css-prefix}-shopware:before { content: fa-content($fa-var-shopware); } +.#{$fa-css-prefix}-shovel:before { content: fa-content($fa-var-shovel); } +.#{$fa-css-prefix}-shovel-snow:before { content: fa-content($fa-var-shovel-snow); } +.#{$fa-css-prefix}-shower:before { content: fa-content($fa-var-shower); } +.#{$fa-css-prefix}-shredder:before { content: fa-content($fa-var-shredder); } +.#{$fa-css-prefix}-shuttle-van:before { content: fa-content($fa-var-shuttle-van); } +.#{$fa-css-prefix}-shuttlecock:before { content: fa-content($fa-var-shuttlecock); } +.#{$fa-css-prefix}-sickle:before { content: fa-content($fa-var-sickle); } +.#{$fa-css-prefix}-sigma:before { content: fa-content($fa-var-sigma); } +.#{$fa-css-prefix}-sign:before { content: fa-content($fa-var-sign); } +.#{$fa-css-prefix}-sign-in:before { content: fa-content($fa-var-sign-in); } +.#{$fa-css-prefix}-sign-in-alt:before { content: fa-content($fa-var-sign-in-alt); } +.#{$fa-css-prefix}-sign-language:before { content: fa-content($fa-var-sign-language); } +.#{$fa-css-prefix}-sign-out:before { content: fa-content($fa-var-sign-out); } +.#{$fa-css-prefix}-sign-out-alt:before { content: fa-content($fa-var-sign-out-alt); } +.#{$fa-css-prefix}-signal:before { content: fa-content($fa-var-signal); } +.#{$fa-css-prefix}-signal-1:before { content: fa-content($fa-var-signal-1); } +.#{$fa-css-prefix}-signal-2:before { content: fa-content($fa-var-signal-2); } +.#{$fa-css-prefix}-signal-3:before { content: fa-content($fa-var-signal-3); } +.#{$fa-css-prefix}-signal-4:before { content: fa-content($fa-var-signal-4); } +.#{$fa-css-prefix}-signal-alt:before { content: fa-content($fa-var-signal-alt); } +.#{$fa-css-prefix}-signal-alt-1:before { content: fa-content($fa-var-signal-alt-1); } +.#{$fa-css-prefix}-signal-alt-2:before { content: fa-content($fa-var-signal-alt-2); } +.#{$fa-css-prefix}-signal-alt-3:before { content: fa-content($fa-var-signal-alt-3); } +.#{$fa-css-prefix}-signal-alt-slash:before { content: fa-content($fa-var-signal-alt-slash); } +.#{$fa-css-prefix}-signal-slash:before { content: fa-content($fa-var-signal-slash); } +.#{$fa-css-prefix}-signal-stream:before { content: fa-content($fa-var-signal-stream); } +.#{$fa-css-prefix}-signature:before { content: fa-content($fa-var-signature); } +.#{$fa-css-prefix}-sim-card:before { content: fa-content($fa-var-sim-card); } +.#{$fa-css-prefix}-simplybuilt:before { content: fa-content($fa-var-simplybuilt); } +.#{$fa-css-prefix}-sink:before { content: fa-content($fa-var-sink); } +.#{$fa-css-prefix}-siren:before { content: fa-content($fa-var-siren); } +.#{$fa-css-prefix}-siren-on:before { content: fa-content($fa-var-siren-on); } +.#{$fa-css-prefix}-sistrix:before { content: fa-content($fa-var-sistrix); } +.#{$fa-css-prefix}-sitemap:before { content: fa-content($fa-var-sitemap); } +.#{$fa-css-prefix}-sith:before { content: fa-content($fa-var-sith); } +.#{$fa-css-prefix}-skating:before { content: fa-content($fa-var-skating); } +.#{$fa-css-prefix}-skeleton:before { content: fa-content($fa-var-skeleton); } +.#{$fa-css-prefix}-sketch:before { content: fa-content($fa-var-sketch); } +.#{$fa-css-prefix}-ski-jump:before { content: fa-content($fa-var-ski-jump); } +.#{$fa-css-prefix}-ski-lift:before { content: fa-content($fa-var-ski-lift); } +.#{$fa-css-prefix}-skiing:before { content: fa-content($fa-var-skiing); } +.#{$fa-css-prefix}-skiing-nordic:before { content: fa-content($fa-var-skiing-nordic); } +.#{$fa-css-prefix}-skull:before { content: fa-content($fa-var-skull); } +.#{$fa-css-prefix}-skull-cow:before { content: fa-content($fa-var-skull-cow); } +.#{$fa-css-prefix}-skull-crossbones:before { content: fa-content($fa-var-skull-crossbones); } +.#{$fa-css-prefix}-skyatlas:before { content: fa-content($fa-var-skyatlas); } +.#{$fa-css-prefix}-skype:before { content: fa-content($fa-var-skype); } +.#{$fa-css-prefix}-slack:before { content: fa-content($fa-var-slack); } +.#{$fa-css-prefix}-slack-hash:before { content: fa-content($fa-var-slack-hash); } +.#{$fa-css-prefix}-slash:before { content: fa-content($fa-var-slash); } +.#{$fa-css-prefix}-sledding:before { content: fa-content($fa-var-sledding); } +.#{$fa-css-prefix}-sleigh:before { content: fa-content($fa-var-sleigh); } +.#{$fa-css-prefix}-sliders-h:before { content: fa-content($fa-var-sliders-h); } +.#{$fa-css-prefix}-sliders-h-square:before { content: fa-content($fa-var-sliders-h-square); } +.#{$fa-css-prefix}-sliders-v:before { content: fa-content($fa-var-sliders-v); } +.#{$fa-css-prefix}-sliders-v-square:before { content: fa-content($fa-var-sliders-v-square); } +.#{$fa-css-prefix}-slideshare:before { content: fa-content($fa-var-slideshare); } +.#{$fa-css-prefix}-smile:before { content: fa-content($fa-var-smile); } +.#{$fa-css-prefix}-smile-beam:before { content: fa-content($fa-var-smile-beam); } +.#{$fa-css-prefix}-smile-plus:before { content: fa-content($fa-var-smile-plus); } +.#{$fa-css-prefix}-smile-wink:before { content: fa-content($fa-var-smile-wink); } +.#{$fa-css-prefix}-smog:before { content: fa-content($fa-var-smog); } +.#{$fa-css-prefix}-smoke:before { content: fa-content($fa-var-smoke); } +.#{$fa-css-prefix}-smoking:before { content: fa-content($fa-var-smoking); } +.#{$fa-css-prefix}-smoking-ban:before { content: fa-content($fa-var-smoking-ban); } +.#{$fa-css-prefix}-sms:before { content: fa-content($fa-var-sms); } +.#{$fa-css-prefix}-snake:before { content: fa-content($fa-var-snake); } +.#{$fa-css-prefix}-snapchat:before { content: fa-content($fa-var-snapchat); } +.#{$fa-css-prefix}-snapchat-ghost:before { content: fa-content($fa-var-snapchat-ghost); } +.#{$fa-css-prefix}-snapchat-square:before { content: fa-content($fa-var-snapchat-square); } +.#{$fa-css-prefix}-snooze:before { content: fa-content($fa-var-snooze); } +.#{$fa-css-prefix}-snow-blowing:before { content: fa-content($fa-var-snow-blowing); } +.#{$fa-css-prefix}-snowboarding:before { content: fa-content($fa-var-snowboarding); } +.#{$fa-css-prefix}-snowflake:before { content: fa-content($fa-var-snowflake); } +.#{$fa-css-prefix}-snowflakes:before { content: fa-content($fa-var-snowflakes); } +.#{$fa-css-prefix}-snowman:before { content: fa-content($fa-var-snowman); } +.#{$fa-css-prefix}-snowmobile:before { content: fa-content($fa-var-snowmobile); } +.#{$fa-css-prefix}-snowplow:before { content: fa-content($fa-var-snowplow); } +.#{$fa-css-prefix}-soap:before { content: fa-content($fa-var-soap); } +.#{$fa-css-prefix}-socks:before { content: fa-content($fa-var-socks); } +.#{$fa-css-prefix}-solar-panel:before { content: fa-content($fa-var-solar-panel); } +.#{$fa-css-prefix}-solar-system:before { content: fa-content($fa-var-solar-system); } +.#{$fa-css-prefix}-sort:before { content: fa-content($fa-var-sort); } +.#{$fa-css-prefix}-sort-alpha-down:before { content: fa-content($fa-var-sort-alpha-down); } +.#{$fa-css-prefix}-sort-alpha-down-alt:before { content: fa-content($fa-var-sort-alpha-down-alt); } +.#{$fa-css-prefix}-sort-alpha-up:before { content: fa-content($fa-var-sort-alpha-up); } +.#{$fa-css-prefix}-sort-alpha-up-alt:before { content: fa-content($fa-var-sort-alpha-up-alt); } +.#{$fa-css-prefix}-sort-alt:before { content: fa-content($fa-var-sort-alt); } +.#{$fa-css-prefix}-sort-amount-down:before { content: fa-content($fa-var-sort-amount-down); } +.#{$fa-css-prefix}-sort-amount-down-alt:before { content: fa-content($fa-var-sort-amount-down-alt); } +.#{$fa-css-prefix}-sort-amount-up:before { content: fa-content($fa-var-sort-amount-up); } +.#{$fa-css-prefix}-sort-amount-up-alt:before { content: fa-content($fa-var-sort-amount-up-alt); } +.#{$fa-css-prefix}-sort-circle:before { content: fa-content($fa-var-sort-circle); } +.#{$fa-css-prefix}-sort-circle-down:before { content: fa-content($fa-var-sort-circle-down); } +.#{$fa-css-prefix}-sort-circle-up:before { content: fa-content($fa-var-sort-circle-up); } +.#{$fa-css-prefix}-sort-down:before { content: fa-content($fa-var-sort-down); } +.#{$fa-css-prefix}-sort-numeric-down:before { content: fa-content($fa-var-sort-numeric-down); } +.#{$fa-css-prefix}-sort-numeric-down-alt:before { content: fa-content($fa-var-sort-numeric-down-alt); } +.#{$fa-css-prefix}-sort-numeric-up:before { content: fa-content($fa-var-sort-numeric-up); } +.#{$fa-css-prefix}-sort-numeric-up-alt:before { content: fa-content($fa-var-sort-numeric-up-alt); } +.#{$fa-css-prefix}-sort-shapes-down:before { content: fa-content($fa-var-sort-shapes-down); } +.#{$fa-css-prefix}-sort-shapes-down-alt:before { content: fa-content($fa-var-sort-shapes-down-alt); } +.#{$fa-css-prefix}-sort-shapes-up:before { content: fa-content($fa-var-sort-shapes-up); } +.#{$fa-css-prefix}-sort-shapes-up-alt:before { content: fa-content($fa-var-sort-shapes-up-alt); } +.#{$fa-css-prefix}-sort-size-down:before { content: fa-content($fa-var-sort-size-down); } +.#{$fa-css-prefix}-sort-size-down-alt:before { content: fa-content($fa-var-sort-size-down-alt); } +.#{$fa-css-prefix}-sort-size-up:before { content: fa-content($fa-var-sort-size-up); } +.#{$fa-css-prefix}-sort-size-up-alt:before { content: fa-content($fa-var-sort-size-up-alt); } +.#{$fa-css-prefix}-sort-up:before { content: fa-content($fa-var-sort-up); } +.#{$fa-css-prefix}-soundcloud:before { content: fa-content($fa-var-soundcloud); } +.#{$fa-css-prefix}-soup:before { content: fa-content($fa-var-soup); } +.#{$fa-css-prefix}-sourcetree:before { content: fa-content($fa-var-sourcetree); } +.#{$fa-css-prefix}-spa:before { content: fa-content($fa-var-spa); } +.#{$fa-css-prefix}-space-shuttle:before { content: fa-content($fa-var-space-shuttle); } +.#{$fa-css-prefix}-space-station-moon:before { content: fa-content($fa-var-space-station-moon); } +.#{$fa-css-prefix}-space-station-moon-alt:before { content: fa-content($fa-var-space-station-moon-alt); } +.#{$fa-css-prefix}-spade:before { content: fa-content($fa-var-spade); } +.#{$fa-css-prefix}-sparkles:before { content: fa-content($fa-var-sparkles); } +.#{$fa-css-prefix}-speakap:before { content: fa-content($fa-var-speakap); } +.#{$fa-css-prefix}-speaker:before { content: fa-content($fa-var-speaker); } +.#{$fa-css-prefix}-speaker-deck:before { content: fa-content($fa-var-speaker-deck); } +.#{$fa-css-prefix}-speakers:before { content: fa-content($fa-var-speakers); } +.#{$fa-css-prefix}-spell-check:before { content: fa-content($fa-var-spell-check); } +.#{$fa-css-prefix}-spider:before { content: fa-content($fa-var-spider); } +.#{$fa-css-prefix}-spider-black-widow:before { content: fa-content($fa-var-spider-black-widow); } +.#{$fa-css-prefix}-spider-web:before { content: fa-content($fa-var-spider-web); } +.#{$fa-css-prefix}-spinner:before { content: fa-content($fa-var-spinner); } +.#{$fa-css-prefix}-spinner-third:before { content: fa-content($fa-var-spinner-third); } +.#{$fa-css-prefix}-splotch:before { content: fa-content($fa-var-splotch); } +.#{$fa-css-prefix}-spotify:before { content: fa-content($fa-var-spotify); } +.#{$fa-css-prefix}-spray-can:before { content: fa-content($fa-var-spray-can); } +.#{$fa-css-prefix}-sprinkler:before { content: fa-content($fa-var-sprinkler); } +.#{$fa-css-prefix}-square:before { content: fa-content($fa-var-square); } +.#{$fa-css-prefix}-square-full:before { content: fa-content($fa-var-square-full); } +.#{$fa-css-prefix}-square-root:before { content: fa-content($fa-var-square-root); } +.#{$fa-css-prefix}-square-root-alt:before { content: fa-content($fa-var-square-root-alt); } +.#{$fa-css-prefix}-squarespace:before { content: fa-content($fa-var-squarespace); } +.#{$fa-css-prefix}-squirrel:before { content: fa-content($fa-var-squirrel); } +.#{$fa-css-prefix}-stack-exchange:before { content: fa-content($fa-var-stack-exchange); } +.#{$fa-css-prefix}-stack-overflow:before { content: fa-content($fa-var-stack-overflow); } +.#{$fa-css-prefix}-stackpath:before { content: fa-content($fa-var-stackpath); } +.#{$fa-css-prefix}-staff:before { content: fa-content($fa-var-staff); } +.#{$fa-css-prefix}-stamp:before { content: fa-content($fa-var-stamp); } +.#{$fa-css-prefix}-star:before { content: fa-content($fa-var-star); } +.#{$fa-css-prefix}-star-and-crescent:before { content: fa-content($fa-var-star-and-crescent); } +.#{$fa-css-prefix}-star-christmas:before { content: fa-content($fa-var-star-christmas); } +.#{$fa-css-prefix}-star-exclamation:before { content: fa-content($fa-var-star-exclamation); } +.#{$fa-css-prefix}-star-half:before { content: fa-content($fa-var-star-half); } +.#{$fa-css-prefix}-star-half-alt:before { content: fa-content($fa-var-star-half-alt); } +.#{$fa-css-prefix}-star-of-david:before { content: fa-content($fa-var-star-of-david); } +.#{$fa-css-prefix}-star-of-life:before { content: fa-content($fa-var-star-of-life); } +.#{$fa-css-prefix}-star-shooting:before { content: fa-content($fa-var-star-shooting); } +.#{$fa-css-prefix}-starfighter:before { content: fa-content($fa-var-starfighter); } +.#{$fa-css-prefix}-starfighter-alt:before { content: fa-content($fa-var-starfighter-alt); } +.#{$fa-css-prefix}-stars:before { content: fa-content($fa-var-stars); } +.#{$fa-css-prefix}-starship:before { content: fa-content($fa-var-starship); } +.#{$fa-css-prefix}-starship-freighter:before { content: fa-content($fa-var-starship-freighter); } +.#{$fa-css-prefix}-staylinked:before { content: fa-content($fa-var-staylinked); } +.#{$fa-css-prefix}-steak:before { content: fa-content($fa-var-steak); } +.#{$fa-css-prefix}-steam:before { content: fa-content($fa-var-steam); } +.#{$fa-css-prefix}-steam-square:before { content: fa-content($fa-var-steam-square); } +.#{$fa-css-prefix}-steam-symbol:before { content: fa-content($fa-var-steam-symbol); } +.#{$fa-css-prefix}-steering-wheel:before { content: fa-content($fa-var-steering-wheel); } +.#{$fa-css-prefix}-step-backward:before { content: fa-content($fa-var-step-backward); } +.#{$fa-css-prefix}-step-forward:before { content: fa-content($fa-var-step-forward); } +.#{$fa-css-prefix}-stethoscope:before { content: fa-content($fa-var-stethoscope); } +.#{$fa-css-prefix}-sticker-mule:before { content: fa-content($fa-var-sticker-mule); } +.#{$fa-css-prefix}-sticky-note:before { content: fa-content($fa-var-sticky-note); } +.#{$fa-css-prefix}-stocking:before { content: fa-content($fa-var-stocking); } +.#{$fa-css-prefix}-stomach:before { content: fa-content($fa-var-stomach); } +.#{$fa-css-prefix}-stop:before { content: fa-content($fa-var-stop); } +.#{$fa-css-prefix}-stop-circle:before { content: fa-content($fa-var-stop-circle); } +.#{$fa-css-prefix}-stopwatch:before { content: fa-content($fa-var-stopwatch); } +.#{$fa-css-prefix}-stopwatch-20:before { content: fa-content($fa-var-stopwatch-20); } +.#{$fa-css-prefix}-store:before { content: fa-content($fa-var-store); } +.#{$fa-css-prefix}-store-alt:before { content: fa-content($fa-var-store-alt); } +.#{$fa-css-prefix}-store-alt-slash:before { content: fa-content($fa-var-store-alt-slash); } +.#{$fa-css-prefix}-store-slash:before { content: fa-content($fa-var-store-slash); } +.#{$fa-css-prefix}-strava:before { content: fa-content($fa-var-strava); } +.#{$fa-css-prefix}-stream:before { content: fa-content($fa-var-stream); } +.#{$fa-css-prefix}-street-view:before { content: fa-content($fa-var-street-view); } +.#{$fa-css-prefix}-stretcher:before { content: fa-content($fa-var-stretcher); } +.#{$fa-css-prefix}-strikethrough:before { content: fa-content($fa-var-strikethrough); } +.#{$fa-css-prefix}-stripe:before { content: fa-content($fa-var-stripe); } +.#{$fa-css-prefix}-stripe-s:before { content: fa-content($fa-var-stripe-s); } +.#{$fa-css-prefix}-stroopwafel:before { content: fa-content($fa-var-stroopwafel); } +.#{$fa-css-prefix}-studiovinari:before { content: fa-content($fa-var-studiovinari); } +.#{$fa-css-prefix}-stumbleupon:before { content: fa-content($fa-var-stumbleupon); } +.#{$fa-css-prefix}-stumbleupon-circle:before { content: fa-content($fa-var-stumbleupon-circle); } +.#{$fa-css-prefix}-subscript:before { content: fa-content($fa-var-subscript); } +.#{$fa-css-prefix}-subway:before { content: fa-content($fa-var-subway); } +.#{$fa-css-prefix}-suitcase:before { content: fa-content($fa-var-suitcase); } +.#{$fa-css-prefix}-suitcase-rolling:before { content: fa-content($fa-var-suitcase-rolling); } +.#{$fa-css-prefix}-sun:before { content: fa-content($fa-var-sun); } +.#{$fa-css-prefix}-sun-cloud:before { content: fa-content($fa-var-sun-cloud); } +.#{$fa-css-prefix}-sun-dust:before { content: fa-content($fa-var-sun-dust); } +.#{$fa-css-prefix}-sun-haze:before { content: fa-content($fa-var-sun-haze); } +.#{$fa-css-prefix}-sunglasses:before { content: fa-content($fa-var-sunglasses); } +.#{$fa-css-prefix}-sunrise:before { content: fa-content($fa-var-sunrise); } +.#{$fa-css-prefix}-sunset:before { content: fa-content($fa-var-sunset); } +.#{$fa-css-prefix}-superpowers:before { content: fa-content($fa-var-superpowers); } +.#{$fa-css-prefix}-superscript:before { content: fa-content($fa-var-superscript); } +.#{$fa-css-prefix}-supple:before { content: fa-content($fa-var-supple); } +.#{$fa-css-prefix}-surprise:before { content: fa-content($fa-var-surprise); } +.#{$fa-css-prefix}-suse:before { content: fa-content($fa-var-suse); } +.#{$fa-css-prefix}-swatchbook:before { content: fa-content($fa-var-swatchbook); } +.#{$fa-css-prefix}-swift:before { content: fa-content($fa-var-swift); } +.#{$fa-css-prefix}-swimmer:before { content: fa-content($fa-var-swimmer); } +.#{$fa-css-prefix}-swimming-pool:before { content: fa-content($fa-var-swimming-pool); } +.#{$fa-css-prefix}-sword:before { content: fa-content($fa-var-sword); } +.#{$fa-css-prefix}-sword-laser:before { content: fa-content($fa-var-sword-laser); } +.#{$fa-css-prefix}-sword-laser-alt:before { content: fa-content($fa-var-sword-laser-alt); } +.#{$fa-css-prefix}-swords:before { content: fa-content($fa-var-swords); } +.#{$fa-css-prefix}-swords-laser:before { content: fa-content($fa-var-swords-laser); } +.#{$fa-css-prefix}-symfony:before { content: fa-content($fa-var-symfony); } +.#{$fa-css-prefix}-synagogue:before { content: fa-content($fa-var-synagogue); } +.#{$fa-css-prefix}-sync:before { content: fa-content($fa-var-sync); } +.#{$fa-css-prefix}-sync-alt:before { content: fa-content($fa-var-sync-alt); } +.#{$fa-css-prefix}-syringe:before { content: fa-content($fa-var-syringe); } +.#{$fa-css-prefix}-table:before { content: fa-content($fa-var-table); } +.#{$fa-css-prefix}-table-tennis:before { content: fa-content($fa-var-table-tennis); } +.#{$fa-css-prefix}-tablet:before { content: fa-content($fa-var-tablet); } +.#{$fa-css-prefix}-tablet-alt:before { content: fa-content($fa-var-tablet-alt); } +.#{$fa-css-prefix}-tablet-android:before { content: fa-content($fa-var-tablet-android); } +.#{$fa-css-prefix}-tablet-android-alt:before { content: fa-content($fa-var-tablet-android-alt); } +.#{$fa-css-prefix}-tablet-rugged:before { content: fa-content($fa-var-tablet-rugged); } +.#{$fa-css-prefix}-tablets:before { content: fa-content($fa-var-tablets); } +.#{$fa-css-prefix}-tachometer:before { content: fa-content($fa-var-tachometer); } +.#{$fa-css-prefix}-tachometer-alt:before { content: fa-content($fa-var-tachometer-alt); } +.#{$fa-css-prefix}-tachometer-alt-average:before { content: fa-content($fa-var-tachometer-alt-average); } +.#{$fa-css-prefix}-tachometer-alt-fast:before { content: fa-content($fa-var-tachometer-alt-fast); } +.#{$fa-css-prefix}-tachometer-alt-fastest:before { content: fa-content($fa-var-tachometer-alt-fastest); } +.#{$fa-css-prefix}-tachometer-alt-slow:before { content: fa-content($fa-var-tachometer-alt-slow); } +.#{$fa-css-prefix}-tachometer-alt-slowest:before { content: fa-content($fa-var-tachometer-alt-slowest); } +.#{$fa-css-prefix}-tachometer-average:before { content: fa-content($fa-var-tachometer-average); } +.#{$fa-css-prefix}-tachometer-fast:before { content: fa-content($fa-var-tachometer-fast); } +.#{$fa-css-prefix}-tachometer-fastest:before { content: fa-content($fa-var-tachometer-fastest); } +.#{$fa-css-prefix}-tachometer-slow:before { content: fa-content($fa-var-tachometer-slow); } +.#{$fa-css-prefix}-tachometer-slowest:before { content: fa-content($fa-var-tachometer-slowest); } +.#{$fa-css-prefix}-taco:before { content: fa-content($fa-var-taco); } +.#{$fa-css-prefix}-tag:before { content: fa-content($fa-var-tag); } +.#{$fa-css-prefix}-tags:before { content: fa-content($fa-var-tags); } +.#{$fa-css-prefix}-tally:before { content: fa-content($fa-var-tally); } +.#{$fa-css-prefix}-tanakh:before { content: fa-content($fa-var-tanakh); } +.#{$fa-css-prefix}-tape:before { content: fa-content($fa-var-tape); } +.#{$fa-css-prefix}-tasks:before { content: fa-content($fa-var-tasks); } +.#{$fa-css-prefix}-tasks-alt:before { content: fa-content($fa-var-tasks-alt); } +.#{$fa-css-prefix}-taxi:before { content: fa-content($fa-var-taxi); } +.#{$fa-css-prefix}-teamspeak:before { content: fa-content($fa-var-teamspeak); } +.#{$fa-css-prefix}-teeth:before { content: fa-content($fa-var-teeth); } +.#{$fa-css-prefix}-teeth-open:before { content: fa-content($fa-var-teeth-open); } +.#{$fa-css-prefix}-telegram:before { content: fa-content($fa-var-telegram); } +.#{$fa-css-prefix}-telegram-plane:before { content: fa-content($fa-var-telegram-plane); } +.#{$fa-css-prefix}-telescope:before { content: fa-content($fa-var-telescope); } +.#{$fa-css-prefix}-temperature-down:before { content: fa-content($fa-var-temperature-down); } +.#{$fa-css-prefix}-temperature-frigid:before { content: fa-content($fa-var-temperature-frigid); } +.#{$fa-css-prefix}-temperature-high:before { content: fa-content($fa-var-temperature-high); } +.#{$fa-css-prefix}-temperature-hot:before { content: fa-content($fa-var-temperature-hot); } +.#{$fa-css-prefix}-temperature-low:before { content: fa-content($fa-var-temperature-low); } +.#{$fa-css-prefix}-temperature-up:before { content: fa-content($fa-var-temperature-up); } +.#{$fa-css-prefix}-tencent-weibo:before { content: fa-content($fa-var-tencent-weibo); } +.#{$fa-css-prefix}-tenge:before { content: fa-content($fa-var-tenge); } +.#{$fa-css-prefix}-tennis-ball:before { content: fa-content($fa-var-tennis-ball); } +.#{$fa-css-prefix}-terminal:before { content: fa-content($fa-var-terminal); } +.#{$fa-css-prefix}-text:before { content: fa-content($fa-var-text); } +.#{$fa-css-prefix}-text-height:before { content: fa-content($fa-var-text-height); } +.#{$fa-css-prefix}-text-size:before { content: fa-content($fa-var-text-size); } +.#{$fa-css-prefix}-text-width:before { content: fa-content($fa-var-text-width); } +.#{$fa-css-prefix}-th:before { content: fa-content($fa-var-th); } +.#{$fa-css-prefix}-th-large:before { content: fa-content($fa-var-th-large); } +.#{$fa-css-prefix}-th-list:before { content: fa-content($fa-var-th-list); } +.#{$fa-css-prefix}-the-red-yeti:before { content: fa-content($fa-var-the-red-yeti); } +.#{$fa-css-prefix}-theater-masks:before { content: fa-content($fa-var-theater-masks); } +.#{$fa-css-prefix}-themeco:before { content: fa-content($fa-var-themeco); } +.#{$fa-css-prefix}-themeisle:before { content: fa-content($fa-var-themeisle); } +.#{$fa-css-prefix}-thermometer:before { content: fa-content($fa-var-thermometer); } +.#{$fa-css-prefix}-thermometer-empty:before { content: fa-content($fa-var-thermometer-empty); } +.#{$fa-css-prefix}-thermometer-full:before { content: fa-content($fa-var-thermometer-full); } +.#{$fa-css-prefix}-thermometer-half:before { content: fa-content($fa-var-thermometer-half); } +.#{$fa-css-prefix}-thermometer-quarter:before { content: fa-content($fa-var-thermometer-quarter); } +.#{$fa-css-prefix}-thermometer-three-quarters:before { content: fa-content($fa-var-thermometer-three-quarters); } +.#{$fa-css-prefix}-theta:before { content: fa-content($fa-var-theta); } +.#{$fa-css-prefix}-think-peaks:before { content: fa-content($fa-var-think-peaks); } +.#{$fa-css-prefix}-thumbs-down:before { content: fa-content($fa-var-thumbs-down); } +.#{$fa-css-prefix}-thumbs-up:before { content: fa-content($fa-var-thumbs-up); } +.#{$fa-css-prefix}-thumbtack:before { content: fa-content($fa-var-thumbtack); } +.#{$fa-css-prefix}-thunderstorm:before { content: fa-content($fa-var-thunderstorm); } +.#{$fa-css-prefix}-thunderstorm-moon:before { content: fa-content($fa-var-thunderstorm-moon); } +.#{$fa-css-prefix}-thunderstorm-sun:before { content: fa-content($fa-var-thunderstorm-sun); } +.#{$fa-css-prefix}-ticket:before { content: fa-content($fa-var-ticket); } +.#{$fa-css-prefix}-ticket-alt:before { content: fa-content($fa-var-ticket-alt); } +.#{$fa-css-prefix}-tiktok:before { content: fa-content($fa-var-tiktok); } +.#{$fa-css-prefix}-tilde:before { content: fa-content($fa-var-tilde); } +.#{$fa-css-prefix}-times:before { content: fa-content($fa-var-times); } +.#{$fa-css-prefix}-times-circle:before { content: fa-content($fa-var-times-circle); } +.#{$fa-css-prefix}-times-hexagon:before { content: fa-content($fa-var-times-hexagon); } +.#{$fa-css-prefix}-times-octagon:before { content: fa-content($fa-var-times-octagon); } +.#{$fa-css-prefix}-times-square:before { content: fa-content($fa-var-times-square); } +.#{$fa-css-prefix}-tint:before { content: fa-content($fa-var-tint); } +.#{$fa-css-prefix}-tint-slash:before { content: fa-content($fa-var-tint-slash); } +.#{$fa-css-prefix}-tire:before { content: fa-content($fa-var-tire); } +.#{$fa-css-prefix}-tire-flat:before { content: fa-content($fa-var-tire-flat); } +.#{$fa-css-prefix}-tire-pressure-warning:before { content: fa-content($fa-var-tire-pressure-warning); } +.#{$fa-css-prefix}-tire-rugged:before { content: fa-content($fa-var-tire-rugged); } +.#{$fa-css-prefix}-tired:before { content: fa-content($fa-var-tired); } +.#{$fa-css-prefix}-toggle-off:before { content: fa-content($fa-var-toggle-off); } +.#{$fa-css-prefix}-toggle-on:before { content: fa-content($fa-var-toggle-on); } +.#{$fa-css-prefix}-toilet:before { content: fa-content($fa-var-toilet); } +.#{$fa-css-prefix}-toilet-paper:before { content: fa-content($fa-var-toilet-paper); } +.#{$fa-css-prefix}-toilet-paper-alt:before { content: fa-content($fa-var-toilet-paper-alt); } +.#{$fa-css-prefix}-toilet-paper-slash:before { content: fa-content($fa-var-toilet-paper-slash); } +.#{$fa-css-prefix}-tombstone:before { content: fa-content($fa-var-tombstone); } +.#{$fa-css-prefix}-tombstone-alt:before { content: fa-content($fa-var-tombstone-alt); } +.#{$fa-css-prefix}-toolbox:before { content: fa-content($fa-var-toolbox); } +.#{$fa-css-prefix}-tools:before { content: fa-content($fa-var-tools); } +.#{$fa-css-prefix}-tooth:before { content: fa-content($fa-var-tooth); } +.#{$fa-css-prefix}-toothbrush:before { content: fa-content($fa-var-toothbrush); } +.#{$fa-css-prefix}-torah:before { content: fa-content($fa-var-torah); } +.#{$fa-css-prefix}-torii-gate:before { content: fa-content($fa-var-torii-gate); } +.#{$fa-css-prefix}-tornado:before { content: fa-content($fa-var-tornado); } +.#{$fa-css-prefix}-tractor:before { content: fa-content($fa-var-tractor); } +.#{$fa-css-prefix}-trade-federation:before { content: fa-content($fa-var-trade-federation); } +.#{$fa-css-prefix}-trademark:before { content: fa-content($fa-var-trademark); } +.#{$fa-css-prefix}-traffic-cone:before { content: fa-content($fa-var-traffic-cone); } +.#{$fa-css-prefix}-traffic-light:before { content: fa-content($fa-var-traffic-light); } +.#{$fa-css-prefix}-traffic-light-go:before { content: fa-content($fa-var-traffic-light-go); } +.#{$fa-css-prefix}-traffic-light-slow:before { content: fa-content($fa-var-traffic-light-slow); } +.#{$fa-css-prefix}-traffic-light-stop:before { content: fa-content($fa-var-traffic-light-stop); } +.#{$fa-css-prefix}-trailer:before { content: fa-content($fa-var-trailer); } +.#{$fa-css-prefix}-train:before { content: fa-content($fa-var-train); } +.#{$fa-css-prefix}-tram:before { content: fa-content($fa-var-tram); } +.#{$fa-css-prefix}-transgender:before { content: fa-content($fa-var-transgender); } +.#{$fa-css-prefix}-transgender-alt:before { content: fa-content($fa-var-transgender-alt); } +.#{$fa-css-prefix}-transporter:before { content: fa-content($fa-var-transporter); } +.#{$fa-css-prefix}-transporter-1:before { content: fa-content($fa-var-transporter-1); } +.#{$fa-css-prefix}-transporter-2:before { content: fa-content($fa-var-transporter-2); } +.#{$fa-css-prefix}-transporter-3:before { content: fa-content($fa-var-transporter-3); } +.#{$fa-css-prefix}-transporter-empty:before { content: fa-content($fa-var-transporter-empty); } +.#{$fa-css-prefix}-trash:before { content: fa-content($fa-var-trash); } +.#{$fa-css-prefix}-trash-alt:before { content: fa-content($fa-var-trash-alt); } +.#{$fa-css-prefix}-trash-restore:before { content: fa-content($fa-var-trash-restore); } +.#{$fa-css-prefix}-trash-restore-alt:before { content: fa-content($fa-var-trash-restore-alt); } +.#{$fa-css-prefix}-trash-undo:before { content: fa-content($fa-var-trash-undo); } +.#{$fa-css-prefix}-trash-undo-alt:before { content: fa-content($fa-var-trash-undo-alt); } +.#{$fa-css-prefix}-treasure-chest:before { content: fa-content($fa-var-treasure-chest); } +.#{$fa-css-prefix}-tree:before { content: fa-content($fa-var-tree); } +.#{$fa-css-prefix}-tree-alt:before { content: fa-content($fa-var-tree-alt); } +.#{$fa-css-prefix}-tree-christmas:before { content: fa-content($fa-var-tree-christmas); } +.#{$fa-css-prefix}-tree-decorated:before { content: fa-content($fa-var-tree-decorated); } +.#{$fa-css-prefix}-tree-large:before { content: fa-content($fa-var-tree-large); } +.#{$fa-css-prefix}-tree-palm:before { content: fa-content($fa-var-tree-palm); } +.#{$fa-css-prefix}-trees:before { content: fa-content($fa-var-trees); } +.#{$fa-css-prefix}-trello:before { content: fa-content($fa-var-trello); } +.#{$fa-css-prefix}-triangle:before { content: fa-content($fa-var-triangle); } +.#{$fa-css-prefix}-triangle-music:before { content: fa-content($fa-var-triangle-music); } +.#{$fa-css-prefix}-trophy:before { content: fa-content($fa-var-trophy); } +.#{$fa-css-prefix}-trophy-alt:before { content: fa-content($fa-var-trophy-alt); } +.#{$fa-css-prefix}-truck:before { content: fa-content($fa-var-truck); } +.#{$fa-css-prefix}-truck-container:before { content: fa-content($fa-var-truck-container); } +.#{$fa-css-prefix}-truck-couch:before { content: fa-content($fa-var-truck-couch); } +.#{$fa-css-prefix}-truck-loading:before { content: fa-content($fa-var-truck-loading); } +.#{$fa-css-prefix}-truck-monster:before { content: fa-content($fa-var-truck-monster); } +.#{$fa-css-prefix}-truck-moving:before { content: fa-content($fa-var-truck-moving); } +.#{$fa-css-prefix}-truck-pickup:before { content: fa-content($fa-var-truck-pickup); } +.#{$fa-css-prefix}-truck-plow:before { content: fa-content($fa-var-truck-plow); } +.#{$fa-css-prefix}-truck-ramp:before { content: fa-content($fa-var-truck-ramp); } +.#{$fa-css-prefix}-trumpet:before { content: fa-content($fa-var-trumpet); } +.#{$fa-css-prefix}-tshirt:before { content: fa-content($fa-var-tshirt); } +.#{$fa-css-prefix}-tty:before { content: fa-content($fa-var-tty); } +.#{$fa-css-prefix}-tumblr:before { content: fa-content($fa-var-tumblr); } +.#{$fa-css-prefix}-tumblr-square:before { content: fa-content($fa-var-tumblr-square); } +.#{$fa-css-prefix}-turkey:before { content: fa-content($fa-var-turkey); } +.#{$fa-css-prefix}-turntable:before { content: fa-content($fa-var-turntable); } +.#{$fa-css-prefix}-turtle:before { content: fa-content($fa-var-turtle); } +.#{$fa-css-prefix}-tv:before { content: fa-content($fa-var-tv); } +.#{$fa-css-prefix}-tv-alt:before { content: fa-content($fa-var-tv-alt); } +.#{$fa-css-prefix}-tv-music:before { content: fa-content($fa-var-tv-music); } +.#{$fa-css-prefix}-tv-retro:before { content: fa-content($fa-var-tv-retro); } +.#{$fa-css-prefix}-twitch:before { content: fa-content($fa-var-twitch); } +.#{$fa-css-prefix}-twitter:before { content: fa-content($fa-var-twitter); } +.#{$fa-css-prefix}-twitter-square:before { content: fa-content($fa-var-twitter-square); } +.#{$fa-css-prefix}-typewriter:before { content: fa-content($fa-var-typewriter); } +.#{$fa-css-prefix}-typo3:before { content: fa-content($fa-var-typo3); } +.#{$fa-css-prefix}-uber:before { content: fa-content($fa-var-uber); } +.#{$fa-css-prefix}-ubuntu:before { content: fa-content($fa-var-ubuntu); } +.#{$fa-css-prefix}-ufo:before { content: fa-content($fa-var-ufo); } +.#{$fa-css-prefix}-ufo-beam:before { content: fa-content($fa-var-ufo-beam); } +.#{$fa-css-prefix}-uikit:before { content: fa-content($fa-var-uikit); } +.#{$fa-css-prefix}-umbraco:before { content: fa-content($fa-var-umbraco); } +.#{$fa-css-prefix}-umbrella:before { content: fa-content($fa-var-umbrella); } +.#{$fa-css-prefix}-umbrella-beach:before { content: fa-content($fa-var-umbrella-beach); } +.#{$fa-css-prefix}-uncharted:before { content: fa-content($fa-var-uncharted); } +.#{$fa-css-prefix}-underline:before { content: fa-content($fa-var-underline); } +.#{$fa-css-prefix}-undo:before { content: fa-content($fa-var-undo); } +.#{$fa-css-prefix}-undo-alt:before { content: fa-content($fa-var-undo-alt); } +.#{$fa-css-prefix}-unicorn:before { content: fa-content($fa-var-unicorn); } +.#{$fa-css-prefix}-union:before { content: fa-content($fa-var-union); } +.#{$fa-css-prefix}-uniregistry:before { content: fa-content($fa-var-uniregistry); } +.#{$fa-css-prefix}-unity:before { content: fa-content($fa-var-unity); } +.#{$fa-css-prefix}-universal-access:before { content: fa-content($fa-var-universal-access); } +.#{$fa-css-prefix}-university:before { content: fa-content($fa-var-university); } +.#{$fa-css-prefix}-unlink:before { content: fa-content($fa-var-unlink); } +.#{$fa-css-prefix}-unlock:before { content: fa-content($fa-var-unlock); } +.#{$fa-css-prefix}-unlock-alt:before { content: fa-content($fa-var-unlock-alt); } +.#{$fa-css-prefix}-unsplash:before { content: fa-content($fa-var-unsplash); } +.#{$fa-css-prefix}-untappd:before { content: fa-content($fa-var-untappd); } +.#{$fa-css-prefix}-upload:before { content: fa-content($fa-var-upload); } +.#{$fa-css-prefix}-ups:before { content: fa-content($fa-var-ups); } +.#{$fa-css-prefix}-usb:before { content: fa-content($fa-var-usb); } +.#{$fa-css-prefix}-usb-drive:before { content: fa-content($fa-var-usb-drive); } +.#{$fa-css-prefix}-usd-circle:before { content: fa-content($fa-var-usd-circle); } +.#{$fa-css-prefix}-usd-square:before { content: fa-content($fa-var-usd-square); } +.#{$fa-css-prefix}-user:before { content: fa-content($fa-var-user); } +.#{$fa-css-prefix}-user-alien:before { content: fa-content($fa-var-user-alien); } +.#{$fa-css-prefix}-user-alt:before { content: fa-content($fa-var-user-alt); } +.#{$fa-css-prefix}-user-alt-slash:before { content: fa-content($fa-var-user-alt-slash); } +.#{$fa-css-prefix}-user-astronaut:before { content: fa-content($fa-var-user-astronaut); } +.#{$fa-css-prefix}-user-chart:before { content: fa-content($fa-var-user-chart); } +.#{$fa-css-prefix}-user-check:before { content: fa-content($fa-var-user-check); } +.#{$fa-css-prefix}-user-circle:before { content: fa-content($fa-var-user-circle); } +.#{$fa-css-prefix}-user-clock:before { content: fa-content($fa-var-user-clock); } +.#{$fa-css-prefix}-user-cog:before { content: fa-content($fa-var-user-cog); } +.#{$fa-css-prefix}-user-cowboy:before { content: fa-content($fa-var-user-cowboy); } +.#{$fa-css-prefix}-user-crown:before { content: fa-content($fa-var-user-crown); } +.#{$fa-css-prefix}-user-edit:before { content: fa-content($fa-var-user-edit); } +.#{$fa-css-prefix}-user-friends:before { content: fa-content($fa-var-user-friends); } +.#{$fa-css-prefix}-user-graduate:before { content: fa-content($fa-var-user-graduate); } +.#{$fa-css-prefix}-user-hard-hat:before { content: fa-content($fa-var-user-hard-hat); } +.#{$fa-css-prefix}-user-headset:before { content: fa-content($fa-var-user-headset); } +.#{$fa-css-prefix}-user-injured:before { content: fa-content($fa-var-user-injured); } +.#{$fa-css-prefix}-user-lock:before { content: fa-content($fa-var-user-lock); } +.#{$fa-css-prefix}-user-md:before { content: fa-content($fa-var-user-md); } +.#{$fa-css-prefix}-user-md-chat:before { content: fa-content($fa-var-user-md-chat); } +.#{$fa-css-prefix}-user-minus:before { content: fa-content($fa-var-user-minus); } +.#{$fa-css-prefix}-user-music:before { content: fa-content($fa-var-user-music); } +.#{$fa-css-prefix}-user-ninja:before { content: fa-content($fa-var-user-ninja); } +.#{$fa-css-prefix}-user-nurse:before { content: fa-content($fa-var-user-nurse); } +.#{$fa-css-prefix}-user-plus:before { content: fa-content($fa-var-user-plus); } +.#{$fa-css-prefix}-user-robot:before { content: fa-content($fa-var-user-robot); } +.#{$fa-css-prefix}-user-secret:before { content: fa-content($fa-var-user-secret); } +.#{$fa-css-prefix}-user-shield:before { content: fa-content($fa-var-user-shield); } +.#{$fa-css-prefix}-user-slash:before { content: fa-content($fa-var-user-slash); } +.#{$fa-css-prefix}-user-tag:before { content: fa-content($fa-var-user-tag); } +.#{$fa-css-prefix}-user-tie:before { content: fa-content($fa-var-user-tie); } +.#{$fa-css-prefix}-user-times:before { content: fa-content($fa-var-user-times); } +.#{$fa-css-prefix}-user-unlock:before { content: fa-content($fa-var-user-unlock); } +.#{$fa-css-prefix}-user-visor:before { content: fa-content($fa-var-user-visor); } +.#{$fa-css-prefix}-users:before { content: fa-content($fa-var-users); } +.#{$fa-css-prefix}-users-class:before { content: fa-content($fa-var-users-class); } +.#{$fa-css-prefix}-users-cog:before { content: fa-content($fa-var-users-cog); } +.#{$fa-css-prefix}-users-crown:before { content: fa-content($fa-var-users-crown); } +.#{$fa-css-prefix}-users-medical:before { content: fa-content($fa-var-users-medical); } +.#{$fa-css-prefix}-users-slash:before { content: fa-content($fa-var-users-slash); } +.#{$fa-css-prefix}-usps:before { content: fa-content($fa-var-usps); } +.#{$fa-css-prefix}-ussunnah:before { content: fa-content($fa-var-ussunnah); } +.#{$fa-css-prefix}-utensil-fork:before { content: fa-content($fa-var-utensil-fork); } +.#{$fa-css-prefix}-utensil-knife:before { content: fa-content($fa-var-utensil-knife); } +.#{$fa-css-prefix}-utensil-spoon:before { content: fa-content($fa-var-utensil-spoon); } +.#{$fa-css-prefix}-utensils:before { content: fa-content($fa-var-utensils); } +.#{$fa-css-prefix}-utensils-alt:before { content: fa-content($fa-var-utensils-alt); } +.#{$fa-css-prefix}-vaadin:before { content: fa-content($fa-var-vaadin); } +.#{$fa-css-prefix}-vacuum:before { content: fa-content($fa-var-vacuum); } +.#{$fa-css-prefix}-vacuum-robot:before { content: fa-content($fa-var-vacuum-robot); } +.#{$fa-css-prefix}-value-absolute:before { content: fa-content($fa-var-value-absolute); } +.#{$fa-css-prefix}-vector-square:before { content: fa-content($fa-var-vector-square); } +.#{$fa-css-prefix}-venus:before { content: fa-content($fa-var-venus); } +.#{$fa-css-prefix}-venus-double:before { content: fa-content($fa-var-venus-double); } +.#{$fa-css-prefix}-venus-mars:before { content: fa-content($fa-var-venus-mars); } +.#{$fa-css-prefix}-vest:before { content: fa-content($fa-var-vest); } +.#{$fa-css-prefix}-vest-patches:before { content: fa-content($fa-var-vest-patches); } +.#{$fa-css-prefix}-vhs:before { content: fa-content($fa-var-vhs); } +.#{$fa-css-prefix}-viacoin:before { content: fa-content($fa-var-viacoin); } +.#{$fa-css-prefix}-viadeo:before { content: fa-content($fa-var-viadeo); } +.#{$fa-css-prefix}-viadeo-square:before { content: fa-content($fa-var-viadeo-square); } +.#{$fa-css-prefix}-vial:before { content: fa-content($fa-var-vial); } +.#{$fa-css-prefix}-vials:before { content: fa-content($fa-var-vials); } +.#{$fa-css-prefix}-viber:before { content: fa-content($fa-var-viber); } +.#{$fa-css-prefix}-video:before { content: fa-content($fa-var-video); } +.#{$fa-css-prefix}-video-plus:before { content: fa-content($fa-var-video-plus); } +.#{$fa-css-prefix}-video-slash:before { content: fa-content($fa-var-video-slash); } +.#{$fa-css-prefix}-vihara:before { content: fa-content($fa-var-vihara); } +.#{$fa-css-prefix}-vimeo:before { content: fa-content($fa-var-vimeo); } +.#{$fa-css-prefix}-vimeo-square:before { content: fa-content($fa-var-vimeo-square); } +.#{$fa-css-prefix}-vimeo-v:before { content: fa-content($fa-var-vimeo-v); } +.#{$fa-css-prefix}-vine:before { content: fa-content($fa-var-vine); } +.#{$fa-css-prefix}-violin:before { content: fa-content($fa-var-violin); } +.#{$fa-css-prefix}-virus:before { content: fa-content($fa-var-virus); } +.#{$fa-css-prefix}-virus-slash:before { content: fa-content($fa-var-virus-slash); } +.#{$fa-css-prefix}-viruses:before { content: fa-content($fa-var-viruses); } +.#{$fa-css-prefix}-vk:before { content: fa-content($fa-var-vk); } +.#{$fa-css-prefix}-vnv:before { content: fa-content($fa-var-vnv); } +.#{$fa-css-prefix}-voicemail:before { content: fa-content($fa-var-voicemail); } +.#{$fa-css-prefix}-volcano:before { content: fa-content($fa-var-volcano); } +.#{$fa-css-prefix}-volleyball-ball:before { content: fa-content($fa-var-volleyball-ball); } +.#{$fa-css-prefix}-volume:before { content: fa-content($fa-var-volume); } +.#{$fa-css-prefix}-volume-down:before { content: fa-content($fa-var-volume-down); } +.#{$fa-css-prefix}-volume-mute:before { content: fa-content($fa-var-volume-mute); } +.#{$fa-css-prefix}-volume-off:before { content: fa-content($fa-var-volume-off); } +.#{$fa-css-prefix}-volume-slash:before { content: fa-content($fa-var-volume-slash); } +.#{$fa-css-prefix}-volume-up:before { content: fa-content($fa-var-volume-up); } +.#{$fa-css-prefix}-vote-nay:before { content: fa-content($fa-var-vote-nay); } +.#{$fa-css-prefix}-vote-yea:before { content: fa-content($fa-var-vote-yea); } +.#{$fa-css-prefix}-vr-cardboard:before { content: fa-content($fa-var-vr-cardboard); } +.#{$fa-css-prefix}-vuejs:before { content: fa-content($fa-var-vuejs); } +.#{$fa-css-prefix}-wagon-covered:before { content: fa-content($fa-var-wagon-covered); } +.#{$fa-css-prefix}-walker:before { content: fa-content($fa-var-walker); } +.#{$fa-css-prefix}-walkie-talkie:before { content: fa-content($fa-var-walkie-talkie); } +.#{$fa-css-prefix}-walking:before { content: fa-content($fa-var-walking); } +.#{$fa-css-prefix}-wallet:before { content: fa-content($fa-var-wallet); } +.#{$fa-css-prefix}-wand:before { content: fa-content($fa-var-wand); } +.#{$fa-css-prefix}-wand-magic:before { content: fa-content($fa-var-wand-magic); } +.#{$fa-css-prefix}-warehouse:before { content: fa-content($fa-var-warehouse); } +.#{$fa-css-prefix}-warehouse-alt:before { content: fa-content($fa-var-warehouse-alt); } +.#{$fa-css-prefix}-washer:before { content: fa-content($fa-var-washer); } +.#{$fa-css-prefix}-watch:before { content: fa-content($fa-var-watch); } +.#{$fa-css-prefix}-watch-calculator:before { content: fa-content($fa-var-watch-calculator); } +.#{$fa-css-prefix}-watch-fitness:before { content: fa-content($fa-var-watch-fitness); } +.#{$fa-css-prefix}-watchman-monitoring:before { content: fa-content($fa-var-watchman-monitoring); } +.#{$fa-css-prefix}-water:before { content: fa-content($fa-var-water); } +.#{$fa-css-prefix}-water-lower:before { content: fa-content($fa-var-water-lower); } +.#{$fa-css-prefix}-water-rise:before { content: fa-content($fa-var-water-rise); } +.#{$fa-css-prefix}-wave-sine:before { content: fa-content($fa-var-wave-sine); } +.#{$fa-css-prefix}-wave-square:before { content: fa-content($fa-var-wave-square); } +.#{$fa-css-prefix}-wave-triangle:before { content: fa-content($fa-var-wave-triangle); } +.#{$fa-css-prefix}-waveform:before { content: fa-content($fa-var-waveform); } +.#{$fa-css-prefix}-waveform-path:before { content: fa-content($fa-var-waveform-path); } +.#{$fa-css-prefix}-waze:before { content: fa-content($fa-var-waze); } +.#{$fa-css-prefix}-webcam:before { content: fa-content($fa-var-webcam); } +.#{$fa-css-prefix}-webcam-slash:before { content: fa-content($fa-var-webcam-slash); } +.#{$fa-css-prefix}-weebly:before { content: fa-content($fa-var-weebly); } +.#{$fa-css-prefix}-weibo:before { content: fa-content($fa-var-weibo); } +.#{$fa-css-prefix}-weight:before { content: fa-content($fa-var-weight); } +.#{$fa-css-prefix}-weight-hanging:before { content: fa-content($fa-var-weight-hanging); } +.#{$fa-css-prefix}-weixin:before { content: fa-content($fa-var-weixin); } +.#{$fa-css-prefix}-whale:before { content: fa-content($fa-var-whale); } +.#{$fa-css-prefix}-whatsapp:before { content: fa-content($fa-var-whatsapp); } +.#{$fa-css-prefix}-whatsapp-square:before { content: fa-content($fa-var-whatsapp-square); } +.#{$fa-css-prefix}-wheat:before { content: fa-content($fa-var-wheat); } +.#{$fa-css-prefix}-wheelchair:before { content: fa-content($fa-var-wheelchair); } +.#{$fa-css-prefix}-whistle:before { content: fa-content($fa-var-whistle); } +.#{$fa-css-prefix}-whmcs:before { content: fa-content($fa-var-whmcs); } +.#{$fa-css-prefix}-wifi:before { content: fa-content($fa-var-wifi); } +.#{$fa-css-prefix}-wifi-1:before { content: fa-content($fa-var-wifi-1); } +.#{$fa-css-prefix}-wifi-2:before { content: fa-content($fa-var-wifi-2); } +.#{$fa-css-prefix}-wifi-slash:before { content: fa-content($fa-var-wifi-slash); } +.#{$fa-css-prefix}-wikipedia-w:before { content: fa-content($fa-var-wikipedia-w); } +.#{$fa-css-prefix}-wind:before { content: fa-content($fa-var-wind); } +.#{$fa-css-prefix}-wind-turbine:before { content: fa-content($fa-var-wind-turbine); } +.#{$fa-css-prefix}-wind-warning:before { content: fa-content($fa-var-wind-warning); } +.#{$fa-css-prefix}-window:before { content: fa-content($fa-var-window); } +.#{$fa-css-prefix}-window-alt:before { content: fa-content($fa-var-window-alt); } +.#{$fa-css-prefix}-window-close:before { content: fa-content($fa-var-window-close); } +.#{$fa-css-prefix}-window-frame:before { content: fa-content($fa-var-window-frame); } +.#{$fa-css-prefix}-window-frame-open:before { content: fa-content($fa-var-window-frame-open); } +.#{$fa-css-prefix}-window-maximize:before { content: fa-content($fa-var-window-maximize); } +.#{$fa-css-prefix}-window-minimize:before { content: fa-content($fa-var-window-minimize); } +.#{$fa-css-prefix}-window-restore:before { content: fa-content($fa-var-window-restore); } +.#{$fa-css-prefix}-windows:before { content: fa-content($fa-var-windows); } +.#{$fa-css-prefix}-windsock:before { content: fa-content($fa-var-windsock); } +.#{$fa-css-prefix}-wine-bottle:before { content: fa-content($fa-var-wine-bottle); } +.#{$fa-css-prefix}-wine-glass:before { content: fa-content($fa-var-wine-glass); } +.#{$fa-css-prefix}-wine-glass-alt:before { content: fa-content($fa-var-wine-glass-alt); } +.#{$fa-css-prefix}-wix:before { content: fa-content($fa-var-wix); } +.#{$fa-css-prefix}-wizards-of-the-coast:before { content: fa-content($fa-var-wizards-of-the-coast); } +.#{$fa-css-prefix}-wodu:before { content: fa-content($fa-var-wodu); } +.#{$fa-css-prefix}-wolf-pack-battalion:before { content: fa-content($fa-var-wolf-pack-battalion); } +.#{$fa-css-prefix}-won-sign:before { content: fa-content($fa-var-won-sign); } +.#{$fa-css-prefix}-wordpress:before { content: fa-content($fa-var-wordpress); } +.#{$fa-css-prefix}-wordpress-simple:before { content: fa-content($fa-var-wordpress-simple); } +.#{$fa-css-prefix}-wpbeginner:before { content: fa-content($fa-var-wpbeginner); } +.#{$fa-css-prefix}-wpexplorer:before { content: fa-content($fa-var-wpexplorer); } +.#{$fa-css-prefix}-wpforms:before { content: fa-content($fa-var-wpforms); } +.#{$fa-css-prefix}-wpressr:before { content: fa-content($fa-var-wpressr); } +.#{$fa-css-prefix}-wreath:before { content: fa-content($fa-var-wreath); } +.#{$fa-css-prefix}-wrench:before { content: fa-content($fa-var-wrench); } +.#{$fa-css-prefix}-x-ray:before { content: fa-content($fa-var-x-ray); } +.#{$fa-css-prefix}-xbox:before { content: fa-content($fa-var-xbox); } +.#{$fa-css-prefix}-xing:before { content: fa-content($fa-var-xing); } +.#{$fa-css-prefix}-xing-square:before { content: fa-content($fa-var-xing-square); } +.#{$fa-css-prefix}-y-combinator:before { content: fa-content($fa-var-y-combinator); } +.#{$fa-css-prefix}-yahoo:before { content: fa-content($fa-var-yahoo); } +.#{$fa-css-prefix}-yammer:before { content: fa-content($fa-var-yammer); } +.#{$fa-css-prefix}-yandex:before { content: fa-content($fa-var-yandex); } +.#{$fa-css-prefix}-yandex-international:before { content: fa-content($fa-var-yandex-international); } +.#{$fa-css-prefix}-yarn:before { content: fa-content($fa-var-yarn); } +.#{$fa-css-prefix}-yelp:before { content: fa-content($fa-var-yelp); } +.#{$fa-css-prefix}-yen-sign:before { content: fa-content($fa-var-yen-sign); } +.#{$fa-css-prefix}-yin-yang:before { content: fa-content($fa-var-yin-yang); } +.#{$fa-css-prefix}-yoast:before { content: fa-content($fa-var-yoast); } +.#{$fa-css-prefix}-youtube:before { content: fa-content($fa-var-youtube); } +.#{$fa-css-prefix}-youtube-square:before { content: fa-content($fa-var-youtube-square); } +.#{$fa-css-prefix}-zhihu:before { content: fa-content($fa-var-zhihu); } diff --git a/dev/src/assets/css/fontawesome/_larger.scss b/dev/src/assets/css/fontawesome/_larger.scss new file mode 100644 index 000000000..745d7a4b2 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_larger.scss @@ -0,0 +1,23 @@ +// Icon Sizes +// ------------------------- + +// makes the font 33% larger relative to the icon container +.#{$fa-css-prefix}-lg { + font-size: calc(4em / 3); + line-height: calc(3em / 4); + vertical-align: -.0667em; +} + +.#{$fa-css-prefix}-xs { + font-size: .75em; +} + +.#{$fa-css-prefix}-sm { + font-size: .875em; +} + +@for $i from 1 through 10 { + .#{$fa-css-prefix}-#{$i}x { + font-size: $i * 1em; + } +} diff --git a/dev/src/assets/css/fontawesome/_list.scss b/dev/src/assets/css/fontawesome/_list.scss new file mode 100644 index 000000000..6f0180d31 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_list.scss @@ -0,0 +1,18 @@ +// List Icons +// ------------------------- + +.#{$fa-css-prefix}-ul { + list-style-type: none; + margin-left: calc($fa-li-width * 5/4); + padding-left: 0; + + > li { position: relative; } +} + +.#{$fa-css-prefix}-li { + left: -$fa-li-width; + position: absolute; + text-align: center; + width: $fa-li-width; + line-height: inherit; +} diff --git a/dev/src/assets/css/fontawesome/_mixins.scss b/dev/src/assets/css/fontawesome/_mixins.scss new file mode 100644 index 000000000..55baeeba3 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_mixins.scss @@ -0,0 +1,56 @@ +// Mixins +// -------------------------- + +@mixin fa-icon { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + display: inline-block; + font-style: normal; + font-variant: normal; + font-weight: normal; + line-height: 1; +} + +@mixin fa-icon-rotate($degrees, $rotation) { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})"; + transform: rotate($degrees); +} + +@mixin fa-icon-flip($horiz, $vert, $rotation) { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)"; + transform: scale($horiz, $vert); +} + + +// Only display content to screen readers. A la Bootstrap 4. +// +// See: http://a11yproject.com/posts/how-to-hide-content/ + +@mixin sr-only { + border: 0; + clip: rect(0, 0, 0, 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +// Use in conjunction with .sr-only to only display content when it's focused. +// +// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 +// +// Credit: HTML5 Boilerplate + +@mixin sr-only-focusable { + &:active, + &:focus { + clip: auto; + height: auto; + margin: 0; + overflow: visible; + position: static; + width: auto; + } +} diff --git a/dev/src/assets/css/fontawesome/_rotated-flipped.scss b/dev/src/assets/css/fontawesome/_rotated-flipped.scss new file mode 100644 index 000000000..164d97219 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_rotated-flipped.scss @@ -0,0 +1,24 @@ +// Rotated & Flipped Icons +// ------------------------- + +.#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); } +.#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); } +.#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); } + +.#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); } +.#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); } +.#{$fa-css-prefix}-flip-both, .#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(-1, -1, 2); } + +// Hook for IE8-9 +// ------------------------- + +:root { + .#{$fa-css-prefix}-rotate-90, + .#{$fa-css-prefix}-rotate-180, + .#{$fa-css-prefix}-rotate-270, + .#{$fa-css-prefix}-flip-horizontal, + .#{$fa-css-prefix}-flip-vertical, + .#{$fa-css-prefix}-flip-both { + filter: none; + } +} diff --git a/dev/src/assets/css/fontawesome/_screen-reader.scss b/dev/src/assets/css/fontawesome/_screen-reader.scss new file mode 100644 index 000000000..5d0ab262f --- /dev/null +++ b/dev/src/assets/css/fontawesome/_screen-reader.scss @@ -0,0 +1,5 @@ +// Screen Readers +// ------------------------- + +.sr-only { @include sr-only; } +.sr-only-focusable { @include sr-only-focusable; } diff --git a/dev/src/assets/css/fontawesome/_shims.scss b/dev/src/assets/css/fontawesome/_shims.scss new file mode 100644 index 000000000..10c2cd893 --- /dev/null +++ b/dev/src/assets/css/fontawesome/_shims.scss @@ -0,0 +1,2066 @@ +.#{$fa-css-prefix}.#{$fa-css-prefix}-glass:before { content: fa-content($fa-var-glass-martini); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-meetup { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-o:before { content: fa-content($fa-var-star); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-remove:before { content: fa-content($fa-var-times); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-close:before { content: fa-content($fa-var-times); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gear:before { content: fa-content($fa-var-cog); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-trash-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-trash-o:before { content: fa-content($fa-var-trash-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-o:before { content: fa-content($fa-var-file); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-clock-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-clock-o:before { content: fa-content($fa-var-clock); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-down { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-down:before { content: fa-content($fa-var-arrow-alt-circle-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-up { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-up:before { content: fa-content($fa-var-arrow-alt-circle-up); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-play-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-play-circle-o:before { content: fa-content($fa-var-play-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-repeat:before { content: fa-content($fa-var-redo); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-rotate-right:before { content: fa-content($fa-var-redo); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-refresh:before { content: fa-content($fa-var-sync); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-list-alt { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-dedent:before { content: fa-content($fa-var-outdent); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-video-camera:before { content: fa-content($fa-var-video); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-picture-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-picture-o:before { content: fa-content($fa-var-image); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-photo { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-photo:before { content: fa-content($fa-var-image); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-image { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-image:before { content: fa-content($fa-var-image); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pencil:before { content: fa-content($fa-var-pencil-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-map-marker:before { content: fa-content($fa-var-map-marker-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pencil-square-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-pencil-square-o:before { content: fa-content($fa-var-edit); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-share-square-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-share-square-o:before { content: fa-content($fa-var-share-square); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-check-square-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-check-square-o:before { content: fa-content($fa-var-check-square); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrows:before { content: fa-content($fa-var-arrows-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-times-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-times-circle-o:before { content: fa-content($fa-var-times-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-check-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-check-circle-o:before { content: fa-content($fa-var-check-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-mail-forward:before { content: fa-content($fa-var-share); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-expand:before { content: fa-content($fa-var-expand-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-compress:before { content: fa-content($fa-var-compress-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-eye { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-eye-slash { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-warning:before { content: fa-content($fa-var-exclamation-triangle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar:before { content: fa-content($fa-var-calendar-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrows-v:before { content: fa-content($fa-var-arrows-alt-v); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrows-h:before { content: fa-content($fa-var-arrows-alt-h); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bar-chart { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-bar-chart:before { content: fa-content($fa-var-chart-bar); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bar-chart-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-bar-chart-o:before { content: fa-content($fa-var-chart-bar); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-twitter-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-facebook-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gears:before { content: fa-content($fa-var-cogs); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thumbs-o-up { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-thumbs-o-up:before { content: fa-content($fa-var-thumbs-up); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thumbs-o-down { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-thumbs-o-down:before { content: fa-content($fa-var-thumbs-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-heart-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-heart-o:before { content: fa-content($fa-var-heart); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sign-out:before { content: fa-content($fa-var-sign-out-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-linkedin-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-linkedin-square:before { content: fa-content($fa-var-linkedin); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thumb-tack:before { content: fa-content($fa-var-thumbtack); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-external-link:before { content: fa-content($fa-var-external-link-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sign-in:before { content: fa-content($fa-var-sign-in-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-github-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-lemon-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-lemon-o:before { content: fa-content($fa-var-lemon); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-square-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-square-o:before { content: fa-content($fa-var-square); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bookmark-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-bookmark-o:before { content: fa-content($fa-var-bookmark); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-twitter { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-facebook { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-facebook:before { content: fa-content($fa-var-facebook-f); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-facebook-f { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-facebook-f:before { content: fa-content($fa-var-facebook-f); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-github { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-credit-card { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-feed:before { content: fa-content($fa-var-rss); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hdd-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hdd-o:before { content: fa-content($fa-var-hdd); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-right { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-right:before { content: fa-content($fa-var-hand-point-right); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-left { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-left:before { content: fa-content($fa-var-hand-point-left); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-up { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-up:before { content: fa-content($fa-var-hand-point-up); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-down { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-o-down:before { content: fa-content($fa-var-hand-point-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrows-alt:before { content: fa-content($fa-var-expand-arrows-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-group:before { content: fa-content($fa-var-users); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-chain:before { content: fa-content($fa-var-link); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-scissors:before { content: fa-content($fa-var-cut); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-files-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-files-o:before { content: fa-content($fa-var-copy); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-floppy-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-floppy-o:before { content: fa-content($fa-var-save); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-navicon:before { content: fa-content($fa-var-bars); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-reorder:before { content: fa-content($fa-var-bars); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pinterest { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pinterest-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-plus-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-plus { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-plus:before { content: fa-content($fa-var-google-plus-g); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-money { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-money:before { content: fa-content($fa-var-money-bill-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-unsorted:before { content: fa-content($fa-var-sort); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-desc:before { content: fa-content($fa-var-sort-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-asc:before { content: fa-content($fa-var-sort-up); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-linkedin { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-linkedin:before { content: fa-content($fa-var-linkedin-in); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-rotate-left:before { content: fa-content($fa-var-undo); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-legal:before { content: fa-content($fa-var-gavel); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-tachometer:before { content: fa-content($fa-var-tachometer-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-dashboard:before { content: fa-content($fa-var-tachometer-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-comment-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-comment-o:before { content: fa-content($fa-var-comment); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-comments-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-comments-o:before { content: fa-content($fa-var-comments); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-flash:before { content: fa-content($fa-var-bolt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-clipboard { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-paste { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-paste:before { content: fa-content($fa-var-clipboard); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-lightbulb-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-lightbulb-o:before { content: fa-content($fa-var-lightbulb); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-exchange:before { content: fa-content($fa-var-exchange-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cloud-download:before { content: fa-content($fa-var-cloud-download-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cloud-upload:before { content: fa-content($fa-var-cloud-upload-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bell-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-bell-o:before { content: fa-content($fa-var-bell); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cutlery:before { content: fa-content($fa-var-utensils); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-text-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-text-o:before { content: fa-content($fa-var-file-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-building-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-building-o:before { content: fa-content($fa-var-building); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hospital-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hospital-o:before { content: fa-content($fa-var-hospital); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-tablet:before { content: fa-content($fa-var-tablet-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-mobile:before { content: fa-content($fa-var-mobile-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-mobile-phone:before { content: fa-content($fa-var-mobile-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-circle-o:before { content: fa-content($fa-var-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-mail-reply:before { content: fa-content($fa-var-reply); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-github-alt { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-folder-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-folder-o:before { content: fa-content($fa-var-folder); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-folder-open-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-folder-open-o:before { content: fa-content($fa-var-folder-open); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-smile-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-smile-o:before { content: fa-content($fa-var-smile); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-frown-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-frown-o:before { content: fa-content($fa-var-frown); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-meh-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-meh-o:before { content: fa-content($fa-var-meh); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-keyboard-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-keyboard-o:before { content: fa-content($fa-var-keyboard); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-flag-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-flag-o:before { content: fa-content($fa-var-flag); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-mail-reply-all:before { content: fa-content($fa-var-reply-all); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-half-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-half-o:before { content: fa-content($fa-var-star-half); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-half-empty { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-half-empty:before { content: fa-content($fa-var-star-half); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-half-full { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-star-half-full:before { content: fa-content($fa-var-star-half); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-code-fork:before { content: fa-content($fa-var-code-branch); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-chain-broken:before { content: fa-content($fa-var-unlink); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-shield:before { content: fa-content($fa-var-shield-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-o:before { content: fa-content($fa-var-calendar); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-maxcdn { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-html5 { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-css3 { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-ticket:before { content: fa-content($fa-var-ticket-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-minus-square-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-minus-square-o:before { content: fa-content($fa-var-minus-square); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-level-up:before { content: fa-content($fa-var-level-up-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-level-down:before { content: fa-content($fa-var-level-down-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pencil-square:before { content: fa-content($fa-var-pen-square); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-external-link-square:before { content: fa-content($fa-var-external-link-square-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-compass { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-down { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-down:before { content: fa-content($fa-var-caret-square-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-down { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-down:before { content: fa-content($fa-var-caret-square-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-up { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-up:before { content: fa-content($fa-var-caret-square-up); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-up { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-up:before { content: fa-content($fa-var-caret-square-up); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-right { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-right:before { content: fa-content($fa-var-caret-square-right); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-right { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-right:before { content: fa-content($fa-var-caret-square-right); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-eur:before { content: fa-content($fa-var-euro-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-euro:before { content: fa-content($fa-var-euro-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gbp:before { content: fa-content($fa-var-pound-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-usd:before { content: fa-content($fa-var-dollar-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-dollar:before { content: fa-content($fa-var-dollar-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-inr:before { content: fa-content($fa-var-rupee-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-rupee:before { content: fa-content($fa-var-rupee-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-jpy:before { content: fa-content($fa-var-yen-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cny:before { content: fa-content($fa-var-yen-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-rmb:before { content: fa-content($fa-var-yen-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-yen:before { content: fa-content($fa-var-yen-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-rub:before { content: fa-content($fa-var-ruble-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-ruble:before { content: fa-content($fa-var-ruble-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-rouble:before { content: fa-content($fa-var-ruble-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-krw:before { content: fa-content($fa-var-won-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-won:before { content: fa-content($fa-var-won-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-btc { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bitcoin { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-bitcoin:before { content: fa-content($fa-var-btc); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-text:before { content: fa-content($fa-var-file-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-alpha-asc:before { content: fa-content($fa-var-sort-alpha-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-alpha-desc:before { content: fa-content($fa-var-sort-alpha-down-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-amount-asc:before { content: fa-content($fa-var-sort-amount-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-amount-desc:before { content: fa-content($fa-var-sort-amount-down-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-numeric-asc:before { content: fa-content($fa-var-sort-numeric-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sort-numeric-desc:before { content: fa-content($fa-var-sort-numeric-down-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-youtube-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-youtube { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-xing { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-xing-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-youtube-play { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-youtube-play:before { content: fa-content($fa-var-youtube); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-dropbox { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-stack-overflow { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-instagram { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-flickr { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-adn { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bitbucket { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bitbucket-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-bitbucket-square:before { content: fa-content($fa-var-bitbucket); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-tumblr { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-tumblr-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-long-arrow-down:before { content: fa-content($fa-var-long-arrow-alt-down); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-long-arrow-up:before { content: fa-content($fa-var-long-arrow-alt-up); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-long-arrow-left:before { content: fa-content($fa-var-long-arrow-alt-left); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-long-arrow-right:before { content: fa-content($fa-var-long-arrow-alt-right); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-apple { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-windows { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-android { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-linux { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-dribbble { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-skype { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-foursquare { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-trello { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gratipay { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gittip { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-gittip:before { content: fa-content($fa-var-gratipay); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sun-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-sun-o:before { content: fa-content($fa-var-sun); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-moon-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-moon-o:before { content: fa-content($fa-var-moon); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-vk { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-weibo { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-renren { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pagelines { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-stack-exchange { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-right { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-right:before { content: fa-content($fa-var-arrow-alt-circle-right); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-left { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-arrow-circle-o-left:before { content: fa-content($fa-var-arrow-alt-circle-left); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-left { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-caret-square-o-left:before { content: fa-content($fa-var-caret-square-left); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-left { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-toggle-left:before { content: fa-content($fa-var-caret-square-left); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-dot-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-dot-circle-o:before { content: fa-content($fa-var-dot-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-vimeo-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-try:before { content: fa-content($fa-var-lira-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-turkish-lira:before { content: fa-content($fa-var-lira-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-plus-square-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-plus-square-o:before { content: fa-content($fa-var-plus-square); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-slack { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-wordpress { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-openid { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-institution:before { content: fa-content($fa-var-university); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bank:before { content: fa-content($fa-var-university); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-mortar-board:before { content: fa-content($fa-var-graduation-cap); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-yahoo { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-google { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-reddit { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-reddit-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-stumbleupon-circle { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-stumbleupon { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-delicious { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-digg { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pied-piper-pp { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pied-piper-alt { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-drupal { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-joomla { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-spoon:before { content: fa-content($fa-var-utensil-spoon); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-behance { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-behance-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-steam { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-steam-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-automobile:before { content: fa-content($fa-var-car); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-envelope-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-envelope-o:before { content: fa-content($fa-var-envelope); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-spotify { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-deviantart { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-soundcloud { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-pdf-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-pdf-o:before { content: fa-content($fa-var-file-pdf); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-word-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-word-o:before { content: fa-content($fa-var-file-word); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-excel-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-excel-o:before { content: fa-content($fa-var-file-excel); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-powerpoint-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-powerpoint-o:before { content: fa-content($fa-var-file-powerpoint); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-image-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-image-o:before { content: fa-content($fa-var-file-image); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-photo-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-photo-o:before { content: fa-content($fa-var-file-image); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-picture-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-picture-o:before { content: fa-content($fa-var-file-image); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-archive-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-archive-o:before { content: fa-content($fa-var-file-archive); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-zip-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-zip-o:before { content: fa-content($fa-var-file-archive); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-audio-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-audio-o:before { content: fa-content($fa-var-file-audio); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-sound-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-sound-o:before { content: fa-content($fa-var-file-audio); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-video-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-video-o:before { content: fa-content($fa-var-file-video); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-movie-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-movie-o:before { content: fa-content($fa-var-file-video); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-code-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-file-code-o:before { content: fa-content($fa-var-file-code); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-vine { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-codepen { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-jsfiddle { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-life-ring { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-life-bouy { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-life-bouy:before { content: fa-content($fa-var-life-ring); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-life-buoy { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-life-buoy:before { content: fa-content($fa-var-life-ring); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-life-saver { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-life-saver:before { content: fa-content($fa-var-life-ring); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-support { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-support:before { content: fa-content($fa-var-life-ring); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-circle-o-notch:before { content: fa-content($fa-var-circle-notch); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-rebel { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-ra { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-ra:before { content: fa-content($fa-var-rebel); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-resistance { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-resistance:before { content: fa-content($fa-var-rebel); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-empire { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-ge { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-ge:before { content: fa-content($fa-var-empire); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-git-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-git { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hacker-news { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-y-combinator-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-y-combinator-square:before { content: fa-content($fa-var-hacker-news); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-yc-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-yc-square:before { content: fa-content($fa-var-hacker-news); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-tencent-weibo { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-qq { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-weixin { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-wechat { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-wechat:before { content: fa-content($fa-var-weixin); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-send:before { content: fa-content($fa-var-paper-plane); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-paper-plane-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-paper-plane-o:before { content: fa-content($fa-var-paper-plane); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-send-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-send-o:before { content: fa-content($fa-var-paper-plane); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-circle-thin { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-circle-thin:before { content: fa-content($fa-var-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-header:before { content: fa-content($fa-var-heading); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sliders:before { content: fa-content($fa-var-sliders-h); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-futbol-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-futbol-o:before { content: fa-content($fa-var-futbol); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-soccer-ball-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-soccer-ball-o:before { content: fa-content($fa-var-futbol); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-slideshare { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-twitch { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-yelp { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-newspaper-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-newspaper-o:before { content: fa-content($fa-var-newspaper); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-paypal { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-wallet { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-visa { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-mastercard { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-discover { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-amex { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-paypal { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-stripe { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bell-slash-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-bell-slash-o:before { content: fa-content($fa-var-bell-slash); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-trash:before { content: fa-content($fa-var-trash-alt); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-copyright { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-eyedropper:before { content: fa-content($fa-var-eye-dropper); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-area-chart:before { content: fa-content($fa-var-chart-area); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pie-chart:before { content: fa-content($fa-var-chart-pie); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-line-chart:before { content: fa-content($fa-var-chart-line); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-lastfm { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-lastfm-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-ioxhost { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-angellist { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc:before { content: fa-content($fa-var-closed-captioning); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-ils:before { content: fa-content($fa-var-shekel-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-shekel:before { content: fa-content($fa-var-shekel-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sheqel:before { content: fa-content($fa-var-shekel-sign); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-meanpath { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-meanpath:before { content: fa-content($fa-var-font-awesome); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-buysellads { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-connectdevelop { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-dashcube { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-forumbee { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-leanpub { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sellsy { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-shirtsinbulk { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-simplybuilt { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-skyatlas { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-diamond { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-diamond:before { content: fa-content($fa-var-gem); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-intersex:before { content: fa-content($fa-var-transgender); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-facebook-official { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-facebook-official:before { content: fa-content($fa-var-facebook); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pinterest-p { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-whatsapp { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hotel:before { content: fa-content($fa-var-bed); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-viacoin { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-medium { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-y-combinator { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-yc { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-yc:before { content: fa-content($fa-var-y-combinator); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-optin-monster { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-opencart { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-expeditedssl { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-battery-4:before { content: fa-content($fa-var-battery-full); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-battery:before { content: fa-content($fa-var-battery-full); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-battery-3:before { content: fa-content($fa-var-battery-three-quarters); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-battery-2:before { content: fa-content($fa-var-battery-half); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-battery-1:before { content: fa-content($fa-var-battery-quarter); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-battery-0:before { content: fa-content($fa-var-battery-empty); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-object-group { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-object-ungroup { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-sticky-note-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-sticky-note-o:before { content: fa-content($fa-var-sticky-note); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-jcb { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cc-diners-club { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-clone { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hourglass-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hourglass-o:before { content: fa-content($fa-var-hourglass); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hourglass-1:before { content: fa-content($fa-var-hourglass-start); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hourglass-2:before { content: fa-content($fa-var-hourglass-half); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hourglass-3:before { content: fa-content($fa-var-hourglass-end); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-rock-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-rock-o:before { content: fa-content($fa-var-hand-rock); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-grab-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-grab-o:before { content: fa-content($fa-var-hand-rock); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-paper-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-paper-o:before { content: fa-content($fa-var-hand-paper); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-stop-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-stop-o:before { content: fa-content($fa-var-hand-paper); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-scissors-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-scissors-o:before { content: fa-content($fa-var-hand-scissors); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-lizard-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-lizard-o:before { content: fa-content($fa-var-hand-lizard); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-spock-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-spock-o:before { content: fa-content($fa-var-hand-spock); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-pointer-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-pointer-o:before { content: fa-content($fa-var-hand-pointer); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-peace-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-hand-peace-o:before { content: fa-content($fa-var-hand-peace); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-registered { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-creative-commons { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gg { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gg-circle { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-tripadvisor { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-odnoklassniki { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-odnoklassniki-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-get-pocket { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-wikipedia-w { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-safari { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-chrome { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-firefox { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-opera { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-internet-explorer { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-television:before { content: fa-content($fa-var-tv); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-contao { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-500px { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-amazon { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-plus-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-plus-o:before { content: fa-content($fa-var-calendar-plus); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-minus-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-minus-o:before { content: fa-content($fa-var-calendar-minus); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-times-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-times-o:before { content: fa-content($fa-var-calendar-times); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-check-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-calendar-check-o:before { content: fa-content($fa-var-calendar-check); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-map-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-map-o:before { content: fa-content($fa-var-map); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-commenting:before { content: fa-content($fa-var-comment-dots); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-commenting-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-commenting-o:before { content: fa-content($fa-var-comment-dots); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-houzz { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-vimeo { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-vimeo:before { content: fa-content($fa-var-vimeo-v); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-black-tie { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-fonticons { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-reddit-alien { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-edge { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-credit-card-alt:before { content: fa-content($fa-var-credit-card); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-codiepie { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-modx { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-fort-awesome { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-usb { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-product-hunt { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-mixcloud { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-scribd { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pause-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-pause-circle-o:before { content: fa-content($fa-var-pause-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-stop-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-stop-circle-o:before { content: fa-content($fa-var-stop-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bluetooth { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bluetooth-b { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-gitlab { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-wpbeginner { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-wpforms { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-envira { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-wheelchair-alt { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-wheelchair-alt:before { content: fa-content($fa-var-accessible-icon); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-question-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-question-circle-o:before { content: fa-content($fa-var-question-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-volume-control-phone:before { content: fa-content($fa-var-phone-volume); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-asl-interpreting:before { content: fa-content($fa-var-american-sign-language-interpreting); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-deafness:before { content: fa-content($fa-var-deaf); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-hard-of-hearing:before { content: fa-content($fa-var-deaf); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-glide { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-glide-g { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-signing:before { content: fa-content($fa-var-sign-language); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-viadeo { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-viadeo-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-snapchat { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-snapchat-ghost { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-snapchat-square { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-pied-piper { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-first-order { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-yoast { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-themeisle { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-plus-official { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-plus-official:before { content: fa-content($fa-var-google-plus); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-plus-circle { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-google-plus-circle:before { content: fa-content($fa-var-google-plus); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-font-awesome { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-fa { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-fa:before { content: fa-content($fa-var-font-awesome); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-handshake-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-handshake-o:before { content: fa-content($fa-var-handshake); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-envelope-open-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-envelope-open-o:before { content: fa-content($fa-var-envelope-open); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-linode { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-address-book-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-address-book-o:before { content: fa-content($fa-var-address-book); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-vcard:before { content: fa-content($fa-var-address-card); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-address-card-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-address-card-o:before { content: fa-content($fa-var-address-card); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-vcard-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-vcard-o:before { content: fa-content($fa-var-address-card); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-user-circle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-user-circle-o:before { content: fa-content($fa-var-user-circle); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-user-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-user-o:before { content: fa-content($fa-var-user); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-id-badge { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-drivers-license:before { content: fa-content($fa-var-id-card); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-id-card-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-id-card-o:before { content: fa-content($fa-var-id-card); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-drivers-license-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-drivers-license-o:before { content: fa-content($fa-var-id-card); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-quora { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-free-code-camp { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-telegram { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thermometer-4:before { content: fa-content($fa-var-thermometer-full); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thermometer:before { content: fa-content($fa-var-thermometer-full); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thermometer-3:before { content: fa-content($fa-var-thermometer-three-quarters); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thermometer-2:before { content: fa-content($fa-var-thermometer-half); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thermometer-1:before { content: fa-content($fa-var-thermometer-quarter); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-thermometer-0:before { content: fa-content($fa-var-thermometer-empty); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bathtub:before { content: fa-content($fa-var-bath); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-s15:before { content: fa-content($fa-var-bath); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-window-maximize { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-window-restore { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-times-rectangle:before { content: fa-content($fa-var-window-close); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-window-close-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-window-close-o:before { content: fa-content($fa-var-window-close); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-times-rectangle-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-times-rectangle-o:before { content: fa-content($fa-var-window-close); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-bandcamp { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-grav { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-etsy { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-imdb { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-ravelry { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-eercast { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-eercast:before { content: fa-content($fa-var-sellcast); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-snowflake-o { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} +.#{$fa-css-prefix}.#{$fa-css-prefix}-snowflake-o:before { content: fa-content($fa-var-snowflake); } + +.#{$fa-css-prefix}.#{$fa-css-prefix}-superpowers { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-wpexplorer { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} + +.#{$fa-css-prefix}.#{$fa-css-prefix}-cab:before { content: fa-content($fa-var-taxi); } + diff --git a/dev/src/assets/css/fontawesome/_stacked.scss b/dev/src/assets/css/fontawesome/_stacked.scss new file mode 100644 index 000000000..ae7ef4e8e --- /dev/null +++ b/dev/src/assets/css/fontawesome/_stacked.scss @@ -0,0 +1,31 @@ +// Stacked Icons +// ------------------------- + +.#{$fa-css-prefix}-stack { + display: inline-block; + height: 2em; + line-height: 2em; + position: relative; + vertical-align: middle; + width: ($fa-fw-width*2); +} + +.#{$fa-css-prefix}-stack-1x, +.#{$fa-css-prefix}-stack-2x { + left: 0; + position: absolute; + text-align: center; + width: 100%; +} + +.#{$fa-css-prefix}-stack-1x { + line-height: inherit; +} + +.#{$fa-css-prefix}-stack-2x { + font-size: 2em; +} + +.#{$fa-css-prefix}-inverse { + color: $fa-inverse; +} diff --git a/dev/src/assets/css/fontawesome/_variables.scss b/dev/src/assets/css/fontawesome/_variables.scss new file mode 100644 index 000000000..243e4c78f --- /dev/null +++ b/dev/src/assets/css/fontawesome/_variables.scss @@ -0,0 +1,2329 @@ +// Variables +// -------------------------- + +$fa-font-path: "../fonts" !default; +$fa-font-size-base: 16px !default; +$fa-font-display: block !default; +$fa-css-prefix: fa !default; +$fa-version: "5.15.4" !default; +$fa-border-color: #eee !default; +$fa-inverse: #fff !default; +$fa-li-width: 2em !default; +$fa-fw-width: calc(20em / 16); +$fa-primary-opacity: 1 !default; +$fa-secondary-opacity: .4 !default; + +// Convenience function used to set content property +@function fa-content($fa-var) { + @return unquote("\"#{ $fa-var }\""); +} + +$fa-var-500px: \f26e; +$fa-var-abacus: \f640; +$fa-var-accessible-icon: \f368; +$fa-var-accusoft: \f369; +$fa-var-acorn: \f6ae; +$fa-var-acquisitions-incorporated: \f6af; +$fa-var-ad: \f641; +$fa-var-address-book: \f2b9; +$fa-var-address-card: \f2bb; +$fa-var-adjust: \f042; +$fa-var-adn: \f170; +$fa-var-adversal: \f36a; +$fa-var-affiliatetheme: \f36b; +$fa-var-air-conditioner: \f8f4; +$fa-var-air-freshener: \f5d0; +$fa-var-airbnb: \f834; +$fa-var-alarm-clock: \f34e; +$fa-var-alarm-exclamation: \f843; +$fa-var-alarm-plus: \f844; +$fa-var-alarm-snooze: \f845; +$fa-var-album: \f89f; +$fa-var-album-collection: \f8a0; +$fa-var-algolia: \f36c; +$fa-var-alicorn: \f6b0; +$fa-var-alien: \f8f5; +$fa-var-alien-monster: \f8f6; +$fa-var-align-center: \f037; +$fa-var-align-justify: \f039; +$fa-var-align-left: \f036; +$fa-var-align-right: \f038; +$fa-var-align-slash: \f846; +$fa-var-alipay: \f642; +$fa-var-allergies: \f461; +$fa-var-amazon: \f270; +$fa-var-amazon-pay: \f42c; +$fa-var-ambulance: \f0f9; +$fa-var-american-sign-language-interpreting: \f2a3; +$fa-var-amilia: \f36d; +$fa-var-amp-guitar: \f8a1; +$fa-var-analytics: \f643; +$fa-var-anchor: \f13d; +$fa-var-android: \f17b; +$fa-var-angel: \f779; +$fa-var-angellist: \f209; +$fa-var-angle-double-down: \f103; +$fa-var-angle-double-left: \f100; +$fa-var-angle-double-right: \f101; +$fa-var-angle-double-up: \f102; +$fa-var-angle-down: \f107; +$fa-var-angle-left: \f104; +$fa-var-angle-right: \f105; +$fa-var-angle-up: \f106; +$fa-var-angry: \f556; +$fa-var-angrycreative: \f36e; +$fa-var-angular: \f420; +$fa-var-ankh: \f644; +$fa-var-app-store: \f36f; +$fa-var-app-store-ios: \f370; +$fa-var-apper: \f371; +$fa-var-apple: \f179; +$fa-var-apple-alt: \f5d1; +$fa-var-apple-crate: \f6b1; +$fa-var-apple-pay: \f415; +$fa-var-archive: \f187; +$fa-var-archway: \f557; +$fa-var-arrow-alt-circle-down: \f358; +$fa-var-arrow-alt-circle-left: \f359; +$fa-var-arrow-alt-circle-right: \f35a; +$fa-var-arrow-alt-circle-up: \f35b; +$fa-var-arrow-alt-down: \f354; +$fa-var-arrow-alt-from-bottom: \f346; +$fa-var-arrow-alt-from-left: \f347; +$fa-var-arrow-alt-from-right: \f348; +$fa-var-arrow-alt-from-top: \f349; +$fa-var-arrow-alt-left: \f355; +$fa-var-arrow-alt-right: \f356; +$fa-var-arrow-alt-square-down: \f350; +$fa-var-arrow-alt-square-left: \f351; +$fa-var-arrow-alt-square-right: \f352; +$fa-var-arrow-alt-square-up: \f353; +$fa-var-arrow-alt-to-bottom: \f34a; +$fa-var-arrow-alt-to-left: \f34b; +$fa-var-arrow-alt-to-right: \f34c; +$fa-var-arrow-alt-to-top: \f34d; +$fa-var-arrow-alt-up: \f357; +$fa-var-arrow-circle-down: \f0ab; +$fa-var-arrow-circle-left: \f0a8; +$fa-var-arrow-circle-right: \f0a9; +$fa-var-arrow-circle-up: \f0aa; +$fa-var-arrow-down: \f063; +$fa-var-arrow-from-bottom: \f342; +$fa-var-arrow-from-left: \f343; +$fa-var-arrow-from-right: \f344; +$fa-var-arrow-from-top: \f345; +$fa-var-arrow-left: \f060; +$fa-var-arrow-right: \f061; +$fa-var-arrow-square-down: \f339; +$fa-var-arrow-square-left: \f33a; +$fa-var-arrow-square-right: \f33b; +$fa-var-arrow-square-up: \f33c; +$fa-var-arrow-to-bottom: \f33d; +$fa-var-arrow-to-left: \f33e; +$fa-var-arrow-to-right: \f340; +$fa-var-arrow-to-top: \f341; +$fa-var-arrow-up: \f062; +$fa-var-arrows: \f047; +$fa-var-arrows-alt: \f0b2; +$fa-var-arrows-alt-h: \f337; +$fa-var-arrows-alt-v: \f338; +$fa-var-arrows-h: \f07e; +$fa-var-arrows-v: \f07d; +$fa-var-artstation: \f77a; +$fa-var-assistive-listening-systems: \f2a2; +$fa-var-asterisk: \f069; +$fa-var-asymmetrik: \f372; +$fa-var-at: \f1fa; +$fa-var-atlas: \f558; +$fa-var-atlassian: \f77b; +$fa-var-atom: \f5d2; +$fa-var-atom-alt: \f5d3; +$fa-var-audible: \f373; +$fa-var-audio-description: \f29e; +$fa-var-autoprefixer: \f41c; +$fa-var-avianex: \f374; +$fa-var-aviato: \f421; +$fa-var-award: \f559; +$fa-var-aws: \f375; +$fa-var-axe: \f6b2; +$fa-var-axe-battle: \f6b3; +$fa-var-baby: \f77c; +$fa-var-baby-carriage: \f77d; +$fa-var-backpack: \f5d4; +$fa-var-backspace: \f55a; +$fa-var-backward: \f04a; +$fa-var-bacon: \f7e5; +$fa-var-bacteria: \e059; +$fa-var-bacterium: \e05a; +$fa-var-badge: \f335; +$fa-var-badge-check: \f336; +$fa-var-badge-dollar: \f645; +$fa-var-badge-percent: \f646; +$fa-var-badge-sheriff: \f8a2; +$fa-var-badger-honey: \f6b4; +$fa-var-bags-shopping: \f847; +$fa-var-bahai: \f666; +$fa-var-balance-scale: \f24e; +$fa-var-balance-scale-left: \f515; +$fa-var-balance-scale-right: \f516; +$fa-var-ball-pile: \f77e; +$fa-var-ballot: \f732; +$fa-var-ballot-check: \f733; +$fa-var-ban: \f05e; +$fa-var-band-aid: \f462; +$fa-var-bandcamp: \f2d5; +$fa-var-banjo: \f8a3; +$fa-var-barcode: \f02a; +$fa-var-barcode-alt: \f463; +$fa-var-barcode-read: \f464; +$fa-var-barcode-scan: \f465; +$fa-var-bars: \f0c9; +$fa-var-baseball: \f432; +$fa-var-baseball-ball: \f433; +$fa-var-basketball-ball: \f434; +$fa-var-basketball-hoop: \f435; +$fa-var-bat: \f6b5; +$fa-var-bath: \f2cd; +$fa-var-battery-bolt: \f376; +$fa-var-battery-empty: \f244; +$fa-var-battery-full: \f240; +$fa-var-battery-half: \f242; +$fa-var-battery-quarter: \f243; +$fa-var-battery-slash: \f377; +$fa-var-battery-three-quarters: \f241; +$fa-var-battle-net: \f835; +$fa-var-bed: \f236; +$fa-var-bed-alt: \f8f7; +$fa-var-bed-bunk: \f8f8; +$fa-var-bed-empty: \f8f9; +$fa-var-beer: \f0fc; +$fa-var-behance: \f1b4; +$fa-var-behance-square: \f1b5; +$fa-var-bell: \f0f3; +$fa-var-bell-exclamation: \f848; +$fa-var-bell-on: \f8fa; +$fa-var-bell-plus: \f849; +$fa-var-bell-school: \f5d5; +$fa-var-bell-school-slash: \f5d6; +$fa-var-bell-slash: \f1f6; +$fa-var-bells: \f77f; +$fa-var-betamax: \f8a4; +$fa-var-bezier-curve: \f55b; +$fa-var-bible: \f647; +$fa-var-bicycle: \f206; +$fa-var-biking: \f84a; +$fa-var-biking-mountain: \f84b; +$fa-var-bimobject: \f378; +$fa-var-binoculars: \f1e5; +$fa-var-biohazard: \f780; +$fa-var-birthday-cake: \f1fd; +$fa-var-bitbucket: \f171; +$fa-var-bitcoin: \f379; +$fa-var-bity: \f37a; +$fa-var-black-tie: \f27e; +$fa-var-blackberry: \f37b; +$fa-var-blanket: \f498; +$fa-var-blender: \f517; +$fa-var-blender-phone: \f6b6; +$fa-var-blind: \f29d; +$fa-var-blinds: \f8fb; +$fa-var-blinds-open: \f8fc; +$fa-var-blinds-raised: \f8fd; +$fa-var-blog: \f781; +$fa-var-blogger: \f37c; +$fa-var-blogger-b: \f37d; +$fa-var-bluetooth: \f293; +$fa-var-bluetooth-b: \f294; +$fa-var-bold: \f032; +$fa-var-bolt: \f0e7; +$fa-var-bomb: \f1e2; +$fa-var-bone: \f5d7; +$fa-var-bone-break: \f5d8; +$fa-var-bong: \f55c; +$fa-var-book: \f02d; +$fa-var-book-alt: \f5d9; +$fa-var-book-dead: \f6b7; +$fa-var-book-heart: \f499; +$fa-var-book-medical: \f7e6; +$fa-var-book-open: \f518; +$fa-var-book-reader: \f5da; +$fa-var-book-spells: \f6b8; +$fa-var-book-user: \f7e7; +$fa-var-bookmark: \f02e; +$fa-var-books: \f5db; +$fa-var-books-medical: \f7e8; +$fa-var-boombox: \f8a5; +$fa-var-boot: \f782; +$fa-var-booth-curtain: \f734; +$fa-var-bootstrap: \f836; +$fa-var-border-all: \f84c; +$fa-var-border-bottom: \f84d; +$fa-var-border-center-h: \f89c; +$fa-var-border-center-v: \f89d; +$fa-var-border-inner: \f84e; +$fa-var-border-left: \f84f; +$fa-var-border-none: \f850; +$fa-var-border-outer: \f851; +$fa-var-border-right: \f852; +$fa-var-border-style: \f853; +$fa-var-border-style-alt: \f854; +$fa-var-border-top: \f855; +$fa-var-bow-arrow: \f6b9; +$fa-var-bowling-ball: \f436; +$fa-var-bowling-pins: \f437; +$fa-var-box: \f466; +$fa-var-box-alt: \f49a; +$fa-var-box-ballot: \f735; +$fa-var-box-check: \f467; +$fa-var-box-fragile: \f49b; +$fa-var-box-full: \f49c; +$fa-var-box-heart: \f49d; +$fa-var-box-open: \f49e; +$fa-var-box-tissue: \e05b; +$fa-var-box-up: \f49f; +$fa-var-box-usd: \f4a0; +$fa-var-boxes: \f468; +$fa-var-boxes-alt: \f4a1; +$fa-var-boxing-glove: \f438; +$fa-var-brackets: \f7e9; +$fa-var-brackets-curly: \f7ea; +$fa-var-braille: \f2a1; +$fa-var-brain: \f5dc; +$fa-var-bread-loaf: \f7eb; +$fa-var-bread-slice: \f7ec; +$fa-var-briefcase: \f0b1; +$fa-var-briefcase-medical: \f469; +$fa-var-bring-forward: \f856; +$fa-var-bring-front: \f857; +$fa-var-broadcast-tower: \f519; +$fa-var-broom: \f51a; +$fa-var-browser: \f37e; +$fa-var-brush: \f55d; +$fa-var-btc: \f15a; +$fa-var-buffer: \f837; +$fa-var-bug: \f188; +$fa-var-building: \f1ad; +$fa-var-bullhorn: \f0a1; +$fa-var-bullseye: \f140; +$fa-var-bullseye-arrow: \f648; +$fa-var-bullseye-pointer: \f649; +$fa-var-burger-soda: \f858; +$fa-var-burn: \f46a; +$fa-var-buromobelexperte: \f37f; +$fa-var-burrito: \f7ed; +$fa-var-bus: \f207; +$fa-var-bus-alt: \f55e; +$fa-var-bus-school: \f5dd; +$fa-var-business-time: \f64a; +$fa-var-buy-n-large: \f8a6; +$fa-var-buysellads: \f20d; +$fa-var-cabinet-filing: \f64b; +$fa-var-cactus: \f8a7; +$fa-var-calculator: \f1ec; +$fa-var-calculator-alt: \f64c; +$fa-var-calendar: \f133; +$fa-var-calendar-alt: \f073; +$fa-var-calendar-check: \f274; +$fa-var-calendar-day: \f783; +$fa-var-calendar-edit: \f333; +$fa-var-calendar-exclamation: \f334; +$fa-var-calendar-minus: \f272; +$fa-var-calendar-plus: \f271; +$fa-var-calendar-star: \f736; +$fa-var-calendar-times: \f273; +$fa-var-calendar-week: \f784; +$fa-var-camcorder: \f8a8; +$fa-var-camera: \f030; +$fa-var-camera-alt: \f332; +$fa-var-camera-home: \f8fe; +$fa-var-camera-movie: \f8a9; +$fa-var-camera-polaroid: \f8aa; +$fa-var-camera-retro: \f083; +$fa-var-campfire: \f6ba; +$fa-var-campground: \f6bb; +$fa-var-canadian-maple-leaf: \f785; +$fa-var-candle-holder: \f6bc; +$fa-var-candy-cane: \f786; +$fa-var-candy-corn: \f6bd; +$fa-var-cannabis: \f55f; +$fa-var-capsules: \f46b; +$fa-var-car: \f1b9; +$fa-var-car-alt: \f5de; +$fa-var-car-battery: \f5df; +$fa-var-car-building: \f859; +$fa-var-car-bump: \f5e0; +$fa-var-car-bus: \f85a; +$fa-var-car-crash: \f5e1; +$fa-var-car-garage: \f5e2; +$fa-var-car-mechanic: \f5e3; +$fa-var-car-side: \f5e4; +$fa-var-car-tilt: \f5e5; +$fa-var-car-wash: \f5e6; +$fa-var-caravan: \f8ff; +$fa-var-caravan-alt: \e000; +$fa-var-caret-circle-down: \f32d; +$fa-var-caret-circle-left: \f32e; +$fa-var-caret-circle-right: \f330; +$fa-var-caret-circle-up: \f331; +$fa-var-caret-down: \f0d7; +$fa-var-caret-left: \f0d9; +$fa-var-caret-right: \f0da; +$fa-var-caret-square-down: \f150; +$fa-var-caret-square-left: \f191; +$fa-var-caret-square-right: \f152; +$fa-var-caret-square-up: \f151; +$fa-var-caret-up: \f0d8; +$fa-var-carrot: \f787; +$fa-var-cars: \f85b; +$fa-var-cart-arrow-down: \f218; +$fa-var-cart-plus: \f217; +$fa-var-cash-register: \f788; +$fa-var-cassette-tape: \f8ab; +$fa-var-cat: \f6be; +$fa-var-cat-space: \e001; +$fa-var-cauldron: \f6bf; +$fa-var-cc-amazon-pay: \f42d; +$fa-var-cc-amex: \f1f3; +$fa-var-cc-apple-pay: \f416; +$fa-var-cc-diners-club: \f24c; +$fa-var-cc-discover: \f1f2; +$fa-var-cc-jcb: \f24b; +$fa-var-cc-mastercard: \f1f1; +$fa-var-cc-paypal: \f1f4; +$fa-var-cc-stripe: \f1f5; +$fa-var-cc-visa: \f1f0; +$fa-var-cctv: \f8ac; +$fa-var-centercode: \f380; +$fa-var-centos: \f789; +$fa-var-certificate: \f0a3; +$fa-var-chair: \f6c0; +$fa-var-chair-office: \f6c1; +$fa-var-chalkboard: \f51b; +$fa-var-chalkboard-teacher: \f51c; +$fa-var-charging-station: \f5e7; +$fa-var-chart-area: \f1fe; +$fa-var-chart-bar: \f080; +$fa-var-chart-line: \f201; +$fa-var-chart-line-down: \f64d; +$fa-var-chart-network: \f78a; +$fa-var-chart-pie: \f200; +$fa-var-chart-pie-alt: \f64e; +$fa-var-chart-scatter: \f7ee; +$fa-var-check: \f00c; +$fa-var-check-circle: \f058; +$fa-var-check-double: \f560; +$fa-var-check-square: \f14a; +$fa-var-cheese: \f7ef; +$fa-var-cheese-swiss: \f7f0; +$fa-var-cheeseburger: \f7f1; +$fa-var-chess: \f439; +$fa-var-chess-bishop: \f43a; +$fa-var-chess-bishop-alt: \f43b; +$fa-var-chess-board: \f43c; +$fa-var-chess-clock: \f43d; +$fa-var-chess-clock-alt: \f43e; +$fa-var-chess-king: \f43f; +$fa-var-chess-king-alt: \f440; +$fa-var-chess-knight: \f441; +$fa-var-chess-knight-alt: \f442; +$fa-var-chess-pawn: \f443; +$fa-var-chess-pawn-alt: \f444; +$fa-var-chess-queen: \f445; +$fa-var-chess-queen-alt: \f446; +$fa-var-chess-rook: \f447; +$fa-var-chess-rook-alt: \f448; +$fa-var-chevron-circle-down: \f13a; +$fa-var-chevron-circle-left: \f137; +$fa-var-chevron-circle-right: \f138; +$fa-var-chevron-circle-up: \f139; +$fa-var-chevron-double-down: \f322; +$fa-var-chevron-double-left: \f323; +$fa-var-chevron-double-right: \f324; +$fa-var-chevron-double-up: \f325; +$fa-var-chevron-down: \f078; +$fa-var-chevron-left: \f053; +$fa-var-chevron-right: \f054; +$fa-var-chevron-square-down: \f329; +$fa-var-chevron-square-left: \f32a; +$fa-var-chevron-square-right: \f32b; +$fa-var-chevron-square-up: \f32c; +$fa-var-chevron-up: \f077; +$fa-var-child: \f1ae; +$fa-var-chimney: \f78b; +$fa-var-chrome: \f268; +$fa-var-chromecast: \f838; +$fa-var-church: \f51d; +$fa-var-circle: \f111; +$fa-var-circle-notch: \f1ce; +$fa-var-city: \f64f; +$fa-var-clarinet: \f8ad; +$fa-var-claw-marks: \f6c2; +$fa-var-clinic-medical: \f7f2; +$fa-var-clipboard: \f328; +$fa-var-clipboard-check: \f46c; +$fa-var-clipboard-list: \f46d; +$fa-var-clipboard-list-check: \f737; +$fa-var-clipboard-prescription: \f5e8; +$fa-var-clipboard-user: \f7f3; +$fa-var-clock: \f017; +$fa-var-clone: \f24d; +$fa-var-closed-captioning: \f20a; +$fa-var-cloud: \f0c2; +$fa-var-cloud-download: \f0ed; +$fa-var-cloud-download-alt: \f381; +$fa-var-cloud-drizzle: \f738; +$fa-var-cloud-hail: \f739; +$fa-var-cloud-hail-mixed: \f73a; +$fa-var-cloud-meatball: \f73b; +$fa-var-cloud-moon: \f6c3; +$fa-var-cloud-moon-rain: \f73c; +$fa-var-cloud-music: \f8ae; +$fa-var-cloud-rain: \f73d; +$fa-var-cloud-rainbow: \f73e; +$fa-var-cloud-showers: \f73f; +$fa-var-cloud-showers-heavy: \f740; +$fa-var-cloud-sleet: \f741; +$fa-var-cloud-snow: \f742; +$fa-var-cloud-sun: \f6c4; +$fa-var-cloud-sun-rain: \f743; +$fa-var-cloud-upload: \f0ee; +$fa-var-cloud-upload-alt: \f382; +$fa-var-cloudflare: \e07d; +$fa-var-clouds: \f744; +$fa-var-clouds-moon: \f745; +$fa-var-clouds-sun: \f746; +$fa-var-cloudscale: \f383; +$fa-var-cloudsmith: \f384; +$fa-var-cloudversify: \f385; +$fa-var-club: \f327; +$fa-var-cocktail: \f561; +$fa-var-code: \f121; +$fa-var-code-branch: \f126; +$fa-var-code-commit: \f386; +$fa-var-code-merge: \f387; +$fa-var-codepen: \f1cb; +$fa-var-codiepie: \f284; +$fa-var-coffee: \f0f4; +$fa-var-coffee-pot: \e002; +$fa-var-coffee-togo: \f6c5; +$fa-var-coffin: \f6c6; +$fa-var-coffin-cross: \e051; +$fa-var-cog: \f013; +$fa-var-cogs: \f085; +$fa-var-coin: \f85c; +$fa-var-coins: \f51e; +$fa-var-columns: \f0db; +$fa-var-comet: \e003; +$fa-var-comment: \f075; +$fa-var-comment-alt: \f27a; +$fa-var-comment-alt-check: \f4a2; +$fa-var-comment-alt-dollar: \f650; +$fa-var-comment-alt-dots: \f4a3; +$fa-var-comment-alt-edit: \f4a4; +$fa-var-comment-alt-exclamation: \f4a5; +$fa-var-comment-alt-lines: \f4a6; +$fa-var-comment-alt-medical: \f7f4; +$fa-var-comment-alt-minus: \f4a7; +$fa-var-comment-alt-music: \f8af; +$fa-var-comment-alt-plus: \f4a8; +$fa-var-comment-alt-slash: \f4a9; +$fa-var-comment-alt-smile: \f4aa; +$fa-var-comment-alt-times: \f4ab; +$fa-var-comment-check: \f4ac; +$fa-var-comment-dollar: \f651; +$fa-var-comment-dots: \f4ad; +$fa-var-comment-edit: \f4ae; +$fa-var-comment-exclamation: \f4af; +$fa-var-comment-lines: \f4b0; +$fa-var-comment-medical: \f7f5; +$fa-var-comment-minus: \f4b1; +$fa-var-comment-music: \f8b0; +$fa-var-comment-plus: \f4b2; +$fa-var-comment-slash: \f4b3; +$fa-var-comment-smile: \f4b4; +$fa-var-comment-times: \f4b5; +$fa-var-comments: \f086; +$fa-var-comments-alt: \f4b6; +$fa-var-comments-alt-dollar: \f652; +$fa-var-comments-dollar: \f653; +$fa-var-compact-disc: \f51f; +$fa-var-compass: \f14e; +$fa-var-compass-slash: \f5e9; +$fa-var-compress: \f066; +$fa-var-compress-alt: \f422; +$fa-var-compress-arrows-alt: \f78c; +$fa-var-compress-wide: \f326; +$fa-var-computer-classic: \f8b1; +$fa-var-computer-speaker: \f8b2; +$fa-var-concierge-bell: \f562; +$fa-var-confluence: \f78d; +$fa-var-connectdevelop: \f20e; +$fa-var-construction: \f85d; +$fa-var-container-storage: \f4b7; +$fa-var-contao: \f26d; +$fa-var-conveyor-belt: \f46e; +$fa-var-conveyor-belt-alt: \f46f; +$fa-var-cookie: \f563; +$fa-var-cookie-bite: \f564; +$fa-var-copy: \f0c5; +$fa-var-copyright: \f1f9; +$fa-var-corn: \f6c7; +$fa-var-cotton-bureau: \f89e; +$fa-var-couch: \f4b8; +$fa-var-cow: \f6c8; +$fa-var-cowbell: \f8b3; +$fa-var-cowbell-more: \f8b4; +$fa-var-cpanel: \f388; +$fa-var-creative-commons: \f25e; +$fa-var-creative-commons-by: \f4e7; +$fa-var-creative-commons-nc: \f4e8; +$fa-var-creative-commons-nc-eu: \f4e9; +$fa-var-creative-commons-nc-jp: \f4ea; +$fa-var-creative-commons-nd: \f4eb; +$fa-var-creative-commons-pd: \f4ec; +$fa-var-creative-commons-pd-alt: \f4ed; +$fa-var-creative-commons-remix: \f4ee; +$fa-var-creative-commons-sa: \f4ef; +$fa-var-creative-commons-sampling: \f4f0; +$fa-var-creative-commons-sampling-plus: \f4f1; +$fa-var-creative-commons-share: \f4f2; +$fa-var-creative-commons-zero: \f4f3; +$fa-var-credit-card: \f09d; +$fa-var-credit-card-blank: \f389; +$fa-var-credit-card-front: \f38a; +$fa-var-cricket: \f449; +$fa-var-critical-role: \f6c9; +$fa-var-croissant: \f7f6; +$fa-var-crop: \f125; +$fa-var-crop-alt: \f565; +$fa-var-cross: \f654; +$fa-var-crosshairs: \f05b; +$fa-var-crow: \f520; +$fa-var-crown: \f521; +$fa-var-crutch: \f7f7; +$fa-var-crutches: \f7f8; +$fa-var-css3: \f13c; +$fa-var-css3-alt: \f38b; +$fa-var-cube: \f1b2; +$fa-var-cubes: \f1b3; +$fa-var-curling: \f44a; +$fa-var-cut: \f0c4; +$fa-var-cuttlefish: \f38c; +$fa-var-d-and-d: \f38d; +$fa-var-d-and-d-beyond: \f6ca; +$fa-var-dagger: \f6cb; +$fa-var-dailymotion: \e052; +$fa-var-dashcube: \f210; +$fa-var-database: \f1c0; +$fa-var-deaf: \f2a4; +$fa-var-debug: \f7f9; +$fa-var-deer: \f78e; +$fa-var-deer-rudolph: \f78f; +$fa-var-deezer: \e077; +$fa-var-delicious: \f1a5; +$fa-var-democrat: \f747; +$fa-var-deploydog: \f38e; +$fa-var-deskpro: \f38f; +$fa-var-desktop: \f108; +$fa-var-desktop-alt: \f390; +$fa-var-dev: \f6cc; +$fa-var-deviantart: \f1bd; +$fa-var-dewpoint: \f748; +$fa-var-dharmachakra: \f655; +$fa-var-dhl: \f790; +$fa-var-diagnoses: \f470; +$fa-var-diamond: \f219; +$fa-var-diaspora: \f791; +$fa-var-dice: \f522; +$fa-var-dice-d10: \f6cd; +$fa-var-dice-d12: \f6ce; +$fa-var-dice-d20: \f6cf; +$fa-var-dice-d4: \f6d0; +$fa-var-dice-d6: \f6d1; +$fa-var-dice-d8: \f6d2; +$fa-var-dice-five: \f523; +$fa-var-dice-four: \f524; +$fa-var-dice-one: \f525; +$fa-var-dice-six: \f526; +$fa-var-dice-three: \f527; +$fa-var-dice-two: \f528; +$fa-var-digg: \f1a6; +$fa-var-digging: \f85e; +$fa-var-digital-ocean: \f391; +$fa-var-digital-tachograph: \f566; +$fa-var-diploma: \f5ea; +$fa-var-directions: \f5eb; +$fa-var-disc-drive: \f8b5; +$fa-var-discord: \f392; +$fa-var-discourse: \f393; +$fa-var-disease: \f7fa; +$fa-var-divide: \f529; +$fa-var-dizzy: \f567; +$fa-var-dna: \f471; +$fa-var-do-not-enter: \f5ec; +$fa-var-dochub: \f394; +$fa-var-docker: \f395; +$fa-var-dog: \f6d3; +$fa-var-dog-leashed: \f6d4; +$fa-var-dollar-sign: \f155; +$fa-var-dolly: \f472; +$fa-var-dolly-empty: \f473; +$fa-var-dolly-flatbed: \f474; +$fa-var-dolly-flatbed-alt: \f475; +$fa-var-dolly-flatbed-empty: \f476; +$fa-var-donate: \f4b9; +$fa-var-door-closed: \f52a; +$fa-var-door-open: \f52b; +$fa-var-dot-circle: \f192; +$fa-var-dove: \f4ba; +$fa-var-download: \f019; +$fa-var-draft2digital: \f396; +$fa-var-drafting-compass: \f568; +$fa-var-dragon: \f6d5; +$fa-var-draw-circle: \f5ed; +$fa-var-draw-polygon: \f5ee; +$fa-var-draw-square: \f5ef; +$fa-var-dreidel: \f792; +$fa-var-dribbble: \f17d; +$fa-var-dribbble-square: \f397; +$fa-var-drone: \f85f; +$fa-var-drone-alt: \f860; +$fa-var-dropbox: \f16b; +$fa-var-drum: \f569; +$fa-var-drum-steelpan: \f56a; +$fa-var-drumstick: \f6d6; +$fa-var-drumstick-bite: \f6d7; +$fa-var-drupal: \f1a9; +$fa-var-dryer: \f861; +$fa-var-dryer-alt: \f862; +$fa-var-duck: \f6d8; +$fa-var-dumbbell: \f44b; +$fa-var-dumpster: \f793; +$fa-var-dumpster-fire: \f794; +$fa-var-dungeon: \f6d9; +$fa-var-dyalog: \f399; +$fa-var-ear: \f5f0; +$fa-var-ear-muffs: \f795; +$fa-var-earlybirds: \f39a; +$fa-var-ebay: \f4f4; +$fa-var-eclipse: \f749; +$fa-var-eclipse-alt: \f74a; +$fa-var-edge: \f282; +$fa-var-edge-legacy: \e078; +$fa-var-edit: \f044; +$fa-var-egg: \f7fb; +$fa-var-egg-fried: \f7fc; +$fa-var-eject: \f052; +$fa-var-elementor: \f430; +$fa-var-elephant: \f6da; +$fa-var-ellipsis-h: \f141; +$fa-var-ellipsis-h-alt: \f39b; +$fa-var-ellipsis-v: \f142; +$fa-var-ellipsis-v-alt: \f39c; +$fa-var-ello: \f5f1; +$fa-var-ember: \f423; +$fa-var-empire: \f1d1; +$fa-var-empty-set: \f656; +$fa-var-engine-warning: \f5f2; +$fa-var-envelope: \f0e0; +$fa-var-envelope-open: \f2b6; +$fa-var-envelope-open-dollar: \f657; +$fa-var-envelope-open-text: \f658; +$fa-var-envelope-square: \f199; +$fa-var-envira: \f299; +$fa-var-equals: \f52c; +$fa-var-eraser: \f12d; +$fa-var-erlang: \f39d; +$fa-var-ethereum: \f42e; +$fa-var-ethernet: \f796; +$fa-var-etsy: \f2d7; +$fa-var-euro-sign: \f153; +$fa-var-evernote: \f839; +$fa-var-exchange: \f0ec; +$fa-var-exchange-alt: \f362; +$fa-var-exclamation: \f12a; +$fa-var-exclamation-circle: \f06a; +$fa-var-exclamation-square: \f321; +$fa-var-exclamation-triangle: \f071; +$fa-var-expand: \f065; +$fa-var-expand-alt: \f424; +$fa-var-expand-arrows: \f31d; +$fa-var-expand-arrows-alt: \f31e; +$fa-var-expand-wide: \f320; +$fa-var-expeditedssl: \f23e; +$fa-var-external-link: \f08e; +$fa-var-external-link-alt: \f35d; +$fa-var-external-link-square: \f14c; +$fa-var-external-link-square-alt: \f360; +$fa-var-eye: \f06e; +$fa-var-eye-dropper: \f1fb; +$fa-var-eye-evil: \f6db; +$fa-var-eye-slash: \f070; +$fa-var-facebook: \f09a; +$fa-var-facebook-f: \f39e; +$fa-var-facebook-messenger: \f39f; +$fa-var-facebook-square: \f082; +$fa-var-fan: \f863; +$fa-var-fan-table: \e004; +$fa-var-fantasy-flight-games: \f6dc; +$fa-var-farm: \f864; +$fa-var-fast-backward: \f049; +$fa-var-fast-forward: \f050; +$fa-var-faucet: \e005; +$fa-var-faucet-drip: \e006; +$fa-var-fax: \f1ac; +$fa-var-feather: \f52d; +$fa-var-feather-alt: \f56b; +$fa-var-fedex: \f797; +$fa-var-fedora: \f798; +$fa-var-female: \f182; +$fa-var-field-hockey: \f44c; +$fa-var-fighter-jet: \f0fb; +$fa-var-figma: \f799; +$fa-var-file: \f15b; +$fa-var-file-alt: \f15c; +$fa-var-file-archive: \f1c6; +$fa-var-file-audio: \f1c7; +$fa-var-file-certificate: \f5f3; +$fa-var-file-chart-line: \f659; +$fa-var-file-chart-pie: \f65a; +$fa-var-file-check: \f316; +$fa-var-file-code: \f1c9; +$fa-var-file-contract: \f56c; +$fa-var-file-csv: \f6dd; +$fa-var-file-download: \f56d; +$fa-var-file-edit: \f31c; +$fa-var-file-excel: \f1c3; +$fa-var-file-exclamation: \f31a; +$fa-var-file-export: \f56e; +$fa-var-file-image: \f1c5; +$fa-var-file-import: \f56f; +$fa-var-file-invoice: \f570; +$fa-var-file-invoice-dollar: \f571; +$fa-var-file-medical: \f477; +$fa-var-file-medical-alt: \f478; +$fa-var-file-minus: \f318; +$fa-var-file-music: \f8b6; +$fa-var-file-pdf: \f1c1; +$fa-var-file-plus: \f319; +$fa-var-file-powerpoint: \f1c4; +$fa-var-file-prescription: \f572; +$fa-var-file-search: \f865; +$fa-var-file-signature: \f573; +$fa-var-file-spreadsheet: \f65b; +$fa-var-file-times: \f317; +$fa-var-file-upload: \f574; +$fa-var-file-user: \f65c; +$fa-var-file-video: \f1c8; +$fa-var-file-word: \f1c2; +$fa-var-files-medical: \f7fd; +$fa-var-fill: \f575; +$fa-var-fill-drip: \f576; +$fa-var-film: \f008; +$fa-var-film-alt: \f3a0; +$fa-var-film-canister: \f8b7; +$fa-var-filter: \f0b0; +$fa-var-fingerprint: \f577; +$fa-var-fire: \f06d; +$fa-var-fire-alt: \f7e4; +$fa-var-fire-extinguisher: \f134; +$fa-var-fire-smoke: \f74b; +$fa-var-firefox: \f269; +$fa-var-firefox-browser: \e007; +$fa-var-fireplace: \f79a; +$fa-var-first-aid: \f479; +$fa-var-first-order: \f2b0; +$fa-var-first-order-alt: \f50a; +$fa-var-firstdraft: \f3a1; +$fa-var-fish: \f578; +$fa-var-fish-cooked: \f7fe; +$fa-var-fist-raised: \f6de; +$fa-var-flag: \f024; +$fa-var-flag-alt: \f74c; +$fa-var-flag-checkered: \f11e; +$fa-var-flag-usa: \f74d; +$fa-var-flame: \f6df; +$fa-var-flashlight: \f8b8; +$fa-var-flask: \f0c3; +$fa-var-flask-poison: \f6e0; +$fa-var-flask-potion: \f6e1; +$fa-var-flickr: \f16e; +$fa-var-flipboard: \f44d; +$fa-var-flower: \f7ff; +$fa-var-flower-daffodil: \f800; +$fa-var-flower-tulip: \f801; +$fa-var-flushed: \f579; +$fa-var-flute: \f8b9; +$fa-var-flux-capacitor: \f8ba; +$fa-var-fly: \f417; +$fa-var-fog: \f74e; +$fa-var-folder: \f07b; +$fa-var-folder-download: \e053; +$fa-var-folder-minus: \f65d; +$fa-var-folder-open: \f07c; +$fa-var-folder-plus: \f65e; +$fa-var-folder-times: \f65f; +$fa-var-folder-tree: \f802; +$fa-var-folder-upload: \e054; +$fa-var-folders: \f660; +$fa-var-font: \f031; +$fa-var-font-awesome: \f2b4; +$fa-var-font-awesome-alt: \f35c; +$fa-var-font-awesome-flag: \f425; +$fa-var-font-awesome-logo-full: \f4e6; +$fa-var-font-case: \f866; +$fa-var-fonticons: \f280; +$fa-var-fonticons-fi: \f3a2; +$fa-var-football-ball: \f44e; +$fa-var-football-helmet: \f44f; +$fa-var-forklift: \f47a; +$fa-var-fort-awesome: \f286; +$fa-var-fort-awesome-alt: \f3a3; +$fa-var-forumbee: \f211; +$fa-var-forward: \f04e; +$fa-var-foursquare: \f180; +$fa-var-fragile: \f4bb; +$fa-var-free-code-camp: \f2c5; +$fa-var-freebsd: \f3a4; +$fa-var-french-fries: \f803; +$fa-var-frog: \f52e; +$fa-var-frosty-head: \f79b; +$fa-var-frown: \f119; +$fa-var-frown-open: \f57a; +$fa-var-fulcrum: \f50b; +$fa-var-function: \f661; +$fa-var-funnel-dollar: \f662; +$fa-var-futbol: \f1e3; +$fa-var-galactic-republic: \f50c; +$fa-var-galactic-senate: \f50d; +$fa-var-galaxy: \e008; +$fa-var-game-board: \f867; +$fa-var-game-board-alt: \f868; +$fa-var-game-console-handheld: \f8bb; +$fa-var-gamepad: \f11b; +$fa-var-gamepad-alt: \f8bc; +$fa-var-garage: \e009; +$fa-var-garage-car: \e00a; +$fa-var-garage-open: \e00b; +$fa-var-gas-pump: \f52f; +$fa-var-gas-pump-slash: \f5f4; +$fa-var-gavel: \f0e3; +$fa-var-gem: \f3a5; +$fa-var-genderless: \f22d; +$fa-var-get-pocket: \f265; +$fa-var-gg: \f260; +$fa-var-gg-circle: \f261; +$fa-var-ghost: \f6e2; +$fa-var-gift: \f06b; +$fa-var-gift-card: \f663; +$fa-var-gifts: \f79c; +$fa-var-gingerbread-man: \f79d; +$fa-var-git: \f1d3; +$fa-var-git-alt: \f841; +$fa-var-git-square: \f1d2; +$fa-var-github: \f09b; +$fa-var-github-alt: \f113; +$fa-var-github-square: \f092; +$fa-var-gitkraken: \f3a6; +$fa-var-gitlab: \f296; +$fa-var-gitter: \f426; +$fa-var-glass: \f804; +$fa-var-glass-champagne: \f79e; +$fa-var-glass-cheers: \f79f; +$fa-var-glass-citrus: \f869; +$fa-var-glass-martini: \f000; +$fa-var-glass-martini-alt: \f57b; +$fa-var-glass-whiskey: \f7a0; +$fa-var-glass-whiskey-rocks: \f7a1; +$fa-var-glasses: \f530; +$fa-var-glasses-alt: \f5f5; +$fa-var-glide: \f2a5; +$fa-var-glide-g: \f2a6; +$fa-var-globe: \f0ac; +$fa-var-globe-africa: \f57c; +$fa-var-globe-americas: \f57d; +$fa-var-globe-asia: \f57e; +$fa-var-globe-europe: \f7a2; +$fa-var-globe-snow: \f7a3; +$fa-var-globe-stand: \f5f6; +$fa-var-gofore: \f3a7; +$fa-var-golf-ball: \f450; +$fa-var-golf-club: \f451; +$fa-var-goodreads: \f3a8; +$fa-var-goodreads-g: \f3a9; +$fa-var-google: \f1a0; +$fa-var-google-drive: \f3aa; +$fa-var-google-pay: \e079; +$fa-var-google-play: \f3ab; +$fa-var-google-plus: \f2b3; +$fa-var-google-plus-g: \f0d5; +$fa-var-google-plus-square: \f0d4; +$fa-var-google-wallet: \f1ee; +$fa-var-gopuram: \f664; +$fa-var-graduation-cap: \f19d; +$fa-var-gramophone: \f8bd; +$fa-var-gratipay: \f184; +$fa-var-grav: \f2d6; +$fa-var-greater-than: \f531; +$fa-var-greater-than-equal: \f532; +$fa-var-grimace: \f57f; +$fa-var-grin: \f580; +$fa-var-grin-alt: \f581; +$fa-var-grin-beam: \f582; +$fa-var-grin-beam-sweat: \f583; +$fa-var-grin-hearts: \f584; +$fa-var-grin-squint: \f585; +$fa-var-grin-squint-tears: \f586; +$fa-var-grin-stars: \f587; +$fa-var-grin-tears: \f588; +$fa-var-grin-tongue: \f589; +$fa-var-grin-tongue-squint: \f58a; +$fa-var-grin-tongue-wink: \f58b; +$fa-var-grin-wink: \f58c; +$fa-var-grip-horizontal: \f58d; +$fa-var-grip-lines: \f7a4; +$fa-var-grip-lines-vertical: \f7a5; +$fa-var-grip-vertical: \f58e; +$fa-var-gripfire: \f3ac; +$fa-var-grunt: \f3ad; +$fa-var-guilded: \e07e; +$fa-var-guitar: \f7a6; +$fa-var-guitar-electric: \f8be; +$fa-var-guitars: \f8bf; +$fa-var-gulp: \f3ae; +$fa-var-h-square: \f0fd; +$fa-var-h1: \f313; +$fa-var-h2: \f314; +$fa-var-h3: \f315; +$fa-var-h4: \f86a; +$fa-var-hacker-news: \f1d4; +$fa-var-hacker-news-square: \f3af; +$fa-var-hackerrank: \f5f7; +$fa-var-hamburger: \f805; +$fa-var-hammer: \f6e3; +$fa-var-hammer-war: \f6e4; +$fa-var-hamsa: \f665; +$fa-var-hand-heart: \f4bc; +$fa-var-hand-holding: \f4bd; +$fa-var-hand-holding-box: \f47b; +$fa-var-hand-holding-heart: \f4be; +$fa-var-hand-holding-magic: \f6e5; +$fa-var-hand-holding-medical: \e05c; +$fa-var-hand-holding-seedling: \f4bf; +$fa-var-hand-holding-usd: \f4c0; +$fa-var-hand-holding-water: \f4c1; +$fa-var-hand-lizard: \f258; +$fa-var-hand-middle-finger: \f806; +$fa-var-hand-paper: \f256; +$fa-var-hand-peace: \f25b; +$fa-var-hand-point-down: \f0a7; +$fa-var-hand-point-left: \f0a5; +$fa-var-hand-point-right: \f0a4; +$fa-var-hand-point-up: \f0a6; +$fa-var-hand-pointer: \f25a; +$fa-var-hand-receiving: \f47c; +$fa-var-hand-rock: \f255; +$fa-var-hand-scissors: \f257; +$fa-var-hand-sparkles: \e05d; +$fa-var-hand-spock: \f259; +$fa-var-hands: \f4c2; +$fa-var-hands-heart: \f4c3; +$fa-var-hands-helping: \f4c4; +$fa-var-hands-usd: \f4c5; +$fa-var-hands-wash: \e05e; +$fa-var-handshake: \f2b5; +$fa-var-handshake-alt: \f4c6; +$fa-var-handshake-alt-slash: \e05f; +$fa-var-handshake-slash: \e060; +$fa-var-hanukiah: \f6e6; +$fa-var-hard-hat: \f807; +$fa-var-hashtag: \f292; +$fa-var-hat-chef: \f86b; +$fa-var-hat-cowboy: \f8c0; +$fa-var-hat-cowboy-side: \f8c1; +$fa-var-hat-santa: \f7a7; +$fa-var-hat-winter: \f7a8; +$fa-var-hat-witch: \f6e7; +$fa-var-hat-wizard: \f6e8; +$fa-var-hdd: \f0a0; +$fa-var-head-side: \f6e9; +$fa-var-head-side-brain: \f808; +$fa-var-head-side-cough: \e061; +$fa-var-head-side-cough-slash: \e062; +$fa-var-head-side-headphones: \f8c2; +$fa-var-head-side-mask: \e063; +$fa-var-head-side-medical: \f809; +$fa-var-head-side-virus: \e064; +$fa-var-head-vr: \f6ea; +$fa-var-heading: \f1dc; +$fa-var-headphones: \f025; +$fa-var-headphones-alt: \f58f; +$fa-var-headset: \f590; +$fa-var-heart: \f004; +$fa-var-heart-broken: \f7a9; +$fa-var-heart-circle: \f4c7; +$fa-var-heart-rate: \f5f8; +$fa-var-heart-square: \f4c8; +$fa-var-heartbeat: \f21e; +$fa-var-heat: \e00c; +$fa-var-helicopter: \f533; +$fa-var-helmet-battle: \f6eb; +$fa-var-hexagon: \f312; +$fa-var-highlighter: \f591; +$fa-var-hiking: \f6ec; +$fa-var-hippo: \f6ed; +$fa-var-hips: \f452; +$fa-var-hire-a-helper: \f3b0; +$fa-var-history: \f1da; +$fa-var-hive: \e07f; +$fa-var-hockey-mask: \f6ee; +$fa-var-hockey-puck: \f453; +$fa-var-hockey-sticks: \f454; +$fa-var-holly-berry: \f7aa; +$fa-var-home: \f015; +$fa-var-home-alt: \f80a; +$fa-var-home-heart: \f4c9; +$fa-var-home-lg: \f80b; +$fa-var-home-lg-alt: \f80c; +$fa-var-hood-cloak: \f6ef; +$fa-var-hooli: \f427; +$fa-var-horizontal-rule: \f86c; +$fa-var-hornbill: \f592; +$fa-var-horse: \f6f0; +$fa-var-horse-head: \f7ab; +$fa-var-horse-saddle: \f8c3; +$fa-var-hospital: \f0f8; +$fa-var-hospital-alt: \f47d; +$fa-var-hospital-symbol: \f47e; +$fa-var-hospital-user: \f80d; +$fa-var-hospitals: \f80e; +$fa-var-hot-tub: \f593; +$fa-var-hotdog: \f80f; +$fa-var-hotel: \f594; +$fa-var-hotjar: \f3b1; +$fa-var-hourglass: \f254; +$fa-var-hourglass-end: \f253; +$fa-var-hourglass-half: \f252; +$fa-var-hourglass-start: \f251; +$fa-var-house: \e00d; +$fa-var-house-damage: \f6f1; +$fa-var-house-day: \e00e; +$fa-var-house-flood: \f74f; +$fa-var-house-leave: \e00f; +$fa-var-house-night: \e010; +$fa-var-house-return: \e011; +$fa-var-house-signal: \e012; +$fa-var-house-user: \e065; +$fa-var-houzz: \f27c; +$fa-var-hryvnia: \f6f2; +$fa-var-html5: \f13b; +$fa-var-hubspot: \f3b2; +$fa-var-humidity: \f750; +$fa-var-hurricane: \f751; +$fa-var-i-cursor: \f246; +$fa-var-ice-cream: \f810; +$fa-var-ice-skate: \f7ac; +$fa-var-icicles: \f7ad; +$fa-var-icons: \f86d; +$fa-var-icons-alt: \f86e; +$fa-var-id-badge: \f2c1; +$fa-var-id-card: \f2c2; +$fa-var-id-card-alt: \f47f; +$fa-var-ideal: \e013; +$fa-var-igloo: \f7ae; +$fa-var-image: \f03e; +$fa-var-image-polaroid: \f8c4; +$fa-var-images: \f302; +$fa-var-imdb: \f2d8; +$fa-var-inbox: \f01c; +$fa-var-inbox-in: \f310; +$fa-var-inbox-out: \f311; +$fa-var-indent: \f03c; +$fa-var-industry: \f275; +$fa-var-industry-alt: \f3b3; +$fa-var-infinity: \f534; +$fa-var-info: \f129; +$fa-var-info-circle: \f05a; +$fa-var-info-square: \f30f; +$fa-var-inhaler: \f5f9; +$fa-var-innosoft: \e080; +$fa-var-instagram: \f16d; +$fa-var-instagram-square: \e055; +$fa-var-instalod: \e081; +$fa-var-integral: \f667; +$fa-var-intercom: \f7af; +$fa-var-internet-explorer: \f26b; +$fa-var-intersection: \f668; +$fa-var-inventory: \f480; +$fa-var-invision: \f7b0; +$fa-var-ioxhost: \f208; +$fa-var-island-tropical: \f811; +$fa-var-italic: \f033; +$fa-var-itch-io: \f83a; +$fa-var-itunes: \f3b4; +$fa-var-itunes-note: \f3b5; +$fa-var-jack-o-lantern: \f30e; +$fa-var-java: \f4e4; +$fa-var-jedi: \f669; +$fa-var-jedi-order: \f50e; +$fa-var-jenkins: \f3b6; +$fa-var-jira: \f7b1; +$fa-var-joget: \f3b7; +$fa-var-joint: \f595; +$fa-var-joomla: \f1aa; +$fa-var-journal-whills: \f66a; +$fa-var-joystick: \f8c5; +$fa-var-js: \f3b8; +$fa-var-js-square: \f3b9; +$fa-var-jsfiddle: \f1cc; +$fa-var-jug: \f8c6; +$fa-var-kaaba: \f66b; +$fa-var-kaggle: \f5fa; +$fa-var-kazoo: \f8c7; +$fa-var-kerning: \f86f; +$fa-var-key: \f084; +$fa-var-key-skeleton: \f6f3; +$fa-var-keybase: \f4f5; +$fa-var-keyboard: \f11c; +$fa-var-keycdn: \f3ba; +$fa-var-keynote: \f66c; +$fa-var-khanda: \f66d; +$fa-var-kickstarter: \f3bb; +$fa-var-kickstarter-k: \f3bc; +$fa-var-kidneys: \f5fb; +$fa-var-kiss: \f596; +$fa-var-kiss-beam: \f597; +$fa-var-kiss-wink-heart: \f598; +$fa-var-kite: \f6f4; +$fa-var-kiwi-bird: \f535; +$fa-var-knife-kitchen: \f6f5; +$fa-var-korvue: \f42f; +$fa-var-lambda: \f66e; +$fa-var-lamp: \f4ca; +$fa-var-lamp-desk: \e014; +$fa-var-lamp-floor: \e015; +$fa-var-landmark: \f66f; +$fa-var-landmark-alt: \f752; +$fa-var-language: \f1ab; +$fa-var-laptop: \f109; +$fa-var-laptop-code: \f5fc; +$fa-var-laptop-house: \e066; +$fa-var-laptop-medical: \f812; +$fa-var-laravel: \f3bd; +$fa-var-lasso: \f8c8; +$fa-var-lastfm: \f202; +$fa-var-lastfm-square: \f203; +$fa-var-laugh: \f599; +$fa-var-laugh-beam: \f59a; +$fa-var-laugh-squint: \f59b; +$fa-var-laugh-wink: \f59c; +$fa-var-layer-group: \f5fd; +$fa-var-layer-minus: \f5fe; +$fa-var-layer-plus: \f5ff; +$fa-var-leaf: \f06c; +$fa-var-leaf-heart: \f4cb; +$fa-var-leaf-maple: \f6f6; +$fa-var-leaf-oak: \f6f7; +$fa-var-leanpub: \f212; +$fa-var-lemon: \f094; +$fa-var-less: \f41d; +$fa-var-less-than: \f536; +$fa-var-less-than-equal: \f537; +$fa-var-level-down: \f149; +$fa-var-level-down-alt: \f3be; +$fa-var-level-up: \f148; +$fa-var-level-up-alt: \f3bf; +$fa-var-life-ring: \f1cd; +$fa-var-light-ceiling: \e016; +$fa-var-light-switch: \e017; +$fa-var-light-switch-off: \e018; +$fa-var-light-switch-on: \e019; +$fa-var-lightbulb: \f0eb; +$fa-var-lightbulb-dollar: \f670; +$fa-var-lightbulb-exclamation: \f671; +$fa-var-lightbulb-on: \f672; +$fa-var-lightbulb-slash: \f673; +$fa-var-lights-holiday: \f7b2; +$fa-var-line: \f3c0; +$fa-var-line-columns: \f870; +$fa-var-line-height: \f871; +$fa-var-link: \f0c1; +$fa-var-linkedin: \f08c; +$fa-var-linkedin-in: \f0e1; +$fa-var-linode: \f2b8; +$fa-var-linux: \f17c; +$fa-var-lips: \f600; +$fa-var-lira-sign: \f195; +$fa-var-list: \f03a; +$fa-var-list-alt: \f022; +$fa-var-list-music: \f8c9; +$fa-var-list-ol: \f0cb; +$fa-var-list-ul: \f0ca; +$fa-var-location: \f601; +$fa-var-location-arrow: \f124; +$fa-var-location-circle: \f602; +$fa-var-location-slash: \f603; +$fa-var-lock: \f023; +$fa-var-lock-alt: \f30d; +$fa-var-lock-open: \f3c1; +$fa-var-lock-open-alt: \f3c2; +$fa-var-long-arrow-alt-down: \f309; +$fa-var-long-arrow-alt-left: \f30a; +$fa-var-long-arrow-alt-right: \f30b; +$fa-var-long-arrow-alt-up: \f30c; +$fa-var-long-arrow-down: \f175; +$fa-var-long-arrow-left: \f177; +$fa-var-long-arrow-right: \f178; +$fa-var-long-arrow-up: \f176; +$fa-var-loveseat: \f4cc; +$fa-var-low-vision: \f2a8; +$fa-var-luchador: \f455; +$fa-var-luggage-cart: \f59d; +$fa-var-lungs: \f604; +$fa-var-lungs-virus: \e067; +$fa-var-lyft: \f3c3; +$fa-var-mace: \f6f8; +$fa-var-magento: \f3c4; +$fa-var-magic: \f0d0; +$fa-var-magnet: \f076; +$fa-var-mail-bulk: \f674; +$fa-var-mailbox: \f813; +$fa-var-mailchimp: \f59e; +$fa-var-male: \f183; +$fa-var-mandalorian: \f50f; +$fa-var-mandolin: \f6f9; +$fa-var-map: \f279; +$fa-var-map-marked: \f59f; +$fa-var-map-marked-alt: \f5a0; +$fa-var-map-marker: \f041; +$fa-var-map-marker-alt: \f3c5; +$fa-var-map-marker-alt-slash: \f605; +$fa-var-map-marker-check: \f606; +$fa-var-map-marker-edit: \f607; +$fa-var-map-marker-exclamation: \f608; +$fa-var-map-marker-minus: \f609; +$fa-var-map-marker-plus: \f60a; +$fa-var-map-marker-question: \f60b; +$fa-var-map-marker-slash: \f60c; +$fa-var-map-marker-smile: \f60d; +$fa-var-map-marker-times: \f60e; +$fa-var-map-pin: \f276; +$fa-var-map-signs: \f277; +$fa-var-markdown: \f60f; +$fa-var-marker: \f5a1; +$fa-var-mars: \f222; +$fa-var-mars-double: \f227; +$fa-var-mars-stroke: \f229; +$fa-var-mars-stroke-h: \f22b; +$fa-var-mars-stroke-v: \f22a; +$fa-var-mask: \f6fa; +$fa-var-mastodon: \f4f6; +$fa-var-maxcdn: \f136; +$fa-var-mdb: \f8ca; +$fa-var-meat: \f814; +$fa-var-medal: \f5a2; +$fa-var-medapps: \f3c6; +$fa-var-medium: \f23a; +$fa-var-medium-m: \f3c7; +$fa-var-medkit: \f0fa; +$fa-var-medrt: \f3c8; +$fa-var-meetup: \f2e0; +$fa-var-megaphone: \f675; +$fa-var-megaport: \f5a3; +$fa-var-meh: \f11a; +$fa-var-meh-blank: \f5a4; +$fa-var-meh-rolling-eyes: \f5a5; +$fa-var-memory: \f538; +$fa-var-mendeley: \f7b3; +$fa-var-menorah: \f676; +$fa-var-mercury: \f223; +$fa-var-meteor: \f753; +$fa-var-microblog: \e01a; +$fa-var-microchip: \f2db; +$fa-var-microphone: \f130; +$fa-var-microphone-alt: \f3c9; +$fa-var-microphone-alt-slash: \f539; +$fa-var-microphone-slash: \f131; +$fa-var-microphone-stand: \f8cb; +$fa-var-microscope: \f610; +$fa-var-microsoft: \f3ca; +$fa-var-microwave: \e01b; +$fa-var-mind-share: \f677; +$fa-var-minus: \f068; +$fa-var-minus-circle: \f056; +$fa-var-minus-hexagon: \f307; +$fa-var-minus-octagon: \f308; +$fa-var-minus-square: \f146; +$fa-var-mistletoe: \f7b4; +$fa-var-mitten: \f7b5; +$fa-var-mix: \f3cb; +$fa-var-mixcloud: \f289; +$fa-var-mixer: \e056; +$fa-var-mizuni: \f3cc; +$fa-var-mobile: \f10b; +$fa-var-mobile-alt: \f3cd; +$fa-var-mobile-android: \f3ce; +$fa-var-mobile-android-alt: \f3cf; +$fa-var-modx: \f285; +$fa-var-monero: \f3d0; +$fa-var-money-bill: \f0d6; +$fa-var-money-bill-alt: \f3d1; +$fa-var-money-bill-wave: \f53a; +$fa-var-money-bill-wave-alt: \f53b; +$fa-var-money-check: \f53c; +$fa-var-money-check-alt: \f53d; +$fa-var-money-check-edit: \f872; +$fa-var-money-check-edit-alt: \f873; +$fa-var-monitor-heart-rate: \f611; +$fa-var-monkey: \f6fb; +$fa-var-monument: \f5a6; +$fa-var-moon: \f186; +$fa-var-moon-cloud: \f754; +$fa-var-moon-stars: \f755; +$fa-var-mortar-pestle: \f5a7; +$fa-var-mosque: \f678; +$fa-var-motorcycle: \f21c; +$fa-var-mountain: \f6fc; +$fa-var-mountains: \f6fd; +$fa-var-mouse: \f8cc; +$fa-var-mouse-alt: \f8cd; +$fa-var-mouse-pointer: \f245; +$fa-var-mp3-player: \f8ce; +$fa-var-mug: \f874; +$fa-var-mug-hot: \f7b6; +$fa-var-mug-marshmallows: \f7b7; +$fa-var-mug-tea: \f875; +$fa-var-music: \f001; +$fa-var-music-alt: \f8cf; +$fa-var-music-alt-slash: \f8d0; +$fa-var-music-slash: \f8d1; +$fa-var-napster: \f3d2; +$fa-var-narwhal: \f6fe; +$fa-var-neos: \f612; +$fa-var-network-wired: \f6ff; +$fa-var-neuter: \f22c; +$fa-var-newspaper: \f1ea; +$fa-var-nimblr: \f5a8; +$fa-var-node: \f419; +$fa-var-node-js: \f3d3; +$fa-var-not-equal: \f53e; +$fa-var-notes-medical: \f481; +$fa-var-npm: \f3d4; +$fa-var-ns8: \f3d5; +$fa-var-nutritionix: \f3d6; +$fa-var-object-group: \f247; +$fa-var-object-ungroup: \f248; +$fa-var-octagon: \f306; +$fa-var-octopus-deploy: \e082; +$fa-var-odnoklassniki: \f263; +$fa-var-odnoklassniki-square: \f264; +$fa-var-oil-can: \f613; +$fa-var-oil-temp: \f614; +$fa-var-old-republic: \f510; +$fa-var-om: \f679; +$fa-var-omega: \f67a; +$fa-var-opencart: \f23d; +$fa-var-openid: \f19b; +$fa-var-opera: \f26a; +$fa-var-optin-monster: \f23c; +$fa-var-orcid: \f8d2; +$fa-var-ornament: \f7b8; +$fa-var-osi: \f41a; +$fa-var-otter: \f700; +$fa-var-outdent: \f03b; +$fa-var-outlet: \e01c; +$fa-var-oven: \e01d; +$fa-var-overline: \f876; +$fa-var-page-break: \f877; +$fa-var-page4: \f3d7; +$fa-var-pagelines: \f18c; +$fa-var-pager: \f815; +$fa-var-paint-brush: \f1fc; +$fa-var-paint-brush-alt: \f5a9; +$fa-var-paint-roller: \f5aa; +$fa-var-palette: \f53f; +$fa-var-palfed: \f3d8; +$fa-var-pallet: \f482; +$fa-var-pallet-alt: \f483; +$fa-var-paper-plane: \f1d8; +$fa-var-paperclip: \f0c6; +$fa-var-parachute-box: \f4cd; +$fa-var-paragraph: \f1dd; +$fa-var-paragraph-rtl: \f878; +$fa-var-parking: \f540; +$fa-var-parking-circle: \f615; +$fa-var-parking-circle-slash: \f616; +$fa-var-parking-slash: \f617; +$fa-var-passport: \f5ab; +$fa-var-pastafarianism: \f67b; +$fa-var-paste: \f0ea; +$fa-var-patreon: \f3d9; +$fa-var-pause: \f04c; +$fa-var-pause-circle: \f28b; +$fa-var-paw: \f1b0; +$fa-var-paw-alt: \f701; +$fa-var-paw-claws: \f702; +$fa-var-paypal: \f1ed; +$fa-var-peace: \f67c; +$fa-var-pegasus: \f703; +$fa-var-pen: \f304; +$fa-var-pen-alt: \f305; +$fa-var-pen-fancy: \f5ac; +$fa-var-pen-nib: \f5ad; +$fa-var-pen-square: \f14b; +$fa-var-pencil: \f040; +$fa-var-pencil-alt: \f303; +$fa-var-pencil-paintbrush: \f618; +$fa-var-pencil-ruler: \f5ae; +$fa-var-pennant: \f456; +$fa-var-penny-arcade: \f704; +$fa-var-people-arrows: \e068; +$fa-var-people-carry: \f4ce; +$fa-var-pepper-hot: \f816; +$fa-var-perbyte: \e083; +$fa-var-percent: \f295; +$fa-var-percentage: \f541; +$fa-var-periscope: \f3da; +$fa-var-person-booth: \f756; +$fa-var-person-carry: \f4cf; +$fa-var-person-dolly: \f4d0; +$fa-var-person-dolly-empty: \f4d1; +$fa-var-person-sign: \f757; +$fa-var-phabricator: \f3db; +$fa-var-phoenix-framework: \f3dc; +$fa-var-phoenix-squadron: \f511; +$fa-var-phone: \f095; +$fa-var-phone-alt: \f879; +$fa-var-phone-laptop: \f87a; +$fa-var-phone-office: \f67d; +$fa-var-phone-plus: \f4d2; +$fa-var-phone-rotary: \f8d3; +$fa-var-phone-slash: \f3dd; +$fa-var-phone-square: \f098; +$fa-var-phone-square-alt: \f87b; +$fa-var-phone-volume: \f2a0; +$fa-var-photo-video: \f87c; +$fa-var-php: \f457; +$fa-var-pi: \f67e; +$fa-var-piano: \f8d4; +$fa-var-piano-keyboard: \f8d5; +$fa-var-pie: \f705; +$fa-var-pied-piper: \f2ae; +$fa-var-pied-piper-alt: \f1a8; +$fa-var-pied-piper-hat: \f4e5; +$fa-var-pied-piper-pp: \f1a7; +$fa-var-pied-piper-square: \e01e; +$fa-var-pig: \f706; +$fa-var-piggy-bank: \f4d3; +$fa-var-pills: \f484; +$fa-var-pinterest: \f0d2; +$fa-var-pinterest-p: \f231; +$fa-var-pinterest-square: \f0d3; +$fa-var-pizza: \f817; +$fa-var-pizza-slice: \f818; +$fa-var-place-of-worship: \f67f; +$fa-var-plane: \f072; +$fa-var-plane-alt: \f3de; +$fa-var-plane-arrival: \f5af; +$fa-var-plane-departure: \f5b0; +$fa-var-plane-slash: \e069; +$fa-var-planet-moon: \e01f; +$fa-var-planet-ringed: \e020; +$fa-var-play: \f04b; +$fa-var-play-circle: \f144; +$fa-var-playstation: \f3df; +$fa-var-plug: \f1e6; +$fa-var-plus: \f067; +$fa-var-plus-circle: \f055; +$fa-var-plus-hexagon: \f300; +$fa-var-plus-octagon: \f301; +$fa-var-plus-square: \f0fe; +$fa-var-podcast: \f2ce; +$fa-var-podium: \f680; +$fa-var-podium-star: \f758; +$fa-var-police-box: \e021; +$fa-var-poll: \f681; +$fa-var-poll-h: \f682; +$fa-var-poll-people: \f759; +$fa-var-poo: \f2fe; +$fa-var-poo-storm: \f75a; +$fa-var-poop: \f619; +$fa-var-popcorn: \f819; +$fa-var-portal-enter: \e022; +$fa-var-portal-exit: \e023; +$fa-var-portrait: \f3e0; +$fa-var-pound-sign: \f154; +$fa-var-power-off: \f011; +$fa-var-pray: \f683; +$fa-var-praying-hands: \f684; +$fa-var-prescription: \f5b1; +$fa-var-prescription-bottle: \f485; +$fa-var-prescription-bottle-alt: \f486; +$fa-var-presentation: \f685; +$fa-var-print: \f02f; +$fa-var-print-search: \f81a; +$fa-var-print-slash: \f686; +$fa-var-procedures: \f487; +$fa-var-product-hunt: \f288; +$fa-var-project-diagram: \f542; +$fa-var-projector: \f8d6; +$fa-var-pump-medical: \e06a; +$fa-var-pump-soap: \e06b; +$fa-var-pumpkin: \f707; +$fa-var-pushed: \f3e1; +$fa-var-puzzle-piece: \f12e; +$fa-var-python: \f3e2; +$fa-var-qq: \f1d6; +$fa-var-qrcode: \f029; +$fa-var-question: \f128; +$fa-var-question-circle: \f059; +$fa-var-question-square: \f2fd; +$fa-var-quidditch: \f458; +$fa-var-quinscape: \f459; +$fa-var-quora: \f2c4; +$fa-var-quote-left: \f10d; +$fa-var-quote-right: \f10e; +$fa-var-quran: \f687; +$fa-var-r-project: \f4f7; +$fa-var-rabbit: \f708; +$fa-var-rabbit-fast: \f709; +$fa-var-racquet: \f45a; +$fa-var-radar: \e024; +$fa-var-radiation: \f7b9; +$fa-var-radiation-alt: \f7ba; +$fa-var-radio: \f8d7; +$fa-var-radio-alt: \f8d8; +$fa-var-rainbow: \f75b; +$fa-var-raindrops: \f75c; +$fa-var-ram: \f70a; +$fa-var-ramp-loading: \f4d4; +$fa-var-random: \f074; +$fa-var-raspberry-pi: \f7bb; +$fa-var-ravelry: \f2d9; +$fa-var-raygun: \e025; +$fa-var-react: \f41b; +$fa-var-reacteurope: \f75d; +$fa-var-readme: \f4d5; +$fa-var-rebel: \f1d0; +$fa-var-receipt: \f543; +$fa-var-record-vinyl: \f8d9; +$fa-var-rectangle-landscape: \f2fa; +$fa-var-rectangle-portrait: \f2fb; +$fa-var-rectangle-wide: \f2fc; +$fa-var-recycle: \f1b8; +$fa-var-red-river: \f3e3; +$fa-var-reddit: \f1a1; +$fa-var-reddit-alien: \f281; +$fa-var-reddit-square: \f1a2; +$fa-var-redhat: \f7bc; +$fa-var-redo: \f01e; +$fa-var-redo-alt: \f2f9; +$fa-var-refrigerator: \e026; +$fa-var-registered: \f25d; +$fa-var-remove-format: \f87d; +$fa-var-renren: \f18b; +$fa-var-repeat: \f363; +$fa-var-repeat-1: \f365; +$fa-var-repeat-1-alt: \f366; +$fa-var-repeat-alt: \f364; +$fa-var-reply: \f3e5; +$fa-var-reply-all: \f122; +$fa-var-replyd: \f3e6; +$fa-var-republican: \f75e; +$fa-var-researchgate: \f4f8; +$fa-var-resolving: \f3e7; +$fa-var-restroom: \f7bd; +$fa-var-retweet: \f079; +$fa-var-retweet-alt: \f361; +$fa-var-rev: \f5b2; +$fa-var-ribbon: \f4d6; +$fa-var-ring: \f70b; +$fa-var-rings-wedding: \f81b; +$fa-var-road: \f018; +$fa-var-robot: \f544; +$fa-var-rocket: \f135; +$fa-var-rocket-launch: \e027; +$fa-var-rocketchat: \f3e8; +$fa-var-rockrms: \f3e9; +$fa-var-route: \f4d7; +$fa-var-route-highway: \f61a; +$fa-var-route-interstate: \f61b; +$fa-var-router: \f8da; +$fa-var-rss: \f09e; +$fa-var-rss-square: \f143; +$fa-var-ruble-sign: \f158; +$fa-var-ruler: \f545; +$fa-var-ruler-combined: \f546; +$fa-var-ruler-horizontal: \f547; +$fa-var-ruler-triangle: \f61c; +$fa-var-ruler-vertical: \f548; +$fa-var-running: \f70c; +$fa-var-rupee-sign: \f156; +$fa-var-rust: \e07a; +$fa-var-rv: \f7be; +$fa-var-sack: \f81c; +$fa-var-sack-dollar: \f81d; +$fa-var-sad-cry: \f5b3; +$fa-var-sad-tear: \f5b4; +$fa-var-safari: \f267; +$fa-var-salad: \f81e; +$fa-var-salesforce: \f83b; +$fa-var-sandwich: \f81f; +$fa-var-sass: \f41e; +$fa-var-satellite: \f7bf; +$fa-var-satellite-dish: \f7c0; +$fa-var-sausage: \f820; +$fa-var-save: \f0c7; +$fa-var-sax-hot: \f8db; +$fa-var-saxophone: \f8dc; +$fa-var-scalpel: \f61d; +$fa-var-scalpel-path: \f61e; +$fa-var-scanner: \f488; +$fa-var-scanner-image: \f8f3; +$fa-var-scanner-keyboard: \f489; +$fa-var-scanner-touchscreen: \f48a; +$fa-var-scarecrow: \f70d; +$fa-var-scarf: \f7c1; +$fa-var-schlix: \f3ea; +$fa-var-school: \f549; +$fa-var-screwdriver: \f54a; +$fa-var-scribd: \f28a; +$fa-var-scroll: \f70e; +$fa-var-scroll-old: \f70f; +$fa-var-scrubber: \f2f8; +$fa-var-scythe: \f710; +$fa-var-sd-card: \f7c2; +$fa-var-search: \f002; +$fa-var-search-dollar: \f688; +$fa-var-search-location: \f689; +$fa-var-search-minus: \f010; +$fa-var-search-plus: \f00e; +$fa-var-searchengin: \f3eb; +$fa-var-seedling: \f4d8; +$fa-var-sellcast: \f2da; +$fa-var-sellsy: \f213; +$fa-var-send-back: \f87e; +$fa-var-send-backward: \f87f; +$fa-var-sensor: \e028; +$fa-var-sensor-alert: \e029; +$fa-var-sensor-fire: \e02a; +$fa-var-sensor-on: \e02b; +$fa-var-sensor-smoke: \e02c; +$fa-var-server: \f233; +$fa-var-servicestack: \f3ec; +$fa-var-shapes: \f61f; +$fa-var-share: \f064; +$fa-var-share-all: \f367; +$fa-var-share-alt: \f1e0; +$fa-var-share-alt-square: \f1e1; +$fa-var-share-square: \f14d; +$fa-var-sheep: \f711; +$fa-var-shekel-sign: \f20b; +$fa-var-shield: \f132; +$fa-var-shield-alt: \f3ed; +$fa-var-shield-check: \f2f7; +$fa-var-shield-cross: \f712; +$fa-var-shield-virus: \e06c; +$fa-var-ship: \f21a; +$fa-var-shipping-fast: \f48b; +$fa-var-shipping-timed: \f48c; +$fa-var-shirtsinbulk: \f214; +$fa-var-shish-kebab: \f821; +$fa-var-shoe-prints: \f54b; +$fa-var-shopify: \e057; +$fa-var-shopping-bag: \f290; +$fa-var-shopping-basket: \f291; +$fa-var-shopping-cart: \f07a; +$fa-var-shopware: \f5b5; +$fa-var-shovel: \f713; +$fa-var-shovel-snow: \f7c3; +$fa-var-shower: \f2cc; +$fa-var-shredder: \f68a; +$fa-var-shuttle-van: \f5b6; +$fa-var-shuttlecock: \f45b; +$fa-var-sickle: \f822; +$fa-var-sigma: \f68b; +$fa-var-sign: \f4d9; +$fa-var-sign-in: \f090; +$fa-var-sign-in-alt: \f2f6; +$fa-var-sign-language: \f2a7; +$fa-var-sign-out: \f08b; +$fa-var-sign-out-alt: \f2f5; +$fa-var-signal: \f012; +$fa-var-signal-1: \f68c; +$fa-var-signal-2: \f68d; +$fa-var-signal-3: \f68e; +$fa-var-signal-4: \f68f; +$fa-var-signal-alt: \f690; +$fa-var-signal-alt-1: \f691; +$fa-var-signal-alt-2: \f692; +$fa-var-signal-alt-3: \f693; +$fa-var-signal-alt-slash: \f694; +$fa-var-signal-slash: \f695; +$fa-var-signal-stream: \f8dd; +$fa-var-signature: \f5b7; +$fa-var-sim-card: \f7c4; +$fa-var-simplybuilt: \f215; +$fa-var-sink: \e06d; +$fa-var-siren: \e02d; +$fa-var-siren-on: \e02e; +$fa-var-sistrix: \f3ee; +$fa-var-sitemap: \f0e8; +$fa-var-sith: \f512; +$fa-var-skating: \f7c5; +$fa-var-skeleton: \f620; +$fa-var-sketch: \f7c6; +$fa-var-ski-jump: \f7c7; +$fa-var-ski-lift: \f7c8; +$fa-var-skiing: \f7c9; +$fa-var-skiing-nordic: \f7ca; +$fa-var-skull: \f54c; +$fa-var-skull-cow: \f8de; +$fa-var-skull-crossbones: \f714; +$fa-var-skyatlas: \f216; +$fa-var-skype: \f17e; +$fa-var-slack: \f198; +$fa-var-slack-hash: \f3ef; +$fa-var-slash: \f715; +$fa-var-sledding: \f7cb; +$fa-var-sleigh: \f7cc; +$fa-var-sliders-h: \f1de; +$fa-var-sliders-h-square: \f3f0; +$fa-var-sliders-v: \f3f1; +$fa-var-sliders-v-square: \f3f2; +$fa-var-slideshare: \f1e7; +$fa-var-smile: \f118; +$fa-var-smile-beam: \f5b8; +$fa-var-smile-plus: \f5b9; +$fa-var-smile-wink: \f4da; +$fa-var-smog: \f75f; +$fa-var-smoke: \f760; +$fa-var-smoking: \f48d; +$fa-var-smoking-ban: \f54d; +$fa-var-sms: \f7cd; +$fa-var-snake: \f716; +$fa-var-snapchat: \f2ab; +$fa-var-snapchat-ghost: \f2ac; +$fa-var-snapchat-square: \f2ad; +$fa-var-snooze: \f880; +$fa-var-snow-blowing: \f761; +$fa-var-snowboarding: \f7ce; +$fa-var-snowflake: \f2dc; +$fa-var-snowflakes: \f7cf; +$fa-var-snowman: \f7d0; +$fa-var-snowmobile: \f7d1; +$fa-var-snowplow: \f7d2; +$fa-var-soap: \e06e; +$fa-var-socks: \f696; +$fa-var-solar-panel: \f5ba; +$fa-var-solar-system: \e02f; +$fa-var-sort: \f0dc; +$fa-var-sort-alpha-down: \f15d; +$fa-var-sort-alpha-down-alt: \f881; +$fa-var-sort-alpha-up: \f15e; +$fa-var-sort-alpha-up-alt: \f882; +$fa-var-sort-alt: \f883; +$fa-var-sort-amount-down: \f160; +$fa-var-sort-amount-down-alt: \f884; +$fa-var-sort-amount-up: \f161; +$fa-var-sort-amount-up-alt: \f885; +$fa-var-sort-circle: \e030; +$fa-var-sort-circle-down: \e031; +$fa-var-sort-circle-up: \e032; +$fa-var-sort-down: \f0dd; +$fa-var-sort-numeric-down: \f162; +$fa-var-sort-numeric-down-alt: \f886; +$fa-var-sort-numeric-up: \f163; +$fa-var-sort-numeric-up-alt: \f887; +$fa-var-sort-shapes-down: \f888; +$fa-var-sort-shapes-down-alt: \f889; +$fa-var-sort-shapes-up: \f88a; +$fa-var-sort-shapes-up-alt: \f88b; +$fa-var-sort-size-down: \f88c; +$fa-var-sort-size-down-alt: \f88d; +$fa-var-sort-size-up: \f88e; +$fa-var-sort-size-up-alt: \f88f; +$fa-var-sort-up: \f0de; +$fa-var-soundcloud: \f1be; +$fa-var-soup: \f823; +$fa-var-sourcetree: \f7d3; +$fa-var-spa: \f5bb; +$fa-var-space-shuttle: \f197; +$fa-var-space-station-moon: \e033; +$fa-var-space-station-moon-alt: \e034; +$fa-var-spade: \f2f4; +$fa-var-sparkles: \f890; +$fa-var-speakap: \f3f3; +$fa-var-speaker: \f8df; +$fa-var-speaker-deck: \f83c; +$fa-var-speakers: \f8e0; +$fa-var-spell-check: \f891; +$fa-var-spider: \f717; +$fa-var-spider-black-widow: \f718; +$fa-var-spider-web: \f719; +$fa-var-spinner: \f110; +$fa-var-spinner-third: \f3f4; +$fa-var-splotch: \f5bc; +$fa-var-spotify: \f1bc; +$fa-var-spray-can: \f5bd; +$fa-var-sprinkler: \e035; +$fa-var-square: \f0c8; +$fa-var-square-full: \f45c; +$fa-var-square-root: \f697; +$fa-var-square-root-alt: \f698; +$fa-var-squarespace: \f5be; +$fa-var-squirrel: \f71a; +$fa-var-stack-exchange: \f18d; +$fa-var-stack-overflow: \f16c; +$fa-var-stackpath: \f842; +$fa-var-staff: \f71b; +$fa-var-stamp: \f5bf; +$fa-var-star: \f005; +$fa-var-star-and-crescent: \f699; +$fa-var-star-christmas: \f7d4; +$fa-var-star-exclamation: \f2f3; +$fa-var-star-half: \f089; +$fa-var-star-half-alt: \f5c0; +$fa-var-star-of-david: \f69a; +$fa-var-star-of-life: \f621; +$fa-var-star-shooting: \e036; +$fa-var-starfighter: \e037; +$fa-var-starfighter-alt: \e038; +$fa-var-stars: \f762; +$fa-var-starship: \e039; +$fa-var-starship-freighter: \e03a; +$fa-var-staylinked: \f3f5; +$fa-var-steak: \f824; +$fa-var-steam: \f1b6; +$fa-var-steam-square: \f1b7; +$fa-var-steam-symbol: \f3f6; +$fa-var-steering-wheel: \f622; +$fa-var-step-backward: \f048; +$fa-var-step-forward: \f051; +$fa-var-stethoscope: \f0f1; +$fa-var-sticker-mule: \f3f7; +$fa-var-sticky-note: \f249; +$fa-var-stocking: \f7d5; +$fa-var-stomach: \f623; +$fa-var-stop: \f04d; +$fa-var-stop-circle: \f28d; +$fa-var-stopwatch: \f2f2; +$fa-var-stopwatch-20: \e06f; +$fa-var-store: \f54e; +$fa-var-store-alt: \f54f; +$fa-var-store-alt-slash: \e070; +$fa-var-store-slash: \e071; +$fa-var-strava: \f428; +$fa-var-stream: \f550; +$fa-var-street-view: \f21d; +$fa-var-stretcher: \f825; +$fa-var-strikethrough: \f0cc; +$fa-var-stripe: \f429; +$fa-var-stripe-s: \f42a; +$fa-var-stroopwafel: \f551; +$fa-var-studiovinari: \f3f8; +$fa-var-stumbleupon: \f1a4; +$fa-var-stumbleupon-circle: \f1a3; +$fa-var-subscript: \f12c; +$fa-var-subway: \f239; +$fa-var-suitcase: \f0f2; +$fa-var-suitcase-rolling: \f5c1; +$fa-var-sun: \f185; +$fa-var-sun-cloud: \f763; +$fa-var-sun-dust: \f764; +$fa-var-sun-haze: \f765; +$fa-var-sunglasses: \f892; +$fa-var-sunrise: \f766; +$fa-var-sunset: \f767; +$fa-var-superpowers: \f2dd; +$fa-var-superscript: \f12b; +$fa-var-supple: \f3f9; +$fa-var-surprise: \f5c2; +$fa-var-suse: \f7d6; +$fa-var-swatchbook: \f5c3; +$fa-var-swift: \f8e1; +$fa-var-swimmer: \f5c4; +$fa-var-swimming-pool: \f5c5; +$fa-var-sword: \f71c; +$fa-var-sword-laser: \e03b; +$fa-var-sword-laser-alt: \e03c; +$fa-var-swords: \f71d; +$fa-var-swords-laser: \e03d; +$fa-var-symfony: \f83d; +$fa-var-synagogue: \f69b; +$fa-var-sync: \f021; +$fa-var-sync-alt: \f2f1; +$fa-var-syringe: \f48e; +$fa-var-table: \f0ce; +$fa-var-table-tennis: \f45d; +$fa-var-tablet: \f10a; +$fa-var-tablet-alt: \f3fa; +$fa-var-tablet-android: \f3fb; +$fa-var-tablet-android-alt: \f3fc; +$fa-var-tablet-rugged: \f48f; +$fa-var-tablets: \f490; +$fa-var-tachometer: \f0e4; +$fa-var-tachometer-alt: \f3fd; +$fa-var-tachometer-alt-average: \f624; +$fa-var-tachometer-alt-fast: \f625; +$fa-var-tachometer-alt-fastest: \f626; +$fa-var-tachometer-alt-slow: \f627; +$fa-var-tachometer-alt-slowest: \f628; +$fa-var-tachometer-average: \f629; +$fa-var-tachometer-fast: \f62a; +$fa-var-tachometer-fastest: \f62b; +$fa-var-tachometer-slow: \f62c; +$fa-var-tachometer-slowest: \f62d; +$fa-var-taco: \f826; +$fa-var-tag: \f02b; +$fa-var-tags: \f02c; +$fa-var-tally: \f69c; +$fa-var-tanakh: \f827; +$fa-var-tape: \f4db; +$fa-var-tasks: \f0ae; +$fa-var-tasks-alt: \f828; +$fa-var-taxi: \f1ba; +$fa-var-teamspeak: \f4f9; +$fa-var-teeth: \f62e; +$fa-var-teeth-open: \f62f; +$fa-var-telegram: \f2c6; +$fa-var-telegram-plane: \f3fe; +$fa-var-telescope: \e03e; +$fa-var-temperature-down: \e03f; +$fa-var-temperature-frigid: \f768; +$fa-var-temperature-high: \f769; +$fa-var-temperature-hot: \f76a; +$fa-var-temperature-low: \f76b; +$fa-var-temperature-up: \e040; +$fa-var-tencent-weibo: \f1d5; +$fa-var-tenge: \f7d7; +$fa-var-tennis-ball: \f45e; +$fa-var-terminal: \f120; +$fa-var-text: \f893; +$fa-var-text-height: \f034; +$fa-var-text-size: \f894; +$fa-var-text-width: \f035; +$fa-var-th: \f00a; +$fa-var-th-large: \f009; +$fa-var-th-list: \f00b; +$fa-var-the-red-yeti: \f69d; +$fa-var-theater-masks: \f630; +$fa-var-themeco: \f5c6; +$fa-var-themeisle: \f2b2; +$fa-var-thermometer: \f491; +$fa-var-thermometer-empty: \f2cb; +$fa-var-thermometer-full: \f2c7; +$fa-var-thermometer-half: \f2c9; +$fa-var-thermometer-quarter: \f2ca; +$fa-var-thermometer-three-quarters: \f2c8; +$fa-var-theta: \f69e; +$fa-var-think-peaks: \f731; +$fa-var-thumbs-down: \f165; +$fa-var-thumbs-up: \f164; +$fa-var-thumbtack: \f08d; +$fa-var-thunderstorm: \f76c; +$fa-var-thunderstorm-moon: \f76d; +$fa-var-thunderstorm-sun: \f76e; +$fa-var-ticket: \f145; +$fa-var-ticket-alt: \f3ff; +$fa-var-tiktok: \e07b; +$fa-var-tilde: \f69f; +$fa-var-times: \f00d; +$fa-var-times-circle: \f057; +$fa-var-times-hexagon: \f2ee; +$fa-var-times-octagon: \f2f0; +$fa-var-times-square: \f2d3; +$fa-var-tint: \f043; +$fa-var-tint-slash: \f5c7; +$fa-var-tire: \f631; +$fa-var-tire-flat: \f632; +$fa-var-tire-pressure-warning: \f633; +$fa-var-tire-rugged: \f634; +$fa-var-tired: \f5c8; +$fa-var-toggle-off: \f204; +$fa-var-toggle-on: \f205; +$fa-var-toilet: \f7d8; +$fa-var-toilet-paper: \f71e; +$fa-var-toilet-paper-alt: \f71f; +$fa-var-toilet-paper-slash: \e072; +$fa-var-tombstone: \f720; +$fa-var-tombstone-alt: \f721; +$fa-var-toolbox: \f552; +$fa-var-tools: \f7d9; +$fa-var-tooth: \f5c9; +$fa-var-toothbrush: \f635; +$fa-var-torah: \f6a0; +$fa-var-torii-gate: \f6a1; +$fa-var-tornado: \f76f; +$fa-var-tractor: \f722; +$fa-var-trade-federation: \f513; +$fa-var-trademark: \f25c; +$fa-var-traffic-cone: \f636; +$fa-var-traffic-light: \f637; +$fa-var-traffic-light-go: \f638; +$fa-var-traffic-light-slow: \f639; +$fa-var-traffic-light-stop: \f63a; +$fa-var-trailer: \e041; +$fa-var-train: \f238; +$fa-var-tram: \f7da; +$fa-var-transgender: \f224; +$fa-var-transgender-alt: \f225; +$fa-var-transporter: \e042; +$fa-var-transporter-1: \e043; +$fa-var-transporter-2: \e044; +$fa-var-transporter-3: \e045; +$fa-var-transporter-empty: \e046; +$fa-var-trash: \f1f8; +$fa-var-trash-alt: \f2ed; +$fa-var-trash-restore: \f829; +$fa-var-trash-restore-alt: \f82a; +$fa-var-trash-undo: \f895; +$fa-var-trash-undo-alt: \f896; +$fa-var-treasure-chest: \f723; +$fa-var-tree: \f1bb; +$fa-var-tree-alt: \f400; +$fa-var-tree-christmas: \f7db; +$fa-var-tree-decorated: \f7dc; +$fa-var-tree-large: \f7dd; +$fa-var-tree-palm: \f82b; +$fa-var-trees: \f724; +$fa-var-trello: \f181; +$fa-var-triangle: \f2ec; +$fa-var-triangle-music: \f8e2; +$fa-var-trophy: \f091; +$fa-var-trophy-alt: \f2eb; +$fa-var-truck: \f0d1; +$fa-var-truck-container: \f4dc; +$fa-var-truck-couch: \f4dd; +$fa-var-truck-loading: \f4de; +$fa-var-truck-monster: \f63b; +$fa-var-truck-moving: \f4df; +$fa-var-truck-pickup: \f63c; +$fa-var-truck-plow: \f7de; +$fa-var-truck-ramp: \f4e0; +$fa-var-trumpet: \f8e3; +$fa-var-tshirt: \f553; +$fa-var-tty: \f1e4; +$fa-var-tumblr: \f173; +$fa-var-tumblr-square: \f174; +$fa-var-turkey: \f725; +$fa-var-turntable: \f8e4; +$fa-var-turtle: \f726; +$fa-var-tv: \f26c; +$fa-var-tv-alt: \f8e5; +$fa-var-tv-music: \f8e6; +$fa-var-tv-retro: \f401; +$fa-var-twitch: \f1e8; +$fa-var-twitter: \f099; +$fa-var-twitter-square: \f081; +$fa-var-typewriter: \f8e7; +$fa-var-typo3: \f42b; +$fa-var-uber: \f402; +$fa-var-ubuntu: \f7df; +$fa-var-ufo: \e047; +$fa-var-ufo-beam: \e048; +$fa-var-uikit: \f403; +$fa-var-umbraco: \f8e8; +$fa-var-umbrella: \f0e9; +$fa-var-umbrella-beach: \f5ca; +$fa-var-uncharted: \e084; +$fa-var-underline: \f0cd; +$fa-var-undo: \f0e2; +$fa-var-undo-alt: \f2ea; +$fa-var-unicorn: \f727; +$fa-var-union: \f6a2; +$fa-var-uniregistry: \f404; +$fa-var-unity: \e049; +$fa-var-universal-access: \f29a; +$fa-var-university: \f19c; +$fa-var-unlink: \f127; +$fa-var-unlock: \f09c; +$fa-var-unlock-alt: \f13e; +$fa-var-unsplash: \e07c; +$fa-var-untappd: \f405; +$fa-var-upload: \f093; +$fa-var-ups: \f7e0; +$fa-var-usb: \f287; +$fa-var-usb-drive: \f8e9; +$fa-var-usd-circle: \f2e8; +$fa-var-usd-square: \f2e9; +$fa-var-user: \f007; +$fa-var-user-alien: \e04a; +$fa-var-user-alt: \f406; +$fa-var-user-alt-slash: \f4fa; +$fa-var-user-astronaut: \f4fb; +$fa-var-user-chart: \f6a3; +$fa-var-user-check: \f4fc; +$fa-var-user-circle: \f2bd; +$fa-var-user-clock: \f4fd; +$fa-var-user-cog: \f4fe; +$fa-var-user-cowboy: \f8ea; +$fa-var-user-crown: \f6a4; +$fa-var-user-edit: \f4ff; +$fa-var-user-friends: \f500; +$fa-var-user-graduate: \f501; +$fa-var-user-hard-hat: \f82c; +$fa-var-user-headset: \f82d; +$fa-var-user-injured: \f728; +$fa-var-user-lock: \f502; +$fa-var-user-md: \f0f0; +$fa-var-user-md-chat: \f82e; +$fa-var-user-minus: \f503; +$fa-var-user-music: \f8eb; +$fa-var-user-ninja: \f504; +$fa-var-user-nurse: \f82f; +$fa-var-user-plus: \f234; +$fa-var-user-robot: \e04b; +$fa-var-user-secret: \f21b; +$fa-var-user-shield: \f505; +$fa-var-user-slash: \f506; +$fa-var-user-tag: \f507; +$fa-var-user-tie: \f508; +$fa-var-user-times: \f235; +$fa-var-user-unlock: \e058; +$fa-var-user-visor: \e04c; +$fa-var-users: \f0c0; +$fa-var-users-class: \f63d; +$fa-var-users-cog: \f509; +$fa-var-users-crown: \f6a5; +$fa-var-users-medical: \f830; +$fa-var-users-slash: \e073; +$fa-var-usps: \f7e1; +$fa-var-ussunnah: \f407; +$fa-var-utensil-fork: \f2e3; +$fa-var-utensil-knife: \f2e4; +$fa-var-utensil-spoon: \f2e5; +$fa-var-utensils: \f2e7; +$fa-var-utensils-alt: \f2e6; +$fa-var-vaadin: \f408; +$fa-var-vacuum: \e04d; +$fa-var-vacuum-robot: \e04e; +$fa-var-value-absolute: \f6a6; +$fa-var-vector-square: \f5cb; +$fa-var-venus: \f221; +$fa-var-venus-double: \f226; +$fa-var-venus-mars: \f228; +$fa-var-vest: \e085; +$fa-var-vest-patches: \e086; +$fa-var-vhs: \f8ec; +$fa-var-viacoin: \f237; +$fa-var-viadeo: \f2a9; +$fa-var-viadeo-square: \f2aa; +$fa-var-vial: \f492; +$fa-var-vials: \f493; +$fa-var-viber: \f409; +$fa-var-video: \f03d; +$fa-var-video-plus: \f4e1; +$fa-var-video-slash: \f4e2; +$fa-var-vihara: \f6a7; +$fa-var-vimeo: \f40a; +$fa-var-vimeo-square: \f194; +$fa-var-vimeo-v: \f27d; +$fa-var-vine: \f1ca; +$fa-var-violin: \f8ed; +$fa-var-virus: \e074; +$fa-var-virus-slash: \e075; +$fa-var-viruses: \e076; +$fa-var-vk: \f189; +$fa-var-vnv: \f40b; +$fa-var-voicemail: \f897; +$fa-var-volcano: \f770; +$fa-var-volleyball-ball: \f45f; +$fa-var-volume: \f6a8; +$fa-var-volume-down: \f027; +$fa-var-volume-mute: \f6a9; +$fa-var-volume-off: \f026; +$fa-var-volume-slash: \f2e2; +$fa-var-volume-up: \f028; +$fa-var-vote-nay: \f771; +$fa-var-vote-yea: \f772; +$fa-var-vr-cardboard: \f729; +$fa-var-vuejs: \f41f; +$fa-var-wagon-covered: \f8ee; +$fa-var-walker: \f831; +$fa-var-walkie-talkie: \f8ef; +$fa-var-walking: \f554; +$fa-var-wallet: \f555; +$fa-var-wand: \f72a; +$fa-var-wand-magic: \f72b; +$fa-var-warehouse: \f494; +$fa-var-warehouse-alt: \f495; +$fa-var-washer: \f898; +$fa-var-watch: \f2e1; +$fa-var-watch-calculator: \f8f0; +$fa-var-watch-fitness: \f63e; +$fa-var-watchman-monitoring: \e087; +$fa-var-water: \f773; +$fa-var-water-lower: \f774; +$fa-var-water-rise: \f775; +$fa-var-wave-sine: \f899; +$fa-var-wave-square: \f83e; +$fa-var-wave-triangle: \f89a; +$fa-var-waveform: \f8f1; +$fa-var-waveform-path: \f8f2; +$fa-var-waze: \f83f; +$fa-var-webcam: \f832; +$fa-var-webcam-slash: \f833; +$fa-var-weebly: \f5cc; +$fa-var-weibo: \f18a; +$fa-var-weight: \f496; +$fa-var-weight-hanging: \f5cd; +$fa-var-weixin: \f1d7; +$fa-var-whale: \f72c; +$fa-var-whatsapp: \f232; +$fa-var-whatsapp-square: \f40c; +$fa-var-wheat: \f72d; +$fa-var-wheelchair: \f193; +$fa-var-whistle: \f460; +$fa-var-whmcs: \f40d; +$fa-var-wifi: \f1eb; +$fa-var-wifi-1: \f6aa; +$fa-var-wifi-2: \f6ab; +$fa-var-wifi-slash: \f6ac; +$fa-var-wikipedia-w: \f266; +$fa-var-wind: \f72e; +$fa-var-wind-turbine: \f89b; +$fa-var-wind-warning: \f776; +$fa-var-window: \f40e; +$fa-var-window-alt: \f40f; +$fa-var-window-close: \f410; +$fa-var-window-frame: \e04f; +$fa-var-window-frame-open: \e050; +$fa-var-window-maximize: \f2d0; +$fa-var-window-minimize: \f2d1; +$fa-var-window-restore: \f2d2; +$fa-var-windows: \f17a; +$fa-var-windsock: \f777; +$fa-var-wine-bottle: \f72f; +$fa-var-wine-glass: \f4e3; +$fa-var-wine-glass-alt: \f5ce; +$fa-var-wix: \f5cf; +$fa-var-wizards-of-the-coast: \f730; +$fa-var-wodu: \e088; +$fa-var-wolf-pack-battalion: \f514; +$fa-var-won-sign: \f159; +$fa-var-wordpress: \f19a; +$fa-var-wordpress-simple: \f411; +$fa-var-wpbeginner: \f297; +$fa-var-wpexplorer: \f2de; +$fa-var-wpforms: \f298; +$fa-var-wpressr: \f3e4; +$fa-var-wreath: \f7e2; +$fa-var-wrench: \f0ad; +$fa-var-x-ray: \f497; +$fa-var-xbox: \f412; +$fa-var-xing: \f168; +$fa-var-xing-square: \f169; +$fa-var-y-combinator: \f23b; +$fa-var-yahoo: \f19e; +$fa-var-yammer: \f840; +$fa-var-yandex: \f413; +$fa-var-yandex-international: \f414; +$fa-var-yarn: \f7e3; +$fa-var-yelp: \f1e9; +$fa-var-yen-sign: \f157; +$fa-var-yin-yang: \f6ad; +$fa-var-yoast: \f2b1; +$fa-var-youtube: \f167; +$fa-var-youtube-square: \f431; +$fa-var-zhihu: \f63f; diff --git a/dev/src/assets/css/fontawesome/brands.scss b/dev/src/assets/css/fontawesome/brands.scss new file mode 100644 index 000000000..c65bd682b --- /dev/null +++ b/dev/src/assets/css/fontawesome/brands.scss @@ -0,0 +1,23 @@ +/*! + * Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Commercial License) + */ +@import 'variables'; + +@font-face { + font-family: 'Font Awesome 5 Brands'; + font-style: normal; + font-weight: 400; + font-display: $fa-font-display; + src: url('#{$fa-font-path}/fa-brands-400.eot'); + src: url('#{$fa-font-path}/fa-brands-400.eot?#iefix') format('embedded-opentype'), + url('#{$fa-font-path}/fa-brands-400.woff2') format('woff2'), + url('#{$fa-font-path}/fa-brands-400.woff') format('woff'), + url('#{$fa-font-path}/fa-brands-400.ttf') format('truetype'), + url('#{$fa-font-path}/fa-brands-400.svg#fontawesome') format('svg'); +} + +.fab { + font-family: 'Font Awesome 5 Brands'; + font-weight: 400; +} diff --git a/dev/src/assets/css/fontawesome/duotone.scss b/dev/src/assets/css/fontawesome/duotone.scss new file mode 100644 index 000000000..514011a23 --- /dev/null +++ b/dev/src/assets/css/fontawesome/duotone.scss @@ -0,0 +1,1918 @@ +/*! + * Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Commercial License) + */ +@import 'variables'; + +@font-face { + font-family: 'Font Awesome 5 Duotone'; + font-style: normal; + font-weight: 900; + font-display: $fa-font-display; + src: url('#{$fa-font-path}/fa-duotone-900.eot'); + src: url('#{$fa-font-path}/fa-duotone-900.eot?#iefix') format('embedded-opentype'), + url('#{$fa-font-path}/fa-duotone-900.woff2') format('woff2'), + url('#{$fa-font-path}/fa-duotone-900.woff') format('woff'), + url('#{$fa-font-path}/fa-duotone-900.ttf') format('truetype'), + url('#{$fa-font-path}/fa-duotone-900.svg#fontawesome') format('svg'); +} + +.fad { + position: relative; + font-family: 'Font Awesome 5 Duotone'; + font-weight: 900; +} + +.fad:before { + position: absolute; + color: var(--#{$fa-css-prefix}-primary-color, inherit); + opacity: $fa-primary-opacity; + opacity: var(--#{$fa-css-prefix}-primary-opacity, #{$fa-primary-opacity}); +} + +.fad:after { + color: var(--#{$fa-css-prefix}-secondary-color, inherit); + opacity: $fa-secondary-opacity; + opacity: var(--#{$fa-css-prefix}-secondary-opacity, #{$fa-secondary-opacity}); +} + +.#{$fa-css-prefix}-swap-opacity .fad:before, +.fad.#{$fa-css-prefix}-swap-opacity:before { + opacity: $fa-secondary-opacity; + opacity: var(--#{$fa-css-prefix}-secondary-opacity, #{$fa-secondary-opacity}); +} + +.#{$fa-css-prefix}-swap-opacity .fad:after, +.fad.#{$fa-css-prefix}-swap-opacity:after { + opacity: $fa-primary-opacity; + opacity: var(--#{$fa-css-prefix}-primary-opacity, #{$fa-primary-opacity}); +} + +.fad.#{$fa-css-prefix}-inverse { + color: $fa-inverse; +} + +.fad.#{$fa-css-prefix}-stack-1x, .fad.#{$fa-css-prefix}-stack-2x { + position: absolute; +} + +.fad.#{$fa-css-prefix}-stack-1x:before, +.fad.#{$fa-css-prefix}-stack-2x:before, +.fad.#{$fa-css-prefix}-fw:before { + left: 50%; + transform: translateX(-50%); +} + +.fad.#{$fa-css-prefix}-abacus:after { content: fa-content(\10f640); } +.fad.#{$fa-css-prefix}-acorn:after { content: fa-content(\10f6ae); } +.fad.#{$fa-css-prefix}-ad:after { content: fa-content(\10f641); } +.fad.#{$fa-css-prefix}-address-book:after { content: fa-content(\10f2b9); } +.fad.#{$fa-css-prefix}-address-card:after { content: fa-content(\10f2bb); } +.fad.#{$fa-css-prefix}-adjust:after { content: fa-content(\10f042); } +.fad.#{$fa-css-prefix}-air-conditioner:after { content: fa-content(\10f8f4); } +.fad.#{$fa-css-prefix}-air-freshener:after { content: fa-content(\10f5d0); } +.fad.#{$fa-css-prefix}-alarm-clock:after { content: fa-content(\10f34e); } +.fad.#{$fa-css-prefix}-alarm-exclamation:after { content: fa-content(\10f843); } +.fad.#{$fa-css-prefix}-alarm-plus:after { content: fa-content(\10f844); } +.fad.#{$fa-css-prefix}-alarm-snooze:after { content: fa-content(\10f845); } +.fad.#{$fa-css-prefix}-album:after { content: fa-content(\10f89f); } +.fad.#{$fa-css-prefix}-album-collection:after { content: fa-content(\10f8a0); } +.fad.#{$fa-css-prefix}-alicorn:after { content: fa-content(\10f6b0); } +.fad.#{$fa-css-prefix}-alien:after { content: fa-content(\10f8f5); } +.fad.#{$fa-css-prefix}-alien-monster:after { content: fa-content(\10f8f6); } +.fad.#{$fa-css-prefix}-align-center:after { content: fa-content(\10f037); } +.fad.#{$fa-css-prefix}-align-justify:after { content: fa-content(\10f039); } +.fad.#{$fa-css-prefix}-align-left:after { content: fa-content(\10f036); } +.fad.#{$fa-css-prefix}-align-right:after { content: fa-content(\10f038); } +.fad.#{$fa-css-prefix}-align-slash:after { content: fa-content(\10f846); } +.fad.#{$fa-css-prefix}-allergies:after { content: fa-content(\10f461); } +.fad.#{$fa-css-prefix}-ambulance:after { content: fa-content(\10f0f9); } +.fad.#{$fa-css-prefix}-american-sign-language-interpreting:after { content: fa-content(\10f2a3); } +.fad.#{$fa-css-prefix}-amp-guitar:after { content: fa-content(\10f8a1); } +.fad.#{$fa-css-prefix}-analytics:after { content: fa-content(\10f643); } +.fad.#{$fa-css-prefix}-anchor:after { content: fa-content(\10f13d); } +.fad.#{$fa-css-prefix}-angel:after { content: fa-content(\10f779); } +.fad.#{$fa-css-prefix}-angle-double-down:after { content: fa-content(\10f103); } +.fad.#{$fa-css-prefix}-angle-double-left:after { content: fa-content(\10f100); } +.fad.#{$fa-css-prefix}-angle-double-right:after { content: fa-content(\10f101); } +.fad.#{$fa-css-prefix}-angle-double-up:after { content: fa-content(\10f102); } +.fad.#{$fa-css-prefix}-angle-down:after { content: fa-content(\10f107); } +.fad.#{$fa-css-prefix}-angle-left:after { content: fa-content(\10f104); } +.fad.#{$fa-css-prefix}-angle-right:after { content: fa-content(\10f105); } +.fad.#{$fa-css-prefix}-angle-up:after { content: fa-content(\10f106); } +.fad.#{$fa-css-prefix}-angry:after { content: fa-content(\10f556); } +.fad.#{$fa-css-prefix}-ankh:after { content: fa-content(\10f644); } +.fad.#{$fa-css-prefix}-apple-alt:after { content: fa-content(\10f5d1); } +.fad.#{$fa-css-prefix}-apple-crate:after { content: fa-content(\10f6b1); } +.fad.#{$fa-css-prefix}-archive:after { content: fa-content(\10f187); } +.fad.#{$fa-css-prefix}-archway:after { content: fa-content(\10f557); } +.fad.#{$fa-css-prefix}-arrow-alt-circle-down:after { content: fa-content(\10f358); } +.fad.#{$fa-css-prefix}-arrow-alt-circle-left:after { content: fa-content(\10f359); } +.fad.#{$fa-css-prefix}-arrow-alt-circle-right:after { content: fa-content(\10f35a); } +.fad.#{$fa-css-prefix}-arrow-alt-circle-up:after { content: fa-content(\10f35b); } +.fad.#{$fa-css-prefix}-arrow-alt-down:after { content: fa-content(\10f354); } +.fad.#{$fa-css-prefix}-arrow-alt-from-bottom:after { content: fa-content(\10f346); } +.fad.#{$fa-css-prefix}-arrow-alt-from-left:after { content: fa-content(\10f347); } +.fad.#{$fa-css-prefix}-arrow-alt-from-right:after { content: fa-content(\10f348); } +.fad.#{$fa-css-prefix}-arrow-alt-from-top:after { content: fa-content(\10f349); } +.fad.#{$fa-css-prefix}-arrow-alt-left:after { content: fa-content(\10f355); } +.fad.#{$fa-css-prefix}-arrow-alt-right:after { content: fa-content(\10f356); } +.fad.#{$fa-css-prefix}-arrow-alt-square-down:after { content: fa-content(\10f350); } +.fad.#{$fa-css-prefix}-arrow-alt-square-left:after { content: fa-content(\10f351); } +.fad.#{$fa-css-prefix}-arrow-alt-square-right:after { content: fa-content(\10f352); } +.fad.#{$fa-css-prefix}-arrow-alt-square-up:after { content: fa-content(\10f353); } +.fad.#{$fa-css-prefix}-arrow-alt-to-bottom:after { content: fa-content(\10f34a); } +.fad.#{$fa-css-prefix}-arrow-alt-to-left:after { content: fa-content(\10f34b); } +.fad.#{$fa-css-prefix}-arrow-alt-to-right:after { content: fa-content(\10f34c); } +.fad.#{$fa-css-prefix}-arrow-alt-to-top:after { content: fa-content(\10f34d); } +.fad.#{$fa-css-prefix}-arrow-alt-up:after { content: fa-content(\10f357); } +.fad.#{$fa-css-prefix}-arrow-circle-down:after { content: fa-content(\10f0ab); } +.fad.#{$fa-css-prefix}-arrow-circle-left:after { content: fa-content(\10f0a8); } +.fad.#{$fa-css-prefix}-arrow-circle-right:after { content: fa-content(\10f0a9); } +.fad.#{$fa-css-prefix}-arrow-circle-up:after { content: fa-content(\10f0aa); } +.fad.#{$fa-css-prefix}-arrow-down:after { content: fa-content(\10f063); } +.fad.#{$fa-css-prefix}-arrow-from-bottom:after { content: fa-content(\10f342); } +.fad.#{$fa-css-prefix}-arrow-from-left:after { content: fa-content(\10f343); } +.fad.#{$fa-css-prefix}-arrow-from-right:after { content: fa-content(\10f344); } +.fad.#{$fa-css-prefix}-arrow-from-top:after { content: fa-content(\10f345); } +.fad.#{$fa-css-prefix}-arrow-left:after { content: fa-content(\10f060); } +.fad.#{$fa-css-prefix}-arrow-right:after { content: fa-content(\10f061); } +.fad.#{$fa-css-prefix}-arrow-square-down:after { content: fa-content(\10f339); } +.fad.#{$fa-css-prefix}-arrow-square-left:after { content: fa-content(\10f33a); } +.fad.#{$fa-css-prefix}-arrow-square-right:after { content: fa-content(\10f33b); } +.fad.#{$fa-css-prefix}-arrow-square-up:after { content: fa-content(\10f33c); } +.fad.#{$fa-css-prefix}-arrow-to-bottom:after { content: fa-content(\10f33d); } +.fad.#{$fa-css-prefix}-arrow-to-left:after { content: fa-content(\10f33e); } +.fad.#{$fa-css-prefix}-arrow-to-right:after { content: fa-content(\10f340); } +.fad.#{$fa-css-prefix}-arrow-to-top:after { content: fa-content(\10f341); } +.fad.#{$fa-css-prefix}-arrow-up:after { content: fa-content(\10f062); } +.fad.#{$fa-css-prefix}-arrows:after { content: fa-content(\10f047); } +.fad.#{$fa-css-prefix}-arrows-alt:after { content: fa-content(\10f0b2); } +.fad.#{$fa-css-prefix}-arrows-alt-h:after { content: fa-content(\10f337); } +.fad.#{$fa-css-prefix}-arrows-alt-v:after { content: fa-content(\10f338); } +.fad.#{$fa-css-prefix}-arrows-h:after { content: fa-content(\10f07e); } +.fad.#{$fa-css-prefix}-arrows-v:after { content: fa-content(\10f07d); } +.fad.#{$fa-css-prefix}-assistive-listening-systems:after { content: fa-content(\10f2a2); } +.fad.#{$fa-css-prefix}-asterisk:after { content: fa-content(\10f069); } +.fad.#{$fa-css-prefix}-at:after { content: fa-content(\10f1fa); } +.fad.#{$fa-css-prefix}-atlas:after { content: fa-content(\10f558); } +.fad.#{$fa-css-prefix}-atom:after { content: fa-content(\10f5d2); } +.fad.#{$fa-css-prefix}-atom-alt:after { content: fa-content(\10f5d3); } +.fad.#{$fa-css-prefix}-audio-description:after { content: fa-content(\10f29e); } +.fad.#{$fa-css-prefix}-award:after { content: fa-content(\10f559); } +.fad.#{$fa-css-prefix}-axe:after { content: fa-content(\10f6b2); } +.fad.#{$fa-css-prefix}-axe-battle:after { content: fa-content(\10f6b3); } +.fad.#{$fa-css-prefix}-baby:after { content: fa-content(\10f77c); } +.fad.#{$fa-css-prefix}-baby-carriage:after { content: fa-content(\10f77d); } +.fad.#{$fa-css-prefix}-backpack:after { content: fa-content(\10f5d4); } +.fad.#{$fa-css-prefix}-backspace:after { content: fa-content(\10f55a); } +.fad.#{$fa-css-prefix}-backward:after { content: fa-content(\10f04a); } +.fad.#{$fa-css-prefix}-bacon:after { content: fa-content(\10f7e5); } +.fad.#{$fa-css-prefix}-bacteria:after { content: fa-content(\10e059); } +.fad.#{$fa-css-prefix}-bacterium:after { content: fa-content(\10e05a); } +.fad.#{$fa-css-prefix}-badge:after { content: fa-content(\10f335); } +.fad.#{$fa-css-prefix}-badge-check:after { content: fa-content(\10f336); } +.fad.#{$fa-css-prefix}-badge-dollar:after { content: fa-content(\10f645); } +.fad.#{$fa-css-prefix}-badge-percent:after { content: fa-content(\10f646); } +.fad.#{$fa-css-prefix}-badge-sheriff:after { content: fa-content(\10f8a2); } +.fad.#{$fa-css-prefix}-badger-honey:after { content: fa-content(\10f6b4); } +.fad.#{$fa-css-prefix}-bags-shopping:after { content: fa-content(\10f847); } +.fad.#{$fa-css-prefix}-bahai:after { content: fa-content(\10f666); } +.fad.#{$fa-css-prefix}-balance-scale:after { content: fa-content(\10f24e); } +.fad.#{$fa-css-prefix}-balance-scale-left:after { content: fa-content(\10f515); } +.fad.#{$fa-css-prefix}-balance-scale-right:after { content: fa-content(\10f516); } +.fad.#{$fa-css-prefix}-ball-pile:after { content: fa-content(\10f77e); } +.fad.#{$fa-css-prefix}-ballot:after { content: fa-content(\10f732); } +.fad.#{$fa-css-prefix}-ballot-check:after { content: fa-content(\10f733); } +.fad.#{$fa-css-prefix}-ban:after { content: fa-content(\10f05e); } +.fad.#{$fa-css-prefix}-band-aid:after { content: fa-content(\10f462); } +.fad.#{$fa-css-prefix}-banjo:after { content: fa-content(\10f8a3); } +.fad.#{$fa-css-prefix}-barcode:after { content: fa-content(\10f02a); } +.fad.#{$fa-css-prefix}-barcode-alt:after { content: fa-content(\10f463); } +.fad.#{$fa-css-prefix}-barcode-read:after { content: fa-content(\10f464); } +.fad.#{$fa-css-prefix}-barcode-scan:after { content: fa-content(\10f465); } +.fad.#{$fa-css-prefix}-bars:after { content: fa-content(\10f0c9); } +.fad.#{$fa-css-prefix}-baseball:after { content: fa-content(\10f432); } +.fad.#{$fa-css-prefix}-baseball-ball:after { content: fa-content(\10f433); } +.fad.#{$fa-css-prefix}-basketball-ball:after { content: fa-content(\10f434); } +.fad.#{$fa-css-prefix}-basketball-hoop:after { content: fa-content(\10f435); } +.fad.#{$fa-css-prefix}-bat:after { content: fa-content(\10f6b5); } +.fad.#{$fa-css-prefix}-bath:after { content: fa-content(\10f2cd); } +.fad.#{$fa-css-prefix}-battery-bolt:after { content: fa-content(\10f376); } +.fad.#{$fa-css-prefix}-battery-empty:after { content: fa-content(\10f244); } +.fad.#{$fa-css-prefix}-battery-full:after { content: fa-content(\10f240); } +.fad.#{$fa-css-prefix}-battery-half:after { content: fa-content(\10f242); } +.fad.#{$fa-css-prefix}-battery-quarter:after { content: fa-content(\10f243); } +.fad.#{$fa-css-prefix}-battery-slash:after { content: fa-content(\10f377); } +.fad.#{$fa-css-prefix}-battery-three-quarters:after { content: fa-content(\10f241); } +.fad.#{$fa-css-prefix}-bed:after { content: fa-content(\10f236); } +.fad.#{$fa-css-prefix}-bed-alt:after { content: fa-content(\10f8f7); } +.fad.#{$fa-css-prefix}-bed-bunk:after { content: fa-content(\10f8f8); } +.fad.#{$fa-css-prefix}-bed-empty:after { content: fa-content(\10f8f9); } +.fad.#{$fa-css-prefix}-beer:after { content: fa-content(\10f0fc); } +.fad.#{$fa-css-prefix}-bell:after { content: fa-content(\10f0f3); } +.fad.#{$fa-css-prefix}-bell-exclamation:after { content: fa-content(\10f848); } +.fad.#{$fa-css-prefix}-bell-on:after { content: fa-content(\10f8fa); } +.fad.#{$fa-css-prefix}-bell-plus:after { content: fa-content(\10f849); } +.fad.#{$fa-css-prefix}-bell-school:after { content: fa-content(\10f5d5); } +.fad.#{$fa-css-prefix}-bell-school-slash:after { content: fa-content(\10f5d6); } +.fad.#{$fa-css-prefix}-bell-slash:after { content: fa-content(\10f1f6); } +.fad.#{$fa-css-prefix}-bells:after { content: fa-content(\10f77f); } +.fad.#{$fa-css-prefix}-betamax:after { content: fa-content(\10f8a4); } +.fad.#{$fa-css-prefix}-bezier-curve:after { content: fa-content(\10f55b); } +.fad.#{$fa-css-prefix}-bible:after { content: fa-content(\10f647); } +.fad.#{$fa-css-prefix}-bicycle:after { content: fa-content(\10f206); } +.fad.#{$fa-css-prefix}-biking:after { content: fa-content(\10f84a); } +.fad.#{$fa-css-prefix}-biking-mountain:after { content: fa-content(\10f84b); } +.fad.#{$fa-css-prefix}-binoculars:after { content: fa-content(\10f1e5); } +.fad.#{$fa-css-prefix}-biohazard:after { content: fa-content(\10f780); } +.fad.#{$fa-css-prefix}-birthday-cake:after { content: fa-content(\10f1fd); } +.fad.#{$fa-css-prefix}-blanket:after { content: fa-content(\10f498); } +.fad.#{$fa-css-prefix}-blender:after { content: fa-content(\10f517); } +.fad.#{$fa-css-prefix}-blender-phone:after { content: fa-content(\10f6b6); } +.fad.#{$fa-css-prefix}-blind:after { content: fa-content(\10f29d); } +.fad.#{$fa-css-prefix}-blinds:after { content: fa-content(\10f8fb); } +.fad.#{$fa-css-prefix}-blinds-open:after { content: fa-content(\10f8fc); } +.fad.#{$fa-css-prefix}-blinds-raised:after { content: fa-content(\10f8fd); } +.fad.#{$fa-css-prefix}-blog:after { content: fa-content(\10f781); } +.fad.#{$fa-css-prefix}-bold:after { content: fa-content(\10f032); } +.fad.#{$fa-css-prefix}-bolt:after { content: fa-content(\10f0e7); } +.fad.#{$fa-css-prefix}-bomb:after { content: fa-content(\10f1e2); } +.fad.#{$fa-css-prefix}-bone:after { content: fa-content(\10f5d7); } +.fad.#{$fa-css-prefix}-bone-break:after { content: fa-content(\10f5d8); } +.fad.#{$fa-css-prefix}-bong:after { content: fa-content(\10f55c); } +.fad.#{$fa-css-prefix}-book:after { content: fa-content(\10f02d); } +.fad.#{$fa-css-prefix}-book-alt:after { content: fa-content(\10f5d9); } +.fad.#{$fa-css-prefix}-book-dead:after { content: fa-content(\10f6b7); } +.fad.#{$fa-css-prefix}-book-heart:after { content: fa-content(\10f499); } +.fad.#{$fa-css-prefix}-book-medical:after { content: fa-content(\10f7e6); } +.fad.#{$fa-css-prefix}-book-open:after { content: fa-content(\10f518); } +.fad.#{$fa-css-prefix}-book-reader:after { content: fa-content(\10f5da); } +.fad.#{$fa-css-prefix}-book-spells:after { content: fa-content(\10f6b8); } +.fad.#{$fa-css-prefix}-book-user:after { content: fa-content(\10f7e7); } +.fad.#{$fa-css-prefix}-bookmark:after { content: fa-content(\10f02e); } +.fad.#{$fa-css-prefix}-books:after { content: fa-content(\10f5db); } +.fad.#{$fa-css-prefix}-books-medical:after { content: fa-content(\10f7e8); } +.fad.#{$fa-css-prefix}-boombox:after { content: fa-content(\10f8a5); } +.fad.#{$fa-css-prefix}-boot:after { content: fa-content(\10f782); } +.fad.#{$fa-css-prefix}-booth-curtain:after { content: fa-content(\10f734); } +.fad.#{$fa-css-prefix}-border-all:after { content: fa-content(\10f84c); } +.fad.#{$fa-css-prefix}-border-bottom:after { content: fa-content(\10f84d); } +.fad.#{$fa-css-prefix}-border-center-h:after { content: fa-content(\10f89c); } +.fad.#{$fa-css-prefix}-border-center-v:after { content: fa-content(\10f89d); } +.fad.#{$fa-css-prefix}-border-inner:after { content: fa-content(\10f84e); } +.fad.#{$fa-css-prefix}-border-left:after { content: fa-content(\10f84f); } +.fad.#{$fa-css-prefix}-border-none:after { content: fa-content(\10f850); } +.fad.#{$fa-css-prefix}-border-outer:after { content: fa-content(\10f851); } +.fad.#{$fa-css-prefix}-border-right:after { content: fa-content(\10f852); } +.fad.#{$fa-css-prefix}-border-style:after { content: fa-content(\10f853); } +.fad.#{$fa-css-prefix}-border-style-alt:after { content: fa-content(\10f854); } +.fad.#{$fa-css-prefix}-border-top:after { content: fa-content(\10f855); } +.fad.#{$fa-css-prefix}-bow-arrow:after { content: fa-content(\10f6b9); } +.fad.#{$fa-css-prefix}-bowling-ball:after { content: fa-content(\10f436); } +.fad.#{$fa-css-prefix}-bowling-pins:after { content: fa-content(\10f437); } +.fad.#{$fa-css-prefix}-box:after { content: fa-content(\10f466); } +.fad.#{$fa-css-prefix}-box-alt:after { content: fa-content(\10f49a); } +.fad.#{$fa-css-prefix}-box-ballot:after { content: fa-content(\10f735); } +.fad.#{$fa-css-prefix}-box-check:after { content: fa-content(\10f467); } +.fad.#{$fa-css-prefix}-box-fragile:after { content: fa-content(\10f49b); } +.fad.#{$fa-css-prefix}-box-full:after { content: fa-content(\10f49c); } +.fad.#{$fa-css-prefix}-box-heart:after { content: fa-content(\10f49d); } +.fad.#{$fa-css-prefix}-box-open:after { content: fa-content(\10f49e); } +.fad.#{$fa-css-prefix}-box-tissue:after { content: fa-content(\10e05b); } +.fad.#{$fa-css-prefix}-box-up:after { content: fa-content(\10f49f); } +.fad.#{$fa-css-prefix}-box-usd:after { content: fa-content(\10f4a0); } +.fad.#{$fa-css-prefix}-boxes:after { content: fa-content(\10f468); } +.fad.#{$fa-css-prefix}-boxes-alt:after { content: fa-content(\10f4a1); } +.fad.#{$fa-css-prefix}-boxing-glove:after { content: fa-content(\10f438); } +.fad.#{$fa-css-prefix}-brackets:after { content: fa-content(\10f7e9); } +.fad.#{$fa-css-prefix}-brackets-curly:after { content: fa-content(\10f7ea); } +.fad.#{$fa-css-prefix}-braille:after { content: fa-content(\10f2a1); } +.fad.#{$fa-css-prefix}-brain:after { content: fa-content(\10f5dc); } +.fad.#{$fa-css-prefix}-bread-loaf:after { content: fa-content(\10f7eb); } +.fad.#{$fa-css-prefix}-bread-slice:after { content: fa-content(\10f7ec); } +.fad.#{$fa-css-prefix}-briefcase:after { content: fa-content(\10f0b1); } +.fad.#{$fa-css-prefix}-briefcase-medical:after { content: fa-content(\10f469); } +.fad.#{$fa-css-prefix}-bring-forward:after { content: fa-content(\10f856); } +.fad.#{$fa-css-prefix}-bring-front:after { content: fa-content(\10f857); } +.fad.#{$fa-css-prefix}-broadcast-tower:after { content: fa-content(\10f519); } +.fad.#{$fa-css-prefix}-broom:after { content: fa-content(\10f51a); } +.fad.#{$fa-css-prefix}-browser:after { content: fa-content(\10f37e); } +.fad.#{$fa-css-prefix}-brush:after { content: fa-content(\10f55d); } +.fad.#{$fa-css-prefix}-bug:after { content: fa-content(\10f188); } +.fad.#{$fa-css-prefix}-building:after { content: fa-content(\10f1ad); } +.fad.#{$fa-css-prefix}-bullhorn:after { content: fa-content(\10f0a1); } +.fad.#{$fa-css-prefix}-bullseye:after { content: fa-content(\10f140); } +.fad.#{$fa-css-prefix}-bullseye-arrow:after { content: fa-content(\10f648); } +.fad.#{$fa-css-prefix}-bullseye-pointer:after { content: fa-content(\10f649); } +.fad.#{$fa-css-prefix}-burger-soda:after { content: fa-content(\10f858); } +.fad.#{$fa-css-prefix}-burn:after { content: fa-content(\10f46a); } +.fad.#{$fa-css-prefix}-burrito:after { content: fa-content(\10f7ed); } +.fad.#{$fa-css-prefix}-bus:after { content: fa-content(\10f207); } +.fad.#{$fa-css-prefix}-bus-alt:after { content: fa-content(\10f55e); } +.fad.#{$fa-css-prefix}-bus-school:after { content: fa-content(\10f5dd); } +.fad.#{$fa-css-prefix}-business-time:after { content: fa-content(\10f64a); } +.fad.#{$fa-css-prefix}-cabinet-filing:after { content: fa-content(\10f64b); } +.fad.#{$fa-css-prefix}-cactus:after { content: fa-content(\10f8a7); } +.fad.#{$fa-css-prefix}-calculator:after { content: fa-content(\10f1ec); } +.fad.#{$fa-css-prefix}-calculator-alt:after { content: fa-content(\10f64c); } +.fad.#{$fa-css-prefix}-calendar:after { content: fa-content(\10f133); } +.fad.#{$fa-css-prefix}-calendar-alt:after { content: fa-content(\10f073); } +.fad.#{$fa-css-prefix}-calendar-check:after { content: fa-content(\10f274); } +.fad.#{$fa-css-prefix}-calendar-day:after { content: fa-content(\10f783); } +.fad.#{$fa-css-prefix}-calendar-edit:after { content: fa-content(\10f333); } +.fad.#{$fa-css-prefix}-calendar-exclamation:after { content: fa-content(\10f334); } +.fad.#{$fa-css-prefix}-calendar-minus:after { content: fa-content(\10f272); } +.fad.#{$fa-css-prefix}-calendar-plus:after { content: fa-content(\10f271); } +.fad.#{$fa-css-prefix}-calendar-star:after { content: fa-content(\10f736); } +.fad.#{$fa-css-prefix}-calendar-times:after { content: fa-content(\10f273); } +.fad.#{$fa-css-prefix}-calendar-week:after { content: fa-content(\10f784); } +.fad.#{$fa-css-prefix}-camcorder:after { content: fa-content(\10f8a8); } +.fad.#{$fa-css-prefix}-camera:after { content: fa-content(\10f030); } +.fad.#{$fa-css-prefix}-camera-alt:after { content: fa-content(\10f332); } +.fad.#{$fa-css-prefix}-camera-home:after { content: fa-content(\10f8fe); } +.fad.#{$fa-css-prefix}-camera-movie:after { content: fa-content(\10f8a9); } +.fad.#{$fa-css-prefix}-camera-polaroid:after { content: fa-content(\10f8aa); } +.fad.#{$fa-css-prefix}-camera-retro:after { content: fa-content(\10f083); } +.fad.#{$fa-css-prefix}-campfire:after { content: fa-content(\10f6ba); } +.fad.#{$fa-css-prefix}-campground:after { content: fa-content(\10f6bb); } +.fad.#{$fa-css-prefix}-candle-holder:after { content: fa-content(\10f6bc); } +.fad.#{$fa-css-prefix}-candy-cane:after { content: fa-content(\10f786); } +.fad.#{$fa-css-prefix}-candy-corn:after { content: fa-content(\10f6bd); } +.fad.#{$fa-css-prefix}-cannabis:after { content: fa-content(\10f55f); } +.fad.#{$fa-css-prefix}-capsules:after { content: fa-content(\10f46b); } +.fad.#{$fa-css-prefix}-car:after { content: fa-content(\10f1b9); } +.fad.#{$fa-css-prefix}-car-alt:after { content: fa-content(\10f5de); } +.fad.#{$fa-css-prefix}-car-battery:after { content: fa-content(\10f5df); } +.fad.#{$fa-css-prefix}-car-building:after { content: fa-content(\10f859); } +.fad.#{$fa-css-prefix}-car-bump:after { content: fa-content(\10f5e0); } +.fad.#{$fa-css-prefix}-car-bus:after { content: fa-content(\10f85a); } +.fad.#{$fa-css-prefix}-car-crash:after { content: fa-content(\10f5e1); } +.fad.#{$fa-css-prefix}-car-garage:after { content: fa-content(\10f5e2); } +.fad.#{$fa-css-prefix}-car-mechanic:after { content: fa-content(\10f5e3); } +.fad.#{$fa-css-prefix}-car-side:after { content: fa-content(\10f5e4); } +.fad.#{$fa-css-prefix}-car-tilt:after { content: fa-content(\10f5e5); } +.fad.#{$fa-css-prefix}-car-wash:after { content: fa-content(\10f5e6); } +.fad.#{$fa-css-prefix}-caravan:after { content: fa-content(\10f8ff); } +.fad.#{$fa-css-prefix}-caravan-alt:after { content: fa-content(\10e000); } +.fad.#{$fa-css-prefix}-caret-circle-down:after { content: fa-content(\10f32d); } +.fad.#{$fa-css-prefix}-caret-circle-left:after { content: fa-content(\10f32e); } +.fad.#{$fa-css-prefix}-caret-circle-right:after { content: fa-content(\10f330); } +.fad.#{$fa-css-prefix}-caret-circle-up:after { content: fa-content(\10f331); } +.fad.#{$fa-css-prefix}-caret-down:after { content: fa-content(\10f0d7); } +.fad.#{$fa-css-prefix}-caret-left:after { content: fa-content(\10f0d9); } +.fad.#{$fa-css-prefix}-caret-right:after { content: fa-content(\10f0da); } +.fad.#{$fa-css-prefix}-caret-square-down:after { content: fa-content(\10f150); } +.fad.#{$fa-css-prefix}-caret-square-left:after { content: fa-content(\10f191); } +.fad.#{$fa-css-prefix}-caret-square-right:after { content: fa-content(\10f152); } +.fad.#{$fa-css-prefix}-caret-square-up:after { content: fa-content(\10f151); } +.fad.#{$fa-css-prefix}-caret-up:after { content: fa-content(\10f0d8); } +.fad.#{$fa-css-prefix}-carrot:after { content: fa-content(\10f787); } +.fad.#{$fa-css-prefix}-cars:after { content: fa-content(\10f85b); } +.fad.#{$fa-css-prefix}-cart-arrow-down:after { content: fa-content(\10f218); } +.fad.#{$fa-css-prefix}-cart-plus:after { content: fa-content(\10f217); } +.fad.#{$fa-css-prefix}-cash-register:after { content: fa-content(\10f788); } +.fad.#{$fa-css-prefix}-cassette-tape:after { content: fa-content(\10f8ab); } +.fad.#{$fa-css-prefix}-cat:after { content: fa-content(\10f6be); } +.fad.#{$fa-css-prefix}-cat-space:after { content: fa-content(\10e001); } +.fad.#{$fa-css-prefix}-cauldron:after { content: fa-content(\10f6bf); } +.fad.#{$fa-css-prefix}-cctv:after { content: fa-content(\10f8ac); } +.fad.#{$fa-css-prefix}-certificate:after { content: fa-content(\10f0a3); } +.fad.#{$fa-css-prefix}-chair:after { content: fa-content(\10f6c0); } +.fad.#{$fa-css-prefix}-chair-office:after { content: fa-content(\10f6c1); } +.fad.#{$fa-css-prefix}-chalkboard:after { content: fa-content(\10f51b); } +.fad.#{$fa-css-prefix}-chalkboard-teacher:after { content: fa-content(\10f51c); } +.fad.#{$fa-css-prefix}-charging-station:after { content: fa-content(\10f5e7); } +.fad.#{$fa-css-prefix}-chart-area:after { content: fa-content(\10f1fe); } +.fad.#{$fa-css-prefix}-chart-bar:after { content: fa-content(\10f080); } +.fad.#{$fa-css-prefix}-chart-line:after { content: fa-content(\10f201); } +.fad.#{$fa-css-prefix}-chart-line-down:after { content: fa-content(\10f64d); } +.fad.#{$fa-css-prefix}-chart-network:after { content: fa-content(\10f78a); } +.fad.#{$fa-css-prefix}-chart-pie:after { content: fa-content(\10f200); } +.fad.#{$fa-css-prefix}-chart-pie-alt:after { content: fa-content(\10f64e); } +.fad.#{$fa-css-prefix}-chart-scatter:after { content: fa-content(\10f7ee); } +.fad.#{$fa-css-prefix}-check:after { content: fa-content(\10f00c); } +.fad.#{$fa-css-prefix}-check-circle:after { content: fa-content(\10f058); } +.fad.#{$fa-css-prefix}-check-double:after { content: fa-content(\10f560); } +.fad.#{$fa-css-prefix}-check-square:after { content: fa-content(\10f14a); } +.fad.#{$fa-css-prefix}-cheese:after { content: fa-content(\10f7ef); } +.fad.#{$fa-css-prefix}-cheese-swiss:after { content: fa-content(\10f7f0); } +.fad.#{$fa-css-prefix}-cheeseburger:after { content: fa-content(\10f7f1); } +.fad.#{$fa-css-prefix}-chess:after { content: fa-content(\10f439); } +.fad.#{$fa-css-prefix}-chess-bishop:after { content: fa-content(\10f43a); } +.fad.#{$fa-css-prefix}-chess-bishop-alt:after { content: fa-content(\10f43b); } +.fad.#{$fa-css-prefix}-chess-board:after { content: fa-content(\10f43c); } +.fad.#{$fa-css-prefix}-chess-clock:after { content: fa-content(\10f43d); } +.fad.#{$fa-css-prefix}-chess-clock-alt:after { content: fa-content(\10f43e); } +.fad.#{$fa-css-prefix}-chess-king:after { content: fa-content(\10f43f); } +.fad.#{$fa-css-prefix}-chess-king-alt:after { content: fa-content(\10f440); } +.fad.#{$fa-css-prefix}-chess-knight:after { content: fa-content(\10f441); } +.fad.#{$fa-css-prefix}-chess-knight-alt:after { content: fa-content(\10f442); } +.fad.#{$fa-css-prefix}-chess-pawn:after { content: fa-content(\10f443); } +.fad.#{$fa-css-prefix}-chess-pawn-alt:after { content: fa-content(\10f444); } +.fad.#{$fa-css-prefix}-chess-queen:after { content: fa-content(\10f445); } +.fad.#{$fa-css-prefix}-chess-queen-alt:after { content: fa-content(\10f446); } +.fad.#{$fa-css-prefix}-chess-rook:after { content: fa-content(\10f447); } +.fad.#{$fa-css-prefix}-chess-rook-alt:after { content: fa-content(\10f448); } +.fad.#{$fa-css-prefix}-chevron-circle-down:after { content: fa-content(\10f13a); } +.fad.#{$fa-css-prefix}-chevron-circle-left:after { content: fa-content(\10f137); } +.fad.#{$fa-css-prefix}-chevron-circle-right:after { content: fa-content(\10f138); } +.fad.#{$fa-css-prefix}-chevron-circle-up:after { content: fa-content(\10f139); } +.fad.#{$fa-css-prefix}-chevron-double-down:after { content: fa-content(\10f322); } +.fad.#{$fa-css-prefix}-chevron-double-left:after { content: fa-content(\10f323); } +.fad.#{$fa-css-prefix}-chevron-double-right:after { content: fa-content(\10f324); } +.fad.#{$fa-css-prefix}-chevron-double-up:after { content: fa-content(\10f325); } +.fad.#{$fa-css-prefix}-chevron-down:after { content: fa-content(\10f078); } +.fad.#{$fa-css-prefix}-chevron-left:after { content: fa-content(\10f053); } +.fad.#{$fa-css-prefix}-chevron-right:after { content: fa-content(\10f054); } +.fad.#{$fa-css-prefix}-chevron-square-down:after { content: fa-content(\10f329); } +.fad.#{$fa-css-prefix}-chevron-square-left:after { content: fa-content(\10f32a); } +.fad.#{$fa-css-prefix}-chevron-square-right:after { content: fa-content(\10f32b); } +.fad.#{$fa-css-prefix}-chevron-square-up:after { content: fa-content(\10f32c); } +.fad.#{$fa-css-prefix}-chevron-up:after { content: fa-content(\10f077); } +.fad.#{$fa-css-prefix}-child:after { content: fa-content(\10f1ae); } +.fad.#{$fa-css-prefix}-chimney:after { content: fa-content(\10f78b); } +.fad.#{$fa-css-prefix}-church:after { content: fa-content(\10f51d); } +.fad.#{$fa-css-prefix}-circle:after { content: fa-content(\10f111); } +.fad.#{$fa-css-prefix}-circle-notch:after { content: fa-content(\10f1ce); } +.fad.#{$fa-css-prefix}-city:after { content: fa-content(\10f64f); } +.fad.#{$fa-css-prefix}-clarinet:after { content: fa-content(\10f8ad); } +.fad.#{$fa-css-prefix}-claw-marks:after { content: fa-content(\10f6c2); } +.fad.#{$fa-css-prefix}-clinic-medical:after { content: fa-content(\10f7f2); } +.fad.#{$fa-css-prefix}-clipboard:after { content: fa-content(\10f328); } +.fad.#{$fa-css-prefix}-clipboard-check:after { content: fa-content(\10f46c); } +.fad.#{$fa-css-prefix}-clipboard-list:after { content: fa-content(\10f46d); } +.fad.#{$fa-css-prefix}-clipboard-list-check:after { content: fa-content(\10f737); } +.fad.#{$fa-css-prefix}-clipboard-prescription:after { content: fa-content(\10f5e8); } +.fad.#{$fa-css-prefix}-clipboard-user:after { content: fa-content(\10f7f3); } +.fad.#{$fa-css-prefix}-clock:after { content: fa-content(\10f017); } +.fad.#{$fa-css-prefix}-clone:after { content: fa-content(\10f24d); } +.fad.#{$fa-css-prefix}-closed-captioning:after { content: fa-content(\10f20a); } +.fad.#{$fa-css-prefix}-cloud:after { content: fa-content(\10f0c2); } +.fad.#{$fa-css-prefix}-cloud-download:after { content: fa-content(\10f0ed); } +.fad.#{$fa-css-prefix}-cloud-download-alt:after { content: fa-content(\10f381); } +.fad.#{$fa-css-prefix}-cloud-drizzle:after { content: fa-content(\10f738); } +.fad.#{$fa-css-prefix}-cloud-hail:after { content: fa-content(\10f739); } +.fad.#{$fa-css-prefix}-cloud-hail-mixed:after { content: fa-content(\10f73a); } +.fad.#{$fa-css-prefix}-cloud-meatball:after { content: fa-content(\10f73b); } +.fad.#{$fa-css-prefix}-cloud-moon:after { content: fa-content(\10f6c3); } +.fad.#{$fa-css-prefix}-cloud-moon-rain:after { content: fa-content(\10f73c); } +.fad.#{$fa-css-prefix}-cloud-music:after { content: fa-content(\10f8ae); } +.fad.#{$fa-css-prefix}-cloud-rain:after { content: fa-content(\10f73d); } +.fad.#{$fa-css-prefix}-cloud-rainbow:after { content: fa-content(\10f73e); } +.fad.#{$fa-css-prefix}-cloud-showers:after { content: fa-content(\10f73f); } +.fad.#{$fa-css-prefix}-cloud-showers-heavy:after { content: fa-content(\10f740); } +.fad.#{$fa-css-prefix}-cloud-sleet:after { content: fa-content(\10f741); } +.fad.#{$fa-css-prefix}-cloud-snow:after { content: fa-content(\10f742); } +.fad.#{$fa-css-prefix}-cloud-sun:after { content: fa-content(\10f6c4); } +.fad.#{$fa-css-prefix}-cloud-sun-rain:after { content: fa-content(\10f743); } +.fad.#{$fa-css-prefix}-cloud-upload:after { content: fa-content(\10f0ee); } +.fad.#{$fa-css-prefix}-cloud-upload-alt:after { content: fa-content(\10f382); } +.fad.#{$fa-css-prefix}-clouds:after { content: fa-content(\10f744); } +.fad.#{$fa-css-prefix}-clouds-moon:after { content: fa-content(\10f745); } +.fad.#{$fa-css-prefix}-clouds-sun:after { content: fa-content(\10f746); } +.fad.#{$fa-css-prefix}-club:after { content: fa-content(\10f327); } +.fad.#{$fa-css-prefix}-cocktail:after { content: fa-content(\10f561); } +.fad.#{$fa-css-prefix}-code:after { content: fa-content(\10f121); } +.fad.#{$fa-css-prefix}-code-branch:after { content: fa-content(\10f126); } +.fad.#{$fa-css-prefix}-code-commit:after { content: fa-content(\10f386); } +.fad.#{$fa-css-prefix}-code-merge:after { content: fa-content(\10f387); } +.fad.#{$fa-css-prefix}-coffee:after { content: fa-content(\10f0f4); } +.fad.#{$fa-css-prefix}-coffee-pot:after { content: fa-content(\10e002); } +.fad.#{$fa-css-prefix}-coffee-togo:after { content: fa-content(\10f6c5); } +.fad.#{$fa-css-prefix}-coffin:after { content: fa-content(\10f6c6); } +.fad.#{$fa-css-prefix}-coffin-cross:after { content: fa-content(\10e051); } +.fad.#{$fa-css-prefix}-cog:after { content: fa-content(\10f013); } +.fad.#{$fa-css-prefix}-cogs:after { content: fa-content(\10f085); } +.fad.#{$fa-css-prefix}-coin:after { content: fa-content(\10f85c); } +.fad.#{$fa-css-prefix}-coins:after { content: fa-content(\10f51e); } +.fad.#{$fa-css-prefix}-columns:after { content: fa-content(\10f0db); } +.fad.#{$fa-css-prefix}-comet:after { content: fa-content(\10e003); } +.fad.#{$fa-css-prefix}-comment:after { content: fa-content(\10f075); } +.fad.#{$fa-css-prefix}-comment-alt:after { content: fa-content(\10f27a); } +.fad.#{$fa-css-prefix}-comment-alt-check:after { content: fa-content(\10f4a2); } +.fad.#{$fa-css-prefix}-comment-alt-dollar:after { content: fa-content(\10f650); } +.fad.#{$fa-css-prefix}-comment-alt-dots:after { content: fa-content(\10f4a3); } +.fad.#{$fa-css-prefix}-comment-alt-edit:after { content: fa-content(\10f4a4); } +.fad.#{$fa-css-prefix}-comment-alt-exclamation:after { content: fa-content(\10f4a5); } +.fad.#{$fa-css-prefix}-comment-alt-lines:after { content: fa-content(\10f4a6); } +.fad.#{$fa-css-prefix}-comment-alt-medical:after { content: fa-content(\10f7f4); } +.fad.#{$fa-css-prefix}-comment-alt-minus:after { content: fa-content(\10f4a7); } +.fad.#{$fa-css-prefix}-comment-alt-music:after { content: fa-content(\10f8af); } +.fad.#{$fa-css-prefix}-comment-alt-plus:after { content: fa-content(\10f4a8); } +.fad.#{$fa-css-prefix}-comment-alt-slash:after { content: fa-content(\10f4a9); } +.fad.#{$fa-css-prefix}-comment-alt-smile:after { content: fa-content(\10f4aa); } +.fad.#{$fa-css-prefix}-comment-alt-times:after { content: fa-content(\10f4ab); } +.fad.#{$fa-css-prefix}-comment-check:after { content: fa-content(\10f4ac); } +.fad.#{$fa-css-prefix}-comment-dollar:after { content: fa-content(\10f651); } +.fad.#{$fa-css-prefix}-comment-dots:after { content: fa-content(\10f4ad); } +.fad.#{$fa-css-prefix}-comment-edit:after { content: fa-content(\10f4ae); } +.fad.#{$fa-css-prefix}-comment-exclamation:after { content: fa-content(\10f4af); } +.fad.#{$fa-css-prefix}-comment-lines:after { content: fa-content(\10f4b0); } +.fad.#{$fa-css-prefix}-comment-medical:after { content: fa-content(\10f7f5); } +.fad.#{$fa-css-prefix}-comment-minus:after { content: fa-content(\10f4b1); } +.fad.#{$fa-css-prefix}-comment-music:after { content: fa-content(\10f8b0); } +.fad.#{$fa-css-prefix}-comment-plus:after { content: fa-content(\10f4b2); } +.fad.#{$fa-css-prefix}-comment-slash:after { content: fa-content(\10f4b3); } +.fad.#{$fa-css-prefix}-comment-smile:after { content: fa-content(\10f4b4); } +.fad.#{$fa-css-prefix}-comment-times:after { content: fa-content(\10f4b5); } +.fad.#{$fa-css-prefix}-comments:after { content: fa-content(\10f086); } +.fad.#{$fa-css-prefix}-comments-alt:after { content: fa-content(\10f4b6); } +.fad.#{$fa-css-prefix}-comments-alt-dollar:after { content: fa-content(\10f652); } +.fad.#{$fa-css-prefix}-comments-dollar:after { content: fa-content(\10f653); } +.fad.#{$fa-css-prefix}-compact-disc:after { content: fa-content(\10f51f); } +.fad.#{$fa-css-prefix}-compass:after { content: fa-content(\10f14e); } +.fad.#{$fa-css-prefix}-compass-slash:after { content: fa-content(\10f5e9); } +.fad.#{$fa-css-prefix}-compress:after { content: fa-content(\10f066); } +.fad.#{$fa-css-prefix}-compress-alt:after { content: fa-content(\10f422); } +.fad.#{$fa-css-prefix}-compress-arrows-alt:after { content: fa-content(\10f78c); } +.fad.#{$fa-css-prefix}-compress-wide:after { content: fa-content(\10f326); } +.fad.#{$fa-css-prefix}-computer-classic:after { content: fa-content(\10f8b1); } +.fad.#{$fa-css-prefix}-computer-speaker:after { content: fa-content(\10f8b2); } +.fad.#{$fa-css-prefix}-concierge-bell:after { content: fa-content(\10f562); } +.fad.#{$fa-css-prefix}-construction:after { content: fa-content(\10f85d); } +.fad.#{$fa-css-prefix}-container-storage:after { content: fa-content(\10f4b7); } +.fad.#{$fa-css-prefix}-conveyor-belt:after { content: fa-content(\10f46e); } +.fad.#{$fa-css-prefix}-conveyor-belt-alt:after { content: fa-content(\10f46f); } +.fad.#{$fa-css-prefix}-cookie:after { content: fa-content(\10f563); } +.fad.#{$fa-css-prefix}-cookie-bite:after { content: fa-content(\10f564); } +.fad.#{$fa-css-prefix}-copy:after { content: fa-content(\10f0c5); } +.fad.#{$fa-css-prefix}-copyright:after { content: fa-content(\10f1f9); } +.fad.#{$fa-css-prefix}-corn:after { content: fa-content(\10f6c7); } +.fad.#{$fa-css-prefix}-couch:after { content: fa-content(\10f4b8); } +.fad.#{$fa-css-prefix}-cow:after { content: fa-content(\10f6c8); } +.fad.#{$fa-css-prefix}-cowbell:after { content: fa-content(\10f8b3); } +.fad.#{$fa-css-prefix}-cowbell-more:after { content: fa-content(\10f8b4); } +.fad.#{$fa-css-prefix}-credit-card:after { content: fa-content(\10f09d); } +.fad.#{$fa-css-prefix}-credit-card-blank:after { content: fa-content(\10f389); } +.fad.#{$fa-css-prefix}-credit-card-front:after { content: fa-content(\10f38a); } +.fad.#{$fa-css-prefix}-cricket:after { content: fa-content(\10f449); } +.fad.#{$fa-css-prefix}-croissant:after { content: fa-content(\10f7f6); } +.fad.#{$fa-css-prefix}-crop:after { content: fa-content(\10f125); } +.fad.#{$fa-css-prefix}-crop-alt:after { content: fa-content(\10f565); } +.fad.#{$fa-css-prefix}-cross:after { content: fa-content(\10f654); } +.fad.#{$fa-css-prefix}-crosshairs:after { content: fa-content(\10f05b); } +.fad.#{$fa-css-prefix}-crow:after { content: fa-content(\10f520); } +.fad.#{$fa-css-prefix}-crown:after { content: fa-content(\10f521); } +.fad.#{$fa-css-prefix}-crutch:after { content: fa-content(\10f7f7); } +.fad.#{$fa-css-prefix}-crutches:after { content: fa-content(\10f7f8); } +.fad.#{$fa-css-prefix}-cube:after { content: fa-content(\10f1b2); } +.fad.#{$fa-css-prefix}-cubes:after { content: fa-content(\10f1b3); } +.fad.#{$fa-css-prefix}-curling:after { content: fa-content(\10f44a); } +.fad.#{$fa-css-prefix}-cut:after { content: fa-content(\10f0c4); } +.fad.#{$fa-css-prefix}-dagger:after { content: fa-content(\10f6cb); } +.fad.#{$fa-css-prefix}-database:after { content: fa-content(\10f1c0); } +.fad.#{$fa-css-prefix}-deaf:after { content: fa-content(\10f2a4); } +.fad.#{$fa-css-prefix}-debug:after { content: fa-content(\10f7f9); } +.fad.#{$fa-css-prefix}-deer:after { content: fa-content(\10f78e); } +.fad.#{$fa-css-prefix}-deer-rudolph:after { content: fa-content(\10f78f); } +.fad.#{$fa-css-prefix}-democrat:after { content: fa-content(\10f747); } +.fad.#{$fa-css-prefix}-desktop:after { content: fa-content(\10f108); } +.fad.#{$fa-css-prefix}-desktop-alt:after { content: fa-content(\10f390); } +.fad.#{$fa-css-prefix}-dewpoint:after { content: fa-content(\10f748); } +.fad.#{$fa-css-prefix}-dharmachakra:after { content: fa-content(\10f655); } +.fad.#{$fa-css-prefix}-diagnoses:after { content: fa-content(\10f470); } +.fad.#{$fa-css-prefix}-diamond:after { content: fa-content(\10f219); } +.fad.#{$fa-css-prefix}-dice:after { content: fa-content(\10f522); } +.fad.#{$fa-css-prefix}-dice-d10:after { content: fa-content(\10f6cd); } +.fad.#{$fa-css-prefix}-dice-d12:after { content: fa-content(\10f6ce); } +.fad.#{$fa-css-prefix}-dice-d20:after { content: fa-content(\10f6cf); } +.fad.#{$fa-css-prefix}-dice-d4:after { content: fa-content(\10f6d0); } +.fad.#{$fa-css-prefix}-dice-d6:after { content: fa-content(\10f6d1); } +.fad.#{$fa-css-prefix}-dice-d8:after { content: fa-content(\10f6d2); } +.fad.#{$fa-css-prefix}-dice-five:after { content: fa-content(\10f523); } +.fad.#{$fa-css-prefix}-dice-four:after { content: fa-content(\10f524); } +.fad.#{$fa-css-prefix}-dice-one:after { content: fa-content(\10f525); } +.fad.#{$fa-css-prefix}-dice-six:after { content: fa-content(\10f526); } +.fad.#{$fa-css-prefix}-dice-three:after { content: fa-content(\10f527); } +.fad.#{$fa-css-prefix}-dice-two:after { content: fa-content(\10f528); } +.fad.#{$fa-css-prefix}-digging:after { content: fa-content(\10f85e); } +.fad.#{$fa-css-prefix}-digital-tachograph:after { content: fa-content(\10f566); } +.fad.#{$fa-css-prefix}-diploma:after { content: fa-content(\10f5ea); } +.fad.#{$fa-css-prefix}-directions:after { content: fa-content(\10f5eb); } +.fad.#{$fa-css-prefix}-disc-drive:after { content: fa-content(\10f8b5); } +.fad.#{$fa-css-prefix}-disease:after { content: fa-content(\10f7fa); } +.fad.#{$fa-css-prefix}-divide:after { content: fa-content(\10f529); } +.fad.#{$fa-css-prefix}-dizzy:after { content: fa-content(\10f567); } +.fad.#{$fa-css-prefix}-dna:after { content: fa-content(\10f471); } +.fad.#{$fa-css-prefix}-do-not-enter:after { content: fa-content(\10f5ec); } +.fad.#{$fa-css-prefix}-dog:after { content: fa-content(\10f6d3); } +.fad.#{$fa-css-prefix}-dog-leashed:after { content: fa-content(\10f6d4); } +.fad.#{$fa-css-prefix}-dollar-sign:after { content: fa-content(\10f155); } +.fad.#{$fa-css-prefix}-dolly:after { content: fa-content(\10f472); } +.fad.#{$fa-css-prefix}-dolly-empty:after { content: fa-content(\10f473); } +.fad.#{$fa-css-prefix}-dolly-flatbed:after { content: fa-content(\10f474); } +.fad.#{$fa-css-prefix}-dolly-flatbed-alt:after { content: fa-content(\10f475); } +.fad.#{$fa-css-prefix}-dolly-flatbed-empty:after { content: fa-content(\10f476); } +.fad.#{$fa-css-prefix}-donate:after { content: fa-content(\10f4b9); } +.fad.#{$fa-css-prefix}-door-closed:after { content: fa-content(\10f52a); } +.fad.#{$fa-css-prefix}-door-open:after { content: fa-content(\10f52b); } +.fad.#{$fa-css-prefix}-dot-circle:after { content: fa-content(\10f192); } +.fad.#{$fa-css-prefix}-dove:after { content: fa-content(\10f4ba); } +.fad.#{$fa-css-prefix}-download:after { content: fa-content(\10f019); } +.fad.#{$fa-css-prefix}-drafting-compass:after { content: fa-content(\10f568); } +.fad.#{$fa-css-prefix}-dragon:after { content: fa-content(\10f6d5); } +.fad.#{$fa-css-prefix}-draw-circle:after { content: fa-content(\10f5ed); } +.fad.#{$fa-css-prefix}-draw-polygon:after { content: fa-content(\10f5ee); } +.fad.#{$fa-css-prefix}-draw-square:after { content: fa-content(\10f5ef); } +.fad.#{$fa-css-prefix}-dreidel:after { content: fa-content(\10f792); } +.fad.#{$fa-css-prefix}-drone:after { content: fa-content(\10f85f); } +.fad.#{$fa-css-prefix}-drone-alt:after { content: fa-content(\10f860); } +.fad.#{$fa-css-prefix}-drum:after { content: fa-content(\10f569); } +.fad.#{$fa-css-prefix}-drum-steelpan:after { content: fa-content(\10f56a); } +.fad.#{$fa-css-prefix}-drumstick:after { content: fa-content(\10f6d6); } +.fad.#{$fa-css-prefix}-drumstick-bite:after { content: fa-content(\10f6d7); } +.fad.#{$fa-css-prefix}-dryer:after { content: fa-content(\10f861); } +.fad.#{$fa-css-prefix}-dryer-alt:after { content: fa-content(\10f862); } +.fad.#{$fa-css-prefix}-duck:after { content: fa-content(\10f6d8); } +.fad.#{$fa-css-prefix}-dumbbell:after { content: fa-content(\10f44b); } +.fad.#{$fa-css-prefix}-dumpster:after { content: fa-content(\10f793); } +.fad.#{$fa-css-prefix}-dumpster-fire:after { content: fa-content(\10f794); } +.fad.#{$fa-css-prefix}-dungeon:after { content: fa-content(\10f6d9); } +.fad.#{$fa-css-prefix}-ear:after { content: fa-content(\10f5f0); } +.fad.#{$fa-css-prefix}-ear-muffs:after { content: fa-content(\10f795); } +.fad.#{$fa-css-prefix}-eclipse:after { content: fa-content(\10f749); } +.fad.#{$fa-css-prefix}-eclipse-alt:after { content: fa-content(\10f74a); } +.fad.#{$fa-css-prefix}-edit:after { content: fa-content(\10f044); } +.fad.#{$fa-css-prefix}-egg:after { content: fa-content(\10f7fb); } +.fad.#{$fa-css-prefix}-egg-fried:after { content: fa-content(\10f7fc); } +.fad.#{$fa-css-prefix}-eject:after { content: fa-content(\10f052); } +.fad.#{$fa-css-prefix}-elephant:after { content: fa-content(\10f6da); } +.fad.#{$fa-css-prefix}-ellipsis-h:after { content: fa-content(\10f141); } +.fad.#{$fa-css-prefix}-ellipsis-h-alt:after { content: fa-content(\10f39b); } +.fad.#{$fa-css-prefix}-ellipsis-v:after { content: fa-content(\10f142); } +.fad.#{$fa-css-prefix}-ellipsis-v-alt:after { content: fa-content(\10f39c); } +.fad.#{$fa-css-prefix}-empty-set:after { content: fa-content(\10f656); } +.fad.#{$fa-css-prefix}-engine-warning:after { content: fa-content(\10f5f2); } +.fad.#{$fa-css-prefix}-envelope:after { content: fa-content(\10f0e0); } +.fad.#{$fa-css-prefix}-envelope-open:after { content: fa-content(\10f2b6); } +.fad.#{$fa-css-prefix}-envelope-open-dollar:after { content: fa-content(\10f657); } +.fad.#{$fa-css-prefix}-envelope-open-text:after { content: fa-content(\10f658); } +.fad.#{$fa-css-prefix}-envelope-square:after { content: fa-content(\10f199); } +.fad.#{$fa-css-prefix}-equals:after { content: fa-content(\10f52c); } +.fad.#{$fa-css-prefix}-eraser:after { content: fa-content(\10f12d); } +.fad.#{$fa-css-prefix}-ethernet:after { content: fa-content(\10f796); } +.fad.#{$fa-css-prefix}-euro-sign:after { content: fa-content(\10f153); } +.fad.#{$fa-css-prefix}-exchange:after { content: fa-content(\10f0ec); } +.fad.#{$fa-css-prefix}-exchange-alt:after { content: fa-content(\10f362); } +.fad.#{$fa-css-prefix}-exclamation:after { content: fa-content(\10f12a); } +.fad.#{$fa-css-prefix}-exclamation-circle:after { content: fa-content(\10f06a); } +.fad.#{$fa-css-prefix}-exclamation-square:after { content: fa-content(\10f321); } +.fad.#{$fa-css-prefix}-exclamation-triangle:after { content: fa-content(\10f071); } +.fad.#{$fa-css-prefix}-expand:after { content: fa-content(\10f065); } +.fad.#{$fa-css-prefix}-expand-alt:after { content: fa-content(\10f424); } +.fad.#{$fa-css-prefix}-expand-arrows:after { content: fa-content(\10f31d); } +.fad.#{$fa-css-prefix}-expand-arrows-alt:after { content: fa-content(\10f31e); } +.fad.#{$fa-css-prefix}-expand-wide:after { content: fa-content(\10f320); } +.fad.#{$fa-css-prefix}-external-link:after { content: fa-content(\10f08e); } +.fad.#{$fa-css-prefix}-external-link-alt:after { content: fa-content(\10f35d); } +.fad.#{$fa-css-prefix}-external-link-square:after { content: fa-content(\10f14c); } +.fad.#{$fa-css-prefix}-external-link-square-alt:after { content: fa-content(\10f360); } +.fad.#{$fa-css-prefix}-eye:after { content: fa-content(\10f06e); } +.fad.#{$fa-css-prefix}-eye-dropper:after { content: fa-content(\10f1fb); } +.fad.#{$fa-css-prefix}-eye-evil:after { content: fa-content(\10f6db); } +.fad.#{$fa-css-prefix}-eye-slash:after { content: fa-content(\10f070); } +.fad.#{$fa-css-prefix}-fan:after { content: fa-content(\10f863); } +.fad.#{$fa-css-prefix}-fan-table:after { content: fa-content(\10e004); } +.fad.#{$fa-css-prefix}-farm:after { content: fa-content(\10f864); } +.fad.#{$fa-css-prefix}-fast-backward:after { content: fa-content(\10f049); } +.fad.#{$fa-css-prefix}-fast-forward:after { content: fa-content(\10f050); } +.fad.#{$fa-css-prefix}-faucet:after { content: fa-content(\10e005); } +.fad.#{$fa-css-prefix}-faucet-drip:after { content: fa-content(\10e006); } +.fad.#{$fa-css-prefix}-fax:after { content: fa-content(\10f1ac); } +.fad.#{$fa-css-prefix}-feather:after { content: fa-content(\10f52d); } +.fad.#{$fa-css-prefix}-feather-alt:after { content: fa-content(\10f56b); } +.fad.#{$fa-css-prefix}-female:after { content: fa-content(\10f182); } +.fad.#{$fa-css-prefix}-field-hockey:after { content: fa-content(\10f44c); } +.fad.#{$fa-css-prefix}-fighter-jet:after { content: fa-content(\10f0fb); } +.fad.#{$fa-css-prefix}-file:after { content: fa-content(\10f15b); } +.fad.#{$fa-css-prefix}-file-alt:after { content: fa-content(\10f15c); } +.fad.#{$fa-css-prefix}-file-archive:after { content: fa-content(\10f1c6); } +.fad.#{$fa-css-prefix}-file-audio:after { content: fa-content(\10f1c7); } +.fad.#{$fa-css-prefix}-file-certificate:after { content: fa-content(\10f5f3); } +.fad.#{$fa-css-prefix}-file-chart-line:after { content: fa-content(\10f659); } +.fad.#{$fa-css-prefix}-file-chart-pie:after { content: fa-content(\10f65a); } +.fad.#{$fa-css-prefix}-file-check:after { content: fa-content(\10f316); } +.fad.#{$fa-css-prefix}-file-code:after { content: fa-content(\10f1c9); } +.fad.#{$fa-css-prefix}-file-contract:after { content: fa-content(\10f56c); } +.fad.#{$fa-css-prefix}-file-csv:after { content: fa-content(\10f6dd); } +.fad.#{$fa-css-prefix}-file-download:after { content: fa-content(\10f56d); } +.fad.#{$fa-css-prefix}-file-edit:after { content: fa-content(\10f31c); } +.fad.#{$fa-css-prefix}-file-excel:after { content: fa-content(\10f1c3); } +.fad.#{$fa-css-prefix}-file-exclamation:after { content: fa-content(\10f31a); } +.fad.#{$fa-css-prefix}-file-export:after { content: fa-content(\10f56e); } +.fad.#{$fa-css-prefix}-file-image:after { content: fa-content(\10f1c5); } +.fad.#{$fa-css-prefix}-file-import:after { content: fa-content(\10f56f); } +.fad.#{$fa-css-prefix}-file-invoice:after { content: fa-content(\10f570); } +.fad.#{$fa-css-prefix}-file-invoice-dollar:after { content: fa-content(\10f571); } +.fad.#{$fa-css-prefix}-file-medical:after { content: fa-content(\10f477); } +.fad.#{$fa-css-prefix}-file-medical-alt:after { content: fa-content(\10f478); } +.fad.#{$fa-css-prefix}-file-minus:after { content: fa-content(\10f318); } +.fad.#{$fa-css-prefix}-file-music:after { content: fa-content(\10f8b6); } +.fad.#{$fa-css-prefix}-file-pdf:after { content: fa-content(\10f1c1); } +.fad.#{$fa-css-prefix}-file-plus:after { content: fa-content(\10f319); } +.fad.#{$fa-css-prefix}-file-powerpoint:after { content: fa-content(\10f1c4); } +.fad.#{$fa-css-prefix}-file-prescription:after { content: fa-content(\10f572); } +.fad.#{$fa-css-prefix}-file-search:after { content: fa-content(\10f865); } +.fad.#{$fa-css-prefix}-file-signature:after { content: fa-content(\10f573); } +.fad.#{$fa-css-prefix}-file-spreadsheet:after { content: fa-content(\10f65b); } +.fad.#{$fa-css-prefix}-file-times:after { content: fa-content(\10f317); } +.fad.#{$fa-css-prefix}-file-upload:after { content: fa-content(\10f574); } +.fad.#{$fa-css-prefix}-file-user:after { content: fa-content(\10f65c); } +.fad.#{$fa-css-prefix}-file-video:after { content: fa-content(\10f1c8); } +.fad.#{$fa-css-prefix}-file-word:after { content: fa-content(\10f1c2); } +.fad.#{$fa-css-prefix}-files-medical:after { content: fa-content(\10f7fd); } +.fad.#{$fa-css-prefix}-fill:after { content: fa-content(\10f575); } +.fad.#{$fa-css-prefix}-fill-drip:after { content: fa-content(\10f576); } +.fad.#{$fa-css-prefix}-film:after { content: fa-content(\10f008); } +.fad.#{$fa-css-prefix}-film-alt:after { content: fa-content(\10f3a0); } +.fad.#{$fa-css-prefix}-film-canister:after { content: fa-content(\10f8b7); } +.fad.#{$fa-css-prefix}-filter:after { content: fa-content(\10f0b0); } +.fad.#{$fa-css-prefix}-fingerprint:after { content: fa-content(\10f577); } +.fad.#{$fa-css-prefix}-fire:after { content: fa-content(\10f06d); } +.fad.#{$fa-css-prefix}-fire-alt:after { content: fa-content(\10f7e4); } +.fad.#{$fa-css-prefix}-fire-extinguisher:after { content: fa-content(\10f134); } +.fad.#{$fa-css-prefix}-fire-smoke:after { content: fa-content(\10f74b); } +.fad.#{$fa-css-prefix}-fireplace:after { content: fa-content(\10f79a); } +.fad.#{$fa-css-prefix}-first-aid:after { content: fa-content(\10f479); } +.fad.#{$fa-css-prefix}-fish:after { content: fa-content(\10f578); } +.fad.#{$fa-css-prefix}-fish-cooked:after { content: fa-content(\10f7fe); } +.fad.#{$fa-css-prefix}-fist-raised:after { content: fa-content(\10f6de); } +.fad.#{$fa-css-prefix}-flag:after { content: fa-content(\10f024); } +.fad.#{$fa-css-prefix}-flag-alt:after { content: fa-content(\10f74c); } +.fad.#{$fa-css-prefix}-flag-checkered:after { content: fa-content(\10f11e); } +.fad.#{$fa-css-prefix}-flag-usa:after { content: fa-content(\10f74d); } +.fad.#{$fa-css-prefix}-flame:after { content: fa-content(\10f6df); } +.fad.#{$fa-css-prefix}-flashlight:after { content: fa-content(\10f8b8); } +.fad.#{$fa-css-prefix}-flask:after { content: fa-content(\10f0c3); } +.fad.#{$fa-css-prefix}-flask-poison:after { content: fa-content(\10f6e0); } +.fad.#{$fa-css-prefix}-flask-potion:after { content: fa-content(\10f6e1); } +.fad.#{$fa-css-prefix}-flower:after { content: fa-content(\10f7ff); } +.fad.#{$fa-css-prefix}-flower-daffodil:after { content: fa-content(\10f800); } +.fad.#{$fa-css-prefix}-flower-tulip:after { content: fa-content(\10f801); } +.fad.#{$fa-css-prefix}-flushed:after { content: fa-content(\10f579); } +.fad.#{$fa-css-prefix}-flute:after { content: fa-content(\10f8b9); } +.fad.#{$fa-css-prefix}-flux-capacitor:after { content: fa-content(\10f8ba); } +.fad.#{$fa-css-prefix}-fog:after { content: fa-content(\10f74e); } +.fad.#{$fa-css-prefix}-folder:after { content: fa-content(\10f07b); } +.fad.#{$fa-css-prefix}-folder-download:after { content: fa-content(\10e053); } +.fad.#{$fa-css-prefix}-folder-minus:after { content: fa-content(\10f65d); } +.fad.#{$fa-css-prefix}-folder-open:after { content: fa-content(\10f07c); } +.fad.#{$fa-css-prefix}-folder-plus:after { content: fa-content(\10f65e); } +.fad.#{$fa-css-prefix}-folder-times:after { content: fa-content(\10f65f); } +.fad.#{$fa-css-prefix}-folder-tree:after { content: fa-content(\10f802); } +.fad.#{$fa-css-prefix}-folder-upload:after { content: fa-content(\10e054); } +.fad.#{$fa-css-prefix}-folders:after { content: fa-content(\10f660); } +.fad.#{$fa-css-prefix}-font:after { content: fa-content(\10f031); } +.fad.#{$fa-css-prefix}-font-awesome-logo-full:after { content: fa-content(\10f4e6); } +.fad.#{$fa-css-prefix}-font-case:after { content: fa-content(\10f866); } +.fad.#{$fa-css-prefix}-football-ball:after { content: fa-content(\10f44e); } +.fad.#{$fa-css-prefix}-football-helmet:after { content: fa-content(\10f44f); } +.fad.#{$fa-css-prefix}-forklift:after { content: fa-content(\10f47a); } +.fad.#{$fa-css-prefix}-forward:after { content: fa-content(\10f04e); } +.fad.#{$fa-css-prefix}-fragile:after { content: fa-content(\10f4bb); } +.fad.#{$fa-css-prefix}-french-fries:after { content: fa-content(\10f803); } +.fad.#{$fa-css-prefix}-frog:after { content: fa-content(\10f52e); } +.fad.#{$fa-css-prefix}-frosty-head:after { content: fa-content(\10f79b); } +.fad.#{$fa-css-prefix}-frown:after { content: fa-content(\10f119); } +.fad.#{$fa-css-prefix}-frown-open:after { content: fa-content(\10f57a); } +.fad.#{$fa-css-prefix}-function:after { content: fa-content(\10f661); } +.fad.#{$fa-css-prefix}-funnel-dollar:after { content: fa-content(\10f662); } +.fad.#{$fa-css-prefix}-futbol:after { content: fa-content(\10f1e3); } +.fad.#{$fa-css-prefix}-galaxy:after { content: fa-content(\10e008); } +.fad.#{$fa-css-prefix}-game-board:after { content: fa-content(\10f867); } +.fad.#{$fa-css-prefix}-game-board-alt:after { content: fa-content(\10f868); } +.fad.#{$fa-css-prefix}-game-console-handheld:after { content: fa-content(\10f8bb); } +.fad.#{$fa-css-prefix}-gamepad:after { content: fa-content(\10f11b); } +.fad.#{$fa-css-prefix}-gamepad-alt:after { content: fa-content(\10f8bc); } +.fad.#{$fa-css-prefix}-garage:after { content: fa-content(\10e009); } +.fad.#{$fa-css-prefix}-garage-car:after { content: fa-content(\10e00a); } +.fad.#{$fa-css-prefix}-garage-open:after { content: fa-content(\10e00b); } +.fad.#{$fa-css-prefix}-gas-pump:after { content: fa-content(\10f52f); } +.fad.#{$fa-css-prefix}-gas-pump-slash:after { content: fa-content(\10f5f4); } +.fad.#{$fa-css-prefix}-gavel:after { content: fa-content(\10f0e3); } +.fad.#{$fa-css-prefix}-gem:after { content: fa-content(\10f3a5); } +.fad.#{$fa-css-prefix}-genderless:after { content: fa-content(\10f22d); } +.fad.#{$fa-css-prefix}-ghost:after { content: fa-content(\10f6e2); } +.fad.#{$fa-css-prefix}-gift:after { content: fa-content(\10f06b); } +.fad.#{$fa-css-prefix}-gift-card:after { content: fa-content(\10f663); } +.fad.#{$fa-css-prefix}-gifts:after { content: fa-content(\10f79c); } +.fad.#{$fa-css-prefix}-gingerbread-man:after { content: fa-content(\10f79d); } +.fad.#{$fa-css-prefix}-glass:after { content: fa-content(\10f804); } +.fad.#{$fa-css-prefix}-glass-champagne:after { content: fa-content(\10f79e); } +.fad.#{$fa-css-prefix}-glass-cheers:after { content: fa-content(\10f79f); } +.fad.#{$fa-css-prefix}-glass-citrus:after { content: fa-content(\10f869); } +.fad.#{$fa-css-prefix}-glass-martini:after { content: fa-content(\10f000); } +.fad.#{$fa-css-prefix}-glass-martini-alt:after { content: fa-content(\10f57b); } +.fad.#{$fa-css-prefix}-glass-whiskey:after { content: fa-content(\10f7a0); } +.fad.#{$fa-css-prefix}-glass-whiskey-rocks:after { content: fa-content(\10f7a1); } +.fad.#{$fa-css-prefix}-glasses:after { content: fa-content(\10f530); } +.fad.#{$fa-css-prefix}-glasses-alt:after { content: fa-content(\10f5f5); } +.fad.#{$fa-css-prefix}-globe:after { content: fa-content(\10f0ac); } +.fad.#{$fa-css-prefix}-globe-africa:after { content: fa-content(\10f57c); } +.fad.#{$fa-css-prefix}-globe-americas:after { content: fa-content(\10f57d); } +.fad.#{$fa-css-prefix}-globe-asia:after { content: fa-content(\10f57e); } +.fad.#{$fa-css-prefix}-globe-europe:after { content: fa-content(\10f7a2); } +.fad.#{$fa-css-prefix}-globe-snow:after { content: fa-content(\10f7a3); } +.fad.#{$fa-css-prefix}-globe-stand:after { content: fa-content(\10f5f6); } +.fad.#{$fa-css-prefix}-golf-ball:after { content: fa-content(\10f450); } +.fad.#{$fa-css-prefix}-golf-club:after { content: fa-content(\10f451); } +.fad.#{$fa-css-prefix}-gopuram:after { content: fa-content(\10f664); } +.fad.#{$fa-css-prefix}-graduation-cap:after { content: fa-content(\10f19d); } +.fad.#{$fa-css-prefix}-gramophone:after { content: fa-content(\10f8bd); } +.fad.#{$fa-css-prefix}-greater-than:after { content: fa-content(\10f531); } +.fad.#{$fa-css-prefix}-greater-than-equal:after { content: fa-content(\10f532); } +.fad.#{$fa-css-prefix}-grimace:after { content: fa-content(\10f57f); } +.fad.#{$fa-css-prefix}-grin:after { content: fa-content(\10f580); } +.fad.#{$fa-css-prefix}-grin-alt:after { content: fa-content(\10f581); } +.fad.#{$fa-css-prefix}-grin-beam:after { content: fa-content(\10f582); } +.fad.#{$fa-css-prefix}-grin-beam-sweat:after { content: fa-content(\10f583); } +.fad.#{$fa-css-prefix}-grin-hearts:after { content: fa-content(\10f584); } +.fad.#{$fa-css-prefix}-grin-squint:after { content: fa-content(\10f585); } +.fad.#{$fa-css-prefix}-grin-squint-tears:after { content: fa-content(\10f586); } +.fad.#{$fa-css-prefix}-grin-stars:after { content: fa-content(\10f587); } +.fad.#{$fa-css-prefix}-grin-tears:after { content: fa-content(\10f588); } +.fad.#{$fa-css-prefix}-grin-tongue:after { content: fa-content(\10f589); } +.fad.#{$fa-css-prefix}-grin-tongue-squint:after { content: fa-content(\10f58a); } +.fad.#{$fa-css-prefix}-grin-tongue-wink:after { content: fa-content(\10f58b); } +.fad.#{$fa-css-prefix}-grin-wink:after { content: fa-content(\10f58c); } +.fad.#{$fa-css-prefix}-grip-horizontal:after { content: fa-content(\10f58d); } +.fad.#{$fa-css-prefix}-grip-lines:after { content: fa-content(\10f7a4); } +.fad.#{$fa-css-prefix}-grip-lines-vertical:after { content: fa-content(\10f7a5); } +.fad.#{$fa-css-prefix}-grip-vertical:after { content: fa-content(\10f58e); } +.fad.#{$fa-css-prefix}-guitar:after { content: fa-content(\10f7a6); } +.fad.#{$fa-css-prefix}-guitar-electric:after { content: fa-content(\10f8be); } +.fad.#{$fa-css-prefix}-guitars:after { content: fa-content(\10f8bf); } +.fad.#{$fa-css-prefix}-h-square:after { content: fa-content(\10f0fd); } +.fad.#{$fa-css-prefix}-h1:after { content: fa-content(\10f313); } +.fad.#{$fa-css-prefix}-h2:after { content: fa-content(\10f314); } +.fad.#{$fa-css-prefix}-h3:after { content: fa-content(\10f315); } +.fad.#{$fa-css-prefix}-h4:after { content: fa-content(\10f86a); } +.fad.#{$fa-css-prefix}-hamburger:after { content: fa-content(\10f805); } +.fad.#{$fa-css-prefix}-hammer:after { content: fa-content(\10f6e3); } +.fad.#{$fa-css-prefix}-hammer-war:after { content: fa-content(\10f6e4); } +.fad.#{$fa-css-prefix}-hamsa:after { content: fa-content(\10f665); } +.fad.#{$fa-css-prefix}-hand-heart:after { content: fa-content(\10f4bc); } +.fad.#{$fa-css-prefix}-hand-holding:after { content: fa-content(\10f4bd); } +.fad.#{$fa-css-prefix}-hand-holding-box:after { content: fa-content(\10f47b); } +.fad.#{$fa-css-prefix}-hand-holding-heart:after { content: fa-content(\10f4be); } +.fad.#{$fa-css-prefix}-hand-holding-magic:after { content: fa-content(\10f6e5); } +.fad.#{$fa-css-prefix}-hand-holding-medical:after { content: fa-content(\10e05c); } +.fad.#{$fa-css-prefix}-hand-holding-seedling:after { content: fa-content(\10f4bf); } +.fad.#{$fa-css-prefix}-hand-holding-usd:after { content: fa-content(\10f4c0); } +.fad.#{$fa-css-prefix}-hand-holding-water:after { content: fa-content(\10f4c1); } +.fad.#{$fa-css-prefix}-hand-lizard:after { content: fa-content(\10f258); } +.fad.#{$fa-css-prefix}-hand-middle-finger:after { content: fa-content(\10f806); } +.fad.#{$fa-css-prefix}-hand-paper:after { content: fa-content(\10f256); } +.fad.#{$fa-css-prefix}-hand-peace:after { content: fa-content(\10f25b); } +.fad.#{$fa-css-prefix}-hand-point-down:after { content: fa-content(\10f0a7); } +.fad.#{$fa-css-prefix}-hand-point-left:after { content: fa-content(\10f0a5); } +.fad.#{$fa-css-prefix}-hand-point-right:after { content: fa-content(\10f0a4); } +.fad.#{$fa-css-prefix}-hand-point-up:after { content: fa-content(\10f0a6); } +.fad.#{$fa-css-prefix}-hand-pointer:after { content: fa-content(\10f25a); } +.fad.#{$fa-css-prefix}-hand-receiving:after { content: fa-content(\10f47c); } +.fad.#{$fa-css-prefix}-hand-rock:after { content: fa-content(\10f255); } +.fad.#{$fa-css-prefix}-hand-scissors:after { content: fa-content(\10f257); } +.fad.#{$fa-css-prefix}-hand-sparkles:after { content: fa-content(\10e05d); } +.fad.#{$fa-css-prefix}-hand-spock:after { content: fa-content(\10f259); } +.fad.#{$fa-css-prefix}-hands:after { content: fa-content(\10f4c2); } +.fad.#{$fa-css-prefix}-hands-heart:after { content: fa-content(\10f4c3); } +.fad.#{$fa-css-prefix}-hands-helping:after { content: fa-content(\10f4c4); } +.fad.#{$fa-css-prefix}-hands-usd:after { content: fa-content(\10f4c5); } +.fad.#{$fa-css-prefix}-hands-wash:after { content: fa-content(\10e05e); } +.fad.#{$fa-css-prefix}-handshake:after { content: fa-content(\10f2b5); } +.fad.#{$fa-css-prefix}-handshake-alt:after { content: fa-content(\10f4c6); } +.fad.#{$fa-css-prefix}-handshake-alt-slash:after { content: fa-content(\10e05f); } +.fad.#{$fa-css-prefix}-handshake-slash:after { content: fa-content(\10e060); } +.fad.#{$fa-css-prefix}-hanukiah:after { content: fa-content(\10f6e6); } +.fad.#{$fa-css-prefix}-hard-hat:after { content: fa-content(\10f807); } +.fad.#{$fa-css-prefix}-hashtag:after { content: fa-content(\10f292); } +.fad.#{$fa-css-prefix}-hat-chef:after { content: fa-content(\10f86b); } +.fad.#{$fa-css-prefix}-hat-cowboy:after { content: fa-content(\10f8c0); } +.fad.#{$fa-css-prefix}-hat-cowboy-side:after { content: fa-content(\10f8c1); } +.fad.#{$fa-css-prefix}-hat-santa:after { content: fa-content(\10f7a7); } +.fad.#{$fa-css-prefix}-hat-winter:after { content: fa-content(\10f7a8); } +.fad.#{$fa-css-prefix}-hat-witch:after { content: fa-content(\10f6e7); } +.fad.#{$fa-css-prefix}-hat-wizard:after { content: fa-content(\10f6e8); } +.fad.#{$fa-css-prefix}-hdd:after { content: fa-content(\10f0a0); } +.fad.#{$fa-css-prefix}-head-side:after { content: fa-content(\10f6e9); } +.fad.#{$fa-css-prefix}-head-side-brain:after { content: fa-content(\10f808); } +.fad.#{$fa-css-prefix}-head-side-cough:after { content: fa-content(\10e061); } +.fad.#{$fa-css-prefix}-head-side-cough-slash:after { content: fa-content(\10e062); } +.fad.#{$fa-css-prefix}-head-side-headphones:after { content: fa-content(\10f8c2); } +.fad.#{$fa-css-prefix}-head-side-mask:after { content: fa-content(\10e063); } +.fad.#{$fa-css-prefix}-head-side-medical:after { content: fa-content(\10f809); } +.fad.#{$fa-css-prefix}-head-side-virus:after { content: fa-content(\10e064); } +.fad.#{$fa-css-prefix}-head-vr:after { content: fa-content(\10f6ea); } +.fad.#{$fa-css-prefix}-heading:after { content: fa-content(\10f1dc); } +.fad.#{$fa-css-prefix}-headphones:after { content: fa-content(\10f025); } +.fad.#{$fa-css-prefix}-headphones-alt:after { content: fa-content(\10f58f); } +.fad.#{$fa-css-prefix}-headset:after { content: fa-content(\10f590); } +.fad.#{$fa-css-prefix}-heart:after { content: fa-content(\10f004); } +.fad.#{$fa-css-prefix}-heart-broken:after { content: fa-content(\10f7a9); } +.fad.#{$fa-css-prefix}-heart-circle:after { content: fa-content(\10f4c7); } +.fad.#{$fa-css-prefix}-heart-rate:after { content: fa-content(\10f5f8); } +.fad.#{$fa-css-prefix}-heart-square:after { content: fa-content(\10f4c8); } +.fad.#{$fa-css-prefix}-heartbeat:after { content: fa-content(\10f21e); } +.fad.#{$fa-css-prefix}-heat:after { content: fa-content(\10e00c); } +.fad.#{$fa-css-prefix}-helicopter:after { content: fa-content(\10f533); } +.fad.#{$fa-css-prefix}-helmet-battle:after { content: fa-content(\10f6eb); } +.fad.#{$fa-css-prefix}-hexagon:after { content: fa-content(\10f312); } +.fad.#{$fa-css-prefix}-highlighter:after { content: fa-content(\10f591); } +.fad.#{$fa-css-prefix}-hiking:after { content: fa-content(\10f6ec); } +.fad.#{$fa-css-prefix}-hippo:after { content: fa-content(\10f6ed); } +.fad.#{$fa-css-prefix}-history:after { content: fa-content(\10f1da); } +.fad.#{$fa-css-prefix}-hockey-mask:after { content: fa-content(\10f6ee); } +.fad.#{$fa-css-prefix}-hockey-puck:after { content: fa-content(\10f453); } +.fad.#{$fa-css-prefix}-hockey-sticks:after { content: fa-content(\10f454); } +.fad.#{$fa-css-prefix}-holly-berry:after { content: fa-content(\10f7aa); } +.fad.#{$fa-css-prefix}-home:after { content: fa-content(\10f015); } +.fad.#{$fa-css-prefix}-home-alt:after { content: fa-content(\10f80a); } +.fad.#{$fa-css-prefix}-home-heart:after { content: fa-content(\10f4c9); } +.fad.#{$fa-css-prefix}-home-lg:after { content: fa-content(\10f80b); } +.fad.#{$fa-css-prefix}-home-lg-alt:after { content: fa-content(\10f80c); } +.fad.#{$fa-css-prefix}-hood-cloak:after { content: fa-content(\10f6ef); } +.fad.#{$fa-css-prefix}-horizontal-rule:after { content: fa-content(\10f86c); } +.fad.#{$fa-css-prefix}-horse:after { content: fa-content(\10f6f0); } +.fad.#{$fa-css-prefix}-horse-head:after { content: fa-content(\10f7ab); } +.fad.#{$fa-css-prefix}-horse-saddle:after { content: fa-content(\10f8c3); } +.fad.#{$fa-css-prefix}-hospital:after { content: fa-content(\10f0f8); } +.fad.#{$fa-css-prefix}-hospital-alt:after { content: fa-content(\10f47d); } +.fad.#{$fa-css-prefix}-hospital-symbol:after { content: fa-content(\10f47e); } +.fad.#{$fa-css-prefix}-hospital-user:after { content: fa-content(\10f80d); } +.fad.#{$fa-css-prefix}-hospitals:after { content: fa-content(\10f80e); } +.fad.#{$fa-css-prefix}-hot-tub:after { content: fa-content(\10f593); } +.fad.#{$fa-css-prefix}-hotdog:after { content: fa-content(\10f80f); } +.fad.#{$fa-css-prefix}-hotel:after { content: fa-content(\10f594); } +.fad.#{$fa-css-prefix}-hourglass:after { content: fa-content(\10f254); } +.fad.#{$fa-css-prefix}-hourglass-end:after { content: fa-content(\10f253); } +.fad.#{$fa-css-prefix}-hourglass-half:after { content: fa-content(\10f252); } +.fad.#{$fa-css-prefix}-hourglass-start:after { content: fa-content(\10f251); } +.fad.#{$fa-css-prefix}-house:after { content: fa-content(\10e00d); } +.fad.#{$fa-css-prefix}-house-damage:after { content: fa-content(\10f6f1); } +.fad.#{$fa-css-prefix}-house-day:after { content: fa-content(\10e00e); } +.fad.#{$fa-css-prefix}-house-flood:after { content: fa-content(\10f74f); } +.fad.#{$fa-css-prefix}-house-leave:after { content: fa-content(\10e00f); } +.fad.#{$fa-css-prefix}-house-night:after { content: fa-content(\10e010); } +.fad.#{$fa-css-prefix}-house-return:after { content: fa-content(\10e011); } +.fad.#{$fa-css-prefix}-house-signal:after { content: fa-content(\10e012); } +.fad.#{$fa-css-prefix}-house-user:after { content: fa-content(\10e065); } +.fad.#{$fa-css-prefix}-hryvnia:after { content: fa-content(\10f6f2); } +.fad.#{$fa-css-prefix}-humidity:after { content: fa-content(\10f750); } +.fad.#{$fa-css-prefix}-hurricane:after { content: fa-content(\10f751); } +.fad.#{$fa-css-prefix}-i-cursor:after { content: fa-content(\10f246); } +.fad.#{$fa-css-prefix}-ice-cream:after { content: fa-content(\10f810); } +.fad.#{$fa-css-prefix}-ice-skate:after { content: fa-content(\10f7ac); } +.fad.#{$fa-css-prefix}-icicles:after { content: fa-content(\10f7ad); } +.fad.#{$fa-css-prefix}-icons:after { content: fa-content(\10f86d); } +.fad.#{$fa-css-prefix}-icons-alt:after { content: fa-content(\10f86e); } +.fad.#{$fa-css-prefix}-id-badge:after { content: fa-content(\10f2c1); } +.fad.#{$fa-css-prefix}-id-card:after { content: fa-content(\10f2c2); } +.fad.#{$fa-css-prefix}-id-card-alt:after { content: fa-content(\10f47f); } +.fad.#{$fa-css-prefix}-igloo:after { content: fa-content(\10f7ae); } +.fad.#{$fa-css-prefix}-image:after { content: fa-content(\10f03e); } +.fad.#{$fa-css-prefix}-image-polaroid:after { content: fa-content(\10f8c4); } +.fad.#{$fa-css-prefix}-images:after { content: fa-content(\10f302); } +.fad.#{$fa-css-prefix}-inbox:after { content: fa-content(\10f01c); } +.fad.#{$fa-css-prefix}-inbox-in:after { content: fa-content(\10f310); } +.fad.#{$fa-css-prefix}-inbox-out:after { content: fa-content(\10f311); } +.fad.#{$fa-css-prefix}-indent:after { content: fa-content(\10f03c); } +.fad.#{$fa-css-prefix}-industry:after { content: fa-content(\10f275); } +.fad.#{$fa-css-prefix}-industry-alt:after { content: fa-content(\10f3b3); } +.fad.#{$fa-css-prefix}-infinity:after { content: fa-content(\10f534); } +.fad.#{$fa-css-prefix}-info:after { content: fa-content(\10f129); } +.fad.#{$fa-css-prefix}-info-circle:after { content: fa-content(\10f05a); } +.fad.#{$fa-css-prefix}-info-square:after { content: fa-content(\10f30f); } +.fad.#{$fa-css-prefix}-inhaler:after { content: fa-content(\10f5f9); } +.fad.#{$fa-css-prefix}-integral:after { content: fa-content(\10f667); } +.fad.#{$fa-css-prefix}-intersection:after { content: fa-content(\10f668); } +.fad.#{$fa-css-prefix}-inventory:after { content: fa-content(\10f480); } +.fad.#{$fa-css-prefix}-island-tropical:after { content: fa-content(\10f811); } +.fad.#{$fa-css-prefix}-italic:after { content: fa-content(\10f033); } +.fad.#{$fa-css-prefix}-jack-o-lantern:after { content: fa-content(\10f30e); } +.fad.#{$fa-css-prefix}-jedi:after { content: fa-content(\10f669); } +.fad.#{$fa-css-prefix}-joint:after { content: fa-content(\10f595); } +.fad.#{$fa-css-prefix}-journal-whills:after { content: fa-content(\10f66a); } +.fad.#{$fa-css-prefix}-joystick:after { content: fa-content(\10f8c5); } +.fad.#{$fa-css-prefix}-jug:after { content: fa-content(\10f8c6); } +.fad.#{$fa-css-prefix}-kaaba:after { content: fa-content(\10f66b); } +.fad.#{$fa-css-prefix}-kazoo:after { content: fa-content(\10f8c7); } +.fad.#{$fa-css-prefix}-kerning:after { content: fa-content(\10f86f); } +.fad.#{$fa-css-prefix}-key:after { content: fa-content(\10f084); } +.fad.#{$fa-css-prefix}-key-skeleton:after { content: fa-content(\10f6f3); } +.fad.#{$fa-css-prefix}-keyboard:after { content: fa-content(\10f11c); } +.fad.#{$fa-css-prefix}-keynote:after { content: fa-content(\10f66c); } +.fad.#{$fa-css-prefix}-khanda:after { content: fa-content(\10f66d); } +.fad.#{$fa-css-prefix}-kidneys:after { content: fa-content(\10f5fb); } +.fad.#{$fa-css-prefix}-kiss:after { content: fa-content(\10f596); } +.fad.#{$fa-css-prefix}-kiss-beam:after { content: fa-content(\10f597); } +.fad.#{$fa-css-prefix}-kiss-wink-heart:after { content: fa-content(\10f598); } +.fad.#{$fa-css-prefix}-kite:after { content: fa-content(\10f6f4); } +.fad.#{$fa-css-prefix}-kiwi-bird:after { content: fa-content(\10f535); } +.fad.#{$fa-css-prefix}-knife-kitchen:after { content: fa-content(\10f6f5); } +.fad.#{$fa-css-prefix}-lambda:after { content: fa-content(\10f66e); } +.fad.#{$fa-css-prefix}-lamp:after { content: fa-content(\10f4ca); } +.fad.#{$fa-css-prefix}-lamp-desk:after { content: fa-content(\10e014); } +.fad.#{$fa-css-prefix}-lamp-floor:after { content: fa-content(\10e015); } +.fad.#{$fa-css-prefix}-landmark:after { content: fa-content(\10f66f); } +.fad.#{$fa-css-prefix}-landmark-alt:after { content: fa-content(\10f752); } +.fad.#{$fa-css-prefix}-language:after { content: fa-content(\10f1ab); } +.fad.#{$fa-css-prefix}-laptop:after { content: fa-content(\10f109); } +.fad.#{$fa-css-prefix}-laptop-code:after { content: fa-content(\10f5fc); } +.fad.#{$fa-css-prefix}-laptop-house:after { content: fa-content(\10e066); } +.fad.#{$fa-css-prefix}-laptop-medical:after { content: fa-content(\10f812); } +.fad.#{$fa-css-prefix}-lasso:after { content: fa-content(\10f8c8); } +.fad.#{$fa-css-prefix}-laugh:after { content: fa-content(\10f599); } +.fad.#{$fa-css-prefix}-laugh-beam:after { content: fa-content(\10f59a); } +.fad.#{$fa-css-prefix}-laugh-squint:after { content: fa-content(\10f59b); } +.fad.#{$fa-css-prefix}-laugh-wink:after { content: fa-content(\10f59c); } +.fad.#{$fa-css-prefix}-layer-group:after { content: fa-content(\10f5fd); } +.fad.#{$fa-css-prefix}-layer-minus:after { content: fa-content(\10f5fe); } +.fad.#{$fa-css-prefix}-layer-plus:after { content: fa-content(\10f5ff); } +.fad.#{$fa-css-prefix}-leaf:after { content: fa-content(\10f06c); } +.fad.#{$fa-css-prefix}-leaf-heart:after { content: fa-content(\10f4cb); } +.fad.#{$fa-css-prefix}-leaf-maple:after { content: fa-content(\10f6f6); } +.fad.#{$fa-css-prefix}-leaf-oak:after { content: fa-content(\10f6f7); } +.fad.#{$fa-css-prefix}-lemon:after { content: fa-content(\10f094); } +.fad.#{$fa-css-prefix}-less-than:after { content: fa-content(\10f536); } +.fad.#{$fa-css-prefix}-less-than-equal:after { content: fa-content(\10f537); } +.fad.#{$fa-css-prefix}-level-down:after { content: fa-content(\10f149); } +.fad.#{$fa-css-prefix}-level-down-alt:after { content: fa-content(\10f3be); } +.fad.#{$fa-css-prefix}-level-up:after { content: fa-content(\10f148); } +.fad.#{$fa-css-prefix}-level-up-alt:after { content: fa-content(\10f3bf); } +.fad.#{$fa-css-prefix}-life-ring:after { content: fa-content(\10f1cd); } +.fad.#{$fa-css-prefix}-light-ceiling:after { content: fa-content(\10e016); } +.fad.#{$fa-css-prefix}-light-switch:after { content: fa-content(\10e017); } +.fad.#{$fa-css-prefix}-light-switch-off:after { content: fa-content(\10e018); } +.fad.#{$fa-css-prefix}-light-switch-on:after { content: fa-content(\10e019); } +.fad.#{$fa-css-prefix}-lightbulb:after { content: fa-content(\10f0eb); } +.fad.#{$fa-css-prefix}-lightbulb-dollar:after { content: fa-content(\10f670); } +.fad.#{$fa-css-prefix}-lightbulb-exclamation:after { content: fa-content(\10f671); } +.fad.#{$fa-css-prefix}-lightbulb-on:after { content: fa-content(\10f672); } +.fad.#{$fa-css-prefix}-lightbulb-slash:after { content: fa-content(\10f673); } +.fad.#{$fa-css-prefix}-lights-holiday:after { content: fa-content(\10f7b2); } +.fad.#{$fa-css-prefix}-line-columns:after { content: fa-content(\10f870); } +.fad.#{$fa-css-prefix}-line-height:after { content: fa-content(\10f871); } +.fad.#{$fa-css-prefix}-link:after { content: fa-content(\10f0c1); } +.fad.#{$fa-css-prefix}-lips:after { content: fa-content(\10f600); } +.fad.#{$fa-css-prefix}-lira-sign:after { content: fa-content(\10f195); } +.fad.#{$fa-css-prefix}-list:after { content: fa-content(\10f03a); } +.fad.#{$fa-css-prefix}-list-alt:after { content: fa-content(\10f022); } +.fad.#{$fa-css-prefix}-list-music:after { content: fa-content(\10f8c9); } +.fad.#{$fa-css-prefix}-list-ol:after { content: fa-content(\10f0cb); } +.fad.#{$fa-css-prefix}-list-ul:after { content: fa-content(\10f0ca); } +.fad.#{$fa-css-prefix}-location:after { content: fa-content(\10f601); } +.fad.#{$fa-css-prefix}-location-arrow:after { content: fa-content(\10f124); } +.fad.#{$fa-css-prefix}-location-circle:after { content: fa-content(\10f602); } +.fad.#{$fa-css-prefix}-location-slash:after { content: fa-content(\10f603); } +.fad.#{$fa-css-prefix}-lock:after { content: fa-content(\10f023); } +.fad.#{$fa-css-prefix}-lock-alt:after { content: fa-content(\10f30d); } +.fad.#{$fa-css-prefix}-lock-open:after { content: fa-content(\10f3c1); } +.fad.#{$fa-css-prefix}-lock-open-alt:after { content: fa-content(\10f3c2); } +.fad.#{$fa-css-prefix}-long-arrow-alt-down:after { content: fa-content(\10f309); } +.fad.#{$fa-css-prefix}-long-arrow-alt-left:after { content: fa-content(\10f30a); } +.fad.#{$fa-css-prefix}-long-arrow-alt-right:after { content: fa-content(\10f30b); } +.fad.#{$fa-css-prefix}-long-arrow-alt-up:after { content: fa-content(\10f30c); } +.fad.#{$fa-css-prefix}-long-arrow-down:after { content: fa-content(\10f175); } +.fad.#{$fa-css-prefix}-long-arrow-left:after { content: fa-content(\10f177); } +.fad.#{$fa-css-prefix}-long-arrow-right:after { content: fa-content(\10f178); } +.fad.#{$fa-css-prefix}-long-arrow-up:after { content: fa-content(\10f176); } +.fad.#{$fa-css-prefix}-loveseat:after { content: fa-content(\10f4cc); } +.fad.#{$fa-css-prefix}-low-vision:after { content: fa-content(\10f2a8); } +.fad.#{$fa-css-prefix}-luchador:after { content: fa-content(\10f455); } +.fad.#{$fa-css-prefix}-luggage-cart:after { content: fa-content(\10f59d); } +.fad.#{$fa-css-prefix}-lungs:after { content: fa-content(\10f604); } +.fad.#{$fa-css-prefix}-lungs-virus:after { content: fa-content(\10e067); } +.fad.#{$fa-css-prefix}-mace:after { content: fa-content(\10f6f8); } +.fad.#{$fa-css-prefix}-magic:after { content: fa-content(\10f0d0); } +.fad.#{$fa-css-prefix}-magnet:after { content: fa-content(\10f076); } +.fad.#{$fa-css-prefix}-mail-bulk:after { content: fa-content(\10f674); } +.fad.#{$fa-css-prefix}-mailbox:after { content: fa-content(\10f813); } +.fad.#{$fa-css-prefix}-male:after { content: fa-content(\10f183); } +.fad.#{$fa-css-prefix}-mandolin:after { content: fa-content(\10f6f9); } +.fad.#{$fa-css-prefix}-map:after { content: fa-content(\10f279); } +.fad.#{$fa-css-prefix}-map-marked:after { content: fa-content(\10f59f); } +.fad.#{$fa-css-prefix}-map-marked-alt:after { content: fa-content(\10f5a0); } +.fad.#{$fa-css-prefix}-map-marker:after { content: fa-content(\10f041); } +.fad.#{$fa-css-prefix}-map-marker-alt:after { content: fa-content(\10f3c5); } +.fad.#{$fa-css-prefix}-map-marker-alt-slash:after { content: fa-content(\10f605); } +.fad.#{$fa-css-prefix}-map-marker-check:after { content: fa-content(\10f606); } +.fad.#{$fa-css-prefix}-map-marker-edit:after { content: fa-content(\10f607); } +.fad.#{$fa-css-prefix}-map-marker-exclamation:after { content: fa-content(\10f608); } +.fad.#{$fa-css-prefix}-map-marker-minus:after { content: fa-content(\10f609); } +.fad.#{$fa-css-prefix}-map-marker-plus:after { content: fa-content(\10f60a); } +.fad.#{$fa-css-prefix}-map-marker-question:after { content: fa-content(\10f60b); } +.fad.#{$fa-css-prefix}-map-marker-slash:after { content: fa-content(\10f60c); } +.fad.#{$fa-css-prefix}-map-marker-smile:after { content: fa-content(\10f60d); } +.fad.#{$fa-css-prefix}-map-marker-times:after { content: fa-content(\10f60e); } +.fad.#{$fa-css-prefix}-map-pin:after { content: fa-content(\10f276); } +.fad.#{$fa-css-prefix}-map-signs:after { content: fa-content(\10f277); } +.fad.#{$fa-css-prefix}-marker:after { content: fa-content(\10f5a1); } +.fad.#{$fa-css-prefix}-mars:after { content: fa-content(\10f222); } +.fad.#{$fa-css-prefix}-mars-double:after { content: fa-content(\10f227); } +.fad.#{$fa-css-prefix}-mars-stroke:after { content: fa-content(\10f229); } +.fad.#{$fa-css-prefix}-mars-stroke-h:after { content: fa-content(\10f22b); } +.fad.#{$fa-css-prefix}-mars-stroke-v:after { content: fa-content(\10f22a); } +.fad.#{$fa-css-prefix}-mask:after { content: fa-content(\10f6fa); } +.fad.#{$fa-css-prefix}-meat:after { content: fa-content(\10f814); } +.fad.#{$fa-css-prefix}-medal:after { content: fa-content(\10f5a2); } +.fad.#{$fa-css-prefix}-medkit:after { content: fa-content(\10f0fa); } +.fad.#{$fa-css-prefix}-megaphone:after { content: fa-content(\10f675); } +.fad.#{$fa-css-prefix}-meh:after { content: fa-content(\10f11a); } +.fad.#{$fa-css-prefix}-meh-blank:after { content: fa-content(\10f5a4); } +.fad.#{$fa-css-prefix}-meh-rolling-eyes:after { content: fa-content(\10f5a5); } +.fad.#{$fa-css-prefix}-memory:after { content: fa-content(\10f538); } +.fad.#{$fa-css-prefix}-menorah:after { content: fa-content(\10f676); } +.fad.#{$fa-css-prefix}-mercury:after { content: fa-content(\10f223); } +.fad.#{$fa-css-prefix}-meteor:after { content: fa-content(\10f753); } +.fad.#{$fa-css-prefix}-microchip:after { content: fa-content(\10f2db); } +.fad.#{$fa-css-prefix}-microphone:after { content: fa-content(\10f130); } +.fad.#{$fa-css-prefix}-microphone-alt:after { content: fa-content(\10f3c9); } +.fad.#{$fa-css-prefix}-microphone-alt-slash:after { content: fa-content(\10f539); } +.fad.#{$fa-css-prefix}-microphone-slash:after { content: fa-content(\10f131); } +.fad.#{$fa-css-prefix}-microphone-stand:after { content: fa-content(\10f8cb); } +.fad.#{$fa-css-prefix}-microscope:after { content: fa-content(\10f610); } +.fad.#{$fa-css-prefix}-microwave:after { content: fa-content(\10e01b); } +.fad.#{$fa-css-prefix}-mind-share:after { content: fa-content(\10f677); } +.fad.#{$fa-css-prefix}-minus:after { content: fa-content(\10f068); } +.fad.#{$fa-css-prefix}-minus-circle:after { content: fa-content(\10f056); } +.fad.#{$fa-css-prefix}-minus-hexagon:after { content: fa-content(\10f307); } +.fad.#{$fa-css-prefix}-minus-octagon:after { content: fa-content(\10f308); } +.fad.#{$fa-css-prefix}-minus-square:after { content: fa-content(\10f146); } +.fad.#{$fa-css-prefix}-mistletoe:after { content: fa-content(\10f7b4); } +.fad.#{$fa-css-prefix}-mitten:after { content: fa-content(\10f7b5); } +.fad.#{$fa-css-prefix}-mobile:after { content: fa-content(\10f10b); } +.fad.#{$fa-css-prefix}-mobile-alt:after { content: fa-content(\10f3cd); } +.fad.#{$fa-css-prefix}-mobile-android:after { content: fa-content(\10f3ce); } +.fad.#{$fa-css-prefix}-mobile-android-alt:after { content: fa-content(\10f3cf); } +.fad.#{$fa-css-prefix}-money-bill:after { content: fa-content(\10f0d6); } +.fad.#{$fa-css-prefix}-money-bill-alt:after { content: fa-content(\10f3d1); } +.fad.#{$fa-css-prefix}-money-bill-wave:after { content: fa-content(\10f53a); } +.fad.#{$fa-css-prefix}-money-bill-wave-alt:after { content: fa-content(\10f53b); } +.fad.#{$fa-css-prefix}-money-check:after { content: fa-content(\10f53c); } +.fad.#{$fa-css-prefix}-money-check-alt:after { content: fa-content(\10f53d); } +.fad.#{$fa-css-prefix}-money-check-edit:after { content: fa-content(\10f872); } +.fad.#{$fa-css-prefix}-money-check-edit-alt:after { content: fa-content(\10f873); } +.fad.#{$fa-css-prefix}-monitor-heart-rate:after { content: fa-content(\10f611); } +.fad.#{$fa-css-prefix}-monkey:after { content: fa-content(\10f6fb); } +.fad.#{$fa-css-prefix}-monument:after { content: fa-content(\10f5a6); } +.fad.#{$fa-css-prefix}-moon:after { content: fa-content(\10f186); } +.fad.#{$fa-css-prefix}-moon-cloud:after { content: fa-content(\10f754); } +.fad.#{$fa-css-prefix}-moon-stars:after { content: fa-content(\10f755); } +.fad.#{$fa-css-prefix}-mortar-pestle:after { content: fa-content(\10f5a7); } +.fad.#{$fa-css-prefix}-mosque:after { content: fa-content(\10f678); } +.fad.#{$fa-css-prefix}-motorcycle:after { content: fa-content(\10f21c); } +.fad.#{$fa-css-prefix}-mountain:after { content: fa-content(\10f6fc); } +.fad.#{$fa-css-prefix}-mountains:after { content: fa-content(\10f6fd); } +.fad.#{$fa-css-prefix}-mouse:after { content: fa-content(\10f8cc); } +.fad.#{$fa-css-prefix}-mouse-alt:after { content: fa-content(\10f8cd); } +.fad.#{$fa-css-prefix}-mouse-pointer:after { content: fa-content(\10f245); } +.fad.#{$fa-css-prefix}-mp3-player:after { content: fa-content(\10f8ce); } +.fad.#{$fa-css-prefix}-mug:after { content: fa-content(\10f874); } +.fad.#{$fa-css-prefix}-mug-hot:after { content: fa-content(\10f7b6); } +.fad.#{$fa-css-prefix}-mug-marshmallows:after { content: fa-content(\10f7b7); } +.fad.#{$fa-css-prefix}-mug-tea:after { content: fa-content(\10f875); } +.fad.#{$fa-css-prefix}-music:after { content: fa-content(\10f001); } +.fad.#{$fa-css-prefix}-music-alt:after { content: fa-content(\10f8cf); } +.fad.#{$fa-css-prefix}-music-alt-slash:after { content: fa-content(\10f8d0); } +.fad.#{$fa-css-prefix}-music-slash:after { content: fa-content(\10f8d1); } +.fad.#{$fa-css-prefix}-narwhal:after { content: fa-content(\10f6fe); } +.fad.#{$fa-css-prefix}-network-wired:after { content: fa-content(\10f6ff); } +.fad.#{$fa-css-prefix}-neuter:after { content: fa-content(\10f22c); } +.fad.#{$fa-css-prefix}-newspaper:after { content: fa-content(\10f1ea); } +.fad.#{$fa-css-prefix}-not-equal:after { content: fa-content(\10f53e); } +.fad.#{$fa-css-prefix}-notes-medical:after { content: fa-content(\10f481); } +.fad.#{$fa-css-prefix}-object-group:after { content: fa-content(\10f247); } +.fad.#{$fa-css-prefix}-object-ungroup:after { content: fa-content(\10f248); } +.fad.#{$fa-css-prefix}-octagon:after { content: fa-content(\10f306); } +.fad.#{$fa-css-prefix}-oil-can:after { content: fa-content(\10f613); } +.fad.#{$fa-css-prefix}-oil-temp:after { content: fa-content(\10f614); } +.fad.#{$fa-css-prefix}-om:after { content: fa-content(\10f679); } +.fad.#{$fa-css-prefix}-omega:after { content: fa-content(\10f67a); } +.fad.#{$fa-css-prefix}-ornament:after { content: fa-content(\10f7b8); } +.fad.#{$fa-css-prefix}-otter:after { content: fa-content(\10f700); } +.fad.#{$fa-css-prefix}-outdent:after { content: fa-content(\10f03b); } +.fad.#{$fa-css-prefix}-outlet:after { content: fa-content(\10e01c); } +.fad.#{$fa-css-prefix}-oven:after { content: fa-content(\10e01d); } +.fad.#{$fa-css-prefix}-overline:after { content: fa-content(\10f876); } +.fad.#{$fa-css-prefix}-page-break:after { content: fa-content(\10f877); } +.fad.#{$fa-css-prefix}-pager:after { content: fa-content(\10f815); } +.fad.#{$fa-css-prefix}-paint-brush:after { content: fa-content(\10f1fc); } +.fad.#{$fa-css-prefix}-paint-brush-alt:after { content: fa-content(\10f5a9); } +.fad.#{$fa-css-prefix}-paint-roller:after { content: fa-content(\10f5aa); } +.fad.#{$fa-css-prefix}-palette:after { content: fa-content(\10f53f); } +.fad.#{$fa-css-prefix}-pallet:after { content: fa-content(\10f482); } +.fad.#{$fa-css-prefix}-pallet-alt:after { content: fa-content(\10f483); } +.fad.#{$fa-css-prefix}-paper-plane:after { content: fa-content(\10f1d8); } +.fad.#{$fa-css-prefix}-paperclip:after { content: fa-content(\10f0c6); } +.fad.#{$fa-css-prefix}-parachute-box:after { content: fa-content(\10f4cd); } +.fad.#{$fa-css-prefix}-paragraph:after { content: fa-content(\10f1dd); } +.fad.#{$fa-css-prefix}-paragraph-rtl:after { content: fa-content(\10f878); } +.fad.#{$fa-css-prefix}-parking:after { content: fa-content(\10f540); } +.fad.#{$fa-css-prefix}-parking-circle:after { content: fa-content(\10f615); } +.fad.#{$fa-css-prefix}-parking-circle-slash:after { content: fa-content(\10f616); } +.fad.#{$fa-css-prefix}-parking-slash:after { content: fa-content(\10f617); } +.fad.#{$fa-css-prefix}-passport:after { content: fa-content(\10f5ab); } +.fad.#{$fa-css-prefix}-pastafarianism:after { content: fa-content(\10f67b); } +.fad.#{$fa-css-prefix}-paste:after { content: fa-content(\10f0ea); } +.fad.#{$fa-css-prefix}-pause:after { content: fa-content(\10f04c); } +.fad.#{$fa-css-prefix}-pause-circle:after { content: fa-content(\10f28b); } +.fad.#{$fa-css-prefix}-paw:after { content: fa-content(\10f1b0); } +.fad.#{$fa-css-prefix}-paw-alt:after { content: fa-content(\10f701); } +.fad.#{$fa-css-prefix}-paw-claws:after { content: fa-content(\10f702); } +.fad.#{$fa-css-prefix}-peace:after { content: fa-content(\10f67c); } +.fad.#{$fa-css-prefix}-pegasus:after { content: fa-content(\10f703); } +.fad.#{$fa-css-prefix}-pen:after { content: fa-content(\10f304); } +.fad.#{$fa-css-prefix}-pen-alt:after { content: fa-content(\10f305); } +.fad.#{$fa-css-prefix}-pen-fancy:after { content: fa-content(\10f5ac); } +.fad.#{$fa-css-prefix}-pen-nib:after { content: fa-content(\10f5ad); } +.fad.#{$fa-css-prefix}-pen-square:after { content: fa-content(\10f14b); } +.fad.#{$fa-css-prefix}-pencil:after { content: fa-content(\10f040); } +.fad.#{$fa-css-prefix}-pencil-alt:after { content: fa-content(\10f303); } +.fad.#{$fa-css-prefix}-pencil-paintbrush:after { content: fa-content(\10f618); } +.fad.#{$fa-css-prefix}-pencil-ruler:after { content: fa-content(\10f5ae); } +.fad.#{$fa-css-prefix}-pennant:after { content: fa-content(\10f456); } +.fad.#{$fa-css-prefix}-people-arrows:after { content: fa-content(\10e068); } +.fad.#{$fa-css-prefix}-people-carry:after { content: fa-content(\10f4ce); } +.fad.#{$fa-css-prefix}-pepper-hot:after { content: fa-content(\10f816); } +.fad.#{$fa-css-prefix}-percent:after { content: fa-content(\10f295); } +.fad.#{$fa-css-prefix}-percentage:after { content: fa-content(\10f541); } +.fad.#{$fa-css-prefix}-person-booth:after { content: fa-content(\10f756); } +.fad.#{$fa-css-prefix}-person-carry:after { content: fa-content(\10f4cf); } +.fad.#{$fa-css-prefix}-person-dolly:after { content: fa-content(\10f4d0); } +.fad.#{$fa-css-prefix}-person-dolly-empty:after { content: fa-content(\10f4d1); } +.fad.#{$fa-css-prefix}-person-sign:after { content: fa-content(\10f757); } +.fad.#{$fa-css-prefix}-phone:after { content: fa-content(\10f095); } +.fad.#{$fa-css-prefix}-phone-alt:after { content: fa-content(\10f879); } +.fad.#{$fa-css-prefix}-phone-laptop:after { content: fa-content(\10f87a); } +.fad.#{$fa-css-prefix}-phone-office:after { content: fa-content(\10f67d); } +.fad.#{$fa-css-prefix}-phone-plus:after { content: fa-content(\10f4d2); } +.fad.#{$fa-css-prefix}-phone-rotary:after { content: fa-content(\10f8d3); } +.fad.#{$fa-css-prefix}-phone-slash:after { content: fa-content(\10f3dd); } +.fad.#{$fa-css-prefix}-phone-square:after { content: fa-content(\10f098); } +.fad.#{$fa-css-prefix}-phone-square-alt:after { content: fa-content(\10f87b); } +.fad.#{$fa-css-prefix}-phone-volume:after { content: fa-content(\10f2a0); } +.fad.#{$fa-css-prefix}-photo-video:after { content: fa-content(\10f87c); } +.fad.#{$fa-css-prefix}-pi:after { content: fa-content(\10f67e); } +.fad.#{$fa-css-prefix}-piano:after { content: fa-content(\10f8d4); } +.fad.#{$fa-css-prefix}-piano-keyboard:after { content: fa-content(\10f8d5); } +.fad.#{$fa-css-prefix}-pie:after { content: fa-content(\10f705); } +.fad.#{$fa-css-prefix}-pig:after { content: fa-content(\10f706); } +.fad.#{$fa-css-prefix}-piggy-bank:after { content: fa-content(\10f4d3); } +.fad.#{$fa-css-prefix}-pills:after { content: fa-content(\10f484); } +.fad.#{$fa-css-prefix}-pizza:after { content: fa-content(\10f817); } +.fad.#{$fa-css-prefix}-pizza-slice:after { content: fa-content(\10f818); } +.fad.#{$fa-css-prefix}-place-of-worship:after { content: fa-content(\10f67f); } +.fad.#{$fa-css-prefix}-plane:after { content: fa-content(\10f072); } +.fad.#{$fa-css-prefix}-plane-alt:after { content: fa-content(\10f3de); } +.fad.#{$fa-css-prefix}-plane-arrival:after { content: fa-content(\10f5af); } +.fad.#{$fa-css-prefix}-plane-departure:after { content: fa-content(\10f5b0); } +.fad.#{$fa-css-prefix}-plane-slash:after { content: fa-content(\10e069); } +.fad.#{$fa-css-prefix}-planet-moon:after { content: fa-content(\10e01f); } +.fad.#{$fa-css-prefix}-planet-ringed:after { content: fa-content(\10e020); } +.fad.#{$fa-css-prefix}-play:after { content: fa-content(\10f04b); } +.fad.#{$fa-css-prefix}-play-circle:after { content: fa-content(\10f144); } +.fad.#{$fa-css-prefix}-plug:after { content: fa-content(\10f1e6); } +.fad.#{$fa-css-prefix}-plus:after { content: fa-content(\10f067); } +.fad.#{$fa-css-prefix}-plus-circle:after { content: fa-content(\10f055); } +.fad.#{$fa-css-prefix}-plus-hexagon:after { content: fa-content(\10f300); } +.fad.#{$fa-css-prefix}-plus-octagon:after { content: fa-content(\10f301); } +.fad.#{$fa-css-prefix}-plus-square:after { content: fa-content(\10f0fe); } +.fad.#{$fa-css-prefix}-podcast:after { content: fa-content(\10f2ce); } +.fad.#{$fa-css-prefix}-podium:after { content: fa-content(\10f680); } +.fad.#{$fa-css-prefix}-podium-star:after { content: fa-content(\10f758); } +.fad.#{$fa-css-prefix}-police-box:after { content: fa-content(\10e021); } +.fad.#{$fa-css-prefix}-poll:after { content: fa-content(\10f681); } +.fad.#{$fa-css-prefix}-poll-h:after { content: fa-content(\10f682); } +.fad.#{$fa-css-prefix}-poll-people:after { content: fa-content(\10f759); } +.fad.#{$fa-css-prefix}-poo:after { content: fa-content(\10f2fe); } +.fad.#{$fa-css-prefix}-poo-storm:after { content: fa-content(\10f75a); } +.fad.#{$fa-css-prefix}-poop:after { content: fa-content(\10f619); } +.fad.#{$fa-css-prefix}-popcorn:after { content: fa-content(\10f819); } +.fad.#{$fa-css-prefix}-portal-enter:after { content: fa-content(\10e022); } +.fad.#{$fa-css-prefix}-portal-exit:after { content: fa-content(\10e023); } +.fad.#{$fa-css-prefix}-portrait:after { content: fa-content(\10f3e0); } +.fad.#{$fa-css-prefix}-pound-sign:after { content: fa-content(\10f154); } +.fad.#{$fa-css-prefix}-power-off:after { content: fa-content(\10f011); } +.fad.#{$fa-css-prefix}-pray:after { content: fa-content(\10f683); } +.fad.#{$fa-css-prefix}-praying-hands:after { content: fa-content(\10f684); } +.fad.#{$fa-css-prefix}-prescription:after { content: fa-content(\10f5b1); } +.fad.#{$fa-css-prefix}-prescription-bottle:after { content: fa-content(\10f485); } +.fad.#{$fa-css-prefix}-prescription-bottle-alt:after { content: fa-content(\10f486); } +.fad.#{$fa-css-prefix}-presentation:after { content: fa-content(\10f685); } +.fad.#{$fa-css-prefix}-print:after { content: fa-content(\10f02f); } +.fad.#{$fa-css-prefix}-print-search:after { content: fa-content(\10f81a); } +.fad.#{$fa-css-prefix}-print-slash:after { content: fa-content(\10f686); } +.fad.#{$fa-css-prefix}-procedures:after { content: fa-content(\10f487); } +.fad.#{$fa-css-prefix}-project-diagram:after { content: fa-content(\10f542); } +.fad.#{$fa-css-prefix}-projector:after { content: fa-content(\10f8d6); } +.fad.#{$fa-css-prefix}-pump-medical:after { content: fa-content(\10e06a); } +.fad.#{$fa-css-prefix}-pump-soap:after { content: fa-content(\10e06b); } +.fad.#{$fa-css-prefix}-pumpkin:after { content: fa-content(\10f707); } +.fad.#{$fa-css-prefix}-puzzle-piece:after { content: fa-content(\10f12e); } +.fad.#{$fa-css-prefix}-qrcode:after { content: fa-content(\10f029); } +.fad.#{$fa-css-prefix}-question:after { content: fa-content(\10f128); } +.fad.#{$fa-css-prefix}-question-circle:after { content: fa-content(\10f059); } +.fad.#{$fa-css-prefix}-question-square:after { content: fa-content(\10f2fd); } +.fad.#{$fa-css-prefix}-quidditch:after { content: fa-content(\10f458); } +.fad.#{$fa-css-prefix}-quote-left:after { content: fa-content(\10f10d); } +.fad.#{$fa-css-prefix}-quote-right:after { content: fa-content(\10f10e); } +.fad.#{$fa-css-prefix}-quran:after { content: fa-content(\10f687); } +.fad.#{$fa-css-prefix}-rabbit:after { content: fa-content(\10f708); } +.fad.#{$fa-css-prefix}-rabbit-fast:after { content: fa-content(\10f709); } +.fad.#{$fa-css-prefix}-racquet:after { content: fa-content(\10f45a); } +.fad.#{$fa-css-prefix}-radar:after { content: fa-content(\10e024); } +.fad.#{$fa-css-prefix}-radiation:after { content: fa-content(\10f7b9); } +.fad.#{$fa-css-prefix}-radiation-alt:after { content: fa-content(\10f7ba); } +.fad.#{$fa-css-prefix}-radio:after { content: fa-content(\10f8d7); } +.fad.#{$fa-css-prefix}-radio-alt:after { content: fa-content(\10f8d8); } +.fad.#{$fa-css-prefix}-rainbow:after { content: fa-content(\10f75b); } +.fad.#{$fa-css-prefix}-raindrops:after { content: fa-content(\10f75c); } +.fad.#{$fa-css-prefix}-ram:after { content: fa-content(\10f70a); } +.fad.#{$fa-css-prefix}-ramp-loading:after { content: fa-content(\10f4d4); } +.fad.#{$fa-css-prefix}-random:after { content: fa-content(\10f074); } +.fad.#{$fa-css-prefix}-raygun:after { content: fa-content(\10e025); } +.fad.#{$fa-css-prefix}-receipt:after { content: fa-content(\10f543); } +.fad.#{$fa-css-prefix}-record-vinyl:after { content: fa-content(\10f8d9); } +.fad.#{$fa-css-prefix}-rectangle-landscape:after { content: fa-content(\10f2fa); } +.fad.#{$fa-css-prefix}-rectangle-portrait:after { content: fa-content(\10f2fb); } +.fad.#{$fa-css-prefix}-rectangle-wide:after { content: fa-content(\10f2fc); } +.fad.#{$fa-css-prefix}-recycle:after { content: fa-content(\10f1b8); } +.fad.#{$fa-css-prefix}-redo:after { content: fa-content(\10f01e); } +.fad.#{$fa-css-prefix}-redo-alt:after { content: fa-content(\10f2f9); } +.fad.#{$fa-css-prefix}-refrigerator:after { content: fa-content(\10e026); } +.fad.#{$fa-css-prefix}-registered:after { content: fa-content(\10f25d); } +.fad.#{$fa-css-prefix}-remove-format:after { content: fa-content(\10f87d); } +.fad.#{$fa-css-prefix}-repeat:after { content: fa-content(\10f363); } +.fad.#{$fa-css-prefix}-repeat-1:after { content: fa-content(\10f365); } +.fad.#{$fa-css-prefix}-repeat-1-alt:after { content: fa-content(\10f366); } +.fad.#{$fa-css-prefix}-repeat-alt:after { content: fa-content(\10f364); } +.fad.#{$fa-css-prefix}-reply:after { content: fa-content(\10f3e5); } +.fad.#{$fa-css-prefix}-reply-all:after { content: fa-content(\10f122); } +.fad.#{$fa-css-prefix}-republican:after { content: fa-content(\10f75e); } +.fad.#{$fa-css-prefix}-restroom:after { content: fa-content(\10f7bd); } +.fad.#{$fa-css-prefix}-retweet:after { content: fa-content(\10f079); } +.fad.#{$fa-css-prefix}-retweet-alt:after { content: fa-content(\10f361); } +.fad.#{$fa-css-prefix}-ribbon:after { content: fa-content(\10f4d6); } +.fad.#{$fa-css-prefix}-ring:after { content: fa-content(\10f70b); } +.fad.#{$fa-css-prefix}-rings-wedding:after { content: fa-content(\10f81b); } +.fad.#{$fa-css-prefix}-road:after { content: fa-content(\10f018); } +.fad.#{$fa-css-prefix}-robot:after { content: fa-content(\10f544); } +.fad.#{$fa-css-prefix}-rocket:after { content: fa-content(\10f135); } +.fad.#{$fa-css-prefix}-rocket-launch:after { content: fa-content(\10e027); } +.fad.#{$fa-css-prefix}-route:after { content: fa-content(\10f4d7); } +.fad.#{$fa-css-prefix}-route-highway:after { content: fa-content(\10f61a); } +.fad.#{$fa-css-prefix}-route-interstate:after { content: fa-content(\10f61b); } +.fad.#{$fa-css-prefix}-router:after { content: fa-content(\10f8da); } +.fad.#{$fa-css-prefix}-rss:after { content: fa-content(\10f09e); } +.fad.#{$fa-css-prefix}-rss-square:after { content: fa-content(\10f143); } +.fad.#{$fa-css-prefix}-ruble-sign:after { content: fa-content(\10f158); } +.fad.#{$fa-css-prefix}-ruler:after { content: fa-content(\10f545); } +.fad.#{$fa-css-prefix}-ruler-combined:after { content: fa-content(\10f546); } +.fad.#{$fa-css-prefix}-ruler-horizontal:after { content: fa-content(\10f547); } +.fad.#{$fa-css-prefix}-ruler-triangle:after { content: fa-content(\10f61c); } +.fad.#{$fa-css-prefix}-ruler-vertical:after { content: fa-content(\10f548); } +.fad.#{$fa-css-prefix}-running:after { content: fa-content(\10f70c); } +.fad.#{$fa-css-prefix}-rupee-sign:after { content: fa-content(\10f156); } +.fad.#{$fa-css-prefix}-rv:after { content: fa-content(\10f7be); } +.fad.#{$fa-css-prefix}-sack:after { content: fa-content(\10f81c); } +.fad.#{$fa-css-prefix}-sack-dollar:after { content: fa-content(\10f81d); } +.fad.#{$fa-css-prefix}-sad-cry:after { content: fa-content(\10f5b3); } +.fad.#{$fa-css-prefix}-sad-tear:after { content: fa-content(\10f5b4); } +.fad.#{$fa-css-prefix}-salad:after { content: fa-content(\10f81e); } +.fad.#{$fa-css-prefix}-sandwich:after { content: fa-content(\10f81f); } +.fad.#{$fa-css-prefix}-satellite:after { content: fa-content(\10f7bf); } +.fad.#{$fa-css-prefix}-satellite-dish:after { content: fa-content(\10f7c0); } +.fad.#{$fa-css-prefix}-sausage:after { content: fa-content(\10f820); } +.fad.#{$fa-css-prefix}-save:after { content: fa-content(\10f0c7); } +.fad.#{$fa-css-prefix}-sax-hot:after { content: fa-content(\10f8db); } +.fad.#{$fa-css-prefix}-saxophone:after { content: fa-content(\10f8dc); } +.fad.#{$fa-css-prefix}-scalpel:after { content: fa-content(\10f61d); } +.fad.#{$fa-css-prefix}-scalpel-path:after { content: fa-content(\10f61e); } +.fad.#{$fa-css-prefix}-scanner:after { content: fa-content(\10f488); } +.fad.#{$fa-css-prefix}-scanner-image:after { content: fa-content(\10f8f3); } +.fad.#{$fa-css-prefix}-scanner-keyboard:after { content: fa-content(\10f489); } +.fad.#{$fa-css-prefix}-scanner-touchscreen:after { content: fa-content(\10f48a); } +.fad.#{$fa-css-prefix}-scarecrow:after { content: fa-content(\10f70d); } +.fad.#{$fa-css-prefix}-scarf:after { content: fa-content(\10f7c1); } +.fad.#{$fa-css-prefix}-school:after { content: fa-content(\10f549); } +.fad.#{$fa-css-prefix}-screwdriver:after { content: fa-content(\10f54a); } +.fad.#{$fa-css-prefix}-scroll:after { content: fa-content(\10f70e); } +.fad.#{$fa-css-prefix}-scroll-old:after { content: fa-content(\10f70f); } +.fad.#{$fa-css-prefix}-scrubber:after { content: fa-content(\10f2f8); } +.fad.#{$fa-css-prefix}-scythe:after { content: fa-content(\10f710); } +.fad.#{$fa-css-prefix}-sd-card:after { content: fa-content(\10f7c2); } +.fad.#{$fa-css-prefix}-search:after { content: fa-content(\10f002); } +.fad.#{$fa-css-prefix}-search-dollar:after { content: fa-content(\10f688); } +.fad.#{$fa-css-prefix}-search-location:after { content: fa-content(\10f689); } +.fad.#{$fa-css-prefix}-search-minus:after { content: fa-content(\10f010); } +.fad.#{$fa-css-prefix}-search-plus:after { content: fa-content(\10f00e); } +.fad.#{$fa-css-prefix}-seedling:after { content: fa-content(\10f4d8); } +.fad.#{$fa-css-prefix}-send-back:after { content: fa-content(\10f87e); } +.fad.#{$fa-css-prefix}-send-backward:after { content: fa-content(\10f87f); } +.fad.#{$fa-css-prefix}-sensor:after { content: fa-content(\10e028); } +.fad.#{$fa-css-prefix}-sensor-alert:after { content: fa-content(\10e029); } +.fad.#{$fa-css-prefix}-sensor-fire:after { content: fa-content(\10e02a); } +.fad.#{$fa-css-prefix}-sensor-on:after { content: fa-content(\10e02b); } +.fad.#{$fa-css-prefix}-sensor-smoke:after { content: fa-content(\10e02c); } +.fad.#{$fa-css-prefix}-server:after { content: fa-content(\10f233); } +.fad.#{$fa-css-prefix}-shapes:after { content: fa-content(\10f61f); } +.fad.#{$fa-css-prefix}-share:after { content: fa-content(\10f064); } +.fad.#{$fa-css-prefix}-share-all:after { content: fa-content(\10f367); } +.fad.#{$fa-css-prefix}-share-alt:after { content: fa-content(\10f1e0); } +.fad.#{$fa-css-prefix}-share-alt-square:after { content: fa-content(\10f1e1); } +.fad.#{$fa-css-prefix}-share-square:after { content: fa-content(\10f14d); } +.fad.#{$fa-css-prefix}-sheep:after { content: fa-content(\10f711); } +.fad.#{$fa-css-prefix}-shekel-sign:after { content: fa-content(\10f20b); } +.fad.#{$fa-css-prefix}-shield:after { content: fa-content(\10f132); } +.fad.#{$fa-css-prefix}-shield-alt:after { content: fa-content(\10f3ed); } +.fad.#{$fa-css-prefix}-shield-check:after { content: fa-content(\10f2f7); } +.fad.#{$fa-css-prefix}-shield-cross:after { content: fa-content(\10f712); } +.fad.#{$fa-css-prefix}-shield-virus:after { content: fa-content(\10e06c); } +.fad.#{$fa-css-prefix}-ship:after { content: fa-content(\10f21a); } +.fad.#{$fa-css-prefix}-shipping-fast:after { content: fa-content(\10f48b); } +.fad.#{$fa-css-prefix}-shipping-timed:after { content: fa-content(\10f48c); } +.fad.#{$fa-css-prefix}-shish-kebab:after { content: fa-content(\10f821); } +.fad.#{$fa-css-prefix}-shoe-prints:after { content: fa-content(\10f54b); } +.fad.#{$fa-css-prefix}-shopping-bag:after { content: fa-content(\10f290); } +.fad.#{$fa-css-prefix}-shopping-basket:after { content: fa-content(\10f291); } +.fad.#{$fa-css-prefix}-shopping-cart:after { content: fa-content(\10f07a); } +.fad.#{$fa-css-prefix}-shovel:after { content: fa-content(\10f713); } +.fad.#{$fa-css-prefix}-shovel-snow:after { content: fa-content(\10f7c3); } +.fad.#{$fa-css-prefix}-shower:after { content: fa-content(\10f2cc); } +.fad.#{$fa-css-prefix}-shredder:after { content: fa-content(\10f68a); } +.fad.#{$fa-css-prefix}-shuttle-van:after { content: fa-content(\10f5b6); } +.fad.#{$fa-css-prefix}-shuttlecock:after { content: fa-content(\10f45b); } +.fad.#{$fa-css-prefix}-sickle:after { content: fa-content(\10f822); } +.fad.#{$fa-css-prefix}-sigma:after { content: fa-content(\10f68b); } +.fad.#{$fa-css-prefix}-sign:after { content: fa-content(\10f4d9); } +.fad.#{$fa-css-prefix}-sign-in:after { content: fa-content(\10f090); } +.fad.#{$fa-css-prefix}-sign-in-alt:after { content: fa-content(\10f2f6); } +.fad.#{$fa-css-prefix}-sign-language:after { content: fa-content(\10f2a7); } +.fad.#{$fa-css-prefix}-sign-out:after { content: fa-content(\10f08b); } +.fad.#{$fa-css-prefix}-sign-out-alt:after { content: fa-content(\10f2f5); } +.fad.#{$fa-css-prefix}-signal:after { content: fa-content(\10f012); } +.fad.#{$fa-css-prefix}-signal-1:after { content: fa-content(\10f68c); } +.fad.#{$fa-css-prefix}-signal-2:after { content: fa-content(\10f68d); } +.fad.#{$fa-css-prefix}-signal-3:after { content: fa-content(\10f68e); } +.fad.#{$fa-css-prefix}-signal-4:after { content: fa-content(\10f68f); } +.fad.#{$fa-css-prefix}-signal-alt:after { content: fa-content(\10f690); } +.fad.#{$fa-css-prefix}-signal-alt-1:after { content: fa-content(\10f691); } +.fad.#{$fa-css-prefix}-signal-alt-2:after { content: fa-content(\10f692); } +.fad.#{$fa-css-prefix}-signal-alt-3:after { content: fa-content(\10f693); } +.fad.#{$fa-css-prefix}-signal-alt-slash:after { content: fa-content(\10f694); } +.fad.#{$fa-css-prefix}-signal-slash:after { content: fa-content(\10f695); } +.fad.#{$fa-css-prefix}-signal-stream:after { content: fa-content(\10f8dd); } +.fad.#{$fa-css-prefix}-signature:after { content: fa-content(\10f5b7); } +.fad.#{$fa-css-prefix}-sim-card:after { content: fa-content(\10f7c4); } +.fad.#{$fa-css-prefix}-sink:after { content: fa-content(\10e06d); } +.fad.#{$fa-css-prefix}-siren:after { content: fa-content(\10e02d); } +.fad.#{$fa-css-prefix}-siren-on:after { content: fa-content(\10e02e); } +.fad.#{$fa-css-prefix}-sitemap:after { content: fa-content(\10f0e8); } +.fad.#{$fa-css-prefix}-skating:after { content: fa-content(\10f7c5); } +.fad.#{$fa-css-prefix}-skeleton:after { content: fa-content(\10f620); } +.fad.#{$fa-css-prefix}-ski-jump:after { content: fa-content(\10f7c7); } +.fad.#{$fa-css-prefix}-ski-lift:after { content: fa-content(\10f7c8); } +.fad.#{$fa-css-prefix}-skiing:after { content: fa-content(\10f7c9); } +.fad.#{$fa-css-prefix}-skiing-nordic:after { content: fa-content(\10f7ca); } +.fad.#{$fa-css-prefix}-skull:after { content: fa-content(\10f54c); } +.fad.#{$fa-css-prefix}-skull-cow:after { content: fa-content(\10f8de); } +.fad.#{$fa-css-prefix}-skull-crossbones:after { content: fa-content(\10f714); } +.fad.#{$fa-css-prefix}-slash:after { content: fa-content(\10f715); } +.fad.#{$fa-css-prefix}-sledding:after { content: fa-content(\10f7cb); } +.fad.#{$fa-css-prefix}-sleigh:after { content: fa-content(\10f7cc); } +.fad.#{$fa-css-prefix}-sliders-h:after { content: fa-content(\10f1de); } +.fad.#{$fa-css-prefix}-sliders-h-square:after { content: fa-content(\10f3f0); } +.fad.#{$fa-css-prefix}-sliders-v:after { content: fa-content(\10f3f1); } +.fad.#{$fa-css-prefix}-sliders-v-square:after { content: fa-content(\10f3f2); } +.fad.#{$fa-css-prefix}-smile:after { content: fa-content(\10f118); } +.fad.#{$fa-css-prefix}-smile-beam:after { content: fa-content(\10f5b8); } +.fad.#{$fa-css-prefix}-smile-plus:after { content: fa-content(\10f5b9); } +.fad.#{$fa-css-prefix}-smile-wink:after { content: fa-content(\10f4da); } +.fad.#{$fa-css-prefix}-smog:after { content: fa-content(\10f75f); } +.fad.#{$fa-css-prefix}-smoke:after { content: fa-content(\10f760); } +.fad.#{$fa-css-prefix}-smoking:after { content: fa-content(\10f48d); } +.fad.#{$fa-css-prefix}-smoking-ban:after { content: fa-content(\10f54d); } +.fad.#{$fa-css-prefix}-sms:after { content: fa-content(\10f7cd); } +.fad.#{$fa-css-prefix}-snake:after { content: fa-content(\10f716); } +.fad.#{$fa-css-prefix}-snooze:after { content: fa-content(\10f880); } +.fad.#{$fa-css-prefix}-snow-blowing:after { content: fa-content(\10f761); } +.fad.#{$fa-css-prefix}-snowboarding:after { content: fa-content(\10f7ce); } +.fad.#{$fa-css-prefix}-snowflake:after { content: fa-content(\10f2dc); } +.fad.#{$fa-css-prefix}-snowflakes:after { content: fa-content(\10f7cf); } +.fad.#{$fa-css-prefix}-snowman:after { content: fa-content(\10f7d0); } +.fad.#{$fa-css-prefix}-snowmobile:after { content: fa-content(\10f7d1); } +.fad.#{$fa-css-prefix}-snowplow:after { content: fa-content(\10f7d2); } +.fad.#{$fa-css-prefix}-soap:after { content: fa-content(\10e06e); } +.fad.#{$fa-css-prefix}-socks:after { content: fa-content(\10f696); } +.fad.#{$fa-css-prefix}-solar-panel:after { content: fa-content(\10f5ba); } +.fad.#{$fa-css-prefix}-solar-system:after { content: fa-content(\10e02f); } +.fad.#{$fa-css-prefix}-sort:after { content: fa-content(\10f0dc); } +.fad.#{$fa-css-prefix}-sort-alpha-down:after { content: fa-content(\10f15d); } +.fad.#{$fa-css-prefix}-sort-alpha-down-alt:after { content: fa-content(\10f881); } +.fad.#{$fa-css-prefix}-sort-alpha-up:after { content: fa-content(\10f15e); } +.fad.#{$fa-css-prefix}-sort-alpha-up-alt:after { content: fa-content(\10f882); } +.fad.#{$fa-css-prefix}-sort-alt:after { content: fa-content(\10f883); } +.fad.#{$fa-css-prefix}-sort-amount-down:after { content: fa-content(\10f160); } +.fad.#{$fa-css-prefix}-sort-amount-down-alt:after { content: fa-content(\10f884); } +.fad.#{$fa-css-prefix}-sort-amount-up:after { content: fa-content(\10f161); } +.fad.#{$fa-css-prefix}-sort-amount-up-alt:after { content: fa-content(\10f885); } +.fad.#{$fa-css-prefix}-sort-circle:after { content: fa-content(\10e030); } +.fad.#{$fa-css-prefix}-sort-circle-down:after { content: fa-content(\10e031); } +.fad.#{$fa-css-prefix}-sort-circle-up:after { content: fa-content(\10e032); } +.fad.#{$fa-css-prefix}-sort-down:after { content: fa-content(\10f0dd); } +.fad.#{$fa-css-prefix}-sort-numeric-down:after { content: fa-content(\10f162); } +.fad.#{$fa-css-prefix}-sort-numeric-down-alt:after { content: fa-content(\10f886); } +.fad.#{$fa-css-prefix}-sort-numeric-up:after { content: fa-content(\10f163); } +.fad.#{$fa-css-prefix}-sort-numeric-up-alt:after { content: fa-content(\10f887); } +.fad.#{$fa-css-prefix}-sort-shapes-down:after { content: fa-content(\10f888); } +.fad.#{$fa-css-prefix}-sort-shapes-down-alt:after { content: fa-content(\10f889); } +.fad.#{$fa-css-prefix}-sort-shapes-up:after { content: fa-content(\10f88a); } +.fad.#{$fa-css-prefix}-sort-shapes-up-alt:after { content: fa-content(\10f88b); } +.fad.#{$fa-css-prefix}-sort-size-down:after { content: fa-content(\10f88c); } +.fad.#{$fa-css-prefix}-sort-size-down-alt:after { content: fa-content(\10f88d); } +.fad.#{$fa-css-prefix}-sort-size-up:after { content: fa-content(\10f88e); } +.fad.#{$fa-css-prefix}-sort-size-up-alt:after { content: fa-content(\10f88f); } +.fad.#{$fa-css-prefix}-sort-up:after { content: fa-content(\10f0de); } +.fad.#{$fa-css-prefix}-soup:after { content: fa-content(\10f823); } +.fad.#{$fa-css-prefix}-spa:after { content: fa-content(\10f5bb); } +.fad.#{$fa-css-prefix}-space-shuttle:after { content: fa-content(\10f197); } +.fad.#{$fa-css-prefix}-space-station-moon:after { content: fa-content(\10e033); } +.fad.#{$fa-css-prefix}-space-station-moon-alt:after { content: fa-content(\10e034); } +.fad.#{$fa-css-prefix}-spade:after { content: fa-content(\10f2f4); } +.fad.#{$fa-css-prefix}-sparkles:after { content: fa-content(\10f890); } +.fad.#{$fa-css-prefix}-speaker:after { content: fa-content(\10f8df); } +.fad.#{$fa-css-prefix}-speakers:after { content: fa-content(\10f8e0); } +.fad.#{$fa-css-prefix}-spell-check:after { content: fa-content(\10f891); } +.fad.#{$fa-css-prefix}-spider:after { content: fa-content(\10f717); } +.fad.#{$fa-css-prefix}-spider-black-widow:after { content: fa-content(\10f718); } +.fad.#{$fa-css-prefix}-spider-web:after { content: fa-content(\10f719); } +.fad.#{$fa-css-prefix}-spinner:after { content: fa-content(\10f110); } +.fad.#{$fa-css-prefix}-spinner-third:after { content: fa-content(\10f3f4); } +.fad.#{$fa-css-prefix}-splotch:after { content: fa-content(\10f5bc); } +.fad.#{$fa-css-prefix}-spray-can:after { content: fa-content(\10f5bd); } +.fad.#{$fa-css-prefix}-sprinkler:after { content: fa-content(\10e035); } +.fad.#{$fa-css-prefix}-square:after { content: fa-content(\10f0c8); } +.fad.#{$fa-css-prefix}-square-full:after { content: fa-content(\10f45c); } +.fad.#{$fa-css-prefix}-square-root:after { content: fa-content(\10f697); } +.fad.#{$fa-css-prefix}-square-root-alt:after { content: fa-content(\10f698); } +.fad.#{$fa-css-prefix}-squirrel:after { content: fa-content(\10f71a); } +.fad.#{$fa-css-prefix}-staff:after { content: fa-content(\10f71b); } +.fad.#{$fa-css-prefix}-stamp:after { content: fa-content(\10f5bf); } +.fad.#{$fa-css-prefix}-star:after { content: fa-content(\10f005); } +.fad.#{$fa-css-prefix}-star-and-crescent:after { content: fa-content(\10f699); } +.fad.#{$fa-css-prefix}-star-christmas:after { content: fa-content(\10f7d4); } +.fad.#{$fa-css-prefix}-star-exclamation:after { content: fa-content(\10f2f3); } +.fad.#{$fa-css-prefix}-star-half:after { content: fa-content(\10f089); } +.fad.#{$fa-css-prefix}-star-half-alt:after { content: fa-content(\10f5c0); } +.fad.#{$fa-css-prefix}-star-of-david:after { content: fa-content(\10f69a); } +.fad.#{$fa-css-prefix}-star-of-life:after { content: fa-content(\10f621); } +.fad.#{$fa-css-prefix}-star-shooting:after { content: fa-content(\10e036); } +.fad.#{$fa-css-prefix}-starfighter:after { content: fa-content(\10e037); } +.fad.#{$fa-css-prefix}-starfighter-alt:after { content: fa-content(\10e038); } +.fad.#{$fa-css-prefix}-stars:after { content: fa-content(\10f762); } +.fad.#{$fa-css-prefix}-starship:after { content: fa-content(\10e039); } +.fad.#{$fa-css-prefix}-starship-freighter:after { content: fa-content(\10e03a); } +.fad.#{$fa-css-prefix}-steak:after { content: fa-content(\10f824); } +.fad.#{$fa-css-prefix}-steering-wheel:after { content: fa-content(\10f622); } +.fad.#{$fa-css-prefix}-step-backward:after { content: fa-content(\10f048); } +.fad.#{$fa-css-prefix}-step-forward:after { content: fa-content(\10f051); } +.fad.#{$fa-css-prefix}-stethoscope:after { content: fa-content(\10f0f1); } +.fad.#{$fa-css-prefix}-sticky-note:after { content: fa-content(\10f249); } +.fad.#{$fa-css-prefix}-stocking:after { content: fa-content(\10f7d5); } +.fad.#{$fa-css-prefix}-stomach:after { content: fa-content(\10f623); } +.fad.#{$fa-css-prefix}-stop:after { content: fa-content(\10f04d); } +.fad.#{$fa-css-prefix}-stop-circle:after { content: fa-content(\10f28d); } +.fad.#{$fa-css-prefix}-stopwatch:after { content: fa-content(\10f2f2); } +.fad.#{$fa-css-prefix}-stopwatch-20:after { content: fa-content(\10e06f); } +.fad.#{$fa-css-prefix}-store:after { content: fa-content(\10f54e); } +.fad.#{$fa-css-prefix}-store-alt:after { content: fa-content(\10f54f); } +.fad.#{$fa-css-prefix}-store-alt-slash:after { content: fa-content(\10e070); } +.fad.#{$fa-css-prefix}-store-slash:after { content: fa-content(\10e071); } +.fad.#{$fa-css-prefix}-stream:after { content: fa-content(\10f550); } +.fad.#{$fa-css-prefix}-street-view:after { content: fa-content(\10f21d); } +.fad.#{$fa-css-prefix}-stretcher:after { content: fa-content(\10f825); } +.fad.#{$fa-css-prefix}-strikethrough:after { content: fa-content(\10f0cc); } +.fad.#{$fa-css-prefix}-stroopwafel:after { content: fa-content(\10f551); } +.fad.#{$fa-css-prefix}-subscript:after { content: fa-content(\10f12c); } +.fad.#{$fa-css-prefix}-subway:after { content: fa-content(\10f239); } +.fad.#{$fa-css-prefix}-suitcase:after { content: fa-content(\10f0f2); } +.fad.#{$fa-css-prefix}-suitcase-rolling:after { content: fa-content(\10f5c1); } +.fad.#{$fa-css-prefix}-sun:after { content: fa-content(\10f185); } +.fad.#{$fa-css-prefix}-sun-cloud:after { content: fa-content(\10f763); } +.fad.#{$fa-css-prefix}-sun-dust:after { content: fa-content(\10f764); } +.fad.#{$fa-css-prefix}-sun-haze:after { content: fa-content(\10f765); } +.fad.#{$fa-css-prefix}-sunglasses:after { content: fa-content(\10f892); } +.fad.#{$fa-css-prefix}-sunrise:after { content: fa-content(\10f766); } +.fad.#{$fa-css-prefix}-sunset:after { content: fa-content(\10f767); } +.fad.#{$fa-css-prefix}-superscript:after { content: fa-content(\10f12b); } +.fad.#{$fa-css-prefix}-surprise:after { content: fa-content(\10f5c2); } +.fad.#{$fa-css-prefix}-swatchbook:after { content: fa-content(\10f5c3); } +.fad.#{$fa-css-prefix}-swimmer:after { content: fa-content(\10f5c4); } +.fad.#{$fa-css-prefix}-swimming-pool:after { content: fa-content(\10f5c5); } +.fad.#{$fa-css-prefix}-sword:after { content: fa-content(\10f71c); } +.fad.#{$fa-css-prefix}-sword-laser:after { content: fa-content(\10e03b); } +.fad.#{$fa-css-prefix}-sword-laser-alt:after { content: fa-content(\10e03c); } +.fad.#{$fa-css-prefix}-swords:after { content: fa-content(\10f71d); } +.fad.#{$fa-css-prefix}-swords-laser:after { content: fa-content(\10e03d); } +.fad.#{$fa-css-prefix}-synagogue:after { content: fa-content(\10f69b); } +.fad.#{$fa-css-prefix}-sync:after { content: fa-content(\10f021); } +.fad.#{$fa-css-prefix}-sync-alt:after { content: fa-content(\10f2f1); } +.fad.#{$fa-css-prefix}-syringe:after { content: fa-content(\10f48e); } +.fad.#{$fa-css-prefix}-table:after { content: fa-content(\10f0ce); } +.fad.#{$fa-css-prefix}-table-tennis:after { content: fa-content(\10f45d); } +.fad.#{$fa-css-prefix}-tablet:after { content: fa-content(\10f10a); } +.fad.#{$fa-css-prefix}-tablet-alt:after { content: fa-content(\10f3fa); } +.fad.#{$fa-css-prefix}-tablet-android:after { content: fa-content(\10f3fb); } +.fad.#{$fa-css-prefix}-tablet-android-alt:after { content: fa-content(\10f3fc); } +.fad.#{$fa-css-prefix}-tablet-rugged:after { content: fa-content(\10f48f); } +.fad.#{$fa-css-prefix}-tablets:after { content: fa-content(\10f490); } +.fad.#{$fa-css-prefix}-tachometer:after { content: fa-content(\10f0e4); } +.fad.#{$fa-css-prefix}-tachometer-alt:after { content: fa-content(\10f3fd); } +.fad.#{$fa-css-prefix}-tachometer-alt-average:after { content: fa-content(\10f624); } +.fad.#{$fa-css-prefix}-tachometer-alt-fast:after { content: fa-content(\10f625); } +.fad.#{$fa-css-prefix}-tachometer-alt-fastest:after { content: fa-content(\10f626); } +.fad.#{$fa-css-prefix}-tachometer-alt-slow:after { content: fa-content(\10f627); } +.fad.#{$fa-css-prefix}-tachometer-alt-slowest:after { content: fa-content(\10f628); } +.fad.#{$fa-css-prefix}-tachometer-average:after { content: fa-content(\10f629); } +.fad.#{$fa-css-prefix}-tachometer-fast:after { content: fa-content(\10f62a); } +.fad.#{$fa-css-prefix}-tachometer-fastest:after { content: fa-content(\10f62b); } +.fad.#{$fa-css-prefix}-tachometer-slow:after { content: fa-content(\10f62c); } +.fad.#{$fa-css-prefix}-tachometer-slowest:after { content: fa-content(\10f62d); } +.fad.#{$fa-css-prefix}-taco:after { content: fa-content(\10f826); } +.fad.#{$fa-css-prefix}-tag:after { content: fa-content(\10f02b); } +.fad.#{$fa-css-prefix}-tags:after { content: fa-content(\10f02c); } +.fad.#{$fa-css-prefix}-tally:after { content: fa-content(\10f69c); } +.fad.#{$fa-css-prefix}-tanakh:after { content: fa-content(\10f827); } +.fad.#{$fa-css-prefix}-tape:after { content: fa-content(\10f4db); } +.fad.#{$fa-css-prefix}-tasks:after { content: fa-content(\10f0ae); } +.fad.#{$fa-css-prefix}-tasks-alt:after { content: fa-content(\10f828); } +.fad.#{$fa-css-prefix}-taxi:after { content: fa-content(\10f1ba); } +.fad.#{$fa-css-prefix}-teeth:after { content: fa-content(\10f62e); } +.fad.#{$fa-css-prefix}-teeth-open:after { content: fa-content(\10f62f); } +.fad.#{$fa-css-prefix}-telescope:after { content: fa-content(\10e03e); } +.fad.#{$fa-css-prefix}-temperature-down:after { content: fa-content(\10e03f); } +.fad.#{$fa-css-prefix}-temperature-frigid:after { content: fa-content(\10f768); } +.fad.#{$fa-css-prefix}-temperature-high:after { content: fa-content(\10f769); } +.fad.#{$fa-css-prefix}-temperature-hot:after { content: fa-content(\10f76a); } +.fad.#{$fa-css-prefix}-temperature-low:after { content: fa-content(\10f76b); } +.fad.#{$fa-css-prefix}-temperature-up:after { content: fa-content(\10e040); } +.fad.#{$fa-css-prefix}-tenge:after { content: fa-content(\10f7d7); } +.fad.#{$fa-css-prefix}-tennis-ball:after { content: fa-content(\10f45e); } +.fad.#{$fa-css-prefix}-terminal:after { content: fa-content(\10f120); } +.fad.#{$fa-css-prefix}-text:after { content: fa-content(\10f893); } +.fad.#{$fa-css-prefix}-text-height:after { content: fa-content(\10f034); } +.fad.#{$fa-css-prefix}-text-size:after { content: fa-content(\10f894); } +.fad.#{$fa-css-prefix}-text-width:after { content: fa-content(\10f035); } +.fad.#{$fa-css-prefix}-th:after { content: fa-content(\10f00a); } +.fad.#{$fa-css-prefix}-th-large:after { content: fa-content(\10f009); } +.fad.#{$fa-css-prefix}-th-list:after { content: fa-content(\10f00b); } +.fad.#{$fa-css-prefix}-theater-masks:after { content: fa-content(\10f630); } +.fad.#{$fa-css-prefix}-thermometer:after { content: fa-content(\10f491); } +.fad.#{$fa-css-prefix}-thermometer-empty:after { content: fa-content(\10f2cb); } +.fad.#{$fa-css-prefix}-thermometer-full:after { content: fa-content(\10f2c7); } +.fad.#{$fa-css-prefix}-thermometer-half:after { content: fa-content(\10f2c9); } +.fad.#{$fa-css-prefix}-thermometer-quarter:after { content: fa-content(\10f2ca); } +.fad.#{$fa-css-prefix}-thermometer-three-quarters:after { content: fa-content(\10f2c8); } +.fad.#{$fa-css-prefix}-theta:after { content: fa-content(\10f69e); } +.fad.#{$fa-css-prefix}-thumbs-down:after { content: fa-content(\10f165); } +.fad.#{$fa-css-prefix}-thumbs-up:after { content: fa-content(\10f164); } +.fad.#{$fa-css-prefix}-thumbtack:after { content: fa-content(\10f08d); } +.fad.#{$fa-css-prefix}-thunderstorm:after { content: fa-content(\10f76c); } +.fad.#{$fa-css-prefix}-thunderstorm-moon:after { content: fa-content(\10f76d); } +.fad.#{$fa-css-prefix}-thunderstorm-sun:after { content: fa-content(\10f76e); } +.fad.#{$fa-css-prefix}-ticket:after { content: fa-content(\10f145); } +.fad.#{$fa-css-prefix}-ticket-alt:after { content: fa-content(\10f3ff); } +.fad.#{$fa-css-prefix}-tilde:after { content: fa-content(\10f69f); } +.fad.#{$fa-css-prefix}-times:after { content: fa-content(\10f00d); } +.fad.#{$fa-css-prefix}-times-circle:after { content: fa-content(\10f057); } +.fad.#{$fa-css-prefix}-times-hexagon:after { content: fa-content(\10f2ee); } +.fad.#{$fa-css-prefix}-times-octagon:after { content: fa-content(\10f2f0); } +.fad.#{$fa-css-prefix}-times-square:after { content: fa-content(\10f2d3); } +.fad.#{$fa-css-prefix}-tint:after { content: fa-content(\10f043); } +.fad.#{$fa-css-prefix}-tint-slash:after { content: fa-content(\10f5c7); } +.fad.#{$fa-css-prefix}-tire:after { content: fa-content(\10f631); } +.fad.#{$fa-css-prefix}-tire-flat:after { content: fa-content(\10f632); } +.fad.#{$fa-css-prefix}-tire-pressure-warning:after { content: fa-content(\10f633); } +.fad.#{$fa-css-prefix}-tire-rugged:after { content: fa-content(\10f634); } +.fad.#{$fa-css-prefix}-tired:after { content: fa-content(\10f5c8); } +.fad.#{$fa-css-prefix}-toggle-off:after { content: fa-content(\10f204); } +.fad.#{$fa-css-prefix}-toggle-on:after { content: fa-content(\10f205); } +.fad.#{$fa-css-prefix}-toilet:after { content: fa-content(\10f7d8); } +.fad.#{$fa-css-prefix}-toilet-paper:after { content: fa-content(\10f71e); } +.fad.#{$fa-css-prefix}-toilet-paper-alt:after { content: fa-content(\10f71f); } +.fad.#{$fa-css-prefix}-toilet-paper-slash:after { content: fa-content(\10e072); } +.fad.#{$fa-css-prefix}-tombstone:after { content: fa-content(\10f720); } +.fad.#{$fa-css-prefix}-tombstone-alt:after { content: fa-content(\10f721); } +.fad.#{$fa-css-prefix}-toolbox:after { content: fa-content(\10f552); } +.fad.#{$fa-css-prefix}-tools:after { content: fa-content(\10f7d9); } +.fad.#{$fa-css-prefix}-tooth:after { content: fa-content(\10f5c9); } +.fad.#{$fa-css-prefix}-toothbrush:after { content: fa-content(\10f635); } +.fad.#{$fa-css-prefix}-torah:after { content: fa-content(\10f6a0); } +.fad.#{$fa-css-prefix}-torii-gate:after { content: fa-content(\10f6a1); } +.fad.#{$fa-css-prefix}-tornado:after { content: fa-content(\10f76f); } +.fad.#{$fa-css-prefix}-tractor:after { content: fa-content(\10f722); } +.fad.#{$fa-css-prefix}-trademark:after { content: fa-content(\10f25c); } +.fad.#{$fa-css-prefix}-traffic-cone:after { content: fa-content(\10f636); } +.fad.#{$fa-css-prefix}-traffic-light:after { content: fa-content(\10f637); } +.fad.#{$fa-css-prefix}-traffic-light-go:after { content: fa-content(\10f638); } +.fad.#{$fa-css-prefix}-traffic-light-slow:after { content: fa-content(\10f639); } +.fad.#{$fa-css-prefix}-traffic-light-stop:after { content: fa-content(\10f63a); } +.fad.#{$fa-css-prefix}-trailer:after { content: fa-content(\10e041); } +.fad.#{$fa-css-prefix}-train:after { content: fa-content(\10f238); } +.fad.#{$fa-css-prefix}-tram:after { content: fa-content(\10f7da); } +.fad.#{$fa-css-prefix}-transgender:after { content: fa-content(\10f224); } +.fad.#{$fa-css-prefix}-transgender-alt:after { content: fa-content(\10f225); } +.fad.#{$fa-css-prefix}-transporter:after { content: fa-content(\10e042); } +.fad.#{$fa-css-prefix}-transporter-1:after { content: fa-content(\10e043); } +.fad.#{$fa-css-prefix}-transporter-2:after { content: fa-content(\10e044); } +.fad.#{$fa-css-prefix}-transporter-3:after { content: fa-content(\10e045); } +.fad.#{$fa-css-prefix}-transporter-empty:after { content: fa-content(\10e046); } +.fad.#{$fa-css-prefix}-trash:after { content: fa-content(\10f1f8); } +.fad.#{$fa-css-prefix}-trash-alt:after { content: fa-content(\10f2ed); } +.fad.#{$fa-css-prefix}-trash-restore:after { content: fa-content(\10f829); } +.fad.#{$fa-css-prefix}-trash-restore-alt:after { content: fa-content(\10f82a); } +.fad.#{$fa-css-prefix}-trash-undo:after { content: fa-content(\10f895); } +.fad.#{$fa-css-prefix}-trash-undo-alt:after { content: fa-content(\10f896); } +.fad.#{$fa-css-prefix}-treasure-chest:after { content: fa-content(\10f723); } +.fad.#{$fa-css-prefix}-tree:after { content: fa-content(\10f1bb); } +.fad.#{$fa-css-prefix}-tree-alt:after { content: fa-content(\10f400); } +.fad.#{$fa-css-prefix}-tree-christmas:after { content: fa-content(\10f7db); } +.fad.#{$fa-css-prefix}-tree-decorated:after { content: fa-content(\10f7dc); } +.fad.#{$fa-css-prefix}-tree-large:after { content: fa-content(\10f7dd); } +.fad.#{$fa-css-prefix}-tree-palm:after { content: fa-content(\10f82b); } +.fad.#{$fa-css-prefix}-trees:after { content: fa-content(\10f724); } +.fad.#{$fa-css-prefix}-triangle:after { content: fa-content(\10f2ec); } +.fad.#{$fa-css-prefix}-triangle-music:after { content: fa-content(\10f8e2); } +.fad.#{$fa-css-prefix}-trophy:after { content: fa-content(\10f091); } +.fad.#{$fa-css-prefix}-trophy-alt:after { content: fa-content(\10f2eb); } +.fad.#{$fa-css-prefix}-truck:after { content: fa-content(\10f0d1); } +.fad.#{$fa-css-prefix}-truck-container:after { content: fa-content(\10f4dc); } +.fad.#{$fa-css-prefix}-truck-couch:after { content: fa-content(\10f4dd); } +.fad.#{$fa-css-prefix}-truck-loading:after { content: fa-content(\10f4de); } +.fad.#{$fa-css-prefix}-truck-monster:after { content: fa-content(\10f63b); } +.fad.#{$fa-css-prefix}-truck-moving:after { content: fa-content(\10f4df); } +.fad.#{$fa-css-prefix}-truck-pickup:after { content: fa-content(\10f63c); } +.fad.#{$fa-css-prefix}-truck-plow:after { content: fa-content(\10f7de); } +.fad.#{$fa-css-prefix}-truck-ramp:after { content: fa-content(\10f4e0); } +.fad.#{$fa-css-prefix}-trumpet:after { content: fa-content(\10f8e3); } +.fad.#{$fa-css-prefix}-tshirt:after { content: fa-content(\10f553); } +.fad.#{$fa-css-prefix}-tty:after { content: fa-content(\10f1e4); } +.fad.#{$fa-css-prefix}-turkey:after { content: fa-content(\10f725); } +.fad.#{$fa-css-prefix}-turntable:after { content: fa-content(\10f8e4); } +.fad.#{$fa-css-prefix}-turtle:after { content: fa-content(\10f726); } +.fad.#{$fa-css-prefix}-tv:after { content: fa-content(\10f26c); } +.fad.#{$fa-css-prefix}-tv-alt:after { content: fa-content(\10f8e5); } +.fad.#{$fa-css-prefix}-tv-music:after { content: fa-content(\10f8e6); } +.fad.#{$fa-css-prefix}-tv-retro:after { content: fa-content(\10f401); } +.fad.#{$fa-css-prefix}-typewriter:after { content: fa-content(\10f8e7); } +.fad.#{$fa-css-prefix}-ufo:after { content: fa-content(\10e047); } +.fad.#{$fa-css-prefix}-ufo-beam:after { content: fa-content(\10e048); } +.fad.#{$fa-css-prefix}-umbrella:after { content: fa-content(\10f0e9); } +.fad.#{$fa-css-prefix}-umbrella-beach:after { content: fa-content(\10f5ca); } +.fad.#{$fa-css-prefix}-underline:after { content: fa-content(\10f0cd); } +.fad.#{$fa-css-prefix}-undo:after { content: fa-content(\10f0e2); } +.fad.#{$fa-css-prefix}-undo-alt:after { content: fa-content(\10f2ea); } +.fad.#{$fa-css-prefix}-unicorn:after { content: fa-content(\10f727); } +.fad.#{$fa-css-prefix}-union:after { content: fa-content(\10f6a2); } +.fad.#{$fa-css-prefix}-universal-access:after { content: fa-content(\10f29a); } +.fad.#{$fa-css-prefix}-university:after { content: fa-content(\10f19c); } +.fad.#{$fa-css-prefix}-unlink:after { content: fa-content(\10f127); } +.fad.#{$fa-css-prefix}-unlock:after { content: fa-content(\10f09c); } +.fad.#{$fa-css-prefix}-unlock-alt:after { content: fa-content(\10f13e); } +.fad.#{$fa-css-prefix}-upload:after { content: fa-content(\10f093); } +.fad.#{$fa-css-prefix}-usb-drive:after { content: fa-content(\10f8e9); } +.fad.#{$fa-css-prefix}-usd-circle:after { content: fa-content(\10f2e8); } +.fad.#{$fa-css-prefix}-usd-square:after { content: fa-content(\10f2e9); } +.fad.#{$fa-css-prefix}-user:after { content: fa-content(\10f007); } +.fad.#{$fa-css-prefix}-user-alien:after { content: fa-content(\10e04a); } +.fad.#{$fa-css-prefix}-user-alt:after { content: fa-content(\10f406); } +.fad.#{$fa-css-prefix}-user-alt-slash:after { content: fa-content(\10f4fa); } +.fad.#{$fa-css-prefix}-user-astronaut:after { content: fa-content(\10f4fb); } +.fad.#{$fa-css-prefix}-user-chart:after { content: fa-content(\10f6a3); } +.fad.#{$fa-css-prefix}-user-check:after { content: fa-content(\10f4fc); } +.fad.#{$fa-css-prefix}-user-circle:after { content: fa-content(\10f2bd); } +.fad.#{$fa-css-prefix}-user-clock:after { content: fa-content(\10f4fd); } +.fad.#{$fa-css-prefix}-user-cog:after { content: fa-content(\10f4fe); } +.fad.#{$fa-css-prefix}-user-cowboy:after { content: fa-content(\10f8ea); } +.fad.#{$fa-css-prefix}-user-crown:after { content: fa-content(\10f6a4); } +.fad.#{$fa-css-prefix}-user-edit:after { content: fa-content(\10f4ff); } +.fad.#{$fa-css-prefix}-user-friends:after { content: fa-content(\10f500); } +.fad.#{$fa-css-prefix}-user-graduate:after { content: fa-content(\10f501); } +.fad.#{$fa-css-prefix}-user-hard-hat:after { content: fa-content(\10f82c); } +.fad.#{$fa-css-prefix}-user-headset:after { content: fa-content(\10f82d); } +.fad.#{$fa-css-prefix}-user-injured:after { content: fa-content(\10f728); } +.fad.#{$fa-css-prefix}-user-lock:after { content: fa-content(\10f502); } +.fad.#{$fa-css-prefix}-user-md:after { content: fa-content(\10f0f0); } +.fad.#{$fa-css-prefix}-user-md-chat:after { content: fa-content(\10f82e); } +.fad.#{$fa-css-prefix}-user-minus:after { content: fa-content(\10f503); } +.fad.#{$fa-css-prefix}-user-music:after { content: fa-content(\10f8eb); } +.fad.#{$fa-css-prefix}-user-ninja:after { content: fa-content(\10f504); } +.fad.#{$fa-css-prefix}-user-nurse:after { content: fa-content(\10f82f); } +.fad.#{$fa-css-prefix}-user-plus:after { content: fa-content(\10f234); } +.fad.#{$fa-css-prefix}-user-robot:after { content: fa-content(\10e04b); } +.fad.#{$fa-css-prefix}-user-secret:after { content: fa-content(\10f21b); } +.fad.#{$fa-css-prefix}-user-shield:after { content: fa-content(\10f505); } +.fad.#{$fa-css-prefix}-user-slash:after { content: fa-content(\10f506); } +.fad.#{$fa-css-prefix}-user-tag:after { content: fa-content(\10f507); } +.fad.#{$fa-css-prefix}-user-tie:after { content: fa-content(\10f508); } +.fad.#{$fa-css-prefix}-user-times:after { content: fa-content(\10f235); } +.fad.#{$fa-css-prefix}-user-unlock:after { content: fa-content(\10e058); } +.fad.#{$fa-css-prefix}-user-visor:after { content: fa-content(\10e04c); } +.fad.#{$fa-css-prefix}-users:after { content: fa-content(\10f0c0); } +.fad.#{$fa-css-prefix}-users-class:after { content: fa-content(\10f63d); } +.fad.#{$fa-css-prefix}-users-cog:after { content: fa-content(\10f509); } +.fad.#{$fa-css-prefix}-users-crown:after { content: fa-content(\10f6a5); } +.fad.#{$fa-css-prefix}-users-medical:after { content: fa-content(\10f830); } +.fad.#{$fa-css-prefix}-users-slash:after { content: fa-content(\10e073); } +.fad.#{$fa-css-prefix}-utensil-fork:after { content: fa-content(\10f2e3); } +.fad.#{$fa-css-prefix}-utensil-knife:after { content: fa-content(\10f2e4); } +.fad.#{$fa-css-prefix}-utensil-spoon:after { content: fa-content(\10f2e5); } +.fad.#{$fa-css-prefix}-utensils:after { content: fa-content(\10f2e7); } +.fad.#{$fa-css-prefix}-utensils-alt:after { content: fa-content(\10f2e6); } +.fad.#{$fa-css-prefix}-vacuum:after { content: fa-content(\10e04d); } +.fad.#{$fa-css-prefix}-vacuum-robot:after { content: fa-content(\10e04e); } +.fad.#{$fa-css-prefix}-value-absolute:after { content: fa-content(\10f6a6); } +.fad.#{$fa-css-prefix}-vector-square:after { content: fa-content(\10f5cb); } +.fad.#{$fa-css-prefix}-venus:after { content: fa-content(\10f221); } +.fad.#{$fa-css-prefix}-venus-double:after { content: fa-content(\10f226); } +.fad.#{$fa-css-prefix}-venus-mars:after { content: fa-content(\10f228); } +.fad.#{$fa-css-prefix}-vest:after { content: fa-content(\10e085); } +.fad.#{$fa-css-prefix}-vest-patches:after { content: fa-content(\10e086); } +.fad.#{$fa-css-prefix}-vhs:after { content: fa-content(\10f8ec); } +.fad.#{$fa-css-prefix}-vial:after { content: fa-content(\10f492); } +.fad.#{$fa-css-prefix}-vials:after { content: fa-content(\10f493); } +.fad.#{$fa-css-prefix}-video:after { content: fa-content(\10f03d); } +.fad.#{$fa-css-prefix}-video-plus:after { content: fa-content(\10f4e1); } +.fad.#{$fa-css-prefix}-video-slash:after { content: fa-content(\10f4e2); } +.fad.#{$fa-css-prefix}-vihara:after { content: fa-content(\10f6a7); } +.fad.#{$fa-css-prefix}-violin:after { content: fa-content(\10f8ed); } +.fad.#{$fa-css-prefix}-virus:after { content: fa-content(\10e074); } +.fad.#{$fa-css-prefix}-virus-slash:after { content: fa-content(\10e075); } +.fad.#{$fa-css-prefix}-viruses:after { content: fa-content(\10e076); } +.fad.#{$fa-css-prefix}-voicemail:after { content: fa-content(\10f897); } +.fad.#{$fa-css-prefix}-volcano:after { content: fa-content(\10f770); } +.fad.#{$fa-css-prefix}-volleyball-ball:after { content: fa-content(\10f45f); } +.fad.#{$fa-css-prefix}-volume:after { content: fa-content(\10f6a8); } +.fad.#{$fa-css-prefix}-volume-down:after { content: fa-content(\10f027); } +.fad.#{$fa-css-prefix}-volume-mute:after { content: fa-content(\10f6a9); } +.fad.#{$fa-css-prefix}-volume-off:after { content: fa-content(\10f026); } +.fad.#{$fa-css-prefix}-volume-slash:after { content: fa-content(\10f2e2); } +.fad.#{$fa-css-prefix}-volume-up:after { content: fa-content(\10f028); } +.fad.#{$fa-css-prefix}-vote-nay:after { content: fa-content(\10f771); } +.fad.#{$fa-css-prefix}-vote-yea:after { content: fa-content(\10f772); } +.fad.#{$fa-css-prefix}-vr-cardboard:after { content: fa-content(\10f729); } +.fad.#{$fa-css-prefix}-wagon-covered:after { content: fa-content(\10f8ee); } +.fad.#{$fa-css-prefix}-walker:after { content: fa-content(\10f831); } +.fad.#{$fa-css-prefix}-walkie-talkie:after { content: fa-content(\10f8ef); } +.fad.#{$fa-css-prefix}-walking:after { content: fa-content(\10f554); } +.fad.#{$fa-css-prefix}-wallet:after { content: fa-content(\10f555); } +.fad.#{$fa-css-prefix}-wand:after { content: fa-content(\10f72a); } +.fad.#{$fa-css-prefix}-wand-magic:after { content: fa-content(\10f72b); } +.fad.#{$fa-css-prefix}-warehouse:after { content: fa-content(\10f494); } +.fad.#{$fa-css-prefix}-warehouse-alt:after { content: fa-content(\10f495); } +.fad.#{$fa-css-prefix}-washer:after { content: fa-content(\10f898); } +.fad.#{$fa-css-prefix}-watch:after { content: fa-content(\10f2e1); } +.fad.#{$fa-css-prefix}-watch-calculator:after { content: fa-content(\10f8f0); } +.fad.#{$fa-css-prefix}-watch-fitness:after { content: fa-content(\10f63e); } +.fad.#{$fa-css-prefix}-water:after { content: fa-content(\10f773); } +.fad.#{$fa-css-prefix}-water-lower:after { content: fa-content(\10f774); } +.fad.#{$fa-css-prefix}-water-rise:after { content: fa-content(\10f775); } +.fad.#{$fa-css-prefix}-wave-sine:after { content: fa-content(\10f899); } +.fad.#{$fa-css-prefix}-wave-square:after { content: fa-content(\10f83e); } +.fad.#{$fa-css-prefix}-wave-triangle:after { content: fa-content(\10f89a); } +.fad.#{$fa-css-prefix}-waveform:after { content: fa-content(\10f8f1); } +.fad.#{$fa-css-prefix}-waveform-path:after { content: fa-content(\10f8f2); } +.fad.#{$fa-css-prefix}-webcam:after { content: fa-content(\10f832); } +.fad.#{$fa-css-prefix}-webcam-slash:after { content: fa-content(\10f833); } +.fad.#{$fa-css-prefix}-weight:after { content: fa-content(\10f496); } +.fad.#{$fa-css-prefix}-weight-hanging:after { content: fa-content(\10f5cd); } +.fad.#{$fa-css-prefix}-whale:after { content: fa-content(\10f72c); } +.fad.#{$fa-css-prefix}-wheat:after { content: fa-content(\10f72d); } +.fad.#{$fa-css-prefix}-wheelchair:after { content: fa-content(\10f193); } +.fad.#{$fa-css-prefix}-whistle:after { content: fa-content(\10f460); } +.fad.#{$fa-css-prefix}-wifi:after { content: fa-content(\10f1eb); } +.fad.#{$fa-css-prefix}-wifi-1:after { content: fa-content(\10f6aa); } +.fad.#{$fa-css-prefix}-wifi-2:after { content: fa-content(\10f6ab); } +.fad.#{$fa-css-prefix}-wifi-slash:after { content: fa-content(\10f6ac); } +.fad.#{$fa-css-prefix}-wind:after { content: fa-content(\10f72e); } +.fad.#{$fa-css-prefix}-wind-turbine:after { content: fa-content(\10f89b); } +.fad.#{$fa-css-prefix}-wind-warning:after { content: fa-content(\10f776); } +.fad.#{$fa-css-prefix}-window:after { content: fa-content(\10f40e); } +.fad.#{$fa-css-prefix}-window-alt:after { content: fa-content(\10f40f); } +.fad.#{$fa-css-prefix}-window-close:after { content: fa-content(\10f410); } +.fad.#{$fa-css-prefix}-window-frame:after { content: fa-content(\10e04f); } +.fad.#{$fa-css-prefix}-window-frame-open:after { content: fa-content(\10e050); } +.fad.#{$fa-css-prefix}-window-maximize:after { content: fa-content(\10f2d0); } +.fad.#{$fa-css-prefix}-window-minimize:after { content: fa-content(\10f2d1); } +.fad.#{$fa-css-prefix}-window-restore:after { content: fa-content(\10f2d2); } +.fad.#{$fa-css-prefix}-windsock:after { content: fa-content(\10f777); } +.fad.#{$fa-css-prefix}-wine-bottle:after { content: fa-content(\10f72f); } +.fad.#{$fa-css-prefix}-wine-glass:after { content: fa-content(\10f4e3); } +.fad.#{$fa-css-prefix}-wine-glass-alt:after { content: fa-content(\10f5ce); } +.fad.#{$fa-css-prefix}-won-sign:after { content: fa-content(\10f159); } +.fad.#{$fa-css-prefix}-wreath:after { content: fa-content(\10f7e2); } +.fad.#{$fa-css-prefix}-wrench:after { content: fa-content(\10f0ad); } +.fad.#{$fa-css-prefix}-x-ray:after { content: fa-content(\10f497); } +.fad.#{$fa-css-prefix}-yen-sign:after { content: fa-content(\10f157); } +.fad.#{$fa-css-prefix}-yin-yang:after { content: fa-content(\10f6ad); } diff --git a/dev/src/assets/css/fontawesome/fontawesome.scss b/dev/src/assets/css/fontawesome/fontawesome.scss new file mode 100644 index 000000000..9e55c7be9 --- /dev/null +++ b/dev/src/assets/css/fontawesome/fontawesome.scss @@ -0,0 +1,22 @@ +/*! + * Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Commercial License) + */ +@import 'variables'; +@import 'mixins'; +@import 'core'; +@import 'larger'; +@import 'fixed-width'; +@import 'list'; +@import 'bordered-pulled'; +@import 'animated'; +@import 'rotated-flipped'; +@import 'stacked'; +@import 'icons'; +@import 'screen-reader'; + +@import "brands"; +@import 'light'; +@import 'regular'; +@import 'solid'; +@import 'duotone'; diff --git a/dev/src/assets/css/fontawesome/index.php b/dev/src/assets/css/fontawesome/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/assets/css/fontawesome/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/assets/css/fontawesome/light.scss b/dev/src/assets/css/fontawesome/light.scss new file mode 100644 index 000000000..6da73e1ea --- /dev/null +++ b/dev/src/assets/css/fontawesome/light.scss @@ -0,0 +1,23 @@ +/*! + * Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Commercial License) + */ +@import 'variables'; + +@font-face { + font-family: 'Font Awesome 5 Pro'; + font-style: normal; + font-weight: 300; + font-display: $fa-font-display; + src: url('#{$fa-font-path}/fa-light-300.eot'); + src: url('#{$fa-font-path}/fa-light-300.eot?#iefix') format('embedded-opentype'), + url('#{$fa-font-path}/fa-light-300.woff2') format('woff2'), + url('#{$fa-font-path}/fa-light-300.woff') format('woff'), + url('#{$fa-font-path}/fa-light-300.ttf') format('truetype'), + url('#{$fa-font-path}/fa-light-300.svg#fontawesome') format('svg'); +} + +.fal { + font-family: 'Font Awesome 5 Pro'; + font-weight: 300; +} diff --git a/dev/src/assets/css/fontawesome/regular.scss b/dev/src/assets/css/fontawesome/regular.scss new file mode 100644 index 000000000..cfb2d6d15 --- /dev/null +++ b/dev/src/assets/css/fontawesome/regular.scss @@ -0,0 +1,23 @@ +/*! + * Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Commercial License) + */ +@import 'variables'; + +@font-face { + font-family: 'Font Awesome 5 Pro'; + font-style: normal; + font-weight: 400; + font-display: $fa-font-display; + src: url('#{$fa-font-path}/fa-regular-400.eot'); + src: url('#{$fa-font-path}/fa-regular-400.eot?#iefix') format('embedded-opentype'), + url('#{$fa-font-path}/fa-regular-400.woff2') format('woff2'), + url('#{$fa-font-path}/fa-regular-400.woff') format('woff'), + url('#{$fa-font-path}/fa-regular-400.ttf') format('truetype'), + url('#{$fa-font-path}/fa-regular-400.svg#fontawesome') format('svg'); +} + +.far { + font-family: 'Font Awesome 5 Pro'; + font-weight: 400; +} diff --git a/dev/src/assets/css/fontawesome/solid.scss b/dev/src/assets/css/fontawesome/solid.scss new file mode 100644 index 000000000..49c4bded5 --- /dev/null +++ b/dev/src/assets/css/fontawesome/solid.scss @@ -0,0 +1,24 @@ +/*! + * Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Commercial License) + */ +@import 'variables'; + +@font-face { + font-family: 'Font Awesome 5 Pro'; + font-style: normal; + font-weight: 900; + font-display: $fa-font-display; + src: url('#{$fa-font-path}/fa-solid-900.eot'); + src: url('#{$fa-font-path}/fa-solid-900.eot?#iefix') format('embedded-opentype'), + url('#{$fa-font-path}/fa-solid-900.woff2') format('woff2'), + url('#{$fa-font-path}/fa-solid-900.woff') format('woff'), + url('#{$fa-font-path}/fa-solid-900.ttf') format('truetype'), + url('#{$fa-font-path}/fa-solid-900.svg#fontawesome') format('svg'); +} + +.fa, +.fas { + font-family: 'Font Awesome 5 Pro'; + font-weight: 900; +} diff --git a/dev/src/assets/css/fontawesome/v4-shims.scss b/dev/src/assets/css/fontawesome/v4-shims.scss new file mode 100644 index 000000000..fb4e29cbd --- /dev/null +++ b/dev/src/assets/css/fontawesome/v4-shims.scss @@ -0,0 +1,6 @@ +/*! + * Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Commercial License) + */ +@import 'variables'; +@import 'shims'; diff --git a/dev/src/assets/css/import/custom_xs.scss b/dev/src/assets/css/import/custom_xs.scss new file mode 100644 index 000000000..aaf9fa1f0 --- /dev/null +++ b/dev/src/assets/css/import/custom_xs.scss @@ -0,0 +1,3 @@ +h2.h2-title{ + margin: 0; +} \ No newline at end of file diff --git a/dev/src/assets/css/import/index.php b/dev/src/assets/css/import/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/assets/css/import/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/assets/css/index.php b/dev/src/assets/css/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/assets/css/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/assets/css/tailwind.scss b/dev/src/assets/css/tailwind.scss new file mode 100644 index 000000000..241b7c7f9 --- /dev/null +++ b/dev/src/assets/css/tailwind.scss @@ -0,0 +1,11 @@ +@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap'); + +@import "fontawesome/fontawesome.scss"; + +@tailwind base; +@tailwind components; +@tailwind utilities; + +@import "toastr"; + +@import 'import/custom_xs.scss'; diff --git a/dev/src/assets/fonts/fa-brands-400.eot b/dev/src/assets/fonts/fa-brands-400.eot new file mode 100644 index 000000000..1ee7a5648 Binary files /dev/null and b/dev/src/assets/fonts/fa-brands-400.eot differ diff --git a/dev/src/assets/fonts/fa-brands-400.svg b/dev/src/assets/fonts/fa-brands-400.svg new file mode 100644 index 000000000..134515174 --- /dev/null +++ b/dev/src/assets/fonts/fa-brands-400.svg @@ -0,0 +1,3717 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:24:13 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/src/assets/fonts/fa-brands-400.ttf b/dev/src/assets/fonts/fa-brands-400.ttf new file mode 100644 index 000000000..032f907e2 Binary files /dev/null and b/dev/src/assets/fonts/fa-brands-400.ttf differ diff --git a/dev/src/assets/fonts/fa-brands-400.woff b/dev/src/assets/fonts/fa-brands-400.woff new file mode 100644 index 000000000..e6a44f83e Binary files /dev/null and b/dev/src/assets/fonts/fa-brands-400.woff differ diff --git a/dev/src/assets/fonts/fa-brands-400.woff2 b/dev/src/assets/fonts/fa-brands-400.woff2 new file mode 100644 index 000000000..c851402da Binary files /dev/null and b/dev/src/assets/fonts/fa-brands-400.woff2 differ diff --git a/dev/src/assets/fonts/fa-duotone-900.eot b/dev/src/assets/fonts/fa-duotone-900.eot new file mode 100644 index 000000000..b4a9aa8b2 Binary files /dev/null and b/dev/src/assets/fonts/fa-duotone-900.eot differ diff --git a/dev/src/assets/fonts/fa-duotone-900.svg b/dev/src/assets/fonts/fa-duotone-900.svg new file mode 100644 index 000000000..231438e4e --- /dev/null +++ b/dev/src/assets/fonts/fa-duotone-900.svg @@ -0,0 +1,15328 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:24:16 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/src/assets/fonts/fa-duotone-900.ttf b/dev/src/assets/fonts/fa-duotone-900.ttf new file mode 100644 index 000000000..bc8c92bec Binary files /dev/null and b/dev/src/assets/fonts/fa-duotone-900.ttf differ diff --git a/dev/src/assets/fonts/fa-duotone-900.woff b/dev/src/assets/fonts/fa-duotone-900.woff new file mode 100644 index 000000000..09cc0ba54 Binary files /dev/null and b/dev/src/assets/fonts/fa-duotone-900.woff differ diff --git a/dev/src/assets/fonts/fa-duotone-900.woff2 b/dev/src/assets/fonts/fa-duotone-900.woff2 new file mode 100644 index 000000000..ac0d45be6 Binary files /dev/null and b/dev/src/assets/fonts/fa-duotone-900.woff2 differ diff --git a/dev/src/assets/fonts/fa-light-300.eot b/dev/src/assets/fonts/fa-light-300.eot new file mode 100644 index 000000000..fd2cfc79a Binary files /dev/null and b/dev/src/assets/fonts/fa-light-300.eot differ diff --git a/dev/src/assets/fonts/fa-light-300.svg b/dev/src/assets/fonts/fa-light-300.svg new file mode 100644 index 000000000..666198f45 --- /dev/null +++ b/dev/src/assets/fonts/fa-light-300.svg @@ -0,0 +1,12423 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:24:17 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/src/assets/fonts/fa-light-300.ttf b/dev/src/assets/fonts/fa-light-300.ttf new file mode 100644 index 000000000..ea1f36c79 Binary files /dev/null and b/dev/src/assets/fonts/fa-light-300.ttf differ diff --git a/dev/src/assets/fonts/fa-light-300.woff b/dev/src/assets/fonts/fa-light-300.woff new file mode 100644 index 000000000..da6981a74 Binary files /dev/null and b/dev/src/assets/fonts/fa-light-300.woff differ diff --git a/dev/src/assets/fonts/fa-light-300.woff2 b/dev/src/assets/fonts/fa-light-300.woff2 new file mode 100644 index 000000000..fbdeaaa98 Binary files /dev/null and b/dev/src/assets/fonts/fa-light-300.woff2 differ diff --git a/dev/src/assets/fonts/fa-regular-400.eot b/dev/src/assets/fonts/fa-regular-400.eot new file mode 100644 index 000000000..c0bf92e98 Binary files /dev/null and b/dev/src/assets/fonts/fa-regular-400.eot differ diff --git a/dev/src/assets/fonts/fa-regular-400.svg b/dev/src/assets/fonts/fa-regular-400.svg new file mode 100644 index 000000000..71b2f7c44 --- /dev/null +++ b/dev/src/assets/fonts/fa-regular-400.svg @@ -0,0 +1,11323 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:24:14 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/src/assets/fonts/fa-regular-400.ttf b/dev/src/assets/fonts/fa-regular-400.ttf new file mode 100644 index 000000000..2d03c198b Binary files /dev/null and b/dev/src/assets/fonts/fa-regular-400.ttf differ diff --git a/dev/src/assets/fonts/fa-regular-400.woff b/dev/src/assets/fonts/fa-regular-400.woff new file mode 100644 index 000000000..012f42c6b Binary files /dev/null and b/dev/src/assets/fonts/fa-regular-400.woff differ diff --git a/dev/src/assets/fonts/fa-regular-400.woff2 b/dev/src/assets/fonts/fa-regular-400.woff2 new file mode 100644 index 000000000..70fc754f4 Binary files /dev/null and b/dev/src/assets/fonts/fa-regular-400.woff2 differ diff --git a/dev/src/assets/fonts/fa-solid-900.eot b/dev/src/assets/fonts/fa-solid-900.eot new file mode 100644 index 000000000..ddbd2a570 Binary files /dev/null and b/dev/src/assets/fonts/fa-solid-900.eot differ diff --git a/dev/src/assets/fonts/fa-solid-900.svg b/dev/src/assets/fonts/fa-solid-900.svg new file mode 100644 index 000000000..b068060b4 --- /dev/null +++ b/dev/src/assets/fonts/fa-solid-900.svg @@ -0,0 +1,9653 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:24:16 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/src/assets/fonts/fa-solid-900.ttf b/dev/src/assets/fonts/fa-solid-900.ttf new file mode 100644 index 000000000..e6330e6aa Binary files /dev/null and b/dev/src/assets/fonts/fa-solid-900.ttf differ diff --git a/dev/src/assets/fonts/fa-solid-900.woff b/dev/src/assets/fonts/fa-solid-900.woff new file mode 100644 index 000000000..45f5cd54c Binary files /dev/null and b/dev/src/assets/fonts/fa-solid-900.woff differ diff --git a/dev/src/assets/fonts/fa-solid-900.woff2 b/dev/src/assets/fonts/fa-solid-900.woff2 new file mode 100644 index 000000000..dff46edd0 Binary files /dev/null and b/dev/src/assets/fonts/fa-solid-900.woff2 differ diff --git a/dev/src/assets/fonts/index.php b/dev/src/assets/fonts/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/assets/fonts/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/assets/index.php b/dev/src/assets/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/assets/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/bootstrap.ts b/dev/src/bootstrap.ts new file mode 100644 index 000000000..e024f8497 --- /dev/null +++ b/dev/src/bootstrap.ts @@ -0,0 +1,15 @@ +import _ from 'lodash'; +window._ = _; + +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ +declare global { + interface Window { axios: any; } +} +import axios from 'axios'; + +window.axios = axios; +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; \ No newline at end of file diff --git a/dev/src/components/CountrySelect.vue b/dev/src/components/CountrySelect.vue new file mode 100644 index 000000000..0dd288223 --- /dev/null +++ b/dev/src/components/CountrySelect.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/dev/src/components/LanguageSelector.vue b/dev/src/components/LanguageSelector.vue new file mode 100644 index 000000000..19f0f8407 --- /dev/null +++ b/dev/src/components/LanguageSelector.vue @@ -0,0 +1,60 @@ + + + diff --git a/dev/src/components/Loading.vue b/dev/src/components/Loading.vue new file mode 100644 index 000000000..b03db7a74 --- /dev/null +++ b/dev/src/components/Loading.vue @@ -0,0 +1,27 @@ + + + diff --git a/dev/src/components/Menu.vue b/dev/src/components/Menu.vue new file mode 100644 index 000000000..da3d1a285 --- /dev/null +++ b/dev/src/components/Menu.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/dev/src/components/PaymentMethodBlock.vue b/dev/src/components/PaymentMethodBlock.vue new file mode 100644 index 000000000..b0d2ac41c --- /dev/null +++ b/dev/src/components/PaymentMethodBlock.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/dev/src/components/VerificationMethodBlock.vue b/dev/src/components/VerificationMethodBlock.vue new file mode 100644 index 000000000..eafc8bb15 --- /dev/null +++ b/dev/src/components/VerificationMethodBlock.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/dev/src/components/fields/ActiveCreditcards.vue b/dev/src/components/fields/ActiveCreditcards.vue new file mode 100644 index 000000000..c1c7bbf36 --- /dev/null +++ b/dev/src/components/fields/ActiveCreditcards.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/dev/src/components/fields/ToggleField.vue b/dev/src/components/fields/ToggleField.vue new file mode 100644 index 000000000..1373ce873 --- /dev/null +++ b/dev/src/components/fields/ToggleField.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/dev/src/components/fields/index.php b/dev/src/components/fields/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/components/fields/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/components/index.php b/dev/src/components/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/components/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/components/payments/AfterpayPaymentConfig.vue b/dev/src/components/payments/AfterpayPaymentConfig.vue new file mode 100644 index 000000000..f826d3881 --- /dev/null +++ b/dev/src/components/payments/AfterpayPaymentConfig.vue @@ -0,0 +1,90 @@ + + + diff --git a/dev/src/components/payments/BancontactPaymentConfig.vue b/dev/src/components/payments/BancontactPaymentConfig.vue new file mode 100644 index 000000000..01a6944b7 --- /dev/null +++ b/dev/src/components/payments/BancontactPaymentConfig.vue @@ -0,0 +1,31 @@ + + + diff --git a/dev/src/components/payments/BillinkPaymentConfig.vue b/dev/src/components/payments/BillinkPaymentConfig.vue new file mode 100644 index 000000000..64610de43 --- /dev/null +++ b/dev/src/components/payments/BillinkPaymentConfig.vue @@ -0,0 +1,92 @@ + + + diff --git a/dev/src/components/payments/CreditCardPaymentConfig.vue b/dev/src/components/payments/CreditCardPaymentConfig.vue new file mode 100644 index 000000000..08293a49d --- /dev/null +++ b/dev/src/components/payments/CreditCardPaymentConfig.vue @@ -0,0 +1,49 @@ + + + diff --git a/dev/src/components/payments/DefaultPaymentConfig.vue b/dev/src/components/payments/DefaultPaymentConfig.vue new file mode 100644 index 000000000..976564188 --- /dev/null +++ b/dev/src/components/payments/DefaultPaymentConfig.vue @@ -0,0 +1,296 @@ + + + + + diff --git a/dev/src/components/payments/IdealPaymentConfig.vue b/dev/src/components/payments/IdealPaymentConfig.vue new file mode 100644 index 000000000..0556d9925 --- /dev/null +++ b/dev/src/components/payments/IdealPaymentConfig.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/dev/src/components/payments/In3PaymentConfig.vue b/dev/src/components/payments/In3PaymentConfig.vue new file mode 100644 index 000000000..32f71b1cb --- /dev/null +++ b/dev/src/components/payments/In3PaymentConfig.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/dev/src/components/payments/PayByBankPaymentConfig.vue b/dev/src/components/payments/PayByBankPaymentConfig.vue new file mode 100644 index 000000000..a1e198f5a --- /dev/null +++ b/dev/src/components/payments/PayByBankPaymentConfig.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/dev/src/components/payments/PayPalPaymentConfig.vue b/dev/src/components/payments/PayPalPaymentConfig.vue new file mode 100644 index 000000000..05ffa2747 --- /dev/null +++ b/dev/src/components/payments/PayPalPaymentConfig.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/dev/src/components/payments/PayPerEmailPaymentConfig.vue b/dev/src/components/payments/PayPerEmailPaymentConfig.vue new file mode 100644 index 000000000..bb5a4bb84 --- /dev/null +++ b/dev/src/components/payments/PayPerEmailPaymentConfig.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/dev/src/components/payments/TransferPaymentConfig.vue b/dev/src/components/payments/TransferPaymentConfig.vue new file mode 100644 index 000000000..2f352dc17 --- /dev/null +++ b/dev/src/components/payments/TransferPaymentConfig.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/dev/src/components/payments/index.php b/dev/src/components/payments/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/components/payments/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/components/verifications/DefaultVerificationConfig.vue b/dev/src/components/verifications/DefaultVerificationConfig.vue new file mode 100644 index 000000000..64af51390 --- /dev/null +++ b/dev/src/components/verifications/DefaultVerificationConfig.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/dev/src/components/verifications/index.php b/dev/src/components/verifications/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/components/verifications/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/fos_js_routes.json b/dev/src/fos_js_routes.json new file mode 100644 index 000000000..4ad6abda9 --- /dev/null +++ b/dev/src/fos_js_routes.json @@ -0,0 +1 @@ +{"base_url":"","routes":{"admin_common_notifications":{"tokens":[["text","\/common\/notifications"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_product_form":{"tokens":[["variable","\/","\\d+","id"],["text","\/sell\/catalog\/products"]],"defaults":[],"requirements":{"id":"\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_feature_get_feature_values":{"tokens":[["variable","\/","\\d+","idFeature"],["text","\/sell\/catalog\/products\/features"]],"defaults":{"idFeature":0},"requirements":{"idFeature":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations":{"tokens":[["text","\/combinations"],["variable","\/","[^\/]++","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations_ids":{"tokens":[["text","\/combinations\/ids"],["variable","\/","[^\/]++","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations_update_combination_from_listing":{"tokens":[["text","\/update-combination-from-listing"],["variable","\/","[^\/]++","productId"],["text","\/sell\/catalog\/products-v2\/combinations"]],"defaults":[],"requirements":{"combinationId":"\\d+"},"hosttokens":[],"methods":["PATCH"],"schemes":[]},"admin_products_combinations_edit_combination":{"tokens":[["text","\/edit"],["variable","\/","\\d+","combinationId"],["text","\/sell\/catalog\/products-v2\/combinations"]],"defaults":[],"requirements":{"combinationId":"\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_products_combinations_bulk_edit_combination":{"tokens":[["text","\/combinations\/bulk-edit"],["variable","\/","\\d+","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["PATCH"],"schemes":[]},"admin_products_combinations_delete_combination":{"tokens":[["text","\/delete"],["variable","\/","\\d+","combinationId"],["text","\/sell\/catalog\/products-v2\/combinations"]],"defaults":[],"requirements":{"combinationId":"\\d+"},"hosttokens":[],"methods":["DELETE"],"schemes":[]},"admin_products_combinations_bulk_delete":{"tokens":[["text","\/combinations\/bulk-delete"],["variable","\/","\\d+","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_attribute_groups":{"tokens":[["text","\/attribute-groups"],["variable","\/","[^\/]++","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_all_attribute_groups":{"tokens":[["text","\/sell\/catalog\/products-v2\/all-attribute-groups"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations_generate":{"tokens":[["variable","\/","[^\/]++","productId"],["text","\/sell\/catalog\/products-v2\/generate-combinations"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_v2_get_images":{"tokens":[["text","\/images"],["variable","\/","\\d+","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_v2_add_image":{"tokens":[["text","\/sell\/catalog\/products-v2\/images\/add"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_v2_update_image":{"tokens":[["text","\/update"],["variable","\/","\\d+","productImageId"],["text","\/sell\/catalog\/products-v2\/images"]],"defaults":[],"requirements":{"productImageId":"\\d+"},"hosttokens":[],"methods":["PATCH"],"schemes":[]},"admin_products_v2_delete_image":{"tokens":[["text","\/delete"],["variable","\/","\\d+","productImageId"],["text","\/sell\/catalog\/products-v2\/images"]],"defaults":[],"requirements":{"productImageId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_specific_prices_list":{"tokens":[["text","\/specific-prices\/list"],["variable","\/","\\d+","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_specific_prices_create":{"tokens":[["text","\/specific-prices\/create"],["variable","\/","\\d+","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_products_specific_prices_edit":{"tokens":[["text","\/edit"],["variable","\/","\\d+","specificPriceId"],["text","\/sell\/catalog\/products-v2\/specific-prices"]],"defaults":[],"requirements":{"specificPriceId":"\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_products_specific_prices_delete":{"tokens":[["text","\/delete"],["variable","\/","\\d+","specificPriceId"],["text","\/sell\/catalog\/products-v2\/specific-prices"]],"defaults":[],"requirements":{"specificPriceId":"\\d+"},"hosttokens":[],"methods":["DELETE"],"schemes":[]},"admin_products_v2_edit":{"tokens":[["text","\/edit"],["variable","\/","\\d+","productId"],["text","\/sell\/catalog\/products-v2"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["GET","POST","PATCH"],"schemes":[]},"admin_products_v2_bulk_enable":{"tokens":[["text","\/sell\/catalog\/products-v2\/bulk-enable"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_v2_bulk_disable":{"tokens":[["text","\/sell\/catalog\/products-v2\/bulk-disable"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_v2_bulk_duplicate":{"tokens":[["text","\/sell\/catalog\/products-v2\/bulk-duplicate"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_v2_bulk_delete":{"tokens":[["text","\/sell\/catalog\/products-v2\/bulk-delete"]],"defaults":[],"requirements":{"productId":"\\d+"},"hosttokens":[],"methods":["POST","DELETE"],"schemes":[]},"admin_categories_get_categories_tree":{"tokens":[["text","\/sell\/catalog\/categories\/tree"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_cart_rules_search":{"tokens":[["text","\/sell\/catalog\/cart-rules\/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_customers_view":{"tokens":[["text","\/view"],["variable","\/","\\d+","customerId"],["text","\/sell\/customers"]],"defaults":[],"requirements":{"customerId":"\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_customers_search":{"tokens":[["text","\/sell\/customers\/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_customers_carts":{"tokens":[["text","\/carts"],["variable","\/","\\d+","customerId"],["text","\/sell\/customers"]],"defaults":[],"requirements":{"customerId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_customers_orders":{"tokens":[["text","\/orders"],["variable","\/","\\d+","customerId"],["text","\/sell\/customers"]],"defaults":[],"requirements":{"customerId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_addresses_create":{"tokens":[["text","\/sell\/addresses\/new"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_addresses_edit":{"tokens":[["text","\/edit"],["variable","\/","\\d+","addressId"],["text","\/sell\/addresses"]],"defaults":[],"requirements":{"addressId":"\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_order_addresses_edit":{"tokens":[["text","\/edit"],["variable","\/","delivery|invoice","addressType"],["variable","\/","\\d+","orderId"],["text","\/sell\/addresses\/order"]],"defaults":[],"requirements":{"orderId":"\\d+","addressType":"delivery|invoice"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_cart_addresses_edit":{"tokens":[["text","\/edit"],["variable","\/","delivery|invoice","addressType"],["variable","\/","\\d+","cartId"],["text","\/sell\/addresses\/cart"]],"defaults":[],"requirements":{"cartId":"\\d+","addressType":"delivery|invoice"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_carts_view":{"tokens":[["text","\/view"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_carts_info":{"tokens":[["text","\/info"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_carts_create":{"tokens":[["text","\/sell\/orders\/carts\/new"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_addresses":{"tokens":[["text","\/addresses"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_carrier":{"tokens":[["text","\/carrier"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_currency":{"tokens":[["text","\/currency"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_language":{"tokens":[["text","\/language"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_set_delivery_settings":{"tokens":[["text","\/rules\/delivery-settings"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_add_cart_rule":{"tokens":[["text","\/cart-rules"],["variable","\/","[^\/]++","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_delete_cart_rule":{"tokens":[["text","\/delete"],["variable","\/","[^\/]++","cartRuleId"],["text","\/cart-rules"],["variable","\/","[^\/]++","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_add_product":{"tokens":[["text","\/products"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_product_price":{"tokens":[["text","\/price"],["variable","\/","\\d+","productId"],["text","\/products"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+","productId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_product_quantity":{"tokens":[["text","\/quantity"],["variable","\/","\\d+","productId"],["text","\/products"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+","productId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_delete_product":{"tokens":[["text","\/delete-product"],["variable","\/","\\d+","cartId"],["text","\/sell\/orders\/carts"]],"defaults":[],"requirements":{"cartId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_place":{"tokens":[["text","\/sell\/orders\/place"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_view":{"tokens":[["text","\/view"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_orders_duplicate_cart":{"tokens":[["text","\/duplicate-cart"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_update_product":{"tokens":[["variable","\/","\\d+","orderDetailId"],["text","\/products"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+","orderDetailId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_partial_refund":{"tokens":[["text","\/partial-refund"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_standard_refund":{"tokens":[["text","\/standard-refund"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_return_product":{"tokens":[["text","\/return-product"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_send_process_order_email":{"tokens":[["text","\/sell\/orders\/process-order-email"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_add_product":{"tokens":[["text","\/products"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_delete_product":{"tokens":[["text","\/delete"],["variable","\/","\\d+","orderDetailId"],["text","\/products"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+","orderDetailId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_get_discounts":{"tokens":[["text","\/discounts"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_prices":{"tokens":[["text","\/prices"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_payments":{"tokens":[["text","\/payments"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_products":{"tokens":[["text","\/products"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_invoices":{"tokens":[["text","\/invoices"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_documents":{"tokens":[["text","\/documents"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_shipping":{"tokens":[["text","\/shipping"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_cancellation":{"tokens":[["text","\/cancellation"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_configure_product_pagination":{"tokens":[["text","\/sell\/orders\/configure-product-pagination"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_product_prices":{"tokens":[["text","\/products\/prices"],["variable","\/","\\d+","orderId"],["text","\/sell\/orders"]],"defaults":[],"requirements":{"orderId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_products_search":{"tokens":[["text","\/sell\/orders\/products\/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_attachments_attachment_info":{"tokens":[["text","\/info"],["variable","\/","\\d+","attachmentId"],["text","\/sell\/attachments"]],"defaults":[],"requirements":{"attachmentId":"\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_attachments_search":{"tokens":[["variable","\/","[^\/]++","searchPhrase"],["text","\/sell\/attachments\/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_shops_search":{"tokens":[["variable","\/","[^\/]++","searchTerm"],["text","\/configure\/advanced\/shops\/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"buckaroo_config_paymentMethod":{"tokens":[["text","\/modules\/buckaroo3\/config\/payment\/methods"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_countries":{"tokens":[["text","\/modules\/buckaroo3\/config\/countries"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_creditcards":{"tokens":[["text","\/modules\/buckaroo3\/config\/creditcards"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_orderings":{"tokens":[["text","\/modules\/buckaroo3\/config\/orderings"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_methodMode":{"tokens":[["text","\/modules\/buckaroo3\/config\/methodMode"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_methods":{"tokens":[["text","\/modules\/buckaroo3\/config\/methods"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_settings":{"tokens":[["text","\/modules\/buckaroo3\/config\/settings"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_testCredentials":{"tokens":[["text","\/modules\/buckaroo3\/config\/testCredentials"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]},"buckaroo_config_verificationMethods":{"tokens":[["text","\/modules\/buckaroo3\/config\/verificationMethods"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST","GET"],"schemes":[]}},"prefix":"","host":"localhost","port":"","scheme":"http","locale":""} \ No newline at end of file diff --git a/dev/src/i18n.js b/dev/src/i18n.js new file mode 100644 index 000000000..a880ae8ac --- /dev/null +++ b/dev/src/i18n.js @@ -0,0 +1,30 @@ +/* + * + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) + */ +import { createI18n } from 'vue-i18n'; +import en from '../lang/php_en.json'; +import nl from '../lang/php_nl.json'; + +const messages = { + en: en, + nl: nl +}; + +const i18n = createI18n({ + legacy: false, + locale: 'en', // set default locale + messages, +}); + +export default i18n; diff --git a/dev/src/index.php b/dev/src/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/lib/api.ts b/dev/src/lib/api.ts new file mode 100644 index 000000000..16fcc6ef5 --- /dev/null +++ b/dev/src/lib/api.ts @@ -0,0 +1,63 @@ +import axios from 'axios'; +import { computed, ref, watch, inject } from 'vue'; +import Router from './router'; + +export const useApi = (endpoint: string) => { + const csrfToken: string = inject('csrfToken') + const adminUrl: string = inject('adminUrl') + + let router = new Router(adminUrl, csrfToken) + + const data = ref(); + const loading = ref(false); + const error = ref(); + + const api = axios.create({ + baseURL: adminUrl + '' + }) + + const get = (query?: Record) => { + loading.value = true + error.value = undefined + + return api + .get(router.generate(endpoint, query)) + .then((res) => (data.value = res.data)) + .catch((e) => { + error.value = e + + throw e + }) + .finally(() => (loading.value = false)) + } + + const post = (payload?: Record, query?: Record) => { + loading.value = true + error.value = undefined + return api + .post(router.generate(endpoint, query), payload) + .then((res) => (data.value = res.data)) + .catch((e) => { + error.value = e; + throw e; + }) + .finally(() => (loading.value = false)); + }; + + const errorMessage = computed(() => { + return error.value ? error.value.message : null; + }); + + watch(error, (currentError) => { + + }); + + return { + loading, + data, + error, + get, + post, + errorMessage + }; +}; diff --git a/dev/src/lib/countries.ts b/dev/src/lib/countries.ts new file mode 100644 index 000000000..c18ed7009 --- /dev/null +++ b/dev/src/lib/countries.ts @@ -0,0 +1,35 @@ +import {computed, ref} from "vue"; +import {useApi} from "./api"; + +const countries = ref([]) +const query = ref(null) + + + +export const useCountries = () => { + + const { get, data } = useApi('buckaroo_config_countries') + + get().then(() => { + if(data.value.status) { + countries.value = data.value.countries + } + }) + + const filteredCountries = computed(() => { + if (!query.value || query.value.trim().length === 0) { + return countries.value + } + + return countries.value.filter((country) => { + return country.name.toLowerCase().includes(query.value.toLowerCase()) || (`countries.${ country.name }`).toLowerCase().includes(query.value.toLowerCase()) + }) + } + ) + + return { + query, + filteredCountries, + countries + } +} diff --git a/dev/src/lib/index.php b/dev/src/lib/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/lib/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/src/lib/orderingsService.ts b/dev/src/lib/orderingsService.ts new file mode 100644 index 000000000..5772dfac0 --- /dev/null +++ b/dev/src/lib/orderingsService.ts @@ -0,0 +1,26 @@ +import { ref } from "vue"; +import { useApi } from "./api"; + +export const useOrderingsService = () => { + const { get, post, data } = useApi(`buckaroo_config_orderings`); + const paymentOrderings = ref(null); + + const getOrdering = (countryCode: string) => { + return get({ country: countryCode }).then(() => { + if(data.value.status) { + paymentOrderings.value = data.value.orderings; + } + }); + }; + + const updateOrderings = (orderings: any) => { + return post(orderings); + }; + + return { + getOrdering, + updateOrderings, + paymentOrderings, + data + }; +}; diff --git a/dev/src/lib/router.ts b/dev/src/lib/router.ts new file mode 100644 index 000000000..54f917082 --- /dev/null +++ b/dev/src/lib/router.ts @@ -0,0 +1,42 @@ +import Routing from 'fos-routing'; +import routes from '../fos_js_routes.json'; + +/* eslint-disable */ +/** + * Wraps FOSJsRoutingbundle with exposed routes. + * To expose route add option `expose: true` in .yml routing config + * + * e.g. + * + * `my_route + * path: /my-path + * options: + * expose: true + * And run `bin/console fos:js-routing:dump --format=json --target=modules/buckaroo3/dev` + */ +/* eslint-enable */ +export default class Router { + + private token:string; + + constructor(adminUrl: string, token:string) { + Routing.setData(routes); + Routing.setBaseUrl(adminUrl); + this.token = token; + return this; + } + + /** + * Decorated "generate" method, with predefined security token in params + * + * @param route + * @param params + * + * @returns {String} + */ + generate(route: string, params: Record = {}): string { + const tokenizedParams = Object.assign(params, { _token: this.token }); + + return Routing.generate(route, tokenizedParams); + } +} \ No newline at end of file diff --git a/dev/src/lib/toastr.ts b/dev/src/lib/toastr.ts new file mode 100644 index 000000000..531f2941a --- /dev/null +++ b/dev/src/lib/toastr.ts @@ -0,0 +1,27 @@ + +// @ts-ignore +import toastr from 'toastr' + +export const useToastr = () => { + toastr.options = { + "closeButton": false, + "debug": false, + "newestOnTop": false, + "progressBar": true, + "positionClass": "toast-bottom-right", + "preventDuplicates": false, + // "onclick": null, + // "showDuration": "300", + // "hideDuration": "1000", + // "timeOut": "5000", + // "extendedTimeOut": "1000", + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut" + } + + return { + toastr + } +} diff --git a/dev/src/main.ts b/dev/src/main.ts new file mode 100644 index 000000000..ba5632d5d --- /dev/null +++ b/dev/src/main.ts @@ -0,0 +1,18 @@ +import './bootstrap'; + +import {createApp} from 'vue' +import i18n from './i18n'; + +import Loading from "./components/Loading.vue"; +import './assets/css/tailwind.scss' +import Dashboard from "./Dashboard.vue"; + + +// Use the i18n instance in your app +createApp({}) + .use(i18n) + .component('Loading', Loading) + .component('Dashboard', Dashboard) + .mount('#app') + + diff --git a/dev/src/pages/OrderPaymentMethods.vue b/dev/src/pages/OrderPaymentMethods.vue new file mode 100644 index 000000000..b477f0f57 --- /dev/null +++ b/dev/src/pages/OrderPaymentMethods.vue @@ -0,0 +1,143 @@ + + + diff --git a/dev/src/pages/PaymentMethods.vue b/dev/src/pages/PaymentMethods.vue new file mode 100644 index 000000000..8ba23a004 --- /dev/null +++ b/dev/src/pages/PaymentMethods.vue @@ -0,0 +1,103 @@ + + + \ No newline at end of file diff --git a/dev/src/pages/Settings.vue b/dev/src/pages/Settings.vue new file mode 100644 index 000000000..133669bca --- /dev/null +++ b/dev/src/pages/Settings.vue @@ -0,0 +1,307 @@ + + + diff --git a/dev/src/pages/VerificationMethods.vue b/dev/src/pages/VerificationMethods.vue new file mode 100644 index 000000000..ffe210d30 --- /dev/null +++ b/dev/src/pages/VerificationMethods.vue @@ -0,0 +1,74 @@ + + + \ No newline at end of file diff --git a/dev/src/pages/index.php b/dev/src/pages/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/dev/src/pages/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/dev/tailwind.config.js b/dev/tailwind.config.js new file mode 100644 index 000000000..d5d597a7f --- /dev/null +++ b/dev/tailwind.config.js @@ -0,0 +1,47 @@ +/* + * + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) + */ +/** @type {import('tailwindcss').Config} */ +module.exports = { + important: true, + content: [ + './src/**/*.php', + './src/**/*.vue', + ], + theme: { + fontFamily: { + sans: ['Open Sans', 'sans-serif'], + serif: ['Open Sans', 'serif'], + display: ['Open Sans'], + body: ['Open Sans'], + // fa: ['Font Awesome 5 Pro'] + }, + extend: { + colors: { + // primary: '#CDD905', + // secondary: '#DAE605', + background: '#F8FAFC', + primary: '#273A8A', + secondary: '#4b71fc', + thirdly: '#FBFBFC', + fourthly: '#ECB390', + fifthly: '#34313F', + sixthly: '#2A2833', + seventhly: '#44414F', + eightly: '#d7d6d9' + }, + }, + }, + plugins: [], +} diff --git a/dev/tsconfig.json b/dev/tsconfig.json new file mode 100644 index 000000000..cc837f69a --- /dev/null +++ b/dev/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "module": "ESNext", + "moduleResolution": "Node", + "strict": false, + "jsx": "preserve", + "sourceMap": true, + "resolveJsonModule": true, + "isolatedModules": true, + "esModuleInterop": true, + "lib": ["ESNext", "DOM"], + "skipLibCheck": true, + "allowJs": true, + "types": [ + "node", + "webpack-env" // here + ] + }, + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/dev/tsconfig.node.json b/dev/tsconfig.node.json new file mode 100644 index 000000000..9d31e2aed --- /dev/null +++ b/dev/tsconfig.node.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true, + "module": "ESNext", + "moduleResolution": "Node", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/dev/vite.config.js b/dev/vite.config.js new file mode 100644 index 000000000..ae7db77f6 --- /dev/null +++ b/dev/vite.config.js @@ -0,0 +1,52 @@ +/* + * + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) + */ +import vue from '@vitejs/plugin-vue'; +import {defineConfig} from 'vite' + +export default defineConfig({ + + resolve: { + alias: { + '@': '/src', + vue: 'vue/dist/vue.esm-bundler.js', + }, + }, + plugins: [vue()], + build: { + outDir: '../views/', + assetsDir: '', + rollupOptions: { + input: '/src/main.ts', + output: { + entryFileNames: `js/buckaroo.vue.js`, + assetFileNames: assetInfo => { + const info = assetInfo.name.split('.'); + const extType = info[info.length - 1]; + if (/\.(png|jpe?g|gif|svg|webp|webm|mp3)$/.test(assetInfo.name)) { + return `media/[name]-[hash].${extType}`; + } + if (/\.(css)$/.test(assetInfo.name)) { + return `css/buckaroo3.vue.${extType}`; + } + if (/\.(woff|woff2|eot|ttf|otf)$/.test(assetInfo.name)) { + return `fonts/[name]-[hash].${extType}`; + } + return `[name]-[hash].${extType}`; + }, + } + }, + }, + base: '/modules/buckaroo3/views/', +}) diff --git a/index.php b/index.php index c8e9f2af3..97ec565fb 100644 --- a/index.php +++ b/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/library/checkout/afterpaycheckout.php b/library/checkout/afterpaycheckout.php index 0df88ff79..d516be592 100644 --- a/library/checkout/afterpaycheckout.php +++ b/library/checkout/afterpaycheckout.php @@ -1,7 +1,5 @@ invoice_address->phone_mobile)) { - $phone = $this->invoice_address->phone_mobile; - } - if (empty($phone) && !empty($this->invoice_address->phone)) { - $phone = $this->invoice_address->phone; + $this->customerType = $this->buckarooConfigService->getConfigValue('afterpay', 'customer_type'); + + $this->customVars = [ + 'clientIP' => $_SERVER['REMOTE_ADDR'], + 'billing' => $this->getBillingAddress(), + 'articles' => $this->getArticles(), + 'shipping' => $this->getShippingAddress(), + ]; + } + + public function getCocNumber() + { + $customerIdentificationNumber = Tools::getValue('customerIdentificationNumber'); + + if (!empty($customerIdentificationNumber)) { + return $customerIdentificationNumber; } - $ShippingCost = $this->cart->getOrderTotal(true, CartCore::ONLY_SHIPPING); - if ($ShippingCost > 0) { - $this->payment_request->ShippingCosts = round($ShippingCost, 2); + $cocNumber = Tools::getValue('customerafterpaynew-coc'); + + if (!empty($cocNumber) && strlen(trim($cocNumber)) !== 0) { + return $cocNumber; } - $language = Language::getIsoById((int) $this->cart->id_lang); + return ''; + } - $this->payment_request->BillingGender = Tools::getValue("bpe_afterpay_invoice_person_gender"); - $this->payment_request->BillingFirstName = $this->invoice_address->firstname; - $this->payment_request->BillingLastName = $this->invoice_address->lastname; - $this->payment_request->BillingBirthDate = date( - 'Y-m-d', - strtotime( - Tools::getValue("customerbirthdate_y_billing") . "-" . Tools::getValue( - "customerbirthdate_m_billing" - ) . "-" . Tools::getValue("customerbirthdate_d_billing") - ) - ); - $address_components = $this->getAddressComponents($this->invoice_address->address1);//phpcs:ignore + public function isRedirectRequired() + { + return false; + } + + public function isVerifyRequired() + { + return false; + } + + /** + * @throws PrestaShopException + * @throws PrestaShopDatabaseException + */ + public function getBillingAddress() + { + $country = new Country($this->invoice_address->id_country); + + $address_components = $this->getAddressComponents($this->invoice_address->address1); // phpcs:ignore if (empty($address_components['house_number'])) { $address_components['house_number'] = $this->invoice_address->address2; } - $this->payment_request->BillingStreet = $address_components['street']; - $this->payment_request->BillingHouseNumber = $address_components['house_number']; - $this->payment_request->BillingHouseNumberSuffix = $address_components['number_addition']; - $this->payment_request->BillingPostalCode = $this->invoice_address->postcode; - $this->payment_request->BillingCity = $this->invoice_address->city; - $country = new Country($this->invoice_address->id_country); - $this->payment_request->BillingCountry = Tools::strtoupper($country->iso_code); - $this->payment_request->BillingEmail = !empty($this->customer->email) ? $this->customer->email : ''; - $this->payment_request->BillingLanguage = $language; - $this->payment_request->BillingPhoneNumber = $phone; - $Discount = $this->cart->getOrderTotal(true, Cart::ONLY_DISCOUNTS); - if ($Discount > 0) { - $this->payment_request->Discount = round($Discount, 2); - } - $this->payment_request->AddressesDiffer = 'FALSE'; - if (!empty($this->shipping_address)) { - $shippingGender = Tools::getValue("bpe_afterpay_shipping_person_gender"); - if (!$shippingGender) { - $shippingGender = Tools::getValue("bpe_afterpay_invoice_person_gender"); - } - $ShippingBirthDate = date( - 'Y-m-d', - strtotime( - Tools::getValue("customerbirthdate_y_shipping") . "-" . Tools::getValue( - "customerbirthdate_m_shipping" - ) . "-" . Tools::getValue("customerbirthdate_d_shipping") - ) - ); - if (!$ShippingBirthDate) { - $ShippingBirthDate = date( + $category = ($this->customerType == self::CUSTOMER_TYPE_B2C) ? RecipientCategory::PERSON + : (($this->customerType == self::CUSTOMER_TYPE_B2B) ? RecipientCategory::COMPANY + : ($this->companyExists($this->invoice_address->company) ? self::CUSTOMER_TYPE_B2B : RecipientCategory::PERSON)); + + $payload = [ + 'recipient' => [ + 'category' => $category, + 'conversationLanguage' => Tools::strtoupper($country->iso_code), + 'careOf' => $this->invoice_address->firstname . ' ' . $this->invoice_address->lastname, + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + 'birthDate' => date( 'Y-m-d', strtotime( - Tools::getValue("customerbirthdate_y_billing") . "-" . Tools::getValue( - "customerbirthdate_m_billing" - ) . "-" . Tools::getValue("customerbirthdate_d_billing") + Tools::getValue('customerbirthdate_y_billing') . '-' . Tools::getValue( + 'customerbirthdate_m_billing' + ) . '-' . Tools::getValue('customerbirthdate_d_billing') ) - ); - } + ), + ], + 'phone' => [ + 'mobile' => $this->getPhone($this->invoice_address), + ], + 'address' => [ + 'street' => $address_components['street'], + 'houseNumber' => $address_components['house_number'], + 'houseNumberAdditional' => $address_components['number_addition'], + 'zipcode' => $this->invoice_address->postcode, + 'city' => $this->invoice_address->city, + 'country' => Tools::strtoupper($country->iso_code), + ], + 'email' => !empty($this->customer->email) ? $this->customer->email : '', + ]; - $this->payment_request->AddressesDiffer = 'TRUE'; - $this->payment_request->ShippingGender = $shippingGender; - $this->payment_request->ShippingInitials = initials($this->shipping_address->firstname); - $this->payment_request->ShippingFirstName = $this->shipping_address->firstname; - $this->payment_request->ShippingLastName = $this->shipping_address->lastname; - $this->payment_request->ShippingBirthDate = $ShippingBirthDate; - $address_components = $this->getAddressComponents($this->shipping_address->address1);//phpcs:ignore - $this->payment_request->ShippingStreet = $address_components['street']; - $this->payment_request->ShippingHouseNumber = $address_components['house_number']; - $this->payment_request->ShippingHouseNumberSuffix = $address_components['number_addition']; - $this->payment_request->ShippingPostalCode = $this->shipping_address->postcode; - $this->payment_request->ShippingCity = $this->shipping_address->city; - $country = new Country($this->shipping_address->id_country); - $this->payment_request->ShippingCountryCode = Tools::strtoupper($country->iso_code); - $this->payment_request->ShippingEmail = Tools::getIsset( - $this->customer->email - ) ? $this->customer->email : ''; - $this->payment_request->ShippingLanguage = $language; - $phone = ''; - if (!empty($this->shipping_address->phone_mobile)) { - $phone = $this->shipping_address->phone_mobile; - } - if (empty($phone) && !empty($this->shipping_address->phone)) { - $phone = $this->shipping_address->phone; + if (self::CUSTOMER_TYPE_B2C != $this->customerType) { + if ($this->companyExists($this->invoice_address->company) ? $this->invoice_address->company : null) { + $payload['recipient']['companyName'] = $this->invoice_address->company; + $payload['recipient']['chamberOfCommerce'] = $this->getCocNumber(); } - $this->payment_request->ShippingPhoneNumber = $phone; } - $carrier = new Carrier((int) $this->cart->id_carrier, Configuration::get('PS_LANG_DEFAULT')); + return $payload; + } + + public function getArticles() + { + $products = $this->prepareProductArticles(); - $this->payment_request->ShippingCostsTax = $carrier->getTaxesRate(); + $wrappingVat = $this->buckarooConfigService->getConfigValue('afterpay', 'wrapping_vat'); - if ($carrier->external_module_name == 'sendcloud') { - $sendCloudClassName = 'SendcloudServicePoint'; - $service_point = $sendCloudClassName::getFromCart($this->cart->id); - $point = $service_point->getDetails(); - $this->payment_request->ShippingStreet = $point->street; - $this->payment_request->ShippingHouseNumber = $point->house_number; - $this->payment_request->ShippingHouseNumberSuffix = ''; - $this->payment_request->ShippingPostalCode = $point->postal_code; - $this->payment_request->ShippingCity = $point->city; - $country = $point->country; + if ($wrappingVat == null) { + $wrappingVat = 2; } - $customerIdentificationNumber = Tools::getValue("customerIdentificationNumber"); - if (!empty($customerIdentificationNumber)) { - $this->payment_request->IdentificationNumber = $customerIdentificationNumber; + $products = array_merge($products, $this->prepareWrappingArticle($wrappingVat)); + $products = array_merge($products, $this->prepareBuckarooFeeArticle($wrappingVat)); + $mergedProducts = $this->mergeProductsBySKU($products); + + $shippingCostArticle = $this->prepareShippingCostArticle(); + if ($shippingCostArticle) { + $mergedProducts[] = $shippingCostArticle; } - $this->payment_request->CustomerIPAddress = $_SERVER["REMOTE_ADDR"]; - $this->payment_request->Accept = 'TRUE'; + return $mergedProducts; } - public function isRedirectRequired() + private function prepareBuckarooFeeArticle($wrappingVat) { - return false; + $buckarooFee = $this->getBuckarooFee(); + if ($buckarooFee <= 0) { + return []; + } + + return [ + 'identifier' => '0', + 'quantity' => '1', + 'price' => round($buckarooFee, 2), + 'vatPercentage' => $wrappingVat, + 'description' => 'buckaroo_fee', + ]; } - public function isVerifyRequired() + public function getShippingAddress() { - return false; + if (!empty($this->shipping_address)) { + $country = new Country($this->invoice_address->id_country); + + $address_components = $this->getAddressComponents($this->shipping_address->address1); // phpcs:ignore + $street = $address_components['street']; + if (empty($address_components['house_number'])) { + $houseNumber = $this->invoice_address->address2; + } else { + $houseNumber = $address_components['house_number']; + } + $houseNumberSuffix = $address_components['number_addition']; + $zipcode = $this->shipping_address->postcode; + $city = $this->shipping_address->city; + + $phone = $this->getPhone($this->shipping_address); + + $carrierHandler = new CarrierHandler($this->cart); + $sendCloudData = $carrierHandler->handleSendCloud(); + + if ($sendCloudData) { + $street = $sendCloudData['street']; + $houseNumber = $sendCloudData['houseNumber']; + $houseNumberSuffix = $sendCloudData['houseNumberSuffix']; + $zipcode = $sendCloudData['zipcode']; + $city = $sendCloudData['city']; + $country = $sendCloudData['country']; + } + + $payload = [ + 'recipient' => [ + 'category' => (self::CUSTOMER_TYPE_B2C == $this->customerType) ? RecipientCategory::PERSON : RecipientCategory::COMPANY, + 'conversationLanguage' => Tools::strtoupper($country->iso_code), + 'careOf' => $this->shipping_address->firstname . ' ' . $this->shipping_address->lastname, + 'firstName' => $this->shipping_address->firstname, + 'lastName' => $this->shipping_address->lastname, + 'birthDate' => $this->getBirthDate(), + ], + 'address' => [ + 'street' => $street, + 'houseNumber' => $houseNumber, + 'houseNumberAdditional' => $houseNumberSuffix, + 'zipcode' => $zipcode, + 'city' => $city, + 'country' => Tools::strtoupper($country->iso_code), + ], + 'phone' => [ + 'mobile' => $phone, + ], + 'email' => !empty($this->customer->email) ? $this->customer->email : '', + ]; + + if (self::CUSTOMER_TYPE_B2C != $this->customerType) { + if ($this->companyExists($this->invoice_address->company) ? $this->invoice_address->company : null) { + $payload['recipient']['companyName'] = $this->invoice_address->company; + $payload['recipient']['category'] = RecipientCategory::COMPANY; + } + } + + return $payload; + } + + return null; } - public function startPayment() + public function getBirthDate() { - $products = array(); - $taxvalues = Configuration::get('BUCKAROO_AFTERPAY_TAXRATE'); - if (!$taxvalues) { - $taxvalues = array(); - } else { - $taxvalues = unserialize($taxvalues); - } - foreach ($this->products as $item) { - $tmp = array(); - $tmp["ArticleDescription"] = $item['name']; - $tmp["ArticleId"] = $item['id_product']; - $tmp["ArticleQuantity"] = $item["quantity"]; - $tmp["ArticleUnitprice"] = round($item["price_wt"], 2); - $tmp["ArticleVatcategory"] = $item["rate"]; - $products[] = $tmp; + return date( + 'd-m-Y', + strtotime( + Tools::getValue('customerbirthdate_y_billing') . '-' . Tools::getValue( + 'customerbirthdate_m_billing' + ) . '-' . Tools::getValue('customerbirthdate_d_billing') + ) + ); + } + + public function getPhone($address) + { + // First check if 'phone_afterpay_billing' value is available. + $phone = Tools::getValue('phone_afterpay_billing'); + + // If it's not available, then check for 'phone_mobile' in the address. + if (empty($phone) && !empty($address->phone_mobile)) { + $phone = $address->phone_mobile; } - $Wrapping = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); - if ($Wrapping > 0) { - $tmp = array(); - $tmp["ArticleDescription"] = 'Wrapping'; - $tmp["ArticleId"] = '0'; - $tmp["ArticleQuantity"] = '1'; - $tmp["ArticleUnitprice"] = $Wrapping; - $tmp["ArticleVatcategory"] = Configuration::get('BUCKAROO_AFTERPAY_WRAPPING_VAT'); - $products[] = $tmp; + // If both above are not available, then check for 'phone' in the address. + if (empty($phone) && !empty($address->phone)) { + $phone = $address->phone; } - $this->payment_response = $this->payment_request->payAfterpay($products, $this->customVars); + + return $phone; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->payAfterpay($this->customVars); } protected function initialize() diff --git a/library/checkout/alipaycheckout.php b/library/checkout/alipaycheckout.php new file mode 100644 index 000000000..f2d781400 --- /dev/null +++ b/library/checkout/alipaycheckout.php @@ -0,0 +1,47 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class Alipaycheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_ALIPAY); + } +} diff --git a/library/checkout/applepaycheckout.php b/library/checkout/applepaycheckout.php index 7b988f2bf..f74599d89 100644 --- a/library/checkout/applepaycheckout.php +++ b/library/checkout/applepaycheckout.php @@ -1,7 +1,5 @@ customVars = [ + 'servicesSelectableByClient' => 'applepay', + 'continueOnIncomplete' => '1', + ]; } public function startPayment() diff --git a/library/checkout/bancontactmrcashcheckout.php b/library/checkout/bancontactmrcashcheckout.php new file mode 100644 index 000000000..743250449 --- /dev/null +++ b/library/checkout/bancontactmrcashcheckout.php @@ -0,0 +1,47 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class BancontactmrcashCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_BANCONTACTMRCASH); + } +} diff --git a/library/checkout/belfiuscheckout.php b/library/checkout/belfiuscheckout.php index 8ec81ebd5..9e3ca8a2f 100644 --- a/library/checkout/belfiuscheckout.php +++ b/library/checkout/belfiuscheckout.php @@ -1,7 +1,5 @@ + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; +include_once _PS_MODULE_DIR_ . 'buckaroo3/classes/CarrierHandler.php'; + +use Buckaroo\Resources\Constants\RecipientCategory; + +class BillinkCheckout extends Checkout +{ + protected $customVars = []; + protected $customerType; + public const CUSTOMER_TYPE_B2C = 'B2C'; + public const CUSTOMER_TYPE_B2B = 'B2B'; + public const CUSTOMER_TYPE_BOTH = 'both'; + + final public function setCheckout() + { + parent::setCheckout(); + + $this->customerType = $this->buckarooConfigService->getConfigValue('billink', 'customer_type'); + + $this->customVars = [ + 'vATNumber' => $this->invoice_address->vat_number, + 'billing' => $this->getBillingAddress(), + 'articles' => $this->getArticles(), + 'shipping' => $this->getShippingAddress(), + ]; + } + + public function isRedirectRequired() + { + return false; + } + + public function isVerifyRequired() + { + return false; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->payBillink($this->customVars); + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_BILLINK); + } + + public function getBillingAddress() + { + $birthDate = $this->getBirthDate(); + + $address_components = $this->getAddressComponents($this->invoice_address->address1); // phpcs:ignore + if (empty($address_components['house_number'])) { + $address_components['house_number'] = $this->invoice_address->address2; + } + $country = new Country($this->invoice_address->id_country); + + $category = self::CUSTOMER_TYPE_B2C; + if ($this->customerType == self::CUSTOMER_TYPE_B2B + || $this->companyExists($this->invoice_address->company)) { + $category = self::CUSTOMER_TYPE_B2B; + } + + $payload = [ + 'recipient' => [ + 'category' => $category, + 'careOf' => $this->invoice_address->firstname . ' ' . $this->invoice_address->lastname, + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + 'birthDate' => $birthDate, + 'title' => Tools::getValue('bpe_billink_person_gender'), + 'initials' => $this->initials($this->invoice_address->firstname . ' ' . $this->invoice_address->lastname), + ], + 'address' => [ + 'street' => $address_components['street'], + 'houseNumber' => $address_components['house_number'], + 'houseNumberAdditional' => $address_components['number_addition'], + 'zipcode' => $this->invoice_address->postcode, + 'city' => $this->invoice_address->city, + 'country' => Tools::strtoupper($country->iso_code), + ], + 'phone' => [ + 'mobile' => $this->getPhone($this->invoice_address) ?: $this->getPhone($this->shipping_address), + ], + 'email' => !empty($this->customer->email) ? $this->customer->email : '', + ]; + + if (self::CUSTOMER_TYPE_B2C != $this->customerType + && $this->companyExists($this->invoice_address->company) ? $this->invoice_address->company : null) { + $payload['recipient']['careOf'] = $this->invoice_address->company; + $payload['recipient']['chamberOfCommerce'] = Tools::getValue('customerbillink-coc'); + } + + return $payload; + } + + public function getArticles() + { + $products = $this->prepareProductArticles(); + $wrappingVat = $this->buckarooConfigService->getConfigValue('billink', 'wrapping_vat'); + + if ($wrappingVat == null) { + $wrappingVat = 2; + } + $products = array_merge($products, $this->prepareWrappingArticle($wrappingVat)); + $products = array_merge($products, $this->prepareBuckarooFeeArticle($wrappingVat)); + $mergedProducts = $this->mergeProductsBySKU($products); + + $shippingCostArticle = $this->prepareShippingCostArticle(); + if ($shippingCostArticle) { + $mergedProducts[] = $shippingCostArticle; + } + + return $mergedProducts; + } + + protected function prepareProductArticles() + { + $articles = []; + foreach ($this->products as $item) { + $tmp = []; + $tmp['description'] = $item['name']; + $tmp['identifier'] = $item['id_product']; + $tmp['quantity'] = $item['quantity']; + $tmp['price'] = round($item['price_with_reduction'], 2); + $tmp['priceExcl'] = round($item['price_with_reduction_without_tax'], 2); + $tmp['vatPercentage'] = $item['rate']; + $articles[] = $tmp; + } + + return $articles; + } + + protected function prepareWrappingArticle($wrappingVat) + { + $wrappingCost = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); + + if ($wrappingCost <= 0) { + return []; + } + + return [ + 'identifier' => '0', + 'quantity' => '1', + 'price' => $wrappingCost, + 'priceExcl' => $wrappingCost, + 'vatPercentage' => $wrappingVat, + 'description' => 'Wrapping', + ]; + } + + private function prepareBuckarooFeeArticle($wrappingVat) + { + $buckarooFee = $this->getBuckarooFee(); + if ($buckarooFee <= 0) { + return []; + } + + return [ + 'identifier' => '0', + 'quantity' => '1', + 'price' => round($buckarooFee, 2), + 'priceExcl' => round($buckarooFee, 2), + 'vatPercentage' => $wrappingVat, + 'description' => 'buckaroo_fee', + ]; + } + + protected function prepareShippingCostArticle() + { + $shippingCost = round($this->cart->getOrderTotal(true, CartCore::ONLY_SHIPPING), 2); + if ($shippingCost <= 0) { + return null; + } + + $carrier = new Carrier((int) $this->cart->id_carrier, Configuration::get('PS_LANG_DEFAULT')); + + $shippingCostsTax = (version_compare(_PS_VERSION_, '1.7.6.0', '<=')) + ? $carrier->getTaxesRate(Address::initialize()) + : $carrier->getTaxesRate(); + + return [ + 'identifier' => 'shipping', + 'description' => 'Shipping Costs', + 'vatPercentage' => $shippingCostsTax, + 'quantity' => 1, + 'price' => $shippingCost, + 'priceExcl' => $shippingCost, + ]; + } + + public function getBirthDate() + { + return date( + 'd-m-Y', + strtotime( + Tools::getValue('customerbirthdate_y_billing_billink') . '-' . Tools::getValue( + 'customerbirthdate_m_billing_billink' + ) . '-' . Tools::getValue('customerbirthdate_d_billing_billink') + ) + ); + } + + public function getShippingAddress() + { + if (!empty($this->shipping_address)) { + $country = new Country($this->shipping_address->id_country); + + $address_components = $this->getAddressComponents($this->shipping_address->address1); // phpcs:ignore + $street = $address_components['street']; + if (empty($address_components['house_number'])) { + $houseNumber = $this->invoice_address->address2; + } else { + $houseNumber = $address_components['house_number']; + } + $houseNumberSuffix = $address_components['number_addition']; + $birthDate = $this->getBirthDate(); + $zipcode = $this->shipping_address->postcode; + $city = $this->shipping_address->city; + + $carrierHandler = new CarrierHandler($this->cart); + $sendCloudData = $carrierHandler->handleSendCloud(); + + if ($sendCloudData) { + $street = $sendCloudData['street']; + $houseNumber = $sendCloudData['houseNumber']; + $houseNumberSuffix = $sendCloudData['houseNumberSuffix']; + $zipcode = $sendCloudData['zipcode']; + $city = $sendCloudData['city']; + $country = $sendCloudData['country']; + } + + $payload = [ + 'recipient' => [ + 'category' => RecipientCategory::PERSON, + 'careOf' => $this->shipping_address->firstname . ' ' . $this->shipping_address->lastname, + 'firstName' => $this->shipping_address->firstname, + 'lastName' => $this->shipping_address->lastname, + 'birthDate' => $birthDate, + 'title' => Tools::getValue('bpe_billink_person_gender'), + 'initials' => $this->initials($this->shipping_address->firstname . ' ' . $this->shipping_address->lastname), + ], + 'address' => [ + 'street' => $street, + 'houseNumber' => $houseNumber, + 'houseNumberAdditional' => $houseNumberSuffix, + 'zipcode' => $zipcode, + 'city' => $city, + 'country' => Tools::strtoupper($country->iso_code), + ], + ]; + + if (self::CUSTOMER_TYPE_B2C != $this->customerType + && ($this->companyExists($this->shipping_address->company) ? $this->shipping_address->company : null)) { + $payload['recipient']['careOf'] = $this->shipping_address->company; + $payload['recipient']['category'] = 'B2B'; + } + + return $payload; + } + + return null; + } +} diff --git a/library/checkout/buckaroopaypalcheckout.php b/library/checkout/buckaroopaypalcheckout.php deleted file mode 100644 index 05e2d9c3e..000000000 --- a/library/checkout/buckaroopaypalcheckout.php +++ /dev/null @@ -1,50 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; - -class BuckarooPayPalCheckout extends Checkout -{ - - protected $customVars = array(); - final public function setCheckout() - { - parent::setCheckout(); - } - - public function startPayment() - { - $this->payment_response = $this->payment_request->pay($this->customVars); - } - - public function isRedirectRequired() - { - return true; - } - - public function isVerifyRequired() - { - return false; - } - - protected function initialize() - { - $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_PAYPAL); - } -} diff --git a/library/checkout/cashticketcheckout.php b/library/checkout/cashticketcheckout.php index 76842f719..737a46635 100644 --- a/library/checkout/cashticketcheckout.php +++ b/library/checkout/cashticketcheckout.php @@ -1,33 +1,26 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -include_once(_PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; class CashTicketCheckout extends Checkout { - final public function setCheckout() { - parent::setCheckout(); - - //$this->payment_request->description = 'Pay with cash ticket'; } public function isRedirectRequired() diff --git a/library/checkout/checkout.php b/library/checkout/checkout.php index c6b6d197c..ed3bc10d0 100644 --- a/library/checkout/checkout.php +++ b/library/checkout/checkout.php @@ -1,7 +1,5 @@ 'BuckarooPayPal', - Checkout::CHECKOUT_TYPE_EMPAYMENT => 'Empayment', - Checkout::CHECKOUT_TYPE_IDEAL => 'IDeal', - Checkout::CHECKOUT_TYPE_DIRECTDEBIT => 'DirectDebit', + public static $payment_method_type = [ + Checkout::CHECKOUT_TYPE_PAYPAL => 'PayPal', + Checkout::CHECKOUT_TYPE_IDEAL => 'IDeal', + Checkout::CHECKOUT_TYPE_PAYBYBANK => 'PayByBank', Checkout::CHECKOUT_TYPE_SEPADIRECTDEBIT => 'SepaDirectdebit', - Checkout::CHECKOUT_TYPE_GIROPAY => 'Giropay', - Checkout::CHECKOUT_TYPE_KBC => 'Kbc', - Checkout::CHECKOUT_TYPE_MISTERCASH => 'MisterCash', - Checkout::CHECKOUT_TYPE_GIFTCARD => 'GiftCard', - Checkout::CHECKOUT_TYPE_CREDITCARD => 'CreditCard', - Checkout::CHECKOUT_TYPE_SOFORTBANKING => 'Sofortbanking', - Checkout::CHECKOUT_TYPE_TRANSFER => 'Transfer', - Checkout::CHECKOUT_TYPE_AFTERPAY => 'AfterPay', - Checkout::CHECKOUT_TYPE_KLARNA => 'Klarna', - Checkout::CHECKOUT_TYPE_APPLEPAY => 'ApplePay', - Checkout::CHECKOUT_TYPE_BELFIUS => 'Belfius', - Checkout::CHECKOUT_TYPE_IDIN => 'Idin', - ); - - //protected $current_order; + Checkout::CHECKOUT_TYPE_GIROPAY => 'Giropay', + Checkout::CHECKOUT_TYPE_KBC => 'Kbc', + Checkout::CHECKOUT_TYPE_BANCONTACTMRCASH => 'Bancontactmrcash', + Checkout::CHECKOUT_TYPE_GIFTCARD => 'GiftCard', + Checkout::CHECKOUT_TYPE_CREDITCARD => 'CreditCard', + Checkout::CHECKOUT_TYPE_SOFORTBANKING => 'Sofortbanking', + Checkout::CHECKOUT_TYPE_TRANSFER => 'Transfer', + Checkout::CHECKOUT_TYPE_AFTERPAY => 'AfterPay', + Checkout::CHECKOUT_TYPE_KLARNA => 'Klarna', + Checkout::CHECKOUT_TYPE_APPLEPAY => 'ApplePay', + Checkout::CHECKOUT_TYPE_BELFIUS => 'Belfius', + Checkout::CHECKOUT_TYPE_IDIN => 'Idin', + Checkout::CHECKOUT_TYPE_IN3 => 'In3', + Checkout::CHECKOUT_TYPE_IN3Old => 'In3Old', + Checkout::CHECKOUT_TYPE_BILLINK => 'Billink', + Checkout::CHECKOUT_TYPE_EPS => 'Eps', + Checkout::CHECKOUT_TYPE_PAYCONIQ => 'Payconiq', + Checkout::CHECKOUT_TYPE_PAYPEREMAIL => 'PayPerEmail', + Checkout::CHECKOUT_TYPE_PRZELEWY24 => 'Przelewy24', + Checkout::CHECKOUT_TYPE_TINKA => 'Tinka', + Checkout::CHECKOUT_TYPE_TRUSTLY => 'Trustly', + Checkout::CHECKOUT_TYPE_WECHATPAY => 'Wechatpay', + Checkout::CHECKOUT_TYPE_ALIPAY => 'Alipay', + ]; + protected $payment_request; protected $payment_response; /* @var $cart CartCore */ @@ -91,21 +109,41 @@ public function getReference() { return $this->reference; } - + public $platformName; + public $platformVersion; + public $moduleSupplier; + public $moduleName; + public $moduleVersion; public $returnUrl; + public $pushUrl; + + /** @var Buckaroo3 */ + public $module; + + /** + * @var BuckarooConfigService + */ + protected $buckarooConfigService; + + /** + * @var BuckarooFeeService + */ + protected $buckarooFeeService; public function __construct($cart) { $this->initialize(); - - $this->cart = $cart; - $this->customer = new Customer($cart->id_customer); - $this->invoice_address = new Address((int) ($cart->id_address_invoice)); + $this->module = \Module::getInstanceByName('buckaroo3'); + $this->cart = $cart; + $this->customer = new Customer($cart->id_customer); + $this->invoice_address = new Address((int) $cart->id_address_invoice); $this->shipping_address = null; if ($cart->id_address_invoice != $cart->id_address_delivery) { - $this->shipping_address = new Address((int) ($cart->id_address_delivery)); + $this->shipping_address = new Address((int) $cart->id_address_delivery); } $this->products = $this->cart->getProducts(); + $this->buckarooConfigService = $this->module->getBuckarooConfigService(); + $this->buckarooFeeService = $this->module->getBuckarooFeeService(); } abstract protected function initialize(); @@ -113,43 +151,78 @@ abstract protected function initialize(); protected function setCheckout() { $currency = new Currency((int) $this->cart->id_currency); - $this->payment_request->amountDedit = $originalAmount = + $this->payment_request->amountDebit = $originalAmount = (string) ((float) $this->cart->getOrderTotal(true, Cart::BOTH)); - $payment_method = Tools::getValue('method'); - if ($payment_method=='bancontactmrcash') { - $payment_method='MISTERCASH'; + $buckarooFee = $this->getBuckarooFee(); + + if ($buckarooFee > 0) { + $this->updateOrderFee($buckarooFee); } - if ($buckarooFee = Config::get('BUCKAROO_'.Tools::strtoupper($payment_method).'_FEE')) { - if ($buckarooFee>0) { - $this->payment_request->amountDedit = - (string) ((float) $this->payment_request->amountDedit + (float) $buckarooFee); - Db::getInstance()->insert('buckaroo_fee', array( - 'reference' => $this->reference, - 'id_cart' => $this->cart->id, - 'buckaroo_fee' => (float) $buckarooFee, - 'currency' => $currency->iso_code, - )); - - $orderFeeNumber = new Number((string) 0); - $totalPrice = new Number((string) ($originalAmount + $buckarooFee)); - $orderFeeNumber->plus($totalPrice); - - $orderid = Order::getOrderByCartId($this->cart->id); - $order = new Order($orderid); - $order->total_paid_tax_excl = $orderFeeNumber->plus(new Number((string) $order->total_paid_tax_excl)); - $order->total_paid_tax_incl = $orderFeeNumber->plus(new Number((string) $order->total_paid_tax_incl)); - $order->total_paid = $totalPrice->toPrecision(2); - $order->update(); + $this->payment_request->currency = $currency->iso_code; + $this->payment_request->description = Configuration::get('BUCKAROO_TRANSACTION_LABEL'); + $reference = $this->reference . '_' . $this->cart->id; + $this->payment_request->invoiceId = $reference; + $this->payment_request->orderId = $reference; + $this->payment_request->platformName = $this->platformName; + $this->payment_request->platformVersion = $this->platformVersion; + $this->payment_request->moduleSupplier = $this->moduleSupplier; + $this->payment_request->moduleName = $this->moduleName; + $this->payment_request->moduleVersion = $this->moduleVersion; + $this->payment_request->returnUrl = $this->returnUrl; + $this->payment_request->pushUrl = $this->pushUrl; + } + + public function getBuckarooFee() + { + $payment_method = Tools::getValue('method'); + if ($buckarooFee = $this->buckarooFeeService->getBuckarooFeeValue($payment_method)) { + // Remove any whitespace from the fee. + $buckarooFee = trim($buckarooFee); + + if (strpos($buckarooFee, '%') !== false) { + // The fee includes a percentage sign, so treat it as a percentage. + // Remove the percentage sign and convert the remaining value to a float. + $buckarooFee = str_replace('%', '', $buckarooFee); + $buckarooFee = (float) $this->payment_request->amountDebit * ((float) $buckarooFee / 100); + } else { + $buckarooFee = (float) $buckarooFee; } + + return $buckarooFee; } - $this->payment_request->currency = $currency->iso_code; - $this->payment_request->description = Configuration::get('BUCKAROO_TRANSACTION_LABEL'); - $reference = $this->reference . '_' . $this->cart->id; - $this->payment_request->invoiceId = $reference; - $this->payment_request->orderId = $reference; - $this->payment_request->returnUrl = $this->returnUrl; + } + + /** + * @throws PrestaShopDatabaseException + * @throws PrestaShopException + * @throws Exception + */ + public function updateOrderFee($buckarooFee) + { + $this->payment_request->amountDebit = (string) ((float) $this->payment_request->amountDebit + $buckarooFee); + $currency = new Currency((int) $this->cart->id_currency); + Db::getInstance()->insert('buckaroo_fee', [ + 'reference' => $this->reference, + 'id_cart' => $this->cart->id, + 'buckaroo_fee' => $buckarooFee, + 'currency' => $currency->iso_code, + ]); + + $orderFeeNumber = new DecimalNumber((string) 0); + $originalAmount = (float) $this->cart->getOrderTotal(true, Cart::BOTH); + $totalPrice = new DecimalNumber((string) ($originalAmount + $buckarooFee)); + $orderFeeNumber->plus($totalPrice); + + $orderid = Order::getIdByCartId($this->cart->id); + + $order = new Order($orderid); + + $order->total_paid_tax_excl = $orderFeeNumber->plus(new DecimalNumber((string) $order->total_paid_tax_excl)); + $order->total_paid_tax_incl = $orderFeeNumber->plus(new DecimalNumber((string) $order->total_paid_tax_incl)); + $order->total_paid = $totalPrice->toPrecision(2); + $order->update(); } public function startPayment() @@ -162,11 +235,12 @@ public function isRequestSucceeded() if (!empty($this->payment_response) && $this->payment_response->hasSucceeded()) { return true; } + return false; } abstract public function isRedirectRequired(); - + abstract public function isVerifyRequired(); public function doRedirect($redirect_url = null) @@ -180,9 +254,10 @@ public function doRedirect($redirect_url = null) public function getStatusCode() { - if (isset($this->payment_response) && isset($this->payment_response->statuscode)) { + if (isset($this->payment_response, $this->payment_response->statuscode)) { return $this->payment_response->statuscode; } + return 0; } @@ -191,40 +266,49 @@ public function getResponse() if (isset($this->payment_response)) { return $this->payment_response; } + return null; } /** * Given an checkout_type_id, return an instance of that subclass. - * @param int checkout_type_id - * @param array $data + * + * @param $payment_method + * @param $cart + * * @return Address subclass + * + * @throws Exception */ final public static function getInstance($payment_method, $cart) { + $class_name = self::$payment_method_type[$payment_method] . 'Checkout'; + checkoutautoload($class_name); // Try to find class in api directory - $class_name = self::$payment_method_type[$payment_method] . "Checkout"; - checkoutautoload($class_name); //Try to find class in api directory if (!class_exists($class_name)) { - throw new Exception('Payment method not found', '1'); //TODO: ExceptionPayment + throw new Exception('Payment method not found', '1'); // TODO: ExceptionPayment } + return new $class_name($cart); } /** * Given an checkout_type_id, return an instance of that subclass. + * * @param int checkout_type_id * @param array $data + * * @return Address subclass */ final public static function getInstanceRefund($payment_method) { $payment_method = Tools::strtolower($payment_method); - $class_name = self::$payment_method_type[$payment_method] . "Checkout"; - checkoutautoload($class_name); //Try to find class in api directory + $class_name = self::$payment_method_type[$payment_method] . 'Checkout'; + checkoutautoload($class_name); // Try to find class in api directory if (!class_exists($class_name)) { - throw new Exception('Payment method not found', '1'); //TODO: ExceptionPayment + throw new Exception('Payment method not found', '1'); // TODO: ExceptionPayment } + return new $class_name(null); } @@ -232,22 +316,23 @@ final public static function getInstanceRefund($payment_method) * Split address to parts * * @param string $address + * * @return array */ protected function getAddressComponents($address) { - $result = array(); - $result['house_number'] = ''; + $result = []; + $result['house_number'] = ''; $result['number_addition'] = ''; - $address = str_replace(array('?', '*', '[', ']', ',', '!'), ' ', $address); + $address = str_replace(['?', '*', '[', ']', ',', '!'], ' ', $address); $address = preg_replace('/\s\s+/', ' ', $address); preg_match('/^([0-9]*)(.*?)([0-9]+)(.*)/', $address, $matches); if (!empty($matches[2])) { - $result['street'] = trim($matches[1] . $matches[2]); - $result['house_number'] = trim($matches[3]); + $result['street'] = trim($matches[1] . $matches[2]); + $result['house_number'] = trim($matches[3]); $result['number_addition'] = trim($matches[4]); } else { $result['street'] = $address; @@ -255,15 +340,122 @@ protected function getAddressComponents($address) return $result; } + + /** + * Check if company exists + * + * @param mixed $company + * + * @return bool + */ + protected function companyExists($company) + { + if (!is_string($company)) { + return false; + } + + return strlen(trim($company)) !== 0; + } + + public function getPhone($address) + { + $phone = ''; + if (!empty($address->phone_mobile)) { + $phone = $address->phone_mobile; + } + if (empty($phone) && !empty($address->phone)) { + $phone = $address->phone; + } + + return $phone; + } + + protected function prepareWrappingArticle($wrappingVat) + { + $wrappingCost = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); + if ($wrappingCost <= 0) { + return []; + } + + return [ + 'identifier' => '0', + 'quantity' => '1', + 'price' => $wrappingCost, + 'vatPercentage' => $wrappingVat, + 'description' => 'Wrapping', + ]; + } + + protected function prepareProductArticles() + { + $articles = []; + foreach ($this->products as $item) { + $tmp = []; + $tmp['identifier'] = $item['id_product']; + $tmp['quantity'] = $item['quantity']; + $tmp['price'] = round($item['price_wt'], 2); + $tmp['vatPercentage'] = $item['rate']; + $tmp['description'] = $item['name']; + $articles[] = $tmp; + } + + return $articles; + } + + protected function mergeProductsBySKU($products) + { + $mergeProducts = []; + foreach ($products as $item) { + if (!isset($mergeProducts[$item['identifier']])) { + $mergeProducts[$item['identifier']] = $item; + } else { + ++$mergeProducts[$item['identifier']]['quantity']; + } + } + + return $mergeProducts; + } + + protected function prepareShippingCostArticle() + { + $shippingCost = round($this->cart->getOrderTotal(true, CartCore::ONLY_SHIPPING), 2); + if ($shippingCost <= 0) { + return null; + } + + $carrier = new Carrier((int) $this->cart->id_carrier, Configuration::get('PS_LANG_DEFAULT')); + + $shippingCostsTax = (version_compare(_PS_VERSION_, '1.7.6.0', '<=')) + ? $carrier->getTaxesRate(Address::initialize()) + : $carrier->getTaxesRate(); + + return [ + 'identifier' => 'shipping', + 'description' => 'Shipping Costs', + 'vatPercentage' => $shippingCostsTax, + 'quantity' => 1, + 'price' => $shippingCost, + ]; + } + + public function initials($str) + { + $ret = ''; + foreach (explode(' ', $str) as $word) { + $ret .= Tools::strtoupper($word[0]) . '.'; + } + + return $ret; + } } function checkoutautoload($payment_method) { $class_name = Tools::strtolower($payment_method); - $path = dirname(__FILE__) . "/{$class_name}.php"; + $path = dirname(__FILE__) . "/{$class_name}.php"; if (file_exists($path)) { require_once $path; } else { - die('Class not found!'); + exit('Class not found!'); } } diff --git a/library/checkout/creditcardcheckout.php b/library/checkout/creditcardcheckout.php index 65e293fb7..2082d65a9 100644 --- a/library/checkout/creditcardcheckout.php +++ b/library/checkout/creditcardcheckout.php @@ -1,7 +1,5 @@ payment_request->issuer = Tools::getValue('BPE_CreditCard'); } public function startPayment() diff --git a/library/checkout/directdebitcheckout.php b/library/checkout/directdebitcheckout.php deleted file mode 100644 index de964b286..000000000 --- a/library/checkout/directdebitcheckout.php +++ /dev/null @@ -1,150 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -include_once(_PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'); - -class DirectdebitCheckout extends Checkout -{ - - protected $customVars = array(); - - final public function setCheckout() - { - - parent::setCheckout(); - - - $this->payment_request->customeraccountname = (string)Tools::getValue('bpe_directdebit_bank_account_holder'); - $this->payment_request->customeraccountnumber = (string)Tools::getValue('bpe_directdebit_bank_account_number'); - - $sql = 'SELECT type FROM ' . _DB_PREFIX_ . 'gender where id_gender = ' . (int)($this->customer->id_gender); - $gender_type = Db::getInstance()->getValue($sql); - - $this->customVars['CustomerFirstName'] = $this->invoice_address->firstname; - $this->customVars['CustomerLastName'] = $this->invoice_address->lastname; - $this->customVars['Customeremail'] = !empty($this->customer->email) ? $this->customer->email : ''; - $this->customVars['Customergender'] = ($gender_type == 0) ? '1' : ($gender_type == 1) ? '2' : '0'; - - if ((int)Configuration::get('BUCKAROO_DD_USECREDITMANAGMENT')) { - $this->payment_request->usecreditmanagment = 1; - $sql = 'SELECT type FROM ' . _DB_PREFIX_ . 'gender where id_gender = ' . $this->customer->id_gender; - $gender_type = Db::getInstance()->getValue($sql); - - $this->customVars['MaxReminderLevel'] = (int)Configuration::get('BUCKAROO_DD_MAXREMINDERLEVEL'); - $this->customVars['CustomerCode'] = $this->cart->id_customer; - //$this->customVars['CompanyName'] = ''; - $this->customVars['CustomerInitials'] = initials($this->invoice_address->firstname); - if (Tools::getIsset($this->customer->birthday)) { - $this->customVars['CustomerBirthDate'] = date( - 'Y-m-d', - strtotime($this->customer->birthday) - ); - } //1983-09-28 - - //Resolve phone number - if (Tools::getValue('booDirectdebitPhone')) { - $number = Buckaroo3::cleanUpPhone(Tools::getValue('booDirectdebitPhone')); - - if ($number['type'] == 'mobile') { - $this->customVars['MobilePhoneNumber'] = $number['phone']; - } else { - $this->customVars['PhoneNumber'] = $number['phone']; - } - } else { - if (Tools::getValue('booDirectdebitPhoneLand')) { - $number = Buckaroo3::cleanUpPhone(Tools::getValue('booDirectdebitPhoneLand')); - - if ($number['type'] == 'mobile') { - $this->customVars['MobilePhoneNumber'] = $number['phone']; - } else { - $this->customVars['PhoneNumber'] = $number['phone']; - } - } - if (Tools::getValue('booDirectdebitPhoneMobile')) { - $number = Buckaroo3::cleanUpPhone(Tools::getValue('booDirectdebitPhoneMobile')); - - if ($number['type'] == 'mobile') { - $this->customVars['MobilePhoneNumber'] = $number['phone']; - } else { - $this->customVars['PhoneNumber'] = $number['phone']; - } - } - } - - $address_components = $this->getAddressComponents($this->invoice_address->address1); - //customer address - $this->customVars['ADDRESS']['ZipCode'] = $this->invoice_address->postcode; - $this->customVars['ADDRESS']['City'] = $this->invoice_address->city; - if (!empty($address_components['street'])) { - $this->customVars['ADDRESS']['Street'] = $address_components['street']; - } - if (!empty($address_components['house_number'])) { - $this->customVars['ADDRESS']['HouseNumber'] = $address_components['house_number']; - } - if (!empty($address_components['number_addition'])) { - $this->customVars['ADDRESS']['HouseNumberSuffix'] = $address_components['number_addition']; - } - $country = new Country($this->invoice_address->id_country); - $this->customVars['ADDRESS']['Country'] = Tools::strtoupper($country->iso_code); - - $sepa_dd = Configuration::get('BUCKAROO_DD_PAYMENT'); - if (!empty($sepa_dd)) { - $sepa_dd = unserialize($sepa_dd); - $this->customVars['PaymentMethodsAllowed'] = implode(",", $sepa_dd); - } - - //invoice - $this->customVars['InvoiceDate'] = date( - 'Y-m-d', - strtotime('now + ' . (int)Configuration::get('BUCKAROO_DD_INVOICEDELAY') . ' day') - ); - $this->customVars['DateDue'] = date( - 'Y-m-d', - strtotime( - $this->customVars['InvoiceDate'] . ' + ' . (int)Configuration::get('BUCKAROO_DD_DATEDUE') . ' day' - ) - ); - - $this->customVars['AmountVat'] = (string)round( - ($this->cart->getOrderTotal(true) - $this->cart->getOrderTotal(false)), - 2 - ); - } - } - - public function isRedirectRequired() - { - return false; - } - - public function isVerifyRequired() - { - return false; - } - - public function startPayment() - { - $this->payment_response = $this->payment_request->payDirectDebit($this->customVars); - } - - protected function initialize() - { - $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_DIRECTDEBIT); - } -} diff --git a/library/checkout/empaymentcheckout.php b/library/checkout/empaymentcheckout.php deleted file mode 100644 index 8128df448..000000000 --- a/library/checkout/empaymentcheckout.php +++ /dev/null @@ -1,70 +0,0 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -include_once(_PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'); - -class EmpaymentCheckout extends Checkout -{ - - protected $customVars = array(); - - final public function setCheckout() - { - parent::setCheckout(); - $address_components = $this->getAddressComponents($this->invoice_address->address1); - $this->customVars['CustomerAccountNumber'] = (string)Tools::getValue('empayment_account_number'); - $this->customVars['emailAddress'] = $this->customer->email; - $this->customVars['FirstName'] = $this->invoice_address->firstname; - $this->customVars['LastName'] = $this->invoice_address->lastname; - $this->customVars['Initials'] = $this->invoice_address->firstname{0} . ". " . $this->invoice_address->lastname{0} . ".";//phpcs:ignore - $this->customVars['ADDRESS'][0]['AddressType'] = 'HOM'; - $this->customVars['ADDRESS'][0]['ZipCode'] = $this->invoice_address->postcode; - $this->customVars['ADDRESS'][0]['City'] = $this->invoice_address->city; - if (!empty($address_components['street'])) { - $this->customVars['ADDRESS'][0]['Street'] = $address_components['street']; - } - if (!empty($address_components['house_number'])) { - $this->customVars['ADDRESS'][0]['Number'] = $address_components['house_number']; - } - if (!empty($address_components['number_addition'])) { - $this->customVars['ADDRESS'][0]['NumberExtension'] = $address_components['number_addition']; - } - $this->customVars['ADDRESS'][0]['Country'] = '528'; - } - - public function isRedirectRequired() - { - return true; - } - - public function isVerifyRequired() - { - return false; - } - - public function startPayment() - { - $this->payment_response = $this->payment_request->emPay($this->customVars); - } - - protected function initialize() - { - $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_EMPAYMENT); - } -} diff --git a/library/checkout/epscheckout.php b/library/checkout/epscheckout.php new file mode 100644 index 000000000..a099c3edb --- /dev/null +++ b/library/checkout/epscheckout.php @@ -0,0 +1,47 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class EpsCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return false; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_EPS); + } +} diff --git a/library/checkout/giftcardcheckout.php b/library/checkout/giftcardcheckout.php index 3d212aeef..d6e27c517 100644 --- a/library/checkout/giftcardcheckout.php +++ b/library/checkout/giftcardcheckout.php @@ -1,32 +1,36 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -include_once(_PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; class GiftCardCheckout extends Checkout { - + /** + * @throws PrestaShopDatabaseException + * @throws PrestaShopException + */ final public function setCheckout() { parent::setCheckout(); - } + $this->customVars = [ + 'servicesSelectableByClient' => Configuration::get('BUCKAROO_GIFTCARD_ALLOWED_CARDS'), + 'continueOnIncomplete' => '1', + ]; + } public function startPayment() { diff --git a/library/checkout/giropaycheckout.php b/library/checkout/giropaycheckout.php index e84de59df..4ae5686f6 100644 --- a/library/checkout/giropaycheckout.php +++ b/library/checkout/giropaycheckout.php @@ -1,7 +1,5 @@ payment_request->issuer = Tools::getValue('BPE_Issuer'); } - public function startVerify($customVars = array()) + public function startVerify($customVars = []) { $this->payment_response = $this->payment_request->verify($customVars); } diff --git a/library/checkout/in3checkout.php b/library/checkout/in3checkout.php new file mode 100644 index 000000000..1ae1c8180 --- /dev/null +++ b/library/checkout/in3checkout.php @@ -0,0 +1,232 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class In3Checkout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + + $this->addRequiredDescription(); + $this->customVars = [ + 'invoiceDate' => date('d-m-Y'), + 'billing' => $this->getBillingAddress(), + 'articles' => $this->getArticles(), + 'shipping' => $this->getShippingAddress(), + ]; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_IN3); + } + + protected function addRequiredDescription() + { + if (empty($this->payment_request->description)) { + $this->payment_request->description = $this->payment_request->invoiceId; + } + } + + /** + * Get customer phone + * + * @param $address + * + * @return string + */ + public function getPhone($address) + { + // First check if 'customer_phone' value is available. + $phone = Tools::getValue('customer_phone'); + + // If it's not available, then check for 'phone_mobile' in the address. + if (empty($phone) && !empty($address->phone_mobile)) { + $phone = $address->phone_mobile; + } + + // If both above are not available, then check for 'phone' in the address. + if (empty($phone) && !empty($address->phone)) { + $phone = $address->phone; + } + + return $phone; + } + + /** + * Get order articles + * + * @return array + */ + protected function getArticles() + { + $total = 0; + $products = []; + foreach ($this->products as $item) { + $products[] = [ + 'description' => $item['name'], + 'identifier' => $item['id_product'], + 'quantity' => $item['quantity'], + 'price' => round($item['price_wt'], 2), + 'vatPercentage' => $item['rate'], + ]; + + $total += round($item['price_wt'], 2); + } + + $wrapping = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); + if ($wrapping > 0) { + $products[] = [ + 'description' => 'Wrapping', + 'identifier' => 'WRAP', + 'quantity' => 1, + 'price' => round($wrapping, 2), + ]; + $total += round($wrapping, 2); + } + + $discounts = $this->cart->getOrderTotal(true, CartCore::ONLY_DISCOUNTS); + if ($discounts > 0) { + $products[] = [ + 'description' => 'Discounts', + 'identifier' => 'DISC', + 'quantity' => 1, + 'price' => -round($discounts, 2), + ]; + $total -= round($discounts, 2); + } + + $shipping = $this->cart->getOrderTotal(true, CartCore::ONLY_SHIPPING); + if ($shipping > 0) { + $products[] = [ + 'description' => 'Shipping', + 'identifier' => 'SHIP', + 'quantity' => 1, + 'price' => round($shipping, 2), + ]; + $total += round($shipping, 2); + } + + if (abs($this->payment_request->amountDebit - $total) >= 0.01) { + $products[] = [ + 'description' => 'Other fee/discount', + 'identifier' => 'OFees', + 'quantity' => 1, + 'price' => round($this->payment_request->amountDebit - $total, 2), + ]; + } + + return $products; + } + + /** + * Get billing address + * + * @return array + */ + protected function getBillingAddress() + { + $data = [ + 'recipient' => [ + 'category' => 'B2C', + 'initials' => $this->initials($this->invoice_address->firstname), + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + 'birthDate' => date( + 'Y-m-d', + strtotime( + Tools::getValue('customerbirthdate_y_billing') . '-' . + Tools::getValue('customerbirthdate_m_billing') . '-' . + Tools::getValue('customerbirthdate_d_billing') + ) + ), + 'customerNumber' => ($this->cart->id_customer) ?: 'guest', + 'phone' => $this->getPhone($this->invoice_address), + 'country' => Tools::strtoupper( + (new Country($this->invoice_address->id_country))->iso_code + ), + ], + 'phone' => [ + 'phone' => $this->getPhone($this->invoice_address), + ], + 'email' => $this->customer->email, + ]; + + $data['address'] = $this->getAddressData($this->invoice_address); + + return $data; + } + + protected function getAddressData($address) + { + $address_components = $this->getAddressComponents($address->address1); + + if (empty($address_components['house_number'])) { + $address_components['house_number'] = $address->address2; + } + + $data = [ + 'street' => $address_components['street'], + 'houseNumber' => $address_components['house_number'], + 'zipcode' => $address->postcode, + 'city' => $address->city, + 'country' => Tools::strtoupper( + (new Country($address->id_country))->iso_code + ), + ]; + + if (!empty($address_components['number_addition'])) { + $data['houseNumberAdditional'] = $address_components['number_addition']; + } + + return $data; + } + + /** + * Get shipping address + * + * @return array|null + */ + private function getShippingAddress() + { + if (!empty($this->shipping_address)) { + return [ + 'address' => $this->getAddressData($this->shipping_address), + ]; + } + + return null; + } +} diff --git a/library/checkout/in3oldcheckout.php b/library/checkout/in3oldcheckout.php new file mode 100644 index 000000000..693195242 --- /dev/null +++ b/library/checkout/in3oldcheckout.php @@ -0,0 +1,212 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class In3OldCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + + $this->addRequiredDescription(); + + $this->customVars = [ + 'description' => $this->payment_request->invoiceId, + 'invoiceDate' => date('d-m-Y'), + 'customerType' => 'Debtor', + 'email' => $this->customer->email, + 'phone' => ['mobile' => $this->getPhone($this->invoice_address)], + 'articles' => $this->getArticles(), + 'customer' => $this->getCustomer(), + 'address' => $this->getAddress(), + ]; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_IN3OLD); + } + + protected function addRequiredDescription() + { + if (empty($this->payment_request->description)) { + $this->payment_request->description = $this->payment_request->invoiceId; + } + } + + /** + * Get customer data + * + * @return array + */ + protected function getCustomer() + { + return [ + 'lastName' => $this->invoice_address->lastname, + 'culture' => 'nl-NL', + 'initials' => $this->initials($this->invoice_address->firstname), + 'phone' => $this->getPhone($this->invoice_address), + 'email' => $this->customer->email, + 'birthDate' => date( + 'Y-m-d', + strtotime( + Tools::getValue('customerbirthdate_y_billing') . '-' . + Tools::getValue('customerbirthdate_m_billing') . '-' . + Tools::getValue('customerbirthdate_d_billing') + ) + ), + ]; + } + + /** + * Get customer address + * + * @return array + */ + protected function getAddress() + { + $address_components = $this->getAddressComponents($this->invoice_address->address1); + if (empty($address_components['house_number'])) { + $address_components['house_number'] = $this->invoice_address->address2; + } + $data = [ + 'street' => $address_components['street'], + 'houseNumber' => $address_components['house_number'], + 'zipcode' => $this->invoice_address->postcode, + 'city' => $this->invoice_address->city, + 'country' => Tools::strtoupper( + (new Country($this->invoice_address->id_country))->iso_code + ), + ]; + + if (!empty($address_components['number_addition'])) { + return array_merge( + $data, + ['houseNumberAdditional' => $address_components['number_addition']] + ); + } + + return $data; + } + + /** + * Get customer phone + * + * @param $address + * + * @return string + */ + public function getPhone($address) + { + // First check if 'customer_phone' value is available. + $phone = Tools::getValue('customer_phone'); + + // If it's not available, then check for 'phone_mobile' in the address. + if (empty($phone) && !empty($address->phone_mobile)) { + $phone = $address->phone_mobile; + } + + // If both above are not available, then check for 'phone' in the address. + if (empty($phone) && !empty($address->phone)) { + $phone = $address->phone; + } + + return $phone; + } + + /** + * Get order articles + * + * @return array + */ + protected function getArticles() + { + $total = 0; + $products = []; + foreach ($this->products as $item) { + $products[] = [ + 'description' => $item['name'], + 'identifier' => $item['id_product'], + 'quantity' => $item['quantity'], + 'price' => round($item['price_wt'], 2), + ]; + + $total += round($item['price_wt'], 2); + } + + $wrapping = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); + if ($wrapping > 0) { + $products[] = [ + 'description' => 'Wrapping', + 'identifier' => 'WRAP', + 'quantity' => 1, + 'price' => round($wrapping, 2), + ]; + $total += round($wrapping, 2); + } + + $discounts = $this->cart->getOrderTotal(true, CartCore::ONLY_DISCOUNTS); + if ($discounts > 0) { + $products[] = [ + 'description' => 'Discounts', + 'identifier' => 'DISC', + 'quantity' => 1, + 'price' => -round($discounts, 2), + ]; + $total -= round($discounts, 2); + } + + $shipping = $this->cart->getOrderTotal(true, CartCore::ONLY_SHIPPING); + if ($shipping > 0) { + $products[] = [ + 'description' => 'Shipping', + 'identifier' => 'SHIP', + 'quantity' => 1, + 'price' => round($shipping, 2), + ]; + $total += round($shipping, 2); + } + + if (abs($this->payment_request->amountDebit - $total) >= 0.01) { + $products[] = [ + 'description' => 'Other fee/discount', + 'identifier' => 'OFees', + 'quantity' => 1, + 'price' => round($this->payment_request->amountDebit - $total, 2), + ]; + } + + return $products; + } +} diff --git a/library/checkout/index.php b/library/checkout/index.php index c8e9f2af3..97ec565fb 100644 --- a/library/checkout/index.php +++ b/library/checkout/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/library/checkout/kbccheckout.php b/library/checkout/kbccheckout.php index 41830fda4..30289d164 100644 --- a/library/checkout/kbccheckout.php +++ b/library/checkout/kbccheckout.php @@ -1,7 +1,5 @@ invoice_address->phone_mobile)) { - $phone = $this->invoice_address->phone_mobile; - } - if (empty($phone) && !empty($this->invoice_address->phone)) { - $phone = $this->invoice_address->phone; - } + $country = new Country($this->invoice_address->id_country); - $ShippingCost = $this->cart->getOrderTotal(true, CartCore::ONLY_SHIPPING); - if ($ShippingCost > 0) { - $this->payment_request->ShippingCosts = round($ShippingCost, 2); - } + $this->customVars = [ + 'gender' => Tools::getValue('bpe_klarna_invoice_person_gender'), + 'operatingCountry' => Tools::strtoupper($country->iso_code), + 'billing' => $this->getBillingAddress(), + 'articles' => $this->getArticles(), + 'shipping' => $this->getShippingAddress(), + ]; + } - $language = Language::getIsoById((int) $this->cart->id_lang); - - $this->payment_request->BillingGender = Tools::getValue("bpe_klarna_invoice_person_gender"); - $this->payment_request->BillingFirstName = $this->invoice_address->firstname; - $this->payment_request->BillingLastName = $this->invoice_address->lastname; - $this->payment_request->BillingBirthDate = date( - 'Y-m-d', - strtotime( - Tools::getValue("customerbirthdate_y_billing") . "-" . Tools::getValue( - "customerbirthdate_m_billing" - ) . "-" . Tools::getValue("customerbirthdate_d_billing") - ) - ); - $address_components = $this->getAddressComponents($this->invoice_address->address1);//phpcs:ignore - if (empty($address_components['house_number'])) { - $address_components['house_number'] = $this->invoice_address->address2; - } - $this->payment_request->BillingStreet = $address_components['street']; - $this->payment_request->BillingHouseNumber = $address_components['house_number']; - $this->payment_request->BillingHouseNumberSuffix = $address_components['number_addition']; - $this->payment_request->BillingPostalCode = $this->invoice_address->postcode; - $this->payment_request->BillingCity = $this->invoice_address->city; - $country = new Country($this->invoice_address->id_country); - $this->payment_request->BillingCountry = Tools::strtoupper($country->iso_code); - $this->payment_request->BillingEmail = !empty($this->customer->email) ? $this->customer->email : ''; - $this->payment_request->BillingLanguage = $language; - $this->payment_request->BillingPhoneNumber = $phone; - $Discount = $this->cart->getOrderTotal(true, Cart::ONLY_DISCOUNTS); - if ($Discount > 0) { - $this->payment_request->Discount = round($Discount, 2); - } + /** + * @throws PrestaShopDatabaseException + * @throws PrestaShopException + */ + public function getBillingAddress() + { + return [ + 'recipient' => [ + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + ], + 'address' => [ + 'street' => $this->invoice_address->address1, + 'houseNumber' => $this->invoice_address->address2, + 'zipcode' => $this->invoice_address->postcode, + 'city' => $this->invoice_address->city, + 'country' => Tools::strtoupper( + (new Country($this->invoice_address->id_country))->iso_code + ), + ], + 'phone' => [ + 'mobile' => $this->getPhone($this->invoice_address) ?: $this->getPhone($this->shipping_address), + ], + 'email' => $this->customer->email, + ]; + } - $this->payment_request->AddressesDiffer = 'FALSE'; + public function getShippingAddress() + { if (!empty($this->shipping_address)) { - $shippingGender = Tools::getValue("bpe_klarna_shipping_person_gender"); - if (!$shippingGender) { - $shippingGender = Tools::getValue("bpe_klarna_invoice_person_gender"); + $country = new Country($this->invoice_address->id_country); + + $address_components = $this->getAddressComponents($this->shipping_address->address1); // phpcs:ignore + $street = $address_components['street']; + if (empty($address_components['house_number'])) { + $houseNumber = $this->invoice_address->address2; + } else { + $houseNumber = $address_components['house_number']; } - $ShippingBirthDate = date( - 'Y-m-d', - strtotime( - Tools::getValue("customerbirthdate_y_shipping") . "-" . Tools::getValue( - "customerbirthdate_m_shipping" - ) . "-" . Tools::getValue("customerbirthdate_d_shipping") - ) - ); - if (!$ShippingBirthDate) { - $ShippingBirthDate = date( - 'Y-m-d', - strtotime( - Tools::getValue("customerbirthdate_y_billing") . "-" . Tools::getValue( - "customerbirthdate_m_billing" - ) . "-" . Tools::getValue("customerbirthdate_d_billing") - ) - ); + $zipcode = $this->shipping_address->postcode; + $city = $this->shipping_address->city; + + $carrierHandler = new CarrierHandler($this->cart); + $sendCloudData = $carrierHandler->handleSendCloud(); + + if ($sendCloudData) { + $street = $sendCloudData['street']; + $houseNumber = $sendCloudData['houseNumber']; + $zipcode = $sendCloudData['zipcode']; + $city = $sendCloudData['city']; + $country = $sendCloudData['country']; } - $this->payment_request->AddressesDiffer = 'TRUE'; - $this->payment_request->ShippingGender = $shippingGender; - $this->payment_request->ShippingInitials = initials($this->shipping_address->firstname); - $this->payment_request->ShippingFirstName = $this->shipping_address->firstname; - $this->payment_request->ShippingLastName = $this->shipping_address->lastname; - $this->payment_request->ShippingBirthDate = $ShippingBirthDate; - $address_components = $this->getAddressComponents($this->shipping_address->address1);//phpcs:ignore - $this->payment_request->ShippingStreet = $address_components['street']; - $this->payment_request->ShippingHouseNumber = $address_components['house_number']; - $this->payment_request->ShippingHouseNumberSuffix = $address_components['number_addition']; - $this->payment_request->ShippingPostalCode = $this->shipping_address->postcode; - $this->payment_request->ShippingCity = $this->shipping_address->city; - $country = new Country($this->shipping_address->id_country); - $this->payment_request->ShippingCountryCode = Tools::strtoupper($country->iso_code); - $this->payment_request->ShippingEmail = Tools::getIsset( - $this->customer->email - ) ? $this->customer->email : ''; - $this->payment_request->ShippingLanguage = $language; - $phone = ''; - if (!empty($this->shipping_address->phone_mobile)) { - $phone = $this->shipping_address->phone_mobile; - } - if (empty($phone) && !empty($this->shipping_address->phone)) { - $phone = $this->shipping_address->phone; - } - $this->payment_request->ShippingPhoneNumber = $phone; + return [ + 'recipient' => [ + 'firstName' => $this->shipping_address->firstname, + 'lastName' => $this->shipping_address->lastname, + ], + 'address' => [ + 'street' => $street, + 'houseNumber' => $houseNumber, + 'zipcode' => $zipcode, + 'city' => $city, + 'country' => Tools::strtoupper($country->iso_code), + ], + 'email' => $this->customer->email, + ]; } - $carrier = new Carrier((int) $this->cart->id_carrier, Configuration::get('PS_LANG_DEFAULT')); + return null; + } + + public function getArticles() + { + $products = $this->prepareProductArticles(); + $wrappingVat = $this->buckarooConfigService->getConfigValue('klarna', 'wrapping_vat'); - if (version_compare(_PS_VERSION_, '1.7.6.0', '<=') === true) { - $address = Address::initialize(); - $this->payment_request->ShippingCostsTax = $carrier->getTaxesRate($address); - } else { - $this->payment_request->ShippingCostsTax = $carrier->getTaxesRate(); + if ($wrappingVat == null) { + $wrappingVat = 2; } + $products = array_merge($products, $this->prepareWrappingArticle($wrappingVat)); + $products = array_merge($products, $this->prepareBuckarooFeeArticle($wrappingVat)); + $mergedProducts = $this->mergeProductsBySKU($products); - if ($carrier->external_module_name == 'sendcloud') { - $sendCloudClassName = 'SendcloudServicePoint'; - $service_point = $sendCloudClassName::getFromCart($this->cart->id); - $point = $service_point->getDetails(); - $this->payment_request->ShippingStreet = $point->street; - $this->payment_request->ShippingHouseNumber = $point->house_number; - $this->payment_request->ShippingHouseNumberSuffix = ''; - $this->payment_request->ShippingPostalCode = $point->postal_code; - $this->payment_request->ShippingCity = $point->city; - $country = $point->country; + $shippingCostArticle = $this->prepareShippingCostArticle(); + if ($shippingCostArticle) { + $mergedProducts[] = $shippingCostArticle; } - $this->payment_request->CustomerIPAddress = $_SERVER["REMOTE_ADDR"]; - $this->payment_request->Accept = 'TRUE'; + return $mergedProducts; + } + + private function prepareBuckarooFeeArticle($wrappingVat) + { + $buckarooFee = $this->getBuckarooFee(); + if ($buckarooFee <= 0) { + return []; + } + + return [ + 'identifier' => '0', + 'quantity' => '1', + 'price' => round($buckarooFee, 2), + 'vatPercentage' => $wrappingVat, + 'description' => 'buckaroo_fee', + ]; } public function isRedirectRequired() @@ -163,34 +160,7 @@ public function isVerifyRequired() public function startPayment() { - $products = array(); - $taxvalues = Configuration::get('BUCKAROO_KLARNA_TAXRATE'); - if (!$taxvalues) { - $taxvalues = array(); - } else { - $taxvalues = unserialize($taxvalues); - } - foreach ($this->products as $item) { - $tmp = array(); - $tmp["ArticleDescription"] = $item['name']; - $tmp["ArticleId"] = $item['id_product']; - $tmp["ArticleQuantity"] = $item["quantity"]; - $tmp["ArticleUnitprice"] = round($item["price_wt"], 2); - $tmp["ArticleVatcategory"] = $item["rate"]; - $products[] = $tmp; - } - - $Wrapping = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); - if ($Wrapping > 0) { - $tmp = array(); - $tmp["ArticleDescription"] = 'Wrapping'; - $tmp["ArticleId"] = '0'; - $tmp["ArticleQuantity"] = '1'; - $tmp["ArticleUnitprice"] = $Wrapping; - $tmp["ArticleVatcategory"] = Configuration::get('BUCKAROO_KLARNA_WRAPPING_VAT'); - $products[] = $tmp; - } - $this->payment_response = $this->payment_request->payKlarna($products, $this->customVars); + $this->payment_response = $this->payment_request->payKlarna($this->customVars); } protected function initialize() diff --git a/library/checkout/mbwaycheckout.php b/library/checkout/mbwaycheckout.php new file mode 100644 index 000000000..b9c77e432 --- /dev/null +++ b/library/checkout/mbwaycheckout.php @@ -0,0 +1,47 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class MultibancoCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_MBWAY); + } +} diff --git a/library/checkout/mistercashcheckout.php b/library/checkout/mistercashcheckout.php deleted file mode 100644 index c4b69fe25..000000000 --- a/library/checkout/mistercashcheckout.php +++ /dev/null @@ -1,50 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - */ - -include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; - -class MisterCashCheckout extends Checkout -{ - - protected $customVars = array(); - final public function setCheckout() - { - parent::setCheckout(); - } - - public function startPayment() - { - $this->payment_response = $this->payment_request->pay($this->customVars); - } - - public function isRedirectRequired() - { - return true; - } - - public function isVerifyRequired() - { - return false; - } - - protected function initialize() - { - $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_MISTERCASH); - } -} diff --git a/library/checkout/multibancocheckout.php b/library/checkout/multibancocheckout.php new file mode 100644 index 000000000..5330bcd37 --- /dev/null +++ b/library/checkout/multibancocheckout.php @@ -0,0 +1,47 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class MultibancoCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_MULTIBANCO); + } +} diff --git a/library/checkout/paybybankcheckout.php b/library/checkout/paybybankcheckout.php new file mode 100644 index 000000000..9ddac4074 --- /dev/null +++ b/library/checkout/paybybankcheckout.php @@ -0,0 +1,53 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class PayByBankCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + + $this->payment_request->issuer = Tools::getValue('BPE_Issuer'); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + if ($this->payment_request->issuer === 'NTSBDEB1') { + return false; + } + + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_PAYBYBANK); + } +} diff --git a/library/checkout/payconiqcheckout.php b/library/checkout/payconiqcheckout.php new file mode 100644 index 000000000..94afb592e --- /dev/null +++ b/library/checkout/payconiqcheckout.php @@ -0,0 +1,47 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class PayconiqCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_PAYCONIQ); + } +} diff --git a/library/checkout/paypalcheckout.php b/library/checkout/paypalcheckout.php new file mode 100644 index 000000000..683d4a2d6 --- /dev/null +++ b/library/checkout/paypalcheckout.php @@ -0,0 +1,89 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class PayPalCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + + $sellerProtection = $this->buckarooConfigService->getConfigValue('paypal', 'seller_protection'); + + // Data required for Seller Protection payload + if ($sellerProtection == 1) { + $this->customVars = [ + 'customer' => [ + 'name' => $this->invoice_address->firstname . ' ' . $this->invoice_address->lastname, + ], + 'address' => $this->getAddress(), + 'phone' => [ + 'mobile' => $this->invoice_address->phone, + ], + ]; + } + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_PAYPAL); + } + + /** + * Get customer address + * + * @return array + */ + protected function getAddress() + { + $address_components = $this->getAddressComponents($this->invoice_address->address1); + if (empty($address_components['house_number'])) { + $address_components['house_number'] = $this->invoice_address->address2; + } + + $state = new State((int) $this->invoice_address->id_state); + $data = [ + 'street' => $address_components['street'], + 'street2' => $address_components['house_number'], + 'zipcode' => $this->invoice_address->postcode, + 'state' => $state !== null ? $state->name : null, + 'city' => $this->invoice_address->city, + 'country' => Tools::strtoupper( + (new Country($this->invoice_address->id_country))->iso_code + ), + ]; + + return $data; + } +} diff --git a/library/checkout/payperemailcheckout.php b/library/checkout/payperemailcheckout.php new file mode 100644 index 000000000..c703ee765 --- /dev/null +++ b/library/checkout/payperemailcheckout.php @@ -0,0 +1,64 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class PayPerEmailCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + + $paymentMethodsAllowed = $this->buckarooConfigService->getConfigValue('payperemail', 'allowed_payments'); + $dueDays = $this->buckarooConfigService->getConfigValue('payperemail', 'due_days'); + $sendInstructionEmail = $this->buckarooConfigService->getConfigValue('payperemail', 'send_instruction_email'); + + $this->customVars = [ + 'customer' => [ + 'gender' => Tools::getValue('bpe_payperemail_person_gender'), + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + ], + 'email' => $this->customer->email, + 'merchantSendsEmail' => $sendInstructionEmail, + 'expirationDate' => date('Y-m-d', strtotime('+' . (int) $dueDays . 'day')), + 'paymentMethodsAllowed' => $paymentMethodsAllowed, + 'attachment' => '', + ]; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return false; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_PAYPEREMAIL); + } +} diff --git a/library/checkout/przelewy24checkout.php b/library/checkout/przelewy24checkout.php new file mode 100644 index 000000000..8c2b75afb --- /dev/null +++ b/library/checkout/przelewy24checkout.php @@ -0,0 +1,55 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class Przelewy24Checkout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + + $this->customVars = [ + 'customer' => [ + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + ], + 'email' => $this->customer->email, + ]; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_PRZELEWY24); + } +} diff --git a/library/checkout/sepadirectdebitcheckout.php b/library/checkout/sepadirectdebitcheckout.php index 83d1ef005..4069407c5 100644 --- a/library/checkout/sepadirectdebitcheckout.php +++ b/library/checkout/sepadirectdebitcheckout.php @@ -1,48 +1,37 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -include_once(_PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; class SepaDirectdebitCheckout extends Checkout { - - protected $customVars = array(); + protected $customVars = []; final public function setCheckout() { - parent::setCheckout(); - - $this->payment_request->customeraccountname = (string)Tools::getValue( - 'bpe_sepadirectdebit_bank_account_holder' - ); - $this->payment_request->CustomerBIC = (string)Tools::getValue('bpe_sepadirectdebit_bic'); - $this->payment_request->CustomerIBAN = (string)Tools::getValue('bpe_sepadirectdebit_iban'); - - - $sql = 'SELECT type FROM ' . _DB_PREFIX_ . 'gender where id_gender = ' . (int)($this->customer->id_gender); - $gender_type = Db::getInstance()->getValue($sql); - $this->customVars['CustomerFirstName'] = $this->invoice_address->firstname; - $this->customVars['CustomerLastName'] = $this->invoice_address->lastname; - $this->customVars['Customeremail'] = !empty($this->customer->email) ? $this->customer->email : ''; - $this->customVars['Customergender'] = ($gender_type == 0) ? '1' : ($gender_type == 1) ? '2' : '0'; + $this->customVars = [ + 'iban' => (string) Tools::getValue('bpe_sepadirectdebit_iban'), + 'bic' => (string) Tools::getValue('bpe_sepadirectdebit_bic'), + 'collectdate' => date('d-m-Y'), + 'customer' => [ + 'name' => (string) Tools::getValue('bpe_sepadirectdebit_bank_account_holder'), + ], + ]; } public function isRedirectRequired() diff --git a/library/checkout/sofortbankingcheckout.php b/library/checkout/sofortbankingcheckout.php index d3f842d55..d00bcbe66 100644 --- a/library/checkout/sofortbankingcheckout.php +++ b/library/checkout/sofortbankingcheckout.php @@ -1,7 +1,5 @@ + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class TinkaCheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + $this->customVars = [ + 'description' => 'This is a test order', + 'paymentMethod' => 'Credit', + 'deliveryMethod' => 'Locker', + 'deliveryDate' => date('Y-m-d'), + 'articles' => $this->getArticles(), + 'customer' => $this->getCustomer(), + 'billing' => $this->getAddress('billing'), + 'shipping' => $this->getAddress('shipping'), + ]; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_TINKA); + } + + /** + * Get customer data + * + * @return array + */ + protected function getCustomer() + { + return [ + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + 'initials' => $this->initials($this->invoice_address->firstname . ' ' . $this->invoice_address->lastname), + 'birthDate' => date( + 'Y-m-d', + strtotime( + Tools::getValue('customerbirthdate_y_billing') . '-' . + Tools::getValue('customerbirthdate_m_billing') . '-' . + Tools::getValue('customerbirthdate_d_billing') + ) + ), + ]; + } + + /** + * Get customer address + * + * @return array + */ + protected function getAddress($type) + { + $addressType = 'invoice_address'; + + if ($type == 'shipping' && isset($this->shipping_address)) { + $addressType = 'shipping_address'; + } + + $address_components = $this->getAddressComponents($this->$addressType->address1); + + if (empty($address_components['house_number'])) { + $address_components['house_number'] = $this->$addressType->address2; + } + $address_data = [ + 'street' => $address_components['street'], + 'houseNumber' => $address_components['house_number'], + 'zipcode' => $this->$addressType->postcode, + 'city' => $this->$addressType->city, + 'country' => Tools::strtoupper( + (new Country($this->$addressType->id_country))->iso_code + ), + ]; + + if (!empty($address_components['number_addition'])) { + $address_data['houseNumberAdditional'] = $address_components['number_addition']; + } + + $phone_data = [ + 'mobile' => (isset($this->$addressType->phone_mobile)) ? $this->$addressType->phone_mobile : $this->addressType->phone, + ]; + + return [ + 'recipient' => [ + 'lastNamePrefix' => 'the', // Assuming 'the' is a placeholder + ], + 'email' => $this->customer->email, + 'phone' => $phone_data, + 'address' => $address_data, + ]; + } + + /** + * Get order articles + * + * @return array + */ + protected function getArticles() + { + $products = []; + foreach ($this->products as $item) { + $products[] = [ + 'type' => 1, + 'description' => $item['name'], + 'unitCode' => $item['id_product'], + 'quantity' => $item['quantity'], + 'price' => round($item['price_wt'], 2), + ]; + } + + $wrapping = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); + if ($wrapping > 0) { + $products[] = [ + 'type' => 1, + 'description' => 'Wrapping', + 'unitCode' => 'WRAP', + 'quantity' => 1, + 'price' => round($wrapping, 2), + ]; + } + + $discounts = $this->cart->getOrderTotal(true, CartCore::ONLY_DISCOUNTS); + if ($discounts > 0) { + $products[] = [ + 'type' => 1, + 'description' => 'Discounts', + 'unitCode' => 'DISC', + 'quantity' => 1, + 'price' => -round($discounts, 2), + ]; + } + + $shipping = $this->cart->getOrderTotal(true, CartCore::ONLY_SHIPPING); + if ($shipping > 0) { + $products[] = [ + 'type' => 1, + 'description' => 'Shipping', + 'unitCode' => 'SHIP', + 'quantity' => 1, + 'price' => round($shipping, 2), + ]; + } + + $buckarooFee = $this->getBuckarooFee(); + + if ($buckarooFee > 0) { + $products[] = [ + 'type' => 1, + 'description' => 'buckaroo_fee', + 'unitCode' => 'fee', + 'quantity' => 1, + 'price' => round($buckarooFee, 2), + ]; + } + + return $products; + } +} diff --git a/library/checkout/transfercheckout.php b/library/checkout/transfercheckout.php index 9f5396147..50efa91f4 100644 --- a/library/checkout/transfercheckout.php +++ b/library/checkout/transfercheckout.php @@ -1,7 +1,5 @@ customVars['CustomerEmail'] = $this->customer->email; - $this->customVars['CustomerFirstName'] = $this->invoice_address->firstname; - $this->customVars['CustomerLastName'] = $this->invoice_address->lastname; - $this->customVars['SendMail'] = ((int) Configuration::get('BUCKAROO_TRANSFER_SENDMAIL') == 1 ? 'TRUE' : 'FALSE');//phpcs:ignore - $this->customVars['DateDue'] = date( - 'Y-m-d', - strtotime('now + ' . (int) Configuration::get('BUCKAROO_TRANSFER_DATEDUE') . ' day') - ); - $country = new Country($this->invoice_address->id_country); - $this->customVars['CustomerCountry'] = Tools::strtoupper($country->iso_code); + $sendMail = $this->buckarooConfigService->getConfigValue('transfer', 'send_instruction_email'); + $dueDate = $this->buckarooConfigService->getConfigValue('transfer', 'due_days'); + + $this->customVars = [ + 'customer' => [ + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + ], + 'email' => $this->customer->email, + 'country' => Tools::strtoupper((new Country($this->invoice_address->id_country))->iso_code), + 'dateDue' => date('Y-m-d', strtotime('now + ' . (int) $dueDate . ' day')), + 'sendMail' => ((int) $sendMail == 1 ? 'TRUE' : 'FALSE'), + ]; } public function isRedirectRequired() @@ -51,7 +54,7 @@ public function isVerifyRequired() public function startPayment() { - $this->payment_response = $this->payment_request->payTransfer($this->customVars); + $this->payment_response = $this->payment_request->pay($this->customVars); } protected function initialize() diff --git a/library/checkout/trustlycheckout.php b/library/checkout/trustlycheckout.php new file mode 100644 index 000000000..841d3cd3f --- /dev/null +++ b/library/checkout/trustlycheckout.php @@ -0,0 +1,69 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class TrustlyCheckout extends Checkout +{ + protected $customVars = []; + + /** + * @throws PrestaShopDatabaseException + * @throws PrestaShopException + */ + final public function setCheckout() + { + parent::setCheckout(); + + $this->customVars = [ + 'customer' => $this->getCustomer(), + 'country' => Tools::strtoupper((new Country($this->invoice_address->id_country))->iso_code), + ]; + } + + /** + * Get customer data + * + * @return array + */ + protected function getCustomer() + { + return [ + 'firstName' => $this->invoice_address->firstname, + 'lastName' => $this->invoice_address->lastname, + ]; + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_TRUSTLY); + } +} diff --git a/library/checkout/wechatpaycheckout.php b/library/checkout/wechatpaycheckout.php new file mode 100644 index 000000000..e015a4a84 --- /dev/null +++ b/library/checkout/wechatpaycheckout.php @@ -0,0 +1,50 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/checkout/checkout.php'; + +class Wechatpaycheckout extends Checkout +{ + protected $customVars = []; + + final public function setCheckout() + { + parent::setCheckout(); + } + + public function startPayment() + { + $this->payment_response = $this->payment_request->pay($this->customVars); + } + + public function isRedirectRequired() + { + return true; + } + + public function isVerifyRequired() + { + return false; + } + + /** + * @throws Exception + */ + protected function initialize() + { + $this->payment_request = PaymentRequestFactory::create(PaymentRequestFactory::REQUEST_TYPE_WECHATPAY); + } +} diff --git a/library/index.php b/library/index.php index c8e9f2af3..97ec565fb 100644 --- a/library/index.php +++ b/library/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/library/logger.php b/library/logger.php index 0ba3683c4..24191deb4 100644 --- a/library/logger.php +++ b/library/logger.php @@ -1,22 +1,19 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ require_once dirname(__FILE__) . '/../api/corelogger.php'; class Logger extends CoreLogger diff --git a/logo.png b/logo.png new file mode 100644 index 000000000..129f95f7e Binary files /dev/null and b/logo.png differ diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..e98deef33 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,9 @@ +# Unique key for the project +sonar.projectKey=buckaroo:prestashop + +# Display name and version for the SonarQube UI +sonar.projectName=PrestaShop +sonar.projectVersion=1.0 + +# Path to the source code, relative to the sonar-project.properties file +sonar.sources=. diff --git a/src/Config/Config.php b/src/Config/Config.php new file mode 100644 index 000000000..5eca6d785 --- /dev/null +++ b/src/Config/Config.php @@ -0,0 +1,34 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Config; + +class Config +{ + public const BUCKAROO_TEST = 'BUCKAROO_TEST'; + public const BUCKAROO_MERCHANT_KEY = 'BUCKAROO_MERCHANT_KEY'; + public const BUCKAROO_SECRET_KEY = 'BUCKAROO_SECRET_KEY'; + public const BUCKAROO_TRANSACTION_LABEL = 'BUCKAROO_TRANSACTION_LABEL'; + public const BUCKAROO_TRANSACTION_FEE = 'BUCKAROO_TRANSACTION_FEE'; + + public const LABEL_REFUND_RESTOCK = 'BUCKAROO_REFUND_RESTOCK'; + public const LABEL_REFUND_CREDIT_SLIP = 'BUCKAROO_REFUND_CREDIT_SLIP'; + public const LABEL_REFUND_VOUCHER = 'BUCKAROO_REFUND_VOUCHER'; + public const LABEL_REFUND_CREATE_NEGATIVE_PAYMENT = 'BUCKAROO_REFUND_CREATE_NEGATIVE_PAYMENT'; + + public const FILE_NAME = 'Installer'; +} diff --git a/src/Config/index.php b/src/Config/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Config/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Entity/BkConfiguration.php b/src/Entity/BkConfiguration.php new file mode 100644 index 000000000..fba39606c --- /dev/null +++ b/src/Entity/BkConfiguration.php @@ -0,0 +1,117 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** + * @ORM\Table(indexes={@ORM\Index(name="configurable_id", columns={"configurable_id"})}) + * + * @ORM\Entity(repositoryClass="Buckaroo\PrestaShop\Src\Repository\ConfigurationRepository") + */ +class BkConfiguration +{ + /** + * @var int + * + * @ORM\Id + * + * @ORM\Column(name="id", type="integer") + * + * @ORM\GeneratedValue(strategy="AUTO") + */ + private $id; + + /** + * @var int + * + * @ORM\Column(name="configurable_id", type="integer") + */ + private $configurable_id; + + /** + * @var string + * + * @ORM\Column(name="value", type="string") + */ + private $value; + + /** + * @var \DateTime + * + * @ORM\Column(name="created_at", type="datetime") + */ + private $createdAt; + + /** + * @var \DateTime + * + * @ORM\Column(name="updated_at", type="datetime") + */ + private $updatedAt; + + public function getId(): int + { + return $this->id; + } + + public function setId(int $id): void + { + $this->id = $id; + } + + public function getConfigurableId(): int + { + return $this->configurable_id; + } + + public function setConfigurableId(int $configurable_id): void + { + $this->configurable_id = $configurable_id; + } + + public function getValue(): string + { + return $this->value; + } + + public function setValue(string $value): void + { + $this->value = $value; + } + + public function getCreatedAt(): \DateTime + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTime $createdAt): void + { + $this->createdAt = $createdAt; + } + + public function getUpdatedAt(): \DateTime + { + return $this->updatedAt; + } + + public function setUpdatedAt(\DateTime $updatedAt): void + { + $this->updatedAt = $updatedAt; + } +} diff --git a/src/Entity/BkCountries.php b/src/Entity/BkCountries.php new file mode 100644 index 000000000..e7b33b66b --- /dev/null +++ b/src/Entity/BkCountries.php @@ -0,0 +1,185 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** + * @ORM\Table(indexes={@ORM\Index(name="country", columns={"country_id"})}) + * + * @ORM\Entity(repositoryClass="Buckaroo\PrestaShop\Src\Repository\CountryRepository") + */ +class BkCountries +{ + /** + * @var int + * + * @ORM\Id + * + * @ORM\Column(name="id", type="integer") + * + * @ORM\GeneratedValue(strategy="AUTO") + */ + private $id; + + /** + * @var int + * + * @ORM\Column(name="country_id", type="integer") + */ + private $country_id; + + /** + * @var string + * + * @ORM\Column(name="name", type="string", length=255) + */ + private $name; + + /** + * @var string + * + * @ORM\Column(name="iso_code_2", type="string", length=2) + */ + private $iso_code_2; + + /** + * @var string + * + * @ORM\Column(name="iso_code_3", type="string", length=3) + */ + private $iso_code_3; + + /** + * @var int + * + * @ORM\Column(name="call_prefix", type="integer") + */ + private $call_prefix; + + /** + * @var string + * + * @ORM\Column(name="icon", type="string") + */ + private $icon; + + /** + * @var \DateTime + * + * @ORM\Column(name="created_at", type="datetime") + */ + private $createdAt; + + /** + * @var \DateTime + * + * @ORM\Column(name="updated_at", type="datetime") + */ + private $updatedAt; + + public function getId(): int + { + return $this->id; + } + + public function setId(int $id): void + { + $this->id = $id; + } + + public function getCountryId(): int + { + return $this->country_id; + } + + public function setCountryId(int $country_id): void + { + $this->country_id = $country_id; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): void + { + $this->name = $name; + } + + public function getIsoCode2(): string + { + return $this->iso_code_2; + } + + public function setIsoCode2(string $iso_code_2): void + { + $this->iso_code_2 = $iso_code_2; + } + + public function getIsoCode3(): string + { + return $this->iso_code_3; + } + + public function setIsoCode3(string $iso_code_3): void + { + $this->iso_code_3 = $iso_code_3; + } + + public function getCallPrefix(): int + { + return $this->call_prefix; + } + + public function setCallPrefix(int $call_prefix): void + { + $this->call_prefix = $call_prefix; + } + + public function getIcon(): string + { + return $this->icon; + } + + public function setIcon(string $icon): void + { + $this->icon = $icon; + } + + public function getCreatedAt(): \DateTime + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTime $createdAt): void + { + $this->createdAt = $createdAt; + } + + public function getUpdatedAt(): \DateTime + { + return $this->updatedAt; + } + + public function setUpdatedAt(\DateTime $updatedAt): void + { + $this->updatedAt = $updatedAt; + } +} diff --git a/src/Entity/BkCreditcards.php b/src/Entity/BkCreditcards.php new file mode 100644 index 000000000..a77f375d3 --- /dev/null +++ b/src/Entity/BkCreditcards.php @@ -0,0 +1,110 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** + * @ORM\Entity() + */ +class BkCreditcards +{ + /** + * @var int + * + * @ORM\Id + * + * @ORM\Column(name="id", type="integer") + * + * @ORM\GeneratedValue(strategy="AUTO") + */ + private $id; + + /** + * @var string + * + * @ORM\Column(name="icon", type="string") + */ + private $icon; + + /** + * @var string + * + * @ORM\Column(name="name", type="string") + */ + private $name; + + /** + * @var string + * + * @ORM\Column(name="service_code", type="string") + */ + private $service_code; + + /** + * @var \DateTime + * + * @ORM\Column(name="created_at", type="datetime") + */ + private $createdAt; + + public function getId(): int + { + return $this->id; + } + + public function getIcon(): string + { + return $this->icon; + } + + public function setIcon(string $icon): void + { + $this->icon = $icon; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): void + { + $this->name = $name; + } + + public function getServiceCode(): string + { + return $this->service_code; + } + + public function setServiceCode(string $service_code): void + { + $this->service_code = $service_code; + } + + public function getCreatedAt(): \DateTime + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTime $createdAt): void + { + $this->createdAt = $createdAt; + } +} diff --git a/src/Entity/BkGiftcards.php b/src/Entity/BkGiftcards.php new file mode 100644 index 000000000..17df57e74 --- /dev/null +++ b/src/Entity/BkGiftcards.php @@ -0,0 +1,110 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** + * @ORM\Entity() + */ +class BkGiftcards +{ + /** + * @var int + * + * @ORM\Id + * + * @ORM\Column(name="id", type="integer") + * + * @ORM\GeneratedValue(strategy="AUTO") + */ + private $id; + + /** + * @var string + * + * @ORM\Column(name="code", type="string") + */ + private $code; + + /** + * @var string + * + * @ORM\Column(name="name", type="string") + */ + private $name; + + /** + * @var string + * + * @ORM\Column(name="logo", type="string") + */ + private $logo; + + /** + * @var \DateTime + * + * @ORM\Column(name="created_at", type="datetime") + */ + private $createdAt; + + public function getId(): int + { + return $this->id; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): void + { + $this->code = $code; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): void + { + $this->name = $name; + } + + public function getLogo(): string + { + return $this->logo; + } + + public function setLogo(string $logo): void + { + $this->logo = $logo; + } + + public function getCreatedAt(): \DateTime + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTime $createdAt): void + { + $this->createdAt = $createdAt; + } +} diff --git a/src/Entity/BkOrdering.php b/src/Entity/BkOrdering.php new file mode 100644 index 000000000..0b863c186 --- /dev/null +++ b/src/Entity/BkOrdering.php @@ -0,0 +1,117 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** + * @ORM\Table(indexes={@ORM\Index(name="country", columns={"country_id"})}) + * + * @ORM\Entity(repositoryClass="Buckaroo\PrestaShop\Src\Repository\OrderingRepository") + */ +class BkOrdering +{ + /** + * @var int + * + * @ORM\Id + * + * @ORM\Column(name="id", type="integer") + * + * @ORM\GeneratedValue(strategy="AUTO") + */ + private $id; + + /** + * @var int + * + * @ORM\Column(name="country_id", type="integer", nullable=true) + */ + private $country_id; + + /** + * @var string + * + * @ORM\Column(name="value", type="text") + */ + private $value; + + /** + * @var \DateTime + * + * @ORM\Column(name="created_at", type="datetime") + */ + private $createdAt; + + /** + * @var \DateTime + * + * @ORM\Column(name="updated_at", type="datetime") + */ + private $updatedAt; + + public function getId(): int + { + return $this->id; + } + + public function setId(int $id): void + { + $this->id = $id; + } + + public function getCountryId(): ?int + { + return $this->country_id; + } + + public function setCountryId(?int $country_id): void + { + $this->country_id = $country_id; + } + + public function getValue(): string + { + return $this->value; + } + + public function setValue(string $value): void + { + $this->value = $value; + } + + public function getCreatedAt(): \DateTime + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTime $createdAt): void + { + $this->createdAt = $createdAt; + } + + public function getUpdatedAt(): \DateTime + { + return $this->updatedAt; + } + + public function setUpdatedAt(\DateTime $updatedAt): void + { + $this->updatedAt = $updatedAt; + } +} diff --git a/src/Entity/BkPaymentMethods.php b/src/Entity/BkPaymentMethods.php new file mode 100644 index 000000000..ac985b648 --- /dev/null +++ b/src/Entity/BkPaymentMethods.php @@ -0,0 +1,168 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** + * @ORM\Table(indexes={@ORM\Index(name="name", columns={"name"})}) + * + * @ORM\Entity(repositoryClass="Buckaroo\PrestaShop\Src\Repository\PaymentMethodRepository") + */ +class BkPaymentMethods +{ + /** + * @var int + * + * @ORM\Id + * + * @ORM\Column(name="id", type="integer") + * + * @ORM\GeneratedValue(strategy="AUTO") + */ + private $id; + + /** + * @var string + * + * @ORM\Column(name="name", type="string") + */ + private $name; + + /** + * @var string + * + * @ORM\Column(name="label", type="string") + */ + private $label; + + /** + * @var string + * + * @ORM\Column(name="template", type="string") + */ + private $template; + + /** + * @var int + * + * @ORM\Column(name="is_payment_method", type="integer") + */ + private $is_payment_method; + + /** + * @var string + * + * @ORM\Column(name="icon", type="string") + */ + private $icon; + + /** + * @var \DateTime + * + * @ORM\Column(name="created_at", type="datetime") + */ + private $createdAt; + + /** + * @var \DateTime + * + * @ORM\Column(name="updated_at", type="datetime") + */ + private $updatedAt; + + public function getId(): int + { + return $this->id; + } + + public function setId(int $id): void + { + $this->id = $id; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): void + { + $this->name = $name; + } + + public function getLabel(): string + { + return $this->label; + } + + public function setLabel(string $label): void + { + $this->label = $label; + } + + public function getTemplate(): string + { + return $this->template; + } + + public function setTemplate(string $template): void + { + $this->template = $template; + } + + public function getIsPaymentMethod(): int + { + return $this->is_payment_method; + } + + public function setIsPaymentMethod(int $is_payment_method): void + { + $this->is_payment_method = $is_payment_method; + } + + public function getIcon(): string + { + return $this->icon; + } + + public function setIcon(string $icon): void + { + $this->icon = $icon; + } + + public function getCreatedAt(): \DateTime + { + return $this->createdAt; + } + + public function setCreatedAt(\DateTime $createdAt): void + { + $this->createdAt = $createdAt; + } + + public function getUpdatedAt(): \DateTime + { + return $this->updatedAt; + } + + public function setUpdatedAt(\DateTime $updatedAt): void + { + $this->updatedAt = $updatedAt; + } +} diff --git a/src/Entity/BkRefundRequest.php b/src/Entity/BkRefundRequest.php new file mode 100644 index 000000000..5543b5c5e --- /dev/null +++ b/src/Entity/BkRefundRequest.php @@ -0,0 +1,179 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** + * @ORM\Table(indexes={@ORM\Index(name="order_id_index", columns={"order_id"}), @ORM\Index(name="key_index", columns={"refund_key"})}) + * + * @ORM\Entity() + */ +class BkRefundRequest +{ + public const STATUS_SUCCESS = 'success'; + public const STATUS_FAILED = 'failed'; + + /** + * @var int + * + * @ORM\Id + * + * @ORM\Column(name="id", type="integer") + * + * @ORM\GeneratedValue(strategy="AUTO") + */ + private $id; + + /** + * @var string + * + * @ORM\Column(name="status", type="string") + */ + private $status; + + /** + * @var float + * + * @ORM\Column(name="amount", type="float") + */ + private $amount; + + /** + * @var string + * + * @ORM\Column(name="order_id", type="integer") + */ + private $orderId; + + /** + * @var string + * + * @ORM\Column(name="refund_key", type="string") + */ + private $key; + + /** + * @var string + * + * @ORM\Column(name="payment_key", type="string") + */ + private $paymentKey; + + /** + * @var string + * + * @ORM\Column(name="payload", type="json_array") + */ + private $payload; + + /** + * @var string + * + * @ORM\Column(name="data", type="json_array") + */ + private $data; + + /** + * @var \DateTime + * + * @ORM\Column(name="created_at", type="datetime") + */ + private $createdAt; + + public function getId(): int + { + return $this->id; + } + + public function setStatus(string $status): self + { + $this->status = $status; + + return $this; + } + + public function setOrderId(int $orderId): self + { + $this->orderId = $orderId; + + return $this; + } + + public function setAmount(float $amount): self + { + $this->amount = $amount; + + return $this; + } + + public function setKey(string $key): self + { + $this->key = $key; + + return $this; + } + + public function setPaymentKey(string $paymentKey): self + { + $this->paymentKey = $paymentKey; + + return $this; + } + + public function setPayload(array $payload): self + { + $this->payload = $payload; + + return $this; + } + + public function setData(array $data): self + { + $this->data = $data; + + return $this; + } + + public function setCreatedAt(\DateTime $createdAt): self + { + $this->createdAt = $createdAt; + + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function getAmount(): float + { + return $this->amount; + } + + public function getKey(): string + { + return $this->key; + } + + public function getCreatedAt(): \DateTime + { + return $this->createdAt; + } +} diff --git a/src/Entity/index.php b/src/Entity/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Entity/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Form/Modifier/ProductFormModifier.php b/src/Form/Modifier/ProductFormModifier.php new file mode 100644 index 000000000..a94b31ba0 --- /dev/null +++ b/src/Form/Modifier/ProductFormModifier.php @@ -0,0 +1,79 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +declare(strict_types=1); + +namespace Buckaroo\PrestaShop\Src\Form\Modifier; + +use Buckaroo\PrestaShop\Src\Form\Type\IdinTabType; +use PrestaShopBundle\Form\FormBuilderModifier; +use Symfony\Component\Form\FormBuilderInterface; + +final class ProductFormModifier +{ + /** + * @var FormBuilderModifier + */ + private $formBuilderModifier; + + /** + * @param FormBuilderModifier $formBuilderModifier + */ + public function __construct( + FormBuilderModifier $formBuilderModifier + ) { + $this->formBuilderModifier = $formBuilderModifier; + } + + /** + * @param int|null $productId + * @param FormBuilderInterface $productFormBuilder + */ + public function modify( + int $productId, + FormBuilderInterface $productFormBuilder + ): void { + $buckarooIdinValue = $this->getBuckarooIdinForProduct($productId); + + $this->formBuilderModifier->addAfter( + $productFormBuilder, + 'options', + 'buckaroo_idin', + IdinTabType::class, + [ + 'data' => [ + 'buckaroo_idin' => (bool) $buckarooIdinValue, + ], + ] + ); + } + + /** + * Fetch buckaroo_idin for a given product from `bk_product_idin` table. + * + * @param int $productId + * + * @return bool|null + */ + private function getBuckarooIdinForProduct(int $productId): ?bool + { + $sql = 'SELECT buckaroo_idin FROM ' . _DB_PREFIX_ . 'bk_product_idin WHERE product_id = ' . (int) $productId; + $result = \Db::getInstance()->getValue($sql); + + return $result ? (bool) $result : null; + } +} diff --git a/src/Form/Modifier/index.php b/src/Form/Modifier/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Form/Modifier/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Form/Type/IdinTabType.php b/src/Form/Type/IdinTabType.php new file mode 100644 index 000000000..ea4b6dc79 --- /dev/null +++ b/src/Form/Type/IdinTabType.php @@ -0,0 +1,85 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Form\Type; + +use PrestaShopBundle\Form\Admin\Type\TranslatorAwareType; +use Symfony\Component\Form\Extension\Core\Type\CheckboxType; +use Symfony\Component\Form\Extension\Core\Type\TextType; +use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\OptionsResolver\OptionsResolver; +use Symfony\Component\Translation\TranslatorInterface; + +class IdinTabType extends TranslatorAwareType +{ + /** + * @var \Currency + */ + private $defaultCurrency; + + /** + * @param TranslatorInterface $translator + * @param array $locales + * @param \Currency $defaultCurrency + */ + public function __construct( + TranslatorInterface $translator, + array $locales, + \Currency $defaultCurrency + ) { + parent::__construct($translator, $locales); + $this->defaultCurrency = $defaultCurrency; + } + + /** + * {@inheritDoc} + */ + public function buildForm(FormBuilderInterface $builder, array $options) + { + parent::buildForm($builder, $options); + $description = $this->trans("To require iDIN for specific products, you'll also need to have iDIN to be enabled for specific products in the Buckaroo App. You can find this setting at the iDIN verification settings.", 'Modules.Buckaroo.Admin'); + $builder + ->add('idin_description', TextType::class, [ + 'label' => false, + 'required' => false, + 'disabled' => true, + 'data' => $description, + 'attr' => [ + 'readonly' => 'readonly', + 'style' => 'border: none; background: transparent;', + ], + ]) + ->add('buckaroo_idin', CheckboxType::class, [ + 'label' => $this->trans('Require iDIN verification for this product.', 'Modules.Buckaroo.Admin'), + 'required' => false, + ]); + } + + /** + * {@inheritDoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + parent::configureOptions($resolver); + + $resolver + ->setDefaults([ + 'label' => $this->trans('iDIN Settings', 'Modules.Bucakroo.Admin'), + ]) + ; + } +} diff --git a/src/Form/Type/index.php b/src/Form/Type/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Form/Type/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Form/index.php b/src/Form/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Form/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Install/DatabaseTableInstaller.php b/src/Install/DatabaseTableInstaller.php new file mode 100644 index 000000000..8e69609e1 --- /dev/null +++ b/src/Install/DatabaseTableInstaller.php @@ -0,0 +1,143 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Install; + +final class DatabaseTableInstaller implements InstallerInterface +{ + public function install() + { + $commands = $this->getCommands(); + + foreach ($commands as $query) { + if (!\Db::getInstance()->execute($query)) { + return false; + } + } + + return true; + } + + /** + * @return array + */ + private function getCommands() + { + $sql = []; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_refund_request` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `order_id` INT(11) NOT NULL, + `amount` DOUBLE PRECISION NOT NULL, + `status` VARCHAR(255) NOT NULL, + `refund_key` VARCHAR(255) NOT NULL, + `payment_key` VARCHAR(255) NOT NULL, + `payload` LONGTEXT NOT NULL, + `data` LONGTEXT NOT NULL, + `created_at` DATETIME NOT NULL, + INDEX order_id_index (order_id), + INDEX key_index (refund_key) + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_payment_methods` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `name` VARCHAR(255) NOT NULL, + `label` VARCHAR(255) NOT NULL, + `icon` VARCHAR(255) NOT NULL, + `template` VARCHAR(255) NOT NULL, + `is_payment_method` INT(11) NOT NULL, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP, + INDEX(`name`) + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'buckaroo_fee` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `reference` TEXT NOT NULL, + `id_cart` TEXT NOT NULL, + `buckaroo_fee` FLOAT, + `currency` TEXT NOT NULL, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_configuration` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `configurable_id` INT(11) NOT NULL, + `value` TEXT NOT NULL, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_countries` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `country_id` INT(11), + `name` VARCHAR(255) NOT NULL, + `iso_code_2` VARCHAR(2) NOT NULL, + `iso_code_3` VARCHAR(3) NOT NULL, + `call_prefix` INT(11), + `icon` VARCHAR(255), + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_ordering` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `country_id` INT(11), + `value` TEXT NOT NULL, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_creditcards` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `icon` VARCHAR(255) NOT NULL, + `name` VARCHAR(255) NOT NULL, + `service_code` VARCHAR(255) NOT NULL, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_giftcards` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `code` VARCHAR(255) NOT NULL, + `name` VARCHAR(255) NOT NULL, + `logo` VARCHAR(255) NOT NULL, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_customer_idin` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `customer_id` INT(11) NOT NULL, + `buckaroo_idin_consumerbin` VARCHAR(255) NULL, + `buckaroo_idin_iseighteenorolder` VARCHAR(255) NULL, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'bk_product_idin` ( + `id` INT(11) AUTO_INCREMENT PRIMARY KEY, + `product_id` INT(11) NOT NULL, + `buckaroo_idin` TINYINT(1) UNSIGNED DEFAULT 0, + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, + `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP + ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ' . _MYSQL_ENGINE_; + + return $sql; + } +} diff --git a/src/Install/DatabaseTableUninstaller.php b/src/Install/DatabaseTableUninstaller.php new file mode 100644 index 000000000..346748429 --- /dev/null +++ b/src/Install/DatabaseTableUninstaller.php @@ -0,0 +1,52 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Install; + +final class DatabaseTableUninstaller implements UninstallerInterface +{ + public function uninstall(): bool + { + foreach ($this->getCommands() as $query) { + if (!\Db::getInstance()->execute($query)) { + return false; + } + } + + return true; + } + + private function getCommands(): array + { + $sql = []; + $tablesToDrop = [ + 'bk_configuration', + 'bk_payment_methods', + 'bk_countries', + 'bk_ordering', + 'bk_creditcards', + 'bk_giftcards', + 'bk_customer_idin', + 'bk_product_idin', + ]; + foreach ($tablesToDrop as $table) { + $sql[] = 'DROP TABLE IF EXISTS ' . _DB_PREFIX_ . $table; + } + + return $sql; + } +} diff --git a/src/Install/IdinColumnsRemover.php b/src/Install/IdinColumnsRemover.php new file mode 100644 index 000000000..793044439 --- /dev/null +++ b/src/Install/IdinColumnsRemover.php @@ -0,0 +1,69 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Install; + +final class IdinColumnsRemover implements UninstallerInterface +{ + public function uninstall(): bool + { + $commands = $this->getCommands(); + + foreach ($commands as $query) { + if (!\Db::getInstance()->execute($query)) { + return false; + } + } + + return true; + } + + private function getCommands(): array + { + $sql = []; + + // Remove the `buckaroo_idin` field from the `product` table if it exists + $columnsToDrop = [ + 'product' => ['buckaroo_idin'], + 'customer' => ['buckaroo_idin_consumerbin', 'buckaroo_idin_iseighteenorolder'], + ]; + foreach ($columnsToDrop as $table => $columnTables) { + foreach ($columnTables as $column) { + if ($this->columnExists(_DB_PREFIX_ . $table, $column)) { + $sql[] = 'ALTER TABLE `' . _DB_PREFIX_ . $table . '` DROP COLUMN `' . $column . '`'; + } + } + } + + return $sql; + } + + /** + * Check if a column exists in a table. + * + * @param string $table Table name + * @param string $column Column name + * + * @return bool + */ + private function columnExists(string $table, string $column): bool + { + $result = \Db::getInstance()->executeS('SHOW COLUMNS FROM `' . $table . '` LIKE "' . $column . '"'); + + return (bool) $result; + } +} diff --git a/src/Install/Installer.php b/src/Install/Installer.php new file mode 100644 index 000000000..1d64a715c --- /dev/null +++ b/src/Install/Installer.php @@ -0,0 +1,199 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Install; + +use Buckaroo\PrestaShop\Src\Config\Config; +use Buckaroo\PrestaShop\Src\Repository\RawCountryRepository; +use Buckaroo\PrestaShop\Src\Repository\RawCreditCardsRepository; +use Buckaroo\PrestaShop\Src\Repository\RawOrderingRepository; +use Buckaroo\PrestaShop\Src\Repository\RawPaymentMethodRepository; + +class Installer implements InstallerInterface +{ + /** + * @var array + */ + private $errors = []; + + /** + * @var \Buckaroo3 + */ + private $module; + + /** + * @var DatabaseTableInstaller + */ + private $databaseTableInstaller; + + public function __construct( + $module, + DatabaseTableInstaller $databaseTableInstaller + ) { + $this->module = $module; + + $this->databaseTableInstaller = $databaseTableInstaller; + } + + /** + * @throws \Exception + */ + public function install() + { + foreach ($this->getHooks() as $hook) { + $this->module->registerHook($hook); + } + + try { + $this->initConfig(); + } catch (\Exception $e) { + $this->errors[] = $this->module->l('Unable to install config', Config::FILE_NAME); + + return false; + } + + $this->installSpecificTabs(); + + $this->copyEmailTemplates(); + $this->copyProductTemplates(); + $this->databaseTableInstaller->install(); + + $countryRepository = new RawCountryRepository(); + $countryRepository->insertCountries(); + + $paymentMethodRepository = new RawPaymentMethodRepository(); + $paymentMethodRepository->insertPaymentMethods(); + + $orderingRepository = new RawOrderingRepository(); + $orderingRepository->insertCountryOrdering(); + + $creditCardsRepository = new RawCreditCardsRepository(); + $creditCardsRepository->insertCreditCards(); + + return true; + } + + public function installSpecificTabs(): void + { + $this->installTab('AdminBuckaroo_B', 'IMPROVE', 'Buckaroo Payments', true, 'buckaroo'); + $this->installTab('AdminBuckaroo', 'AdminBuckaroo_B', 'Configure', true); + $this->installTab('AdminBuckaroolog', 'AdminBuckaroo_B', 'Logs', true); + } + + public function getErrors() + { + return $this->errors; + } + + public function getHooks() + { + return [ + 'displayHeader', + 'paymentReturn', + 'paymentOptions', + 'displayAdminOrderMainBottom', + 'displayOrderConfirmation', + 'actionEmailSendBefore', + 'displayPDFInvoice', + 'displayBackOfficeHeader', + 'displayProductExtraContent', + 'actionProductFormBuilderModifier', + 'actionAfterUpdateProductFormHandler', + ]; + } + + /** + * @return void + */ + protected function initConfig() + { + \Configuration::updateValue(Config::BUCKAROO_TEST, 1); + \Configuration::updateValue(Config::BUCKAROO_MERCHANT_KEY, ''); + \Configuration::updateValue(Config::BUCKAROO_SECRET_KEY, ''); + \Configuration::updateValue(Config::BUCKAROO_TRANSACTION_LABEL, ''); + \Configuration::updateValue(Config::BUCKAROO_TRANSACTION_FEE, ''); + + \Configuration::updateValue(Config::LABEL_REFUND_RESTOCK, false); + \Configuration::updateValue(Config::LABEL_REFUND_CREDIT_SLIP, true); + \Configuration::updateValue(Config::LABEL_REFUND_VOUCHER, false); + \Configuration::updateValue(Config::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT, false); + } + + public function installTab($className, $parent, $name, $active = true, $icon = '') + { + $idParent = is_int($parent) ? $parent : \Tab::getIdFromClassName($parent); + + $moduleTab = new \Tab(); + $moduleTab->class_name = $className; + $moduleTab->id_parent = $idParent; + $moduleTab->module = $this->module->name; + $moduleTab->active = $active; + $moduleTab->icon = $icon; /** @phpstan-ignore-line */ + $languages = \Language::getLanguages(true); + foreach ($languages as $language) { + $moduleTab->name[$language['id_lang']] = $name; + } + + if (!$moduleTab->save()) { + return false; + } + + return true; + } + + /** + * @return bool + */ + public function copyEmailTemplates() + { + $source = _PS_ROOT_DIR_ . '/modules/buckaroo3/classes/Mail.php'; + $destinationDir = _PS_ROOT_DIR_ . '/override/classes/'; + $destinationFile = $destinationDir . 'Mail.php'; + + // Check if destination directory exists, create it if necessary + if (!is_dir($destinationDir) + && !mkdir($destinationDir, 0755, true)) { + throw new \Exception("Failed to create destination directory '{$destinationDir}'"); + } + + // Attempt to copy the file + if (!copy($source, $destinationFile)) { + throw new \Exception("Failed to copy file from '{$source}' to '{$destinationFile}'"); + } + } + + /** + * @return bool + */ + public function copyProductTemplates() + { + $source = _PS_ROOT_DIR_ . '/modules/buckaroo3/classes/Product.php'; + $destinationDir = _PS_ROOT_DIR_ . '/override/classes/'; + $destinationFile = $destinationDir . 'Product.php'; + + // Check if destination directory exists, create it if necessary + if (!is_dir($destinationDir) + && !mkdir($destinationDir, 0755, true)) { + throw new \Exception("Failed to create destination directory '{$destinationDir}'"); + } + + // Attempt to copy the file + if (!copy($source, $destinationFile)) { + throw new \Exception("Failed to copy file from '{$source}' to '{$destinationFile}'"); + } + } +} diff --git a/src/Install/InstallerInterface.php b/src/Install/InstallerInterface.php new file mode 100644 index 000000000..2a92aaa6a --- /dev/null +++ b/src/Install/InstallerInterface.php @@ -0,0 +1,26 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Install; + +interface InstallerInterface +{ + /** + * @return bool + */ + public function install(); +} diff --git a/src/Install/Uninstaller.php b/src/Install/Uninstaller.php new file mode 100644 index 000000000..31c232df5 --- /dev/null +++ b/src/Install/Uninstaller.php @@ -0,0 +1,126 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Install; + +use Buckaroo\PrestaShop\Src\Config\Config; + +class Uninstaller +{ + /** + * @var array + */ + private $errors = []; + + /** + * @var UninstallerInterface + */ + private $databaseUninstaller; + + /** + * @var UninstallerInterface + */ + private $idinColumnsRemover; + + /** + * @var \Buckaroo3 + */ + private $module; + + public function __construct( + $module, + UninstallerInterface $databaseUninstaller, + UninstallerInterface $idinColumnsRemover + ) { + $this->module = $module; + $this->databaseUninstaller = $databaseUninstaller; + $this->idinColumnsRemover = $idinColumnsRemover; + } + + public function uninstall() + { + foreach ($this->getHooks() as $hook) { + $this->module->unregisterHook($hook); + } + + $this->deleteConfig(); + + $this->uninstallTabs(); + + $this->databaseUninstaller->uninstall(); + + $this->idinColumnsRemover->uninstall(); + + return true; + } + + public function getErrors() + { + return $this->errors; + } + + private function deleteConfig() + { + $configurations = [ + Config::BUCKAROO_TEST, + Config::BUCKAROO_MERCHANT_KEY, + Config::BUCKAROO_SECRET_KEY, + Config::BUCKAROO_TRANSACTION_LABEL, + Config::BUCKAROO_TRANSACTION_FEE, + Config::LABEL_REFUND_RESTOCK, + Config::LABEL_REFUND_CREDIT_SLIP, + Config::LABEL_REFUND_VOUCHER, + Config::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT, + ]; + + $this->deleteConfigurations($configurations); + } + + private function deleteConfigurations(array $configurations) + { + foreach ($configurations as $configuration) { + \Configuration::deleteByName($configuration); + } + } + + private function uninstallTabs() + { + $moduleTabs = \Tab::getCollectionFromModule('buckaroo3'); + if (!empty($moduleTabs)) { + foreach ($moduleTabs as $moduleTab) { + $moduleTab->delete(); + } + } + } + + public function getHooks() + { + return [ + 'displayHeader', + 'paymentReturn', + 'paymentOptions', + 'displayAdminOrderMainBottom', + 'displayOrderConfirmation', + 'actionEmailSendBefore', + 'displayPDFInvoice', + 'displayBackOfficeHeader', + 'displayProductExtraContent', + 'actionProductFormBuilderModifier', + 'actionAfterUpdateProductFormHandler', + ]; + } +} diff --git a/src/Install/UninstallerInterface.php b/src/Install/UninstallerInterface.php new file mode 100644 index 000000000..df5e9d3a1 --- /dev/null +++ b/src/Install/UninstallerInterface.php @@ -0,0 +1,26 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Install; + +interface UninstallerInterface +{ + /** + * @return bool + */ + public function uninstall(); +} diff --git a/src/Install/index.php b/src/Install/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Install/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Refund/Admin/Provider.php b/src/Refund/Admin/Provider.php new file mode 100644 index 000000000..7a946300b --- /dev/null +++ b/src/Refund/Admin/Provider.php @@ -0,0 +1,105 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Admin; + +use Buckaroo\PrestaShop\Src\Entity\BkRefundRequest; +use Doctrine\ORM\EntityManager; +use PrestaShopBundle\Service\Routing\Router; + +class Provider +{ + /** + * @var EntityManager + */ + protected $entityManager; + + /** + * @var Router + */ + protected $router; + + public function __construct( + EntityManager $entityManager, + Router $router + ) { + $this->entityManager = $entityManager; + $this->router = $router; + } + + public function get(\Order $order): array + { + $refunds = $this->getRefundRequests($order->id); + + return [ + 'orderId' => $order->id, + 'currencyId' => $order->id_currency, + 'refunds' => $refunds, + 'maxAvailableAmount' => $this->getAvailableRefundAmount($order, $refunds), + 'ajaxUrl' => $this->router->generate('buckaroo_refund'), + ]; + } + + /** + * Get available amount for refund + * + * @param \Order $order + * @param array $refunds + * + * @return float + */ + private function getAvailableRefundAmount(\Order $order, array $refunds): float + { + $refunded = array_sum( + array_map( + function ($refund) { + return $refund->getAmount(); + }, + array_filter( + $refunds, + function ($refund) { + return $refund->getStatus() === BkRefundRequest::STATUS_SUCCESS; + } + ) + ) + ); + + $amount = $order->total_paid - $refunded; + if (abs($amount) <= 0.005) { + return 0; + } + + return round($amount, 2); + } + + /** + * Get refund requests from databases + * + * @param int $orderId + * + * @return array + */ + private function getRefundRequests(int $orderId): array + { + $repository = $this->entityManager->getRepository(BkRefundRequest::class); + + return $repository->findBy( + ['orderId' => $orderId], + ['createdAt' => 'desc'] + ); + } +} diff --git a/src/Refund/Admin/index.php b/src/Refund/Admin/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Refund/Admin/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Refund/Decorators/IssuePartialRefundHandler.php b/src/Refund/Decorators/IssuePartialRefundHandler.php new file mode 100644 index 000000000..8c3680c1f --- /dev/null +++ b/src/Refund/Decorators/IssuePartialRefundHandler.php @@ -0,0 +1,67 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Decorators; + +use Buckaroo\PrestaShop\Src\Refund\Handler; +use PrestaShop\PrestaShop\Core\Domain\Order\Command\IssuePartialRefundCommand; +use PrestaShop\PrestaShop\Core\Domain\Order\CommandHandler\IssuePartialRefundHandlerInterface; +use Symfony\Component\HttpFoundation\Session\SessionInterface; + +class IssuePartialRefundHandler implements IssuePartialRefundHandlerInterface +{ + public const KEY_SKIP_REFUND_REQUEST = 'buckaroo_skip_refund'; + /** + * @var IssuePartialRefundHandlerInterface + */ + protected $handler; + + /** + * @var Handler + */ + protected $refundHandler; + + /** + * @var SessionInterface + */ + protected $session; + + public function __construct( + IssuePartialRefundHandlerInterface $handler, + Handler $refundHandler, + SessionInterface $session + ) { + $this->handler = $handler; + $this->refundHandler = $refundHandler; + $this->session = $session; + } + + /** + * {@inheritdoc} + */ + public function handle(IssuePartialRefundCommand $command): void + { + $refundSummary = $this->refundHandler->getRefundSummary($command); + $this->handler->handle($command); + if ( + !$this->session->has(self::KEY_SKIP_REFUND_REQUEST) + ) { + $this->refundHandler->execute($command, $refundSummary); + $this->session->remove(self::KEY_SKIP_REFUND_REQUEST); + } + } +} diff --git a/src/Refund/Decorators/IssueStandardRefundHandler.php b/src/Refund/Decorators/IssueStandardRefundHandler.php new file mode 100644 index 000000000..a19d11723 --- /dev/null +++ b/src/Refund/Decorators/IssueStandardRefundHandler.php @@ -0,0 +1,53 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Decorators; + +use Buckaroo\PrestaShop\Src\Refund\Handler; +use PrestaShop\PrestaShop\Core\Domain\Order\Command\IssueStandardRefundCommand; +use PrestaShop\PrestaShop\Core\Domain\Order\CommandHandler\IssueStandardRefundHandlerInterface; + +class IssueStandardRefundHandler implements IssueStandardRefundHandlerInterface +{ + /** + * @var IssueStandardRefundHandlerInterface + */ + protected $handler; + + /** + * @var Handler + */ + protected $refundHandler; + + public function __construct( + IssueStandardRefundHandlerInterface $handler, + Handler $refundHandler + ) { + $this->handler = $handler; + $this->refundHandler = $refundHandler; + } + + /** + * {@inheritdoc} + */ + public function handle(IssueStandardRefundCommand $command): void + { + $refundSummary = $this->refundHandler->getRefundSummary($command); + $this->handler->handle($command); + $this->refundHandler->execute($command, $refundSummary); + } +} diff --git a/src/Refund/Decorators/index.php b/src/Refund/Decorators/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Refund/Decorators/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Refund/Handler.php b/src/Refund/Handler.php new file mode 100644 index 000000000..9598cb3b0 --- /dev/null +++ b/src/Refund/Handler.php @@ -0,0 +1,155 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund; + +use Buckaroo\PrestaShop\Src\Refund\Request\Builder; +use Buckaroo\PrestaShop\Src\Refund\Request\Handler as RefundRequestHandler; +use Buckaroo\PrestaShop\Src\Refund\Request\Response\Handler as RefundResponseHandler; +use PrestaShop\Decimal\DecimalNumber; +use PrestaShop\PrestaShop\Adapter\Order\Refund\OrderRefundCalculator; +use PrestaShop\PrestaShop\Adapter\Order\Refund\OrderRefundSummary; +use PrestaShop\PrestaShop\Core\Domain\Order\Command\IssuePartialRefundCommand; +use PrestaShop\PrestaShop\Core\Domain\Order\Command\IssueStandardRefundCommand; +use PrestaShop\PrestaShop\Core\Domain\Order\Exception\OrderException; + +class Handler +{ + /** + * @var OrderRefundCalculator + */ + private $orderRefundCalculator; + + /** + * @var RefundRequestHandler + */ + private $refundHandler; + + /** + * @var Builder + */ + private $refundBuilder; + + /** + * @var RefundResponseHandler + */ + private $responseHandler; + + public function __construct( + OrderRefundCalculator $orderRefundCalculator, + RefundRequestHandler $refundHandler, + Builder $refundBuilder, + RefundResponseHandler $responseHandler + ) { + $this->orderRefundCalculator = $orderRefundCalculator; + $this->refundHandler = $refundHandler; + $this->refundBuilder = $refundBuilder; + $this->responseHandler = $responseHandler; + } + + /** + * Undocumented function + * + * @param IssueStandardRefundCommand|IssuePartialRefundCommand $command + * + * @return void + */ + public function execute($command, $refundSummary) + { + $order = $this->getOrder($command); + $buckarooPayments = $this->getBuckarooPayments($order); + if (count($buckarooPayments)) { + foreach ($buckarooPayments as $payment) { + $this->refund($order, $payment, $refundSummary); + } + } + } + + private function refund(\Order $order, \OrderPayment $payment, OrderRefundSummary $refundSummary) + { + if ($payment->amount < 0) { + return null; + } + + if ($refundSummary->getRefundedAmount() - $payment->amount >= 0.01) { + throw new OrderException('Maximum amount that can be refunded in a single request is ' . $payment->amount); + } + + $body = $this->refundBuilder->create($order, $payment, $refundSummary); + $this->responseHandler->parse( + $this->refundHandler->refund( + $body, + $payment->payment_method + ), + $body, + $order->id + ); + } + + /** + * Get buckaroo payments + * + * @param \Order $order + * + * @return array + */ + private function getBuckarooPayments(\Order $order): array + { + // todo: filter payments for only buckaroo requests + return $order->getOrderPayments(); + } + + /** + * Get order from command + * + * @param IssueStandardRefundCommand|IssuePartialRefundCommand $command + * + * @return \Order + */ + private function getOrder($command): \Order + { + return new \Order($command->getOrderId()->getValue()); + } + + /** + * Get refund data + * + * @param Order $order + * @param IssueStandardRefundCommand|IssuePartialRefundCommand $command + * + * @return OrderRefundSummary + */ + public function getRefundSummary($command): OrderRefundSummary + { + $order = $this->getOrder($command); + + if ($command instanceof IssuePartialRefundCommand) { + $shippingRefundAmount = $command->getShippingCostRefundAmount(); + } else { + $shippingRefundAmount = new DecimalNumber((string) ($command->refundShippingCost() ? $order->total_shipping_tax_incl : 0)); + } + + /* @var OrderRefundSummary $orderRefundSummary */ + return $this->orderRefundCalculator->computeOrderRefund( + $order, + $command->getOrderDetailRefunds(), + $shippingRefundAmount, + $command->getVoucherRefundType(), + $command->getVoucherRefundAmount() + ); + } +} diff --git a/src/Refund/OrderMessage.php b/src/Refund/OrderMessage.php new file mode 100644 index 000000000..ea33aa9b8 --- /dev/null +++ b/src/Refund/OrderMessage.php @@ -0,0 +1,29 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund; + +class OrderMessage +{ + public function add(\Order $order, string $description) + { + $message = new \Message(); + $message->id_order = $order->id; + $message->message = $description; + $message->add(); + } +} diff --git a/src/Refund/OrderService.php b/src/Refund/OrderService.php new file mode 100644 index 000000000..84af86794 --- /dev/null +++ b/src/Refund/OrderService.php @@ -0,0 +1,225 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund; + +use PrestaShop\Decimal\DecimalNumber; +use PrestaShop\PrestaShop\Core\CommandBus\CommandBusInterface; +use PrestaShop\PrestaShop\Core\Domain\Order\Command\IssuePartialRefundCommand; +use PrestaShop\PrestaShop\Core\Domain\Order\VoucherRefundType; +use Symfony\Component\HttpFoundation\Session\SessionInterface; + +class OrderService +{ + /** + * @var CommandBusInterface + */ + private $commandBus; + + /** + * @var Session + */ + protected $session; + + /** + * @param CommandBusInterface $commandBus + */ + public function __construct( + CommandBusInterface $commandBus, + SessionInterface $session + ) { + $this->commandBus = $commandBus; + $this->session = $session; + } + + public function refund(\Order $order, float $amount) + { + $refundData = $this->determineRefundData($order, $amount); + + $createCreditSlipValue = \Configuration::get(Settings::LABEL_REFUND_CREDIT_SLIP, null, null, null, true); + if (!is_scalar($createCreditSlipValue)) { + $createCreditSlipValue = true; + } + + $command = new IssuePartialRefundCommand( + $order->id, + $refundData['products'], + $refundData['shipping_amount'], + boolval(\Configuration::get(Settings::LABEL_REFUND_RESTOCK)), + (bool) $createCreditSlipValue, + boolval(\Configuration::get(Settings::LABEL_REFUND_VOUCHER)), + VoucherRefundType::PRODUCT_PRICES_EXCLUDING_VOUCHER_REFUND + ); + + $this->session->set('buckaroo_skip_refund', true); + $this->commandBus->handle($command); + $this->session->remove('buckaroo_skip_refund'); + } + + /** + * Determine refund data, products and shipping amounts + * + * @param \Order $order + * @param float $refundAmount + * + * @return array + */ + private function determineRefundData($order, float $refundAmount): array + { + $refundItems = []; + + $orderDetails = \OrderDetail::getList($order->id); + + $remainingRefundAmount = $refundAmount; + foreach ($orderDetails as $orderDetail) { + $quantityAvailable = $this->getProductQuantityAvailable($orderDetail); + $unitPrice = $this->getProductUnitPrice($orderDetail, $this->isTaxIncludedInOrder($order)); + + $product = $this->getProductQuantityForRefund($quantityAvailable, $unitPrice, $remainingRefundAmount); + if ($product['amount'] > 0) { + $remainingRefundAmount -= $product['amount']; + $refundItems[$orderDetail['id_order_detail']] = $product; + } + + if ($remainingRefundAmount < 0.005) { + break; + } + } + + $shippingAmount = 0; + if ($remainingRefundAmount > 0.005) { + $shippingAmount = $this->determineShippingRefundAmount( + $this->getShippingAmountAvailable($order), + $remainingRefundAmount + ); + } + + return [ + 'products' => $refundItems, + 'shipping_amount' => $shippingAmount, + ]; + } + + /** + * Determine shipping amount to be refunded + * + * @param float $availableShippingAmount + * @param float $remainingRefundAmount + * + * @return float + */ + private function determineShippingRefundAmount( + float $availableShippingAmount, + float $remainingRefundAmount + ): float { + if ($remainingRefundAmount > $availableShippingAmount) { + return $availableShippingAmount; + } + + return $remainingRefundAmount; + } + + /** + * Get shipping amount available for refund + * + * @param \Order $order + * + * @return float + */ + private function getShippingAmountAvailable(\Order $order): float + { + $shippingMaxRefund = new DecimalNumber( + $this->isTaxIncludedInOrder($order) ? + (string) $order->total_shipping_tax_incl : + (string) $order->total_shipping_tax_excl + ); + + $shippingSlipResume = \OrderSlip::getShippingSlipResume($order->id); + $shippingSlipTotalTaxIncl = new DecimalNumber((string) ($shippingSlipResume['total_shipping_tax_incl'] ?? 0)); + + return (float) (string) $shippingMaxRefund->minus($shippingSlipTotalTaxIncl); + } + + /** + * Get product quantity and amount, full quantity or partial quantity + * + * @param int $quantityAvailable + * @param float $unitPrice + * @param float $remainingRefundAmount + * + * @return array + */ + private function getProductQuantityForRefund( + int $quantityAvailable, + float $unitPrice, + float $remainingRefundAmount + ): array { + $productMaxRefund = $quantityAvailable * $unitPrice; + if ($productMaxRefund <= $remainingRefundAmount) { + return [ + 'amount' => $productMaxRefund, + 'quantity' => $quantityAvailable, + ]; + } else { + return [ + 'amount' => $remainingRefundAmount, + 'quantity' => ceil($remainingRefundAmount / $unitPrice), + ]; + } + } + + /** + * Get quantity available for refund for order item + * + * @param array $orderDetail + * + * @return int + */ + protected function getProductQuantityAvailable(array $orderDetail): int + { + return (int) $orderDetail['product_quantity'] + - (int) $orderDetail['product_quantity_return'] + - (int) $orderDetail['product_quantity_refunded']; + } + + /** + * Get unit price for order item + * + * @param array $orderDetail + * @param bool $isTaxIncluded + * + * @return float + */ + private function getProductUnitPrice(array $orderDetail, bool $isTaxIncluded): float + { + return $isTaxIncluded ? (float) $orderDetail['unit_price_tax_incl'] : (float) $orderDetail['unit_price_tax_excl']; + } + + /** + * @param \Order $order + * + * @return bool + */ + private function isTaxIncludedInOrder(\Order $order): bool + { + $customer = new \Customer($order->id_customer); + + $taxCalculationMethod = \Group::getPriceDisplayMethod((int) $customer->id_default_group); + + return $taxCalculationMethod === PS_TAX_INC; + } +} diff --git a/src/Refund/Payment/OrderPayment.php b/src/Refund/Payment/OrderPayment.php new file mode 100644 index 000000000..e433ae70a --- /dev/null +++ b/src/Refund/Payment/OrderPayment.php @@ -0,0 +1,38 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Payment; + +use OrderPayment as DefaultOrderPayment; + +class OrderPayment extends DefaultOrderPayment +{ + public function __construct($id = null, $id_lang = null, $id_shop = null, $translator = null) + { + $this->updateValidationAllowNegativeAmount(); + parent::__construct($id, $id_lang, $id_shop, $translator); + } + + private function updateValidationAllowNegativeAmount() + { + if ( + isset(self::$definition['fields']['amount']['validate']) + ) { + self::$definition['fields']['amount']['validate'] = 'isAnything'; + } + } +} diff --git a/src/Refund/Payment/Service.php b/src/Refund/Payment/Service.php new file mode 100644 index 000000000..2f9c80aa0 --- /dev/null +++ b/src/Refund/Payment/Service.php @@ -0,0 +1,36 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Payment; + +class Service +{ + public function create( + \Order $order, + string $transactionId, + string $paymentMethod, + float $amount + ) { + $payment = new OrderPayment(); + $payment->order_reference = $order->reference; + $payment->id_currency = $order->id_currency; + $payment->transaction_id = $transactionId; + $payment->amount = $amount; + $payment->payment_method = $paymentMethod; + $payment->save(); + } +} diff --git a/src/Refund/Payment/index.php b/src/Refund/Payment/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Refund/Payment/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Refund/Push/Handler.php b/src/Refund/Push/Handler.php new file mode 100644 index 000000000..f153d7dd5 --- /dev/null +++ b/src/Refund/Push/Handler.php @@ -0,0 +1,262 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Push; + +use Buckaroo\PrestaShop\Src\Entity\BkRefundRequest; +use Buckaroo\PrestaShop\Src\Refund\Payment\Service as PaymentService; +use Buckaroo\PrestaShop\Src\Refund\Settings; +use Buckaroo\PrestaShop\Src\Refund\StatusService; +use Buckaroo\Resources\Constants\ResponseStatus; +use Doctrine\ORM\EntityManager; +use Symfony\Component\HttpFoundation\Request; + +class Handler +{ + /** + * @var Request + */ + protected $request; + + /** + * @var EntityManager + */ + protected $entityManager; + + /** + * @var PaymentService + */ + protected $paymentService; + + /** + * @var StatusService + */ + protected $statusService; + + public function __construct( + EntityManager $entityManager, + PaymentService $paymentService, + StatusService $statusService + ) { + $this->request = Request::createFromGlobals(); + $this->entityManager = $entityManager; + $this->paymentService = $paymentService; + $this->statusService = $statusService; + } + + public function handle() + { + $order = $this->getOrder(); + if ($order === null) { + throw new \Exception('Cannot determine order'); + } + + $refundRequest = $this->getRefundRequest(); + if ($refundRequest === null) { + $this->addRefundToOrder($order); + } else { + $this->updateRefundRequest($refundRequest); + } + + $this->statusService->setRefunded($order); + } + + /** + * Attempt to do a prestashop refund + * + * @param \Order $order + * + * @return void + */ + private function addRefundToOrder(\Order $order) + { + try { + $this->createRefundRequest($order->id); + $this->createNegativePayment($order); + } catch (\Throwable $th) { + throw new \Exception('Cannot update order with refund', 0, $th); + } + } + + /** + * Create negative payment if enabled and the push is successful + * + * @param \Order $order + * + * @return void + */ + private function createNegativePayment(\Order $order) + { + if ( + \Configuration::get(Settings::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT) + && $this->refundIsSuccessful() + ) { + $this->paymentService->create( + $order, + $this->getRefundKey(), + $this->request->get('brq_transaction_method'), + (-1) * $this->getRefundAmount() + ); + } + } + + /** + * Get refund amount + * + * @return float + * + * @throws \Exception + */ + private function getRefundAmount(): float + { + $amount = $this->request->get('brq_amount_credit'); + + if (!is_scalar($amount) || (float) $amount == (float) 0) { + throw new \Exception('Invalid refund amount'); + } + + return (float) $amount; + } + + /** + * Get refund key + * + * @return string + * + * @throws \Exception + */ + private function getRefundKey() + { + $refundKey = $this->request->get('brq_transactions'); + if (!is_string($refundKey)) { + throw new \Exception('Invalid value for `brq_transactions`'); + } + + return $refundKey; + } + + /** + * Create a refund request to store state + * + * @param int $orderId + * + * @return void + */ + private function createRefundRequest(int $orderId) + { + $paymentKey = $this->request->get('brq_relatedtransaction_refund'); + + if (!is_string($paymentKey)) { + throw new \Exception('Invalid value for `brq_relatedtransaction_refund`'); + } + + $refundRequest = new BkRefundRequest(); + $refundRequest->setData(['pushes' => [$this->request->request->all()]]); + $refundRequest->setAmount($this->getRefundAmount()); + $refundRequest->setStatus( + $this->refundIsSuccessful() ? BkRefundRequest::STATUS_SUCCESS : BkRefundRequest::STATUS_FAILED + ); + $refundRequest->setOrderId($orderId); + $refundRequest->setKey($this->getRefundKey()); + $refundRequest->setPaymentKey($paymentKey); + $refundRequest->setCreatedAt(new \DateTime()); + $refundRequest->setPayload([]); + + $this->entityManager->persist($refundRequest); + $this->entityManager->flush(); + } + + /** + * Update refund request with the new status and + * append the push data + * + * @param BkRefundRequest $refundRequest + * + * @return BkRefundRequest $refundRequest + */ + private function updateRefundRequest(BkRefundRequest $refundRequest) + { + $refundRequest->setData(['pushes' => [$this->request->request->all()]]); + $refundRequest->setStatus( + $this->refundIsSuccessful() ? BkRefundRequest::STATUS_SUCCESS : BkRefundRequest::STATUS_FAILED + ); + $this->entityManager->flush($refundRequest); + + return $refundRequest; + } + + public function refundIsSuccessful(): bool + { + return $this->request->request->get('brq_statuscode') === ResponseStatus::BUCKAROO_STATUSCODE_SUCCESS; + } + + /** + * Get saved refund request if any + * + * @return BkRefundRequest|null + */ + private function getRefundRequest() + { + $refundKey = $this->request->get('brq_transactions'); + + if (!is_string($refundKey)) { + return null; + } + + $refundRequestRepository = $this->entityManager->getRepository(BkRefundRequest::class); + + return $refundRequestRepository->findOneBy([ + 'key' => $refundKey, + ]); + } + + /** + * Get order by cart id from invoice number + * + * @return \Order|null + */ + private function getOrder() + { + $cartId = $this->getCartId(); + if ($cartId === null) { + return null; + } + + return \Order::getByCartId($cartId); + } + + /** + * Get cart id from invoice number + * + * @return int|null + */ + private function getCartId() + { + $invoiceNumber = $this->request->get('brq_invoicenumber'); + + if (!is_string($invoiceNumber)) { + return null; + } + $parts = explode('_', urldecode($invoiceNumber)); + + if (!isset($parts[1])) { + return null; + } + + return (int) $parts[1]; + } +} diff --git a/src/Refund/Push/index.php b/src/Refund/Push/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Refund/Push/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Refund/Request/AbstractBuilder.php b/src/Refund/Request/AbstractBuilder.php new file mode 100644 index 000000000..0a6095216 --- /dev/null +++ b/src/Refund/Request/AbstractBuilder.php @@ -0,0 +1,103 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Request; + +use Buckaroo\Resources\Constants\IPProtocolVersion; +use Symfony\Component\HttpFoundation\Request; + +abstract class AbstractBuilder +{ + protected function buildCommon(\Order $order, \OrderPayment $payment, float $refundAmount): array + { + return [ + 'order' => $payment->order_reference . '_' . $order->id_cart, + 'invoice' => $payment->order_reference . '_' . $order->id_cart, + 'amountCredit' => $refundAmount, + 'currency' => \Currency::getIsoCodeById($order->id_currency), + 'pushURL' => $this->getPushUrl(), + 'pushURLFailure' => $this->getPushUrl(), + 'clientIP' => $this->getIp(), + 'originalTransactionKey' => (string) $payment->transaction_id, + 'additionalParameters' => [ + 'orderId' => $order->id, + ], + ]; + } + + /** + * Get ip + * + * @return array + */ + private function getIp(): array + { + $remoteIp = Request::createFromGlobals()->getClientIp(); + + return [ + 'address' => $remoteIp, + 'type' => IPProtocolVersion::getVersion($remoteIp), + ]; + } + + /** + * Get push url + * + * @return string + */ + private function getPushUrl(): string + { + return 'http' . ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . __PS_BASE_URI__ . 'index.php?fc=module&module=buckaroo3&controller=userreturn'; + } + + /** + * Build body for credit & debit cards + * + * @param \OrderPayment $payment + * + * @return array + */ + protected function buildIssuers(\OrderPayment $payment): array + { + if (in_array($payment->payment_method, [ + 'creditcard', 'mastercard', 'visa', + 'amex', 'vpay', 'maestro', + 'visaelectron', 'cartebleuevisa', + 'cartebancaire', 'dankort', 'nexi', + 'postepay', + ])) { + return [ + 'name' => $payment->payment_method, + 'version' => 2, + ]; + } + + return []; + } + + /** + * Round amount to 2 decimals for payment engine + * + * @param float $amount + * + * @return float + */ + protected function round(float $amount): float + { + return round($amount, 2); + } +} diff --git a/src/Refund/Request/Builder.php b/src/Refund/Request/Builder.php new file mode 100644 index 000000000..38da17fce --- /dev/null +++ b/src/Refund/Request/Builder.php @@ -0,0 +1,149 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Request; + +use PrestaShop\PrestaShop\Adapter\Order\Refund\OrderRefundSummary; +use Tax; + +class Builder extends AbstractBuilder +{ + public function create(\Order $order, \OrderPayment $payment, OrderRefundSummary $refundSummary) + { + return array_merge( + $this->buildCommon($order, $payment, $this->round($refundSummary->getRefundedAmount())), + $this->buildIssuers($payment), + $this->buildArticles($refundSummary, $payment->payment_method) + ); + } + + private function buildArticles(OrderRefundSummary $refundSummary, string $paymentCode): array + { + if (!in_array($paymentCode, ['afterpay', 'billink'])) { + return []; + } + + $articles = []; + $total = 0; + + // if voucher do a amount refund + if ($refundSummary->isVoucherChosen() && $refundSummary->getVoucherAmount() > 0) { + $amount = $this->round($refundSummary->getVoucherAmount()); + $total += $amount; + $articles[] = [ + 'refundType' => 'Return', + 'identifier' => 'amount_refund', + 'description' => 'Refund amount of ' . $amount, + 'quantity' => 1, + 'price' => $amount, + 'vatPercentage' => 0, + ]; + } else { + // create body for each product + foreach ($refundSummary->getProductRefunds() as $orderDetailId => $productRefund) { + if (!isset($productRefund['amount']) || !isset($productRefund['quantity'])) { + continue; + } + + $amount = $this->round((float) $productRefund['amount']); + if ($amount <= 0) { + continue; + } + + $orderDetail = $refundSummary->getOrderDetailById($orderDetailId); + $total += $amount; + + $articles[] = [ + 'refundType' => 'Return', + 'identifier' => $orderDetail->product_id, + 'description' => $orderDetail->product_name, + 'quantity' => $productRefund['quantity'], + 'price' => $amount, + 'vatPercentage' => $this->getVatPercentage($orderDetail), + ]; + } + + // if we have other type of voucher we deduct + if ($refundSummary->getVoucherAmount() > 0) { + $amount = $this->round($refundSummary->getVoucherAmount()); + $total -= $amount; + $articles[] = [ + 'refundType' => 'Return', + 'identifier' => 'amount_discount', + 'description' => 'Discount amount of ' . $amount, + 'quantity' => 1, + 'price' => (-1) * $amount, + 'vatPercentage' => 0, + ]; + } + } + // create body for shipping if exists + if ($refundSummary->getRefundedShipping() > 0) { + $amount = $this->round($refundSummary->getRefundedShipping()); + $total += $amount; + + $articles[] = [ + 'refundType' => 'Return', + 'identifier' => 'shipping', + 'description' => 'Shipping', + 'quantity' => 1, + 'price' => $amount, + 'vatPercentage' => 0, + ]; + } + + // Checking for rounding errors + $errors = $this->round($refundSummary->getRefundedAmount()) - $total; + if (abs($errors) >= 0.01) { + $articles[] = [ + 'refundType' => 'Return', + 'identifier' => 'rounding_errors', + 'description' => 'Rounding errors', + 'quantity' => 1, + 'price' => $errors, + 'vatPercentage' => 0, + ]; + } + + return ['articles' => $articles]; + } + + /** + * Get first tax percentage + * + * @param \OrderDetail $orderDetail + * + * @return float + */ + private function getVatPercentage(\OrderDetail $orderDetail): float + { + $taxList = $orderDetail->getTaxList(); + if (!is_array($taxList)) { + return 0; + } + + foreach ($orderDetail->getTaxList() as $tax) { + if (!isset($tax['id_tax'])) { + continue; + } + + return (new \Tax($tax['id_tax']))->rate; + } + + return 0; + } +} diff --git a/src/Refund/Request/Handler.php b/src/Refund/Request/Handler.php new file mode 100644 index 000000000..f1e8f2668 --- /dev/null +++ b/src/Refund/Request/Handler.php @@ -0,0 +1,56 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Request; + +use Buckaroo\BuckarooClient; +use Buckaroo\PrestaShop\Classes\Config; +use Buckaroo\Transaction\Response\TransactionResponse; + +class Handler +{ + /** + * Execute refund request + * + * @param array $body + * @param string $method + * + * @return TransactionResponse + */ + public function refund(array $body, string $method): TransactionResponse + { + $buckaroo = $this->getClient($method); + + return $buckaroo->method($method)->refund($body); + } + + /** + * Get buckaroo client + * + * @param string $method + * + * @return BuckarooClient + */ + private function getClient(string $method): BuckarooClient + { + return new BuckarooClient( + \Configuration::get('BUCKAROO_MERCHANT_KEY'), + \Configuration::get('BUCKAROO_SECRET_KEY'), + Config::getMode($method) + ); + } +} diff --git a/src/Refund/Request/QuantityBasedBuilder.php b/src/Refund/Request/QuantityBasedBuilder.php new file mode 100644 index 000000000..51bdfcaad --- /dev/null +++ b/src/Refund/Request/QuantityBasedBuilder.php @@ -0,0 +1,48 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Request; + +class QuantityBasedBuilder extends AbstractBuilder +{ + public function create(\Order $order, \OrderPayment $payment, float $amount) + { + return array_merge( + $this->buildCommon($order, $payment, $this->round($amount)), + $this->buildIssuers($payment), + $this->buildArticles($this->round($amount), $payment->payment_method) + ); + } + + private function buildArticles(float $amount, string $paymentCode): array + { + if (!in_array($paymentCode, ['afterpay', 'billink'])) { + return []; + } + + return [ + 'articles' => [[ + 'refundType' => 'Return', + 'identifier' => 'amount_refund', + 'description' => 'Refund amount of ' . $amount, + 'quantity' => 1, + 'price' => $amount, + 'vatPercentage' => 0, + ]], + ]; + } +} diff --git a/src/Refund/Request/Response/Handler.php b/src/Refund/Request/Response/Handler.php new file mode 100644 index 000000000..22e01dec7 --- /dev/null +++ b/src/Refund/Request/Response/Handler.php @@ -0,0 +1,157 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund\Request\Response; + +use Buckaroo\PrestaShop\Src\Entity\BkRefundRequest; +use Buckaroo\PrestaShop\Src\Refund\Payment\Service as PaymentService; +use Buckaroo\PrestaShop\Src\Refund\Settings; +use Buckaroo\PrestaShop\Src\Refund\StatusService; +use Buckaroo\Transaction\Response\TransactionResponse; +use Doctrine\ORM\EntityManager; +use PrestaShop\PrestaShop\Core\Domain\Order\Exception\OrderException; + +class Handler +{ + /** + * @var EntityManager + */ + private $entityManager; + + /** + * @var PaymentService + */ + private $paymentService; + + /** + * @var StatusService + */ + private $statusService; + + public function __construct( + EntityManager $entityManager, + PaymentService $paymentService, + StatusService $statusService + ) { + $this->entityManager = $entityManager; + $this->paymentService = $paymentService; + $this->statusService = $statusService; + } + + public function parse(TransactionResponse $response, array $body, int $orderId) + { + $order = new \Order($orderId); + $this->createRefundRequest($response, $body, $orderId); + $this->statusService->setRefunded($order); + + if (!$response->isSuccess()) { + $message = ''; + if ($response->hasSomeError()) { + $message = $response->getSomeError(); + } + if (strlen($message) == 0) { + $message = 'Cannot create refund, check Buckaroo plaza for details https://plaza.buckaroo.nl/Transaction/Transactions/Details?transactionKey=' . $response->getTransactionKey(); // phpcs: ignore Generic.Files.LineLength.TooLong + } + throw new OrderException($message); + } + $this->createNegativePayment($order, $response); + } + + private function createRefundRequest(TransactionResponse $response, array $body, int $orderId) + { + $amountRefunded = $this->getRefundedAmount($response); + + $refundRequest = new BkRefundRequest(); + $refundRequest->setStatus( + $response->isSuccess() ? BkRefundRequest::STATUS_SUCCESS : BkRefundRequest::STATUS_FAILED + ); + $refundRequest->setAmount($amountRefunded); + $refundRequest->setOrderId($orderId); + $refundRequest->setKey($response->getTransactionKey()); + $refundRequest->setPaymentKey($this->getPaymentKey($response)); + $refundRequest->setPayload($body); + $refundRequest->setData(['response' => $response->toArray()]); + $refundRequest->setCreatedAt(new \DateTime()); + + $this->entityManager->persist($refundRequest); + $this->entityManager->flush(); + + return $refundRequest; + } + + /** + * Get refunded amount from response + * + * @param TransactionResponse $response + * + * @return float + */ + private function getRefundedAmount(TransactionResponse $response): float + { + $amountRefunded = $response->get('AmountCredit'); + + if (!is_scalar($amountRefunded)) { + $amountRefunded = 0; + } + + return (float) $amountRefunded; + } + + protected function getPaymentKey(TransactionResponse $response): string + { + $related = $response->get('RelatedTransactions'); + if (!is_array($related) + || !isset($related['RelationType']) + || !isset($related['RelatedTransactionKey']) + ) { + if (!isset($related[0]['RelationType']) + || !isset($related[0]['RelatedTransactionKey']) + ) { + return $related[0]['RelatedTransactionKey']; + } + + return ''; + } + + if ($related['RelationType'] === 'refund') { + return $related['RelatedTransactionKey']; + } + + return ''; + } + + /** + * Create negative payment if enabled and the push is successful + * + * @param \Order $order + * + * @return void + */ + private function createNegativePayment(\Order $order, TransactionResponse $response) + { + if ( + \Configuration::get(Settings::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT) + ) { + $this->paymentService->create( + $order, + $response->getTransactionKey(), + $response->getMethod(), + (-1) * $this->getRefundedAmount($response) + ); + } + } +} diff --git a/src/Refund/Request/Response/index.php b/src/Refund/Request/Response/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Refund/Request/Response/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Refund/Request/index.php b/src/Refund/Request/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Refund/Request/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Refund/Settings.php b/src/Refund/Settings.php new file mode 100644 index 000000000..a1e00fa99 --- /dev/null +++ b/src/Refund/Settings.php @@ -0,0 +1,102 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund; + +class Settings +{ + public const LABEL_REFUND_RESTOCK = 'BUCKAROO_REFUND_RESTOCK'; + public const LABEL_REFUND_CREDIT_SLIP = 'BUCKAROO_REFUND_CREDIT_SLIP'; + public const LABEL_REFUND_VOUCHER = 'BUCKAROO_REFUND_VOUCHER'; + public const LABEL_REFUND_CREATE_NEGATIVE_PAYMENT = 'BUCKAROO_REFUND_CREATE_NEGATIVE_PAYMENT'; + + public function getFormFields($module): array + { + if (!method_exists($module, 'l')) { + throw new \Exception('Cannot find module translator', 1); + } + + return [ + 'legend' => $module->l('Refund settings'), + 'name' => 'REFUND', + 'position' => 0.5, + 'enabled' => true, + 'input' => [ + [ + 'type' => 'bool', + 'name' => self::LABEL_REFUND_RESTOCK, + 'label' => $module->l('Re-stock products'), + ], + [ + 'type' => 'bool', + 'name' => self::LABEL_REFUND_CREDIT_SLIP, + 'label' => $module->l('Generate a credit slip'), + ], + [ + 'type' => 'bool', + 'name' => self::LABEL_REFUND_VOUCHER, + 'label' => $module->l('Generate a voucher'), + ], + [ + 'type' => 'bool', + 'name' => self::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT, + 'label' => $module->l('Create negative payments on refund'), + ], + [ + 'type' => 'submit', + 'name' => 'save_data', + 'label' => $module->l('Save configuration'), + 'required' => true, + ], + ], + ]; + } + + public function getValues(): array + { + return [ + self::LABEL_REFUND_RESTOCK => \Configuration::get(self::LABEL_REFUND_RESTOCK), + self::LABEL_REFUND_CREDIT_SLIP => \Configuration::get(self::LABEL_REFUND_CREDIT_SLIP), + self::LABEL_REFUND_VOUCHER => \Configuration::get(self::LABEL_REFUND_VOUCHER), + self::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT => \Configuration::get(self::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT), + ]; + } + + public function install() + { + \Configuration::updateValue(self::LABEL_REFUND_RESTOCK, false); + \Configuration::updateValue(self::LABEL_REFUND_CREDIT_SLIP, true); + \Configuration::updateValue(self::LABEL_REFUND_VOUCHER, false); + \Configuration::updateValue(self::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT, false); + } + + public function uninstall() + { + \Configuration::deleteByName(self::LABEL_REFUND_RESTOCK); + \Configuration::deleteByName(self::LABEL_REFUND_CREDIT_SLIP); + \Configuration::deleteByName(self::LABEL_REFUND_VOUCHER); + \Configuration::deleteByName(self::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT); + } + + public function updateAll() + { + \Configuration::updateValue(self::LABEL_REFUND_RESTOCK, \Tools::getValue(self::LABEL_REFUND_RESTOCK)); + \Configuration::updateValue(self::LABEL_REFUND_CREDIT_SLIP, \Tools::getValue(self::LABEL_REFUND_CREDIT_SLIP)); + \Configuration::updateValue(self::LABEL_REFUND_VOUCHER, \Tools::getValue(self::LABEL_REFUND_VOUCHER)); + \Configuration::updateValue(self::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT, \Tools::getValue(self::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT)); + } +} diff --git a/src/Refund/StatusService.php b/src/Refund/StatusService.php new file mode 100644 index 000000000..3ed8c0a35 --- /dev/null +++ b/src/Refund/StatusService.php @@ -0,0 +1,96 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Refund; + +use Buckaroo\PrestaShop\Src\Entity\BkRefundRequest; +use Doctrine\ORM\EntityManager; + +class StatusService +{ + /** + * @var EntityManager + */ + private $entityManager; + + public function __construct(EntityManager $entityManager) + { + $this->entityManager = $entityManager; + } + + /** + * Set order to refunded if its not already refunded + * + * @param \Order $order + * + * @return void + */ + public function setRefunded(\Order $order) + { + $statusRefunded = \Configuration::get('PS_OS_REFUND'); + + $orderState = $order->getCurrentOrderState(); + $isCurrentlyRefunded = $orderState !== null && $orderState->id == $statusRefunded; + + if ($this->isReadyToBeRefunded($order) && !$isCurrentlyRefunded) { + $this->update($order->id, $statusRefunded); + } + } + + /** + * Check to see if order is ready to be refunded + * + * @param \Order $order + * + * @return bool + */ + private function isReadyToBeRefunded(\Order $order) + { + $refundRequestRepository = $this->entityManager->getRepository(BkRefundRequest::class); + $refunds = $refundRequestRepository->findBy([ + 'orderId' => $order->id, + 'status' => BkRefundRequest::STATUS_SUCCESS, + ]); + + $refunded = array_sum(array_map( + function ($refund) { + return $refund->getAmount(); + }, + $refunds + )); + + return abs($order->total_paid - $refunded) < 0.005; + } + + /** + * Update order status + * + * @param int $orderId + * @param int $status + * + * @return void + */ + public function update(int $orderId, $status) + { + $history = new \OrderHistory(); + $history->id_order = $orderId; + $history->date_add = date('Y-m-d H:i:s'); + $history->date_upd = date('Y-m-d H:i:s'); + $history->changeIdOrderState($status, $orderId); + $history->addWithemail(false); + } +} diff --git a/src/Refund/index.php b/src/Refund/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Refund/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Repository/BkConfigurationRepositoryInterface.php b/src/Repository/BkConfigurationRepositoryInterface.php new file mode 100644 index 000000000..7cda86d9c --- /dev/null +++ b/src/Repository/BkConfigurationRepositoryInterface.php @@ -0,0 +1,12 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +use Buckaroo\PrestaShop\Src\Entity\BkPaymentMethods; +use Doctrine\ORM\EntityRepository; + +class ConfigurationRepository extends EntityRepository implements BkConfigurationRepositoryInterface +{ + private function getPaymentMethodByName(string $name): ?BkPaymentMethods + { + return $this->_em->getRepository(BkPaymentMethods::class)->findOneBy(['name' => $name]); + } + + public function getConfigArray(int $paymentId): array + { + $configuration = $this->findOneBy(['configurable_id' => $paymentId]); + if (!$configuration) { + throw new \Exception("Configuration not found for payment id {$paymentId}"); + } + + $configArray = json_decode($configuration->getValue(), true); + if ($configArray === null) { + throw new \Exception('JSON decode error: ' . json_last_error_msg()); + } + + return $configArray; + } + + public function updateConfig(int $paymentId, array $config): bool + { + $configuration = $this->findOneBy(['configurable_id' => $paymentId]); + if (!$configuration) { + throw new \Exception("Configuration not found for payment id {$paymentId}"); + } + + $configuration->setValue(json_encode($config)); + $this->_em->persist($configuration); + $this->_em->flush(); + + return true; + } + + /** + * @throws \Exception + */ + public function getActiveCreditCards(): array + { + $paymentMethod = $this->getPaymentMethodByName('creditcard'); + + $configArray = $this->getConfigArray($paymentMethod->getId()); + $result = $configArray['activeCreditcards'] ?? []; + + $issuerArray = []; + foreach ($result as $card) { + $issuerArray[strtolower($card['service_code'])] = [ + 'name' => $card['name'], + 'logo' => $card['icon'], + ]; + } + + return $issuerArray; + } +} diff --git a/src/Repository/CountryRepository.php b/src/Repository/CountryRepository.php new file mode 100644 index 000000000..ea2eb5d0d --- /dev/null +++ b/src/Repository/CountryRepository.php @@ -0,0 +1,91 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +use Buckaroo\PrestaShop\Src\Entity\BkCountries; +use Doctrine\ORM\EntityRepository; + +class CountryRepository extends EntityRepository implements BkCountriesRepositoryInterface +{ + private function processCountries($countries) + { + $result = []; + + foreach ($countries as $country) { + $result[] = [ + 'id' => $country['id_country'], + 'name' => strtolower($country['name']), + 'iso_code_2' => $country['iso_code'], + 'iso_code_3' => \Country::getIsoById($country['id_country']), + 'call_prefix' => $country['call_prefix'], + 'icon' => \Tools::strtolower($country['iso_code']) . '.jpg', + ]; + } + + return $result; + } + + public function getCountriesFromDB(): array + { + $countries = $this->findAll(); + $result = []; + + foreach ($countries as $country) { + $result[] = [ + 'id' => $country->getCountryId(), + 'name' => strtolower($country->getName()), + 'iso_code_2' => $country->getIsoCode2(), + 'iso_code_3' => $country->getIsoCode3(), + 'call_prefix' => $country->getCallPrefix(), + 'icon' => \Tools::strtolower($country->getIsoCode2()) . '.jpg', + ]; + } + + return $result; + } + + public function checkAndInsertNewCountries() + { + $dbCountries = $this->getCountriesFromDB(); + $dbCountryIds = array_column($dbCountries, 'id'); + + $langId = \Context::getContext()->language->id; + $rawCountries = \Country::getCountries($langId, true); + $processedCountries = $this->processCountries($rawCountries); + + $newCountries = array_filter($processedCountries, function ($country) use ($dbCountryIds) { + return !in_array($country['id'], $dbCountryIds); + }); + + if ($newCountries) { + foreach ($newCountries as $countryData) { + $country = new BkCountries(); + $country->setCountryId($countryData['id']); + $country->setName($countryData['name']); + $country->setIsoCode2($countryData['iso_code_2']); + $country->setIsoCode3($countryData['iso_code_3']); + $country->setCallPrefix($countryData['call_prefix']); + $country->setIcon($countryData['icon']); + $this->_em->persist($country); + } + $this->_em->flush(); + } + + return array_merge($dbCountries, $newCountries); + } +} diff --git a/src/Repository/OrderingRepository.php b/src/Repository/OrderingRepository.php new file mode 100644 index 000000000..c2e00b1c6 --- /dev/null +++ b/src/Repository/OrderingRepository.php @@ -0,0 +1,241 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +use Buckaroo\PrestaShop\Src\Entity\BkCountries; +use Buckaroo\PrestaShop\Src\Entity\BkOrdering; +use Buckaroo\PrestaShop\Src\Entity\BkPaymentMethods; +use Doctrine\ORM\EntityRepository; +use Doctrine\ORM\NonUniqueResultException; + +class OrderingRepository extends EntityRepository +{ + public function findOneByCountryId($country_id) + { + return $this->findOneBy(['country_id' => $country_id]); + } + + /** + * @throws NonUniqueResultException + */ + public function findOneByCountryIsoCode(?string $isoCode2) + { + $qb = $this->_em->createQueryBuilder()->select('bo') + ->from(BkOrdering::class, 'bo'); + if ($isoCode2 !== null) { + $qb->join(BkCountries::class, 'c', 'WITH', 'bo.country_id = c.country_id') + ->where('c.iso_code_2 = :isoCode2') + ->setParameter('isoCode2', $isoCode2); + } else { + $qb->where('bo.country_id IS NULL'); + } + + return $qb->getQuery()->getOneOrNullResult(); + } + + public function updateOrdering($value, $countryId = null) + { + if (is_string($value)) { + $value = json_decode($value, true); + if (json_last_error() !== JSON_ERROR_NONE) { + // Handle JSON decode error + return false; + } + } + + $idArray = array_column($value, 'id'); + $value = json_encode($idArray); + + if ($countryId !== null) { + return $this->updateOrderingForSpecificCountry($value, $countryId); + } + + return $this->updateOrderingValue($value, null); + } + + private function updateOrderingForSpecificCountry($value, $countryId) + { + $countryRepo = $this->_em->getRepository(BkCountries::class); + $country = $countryRepo->findOneBy(['country_id' => $countryId]); + + if (!$country) { + return false; + } + + return $this->updateOrderingValue($value, $countryId); + } + + private function updateOrderingValue($value, $countryId) + { + $orderingRepo = $this->_em->getRepository(BkOrdering::class); + $ordering = $orderingRepo->findOneBy(['country_id' => $countryId]); + + if (!$ordering) { + return false; + } + + $ordering->setValue($value); + $this->_em->persist($ordering); + $this->_em->flush(); + + return true; + } + + public function getOrdering(?string $isoCode2) + { + $ordering = $this->findOneByCountryIsoCode($isoCode2); + + if (empty($ordering)) { + return null; + } + + $result = [ + 'id' => $ordering->getId(), + 'country_id' => $ordering->getCountryId(), + 'value' => [], + 'createdAt' => $ordering->getCreatedAt(), + 'updatedAt' => $ordering->getUpdatedAt(), + 'status' => true, + ]; + + $paymentMethodIds = is_string($ordering->getValue()) + ? json_decode($ordering->getValue(), true) + : $ordering->getValue(); + + $paymentMethodRepo = $this->_em->getRepository(BkPaymentMethods::class); + + foreach ($paymentMethodIds as $id) { + $paymentMethodData = $paymentMethodRepo->findOneBy(['id' => $id]); + + if ($paymentMethodData) { + $result['value'][] = [ + 'id' => $paymentMethodData->getId(), + 'name' => $paymentMethodData->getName(), + 'label' => $paymentMethodData->getLabel(), + 'icon' => $paymentMethodData->getIcon(), + ]; + } + } + + return $result; + } + + public function fetchPositions($isoCode2) + { + $ordering = $this->findOneByCountryIsoCode($isoCode2); + + if (empty($ordering)) { + return null; + } + + $positionsArray = json_decode($ordering->getValue(), true); + $output = []; + $paymentMethodRepo = $this->_em->getRepository(BkPaymentMethods::class); + + foreach ($positionsArray as $id) { + $paymentMethodData = $paymentMethodRepo->findOneBy(['id' => $id]); + if ($paymentMethodData) { + $output[] = $paymentMethodData->getName(); + } + } + + return $output; + } + + /** + * Creates a new BkOrdering with given data. + * + * @param int $countryId + * @param array $paymentMethodIds + * + * @return BkOrdering + */ + public function createNewOrdering(int $countryId, array $paymentMethodIds): BkOrdering + { + $ordering = new BkOrdering(); + $ordering->setCountryId($countryId); + $ordering->setValue(json_encode($paymentMethodIds)); + + $this->_em->persist($ordering); + $this->_em->flush(); + + return $ordering; + } + + /** + * Add a payment method ID to the ordering if it doesn't exist. + * + * @param BkOrdering $ordering + * @param int $paymentMethodId + * + * @return bool indicates whether the ordering was updated or not + */ + public function addPaymentMethodToOrdering(BkOrdering $ordering, int $paymentMethodId): bool + { + $paymentMethodIds = json_decode($ordering->getValue(), true); + + // Check if the paymentMethodId is already in the ordering for the country + if (!in_array($paymentMethodId, $paymentMethodIds)) { + // Add paymentMethodId to the ordering for the country + $paymentMethodIds[] = $paymentMethodId; + $ordering->setValue(json_encode($paymentMethodIds)); + $this->_em->persist($ordering); + $this->_em->flush(); + + return true; + } + + return false; + } + + /** + * Remove the given payment method ID from all orderings if it's not in the new country IDs. + * + * @param int $paymentMethodId + * @param array $newCountryIds + */ + public function removePaymentMethodFromOrderings(int $paymentMethodId, array $newCountryIds): void + { + $allOrderings = $this->findAll(); + + foreach ($allOrderings as $ordering) { + if ($ordering->getCountryId() === null) { + continue; + } + + $paymentMethodIds = json_decode($ordering->getValue(), true); + + if (in_array($paymentMethodId, $paymentMethodIds) && !in_array($ordering->getCountryId(), $newCountryIds)) { + $key = array_search($paymentMethodId, $paymentMethodIds); + + if ($key !== false) { + unset($paymentMethodIds[$key]); + + if (empty($paymentMethodIds)) { + $this->_em->remove($ordering); + } else { + $ordering->setValue(json_encode(array_values($paymentMethodIds))); + $this->_em->persist($ordering); + } + } + } + } + + $this->_em->flush(); + } +} diff --git a/src/Repository/PaymentMethodRepository.php b/src/Repository/PaymentMethodRepository.php new file mode 100644 index 000000000..ae4816ce3 --- /dev/null +++ b/src/Repository/PaymentMethodRepository.php @@ -0,0 +1,68 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +use Buckaroo\PrestaShop\Src\Entity\BkConfiguration; +use Buckaroo\PrestaShop\Src\Entity\BkPaymentMethods; +use Doctrine\ORM\EntityRepository; + +class PaymentMethodRepository extends EntityRepository implements BkPaymentMethodRepositoryInterface +{ + public function fetchMethodsFromDBWithConfig(int $isPaymentMethod): array + { + $qb = $this->_em->createQueryBuilder(); + + $qb->select('pm.name AS payment_name', 'pm.icon AS payment_icon', 'config.value AS config_value') + ->from(BkPaymentMethods::class, 'pm') + ->where('pm.is_payment_method = :isPaymentMethod') + ->setParameter('isPaymentMethod', $isPaymentMethod) + ->leftJoin(BkConfiguration::class, 'config', 'WITH', 'pm.id = config.configurable_id'); + + $results = $qb->getQuery()->getArrayResult(); + + if (!$results) { + throw new \Exception('Database error: Could not fetch payment methods with config'); + } + + $capayableIn3 = \Module::getInstanceByName('buckaroo3')->get('buckaroo.classes.issuers.capayableIn3'); + + $payments = []; + foreach ($results as $result) { + $payment = [ + 'name' => $result['payment_name'], + 'icon' => $result['payment_icon'], + ]; + + if ($result['payment_name'] === 'in3') { + $payment['icon'] = $capayableIn3->getLogo(); + } + + if (isset($result['config_value']) && ($configArray = json_decode($result['config_value'], true)) !== null) { + if (json_last_error() === JSON_ERROR_NONE) { + $payment = array_merge($payment, $configArray); + } else { + throw new \Exception('JSON decode error: ' . json_last_error_msg()); + } + } + + $payments[] = $payment; + } + + return $payments; + } +} diff --git a/src/Repository/RawCountryRepository.php b/src/Repository/RawCountryRepository.php new file mode 100644 index 000000000..7bfc3da07 --- /dev/null +++ b/src/Repository/RawCountryRepository.php @@ -0,0 +1,94 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +class RawCountryRepository +{ + private $db; + private $context; + + public function __construct() + { + $this->db = \Db::getInstance(); + $this->context = \Context::getContext(); + } + + /** + * @throws \Exception + */ + public function insertCountries() + { + $this->clearCountriesTable(); + $langId = $this->context->language->id; + $rawCountries = \Country::getCountries($langId, true); + $processedCountries = $this->processCountries($rawCountries); + $this->insertCountriesToDB($processedCountries); + + return $processedCountries; + } + + private function processCountries($countries) + { + $result = []; + + foreach ($countries as $country) { + $result[] = [ + 'id' => $country['id_country'], + 'name' => strtolower($country['name']), + 'iso_code_2' => $country['iso_code'], + 'iso_code_3' => \Country::getIsoById($country['id_country']), + 'call_prefix' => $country['call_prefix'], + 'icon' => \Tools::strtolower($country['iso_code']) . '.jpg', + ]; + } + + return $result; + } + + private function insertCountriesToDB($countries) + { + foreach ($countries as $countryData) { + $data = $this->prepareData($countryData); + $result = $this->db->insert('bk_countries', $data); + if (!$result) { + throw new \Exception('Database error: Unable to insert country'); + } + } + } + + private function prepareData($countryData) + { + return [ + 'country_id' => pSQL($countryData['id']), + 'name' => pSQL($countryData['name']), + 'iso_code_2' => pSQL($countryData['iso_code_2']), + 'iso_code_3' => pSQL($countryData['iso_code_3']), + 'call_prefix' => pSQL($countryData['call_prefix']), + 'icon' => pSQL($countryData['icon']), + 'created_at' => date('Y-m-d H:i:s'), + ]; + } + + private function clearCountriesTable(): void + { + $sql = 'DELETE FROM ' . _DB_PREFIX_ . 'bk_countries'; + if (!\Db::getInstance()->execute($sql)) { + throw new \Exception('Database error: Could not clear payment methods table'); + } + } +} diff --git a/src/Repository/RawCreditCardsRepository.php b/src/Repository/RawCreditCardsRepository.php new file mode 100644 index 000000000..82c7a9b13 --- /dev/null +++ b/src/Repository/RawCreditCardsRepository.php @@ -0,0 +1,90 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +class RawCreditCardsRepository +{ + /** + * @throws \Exception + */ + public function insertCreditCards() + { + $this->clearCreditCardsTable(); + $creditCardsData = $this->getCreditCardsData(); + + foreach ($creditCardsData as $cardData) { + $this->insertCreditCard($cardData); + } + + return $creditCardsData; + } + + private function insertCreditCard(array $methodData): void + { + $data = [ + 'name' => pSQL($methodData['name']), + 'service_code' => pSQL($methodData['service_code']), + 'icon' => pSQL($methodData['icon']), + 'created_at' => date('Y-m-d H:i:s'), + ]; + + if (!\Db::getInstance()->insert('bk_creditcards', $data)) { + throw new \Exception('Database error: Could not insert Credit cards'); + } + } + + private function getCreditCardsData() + { + return [ + ['name' => 'American Express', 'service_code' => 'amex', 'icon' => 'AMEX.svg'], + ['name' => 'CarteBancaire', 'service_code' => 'cartebancaire', 'icon' => 'CarteBancaire.svg'], + ['name' => 'CarteBleue', 'service_code' => 'cartebleue', 'icon' => 'CarteBleue.svg'], + ['name' => 'Dankort', 'service_code' => 'dankort', 'icon' => 'Dankort.svg'], + ['name' => 'Maestro', 'service_code' => 'maestro', 'icon' => 'Maestro.svg'], + ['name' => 'Mastercard', 'service_code' => 'mastercard', 'icon' => 'MasterCard.svg'], + ['name' => 'Nexi', 'service_code' => 'nexi', 'icon' => 'Nexi.svg'], + ['name' => 'PostePay', 'service_code' => 'postepay', 'icon' => 'Postepay.svg'], + ['name' => 'VISA', 'service_code' => 'visa', 'icon' => 'Visa.svg'], + ['name' => 'VISA Electron', 'service_code' => 'visaelectron', 'icon' => 'VisaElectron.svg'], + ['name' => 'VPAY', 'service_code' => 'vpay', 'icon' => 'VPay.svg'], + ]; + } + + public function getCreditCardsFromDB(): array + { + $query = new \DbQuery(); + $query->select('*'); + $query->from('bk_creditcards'); + + $result = \Db::getInstance()->executeS($query); + + if (!$result) { + throw new \Exception('Database error: Could not fetch credit cards'); + } + + return $result; + } + + private function clearCreditCardsTable(): void + { + $sql = 'DELETE FROM ' . _DB_PREFIX_ . 'bk_creditcards'; + if (!\Db::getInstance()->execute($sql)) { + throw new \Exception('Database error: Could not clear payment methods table'); + } + } +} diff --git a/src/Repository/RawOrderingRepository.php b/src/Repository/RawOrderingRepository.php new file mode 100644 index 000000000..3666e08f4 --- /dev/null +++ b/src/Repository/RawOrderingRepository.php @@ -0,0 +1,78 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +class RawOrderingRepository +{ + private $db; + private $paymentMethodRepository; + + public function __construct() + { + $this->db = \Db::getInstance(); + $this->paymentMethodRepository = new RawPaymentMethodRepository(); + } + + /** + * @throws \Exception + */ + public function insertCountryOrdering($countryId = null, $paymentMethodsArray = null) + { + $this->clearOrderingTable(); + + return $this->insertCountryOrderingToDB($countryId, $paymentMethodsArray); + } + + /** + * @throws \Exception + */ + private function insertCountryOrderingToDB($countryId, $paymentMethodsArray) + { + if ($paymentMethodsArray === null) { + $paymentMethods = $this->paymentMethodRepository->getPaymentMethodsFromDB(); + $paymentMethodsArray = []; + foreach ($paymentMethods as $row) { + $paymentMethodsArray[] = $row['id']; + } + } + $data = $this->prepareData($countryId, $paymentMethodsArray); + $result = $this->db->insert('bk_ordering', $data, $null_values = true); + if (!$result) { + throw new \Exception('Database error: Unable to insert country'); + } + + return $result; + } + + private function prepareData($countryId, $paymentMethodsArray) + { + return [ + 'country_id' => pSQL($countryId), + 'value' => pSQL(json_encode($paymentMethodsArray)), + 'created_at' => date('Y-m-d H:i:s'), + ]; + } + + private function clearOrderingTable(): void + { + $sql = 'DELETE FROM ' . _DB_PREFIX_ . 'bk_ordering'; + if (!\Db::getInstance()->execute($sql)) { + throw new \Exception('Database error: Could not clear payment methods table'); + } + } +} diff --git a/src/Repository/RawPaymentMethodRepository.php b/src/Repository/RawPaymentMethodRepository.php new file mode 100644 index 000000000..43e8b49fd --- /dev/null +++ b/src/Repository/RawPaymentMethodRepository.php @@ -0,0 +1,207 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Repository; + +class RawPaymentMethodRepository +{ + /** + * @throws \Exception + */ + public function insertPaymentMethods() + { + $this->clearPaymentMethodsTable(); + $this->clearConfigurationTable(); + $paymentMethodsData = $this->getPaymentMethodsData(); + + foreach ($paymentMethodsData as $methodData) { + $this->insertPaymentMethod($methodData); + } + + return $paymentMethodsData; + } + + private function insertPaymentMethod(array $methodData): void + { + $data = [ + 'name' => pSQL($methodData['name']), + 'label' => pSQL($methodData['label']), + 'icon' => pSQL($methodData['icon']), + 'template' => pSQL($methodData['template']), + 'is_payment_method' => pSQL($methodData['is_payment_method']), + 'created_at' => date('Y-m-d H:i:s'), + ]; + + if (!\Db::getInstance()->insert('bk_payment_methods', $data)) { + throw new \Exception('Database error: Could not insert payment method'); + } + + $paymentMethodId = \Db::getInstance()->Insert_ID(); + $this->insertConfiguration($methodData['name'], $paymentMethodId); + } + + private function insertConfiguration(string $paymentName, int $paymentMethodId): void + { + $configValue = ['mode' => 'off']; + + switch ($paymentName) { + case 'creditcard': + case 'ideal': + case 'paybybank': + $configValue['display_type'] = 'radio'; + break; + + case 'in3': + $configValue['version'] = 'V3'; + break; + + case 'paypal': + $configValue['seller_protection'] = '0'; + break; + + case 'afterpay': + case 'billink': + $configValue['wrapping_vat'] = '2'; + $configValue['customer_type'] = 'B2C'; + break; + + case 'payperemail': + $configValue['send_instruction_email'] = '1'; + $configValue['due_days'] = '7'; + $configValue['allowed_payments'] = 'ideal'; + break; + + case 'transfer': + $configValue['send_instruction_email'] = '0'; + $configValue['due_days'] = '14'; + break; + + case 'idin': + $configValue['display_mode'] = 'global'; + break; + default: + } + + $configData = [ + 'configurable_id' => $paymentMethodId, + 'value' => json_encode($configValue), + 'created_at' => date('Y-m-d H:i:s'), + ]; + + if (!\Db::getInstance()->insert('bk_configuration', $configData)) { + throw new \Exception('Configuration insert error: Could not insert configuration'); + } + } + + private function getPaymentMethodsData() + { + return [ + ['name' => 'ideal', 'label' => 'iDEAL', 'icon' => 'iDEAL.svg', 'template' => 'payment_ideal.tpl', 'is_payment_method' => '1'], + ['name' => 'paybybank', 'label' => 'PayByBank', 'icon' => 'PayByBank.gif', 'template' => 'payment_paybybank.tpl', 'is_payment_method' => '1'], + ['name' => 'paypal', 'label' => 'PayPal', 'icon' => 'PayPal.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'sepadirectdebit', 'label' => 'SEPA Direct Debit', 'icon' => 'SEPA-directdebit.svg', 'template' => 'payment_sepadirectdebit.tpl', 'is_payment_method' => '1'], + ['name' => 'giropay', 'label' => 'GiroPay', 'icon' => 'Giropay.svg', 'template' => 'payment_giropay.tpl', 'is_payment_method' => '1'], + ['name' => 'kbc', 'label' => 'KBC', 'icon' => 'KBC.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'bancontactmrcash', 'label' => 'Bancontact / Mister Cash', 'icon' => 'Bancontact.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'giftcard', 'label' => 'Giftcards', 'icon' => 'Giftcards.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'creditcard', 'label' => 'Cards', 'icon' => 'Creditcards.svg', 'template' => 'payment_creditcard.tpl', 'is_payment_method' => '1'], + ['name' => 'sofortueberweisung', 'label' => 'Sofortbanking', 'icon' => 'Sofort.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'belfius', 'label' => 'Belfius', 'icon' => 'Belfius.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'afterpay', 'label' => 'Riverty | AfterPay', 'icon' => 'AfterPay.svg', 'template' => 'payment_afterpay.tpl', 'is_payment_method' => '1'], + ['name' => 'klarna', 'label' => 'KlarnaKP', 'icon' => 'Klarna.svg', 'template' => 'payment_klarna.tpl', 'is_payment_method' => '1'], + ['name' => 'applepay', 'label' => 'Apple Pay', 'icon' => 'ApplePay.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'in3', 'label' => 'In3', 'icon' => 'In3.svg', 'template' => 'payment_in3.tpl', 'is_payment_method' => '1'], + ['name' => 'billink', 'label' => 'Billink', 'icon' => 'Billink.svg', 'template' => 'payment_billink.tpl', 'is_payment_method' => '1'], + ['name' => 'eps', 'label' => 'EPS', 'icon' => 'EPS.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'przelewy24', 'label' => 'Przelewy24', 'icon' => 'Przelewy24.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'payperemail', 'label' => 'PayPerEmail', 'icon' => 'PayPerEmail.svg', 'template' => 'payment_payperemail.tpl', 'is_payment_method' => '1'], + ['name' => 'payconiq', 'label' => 'Payconiq', 'icon' => 'Payconiq.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'tinka', 'label' => 'Tinka', 'icon' => 'Tinka.svg', 'template' => 'payment_tinka.tpl', 'is_payment_method' => '1'], + ['name' => 'trustly', 'label' => 'Trustly', 'icon' => 'Trustly.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'transfer', 'label' => 'Bank Transfer', 'icon' => 'SEPA-credittransfer.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'wechatpay', 'label' => 'WeChatPay', 'icon' => 'WeChat Pay.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'alipay', 'label' => 'Alipay', 'icon' => 'Alipay.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'idin', 'label' => 'iDIN', 'icon' => 'iDIN.svg', 'template' => 'idin.tpl', 'is_payment_method' => '0'], + ['name' => 'multibanco', 'label' => 'Multibanco', 'icon' => 'Multibanco.svg', 'template' => '', 'is_payment_method' => '1'], + ['name' => 'mbway', 'label' => 'MB WAY', 'icon' => 'MBWay.svg', 'template' => '', 'is_payment_method' => '1'], + ]; + } + + public function getPaymentMethodsFromDB() + { + $query = 'SELECT id FROM ' . _DB_PREFIX_ . 'bk_payment_methods'; + + return \Db::getInstance()->executeS($query); + } + + public function getPaymentMethodId($name) + { + $query = 'SELECT id FROM ' . _DB_PREFIX_ . 'bk_payment_methods WHERE name = "' . pSQL($name) . '"'; + + return \Db::getInstance()->getValue($query); + } + + public function getPaymentMethodMode($name) + { + // Fetch the payment method ID + $paymentId = $this->getPaymentMethodId($name); + + // Fetch the existing configuration + $query = 'SELECT value FROM ' . _DB_PREFIX_ . 'bk_configuration WHERE configurable_id = ' . (int) pSQL($paymentId); + $existingConfig = \Db::getInstance()->getValue($query); + + if ($existingConfig === false) { + throw new \Exception('Configuration not found for payment id ' . $paymentId); + } + + // Decode the existing configuration + $configArray = json_decode($existingConfig, true); + if ($configArray === null) { + throw new \Exception('JSON decode error'); + } + + // Fetch and return the mode from the configuration + if (isset($configArray['mode'])) { + return $configArray['mode']; + } else { + throw new \Exception('Mode not set for payment id ' . $paymentId); + } + } + + public function getPaymentMethodsLabel($name) + { + $sql = 'SELECT label FROM ' . _DB_PREFIX_ . 'bk_payment_methods where name = "' . pSQL($name) . '"'; + + return \Db::getInstance()->getValue($sql); + } + + private function clearPaymentMethodsTable(): void + { + $sql = 'DELETE FROM ' . _DB_PREFIX_ . 'bk_payment_methods'; + if (!\Db::getInstance()->execute($sql)) { + throw new \Exception('Database error: Could not clear payment methods table'); + } + } + + private function clearConfigurationTable(): void + { + $sql = 'DELETE FROM ' . _DB_PREFIX_ . 'bk_configuration'; + if (!\Db::getInstance()->execute($sql)) { + throw new \Exception('Database error: Could not clear payment methods table'); + } + } +} diff --git a/src/Repository/index.php b/src/Repository/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Repository/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/Service/BuckarooConfigService.php b/src/Service/BuckarooConfigService.php new file mode 100644 index 000000000..34c14e2f9 --- /dev/null +++ b/src/Service/BuckarooConfigService.php @@ -0,0 +1,135 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Service; + +use Buckaroo\PrestaShop\Src\Entity\BkConfiguration; +use Buckaroo\PrestaShop\Src\Entity\BkOrdering; +use Buckaroo\PrestaShop\Src\Entity\BkPaymentMethods; +use Doctrine\ORM\EntityManager; +use Doctrine\ORM\Exception\ORMException; +use Doctrine\ORM\OptimisticLockException; + +class BuckarooConfigService +{ + private $paymentMethodRepository; + private $configurationRepository; + private $orderingRepository; + + public function __construct(EntityManager $entityManager) + { + $this->paymentMethodRepository = $entityManager->getRepository(BkPaymentMethods::class); + $this->configurationRepository = $entityManager->getRepository(BkConfiguration::class); + $this->orderingRepository = $entityManager->getRepository(BkOrdering::class); + } + + public function getConfigArrayForMethod($method) + { + $paymentMethod = $this->paymentMethodRepository->findOneBy(['name' => $method]); + + if (!$paymentMethod) { + return null; + } + + return $this->configurationRepository->getConfigArray($paymentMethod->getId()); + } + + public function getConfigValue($method, $key) + { + $configArray = $this->getConfigArrayForMethod($method); + + return $configArray[$key] ?? null; + } + + /** + * @throws OptimisticLockException + * @throws ORMException + */ + public function updatePaymentMethodConfig($name, array $data): bool + { + $paymentMethod = $this->paymentMethodRepository->findOneBy(['name' => $name]); + + if (!$paymentMethod) { + return false; + } + + $paymentMethodId = $paymentMethod->getId(); + + // Existing config + $configArray = $this->configurationRepository->getConfigArray($paymentMethodId); + $mergedConfig = array_merge($configArray, $data); + + if (isset($data['countries'])) { + $newCountryIds = array_column($data['countries'], 'id'); + + // Update each country's ordering + foreach ($newCountryIds as $countryId) { + $ordering = $this->orderingRepository->findOneByCountryId($countryId); + if (!$ordering) { + // No existing ordering for this country. Create a new one. + $this->orderingRepository->createNewOrdering($countryId, [$paymentMethodId]); + } else { + $paymentMethodIds = json_decode($ordering->getValue(), true); + + // Check if the paymentMethodId is already in the ordering for the country + if (!in_array($paymentMethodId, $paymentMethodIds)) { + $this->orderingRepository->addPaymentMethodToOrdering($ordering, $paymentMethodId); + } + } + } + + $this->orderingRepository->removePaymentMethodFromOrderings($paymentMethodId, $newCountryIds); + } + + return $this->configurationRepository->updateConfig($paymentMethodId, $mergedConfig); + } + + public function updatePaymentMethodMode(string $name, string $mode): bool + { + $paymentMethod = $this->paymentMethodRepository->findOneBy(['name' => $name]); + + if (!$paymentMethod) { + return false; + } + + $configArray = $this->configurationRepository->getConfigArray($paymentMethod->getId()); + $configArray['mode'] = $mode; + + return $this->configurationRepository->updateConfig($paymentMethod->getId(), $configArray); + } + + /** + * @throws \Exception + */ + public function getPaymentMethodsFromDBWithConfig() + { + return $this->paymentMethodRepository->fetchMethodsFromDBWithConfig(1); + } + + /** + * @throws \Exception + */ + public function getVerificationMethodsFromDBWithConfig() + { + return $this->paymentMethodRepository->fetchMethodsFromDBWithConfig(0); + } + + public function getActiveCreditCards() + { + return $this->configurationRepository->getActiveCreditCards(); + } +} diff --git a/src/Service/BuckarooCountriesService.php b/src/Service/BuckarooCountriesService.php new file mode 100644 index 000000000..66ead8027 --- /dev/null +++ b/src/Service/BuckarooCountriesService.php @@ -0,0 +1,36 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Service; + +use Buckaroo\PrestaShop\Src\Entity\BkCountries; +use Doctrine\ORM\EntityManager; + +class BuckarooCountriesService +{ + protected $countryRepository; + + public function __construct(EntityManager $entityManager) + { + $this->countryRepository = $entityManager->getRepository(BkCountries::class); + } + + public function synchronizeCountries() + { + return $this->countryRepository->checkAndInsertNewCountries(); + } +} diff --git a/src/Service/BuckarooFeeService.php b/src/Service/BuckarooFeeService.php new file mode 100644 index 000000000..7f0f896a4 --- /dev/null +++ b/src/Service/BuckarooFeeService.php @@ -0,0 +1,118 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Service; + +use Buckaroo\PrestaShop\Src\Entity\BkConfiguration; +use Buckaroo\PrestaShop\Src\Entity\BkPaymentMethods; +use Doctrine\ORM\EntityManager; +use PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException; + +class BuckarooFeeService +{ + private $paymentMethodRepository; + private $configurationRepository; + private $locale; + + public function __construct(EntityManager $entityManager) + { + $this->configurationRepository = $entityManager->getRepository(BkConfiguration::class); + $this->paymentMethodRepository = $entityManager->getRepository(BkPaymentMethods::class); + $this->locale = \Tools::getContextLocale(\Context::getContext()); + } + + /** + * @throws LocalizationException + */ + public function getBuckarooFees(): array + { + $result = []; + $paymentMethods = $this->paymentMethodRepository->findAll(); + + foreach ($paymentMethods as $method) { + $buckarooFee = $this->getBuckarooFeeValue($method->getName()); + + if ($buckarooFee > 0) { + $formattedPrice = $this->formatPrice($buckarooFee); + + $result[$method->getName()] = [ + 'buckarooFee' => $buckarooFee, + 'buckarooFeeDisplay' => $formattedPrice, + ]; + } + } + + return $result; + } + + public function getBuckarooFeeInputs($method) + { + return $this->getFeeData($this->getSpecificValueFromConfig($method, 'payment_fee')); + } + + public function getConfigArrayForMethod($method) + { + $paymentMethod = $this->paymentMethodRepository->findOneByName($method); + + if (!$paymentMethod) { + return null; + } + + return $this->configurationRepository->getConfigArray($paymentMethod->getId()); + } + + public function getSpecificValueFromConfig($method, $key) + { + $configArray = $this->getConfigArrayForMethod($method); + + return $configArray[$key] ?? null; + } + + public function getBuckarooFeeValue($method) + { + return $this->getSpecificValueFromConfig($method, 'payment_fee'); + } + + /** + * @throws LocalizationException + */ + private function formatPrice($amount): string + { + $currency = \Context::getContext()->currency; + + return $this->locale->formatPrice($amount, $currency->iso_code); + } + + /** + * @throws LocalizationException + */ + private function getFeeData($configArray): array + { + return $configArray > 0 ? [ + [ + 'type' => 'hidden', + 'name' => 'payment-fee-price', + 'value' => $configArray, + ], + [ + 'type' => 'hidden', + 'name' => 'payment-fee-price-display', + 'value' => $this->formatPrice($configArray), + ], + ] : []; + } +} diff --git a/src/Service/BuckarooIdinService.php b/src/Service/BuckarooIdinService.php new file mode 100644 index 000000000..aa5076e36 --- /dev/null +++ b/src/Service/BuckarooIdinService.php @@ -0,0 +1,78 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Service; + +class BuckarooIdinService +{ + public function checkCustomerIdExists($customerId) + { + $sqlCheck = 'SELECT COUNT(*) FROM ' . _DB_PREFIX_ . 'bk_customer_idin WHERE customer_id = ' . (int) $customerId; + + return \Db::getInstance()->getValue($sqlCheck); + } + + public function updateCustomerData($customerId, $consumerbin, $iseighteenorolder) + { + $sql = 'UPDATE ' . _DB_PREFIX_ . 'bk_customer_idin SET buckaroo_idin_consumerbin="' . pSQL($consumerbin) . + '", buckaroo_idin_iseighteenorolder="' . pSQL($iseighteenorolder) . + '" WHERE customer_id=' . (int) pSQL($customerId); + + return $this->executeQuery($sql); + } + + public function insertCustomerData($customerId, $consumerbin, $iseighteenorolder) + { + $sql = 'INSERT INTO ' . _DB_PREFIX_ + . 'bk_customer_idin (customer_id, buckaroo_idin_consumerbin, buckaroo_idin_iseighteenorolder) VALUES (' . + (int) $customerId . ', "' . pSQL($consumerbin) . '", "' . pSQL($iseighteenorolder) . '")'; + + return $this->executeQuery($sql); + } + + public function checkProductIdExists($productId) + { + $sqlCheck = 'SELECT COUNT(*) FROM ' . _DB_PREFIX_ . 'bk_product_idin WHERE product_id = ' . (int) $productId; + + return Db::getInstance()->getValue($sqlCheck); + } + + public function updateProductData($productId, $buckarooIdin) + { + $sql = 'UPDATE ' . _DB_PREFIX_ . 'bk_product_idin SET buckaroo_idin = ' . (int) $buckarooIdin . ' WHERE product_id = ' . (int) $productId; + + return $this->executeQuery($sql); + } + + public function insertProductData($productId, $buckarooIdin) + { + $sql = 'INSERT INTO ' . _DB_PREFIX_ . 'bk_product_idin (product_id, buckaroo_idin) VALUES (' . (int) $productId . ', ' . (int) $buckarooIdin . ')'; + + return $this->executeQuery($sql); + } + + private function executeQuery($sql) + { + try { + \Db::getInstance()->execute($sql); + + return true; + } catch (Exception $e) { + throw new Exception('Error while executing SQL query: ' . $e->getMessage()); + } + } +} diff --git a/src/Service/BuckarooPaymentService.php b/src/Service/BuckarooPaymentService.php new file mode 100644 index 000000000..af64a0568 --- /dev/null +++ b/src/Service/BuckarooPaymentService.php @@ -0,0 +1,401 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Service; + +require_once dirname(__FILE__) . '/../../library/checkout/billinkcheckout.php'; +require_once dirname(__FILE__) . '/../../library/checkout/afterpaycheckout.php'; +include_once _PS_MODULE_DIR_ . 'buckaroo3/library/logger.php'; + +use Buckaroo\PrestaShop\Src\Entity\BkOrdering; +use Buckaroo\PrestaShop\Src\Entity\BkPaymentMethods; +use Doctrine\ORM\EntityManager; +use PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException; +use PrestaShop\PrestaShop\Core\Payment\PaymentOption; + +class BuckarooPaymentService +{ + public $module; + private $bkOrderingRepository; + private $paymentMethodRepository; + private $context; + private BuckarooConfigService $buckarooConfigService; + private BuckarooFeeService $buckarooFeeService; + protected $logger; + private $issuersPayByBank; + private $capayableIn3; + + public function __construct(EntityManager $entityManager, $buckarooFeeService, $buckarooConfigService, $issuersPayByBank, $capayableIn3) + { + $this->module = \Module::getInstanceByName('buckaroo3'); + $this->logger = new \Logger(\Logger::INFO, ''); + $this->context = \Context::getContext(); + $this->bkOrderingRepository = $entityManager->getRepository(BkOrdering::class); + $this->paymentMethodRepository = $entityManager->getRepository(BkPaymentMethods::class); + $this->buckarooFeeService = $buckarooFeeService; + $this->buckarooConfigService = $buckarooConfigService; + $this->issuersPayByBank = $issuersPayByBank; + $this->capayableIn3 = $capayableIn3; + } + + public function getPaymentOptions($cart) + { + $payment_options = []; + libxml_use_internal_errors(true); + $paymentMethods = $this->paymentMethodRepository->findAll(); + + $countryId = $this->context->country->iso_code; + $positions = $this->bkOrderingRepository->fetchPositions($countryId) ?? $this->bkOrderingRepository->fetchPositions(null); + + $positions = array_flip($positions); + + foreach ($paymentMethods as $details) { + $method = $details->getName(); + $isMethodValid = $this->module->isPaymentModeActive($method) + && $this->isPaymentMethodAvailable($cart, $method) + && isset($positions[$method]) + && !$this->isMethodUnavailableBySpecificConditions($cart, $method); + + if ($method == 'in3') { + $method = $this->capayableIn3->getMethod(); + } + + if ($method == 'idin') { + if ($this->module->isIdinCheckout($cart)) { + if ($this->isCustomerIdinValid($cart)) { + continue; + } + } else { + continue; + } + } + + if ($isMethodValid) { + $payment_options[] = $this->createPaymentOption($method, $details); + } + } + + usort($payment_options, function ($a, $b) use ($positions) { + $moduleNameA = $a->getModuleName() === 'in3Old' ? 'in3' : $a->getModuleName(); + $moduleNameB = $b->getModuleName() === 'in3Old' ? 'in3' : $b->getModuleName(); + + $positionA = isset($positions[$moduleNameA]) ? $positions[$moduleNameA] : 0; + $positionB = isset($positions[$moduleNameB]) ? $positions[$moduleNameB] : 0; + + return $positionA - $positionB; + }); + + return $payment_options; + } + + public function isCustomerIdinValid($cart) + { + $id_customer = $cart->id_customer; + + $query = 'SELECT ci.`buckaroo_idin_iseighteenorolder`' + . ' FROM `' . _DB_PREFIX_ . 'bk_customer_idin` ci' + . ' WHERE ci.customer_id = ' . (int) $id_customer; + + return \Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query) == 'True' ? true : false; + } + + private function isMethodUnavailableBySpecificConditions($cart, $method) + { + switch ($method) { + case 'in3': + return !$this->isIn3Available($cart); + case 'afterpay': + return !$this->isAfterpayAvailable($cart); + default: + return false; + } + } + + /** + * Check if afterpay available + * + * @param Cart $cart + * + * @return bool + */ + protected function isAfterpayAvailable($cart) + { + $idAddressInvoice = $cart->id_address_invoice !== 0 ? $cart->id_address_invoice : $cart->id_address_delivery; + $billingAddress = $this->getAddressById($idAddressInvoice); + $billingCountry = null; + if ($billingAddress !== null) { + $billingCountry = \Country::getIsoById($billingAddress->id_country); + } + + $shippingAddress = $this->getAddressById($cart->id_address_delivery); + $shippingCountry = null; + if ($shippingAddress !== null) { + $shippingCountry = \Country::getIsoById($shippingAddress->id_country); + } + + $customerType = $this->buckarooConfigService->getConfigValue('afterpay', 'customer_type'); + + if (\AfterPayCheckout::CUSTOMER_TYPE_B2C !== $customerType) { + $nlCompanyExists = + ($this->companyExists($shippingAddress) && $shippingCountry === 'NL') + || ($this->companyExists($billingAddress) && $billingCountry === 'NL'); + if (\AfterPayCheckout::CUSTOMER_TYPE_B2B === $customerType) { + return $this->isAvailableByAmount($cart->getOrderTotal(true, 3), 'AFTERPAY') && $nlCompanyExists; + } + + // both customer types & a company is filled show if available b2b by amount + if ($nlCompanyExists) { + return $this->isAvailableByAmount($cart->getOrderTotal(true, 3), 'AFTERPAY'); + } + } + + return true; + } + + /** + * Check if company exists + * + * @param Address|null $address + * + * @return bool + */ + protected function companyExists($address) + { + if ($address === null) { + return false; + } + + return strlen(trim($address->company)) !== 0; + } + + /** + * Check if payment method available + * + * @param Cart $cart + * + * @return bool + */ + protected function isPaymentMethodAvailable($cart, $paymentMethod) + { + // Check if payment method is available by amount + return $this->isAvailableByAmount($cart->getOrderTotal(true, 3), $paymentMethod); + } + + /** + * Check if payment is available by amount + * + * @param float $cartTotal + * @param string $paymentMethod + * + * @return bool + */ + public function isAvailableByAmount(float $cartTotal, $paymentMethod) + { + $configArray = $this->buckarooConfigService->getConfigArrayForMethod($paymentMethod); + + if ($configArray === null) { + return false; + } + + $minAmount = isset($configArray['min_order_amount']) ? (float) $configArray['min_order_amount'] : 0; + $maxAmount = isset($configArray['max_order_amount']) ? (float) $configArray['max_order_amount'] : 0; + + if ($minAmount == 0 && $maxAmount == 0) { + return true; + } + + return ($minAmount == 0 || $cartTotal >= $minAmount) && ($maxAmount == 0 || $cartTotal <= $maxAmount); + } + + private function createPaymentOption($method, $details) + { + $newOption = new PaymentOption(); + + $newOption->setCallToActionText($this->getBuckarooLabel($method, $details->getLabel())) + ->setAction($this->context->link->getModuleLink('buckaroo3', 'request', ['method' => $method])) + ->setModuleName($method); + + // If template is set, use setForm, otherwise set inputs + if (!empty($details->getTemplate())) { + $newOption->setForm($this->context->smarty->fetch('module:buckaroo3/views/templates/hook/' . $details->getTemplate())); + } else { + $newOption->setInputs($this->buckarooFeeService->getBuckarooFeeInputs($method)); + } + $logoPath = '/modules/buckaroo3/views/img/buckaroo/Payment methods/SVG/'; + // Custom conditions for specific payment methods + switch ($method) { + case 'paybybank': + $logoPath .= $this->issuersPayByBank->getSelectedIssuerLogo(); + break; + case 'in3Old': + case 'in3': + $logoPath .= $this->capayableIn3->getLogo(); + break; + case 'idin': + $logoPath = '/modules/buckaroo3/views/img/buckaroo/Identification methods/SVG/' . $details->getIcon(); + break; + default: + $logoPath .= $details->getIcon(); + break; + } + $newOption->setLogo($logoPath); + + return $newOption; + } + + public function getBuckarooLabel($method, $label) + { + if ($method == 'in3' && $this->capayableIn3->isV3()) { + $label = 'iDEAL In3'; + } + + if ($method == 'in3Old') { + $method = 'in3'; + } + $configArray = $this->buckarooConfigService->getConfigArrayForMethod($method); + if ($configArray === null) { + $this->logError('JSON decode error: ' . json_last_error_msg()); + + return null; + } + + $label = $this->getLabel($configArray, $label); + + $feeLabel = $this->getFeeLabel($configArray); + + return $this->module->l($label . $feeLabel); + } + + private function getLabel($configArray, $defaultLabel) + { + return (isset($configArray['frontend_label']) + && $configArray['frontend_label'] !== '') ? $configArray['frontend_label'] : $defaultLabel; + } + + /** + * @throws LocalizationException + * @throws \Exception + */ + private function getFeeLabel($configArray) + { + $locale = \Tools::getContextLocale(\Context::getContext()); + $currency = \Context::getContext()->currency; + + if (isset($configArray['payment_fee']) && $configArray['payment_fee'] > 0) { + return ' + ' . $locale->formatPrice($configArray['payment_fee'], $currency->iso_code); + } + + return ''; + } + + private function logError($message) + { + $this->logger->logInfo($message, 'error'); + } + + /** + * Is in3 available + * + * @param Cart $cart + * + * @return bool + */ + protected function isIn3Available($cart) + { + return $this->getBillingCountryIso($cart) === 'NL'; + } + + /** + * Get billing country iso from cart + * + * @param Cart $cart + * + * @return string|null + */ + protected function getBillingCountryIso($cart) + { + $idAddressInvoice = $cart->id_address_invoice !== 0 ? $cart->id_address_invoice : $cart->id_address_delivery; + $billingAddress = $this->getAddressById((int) $idAddressInvoice); + + if ($billingAddress !== null) { + return \Country::getIsoById($billingAddress->id_country); + } + } + + public function showAfterpayCoc($cart) + { + $afterpay_customer_type = $this->buckarooConfigService->getConfigValue('afterpay', 'customer_type'); + + return $this->shouldShowCoc( + $cart, + $afterpay_customer_type, + \AfterPayCheckout::CUSTOMER_TYPE_B2B, + \AfterPayCheckout::CUSTOMER_TYPE_B2C + ); + } + + public function showBillinkCoc($cart) + { + $billink_customer_type = $this->buckarooConfigService->getConfigValue('billink', 'customer_type'); + + return $this->shouldShowCoc( + $cart, + $billink_customer_type, + \BillinkCheckout::CUSTOMER_TYPE_B2B, + \BillinkCheckout::CUSTOMER_TYPE_B2C); + } + + private function shouldShowCoc($cart, $customer_type, $typeB2B, $typeB2C) + { + list($billingAddress, $billingCountry, $shippingAddress, $shippingCountry) = $this->getAddressDetails($cart); + + return $typeB2B === $customer_type + || ( + $typeB2C !== $customer_type + && ( + ($this->companyExists($shippingAddress) && $shippingCountry === 'NL') + || ($this->companyExists($billingAddress) && $billingCountry === 'NL') + ) + ); + } + + private function getAddressDetails($cart) + { + $idAddressInvoice = $cart->id_address_invoice !== 0 ? $cart->id_address_invoice : $cart->id_address_delivery; + $billingAddress = $this->getAddressById($idAddressInvoice); + $billingCountry = $billingAddress ? \Country::getIsoById($billingAddress->id_country) : null; + + $shippingAddress = $this->getAddressById($cart->id_address_delivery); + $shippingCountry = $shippingAddress ? \Country::getIsoById($shippingAddress->id_country) : null; + + return [$billingAddress, $billingCountry, $shippingAddress, $shippingCountry]; + } + + /** + * Get address by id + * + * @param mixed $id + * + * @return \Address|void + */ + protected function getAddressById($id) + { + if (is_int($id)) { + return new \Address($id); + } + } +} diff --git a/src/Service/BuckarooSettingsService.php b/src/Service/BuckarooSettingsService.php new file mode 100644 index 000000000..a7c99de41 --- /dev/null +++ b/src/Service/BuckarooSettingsService.php @@ -0,0 +1,67 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +namespace Buckaroo\PrestaShop\Src\Service; + +use Buckaroo\PrestaShop\Src\Config\Config; + +class BuckarooSettingsService +{ + public function getSettings() + { + return [ + 'is_enabled' => 1, + 'is_live' => (int) \Configuration::get(Config::BUCKAROO_TEST), + 'website_key' => \Configuration::get(Config::BUCKAROO_MERCHANT_KEY), + 'secret_key' => \Configuration::get(Config::BUCKAROO_SECRET_KEY), + 'transaction_description' => \Configuration::get(Config::BUCKAROO_TRANSACTION_LABEL), + 'restock' => (bool) \Configuration::get(Config::LABEL_REFUND_RESTOCK), + 'creditSlip' => (bool) \Configuration::get(Config::LABEL_REFUND_CREDIT_SLIP), + 'voucher' => (bool) \Configuration::get(Config::LABEL_REFUND_VOUCHER), + 'negativePayment' => (bool) \Configuration::get(Config::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT), + 'refund_label' => null, + ]; + } + + public function isValidData($data) + { + $requiredKeys = [ + 'website_key', 'secret_key', + 'transaction_description', 'is_live', + 'restock', 'creditSlip', + 'voucher', 'negativePayment']; + foreach ($requiredKeys as $key) { + if (!isset($data[$key])) { + return false; + } + } + + return true; + } + + public function updateSettings($data) + { + \Configuration::updateValue(Config::BUCKAROO_MERCHANT_KEY, $data['website_key']); + \Configuration::updateValue(Config::BUCKAROO_SECRET_KEY, $data['secret_key']); + \Configuration::updateValue(Config::BUCKAROO_TRANSACTION_LABEL, $data['transaction_description']); + \Configuration::updateValue(Config::BUCKAROO_TEST, $data['is_live']); + \Configuration::updateValue(Config::LABEL_REFUND_RESTOCK, $data['restock']); + \Configuration::updateValue(Config::LABEL_REFUND_CREDIT_SLIP, $data['creditSlip']); + \Configuration::updateValue(Config::LABEL_REFUND_VOUCHER, $data['voucher']); + \Configuration::updateValue(Config::LABEL_REFUND_CREATE_NEGATIVE_PAYMENT, $data['negativePayment']); + } +} diff --git a/src/Service/index.php b/src/Service/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/Service/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/src/index.php b/src/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/src/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/translations/en.php b/translations/en.php index 20635a8d5..d96bd069a 100644 --- a/translations/en.php +++ b/translations/en.php @@ -1,23 +1,20 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ -global $_MODULE; -$_MODULE = array(); -$_MODULE['<{buckaroo3}prestashop>buckaroo3_553f65f270c86a4a05c964dc20e8cc70'] = 'American Express'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_63ce5df4a6b95d049b47c7d6b67e7c4b'] = 'Visa'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_db8579a91365f9fcfb5689c6abd54acd'] = 'VPay'; + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ global $_MODULE; +$_MODULE = []; +$_MODULE['<{buckaroo3}prestashop>buckaroo3_553f65f270c86a4a05c964dc20e8cc70'] = 'American Express'; +$_MODULE['<{buckaroo3}prestashop>buckaroo3_63ce5df4a6b95d049b47c7d6b67e7c4b'] = 'Visa'; +$_MODULE['<{buckaroo3}prestashop>buckaroo3_db8579a91365f9fcfb5689c6abd54acd'] = 'VPay'; diff --git a/translations/index.php b/translations/index.php index e5ee62b38..163acfb48 100644 --- a/translations/index.php +++ b/translations/index.php @@ -14,12 +14,12 @@ * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) */ -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/translations/nl.php b/translations/nl.php index 078c99138..a99d5926a 100644 --- a/translations/nl.php +++ b/translations/nl.php @@ -1,10 +1,7 @@ buckaroo3_8f4405315c39dce720ea5fa91e3230bb'] = 'Buckaroo Payments'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_d756c80681e846b865a6482d72f55b9d'] = 'Buckaroo Payments module. Geschikt voor Prestashop versie 1.6.x.'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_f86b21d6153e556d8764c706e02da635'] = 'Weet u zeker dat u de Buckaroo BPE 3.0 module wilt verwijderen? '; +$_MODULE = []; $_MODULE['<{buckaroo3}prestashop>buckaroo3_9b1d44d9910cef88c667f46cb63a21bf'] = 'Voor gebruik dient u de Buckaroo Module te configureren!'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_60741e153ff40c5a402b5eaee5e17345'] = 'Uw betaling was niet succesvol. Probeer het alstublieft opnieuw of kies een andere betaalmethode. '; $_MODULE['<{buckaroo3}prestashop>buckaroo3_fb077ecba55e5552916bde26d8b9e794'] = 'Order bevestiging'; @@ -22,105 +19,34 @@ $_MODULE['<{buckaroo3}prestashop>buckaroo3_cc80cd2a5ea985d90d06dbbb9ab276ef'] = 'In afwachting van betaling'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_ad69e733ebae8d264bccaa38d68830e8'] = 'PayPal'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_1fc08d231c784024c9ca47ffe6275e17'] = 'Sepa Direct Debit'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_d78bcc6c7afe629106077612d0f3549a'] = 'Achteraf Betalen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_78de7a286d3bd3aaa82600efa0da115a'] = 'iDEAL'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_a683f375eef3f3d268fc80de53582248'] = 'Giropay'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_8c499d7eb31238006d39ae95ad373cb8'] = 'Bancontact/ Mister Cash'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_9f614d6c81e94d2b992e27f40207d925'] = 'Sofortbanking'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_f1848e487ad5b48dc588d553a813ca48'] = 'Cashticket'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_6950810f0d2bba97a6f710c7b965b84e'] = 'Overboeking'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_11299a45d532c41fc1cc01cdc1d083bf'] = 'AfterPay'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_0a2da0fd7649fbe47f6acefbb09311a5'] = 'Cadeaukaarten'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_38eb0c13548927ec00e0c21389f9fd3b'] = 'Creditcards'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_3cf9bc5f31f760462730f85033baa239'] = 'Error bij het uploaden bestand'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_226ed577d0eff50725be6447bcd5a2f0'] = 'Error bij het verplaatsen van het geuploade bestand'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_c9cc8cce247e49bae79f15173ce97354'] = 'Opslaan'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_630f6dc397fe74e52d5189e2c80f282b'] = 'Terug naar de lijst'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_108490afa8365531d5eade07c3cc38f4'] = 'Algemene instellingen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_929ad41c082b66a221eb5db08b0aa0d0'] = 'Merchant key'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_952bf87c967660b7bbd4e1eb08cefc92'] = 'Secret key'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_eb0f48a107df1a0f343d4cd513b555e6'] = 'Certificaat'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_138aeb4b71aa7abf6ac74286e40dc5e8'] = 'Certificaat thumbprint'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_5644cf961fcd2ff531f9f85edbaba144'] = 'Transactie label'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_ef7deec1ecefcf540d2adddde6cafddb'] = 'Push URL'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_7798d76858bb8660f348e3c159cc690f'] = 'Push URL moet worden ingevuld in Buckaroo Plaza > Mijn Buckaroo > Websites > Push instellingen > Link toevoegen aan Succes/Failure URL.'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_4994a8ffeba4ac3140beb89e8d41f174'] = 'Taal'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_2fece2f1d9bd5f36f843ac92546198bf'] = 'Gebruik taal van de webshop'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_78463a384a5aa4fad5fa73e2f506ecfc'] = 'Engels'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_68bf367e228f45ba83cb8831a5ee6447'] = 'Nederlands'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_ad225f707802ba118c22987186dd38e8'] = 'Frans'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_86bc3115eb4e9873ac96904a4a68e19e'] = 'Duits'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_629d2de15d5227dd5ab8760626547050'] = 'Standaard orderstatus nadat een bestelling is geplaatst'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_cf565402d32b79d33f626252949a6941'] = 'Configuratie opslaan'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_fa2ba3c63ab024db2b5ad7601e7a4b43'] = 'Ververs de module'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_802487810607dad9dc2c5880e2350da6'] = 'PayPal instellingen'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_b6ae76efc0871e15763740684b45203f'] = 'Gebruik notificiatie service'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Nee'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_93cba07454f06a4a960172bbd6e2a435'] = 'Ja'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_bfc863e433bb3e29c1a45c245ff19288'] = 'Uitstel van notificatie (in dagen)'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_1d910534cd36e52190eea9e204bc37e0'] = 'Betaaltoeslag'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_47b7ec35ac084797150400947a178bc5'] = 'Hoogte van de betaaltoeslag'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_bf05fe003ee5044b4d63179b11e30b5c'] = 'Betaaltoeslag type'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_37be07209f53a5d636d5c904ca9ae64c'] = 'Percentage'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_84a8921b25f505d0d2077aeb5db4bc16'] = 'Vast bedrag'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_f12ee776db882af459f4ff5ecb770d20'] = 'Het aantal dagen tussen de order en de factuur'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_59a195f795f7fb485b36e3976bb24c1e'] = 'Maximum aantal dagen van vertraging is 30.'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_07bb561458bae0ea1b83285533bf997e'] = 'Stuur betalingsemail'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_71c3cdf97afedd63429323be9e532d88'] = 'Toegestane betaalmethoden'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_f91ab041fe9d6057740394b8b7903a0f'] = 'iDEAL'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_64ea96c2cb8f907945015e05a5a83337'] = 'Overboeking (SEPA Credit Transfer)'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_b48167465ffc278e8096a57fb3e5cf24'] = 'Mastercard'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_89fc0d6fe12b0e0c1af5c7a0373435a6'] = 'Visa'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_31911306551723245e7417ae4520fecb'] = 'Giropay'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_9b88c95a15e018c3f8038a7d0160145c'] = 'PayPal'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_9930e2b7d13df60794c26b984a7e9f91'] = 'Bancontact/Mr. Cash'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_aac1659ddc0d35a7c21019978eede9e6'] = 'Machtiging (SEPA Direct Debit)'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_08298cbf3074ac308de151e63b7e3845'] = 'Sofortbanking'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_cb02c1fc2c55e716fe5ee0588c94c128'] = 'BetaalGarant'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_c468e75d20816b3a4b8f21d687dcf4ab'] = 'èM! Payment'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_1c68d32c9ebf960c22c15c6051e0e70c'] = 'Baby Giftcard'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_f072cef3195b019b2bc8ea7aee6bedb9'] = 'Babypark Giftcard'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_b60560ba7a53974ba8b7cc8540cdcc40'] = 'Beauty Wellness'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_1822b31d54a508bcfa0a090cf533f141'] = 'Boekenbon'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_6c7dffb0c12b02ef5c2c7555fc17c003'] = 'Boekenvoordeel'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_03ec987ae4cb0e016fe67611084246a5'] = 'Designshops Giftcard'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_c2ebe1469a1f40883c9c1e5a0e65bfc6'] = 'Fijn Cadeau'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_f3195a9199ad09315f9b6bdd2d74805c'] = 'Koffie Cadeau'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_1f770fdac133b38c7e9888d91cb8e8e2'] = 'Koken En Zo'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_8913b6b40c539071d3b62ee792679859'] = 'Kook Cadeau'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_f10f825d7a8a04827c32d65e540b63ed'] = 'Nationale Entertainment Card'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_371b1dd033ddd142ac2f556f4582bb16'] = 'Natures Gift'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_950593b9ab75e65a634b35005124ac18'] = 'Podium Cadeaukaart'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_6875ed0df441d90f1decf10a9603bd77'] = 'Shoes Accessories'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_4c605173b5c3ecaa86cc7ade6765f8cb'] = 'Webshop Giftcard'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_13582a51860815fd9b84854e234013cf'] = 'Wijn Cadeau'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_aa5f450676ac8a1796c89b5180ed49c0'] = 'Wonen En Zo'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_bc1e38dc0f53243d31f8cefa08cdc1a8'] = 'Your Gift'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_0dfec4d03990efb63812eb0625faae52'] = 'Fashioncheque'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_9c97dbd914de20a7efda913790922f12'] = 'Achteraf Betalen instellingen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_977148a6ece63fbe8305296ba61e831a'] = 'SEPA Direct Debit instellingen'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_4e32b625b353b0fec4886a70ca0f7d3b'] = 'Gebruik Credit Managment'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_80c5b4111db8ca5c8b324228f4371d72'] = 'Uitstel van factuur (in dagen)'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_633c0c2f1a54c44c3585635b48356ed7'] = 'Uiterste betaaldatum (in dagen vanaf orderplaatsing)'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_d20e8b018b92e5960f1ab6e7fbd5b9b9'] = 'Herinneringsniveau'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_11362fac3eb0660ac59e8a88ecdd37dd'] = 'Kies het herinneringsniveau dat Buckaroo moet gebruiken.'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_655b916405ca2d57579d8b90bf5effd1'] = 'iDEAL instellingen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_2970625f2bbbd57f22a3dc1599582dcd'] = 'Giropay instellingen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_f62692cf772053e0595b4e2015425ab6'] = 'BanContact/ Mister Cash instellingen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_57bccb74967985dedb2b0cd23659bfea'] = 'Cadeaukaarten instellingen'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_5c640a60efec032b0351b7b12eb8b650'] = 'Creditcards instellingen'; +$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_4ffce20c2740e43df35dedcce59816be'] = 'Creditcard- en debetkaartinstellingen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_d079d89d7ae979abd971e13cdfdc3631'] = 'Sofortbanking instellingen'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_79bab397a8da010088b7206c6ee83c5d'] = 'Buckaroo Overboeking instellingen'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_cdcaad93a16f7cb6a2705feb78e0d523'] = 'Aantal dagen voorafgaand aan de uiterste betaaldatum'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_b507fb5234cd6a29f7e53f4f05d97303'] = 'AfterPay instellingen'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_c249905f71f1e1484e0d76c7d3451989'] = 'AfterPay dienst'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_d942f999c01c4e077a54aaba59e88139'] = 'Kies de AfterPay dienst'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_4cd01968c5483ebab23b1c021301c530'] = 'Laat de klant achteraf betalen via een SEPA Direct Debit'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_d644817947d0a1cf94481670384c0c0b'] = 'Laat de klant achteraf betalen via een digitale factuur'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_671b64034533235126c11eeb9ffd8a07'] = 'Activeer beide'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_02d5eedb54b04a59cbf6fc1550b0957c'] = 'AfterPay B2B'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_bcfaccebf745acfd5e75351095a5394a'] = 'Deactiveer'; -$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_2faec1f9f8cc7f8f40d521c4dd574f49'] = 'Activeer'; +$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_07bb561458bae0ea1b83285533bf997e'] = 'Stuur betalingsemail'; +$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Nee'; +$_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_93cba07454f06a4a960172bbd6e2a435'] = 'Ja'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_691cda401d1f296285d96a8f7b1f106e'] = 'Standaard product BTW type'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_19a4c7f356f497eaf1aa418e8b2d216d'] = 'Kies het standaard BTW type voor uw producten'; $_MODULE['<{buckaroo3}prestashop>buckaroo3_admin_dad74672f83230adb22d7b8fead6cda1'] = '1 = Hoog (21%)'; @@ -137,8 +63,6 @@ $_MODULE['<{buckaroo3}prestashop>admin.input_0cbc6611f5540bd0809a388dc95a615b'] = 'Test'; $_MODULE['<{buckaroo3}prestashop>admin.input_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Nee'; $_MODULE['<{buckaroo3}prestashop>admin.input_93cba07454f06a4a960172bbd6e2a435'] = 'Ja'; -$_MODULE['<{buckaroo3}prestashop>admin.input_064da104374f9ec006c8d8f635d65d3c'] = 'Het bestand is geupload'; -$_MODULE['<{buckaroo3}prestashop>admin_9a51a007b33a46e553def6423aad8648'] = 'Algemene instellingen'; $_MODULE['<{buckaroo3}prestashop>admin_19f823c6453c2b1ffd09cb715214813d'] = 'Verplicht veld'; $_MODULE['<{buckaroo3}prestashop>error_7d0d36e53ad5b5e74d5ad53179945bc6'] = 'Verwerken bestelling'; $_MODULE['<{buckaroo3}prestashop>error_f38517a04acc3deea967508b7c3eb4e2'] = 'Bestelling verwerken Error'; @@ -162,29 +86,21 @@ $_MODULE['<{buckaroo3}prestashop>order-confirmation_9390390581f54c65d6acfc8da4e17362'] = 'Terug naar uw bestelling'; $_MODULE['<{buckaroo3}prestashop>payment_request_7d0d36e53ad5b5e74d5ad53179945bc6'] = 'Verwerken bestelling'; $_MODULE['<{buckaroo3}prestashop>payment_request_f1d3b424cd68795ecaa552883759aceb'] = 'Samenvatting bestelling'; -$_MODULE['<{buckaroo3}prestashop>buckaroolog-quicklinks_c7fa6926dc99dfa49129ec9f26ea8042'] = 'Buckaroo log'; +$_MODULE['<{buckaroo3}prestashop>idin_5f00203a42c0023434af555f62336eb4'] = 'leeftijd verificatie'; +$_MODULE['<{buckaroo3}prestashop>idin_cd74b1d3f18e4b9ba54b984e9bbd5f3e'] = 'om door te gaan moet u uw leeftijd middels iDIN verifieren'; +$_MODULE['<{buckaroo3}prestashop>idin_2b280c61b74991789dcf1404da3bcd65'] = 'verifiëren uw leeftijd via iDIN'; +$_MODULE['<{buckaroo3}prestashop>idin_box_69e32388ae7c2d8fd30631a74759db11'] = 'Om dit product te bestellen dien je 18 jaar of ouder te zijn'; $_MODULE['<{buckaroo3}prestashop>payment_8e88b7fa504cd3541dc194c1b04b1811'] = 'Bezig met betalen'; $_MODULE['<{buckaroo3}prestashop>payment_19ef08887745e7b9e37ea8c46849e592'] = 'Betalen via PayPal'; -$_MODULE['<{buckaroo3}prestashop>payment_4573c6ede13b606ba3551cf7a2c4fe21'] = 'Vul alstublieft alle velden juist in'; -$_MODULE['<{buckaroo3}prestashop>payment_d1ffabf385a0921b420b2e413c765797'] = 'Betaaltoeslag van de bestelling'; -$_MODULE['<{buckaroo3}prestashop>payment_46b9e3665f187c739c55983f757ccda0'] = 'Ik bevestig mijn bestelling'; -$_MODULE['<{buckaroo3}prestashop>payment_677a218def337031d9a2541f30a0c522'] = 'Vul uw persoonsgegevens in om uw bestelling te verwerken'; -$_MODULE['<{buckaroo3}prestashop>payment_221e705c06e231636fdbccfdd14f4d5c'] = 'Uw naam'; -$_MODULE['<{buckaroo3}prestashop>payment_127469a6b4253ebb77adccc0dd48461e'] = 'Dhr.'; -$_MODULE['<{buckaroo3}prestashop>payment_773442a125403cbb194c24c5a8d59b88'] = 'Mevr.'; -$_MODULE['<{buckaroo3}prestashop>payment_1e884e3078d9978e216a027ecd57fb34'] = 'E-mail'; -$_MODULE['<{buckaroo3}prestashop>payment_bcc254b55c4a1babdf1dcb82c207506b'] = 'Telefoonnummer'; -$_MODULE['<{buckaroo3}prestashop>payment_350e17d65ded375d643259e7eed26e2a'] = 'IBAN'; -$_MODULE['<{buckaroo3}prestashop>payment_10803b83a68db8f7e7a33e3b41e184d0'] = 'Geboortedatum'; -$_MODULE['<{buckaroo3}prestashop>payment_350bfcb1e3cfb28ddff48ce525d4f139'] = 'DD'; -$_MODULE['<{buckaroo3}prestashop>payment_ad05f78187c942f9dd521605fa81f1ba'] = 'MM'; -$_MODULE['<{buckaroo3}prestashop>payment_8df34bb962577b90d574a51ed2ca757f'] = 'JJJJ'; -$_MODULE['<{buckaroo3}prestashop>payment_ebb27b024a98bb0b226162a340531f89'] = 'Betaal via Achteraf Betalen'; $_MODULE['<{buckaroo3}prestashop>payment_0bc7ead78303b9adf81c0c7c1f171d7d'] = 'Betaal via SEPA Direct Debit'; $_MODULE['<{buckaroo3}prestashop>payment_28d20d5ce69c797169658d647110374b'] = 'Betaal via SEPA Direct Debit'; +$_MODULE['<{buckaroo3}prestashop>payment_4573c6ede13b606ba3551cf7a2c4fe21'] = 'Vul alstublieft alle velden juist in'; $_MODULE['<{buckaroo3}prestashop>payment_a31da59f0986c9d3f3264c553a35e54b'] = 'Vul alstublieft onderstaande velden in zoals deze op uw bankafschrit staan.'; $_MODULE['<{buckaroo3}prestashop>payment_bcd9ace0bd8da6ea91122ab0861b727a'] = 'Rekeninghouder'; +$_MODULE['<{buckaroo3}prestashop>payment_350e17d65ded375d643259e7eed26e2a'] = 'IBAN'; $_MODULE['<{buckaroo3}prestashop>payment_bec758a8de99a38d16087f2196b48103'] = 'BIC'; +$_MODULE['<{buckaroo3}prestashop>payment_bcc254b55c4a1babdf1dcb82c207506b'] = 'Telefoonnummer'; +$_MODULE['<{buckaroo3}prestashop>payment_46b9e3665f187c739c55983f757ccda0'] = 'Ik bevestig mijn bestelling'; $_MODULE['<{buckaroo3}prestashop>payment_7481ccc2277cf3116c8e6ce58a9177b3'] = 'Betaal via iDEAL'; $_MODULE['<{buckaroo3}prestashop>payment_48fa0f621f79f451e58f200957da5b52'] = 'Kies uw bank'; $_MODULE['<{buckaroo3}prestashop>payment_bcccdafcb4fa0ee6d4ce684e58fc1bc2'] = 'ABN AMRO'; @@ -196,22 +112,13 @@ $_MODULE['<{buckaroo3}prestashop>payment_f0c5001c5a267eba646d71ca01d06918'] = 'Triodos Bank'; $_MODULE['<{buckaroo3}prestashop>payment_a69d840883213c0b6b8c6f5d1ead78cb'] = 'Van Lanschot'; $_MODULE['<{buckaroo3}prestashop>payment_9867bdc1a672f1bcdae95a24f2fcaa22'] = 'Knab'; -$_MODULE['<{buckaroo3}prestashop>payment_8692f1066037fcf2639bed54029eeb8b'] = 'AfterPay'; -$_MODULE['<{buckaroo3}prestashop>payment_ccf319f2cb27b8faabf1b80756f8ed19'] = 'Accepteer alstublieft de AfterPay betalingsvoorwaarden'; -$_MODULE['<{buckaroo3}prestashop>payment_3d6ba768e3a87bfe49954d879d459034'] = 'Het telefoonnummer van het afleveradres is niet correct. Vul alstublieft een 10-cijferig telefoonnummer in. '; -$_MODULE['<{buckaroo3}prestashop>payment_e8214c8ff4b8b11e70aeb2b16b674125'] = 'Het telefoonnummer van het factuuradres is niet correct. Vul alstublieft een 10-cijferig telefoonnummer in. '; $_MODULE['<{buckaroo3}prestashop>payment_f2db8053e6402c1c354593cb77be1011'] = 'Vul alstublieft de extra velden in om af te betalen met AfterPay'; -$_MODULE['<{buckaroo3}prestashop>payment_b49f0adf92807da130bb6624e1f740ac'] = 'Geslacht voor persoon van factuuradres'; $_MODULE['<{buckaroo3}prestashop>payment_de6f8db3576c002f67d8e667cfbc00ff'] = 'Geboortedatum voor persoon van factuuradres'; -$_MODULE['<{buckaroo3}prestashop>payment_0302bfdc1637ef5210386074cbfe2028'] = 'Geslacht voor persoon van afleveradres'; +$_MODULE['<{buckaroo3}prestashop>payment_350bfcb1e3cfb28ddff48ce525d4f139'] = 'DD'; +$_MODULE['<{buckaroo3}prestashop>payment_ad05f78187c942f9dd521605fa81f1ba'] = 'MM'; +$_MODULE['<{buckaroo3}prestashop>payment_8df34bb962577b90d574a51ed2ca757f'] = 'JJJJ'; $_MODULE['<{buckaroo3}prestashop>payment_9c5deb329d8968844dcd60f94ed6d4cd'] = 'Geboortedatum voor persoon van afleveradres'; -$_MODULE['<{buckaroo3}prestashop>payment_1ac1ebe3f5f0de595ebb3d2760bc71d6'] = 'Vul alstublieft de extra velden in om te betalen als bedrijf'; -$_MODULE['<{buckaroo3}prestashop>payment_fa206bf0383aa721994c88febcb77a20'] = 'KvK nummer'; -$_MODULE['<{buckaroo3}prestashop>payment_559413224e8bee906ff1def9182b52a9'] = 'Naam van het bedrijf'; -$_MODULE['<{buckaroo3}prestashop>payment_cb3fe599277bfeff35460b4fff16a4f7'] = 'Kostenplaats van de bestelling (dit wordt getoond op de factuur)'; -$_MODULE['<{buckaroo3}prestashop>payment_6c3b1bbed36e2e83b6a1d86dbba9825e'] = 'BTW nummer'; $_MODULE['<{buckaroo3}prestashop>payment_ec003bdd4337c2e6c4c424e79dc41bf3'] = 'Ik accepteer de algemene voorwaarden van AfterPay.'; -$_MODULE['<{buckaroo3}prestashop>payment_95fd00c825396e2c01b529a93bbd63c0'] = 'AfterPay Eenmalige Machtiging'; $_MODULE['<{buckaroo3}prestashop>payment_0ef9bf708675e2e3c2b48a1e2d861694'] = 'Betaal met Giropay'; $_MODULE['<{buckaroo3}prestashop>payment_32e26982dda43a14285657baee320523'] = 'Betaal met Giropay'; $_MODULE['<{buckaroo3}prestashop>payment_8c4798f7b0dee03ef48a3be454963e68'] = 'U moet de BIC invullen'; @@ -221,7 +128,13 @@ $_MODULE['<{buckaroo3}prestashop>payment_76c5e5c6c303f700467bd22449ece7b9'] = 'Betaal met Buckaroo Creditcards'; $_MODULE['<{buckaroo3}prestashop>payment_36230a08292609c5ca5582a46a63ae55'] = 'Betaal met Creditcards'; $_MODULE['<{buckaroo3}prestashop>payment_548ffed366cbd293e5494092927d64d9'] = 'Betaal met Sofortbanking'; -$_MODULE['<{buckaroo3}prestashop>payment_694313033128969f50d8f0b2466365a3'] = 'Betaal met Overboeking'; +$_MODULE['<{buckaroo3}prestashop>payment_52db1a3d3cd7bf584459aa4c2db08b25'] = 'Selecteer a.u.b. een geslacht'; +$_MODULE['<{buckaroo3}prestashop>payment_54588cfd99c9e853c9e7710dbae8d8cd'] = 'Hij/hem'; +$_MODULE['<{buckaroo3}prestashop>payment_68b62df49a394689d2779ec0e4534e9b'] = 'Zij/haar'; +$_MODULE['<{buckaroo3}prestashop>payment_creditcard_472210090b17f3fbe315e8df9eebffa5'] = 'Kies uw creditcard of debitcard'; +$_MODULE['<{buckaroo3}prestashop>payment_klarna_52db1a3d3cd7bf584459aa4c2db08b25'] = 'Selecteer a.u.b. een geslacht'; +$_MODULE['<{buckaroo3}prestashop>payment_klarna_54588cfd99c9e853c9e7710dbae8d8cd'] = 'Hij/hem'; +$_MODULE['<{buckaroo3}prestashop>payment_klarna_68b62df49a394689d2779ec0e4534e9b'] = 'Zij/haar'; $_MODULE['<{buckaroo3}prestashop>payment_return_88526efe38fd18179a127024aba8c1d7'] = 'Uw bestelling op %s is afgerond.'; $_MODULE['<{buckaroo3}prestashop>payment_return_8de637e24570c1edb0357826a2ad5aea'] = 'Er was een probleem met uw bestelling. Als u denkt dat dit niet klopt, kunt u contacnt opnemen met onze '; $_MODULE['<{buckaroo3}prestashop>payment_return_64430ad2835be8ad60c59e7d44e4b0b1'] = 'customer service'; @@ -246,7 +159,3 @@ $_MODULE['<{buckaroo3}prestashop>refund-hook_b2f40690858b404ed10e62bdf422c704'] = 'Bedrag'; $_MODULE['<{buckaroo3}prestashop>refund-hook_3ec365dd533ddb7ef3d1c111186ce872'] = 'Details'; $_MODULE['<{buckaroo3}prestashop>refund-hook_de78da3154b793d64d302db27e65baec'] = 'Er zijn geen betaalmethoden beschikbaar'; -$_MODULE['<{buckaroo3}prestashop>idin_5f00203a42c0023434af555f62336eb4'] = 'leeftijd verificatie'; -$_MODULE['<{buckaroo3}prestashop>idin_2b280c61b74991789dcf1404da3bcd65'] = 'verifiëren uw leeftijd via iDIN'; -$_MODULE['<{buckaroo3}prestashop>idin_box_69e32388ae7c2d8fd30631a74759db11'] = 'Om dit product te bestellen dien je 18 jaar of ouder te zijn'; -$_MODULE['<{buckaroo3}prestashop>idin_cd74b1d3f18e4b9ba54b984e9bbd5f3e'] = 'om door te gaan moet u uw leeftijd middels iDIN verifieren'; \ No newline at end of file diff --git a/upgrade/index.php b/upgrade/index.php index 35049169a..97ec565fb 100644 --- a/upgrade/index.php +++ b/upgrade/index.php @@ -1,7 +1,5 @@ execute( - "update " . _DB_PREFIX_ . "configuration set value='None' where name='PS_COOKIE_SAMESITE';" + 'update ' . _DB_PREFIX_ . "configuration set value='None' where name='PS_COOKIE_SAMESITE';" ); return true; diff --git a/upgrade/upgrade-3.3.2.php b/upgrade/upgrade-3.3.2.php index e3265dfee..d090ae56d 100644 --- a/upgrade/upgrade-3.3.2.php +++ b/upgrade/upgrade-3.3.2.php @@ -1,7 +1,5 @@ execute("CREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "buckaroo_fee` - ( `id` INT NOT NULL AUTO_INCREMENT , `reference` TEXT NOT NULL , `id_cart` TEXT NOT NULL , `buckaroo_fee` FLOAT, `currency` TEXT NOT NULL , PRIMARY KEY (id) )"); + return Db::getInstance()->execute('CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'buckaroo_fee` + ( `id` INT NOT NULL AUTO_INCREMENT , `reference` TEXT NOT NULL , `id_cart` TEXT NOT NULL , `buckaroo_fee` FLOAT, `currency` TEXT NOT NULL , PRIMARY KEY (id) )'); // @codingStandardsIgnoreEnd } diff --git a/upgrade/upgrade-3.3.3.php b/upgrade/upgrade-3.3.3.php index 21320147b..8ef31dcae 100644 --- a/upgrade/upgrade-3.3.3.php +++ b/upgrade/upgrade-3.3.3.php @@ -1,7 +1,5 @@ registerHook('displayOrderConfirmation') && - $object->registerHook('actionEmailSendBefore') && - $object->registerHook('displayPDFInvoice')); + return $object->registerHook('displayOrderConfirmation') + && $object->registerHook('actionEmailSendBefore') + && $object->registerHook('displayPDFInvoice'); } diff --git a/upgrade/upgrade-3.3.5.php b/upgrade/upgrade-3.3.5.php index f7ab55e5f..3e7e69e28 100644 --- a/upgrade/upgrade-3.3.5.php +++ b/upgrade/upgrade-3.3.5.php @@ -1,7 +1,5 @@ registerHook('displayBeforeCarrier'); - + $object->registerHook('additionalCustomerFormFields'); $object->registerHook('actionSubmitAccountBefore'); $object->registerHook('actionAdminCustomersListingFieldsModifier'); $object->registerHook('displayAdminProductsMainStepLeftColumnMiddle'); - $object->registerHook('displayProductExtraContent'); - Db::getInstance()->execute("ALTER TABLE `" . _DB_PREFIX_ . "customer` - ADD buckaroo_idin_consumerbin VARCHAR(255) NULL, ADD buckaroo_idin_iseighteenorolder VARCHAR(255) NULL;"); + Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'customer` + ADD buckaroo_idin_consumerbin VARCHAR(255) NULL, ADD buckaroo_idin_iseighteenorolder VARCHAR(255) NULL;'); - Db::getInstance()->execute("ALTER TABLE `" . _DB_PREFIX_ . "product` - ADD buckaroo_idin TINYINT(1) NULL;"); + Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'product` + ADD buckaroo_idin TINYINT(1) NULL;'); copy( - _PS_ROOT_DIR_."/modules/buckaroo3/classes/Product.php", - _PS_ROOT_DIR_."/override/classes/Product.php" + _PS_ROOT_DIR_ . '/modules/buckaroo3/classes/Product.php', + _PS_ROOT_DIR_ . '/override/classes/Product.php' ); return true; diff --git a/upgrade/upgrade-3.4.1.php b/upgrade/upgrade-3.4.1.php new file mode 100644 index 000000000..5adbb8db8 --- /dev/null +++ b/upgrade/upgrade-3.4.1.php @@ -0,0 +1,34 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +if (!defined('_PS_VERSION_')) { + exit; +} + +/** + * @return mixed + */ +function upgrade_module_3_4_1($object) +{ + $object->registerHook('displayAdminOrderTop'); + + $sql = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'buckaroo_order_data` + ( `id` INT NOT NULL AUTO_INCREMENT , `id_order` INT NOT NULL , `key` VARCHAR(255), `value` TEXT, PRIMARY KEY (id), INDEX (id_order), INDEX (`key`) )'; + + Db::getInstance()->execute($sql); + + return true; +} diff --git a/upgrade/upgrade-3.4.php b/upgrade/upgrade-3.4.php new file mode 100644 index 000000000..7fc70ab4d --- /dev/null +++ b/upgrade/upgrade-3.4.php @@ -0,0 +1,54 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +// Remove old payment methods +// empayment +Configuration::deleteByName('BUCKAROO_EMPAYMENT_ENABLED'); +Configuration::deleteByName('BUCKAROO_EMPAYMENT_TEST'); +Configuration::deleteByName('BUCKAROO_EMPAYMENT_LABEL'); +Configuration::deleteByName('BUCKAROO_EMPAYMENT_FEE'); + +// directdebit +Configuration::deleteByName('BUCKAROO_DD_ENABLED'); +Configuration::deleteByName('BUCKAROO_DD_TEST'); +Configuration::deleteByName('BUCKAROO_DD_LABEL'); +Configuration::deleteByName('BUCKAROO_DD_FEE'); +Configuration::deleteByName('BUCKAROO_DD_USECREDITMANAGMENT'); +Configuration::deleteByName('BUCKAROO_DD_INVOICEDELAY'); +Configuration::deleteByName('BUCKAROO_DD_DATEDUE'); +Configuration::deleteByName('BUCKAROO_DD_MAXREMINDERLEVEL'); + +// Remove certificate, pushurl, culture configs +Configuration::deleteByName('BUCKAROO_CERTIFICATE'); +Configuration::deleteByName('BUCKAROO_CERTIFICATE_FILE'); +Configuration::deleteByName('BUCKAROO_CERTIFICATE_THUMBPRINT'); +Configuration::deleteByName('BUCKAROO_TRANSACTION_RETURNURL'); +Configuration::deleteByName('BUCKAROO_TRANSACTION_CULTURE'); + +// Rename Capayable to In3 configs +Configuration::updateValue('BUCKAROO_IN3_ENABLED', Configuration::get('BUCKAROO_CAPAYABLE_ENABLED')); +Configuration::updateValue('BUCKAROO_IN3_TEST', Configuration::get('BUCKAROO_CAPAYABLE_TEST')); +Configuration::updateValue('BUCKAROO_IN3_LABEL', Configuration::get('BUCKAROO_CAPAYABLE_LABEL')); +Configuration::updateValue('BUCKAROO_IN3_FEE', Configuration::get('BUCKAROO_CAPAYABLE_FEE')); +// delete old references +Configuration::deleteByName('BUCKAROO_CAPAYABLE_ENABLED'); +Configuration::deleteByName('BUCKAROO_CAPAYABLE_TEST'); +Configuration::deleteByName('BUCKAROO_CAPAYABLE_LABEL'); +Configuration::deleteByName('BUCKAROO_CAPAYABLE_FEE'); + +// Paypal update +Configuration::updateValue('BUCKAROO_PAYPAL_FEE', Configuration::get('BUCKAROO_BUCKAROOPAYPAL_FEE')); +Configuration::deleteByName('BUCKAROO_BUCKAROOPAYPAL_FEE'); diff --git a/upgrade/upgrade-4.0.0.php b/upgrade/upgrade-4.0.0.php new file mode 100644 index 000000000..191fe18c6 --- /dev/null +++ b/upgrade/upgrade-4.0.0.php @@ -0,0 +1,30 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +if (!defined('_PS_VERSION_')) { + exit; +} + +/** + * @return mixed + */ +function upgrade_module_4_0_0($object) +{ + $object->uninstall(); + $object->install(); + + return true; +} diff --git a/upgrade/upgrade-4.0.1.php b/upgrade/upgrade-4.0.1.php new file mode 100644 index 000000000..24e4f1901 --- /dev/null +++ b/upgrade/upgrade-4.0.1.php @@ -0,0 +1,30 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +if (!defined('_PS_VERSION_')) { + exit; +} + +/** + * @return mixed + */ +function upgrade_module_4_0_1($object) +{ + $object->uninstall(); + $object->install(); + + return true; +} diff --git a/vendor/autoload.php b/vendor/autoload.php new file mode 100644 index 000000000..96770f17c --- /dev/null +++ b/vendor/autoload.php @@ -0,0 +1,25 @@ +* +- `MathException` now extends `Exception` instead of `RuntimeException` + +* You may now run into type errors if you were passing `Stringable` objects to `of()` or any of the methods +internally calling `of()`, with `strict_types` enabled. You can fix this by casting `Stringable` objects to `string` +first. + +## [0.10.2](https://github.com/brick/math/releases/tag/0.10.2) - 2022-08-11 + +👌 **Improvements** + +- `BigRational::toFloat()` now simplifies the fraction before performing division (#73) thanks to @olsavmic + +## [0.10.1](https://github.com/brick/math/releases/tag/0.10.1) - 2022-08-02 + +✨ **New features** + +- `BigInteger::gcdMultiple()` returns the GCD of multiple `BigInteger` numbers + +## [0.10.0](https://github.com/brick/math/releases/tag/0.10.0) - 2022-06-18 + +💥 **Breaking changes** + +- Minimum PHP version is now 7.4 + +## [0.9.3](https://github.com/brick/math/releases/tag/0.9.3) - 2021-08-15 + +🚀 **Compatibility with PHP 8.1** + +- Support for custom object serialization; this removes a warning on PHP 8.1 due to the `Serializable` interface being deprecated (#60) thanks @TRowbotham + +## [0.9.2](https://github.com/brick/math/releases/tag/0.9.2) - 2021-01-20 + +🐛 **Bug fix** + +- Incorrect results could be returned when using the BCMath calculator, with a default scale set with `bcscale()`, on PHP >= 7.2 (#55). + +## [0.9.1](https://github.com/brick/math/releases/tag/0.9.1) - 2020-08-19 + +✨ **New features** + +- `BigInteger::not()` returns the bitwise `NOT` value + +🐛 **Bug fixes** + +- `BigInteger::toBytes()` could return an incorrect binary representation for some numbers +- The bitwise operations `and()`, `or()`, `xor()` on `BigInteger` could return an incorrect result when the GMP extension is not available + +## [0.9.0](https://github.com/brick/math/releases/tag/0.9.0) - 2020-08-18 + +👌 **Improvements** + +- `BigNumber::of()` now accepts `.123` and `123.` formats, both of which return a `BigDecimal` + +💥 **Breaking changes** + +- Deprecated method `BigInteger::powerMod()` has been removed - use `modPow()` instead +- Deprecated method `BigInteger::parse()` has been removed - use `fromBase()` instead + +## [0.8.17](https://github.com/brick/math/releases/tag/0.8.17) - 2020-08-19 + +🐛 **Bug fix** + +- `BigInteger::toBytes()` could return an incorrect binary representation for some numbers +- The bitwise operations `and()`, `or()`, `xor()` on `BigInteger` could return an incorrect result when the GMP extension is not available + +## [0.8.16](https://github.com/brick/math/releases/tag/0.8.16) - 2020-08-18 + +🚑 **Critical fix** + +- This version reintroduces the deprecated `BigInteger::parse()` method, that has been removed by mistake in version `0.8.9` and should have lasted for the whole `0.8` release cycle. + +✨ **New features** + +- `BigInteger::modInverse()` calculates a modular multiplicative inverse +- `BigInteger::fromBytes()` creates a `BigInteger` from a byte string +- `BigInteger::toBytes()` converts a `BigInteger` to a byte string +- `BigInteger::randomBits()` creates a pseudo-random `BigInteger` of a given bit length +- `BigInteger::randomRange()` creates a pseudo-random `BigInteger` between two bounds + +💩 **Deprecations** + +- `BigInteger::powerMod()` is now deprecated in favour of `modPow()` + +## [0.8.15](https://github.com/brick/math/releases/tag/0.8.15) - 2020-04-15 + +🐛 **Fixes** + +- added missing `ext-json` requirement, due to `BigNumber` implementing `JsonSerializable` + +⚡️ **Optimizations** + +- additional optimization in `BigInteger::remainder()` + +## [0.8.14](https://github.com/brick/math/releases/tag/0.8.14) - 2020-02-18 + +✨ **New features** + +- `BigInteger::getLowestSetBit()` returns the index of the rightmost one bit + +## [0.8.13](https://github.com/brick/math/releases/tag/0.8.13) - 2020-02-16 + +✨ **New features** + +- `BigInteger::isEven()` tests whether the number is even +- `BigInteger::isOdd()` tests whether the number is odd +- `BigInteger::testBit()` tests if a bit is set +- `BigInteger::getBitLength()` returns the number of bits in the minimal representation of the number + +## [0.8.12](https://github.com/brick/math/releases/tag/0.8.12) - 2020-02-03 + +🛠️ **Maintenance release** + +Classes are now annotated for better static analysis with [psalm](https://psalm.dev/). + +This is a maintenance release: no bug fixes, no new features, no breaking changes. + +## [0.8.11](https://github.com/brick/math/releases/tag/0.8.11) - 2020-01-23 + +✨ **New feature** + +`BigInteger::powerMod()` performs a power-with-modulo operation. Useful for crypto. + +## [0.8.10](https://github.com/brick/math/releases/tag/0.8.10) - 2020-01-21 + +✨ **New feature** + +`BigInteger::mod()` returns the **modulo** of two numbers. The *modulo* differs from the *remainder* when the signs of the operands are different. + +## [0.8.9](https://github.com/brick/math/releases/tag/0.8.9) - 2020-01-08 + +⚡️ **Performance improvements** + +A few additional optimizations in `BigInteger` and `BigDecimal` when one of the operands can be returned as is. Thanks to @tomtomsen in #24. + +## [0.8.8](https://github.com/brick/math/releases/tag/0.8.8) - 2019-04-25 + +🐛 **Bug fixes** + +- `BigInteger::toBase()` could return an empty string for zero values (BCMath & Native calculators only, GMP calculator unaffected) + +✨ **New features** + +- `BigInteger::toArbitraryBase()` converts a number to an arbitrary base, using a custom alphabet +- `BigInteger::fromArbitraryBase()` converts a string in an arbitrary base, using a custom alphabet, back to a number + +These methods can be used as the foundation to convert strings between different bases/alphabets, using BigInteger as an intermediate representation. + +💩 **Deprecations** + +- `BigInteger::parse()` is now deprecated in favour of `fromBase()` + +`BigInteger::fromBase()` works the same way as `parse()`, with 2 minor differences: + +- the `$base` parameter is required, it does not default to `10` +- it throws a `NumberFormatException` instead of an `InvalidArgumentException` when the number is malformed + +## [0.8.7](https://github.com/brick/math/releases/tag/0.8.7) - 2019-04-20 + +**Improvements** + +- Safer conversion from `float` when using custom locales +- **Much faster** `NativeCalculator` implementation 🚀 + +You can expect **at least a 3x performance improvement** for common arithmetic operations when using the library on systems without GMP or BCMath; it gets exponentially faster on multiplications with a high number of digits. This is due to calculations now being performed on whole blocks of digits (the block size depending on the platform, 32-bit or 64-bit) instead of digit-by-digit as before. + +## [0.8.6](https://github.com/brick/math/releases/tag/0.8.6) - 2019-04-11 + +**New method** + +`BigNumber::sum()` returns the sum of one or more numbers. + +## [0.8.5](https://github.com/brick/math/releases/tag/0.8.5) - 2019-02-12 + +**Bug fix**: `of()` factory methods could fail when passing a `float` in environments using a `LC_NUMERIC` locale with a decimal separator other than `'.'` (#20). + +Thanks @manowark 👍 + +## [0.8.4](https://github.com/brick/math/releases/tag/0.8.4) - 2018-12-07 + +**New method** + +`BigDecimal::sqrt()` calculates the square root of a decimal number, to a given scale. + +## [0.8.3](https://github.com/brick/math/releases/tag/0.8.3) - 2018-12-06 + +**New method** + +`BigInteger::sqrt()` calculates the square root of a number (thanks @peter279k). + +**New exception** + +`NegativeNumberException` is thrown when calling `sqrt()` on a negative number. + +## [0.8.2](https://github.com/brick/math/releases/tag/0.8.2) - 2018-11-08 + +**Performance update** + +- Further improvement of `toInt()` performance +- `NativeCalculator` can now perform some multiplications more efficiently + +## [0.8.1](https://github.com/brick/math/releases/tag/0.8.1) - 2018-11-07 + +Performance optimization of `toInt()` methods. + +## [0.8.0](https://github.com/brick/math/releases/tag/0.8.0) - 2018-10-13 + +**Breaking changes** + +The following deprecated methods have been removed. Use the new method name instead: + +| Method removed | Replacement method | +| --- | --- | +| `BigDecimal::getIntegral()` | `BigDecimal::getIntegralPart()` | +| `BigDecimal::getFraction()` | `BigDecimal::getFractionalPart()` | + +--- + +**New features** + +`BigInteger` has been augmented with 5 new methods for bitwise operations: + +| New method | Description | +| --- | --- | +| `and()` | performs a bitwise `AND` operation on two numbers | +| `or()` | performs a bitwise `OR` operation on two numbers | +| `xor()` | performs a bitwise `XOR` operation on two numbers | +| `shiftedLeft()` | returns the number shifted left by a number of bits | +| `shiftedRight()` | returns the number shifted right by a number of bits | + +Thanks to @DASPRiD 👍 + +## [0.7.3](https://github.com/brick/math/releases/tag/0.7.3) - 2018-08-20 + +**New method:** `BigDecimal::hasNonZeroFractionalPart()` + +**Renamed/deprecated methods:** + +- `BigDecimal::getIntegral()` has been renamed to `getIntegralPart()` and is now deprecated +- `BigDecimal::getFraction()` has been renamed to `getFractionalPart()` and is now deprecated + +## [0.7.2](https://github.com/brick/math/releases/tag/0.7.2) - 2018-07-21 + +**Performance update** + +`BigInteger::parse()` and `toBase()` now use GMP's built-in base conversion features when available. + +## [0.7.1](https://github.com/brick/math/releases/tag/0.7.1) - 2018-03-01 + +This is a maintenance release, no code has been changed. + +- When installed with `--no-dev`, the autoloader does not autoload tests anymore +- Tests and other files unnecessary for production are excluded from the dist package + +This will help make installations more compact. + +## [0.7.0](https://github.com/brick/math/releases/tag/0.7.0) - 2017-10-02 + +Methods renamed: + +- `BigNumber:sign()` has been renamed to `getSign()` +- `BigDecimal::unscaledValue()` has been renamed to `getUnscaledValue()` +- `BigDecimal::scale()` has been renamed to `getScale()` +- `BigDecimal::integral()` has been renamed to `getIntegral()` +- `BigDecimal::fraction()` has been renamed to `getFraction()` +- `BigRational::numerator()` has been renamed to `getNumerator()` +- `BigRational::denominator()` has been renamed to `getDenominator()` + +Classes renamed: + +- `ArithmeticException` has been renamed to `MathException` + +## [0.6.2](https://github.com/brick/math/releases/tag/0.6.2) - 2017-10-02 + +The base class for all exceptions is now `MathException`. +`ArithmeticException` has been deprecated, and will be removed in 0.7.0. + +## [0.6.1](https://github.com/brick/math/releases/tag/0.6.1) - 2017-10-02 + +A number of methods have been renamed: + +- `BigNumber:sign()` is deprecated; use `getSign()` instead +- `BigDecimal::unscaledValue()` is deprecated; use `getUnscaledValue()` instead +- `BigDecimal::scale()` is deprecated; use `getScale()` instead +- `BigDecimal::integral()` is deprecated; use `getIntegral()` instead +- `BigDecimal::fraction()` is deprecated; use `getFraction()` instead +- `BigRational::numerator()` is deprecated; use `getNumerator()` instead +- `BigRational::denominator()` is deprecated; use `getDenominator()` instead + +The old methods will be removed in version 0.7.0. + +## [0.6.0](https://github.com/brick/math/releases/tag/0.6.0) - 2017-08-25 + +- Minimum PHP version is now [7.1](https://gophp71.org/); for PHP 5.6 and PHP 7.0 support, use version `0.5` +- Deprecated method `BigDecimal::withScale()` has been removed; use `toScale()` instead +- Method `BigNumber::toInteger()` has been renamed to `toInt()` + +## [0.5.4](https://github.com/brick/math/releases/tag/0.5.4) - 2016-10-17 + +`BigNumber` classes now implement [JsonSerializable](http://php.net/manual/en/class.jsonserializable.php). +The JSON output is always a string. + +## [0.5.3](https://github.com/brick/math/releases/tag/0.5.3) - 2016-03-31 + +This is a bugfix release. Dividing by a negative power of 1 with the same scale as the dividend could trigger an incorrect optimization which resulted in a wrong result. See #6. + +## [0.5.2](https://github.com/brick/math/releases/tag/0.5.2) - 2015-08-06 + +The `$scale` parameter of `BigDecimal::dividedBy()` is now optional again. + +## [0.5.1](https://github.com/brick/math/releases/tag/0.5.1) - 2015-07-05 + +**New method: `BigNumber::toScale()`** + +This allows to convert any `BigNumber` to a `BigDecimal` with a given scale, using rounding if necessary. + +## [0.5.0](https://github.com/brick/math/releases/tag/0.5.0) - 2015-07-04 + +**New features** +- Common `BigNumber` interface for all classes, with the following methods: + - `sign()` and derived methods (`isZero()`, `isPositive()`, ...) + - `compareTo()` and derived methods (`isEqualTo()`, `isGreaterThan()`, ...) that work across different `BigNumber` types + - `toBigInteger()`, `toBigDecimal()`, `toBigRational`() conversion methods + - `toInteger()` and `toFloat()` conversion methods to native types +- Unified `of()` behaviour: every class now accepts any type of number, provided that it can be safely converted to the current type +- New method: `BigDecimal::exactlyDividedBy()`; this method automatically computes the scale of the result, provided that the division yields a finite number of digits +- New methods: `BigRational::quotient()` and `remainder()` +- Fine-grained exceptions: `DivisionByZeroException`, `RoundingNecessaryException`, `NumberFormatException` +- Factory methods `zero()`, `one()` and `ten()` available in all classes +- Rounding mode reintroduced in `BigInteger::dividedBy()` + +This release also comes with many performance improvements. + +--- + +**Breaking changes** +- `BigInteger`: + - `getSign()` is renamed to `sign()` + - `toString()` is renamed to `toBase()` + - `BigInteger::dividedBy()` now throws an exception by default if the remainder is not zero; use `quotient()` to get the previous behaviour +- `BigDecimal`: + - `getSign()` is renamed to `sign()` + - `getUnscaledValue()` is renamed to `unscaledValue()` + - `getScale()` is renamed to `scale()` + - `getIntegral()` is renamed to `integral()` + - `getFraction()` is renamed to `fraction()` + - `divideAndRemainder()` is renamed to `quotientAndRemainder()` + - `dividedBy()` now takes a **mandatory** `$scale` parameter **before** the rounding mode + - `toBigInteger()` does not accept a `$roundingMode` parameter anymore + - `toBigRational()` does not simplify the fraction anymore; explicitly add `->simplified()` to get the previous behaviour +- `BigRational`: + - `getSign()` is renamed to `sign()` + - `getNumerator()` is renamed to `numerator()` + - `getDenominator()` is renamed to `denominator()` + - `of()` is renamed to `nd()`, while `parse()` is renamed to `of()` +- Miscellaneous: + - `ArithmeticException` is moved to an `Exception\` sub-namespace + - `of()` factory methods now throw `NumberFormatException` instead of `InvalidArgumentException` + +## [0.4.3](https://github.com/brick/math/releases/tag/0.4.3) - 2016-03-31 + +Backport of two bug fixes from the 0.5 branch: +- `BigInteger::parse()` did not always throw `InvalidArgumentException` as expected +- Dividing by a negative power of 1 with the same scale as the dividend could trigger an incorrect optimization which resulted in a wrong result. See #6. + +## [0.4.2](https://github.com/brick/math/releases/tag/0.4.2) - 2015-06-16 + +New method: `BigDecimal::stripTrailingZeros()` + +## [0.4.1](https://github.com/brick/math/releases/tag/0.4.1) - 2015-06-12 + +Introducing a `BigRational` class, to perform calculations on fractions of any size. + +## [0.4.0](https://github.com/brick/math/releases/tag/0.4.0) - 2015-06-12 + +Rounding modes have been removed from `BigInteger`, and are now a concept specific to `BigDecimal`. + +`BigInteger::dividedBy()` now always returns the quotient of the division. + +## [0.3.5](https://github.com/brick/math/releases/tag/0.3.5) - 2016-03-31 + +Backport of two bug fixes from the 0.5 branch: + +- `BigInteger::parse()` did not always throw `InvalidArgumentException` as expected +- Dividing by a negative power of 1 with the same scale as the dividend could trigger an incorrect optimization which resulted in a wrong result. See #6. + +## [0.3.4](https://github.com/brick/math/releases/tag/0.3.4) - 2015-06-11 + +New methods: +- `BigInteger::remainder()` returns the remainder of a division only +- `BigInteger::gcd()` returns the greatest common divisor of two numbers + +## [0.3.3](https://github.com/brick/math/releases/tag/0.3.3) - 2015-06-07 + +Fix `toString()` not handling negative numbers. + +## [0.3.2](https://github.com/brick/math/releases/tag/0.3.2) - 2015-06-07 + +`BigInteger` and `BigDecimal` now have a `getSign()` method that returns: +- `-1` if the number is negative +- `0` if the number is zero +- `1` if the number is positive + +## [0.3.1](https://github.com/brick/math/releases/tag/0.3.1) - 2015-06-05 + +Minor performance improvements + +## [0.3.0](https://github.com/brick/math/releases/tag/0.3.0) - 2015-06-04 + +The `$roundingMode` and `$scale` parameters have been swapped in `BigDecimal::dividedBy()`. + +## [0.2.2](https://github.com/brick/math/releases/tag/0.2.2) - 2015-06-04 + +Stronger immutability guarantee for `BigInteger` and `BigDecimal`. + +So far, it would have been possible to break immutability of these classes by calling the `unserialize()` internal function. This release fixes that. + +## [0.2.1](https://github.com/brick/math/releases/tag/0.2.1) - 2015-06-02 + +Added `BigDecimal::divideAndRemainder()` + +## [0.2.0](https://github.com/brick/math/releases/tag/0.2.0) - 2015-05-22 + +- `min()` and `max()` do not accept an `array` anymore, but a variable number of parameters +- **minimum PHP version is now 5.6** +- continuous integration with PHP 7 + +## [0.1.1](https://github.com/brick/math/releases/tag/0.1.1) - 2014-09-01 + +- Added `BigInteger::power()` +- Added HHVM support + +## [0.1.0](https://github.com/brick/math/releases/tag/0.1.0) - 2014-08-31 + +First beta release. + diff --git a/vendor/brick/math/LICENSE b/vendor/brick/math/LICENSE new file mode 100644 index 000000000..f9b724f00 --- /dev/null +++ b/vendor/brick/math/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013-present Benjamin Morel + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/brick/math/composer.json b/vendor/brick/math/composer.json new file mode 100644 index 000000000..ed817bdd0 --- /dev/null +++ b/vendor/brick/math/composer.json @@ -0,0 +1,34 @@ +{ + "name": "brick/math", + "description": "Arbitrary-precision arithmetic library", + "type": "library", + "keywords": [ + "Brick", + "Math", + "Arbitrary-precision", + "Arithmetic", + "BigInteger", + "BigDecimal", + "BigRational", + "Bignum" + ], + "license": "MIT", + "require": { + "php": "^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.0", + "php-coveralls/php-coveralls": "^2.2", + "vimeo/psalm": "5.0.0" + }, + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Brick\\Math\\Tests\\": "tests/" + } + } +} diff --git a/vendor/brick/math/src/BigDecimal.php b/vendor/brick/math/src/BigDecimal.php new file mode 100644 index 000000000..02fc65612 --- /dev/null +++ b/vendor/brick/math/src/BigDecimal.php @@ -0,0 +1,786 @@ +value = $value; + $this->scale = $scale; + } + + /** + * Creates a BigDecimal of the given value. + * + * @throws MathException If the value cannot be converted to a BigDecimal. + * + * @psalm-pure + */ + public static function of(BigNumber|int|float|string $value) : BigDecimal + { + return parent::of($value)->toBigDecimal(); + } + + /** + * Creates a BigDecimal from an unscaled value and a scale. + * + * Example: `(12345, 3)` will result in the BigDecimal `12.345`. + * + * @param BigNumber|int|float|string $value The unscaled value. Must be convertible to a BigInteger. + * @param int $scale The scale of the number, positive or zero. + * + * @throws \InvalidArgumentException If the scale is negative. + * + * @psalm-pure + */ + public static function ofUnscaledValue(BigNumber|int|float|string $value, int $scale = 0) : BigDecimal + { + if ($scale < 0) { + throw new \InvalidArgumentException('The scale cannot be negative.'); + } + + return new BigDecimal((string) BigInteger::of($value), $scale); + } + + /** + * Returns a BigDecimal representing zero, with a scale of zero. + * + * @psalm-pure + */ + public static function zero() : BigDecimal + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigDecimal|null $zero + */ + static $zero; + + if ($zero === null) { + $zero = new BigDecimal('0'); + } + + return $zero; + } + + /** + * Returns a BigDecimal representing one, with a scale of zero. + * + * @psalm-pure + */ + public static function one() : BigDecimal + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigDecimal|null $one + */ + static $one; + + if ($one === null) { + $one = new BigDecimal('1'); + } + + return $one; + } + + /** + * Returns a BigDecimal representing ten, with a scale of zero. + * + * @psalm-pure + */ + public static function ten() : BigDecimal + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigDecimal|null $ten + */ + static $ten; + + if ($ten === null) { + $ten = new BigDecimal('10'); + } + + return $ten; + } + + /** + * Returns the sum of this number and the given one. + * + * The result has a scale of `max($this->scale, $that->scale)`. + * + * @param BigNumber|int|float|string $that The number to add. Must be convertible to a BigDecimal. + * + * @throws MathException If the number is not valid, or is not convertible to a BigDecimal. + */ + public function plus(BigNumber|int|float|string $that) : BigDecimal + { + $that = BigDecimal::of($that); + + if ($that->value === '0' && $that->scale <= $this->scale) { + return $this; + } + + if ($this->value === '0' && $this->scale <= $that->scale) { + return $that; + } + + [$a, $b] = $this->scaleValues($this, $that); + + $value = Calculator::get()->add($a, $b); + $scale = $this->scale > $that->scale ? $this->scale : $that->scale; + + return new BigDecimal($value, $scale); + } + + /** + * Returns the difference of this number and the given one. + * + * The result has a scale of `max($this->scale, $that->scale)`. + * + * @param BigNumber|int|float|string $that The number to subtract. Must be convertible to a BigDecimal. + * + * @throws MathException If the number is not valid, or is not convertible to a BigDecimal. + */ + public function minus(BigNumber|int|float|string $that) : BigDecimal + { + $that = BigDecimal::of($that); + + if ($that->value === '0' && $that->scale <= $this->scale) { + return $this; + } + + [$a, $b] = $this->scaleValues($this, $that); + + $value = Calculator::get()->sub($a, $b); + $scale = $this->scale > $that->scale ? $this->scale : $that->scale; + + return new BigDecimal($value, $scale); + } + + /** + * Returns the product of this number and the given one. + * + * The result has a scale of `$this->scale + $that->scale`. + * + * @param BigNumber|int|float|string $that The multiplier. Must be convertible to a BigDecimal. + * + * @throws MathException If the multiplier is not a valid number, or is not convertible to a BigDecimal. + */ + public function multipliedBy(BigNumber|int|float|string $that) : BigDecimal + { + $that = BigDecimal::of($that); + + if ($that->value === '1' && $that->scale === 0) { + return $this; + } + + if ($this->value === '1' && $this->scale === 0) { + return $that; + } + + $value = Calculator::get()->mul($this->value, $that->value); + $scale = $this->scale + $that->scale; + + return new BigDecimal($value, $scale); + } + + /** + * Returns the result of the division of this number by the given one, at the given scale. + * + * @param BigNumber|int|float|string $that The divisor. + * @param int|null $scale The desired scale, or null to use the scale of this number. + * @param int $roundingMode An optional rounding mode. + * + * @throws \InvalidArgumentException If the scale or rounding mode is invalid. + * @throws MathException If the number is invalid, is zero, or rounding was necessary. + */ + public function dividedBy(BigNumber|int|float|string $that, ?int $scale = null, int $roundingMode = RoundingMode::UNNECESSARY) : BigDecimal + { + $that = BigDecimal::of($that); + + if ($that->isZero()) { + throw DivisionByZeroException::divisionByZero(); + } + + if ($scale === null) { + $scale = $this->scale; + } elseif ($scale < 0) { + throw new \InvalidArgumentException('Scale cannot be negative.'); + } + + if ($that->value === '1' && $that->scale === 0 && $scale === $this->scale) { + return $this; + } + + $p = $this->valueWithMinScale($that->scale + $scale); + $q = $that->valueWithMinScale($this->scale - $scale); + + $result = Calculator::get()->divRound($p, $q, $roundingMode); + + return new BigDecimal($result, $scale); + } + + /** + * Returns the exact result of the division of this number by the given one. + * + * The scale of the result is automatically calculated to fit all the fraction digits. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigDecimal. + * + * @throws MathException If the divisor is not a valid number, is not convertible to a BigDecimal, is zero, + * or the result yields an infinite number of digits. + */ + public function exactlyDividedBy(BigNumber|int|float|string $that) : BigDecimal + { + $that = BigDecimal::of($that); + + if ($that->value === '0') { + throw DivisionByZeroException::divisionByZero(); + } + + [, $b] = $this->scaleValues($this, $that); + + $d = \rtrim($b, '0'); + $scale = \strlen($b) - \strlen($d); + + $calculator = Calculator::get(); + + foreach ([5, 2] as $prime) { + for (;;) { + $lastDigit = (int) $d[-1]; + + if ($lastDigit % $prime !== 0) { + break; + } + + $d = $calculator->divQ($d, (string) $prime); + $scale++; + } + } + + return $this->dividedBy($that, $scale)->stripTrailingZeros(); + } + + /** + * Returns this number exponentiated to the given value. + * + * The result has a scale of `$this->scale * $exponent`. + * + * @throws \InvalidArgumentException If the exponent is not in the range 0 to 1,000,000. + */ + public function power(int $exponent) : BigDecimal + { + if ($exponent === 0) { + return BigDecimal::one(); + } + + if ($exponent === 1) { + return $this; + } + + if ($exponent < 0 || $exponent > Calculator::MAX_POWER) { + throw new \InvalidArgumentException(\sprintf( + 'The exponent %d is not in the range 0 to %d.', + $exponent, + Calculator::MAX_POWER + )); + } + + return new BigDecimal(Calculator::get()->pow($this->value, $exponent), $this->scale * $exponent); + } + + /** + * Returns the quotient of the division of this number by this given one. + * + * The quotient has a scale of `0`. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigDecimal. + * + * @throws MathException If the divisor is not a valid decimal number, or is zero. + */ + public function quotient(BigNumber|int|float|string $that) : BigDecimal + { + $that = BigDecimal::of($that); + + if ($that->isZero()) { + throw DivisionByZeroException::divisionByZero(); + } + + $p = $this->valueWithMinScale($that->scale); + $q = $that->valueWithMinScale($this->scale); + + $quotient = Calculator::get()->divQ($p, $q); + + return new BigDecimal($quotient, 0); + } + + /** + * Returns the remainder of the division of this number by this given one. + * + * The remainder has a scale of `max($this->scale, $that->scale)`. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigDecimal. + * + * @throws MathException If the divisor is not a valid decimal number, or is zero. + */ + public function remainder(BigNumber|int|float|string $that) : BigDecimal + { + $that = BigDecimal::of($that); + + if ($that->isZero()) { + throw DivisionByZeroException::divisionByZero(); + } + + $p = $this->valueWithMinScale($that->scale); + $q = $that->valueWithMinScale($this->scale); + + $remainder = Calculator::get()->divR($p, $q); + + $scale = $this->scale > $that->scale ? $this->scale : $that->scale; + + return new BigDecimal($remainder, $scale); + } + + /** + * Returns the quotient and remainder of the division of this number by the given one. + * + * The quotient has a scale of `0`, and the remainder has a scale of `max($this->scale, $that->scale)`. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigDecimal. + * + * @return BigDecimal[] An array containing the quotient and the remainder. + * + * @throws MathException If the divisor is not a valid decimal number, or is zero. + */ + public function quotientAndRemainder(BigNumber|int|float|string $that) : array + { + $that = BigDecimal::of($that); + + if ($that->isZero()) { + throw DivisionByZeroException::divisionByZero(); + } + + $p = $this->valueWithMinScale($that->scale); + $q = $that->valueWithMinScale($this->scale); + + [$quotient, $remainder] = Calculator::get()->divQR($p, $q); + + $scale = $this->scale > $that->scale ? $this->scale : $that->scale; + + $quotient = new BigDecimal($quotient, 0); + $remainder = new BigDecimal($remainder, $scale); + + return [$quotient, $remainder]; + } + + /** + * Returns the square root of this number, rounded down to the given number of decimals. + * + * @throws \InvalidArgumentException If the scale is negative. + * @throws NegativeNumberException If this number is negative. + */ + public function sqrt(int $scale) : BigDecimal + { + if ($scale < 0) { + throw new \InvalidArgumentException('Scale cannot be negative.'); + } + + if ($this->value === '0') { + return new BigDecimal('0', $scale); + } + + if ($this->value[0] === '-') { + throw new NegativeNumberException('Cannot calculate the square root of a negative number.'); + } + + $value = $this->value; + $addDigits = 2 * $scale - $this->scale; + + if ($addDigits > 0) { + // add zeros + $value .= \str_repeat('0', $addDigits); + } elseif ($addDigits < 0) { + // trim digits + if (-$addDigits >= \strlen($this->value)) { + // requesting a scale too low, will always yield a zero result + return new BigDecimal('0', $scale); + } + + $value = \substr($value, 0, $addDigits); + } + + $value = Calculator::get()->sqrt($value); + + return new BigDecimal($value, $scale); + } + + /** + * Returns a copy of this BigDecimal with the decimal point moved $n places to the left. + */ + public function withPointMovedLeft(int $n) : BigDecimal + { + if ($n === 0) { + return $this; + } + + if ($n < 0) { + return $this->withPointMovedRight(-$n); + } + + return new BigDecimal($this->value, $this->scale + $n); + } + + /** + * Returns a copy of this BigDecimal with the decimal point moved $n places to the right. + */ + public function withPointMovedRight(int $n) : BigDecimal + { + if ($n === 0) { + return $this; + } + + if ($n < 0) { + return $this->withPointMovedLeft(-$n); + } + + $value = $this->value; + $scale = $this->scale - $n; + + if ($scale < 0) { + if ($value !== '0') { + $value .= \str_repeat('0', -$scale); + } + $scale = 0; + } + + return new BigDecimal($value, $scale); + } + + /** + * Returns a copy of this BigDecimal with any trailing zeros removed from the fractional part. + */ + public function stripTrailingZeros() : BigDecimal + { + if ($this->scale === 0) { + return $this; + } + + $trimmedValue = \rtrim($this->value, '0'); + + if ($trimmedValue === '') { + return BigDecimal::zero(); + } + + $trimmableZeros = \strlen($this->value) - \strlen($trimmedValue); + + if ($trimmableZeros === 0) { + return $this; + } + + if ($trimmableZeros > $this->scale) { + $trimmableZeros = $this->scale; + } + + $value = \substr($this->value, 0, -$trimmableZeros); + $scale = $this->scale - $trimmableZeros; + + return new BigDecimal($value, $scale); + } + + /** + * Returns the absolute value of this number. + */ + public function abs() : BigDecimal + { + return $this->isNegative() ? $this->negated() : $this; + } + + /** + * Returns the negated value of this number. + */ + public function negated() : BigDecimal + { + return new BigDecimal(Calculator::get()->neg($this->value), $this->scale); + } + + public function compareTo(BigNumber|int|float|string $that) : int + { + $that = BigNumber::of($that); + + if ($that instanceof BigInteger) { + $that = $that->toBigDecimal(); + } + + if ($that instanceof BigDecimal) { + [$a, $b] = $this->scaleValues($this, $that); + + return Calculator::get()->cmp($a, $b); + } + + return - $that->compareTo($this); + } + + public function getSign() : int + { + return ($this->value === '0') ? 0 : (($this->value[0] === '-') ? -1 : 1); + } + + public function getUnscaledValue() : BigInteger + { + return self::newBigInteger($this->value); + } + + public function getScale() : int + { + return $this->scale; + } + + /** + * Returns a string representing the integral part of this decimal number. + * + * Example: `-123.456` => `-123`. + */ + public function getIntegralPart() : string + { + if ($this->scale === 0) { + return $this->value; + } + + $value = $this->getUnscaledValueWithLeadingZeros(); + + return \substr($value, 0, -$this->scale); + } + + /** + * Returns a string representing the fractional part of this decimal number. + * + * If the scale is zero, an empty string is returned. + * + * Examples: `-123.456` => '456', `123` => ''. + */ + public function getFractionalPart() : string + { + if ($this->scale === 0) { + return ''; + } + + $value = $this->getUnscaledValueWithLeadingZeros(); + + return \substr($value, -$this->scale); + } + + /** + * Returns whether this decimal number has a non-zero fractional part. + */ + public function hasNonZeroFractionalPart() : bool + { + return $this->getFractionalPart() !== \str_repeat('0', $this->scale); + } + + public function toBigInteger() : BigInteger + { + $zeroScaleDecimal = $this->scale === 0 ? $this : $this->dividedBy(1, 0); + + return self::newBigInteger($zeroScaleDecimal->value); + } + + public function toBigDecimal() : BigDecimal + { + return $this; + } + + public function toBigRational() : BigRational + { + $numerator = self::newBigInteger($this->value); + $denominator = self::newBigInteger('1' . \str_repeat('0', $this->scale)); + + return self::newBigRational($numerator, $denominator, false); + } + + public function toScale(int $scale, int $roundingMode = RoundingMode::UNNECESSARY) : BigDecimal + { + if ($scale === $this->scale) { + return $this; + } + + return $this->dividedBy(BigDecimal::one(), $scale, $roundingMode); + } + + public function toInt() : int + { + return $this->toBigInteger()->toInt(); + } + + public function toFloat() : float + { + return (float) (string) $this; + } + + public function __toString() : string + { + if ($this->scale === 0) { + return $this->value; + } + + $value = $this->getUnscaledValueWithLeadingZeros(); + + return \substr($value, 0, -$this->scale) . '.' . \substr($value, -$this->scale); + } + + /** + * This method is required for serializing the object and SHOULD NOT be accessed directly. + * + * @internal + * + * @return array{value: string, scale: int} + */ + public function __serialize(): array + { + return ['value' => $this->value, 'scale' => $this->scale]; + } + + /** + * This method is only here to allow unserializing the object and cannot be accessed directly. + * + * @internal + * @psalm-suppress RedundantPropertyInitializationCheck + * + * @param array{value: string, scale: int} $data + * + * @throws \LogicException + */ + public function __unserialize(array $data): void + { + if (isset($this->value)) { + throw new \LogicException('__unserialize() is an internal function, it must not be called directly.'); + } + + $this->value = $data['value']; + $this->scale = $data['scale']; + } + + /** + * This method is required by interface Serializable and SHOULD NOT be accessed directly. + * + * @internal + */ + public function serialize() : string + { + return $this->value . ':' . $this->scale; + } + + /** + * This method is only here to implement interface Serializable and cannot be accessed directly. + * + * @internal + * @psalm-suppress RedundantPropertyInitializationCheck + * + * @throws \LogicException + */ + public function unserialize($value) : void + { + if (isset($this->value)) { + throw new \LogicException('unserialize() is an internal function, it must not be called directly.'); + } + + [$value, $scale] = \explode(':', $value); + + $this->value = $value; + $this->scale = (int) $scale; + } + + /** + * Puts the internal values of the given decimal numbers on the same scale. + * + * @return array{string, string} The scaled integer values of $x and $y. + */ + private function scaleValues(BigDecimal $x, BigDecimal $y) : array + { + $a = $x->value; + $b = $y->value; + + if ($b !== '0' && $x->scale > $y->scale) { + $b .= \str_repeat('0', $x->scale - $y->scale); + } elseif ($a !== '0' && $x->scale < $y->scale) { + $a .= \str_repeat('0', $y->scale - $x->scale); + } + + return [$a, $b]; + } + + private function valueWithMinScale(int $scale) : string + { + $value = $this->value; + + if ($this->value !== '0' && $scale > $this->scale) { + $value .= \str_repeat('0', $scale - $this->scale); + } + + return $value; + } + + /** + * Adds leading zeros if necessary to the unscaled value to represent the full decimal number. + */ + private function getUnscaledValueWithLeadingZeros() : string + { + $value = $this->value; + $targetLength = $this->scale + 1; + $negative = ($value[0] === '-'); + $length = \strlen($value); + + if ($negative) { + $length--; + } + + if ($length >= $targetLength) { + return $this->value; + } + + if ($negative) { + $value = \substr($value, 1); + } + + $value = \str_pad($value, $targetLength, '0', STR_PAD_LEFT); + + if ($negative) { + $value = '-' . $value; + } + + return $value; + } +} diff --git a/vendor/brick/math/src/BigInteger.php b/vendor/brick/math/src/BigInteger.php new file mode 100644 index 000000000..435679331 --- /dev/null +++ b/vendor/brick/math/src/BigInteger.php @@ -0,0 +1,1079 @@ +value = $value; + } + + /** + * Creates a BigInteger of the given value. + * + * @throws MathException If the value cannot be converted to a BigInteger. + * + * @psalm-pure + */ + public static function of(BigNumber|int|float|string $value) : BigInteger + { + return parent::of($value)->toBigInteger(); + } + + /** + * Creates a number from a string in a given base. + * + * The string can optionally be prefixed with the `+` or `-` sign. + * + * Bases greater than 36 are not supported by this method, as there is no clear consensus on which of the lowercase + * or uppercase characters should come first. Instead, this method accepts any base up to 36, and does not + * differentiate lowercase and uppercase characters, which are considered equal. + * + * For bases greater than 36, and/or custom alphabets, use the fromArbitraryBase() method. + * + * @param string $number The number to convert, in the given base. + * @param int $base The base of the number, between 2 and 36. + * + * @throws NumberFormatException If the number is empty, or contains invalid chars for the given base. + * @throws \InvalidArgumentException If the base is out of range. + * + * @psalm-pure + */ + public static function fromBase(string $number, int $base) : BigInteger + { + if ($number === '') { + throw new NumberFormatException('The number cannot be empty.'); + } + + if ($base < 2 || $base > 36) { + throw new \InvalidArgumentException(\sprintf('Base %d is not in range 2 to 36.', $base)); + } + + if ($number[0] === '-') { + $sign = '-'; + $number = \substr($number, 1); + } elseif ($number[0] === '+') { + $sign = ''; + $number = \substr($number, 1); + } else { + $sign = ''; + } + + if ($number === '') { + throw new NumberFormatException('The number cannot be empty.'); + } + + $number = \ltrim($number, '0'); + + if ($number === '') { + // The result will be the same in any base, avoid further calculation. + return BigInteger::zero(); + } + + if ($number === '1') { + // The result will be the same in any base, avoid further calculation. + return new BigInteger($sign . '1'); + } + + $pattern = '/[^' . \substr(Calculator::ALPHABET, 0, $base) . ']/'; + + if (\preg_match($pattern, \strtolower($number), $matches) === 1) { + throw new NumberFormatException(\sprintf('"%s" is not a valid character in base %d.', $matches[0], $base)); + } + + if ($base === 10) { + // The number is usable as is, avoid further calculation. + return new BigInteger($sign . $number); + } + + $result = Calculator::get()->fromBase($number, $base); + + return new BigInteger($sign . $result); + } + + /** + * Parses a string containing an integer in an arbitrary base, using a custom alphabet. + * + * Because this method accepts an alphabet with any character, including dash, it does not handle negative numbers. + * + * @param string $number The number to parse. + * @param string $alphabet The alphabet, for example '01' for base 2, or '01234567' for base 8. + * + * @throws NumberFormatException If the given number is empty or contains invalid chars for the given alphabet. + * @throws \InvalidArgumentException If the alphabet does not contain at least 2 chars. + * + * @psalm-pure + */ + public static function fromArbitraryBase(string $number, string $alphabet) : BigInteger + { + if ($number === '') { + throw new NumberFormatException('The number cannot be empty.'); + } + + $base = \strlen($alphabet); + + if ($base < 2) { + throw new \InvalidArgumentException('The alphabet must contain at least 2 chars.'); + } + + $pattern = '/[^' . \preg_quote($alphabet, '/') . ']/'; + + if (\preg_match($pattern, $number, $matches) === 1) { + throw NumberFormatException::charNotInAlphabet($matches[0]); + } + + $number = Calculator::get()->fromArbitraryBase($number, $alphabet, $base); + + return new BigInteger($number); + } + + /** + * Translates a string of bytes containing the binary representation of a BigInteger into a BigInteger. + * + * The input string is assumed to be in big-endian byte-order: the most significant byte is in the zeroth element. + * + * If `$signed` is true, the input is assumed to be in two's-complement representation, and the leading bit is + * interpreted as a sign bit. If `$signed` is false, the input is interpreted as an unsigned number, and the + * resulting BigInteger will always be positive or zero. + * + * This method can be used to retrieve a number exported by `toBytes()`, as long as the `$signed` flags match. + * + * @param string $value The byte string. + * @param bool $signed Whether to interpret as a signed number in two's-complement representation with a leading + * sign bit. + * + * @throws NumberFormatException If the string is empty. + */ + public static function fromBytes(string $value, bool $signed = true) : BigInteger + { + if ($value === '') { + throw new NumberFormatException('The byte string must not be empty.'); + } + + $twosComplement = false; + + if ($signed) { + $x = \ord($value[0]); + + if (($twosComplement = ($x >= 0x80))) { + $value = ~$value; + } + } + + $number = self::fromBase(\bin2hex($value), 16); + + if ($twosComplement) { + return $number->plus(1)->negated(); + } + + return $number; + } + + /** + * Generates a pseudo-random number in the range 0 to 2^numBits - 1. + * + * Using the default random bytes generator, this method is suitable for cryptographic use. + * + * @psalm-param (callable(int): string)|null $randomBytesGenerator + * + * @param int $numBits The number of bits. + * @param callable|null $randomBytesGenerator A function that accepts a number of bytes as an integer, and returns a + * string of random bytes of the given length. Defaults to the + * `random_bytes()` function. + * + * @throws \InvalidArgumentException If $numBits is negative. + */ + public static function randomBits(int $numBits, ?callable $randomBytesGenerator = null) : BigInteger + { + if ($numBits < 0) { + throw new \InvalidArgumentException('The number of bits cannot be negative.'); + } + + if ($numBits === 0) { + return BigInteger::zero(); + } + + if ($randomBytesGenerator === null) { + $randomBytesGenerator = 'random_bytes'; + } + + $byteLength = \intdiv($numBits - 1, 8) + 1; + + $extraBits = ($byteLength * 8 - $numBits); + $bitmask = \chr(0xFF >> $extraBits); + + $randomBytes = $randomBytesGenerator($byteLength); + $randomBytes[0] = $randomBytes[0] & $bitmask; + + return self::fromBytes($randomBytes, false); + } + + /** + * Generates a pseudo-random number between `$min` and `$max`. + * + * Using the default random bytes generator, this method is suitable for cryptographic use. + * + * @psalm-param (callable(int): string)|null $randomBytesGenerator + * + * @param BigNumber|int|float|string $min The lower bound. Must be convertible to a BigInteger. + * @param BigNumber|int|float|string $max The upper bound. Must be convertible to a BigInteger. + * @param callable|null $randomBytesGenerator A function that accepts a number of bytes as an integer, + * and returns a string of random bytes of the given length. + * Defaults to the `random_bytes()` function. + * + * @throws MathException If one of the parameters cannot be converted to a BigInteger, + * or `$min` is greater than `$max`. + */ + public static function randomRange( + BigNumber|int|float|string $min, + BigNumber|int|float|string $max, + ?callable $randomBytesGenerator = null + ) : BigInteger { + $min = BigInteger::of($min); + $max = BigInteger::of($max); + + if ($min->isGreaterThan($max)) { + throw new MathException('$min cannot be greater than $max.'); + } + + if ($min->isEqualTo($max)) { + return $min; + } + + $diff = $max->minus($min); + $bitLength = $diff->getBitLength(); + + // try until the number is in range (50% to 100% chance of success) + do { + $randomNumber = self::randomBits($bitLength, $randomBytesGenerator); + } while ($randomNumber->isGreaterThan($diff)); + + return $randomNumber->plus($min); + } + + /** + * Returns a BigInteger representing zero. + * + * @psalm-pure + */ + public static function zero() : BigInteger + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigInteger|null $zero + */ + static $zero; + + if ($zero === null) { + $zero = new BigInteger('0'); + } + + return $zero; + } + + /** + * Returns a BigInteger representing one. + * + * @psalm-pure + */ + public static function one() : BigInteger + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigInteger|null $one + */ + static $one; + + if ($one === null) { + $one = new BigInteger('1'); + } + + return $one; + } + + /** + * Returns a BigInteger representing ten. + * + * @psalm-pure + */ + public static function ten() : BigInteger + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigInteger|null $ten + */ + static $ten; + + if ($ten === null) { + $ten = new BigInteger('10'); + } + + return $ten; + } + + public static function gcdMultiple(BigInteger $a, BigInteger ...$n): BigInteger + { + $result = $a; + + foreach ($n as $next) { + $result = $result->gcd($next); + + if ($result->isEqualTo(1)) { + return $result; + } + } + + return $result; + } + + /** + * Returns the sum of this number and the given one. + * + * @param BigNumber|int|float|string $that The number to add. Must be convertible to a BigInteger. + * + * @throws MathException If the number is not valid, or is not convertible to a BigInteger. + */ + public function plus(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '0') { + return $this; + } + + if ($this->value === '0') { + return $that; + } + + $value = Calculator::get()->add($this->value, $that->value); + + return new BigInteger($value); + } + + /** + * Returns the difference of this number and the given one. + * + * @param BigNumber|int|float|string $that The number to subtract. Must be convertible to a BigInteger. + * + * @throws MathException If the number is not valid, or is not convertible to a BigInteger. + */ + public function minus(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '0') { + return $this; + } + + $value = Calculator::get()->sub($this->value, $that->value); + + return new BigInteger($value); + } + + /** + * Returns the product of this number and the given one. + * + * @param BigNumber|int|float|string $that The multiplier. Must be convertible to a BigInteger. + * + * @throws MathException If the multiplier is not a valid number, or is not convertible to a BigInteger. + */ + public function multipliedBy(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '1') { + return $this; + } + + if ($this->value === '1') { + return $that; + } + + $value = Calculator::get()->mul($this->value, $that->value); + + return new BigInteger($value); + } + + /** + * Returns the result of the division of this number by the given one. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigInteger. + * @param int $roundingMode An optional rounding mode. + * + * @throws MathException If the divisor is not a valid number, is not convertible to a BigInteger, is zero, + * or RoundingMode::UNNECESSARY is used and the remainder is not zero. + */ + public function dividedBy(BigNumber|int|float|string $that, int $roundingMode = RoundingMode::UNNECESSARY) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '1') { + return $this; + } + + if ($that->value === '0') { + throw DivisionByZeroException::divisionByZero(); + } + + $result = Calculator::get()->divRound($this->value, $that->value, $roundingMode); + + return new BigInteger($result); + } + + /** + * Returns this number exponentiated to the given value. + * + * @throws \InvalidArgumentException If the exponent is not in the range 0 to 1,000,000. + */ + public function power(int $exponent) : BigInteger + { + if ($exponent === 0) { + return BigInteger::one(); + } + + if ($exponent === 1) { + return $this; + } + + if ($exponent < 0 || $exponent > Calculator::MAX_POWER) { + throw new \InvalidArgumentException(\sprintf( + 'The exponent %d is not in the range 0 to %d.', + $exponent, + Calculator::MAX_POWER + )); + } + + return new BigInteger(Calculator::get()->pow($this->value, $exponent)); + } + + /** + * Returns the quotient of the division of this number by the given one. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigInteger. + * + * @throws DivisionByZeroException If the divisor is zero. + */ + public function quotient(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '1') { + return $this; + } + + if ($that->value === '0') { + throw DivisionByZeroException::divisionByZero(); + } + + $quotient = Calculator::get()->divQ($this->value, $that->value); + + return new BigInteger($quotient); + } + + /** + * Returns the remainder of the division of this number by the given one. + * + * The remainder, when non-zero, has the same sign as the dividend. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigInteger. + * + * @throws DivisionByZeroException If the divisor is zero. + */ + public function remainder(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '1') { + return BigInteger::zero(); + } + + if ($that->value === '0') { + throw DivisionByZeroException::divisionByZero(); + } + + $remainder = Calculator::get()->divR($this->value, $that->value); + + return new BigInteger($remainder); + } + + /** + * Returns the quotient and remainder of the division of this number by the given one. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigInteger. + * + * @return BigInteger[] An array containing the quotient and the remainder. + * + * @throws DivisionByZeroException If the divisor is zero. + */ + public function quotientAndRemainder(BigNumber|int|float|string $that) : array + { + $that = BigInteger::of($that); + + if ($that->value === '0') { + throw DivisionByZeroException::divisionByZero(); + } + + [$quotient, $remainder] = Calculator::get()->divQR($this->value, $that->value); + + return [ + new BigInteger($quotient), + new BigInteger($remainder) + ]; + } + + /** + * Returns the modulo of this number and the given one. + * + * The modulo operation yields the same result as the remainder operation when both operands are of the same sign, + * and may differ when signs are different. + * + * The result of the modulo operation, when non-zero, has the same sign as the divisor. + * + * @param BigNumber|int|float|string $that The divisor. Must be convertible to a BigInteger. + * + * @throws DivisionByZeroException If the divisor is zero. + */ + public function mod(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '0') { + throw DivisionByZeroException::modulusMustNotBeZero(); + } + + $value = Calculator::get()->mod($this->value, $that->value); + + return new BigInteger($value); + } + + /** + * Returns the modular multiplicative inverse of this BigInteger modulo $m. + * + * @throws DivisionByZeroException If $m is zero. + * @throws NegativeNumberException If $m is negative. + * @throws MathException If this BigInteger has no multiplicative inverse mod m (that is, this BigInteger + * is not relatively prime to m). + */ + public function modInverse(BigInteger $m) : BigInteger + { + if ($m->value === '0') { + throw DivisionByZeroException::modulusMustNotBeZero(); + } + + if ($m->isNegative()) { + throw new NegativeNumberException('Modulus must not be negative.'); + } + + if ($m->value === '1') { + return BigInteger::zero(); + } + + $value = Calculator::get()->modInverse($this->value, $m->value); + + if ($value === null) { + throw new MathException('Unable to compute the modInverse for the given modulus.'); + } + + return new BigInteger($value); + } + + /** + * Returns this number raised into power with modulo. + * + * This operation only works on positive numbers. + * + * @param BigNumber|int|float|string $exp The exponent. Must be positive or zero. + * @param BigNumber|int|float|string $mod The modulus. Must be strictly positive. + * + * @throws NegativeNumberException If any of the operands is negative. + * @throws DivisionByZeroException If the modulus is zero. + */ + public function modPow(BigNumber|int|float|string $exp, BigNumber|int|float|string $mod) : BigInteger + { + $exp = BigInteger::of($exp); + $mod = BigInteger::of($mod); + + if ($this->isNegative() || $exp->isNegative() || $mod->isNegative()) { + throw new NegativeNumberException('The operands cannot be negative.'); + } + + if ($mod->isZero()) { + throw DivisionByZeroException::modulusMustNotBeZero(); + } + + $result = Calculator::get()->modPow($this->value, $exp->value, $mod->value); + + return new BigInteger($result); + } + + /** + * Returns the greatest common divisor of this number and the given one. + * + * The GCD is always positive, unless both operands are zero, in which case it is zero. + * + * @param BigNumber|int|float|string $that The operand. Must be convertible to an integer number. + */ + public function gcd(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + if ($that->value === '0' && $this->value[0] !== '-') { + return $this; + } + + if ($this->value === '0' && $that->value[0] !== '-') { + return $that; + } + + $value = Calculator::get()->gcd($this->value, $that->value); + + return new BigInteger($value); + } + + /** + * Returns the integer square root number of this number, rounded down. + * + * The result is the largest x such that x² ≤ n. + * + * @throws NegativeNumberException If this number is negative. + */ + public function sqrt() : BigInteger + { + if ($this->value[0] === '-') { + throw new NegativeNumberException('Cannot calculate the square root of a negative number.'); + } + + $value = Calculator::get()->sqrt($this->value); + + return new BigInteger($value); + } + + /** + * Returns the absolute value of this number. + */ + public function abs() : BigInteger + { + return $this->isNegative() ? $this->negated() : $this; + } + + /** + * Returns the inverse of this number. + */ + public function negated() : BigInteger + { + return new BigInteger(Calculator::get()->neg($this->value)); + } + + /** + * Returns the integer bitwise-and combined with another integer. + * + * This method returns a negative BigInteger if and only if both operands are negative. + * + * @param BigNumber|int|float|string $that The operand. Must be convertible to an integer number. + */ + public function and(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + return new BigInteger(Calculator::get()->and($this->value, $that->value)); + } + + /** + * Returns the integer bitwise-or combined with another integer. + * + * This method returns a negative BigInteger if and only if either of the operands is negative. + * + * @param BigNumber|int|float|string $that The operand. Must be convertible to an integer number. + */ + public function or(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + return new BigInteger(Calculator::get()->or($this->value, $that->value)); + } + + /** + * Returns the integer bitwise-xor combined with another integer. + * + * This method returns a negative BigInteger if and only if exactly one of the operands is negative. + * + * @param BigNumber|int|float|string $that The operand. Must be convertible to an integer number. + */ + public function xor(BigNumber|int|float|string $that) : BigInteger + { + $that = BigInteger::of($that); + + return new BigInteger(Calculator::get()->xor($this->value, $that->value)); + } + + /** + * Returns the bitwise-not of this BigInteger. + */ + public function not() : BigInteger + { + return $this->negated()->minus(1); + } + + /** + * Returns the integer left shifted by a given number of bits. + */ + public function shiftedLeft(int $distance) : BigInteger + { + if ($distance === 0) { + return $this; + } + + if ($distance < 0) { + return $this->shiftedRight(- $distance); + } + + return $this->multipliedBy(BigInteger::of(2)->power($distance)); + } + + /** + * Returns the integer right shifted by a given number of bits. + */ + public function shiftedRight(int $distance) : BigInteger + { + if ($distance === 0) { + return $this; + } + + if ($distance < 0) { + return $this->shiftedLeft(- $distance); + } + + $operand = BigInteger::of(2)->power($distance); + + if ($this->isPositiveOrZero()) { + return $this->quotient($operand); + } + + return $this->dividedBy($operand, RoundingMode::UP); + } + + /** + * Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit. + * + * For positive BigIntegers, this is equivalent to the number of bits in the ordinary binary representation. + * Computes (ceil(log2(this < 0 ? -this : this+1))). + */ + public function getBitLength() : int + { + if ($this->value === '0') { + return 0; + } + + if ($this->isNegative()) { + return $this->abs()->minus(1)->getBitLength(); + } + + return \strlen($this->toBase(2)); + } + + /** + * Returns the index of the rightmost (lowest-order) one bit in this BigInteger. + * + * Returns -1 if this BigInteger contains no one bits. + */ + public function getLowestSetBit() : int + { + $n = $this; + $bitLength = $this->getBitLength(); + + for ($i = 0; $i <= $bitLength; $i++) { + if ($n->isOdd()) { + return $i; + } + + $n = $n->shiftedRight(1); + } + + return -1; + } + + /** + * Returns whether this number is even. + */ + public function isEven() : bool + { + return \in_array($this->value[-1], ['0', '2', '4', '6', '8'], true); + } + + /** + * Returns whether this number is odd. + */ + public function isOdd() : bool + { + return \in_array($this->value[-1], ['1', '3', '5', '7', '9'], true); + } + + /** + * Returns true if and only if the designated bit is set. + * + * Computes ((this & (1<shiftedRight($n)->isOdd(); + } + + public function compareTo(BigNumber|int|float|string $that) : int + { + $that = BigNumber::of($that); + + if ($that instanceof BigInteger) { + return Calculator::get()->cmp($this->value, $that->value); + } + + return - $that->compareTo($this); + } + + public function getSign() : int + { + return ($this->value === '0') ? 0 : (($this->value[0] === '-') ? -1 : 1); + } + + public function toBigInteger() : BigInteger + { + return $this; + } + + public function toBigDecimal() : BigDecimal + { + return self::newBigDecimal($this->value); + } + + public function toBigRational() : BigRational + { + return self::newBigRational($this, BigInteger::one(), false); + } + + public function toScale(int $scale, int $roundingMode = RoundingMode::UNNECESSARY) : BigDecimal + { + return $this->toBigDecimal()->toScale($scale, $roundingMode); + } + + public function toInt() : int + { + $intValue = (int) $this->value; + + if ($this->value !== (string) $intValue) { + throw IntegerOverflowException::toIntOverflow($this); + } + + return $intValue; + } + + public function toFloat() : float + { + return (float) $this->value; + } + + /** + * Returns a string representation of this number in the given base. + * + * The output will always be lowercase for bases greater than 10. + * + * @throws \InvalidArgumentException If the base is out of range. + */ + public function toBase(int $base) : string + { + if ($base === 10) { + return $this->value; + } + + if ($base < 2 || $base > 36) { + throw new \InvalidArgumentException(\sprintf('Base %d is out of range [2, 36]', $base)); + } + + return Calculator::get()->toBase($this->value, $base); + } + + /** + * Returns a string representation of this number in an arbitrary base with a custom alphabet. + * + * Because this method accepts an alphabet with any character, including dash, it does not handle negative numbers; + * a NegativeNumberException will be thrown when attempting to call this method on a negative number. + * + * @param string $alphabet The alphabet, for example '01' for base 2, or '01234567' for base 8. + * + * @throws NegativeNumberException If this number is negative. + * @throws \InvalidArgumentException If the given alphabet does not contain at least 2 chars. + */ + public function toArbitraryBase(string $alphabet) : string + { + $base = \strlen($alphabet); + + if ($base < 2) { + throw new \InvalidArgumentException('The alphabet must contain at least 2 chars.'); + } + + if ($this->value[0] === '-') { + throw new NegativeNumberException(__FUNCTION__ . '() does not support negative numbers.'); + } + + return Calculator::get()->toArbitraryBase($this->value, $alphabet, $base); + } + + /** + * Returns a string of bytes containing the binary representation of this BigInteger. + * + * The string is in big-endian byte-order: the most significant byte is in the zeroth element. + * + * If `$signed` is true, the output will be in two's-complement representation, and a sign bit will be prepended to + * the output. If `$signed` is false, no sign bit will be prepended, and this method will throw an exception if the + * number is negative. + * + * The string will contain the minimum number of bytes required to represent this BigInteger, including a sign bit + * if `$signed` is true. + * + * This representation is compatible with the `fromBytes()` factory method, as long as the `$signed` flags match. + * + * @param bool $signed Whether to output a signed number in two's-complement representation with a leading sign bit. + * + * @throws NegativeNumberException If $signed is false, and the number is negative. + */ + public function toBytes(bool $signed = true) : string + { + if (! $signed && $this->isNegative()) { + throw new NegativeNumberException('Cannot convert a negative number to a byte string when $signed is false.'); + } + + $hex = $this->abs()->toBase(16); + + if (\strlen($hex) % 2 !== 0) { + $hex = '0' . $hex; + } + + $baseHexLength = \strlen($hex); + + if ($signed) { + if ($this->isNegative()) { + $bin = \hex2bin($hex); + assert($bin !== false); + + $hex = \bin2hex(~$bin); + $hex = self::fromBase($hex, 16)->plus(1)->toBase(16); + + $hexLength = \strlen($hex); + + if ($hexLength < $baseHexLength) { + $hex = \str_repeat('0', $baseHexLength - $hexLength) . $hex; + } + + if ($hex[0] < '8') { + $hex = 'FF' . $hex; + } + } else { + if ($hex[0] >= '8') { + $hex = '00' . $hex; + } + } + } + + return \hex2bin($hex); + } + + public function __toString() : string + { + return $this->value; + } + + /** + * This method is required for serializing the object and SHOULD NOT be accessed directly. + * + * @internal + * + * @return array{value: string} + */ + public function __serialize(): array + { + return ['value' => $this->value]; + } + + /** + * This method is only here to allow unserializing the object and cannot be accessed directly. + * + * @internal + * @psalm-suppress RedundantPropertyInitializationCheck + * + * @param array{value: string} $data + * + * @throws \LogicException + */ + public function __unserialize(array $data): void + { + if (isset($this->value)) { + throw new \LogicException('__unserialize() is an internal function, it must not be called directly.'); + } + + $this->value = $data['value']; + } + + /** + * This method is required by interface Serializable and SHOULD NOT be accessed directly. + * + * @internal + */ + public function serialize() : string + { + return $this->value; + } + + /** + * This method is only here to implement interface Serializable and cannot be accessed directly. + * + * @internal + * @psalm-suppress RedundantPropertyInitializationCheck + * + * @throws \LogicException + */ + public function unserialize($value) : void + { + if (isset($this->value)) { + throw new \LogicException('unserialize() is an internal function, it must not be called directly.'); + } + + $this->value = $value; + } +} diff --git a/vendor/brick/math/src/BigNumber.php b/vendor/brick/math/src/BigNumber.php new file mode 100644 index 000000000..80146d207 --- /dev/null +++ b/vendor/brick/math/src/BigNumber.php @@ -0,0 +1,512 @@ +[\-\+])?' . + '(?:' . + '(?:' . + '(?[0-9]+)?' . + '(?\.)?' . + '(?[0-9]+)?' . + '(?:[eE](?[\-\+]?[0-9]+))?' . + ')|(?:' . + '(?[0-9]+)' . + '\/?' . + '(?[0-9]+)' . + ')' . + ')' . + '$/'; + + /** + * Creates a BigNumber of the given value. + * + * The concrete return type is dependent on the given value, with the following rules: + * + * - BigNumber instances are returned as is + * - integer numbers are returned as BigInteger + * - floating point numbers are converted to a string then parsed as such + * - strings containing a `/` character are returned as BigRational + * - strings containing a `.` character or using an exponential notation are returned as BigDecimal + * - strings containing only digits with an optional leading `+` or `-` sign are returned as BigInteger + * + * @throws NumberFormatException If the format of the number is not valid. + * @throws DivisionByZeroException If the value represents a rational number with a denominator of zero. + * + * @psalm-pure + */ + public static function of(BigNumber|int|float|string $value) : BigNumber + { + if ($value instanceof BigNumber) { + return $value; + } + + if (\is_int($value)) { + return new BigInteger((string) $value); + } + + $value = \is_float($value) ? self::floatToString($value) : $value; + + $throw = static function() use ($value) : void { + throw new NumberFormatException(\sprintf( + 'The given value "%s" does not represent a valid number.', + $value + )); + }; + + if (\preg_match(self::PARSE_REGEXP, $value, $matches) !== 1) { + $throw(); + } + + $getMatch = static fn(string $value): ?string => (($matches[$value] ?? '') !== '') ? $matches[$value] : null; + + $sign = $getMatch('sign'); + $numerator = $getMatch('numerator'); + $denominator = $getMatch('denominator'); + + if ($numerator !== null) { + assert($denominator !== null); + + if ($sign !== null) { + $numerator = $sign . $numerator; + } + + $numerator = self::cleanUp($numerator); + $denominator = self::cleanUp($denominator); + + if ($denominator === '0') { + throw DivisionByZeroException::denominatorMustNotBeZero(); + } + + return new BigRational( + new BigInteger($numerator), + new BigInteger($denominator), + false + ); + } + + $point = $getMatch('point'); + $integral = $getMatch('integral'); + $fractional = $getMatch('fractional'); + $exponent = $getMatch('exponent'); + + if ($integral === null && $fractional === null) { + $throw(); + } + + if ($integral === null) { + $integral = '0'; + } + + if ($point !== null || $exponent !== null) { + $fractional = ($fractional ?? ''); + $exponent = ($exponent !== null) ? (int) $exponent : 0; + + if ($exponent === PHP_INT_MIN || $exponent === PHP_INT_MAX) { + throw new NumberFormatException('Exponent too large.'); + } + + $unscaledValue = self::cleanUp(($sign ?? ''). $integral . $fractional); + + $scale = \strlen($fractional) - $exponent; + + if ($scale < 0) { + if ($unscaledValue !== '0') { + $unscaledValue .= \str_repeat('0', - $scale); + } + $scale = 0; + } + + return new BigDecimal($unscaledValue, $scale); + } + + $integral = self::cleanUp(($sign ?? '') . $integral); + + return new BigInteger($integral); + } + + /** + * Safely converts float to string, avoiding locale-dependent issues. + * + * @see https://github.com/brick/math/pull/20 + * + * @psalm-pure + * @psalm-suppress ImpureFunctionCall + */ + private static function floatToString(float $float) : string + { + $currentLocale = \setlocale(LC_NUMERIC, '0'); + \setlocale(LC_NUMERIC, 'C'); + + $result = (string) $float; + + \setlocale(LC_NUMERIC, $currentLocale); + + return $result; + } + + /** + * Proxy method to access BigInteger's protected constructor from sibling classes. + * + * @internal + * @psalm-pure + */ + protected function newBigInteger(string $value) : BigInteger + { + return new BigInteger($value); + } + + /** + * Proxy method to access BigDecimal's protected constructor from sibling classes. + * + * @internal + * @psalm-pure + */ + protected function newBigDecimal(string $value, int $scale = 0) : BigDecimal + { + return new BigDecimal($value, $scale); + } + + /** + * Proxy method to access BigRational's protected constructor from sibling classes. + * + * @internal + * @psalm-pure + */ + protected function newBigRational(BigInteger $numerator, BigInteger $denominator, bool $checkDenominator) : BigRational + { + return new BigRational($numerator, $denominator, $checkDenominator); + } + + /** + * Returns the minimum of the given values. + * + * @param BigNumber|int|float|string ...$values The numbers to compare. All the numbers need to be convertible + * to an instance of the class this method is called on. + * + * @throws \InvalidArgumentException If no values are given. + * @throws MathException If an argument is not valid. + * + * @psalm-suppress LessSpecificReturnStatement + * @psalm-suppress MoreSpecificReturnType + * @psalm-pure + */ + public static function min(BigNumber|int|float|string ...$values) : static + { + $min = null; + + foreach ($values as $value) { + $value = static::of($value); + + if ($min === null || $value->isLessThan($min)) { + $min = $value; + } + } + + if ($min === null) { + throw new \InvalidArgumentException(__METHOD__ . '() expects at least one value.'); + } + + return $min; + } + + /** + * Returns the maximum of the given values. + * + * @param BigNumber|int|float|string ...$values The numbers to compare. All the numbers need to be convertible + * to an instance of the class this method is called on. + * + * @throws \InvalidArgumentException If no values are given. + * @throws MathException If an argument is not valid. + * + * @psalm-suppress LessSpecificReturnStatement + * @psalm-suppress MoreSpecificReturnType + * @psalm-pure + */ + public static function max(BigNumber|int|float|string ...$values) : static + { + $max = null; + + foreach ($values as $value) { + $value = static::of($value); + + if ($max === null || $value->isGreaterThan($max)) { + $max = $value; + } + } + + if ($max === null) { + throw new \InvalidArgumentException(__METHOD__ . '() expects at least one value.'); + } + + return $max; + } + + /** + * Returns the sum of the given values. + * + * @param BigNumber|int|float|string ...$values The numbers to add. All the numbers need to be convertible + * to an instance of the class this method is called on. + * + * @throws \InvalidArgumentException If no values are given. + * @throws MathException If an argument is not valid. + * + * @psalm-pure + */ + public static function sum(BigNumber|int|float|string ...$values) : static + { + /** @var static|null $sum */ + $sum = null; + + foreach ($values as $value) { + $value = static::of($value); + + $sum = $sum === null ? $value : self::add($sum, $value); + } + + if ($sum === null) { + throw new \InvalidArgumentException(__METHOD__ . '() expects at least one value.'); + } + + return $sum; + } + + /** + * Adds two BigNumber instances in the correct order to avoid a RoundingNecessaryException. + * + * @todo This could be better resolved by creating an abstract protected method in BigNumber, and leaving to + * concrete classes the responsibility to perform the addition themselves or delegate it to the given number, + * depending on their ability to perform the operation. This will also require a version bump because we're + * potentially breaking custom BigNumber implementations (if any...) + * + * @psalm-pure + */ + private static function add(BigNumber $a, BigNumber $b) : BigNumber + { + if ($a instanceof BigRational) { + return $a->plus($b); + } + + if ($b instanceof BigRational) { + return $b->plus($a); + } + + if ($a instanceof BigDecimal) { + return $a->plus($b); + } + + if ($b instanceof BigDecimal) { + return $b->plus($a); + } + + /** @var BigInteger $a */ + + return $a->plus($b); + } + + /** + * Removes optional leading zeros and + sign from the given number. + * + * @param string $number The number, validated as a non-empty string of digits with optional leading sign. + * + * @psalm-pure + */ + private static function cleanUp(string $number) : string + { + $firstChar = $number[0]; + + if ($firstChar === '+' || $firstChar === '-') { + $number = \substr($number, 1); + } + + $number = \ltrim($number, '0'); + + if ($number === '') { + return '0'; + } + + if ($firstChar === '-') { + return '-' . $number; + } + + return $number; + } + + /** + * Checks if this number is equal to the given one. + */ + public function isEqualTo(BigNumber|int|float|string $that) : bool + { + return $this->compareTo($that) === 0; + } + + /** + * Checks if this number is strictly lower than the given one. + */ + public function isLessThan(BigNumber|int|float|string $that) : bool + { + return $this->compareTo($that) < 0; + } + + /** + * Checks if this number is lower than or equal to the given one. + */ + public function isLessThanOrEqualTo(BigNumber|int|float|string $that) : bool + { + return $this->compareTo($that) <= 0; + } + + /** + * Checks if this number is strictly greater than the given one. + */ + public function isGreaterThan(BigNumber|int|float|string $that) : bool + { + return $this->compareTo($that) > 0; + } + + /** + * Checks if this number is greater than or equal to the given one. + */ + public function isGreaterThanOrEqualTo(BigNumber|int|float|string $that) : bool + { + return $this->compareTo($that) >= 0; + } + + /** + * Checks if this number equals zero. + */ + public function isZero() : bool + { + return $this->getSign() === 0; + } + + /** + * Checks if this number is strictly negative. + */ + public function isNegative() : bool + { + return $this->getSign() < 0; + } + + /** + * Checks if this number is negative or zero. + */ + public function isNegativeOrZero() : bool + { + return $this->getSign() <= 0; + } + + /** + * Checks if this number is strictly positive. + */ + public function isPositive() : bool + { + return $this->getSign() > 0; + } + + /** + * Checks if this number is positive or zero. + */ + public function isPositiveOrZero() : bool + { + return $this->getSign() >= 0; + } + + /** + * Returns the sign of this number. + * + * @return int -1 if the number is negative, 0 if zero, 1 if positive. + */ + abstract public function getSign() : int; + + /** + * Compares this number to the given one. + * + * @return int [-1,0,1] If `$this` is lower than, equal to, or greater than `$that`. + * + * @throws MathException If the number is not valid. + */ + abstract public function compareTo(BigNumber|int|float|string $that) : int; + + /** + * Converts this number to a BigInteger. + * + * @throws RoundingNecessaryException If this number cannot be converted to a BigInteger without rounding. + */ + abstract public function toBigInteger() : BigInteger; + + /** + * Converts this number to a BigDecimal. + * + * @throws RoundingNecessaryException If this number cannot be converted to a BigDecimal without rounding. + */ + abstract public function toBigDecimal() : BigDecimal; + + /** + * Converts this number to a BigRational. + */ + abstract public function toBigRational() : BigRational; + + /** + * Converts this number to a BigDecimal with the given scale, using rounding if necessary. + * + * @param int $scale The scale of the resulting `BigDecimal`. + * @param int $roundingMode A `RoundingMode` constant. + * + * @throws RoundingNecessaryException If this number cannot be converted to the given scale without rounding. + * This only applies when RoundingMode::UNNECESSARY is used. + */ + abstract public function toScale(int $scale, int $roundingMode = RoundingMode::UNNECESSARY) : BigDecimal; + + /** + * Returns the exact value of this number as a native integer. + * + * If this number cannot be converted to a native integer without losing precision, an exception is thrown. + * Note that the acceptable range for an integer depends on the platform and differs for 32-bit and 64-bit. + * + * @throws MathException If this number cannot be exactly converted to a native integer. + */ + abstract public function toInt() : int; + + /** + * Returns an approximation of this number as a floating-point value. + * + * Note that this method can discard information as the precision of a floating-point value + * is inherently limited. + * + * If the number is greater than the largest representable floating point number, positive infinity is returned. + * If the number is less than the smallest representable floating point number, negative infinity is returned. + */ + abstract public function toFloat() : float; + + /** + * Returns a string representation of this number. + * + * The output of this method can be parsed by the `of()` factory method; + * this will yield an object equal to this one, without any information loss. + */ + abstract public function __toString() : string; + + public function jsonSerialize() : string + { + return $this->__toString(); + } +} diff --git a/vendor/brick/math/src/BigRational.php b/vendor/brick/math/src/BigRational.php new file mode 100644 index 000000000..31f2904fa --- /dev/null +++ b/vendor/brick/math/src/BigRational.php @@ -0,0 +1,445 @@ +isZero()) { + throw DivisionByZeroException::denominatorMustNotBeZero(); + } + + if ($denominator->isNegative()) { + $numerator = $numerator->negated(); + $denominator = $denominator->negated(); + } + } + + $this->numerator = $numerator; + $this->denominator = $denominator; + } + + /** + * Creates a BigRational of the given value. + * + * @throws MathException If the value cannot be converted to a BigRational. + * + * @psalm-pure + */ + public static function of(BigNumber|int|float|string $value) : BigRational + { + return parent::of($value)->toBigRational(); + } + + /** + * Creates a BigRational out of a numerator and a denominator. + * + * If the denominator is negative, the signs of both the numerator and the denominator + * will be inverted to ensure that the denominator is always positive. + * + * @param BigNumber|int|float|string $numerator The numerator. Must be convertible to a BigInteger. + * @param BigNumber|int|float|string $denominator The denominator. Must be convertible to a BigInteger. + * + * @throws NumberFormatException If an argument does not represent a valid number. + * @throws RoundingNecessaryException If an argument represents a non-integer number. + * @throws DivisionByZeroException If the denominator is zero. + * + * @psalm-pure + */ + public static function nd( + BigNumber|int|float|string $numerator, + BigNumber|int|float|string $denominator, + ) : BigRational { + $numerator = BigInteger::of($numerator); + $denominator = BigInteger::of($denominator); + + return new BigRational($numerator, $denominator, true); + } + + /** + * Returns a BigRational representing zero. + * + * @psalm-pure + */ + public static function zero() : BigRational + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigRational|null $zero + */ + static $zero; + + if ($zero === null) { + $zero = new BigRational(BigInteger::zero(), BigInteger::one(), false); + } + + return $zero; + } + + /** + * Returns a BigRational representing one. + * + * @psalm-pure + */ + public static function one() : BigRational + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigRational|null $one + */ + static $one; + + if ($one === null) { + $one = new BigRational(BigInteger::one(), BigInteger::one(), false); + } + + return $one; + } + + /** + * Returns a BigRational representing ten. + * + * @psalm-pure + */ + public static function ten() : BigRational + { + /** + * @psalm-suppress ImpureStaticVariable + * @var BigRational|null $ten + */ + static $ten; + + if ($ten === null) { + $ten = new BigRational(BigInteger::ten(), BigInteger::one(), false); + } + + return $ten; + } + + public function getNumerator() : BigInteger + { + return $this->numerator; + } + + public function getDenominator() : BigInteger + { + return $this->denominator; + } + + /** + * Returns the quotient of the division of the numerator by the denominator. + */ + public function quotient() : BigInteger + { + return $this->numerator->quotient($this->denominator); + } + + /** + * Returns the remainder of the division of the numerator by the denominator. + */ + public function remainder() : BigInteger + { + return $this->numerator->remainder($this->denominator); + } + + /** + * Returns the quotient and remainder of the division of the numerator by the denominator. + * + * @return BigInteger[] + */ + public function quotientAndRemainder() : array + { + return $this->numerator->quotientAndRemainder($this->denominator); + } + + /** + * Returns the sum of this number and the given one. + * + * @param BigNumber|int|float|string $that The number to add. + * + * @throws MathException If the number is not valid. + */ + public function plus(BigNumber|int|float|string $that) : BigRational + { + $that = BigRational::of($that); + + $numerator = $this->numerator->multipliedBy($that->denominator); + $numerator = $numerator->plus($that->numerator->multipliedBy($this->denominator)); + $denominator = $this->denominator->multipliedBy($that->denominator); + + return new BigRational($numerator, $denominator, false); + } + + /** + * Returns the difference of this number and the given one. + * + * @param BigNumber|int|float|string $that The number to subtract. + * + * @throws MathException If the number is not valid. + */ + public function minus(BigNumber|int|float|string $that) : BigRational + { + $that = BigRational::of($that); + + $numerator = $this->numerator->multipliedBy($that->denominator); + $numerator = $numerator->minus($that->numerator->multipliedBy($this->denominator)); + $denominator = $this->denominator->multipliedBy($that->denominator); + + return new BigRational($numerator, $denominator, false); + } + + /** + * Returns the product of this number and the given one. + * + * @param BigNumber|int|float|string $that The multiplier. + * + * @throws MathException If the multiplier is not a valid number. + */ + public function multipliedBy(BigNumber|int|float|string $that) : BigRational + { + $that = BigRational::of($that); + + $numerator = $this->numerator->multipliedBy($that->numerator); + $denominator = $this->denominator->multipliedBy($that->denominator); + + return new BigRational($numerator, $denominator, false); + } + + /** + * Returns the result of the division of this number by the given one. + * + * @param BigNumber|int|float|string $that The divisor. + * + * @throws MathException If the divisor is not a valid number, or is zero. + */ + public function dividedBy(BigNumber|int|float|string $that) : BigRational + { + $that = BigRational::of($that); + + $numerator = $this->numerator->multipliedBy($that->denominator); + $denominator = $this->denominator->multipliedBy($that->numerator); + + return new BigRational($numerator, $denominator, true); + } + + /** + * Returns this number exponentiated to the given value. + * + * @throws \InvalidArgumentException If the exponent is not in the range 0 to 1,000,000. + */ + public function power(int $exponent) : BigRational + { + if ($exponent === 0) { + $one = BigInteger::one(); + + return new BigRational($one, $one, false); + } + + if ($exponent === 1) { + return $this; + } + + return new BigRational( + $this->numerator->power($exponent), + $this->denominator->power($exponent), + false + ); + } + + /** + * Returns the reciprocal of this BigRational. + * + * The reciprocal has the numerator and denominator swapped. + * + * @throws DivisionByZeroException If the numerator is zero. + */ + public function reciprocal() : BigRational + { + return new BigRational($this->denominator, $this->numerator, true); + } + + /** + * Returns the absolute value of this BigRational. + */ + public function abs() : BigRational + { + return new BigRational($this->numerator->abs(), $this->denominator, false); + } + + /** + * Returns the negated value of this BigRational. + */ + public function negated() : BigRational + { + return new BigRational($this->numerator->negated(), $this->denominator, false); + } + + /** + * Returns the simplified value of this BigRational. + */ + public function simplified() : BigRational + { + $gcd = $this->numerator->gcd($this->denominator); + + $numerator = $this->numerator->quotient($gcd); + $denominator = $this->denominator->quotient($gcd); + + return new BigRational($numerator, $denominator, false); + } + + public function compareTo(BigNumber|int|float|string $that) : int + { + return $this->minus($that)->getSign(); + } + + public function getSign() : int + { + return $this->numerator->getSign(); + } + + public function toBigInteger() : BigInteger + { + $simplified = $this->simplified(); + + if (! $simplified->denominator->isEqualTo(1)) { + throw new RoundingNecessaryException('This rational number cannot be represented as an integer value without rounding.'); + } + + return $simplified->numerator; + } + + public function toBigDecimal() : BigDecimal + { + return $this->numerator->toBigDecimal()->exactlyDividedBy($this->denominator); + } + + public function toBigRational() : BigRational + { + return $this; + } + + public function toScale(int $scale, int $roundingMode = RoundingMode::UNNECESSARY) : BigDecimal + { + return $this->numerator->toBigDecimal()->dividedBy($this->denominator, $scale, $roundingMode); + } + + public function toInt() : int + { + return $this->toBigInteger()->toInt(); + } + + public function toFloat() : float + { + $simplified = $this->simplified(); + return $simplified->numerator->toFloat() / $simplified->denominator->toFloat(); + } + + public function __toString() : string + { + $numerator = (string) $this->numerator; + $denominator = (string) $this->denominator; + + if ($denominator === '1') { + return $numerator; + } + + return $this->numerator . '/' . $this->denominator; + } + + /** + * This method is required for serializing the object and SHOULD NOT be accessed directly. + * + * @internal + * + * @return array{numerator: BigInteger, denominator: BigInteger} + */ + public function __serialize(): array + { + return ['numerator' => $this->numerator, 'denominator' => $this->denominator]; + } + + /** + * This method is only here to allow unserializing the object and cannot be accessed directly. + * + * @internal + * @psalm-suppress RedundantPropertyInitializationCheck + * + * @param array{numerator: BigInteger, denominator: BigInteger} $data + * + * @throws \LogicException + */ + public function __unserialize(array $data): void + { + if (isset($this->numerator)) { + throw new \LogicException('__unserialize() is an internal function, it must not be called directly.'); + } + + $this->numerator = $data['numerator']; + $this->denominator = $data['denominator']; + } + + /** + * This method is required by interface Serializable and SHOULD NOT be accessed directly. + * + * @internal + */ + public function serialize() : string + { + return $this->numerator . '/' . $this->denominator; + } + + /** + * This method is only here to implement interface Serializable and cannot be accessed directly. + * + * @internal + * @psalm-suppress RedundantPropertyInitializationCheck + * + * @throws \LogicException + */ + public function unserialize($value) : void + { + if (isset($this->numerator)) { + throw new \LogicException('unserialize() is an internal function, it must not be called directly.'); + } + + [$numerator, $denominator] = \explode('/', $value); + + $this->numerator = BigInteger::of($numerator); + $this->denominator = BigInteger::of($denominator); + } +} diff --git a/vendor/brick/math/src/Exception/DivisionByZeroException.php b/vendor/brick/math/src/Exception/DivisionByZeroException.php new file mode 100644 index 000000000..ce7769ac2 --- /dev/null +++ b/vendor/brick/math/src/Exception/DivisionByZeroException.php @@ -0,0 +1,35 @@ + 126) { + $char = \strtoupper(\dechex($ord)); + + if ($ord < 10) { + $char = '0' . $char; + } + } else { + $char = '"' . $char . '"'; + } + + return new self(sprintf('Char %s is not a valid character in the given alphabet.', $char)); + } +} diff --git a/vendor/brick/math/src/Exception/RoundingNecessaryException.php b/vendor/brick/math/src/Exception/RoundingNecessaryException.php new file mode 100644 index 000000000..57bfcd844 --- /dev/null +++ b/vendor/brick/math/src/Exception/RoundingNecessaryException.php @@ -0,0 +1,19 @@ +init($a, $b); + + if ($aNeg && ! $bNeg) { + return -1; + } + + if ($bNeg && ! $aNeg) { + return 1; + } + + $aLen = \strlen($aDig); + $bLen = \strlen($bDig); + + if ($aLen < $bLen) { + $result = -1; + } elseif ($aLen > $bLen) { + $result = 1; + } else { + $result = $aDig <=> $bDig; + } + + return $aNeg ? -$result : $result; + } + + /** + * Adds two numbers. + */ + abstract public function add(string $a, string $b) : string; + + /** + * Subtracts two numbers. + */ + abstract public function sub(string $a, string $b) : string; + + /** + * Multiplies two numbers. + */ + abstract public function mul(string $a, string $b) : string; + + /** + * Returns the quotient of the division of two numbers. + * + * @param string $a The dividend. + * @param string $b The divisor, must not be zero. + * + * @return string The quotient. + */ + abstract public function divQ(string $a, string $b) : string; + + /** + * Returns the remainder of the division of two numbers. + * + * @param string $a The dividend. + * @param string $b The divisor, must not be zero. + * + * @return string The remainder. + */ + abstract public function divR(string $a, string $b) : string; + + /** + * Returns the quotient and remainder of the division of two numbers. + * + * @param string $a The dividend. + * @param string $b The divisor, must not be zero. + * + * @return array{string, string} An array containing the quotient and remainder. + */ + abstract public function divQR(string $a, string $b) : array; + + /** + * Exponentiates a number. + * + * @param string $a The base number. + * @param int $e The exponent, validated as an integer between 0 and MAX_POWER. + * + * @return string The power. + */ + abstract public function pow(string $a, int $e) : string; + + /** + * @param string $b The modulus; must not be zero. + */ + public function mod(string $a, string $b) : string + { + return $this->divR($this->add($this->divR($a, $b), $b), $b); + } + + /** + * Returns the modular multiplicative inverse of $x modulo $m. + * + * If $x has no multiplicative inverse mod m, this method must return null. + * + * This method can be overridden by the concrete implementation if the underlying library has built-in support. + * + * @param string $m The modulus; must not be negative or zero. + */ + public function modInverse(string $x, string $m) : ?string + { + if ($m === '1') { + return '0'; + } + + $modVal = $x; + + if ($x[0] === '-' || ($this->cmp($this->abs($x), $m) >= 0)) { + $modVal = $this->mod($x, $m); + } + + [$g, $x] = $this->gcdExtended($modVal, $m); + + if ($g !== '1') { + return null; + } + + return $this->mod($this->add($this->mod($x, $m), $m), $m); + } + + /** + * Raises a number into power with modulo. + * + * @param string $base The base number; must be positive or zero. + * @param string $exp The exponent; must be positive or zero. + * @param string $mod The modulus; must be strictly positive. + */ + abstract public function modPow(string $base, string $exp, string $mod) : string; + + /** + * Returns the greatest common divisor of the two numbers. + * + * This method can be overridden by the concrete implementation if the underlying library + * has built-in support for GCD calculations. + * + * @return string The GCD, always positive, or zero if both arguments are zero. + */ + public function gcd(string $a, string $b) : string + { + if ($a === '0') { + return $this->abs($b); + } + + if ($b === '0') { + return $this->abs($a); + } + + return $this->gcd($b, $this->divR($a, $b)); + } + + /** + * @return array{string, string, string} GCD, X, Y + */ + private function gcdExtended(string $a, string $b) : array + { + if ($a === '0') { + return [$b, '0', '1']; + } + + [$gcd, $x1, $y1] = $this->gcdExtended($this->mod($b, $a), $a); + + $x = $this->sub($y1, $this->mul($this->divQ($b, $a), $x1)); + $y = $x1; + + return [$gcd, $x, $y]; + } + + /** + * Returns the square root of the given number, rounded down. + * + * The result is the largest x such that x² ≤ n. + * The input MUST NOT be negative. + */ + abstract public function sqrt(string $n) : string; + + /** + * Converts a number from an arbitrary base. + * + * This method can be overridden by the concrete implementation if the underlying library + * has built-in support for base conversion. + * + * @param string $number The number, positive or zero, non-empty, case-insensitively validated for the given base. + * @param int $base The base of the number, validated from 2 to 36. + * + * @return string The converted number, following the Calculator conventions. + */ + public function fromBase(string $number, int $base) : string + { + return $this->fromArbitraryBase(\strtolower($number), self::ALPHABET, $base); + } + + /** + * Converts a number to an arbitrary base. + * + * This method can be overridden by the concrete implementation if the underlying library + * has built-in support for base conversion. + * + * @param string $number The number to convert, following the Calculator conventions. + * @param int $base The base to convert to, validated from 2 to 36. + * + * @return string The converted number, lowercase. + */ + public function toBase(string $number, int $base) : string + { + $negative = ($number[0] === '-'); + + if ($negative) { + $number = \substr($number, 1); + } + + $number = $this->toArbitraryBase($number, self::ALPHABET, $base); + + if ($negative) { + return '-' . $number; + } + + return $number; + } + + /** + * Converts a non-negative number in an arbitrary base using a custom alphabet, to base 10. + * + * @param string $number The number to convert, validated as a non-empty string, + * containing only chars in the given alphabet/base. + * @param string $alphabet The alphabet that contains every digit, validated as 2 chars minimum. + * @param int $base The base of the number, validated from 2 to alphabet length. + * + * @return string The number in base 10, following the Calculator conventions. + */ + final public function fromArbitraryBase(string $number, string $alphabet, int $base) : string + { + // remove leading "zeros" + $number = \ltrim($number, $alphabet[0]); + + if ($number === '') { + return '0'; + } + + // optimize for "one" + if ($number === $alphabet[1]) { + return '1'; + } + + $result = '0'; + $power = '1'; + + $base = (string) $base; + + for ($i = \strlen($number) - 1; $i >= 0; $i--) { + $index = \strpos($alphabet, $number[$i]); + + if ($index !== 0) { + $result = $this->add($result, ($index === 1) + ? $power + : $this->mul($power, (string) $index) + ); + } + + if ($i !== 0) { + $power = $this->mul($power, $base); + } + } + + return $result; + } + + /** + * Converts a non-negative number to an arbitrary base using a custom alphabet. + * + * @param string $number The number to convert, positive or zero, following the Calculator conventions. + * @param string $alphabet The alphabet that contains every digit, validated as 2 chars minimum. + * @param int $base The base to convert to, validated from 2 to alphabet length. + * + * @return string The converted number in the given alphabet. + */ + final public function toArbitraryBase(string $number, string $alphabet, int $base) : string + { + if ($number === '0') { + return $alphabet[0]; + } + + $base = (string) $base; + $result = ''; + + while ($number !== '0') { + [$number, $remainder] = $this->divQR($number, $base); + $remainder = (int) $remainder; + + $result .= $alphabet[$remainder]; + } + + return \strrev($result); + } + + /** + * Performs a rounded division. + * + * Rounding is performed when the remainder of the division is not zero. + * + * @param string $a The dividend. + * @param string $b The divisor, must not be zero. + * @param int $roundingMode The rounding mode. + * + * @throws \InvalidArgumentException If the rounding mode is invalid. + * @throws RoundingNecessaryException If RoundingMode::UNNECESSARY is provided but rounding is necessary. + * + * @psalm-suppress ImpureFunctionCall + */ + final public function divRound(string $a, string $b, int $roundingMode) : string + { + [$quotient, $remainder] = $this->divQR($a, $b); + + $hasDiscardedFraction = ($remainder !== '0'); + $isPositiveOrZero = ($a[0] === '-') === ($b[0] === '-'); + + $discardedFractionSign = function() use ($remainder, $b) : int { + $r = $this->abs($this->mul($remainder, '2')); + $b = $this->abs($b); + + return $this->cmp($r, $b); + }; + + $increment = false; + + switch ($roundingMode) { + case RoundingMode::UNNECESSARY: + if ($hasDiscardedFraction) { + throw RoundingNecessaryException::roundingNecessary(); + } + break; + + case RoundingMode::UP: + $increment = $hasDiscardedFraction; + break; + + case RoundingMode::DOWN: + break; + + case RoundingMode::CEILING: + $increment = $hasDiscardedFraction && $isPositiveOrZero; + break; + + case RoundingMode::FLOOR: + $increment = $hasDiscardedFraction && ! $isPositiveOrZero; + break; + + case RoundingMode::HALF_UP: + $increment = $discardedFractionSign() >= 0; + break; + + case RoundingMode::HALF_DOWN: + $increment = $discardedFractionSign() > 0; + break; + + case RoundingMode::HALF_CEILING: + $increment = $isPositiveOrZero ? $discardedFractionSign() >= 0 : $discardedFractionSign() > 0; + break; + + case RoundingMode::HALF_FLOOR: + $increment = $isPositiveOrZero ? $discardedFractionSign() > 0 : $discardedFractionSign() >= 0; + break; + + case RoundingMode::HALF_EVEN: + $lastDigit = (int) $quotient[-1]; + $lastDigitIsEven = ($lastDigit % 2 === 0); + $increment = $lastDigitIsEven ? $discardedFractionSign() > 0 : $discardedFractionSign() >= 0; + break; + + default: + throw new \InvalidArgumentException('Invalid rounding mode.'); + } + + if ($increment) { + return $this->add($quotient, $isPositiveOrZero ? '1' : '-1'); + } + + return $quotient; + } + + /** + * Calculates bitwise AND of two numbers. + * + * This method can be overridden by the concrete implementation if the underlying library + * has built-in support for bitwise operations. + */ + public function and(string $a, string $b) : string + { + return $this->bitwise('and', $a, $b); + } + + /** + * Calculates bitwise OR of two numbers. + * + * This method can be overridden by the concrete implementation if the underlying library + * has built-in support for bitwise operations. + */ + public function or(string $a, string $b) : string + { + return $this->bitwise('or', $a, $b); + } + + /** + * Calculates bitwise XOR of two numbers. + * + * This method can be overridden by the concrete implementation if the underlying library + * has built-in support for bitwise operations. + */ + public function xor(string $a, string $b) : string + { + return $this->bitwise('xor', $a, $b); + } + + /** + * Performs a bitwise operation on a decimal number. + * + * @param 'and'|'or'|'xor' $operator The operator to use. + * @param string $a The left operand. + * @param string $b The right operand. + */ + private function bitwise(string $operator, string $a, string $b) : string + { + [$aNeg, $bNeg, $aDig, $bDig] = $this->init($a, $b); + + $aBin = $this->toBinary($aDig); + $bBin = $this->toBinary($bDig); + + $aLen = \strlen($aBin); + $bLen = \strlen($bBin); + + if ($aLen > $bLen) { + $bBin = \str_repeat("\x00", $aLen - $bLen) . $bBin; + } elseif ($bLen > $aLen) { + $aBin = \str_repeat("\x00", $bLen - $aLen) . $aBin; + } + + if ($aNeg) { + $aBin = $this->twosComplement($aBin); + } + if ($bNeg) { + $bBin = $this->twosComplement($bBin); + } + + switch ($operator) { + case 'and': + $value = $aBin & $bBin; + $negative = ($aNeg and $bNeg); + break; + + case 'or': + $value = $aBin | $bBin; + $negative = ($aNeg or $bNeg); + break; + + case 'xor': + $value = $aBin ^ $bBin; + $negative = ($aNeg xor $bNeg); + break; + + // @codeCoverageIgnoreStart + default: + throw new \InvalidArgumentException('Invalid bitwise operator.'); + // @codeCoverageIgnoreEnd + } + + if ($negative) { + $value = $this->twosComplement($value); + } + + $result = $this->toDecimal($value); + + return $negative ? $this->neg($result) : $result; + } + + /** + * @param string $number A positive, binary number. + */ + private function twosComplement(string $number) : string + { + $xor = \str_repeat("\xff", \strlen($number)); + + $number ^= $xor; + + for ($i = \strlen($number) - 1; $i >= 0; $i--) { + $byte = \ord($number[$i]); + + if (++$byte !== 256) { + $number[$i] = \chr($byte); + break; + } + + $number[$i] = "\x00"; + + if ($i === 0) { + $number = "\x01" . $number; + } + } + + return $number; + } + + /** + * Converts a decimal number to a binary string. + * + * @param string $number The number to convert, positive or zero, only digits. + */ + private function toBinary(string $number) : string + { + $result = ''; + + while ($number !== '0') { + [$number, $remainder] = $this->divQR($number, '256'); + $result .= \chr((int) $remainder); + } + + return \strrev($result); + } + + /** + * Returns the positive decimal representation of a binary number. + * + * @param string $bytes The bytes representing the number. + */ + private function toDecimal(string $bytes) : string + { + $result = '0'; + $power = '1'; + + for ($i = \strlen($bytes) - 1; $i >= 0; $i--) { + $index = \ord($bytes[$i]); + + if ($index !== 0) { + $result = $this->add($result, ($index === 1) + ? $power + : $this->mul($power, (string) $index) + ); + } + + if ($i !== 0) { + $power = $this->mul($power, '256'); + } + } + + return $result; + } +} diff --git a/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php b/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php new file mode 100644 index 000000000..5457a3c98 --- /dev/null +++ b/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php @@ -0,0 +1,75 @@ +maxDigits = 9; + break; + + case 8: + $this->maxDigits = 18; + break; + + default: + throw new \RuntimeException('The platform is not 32-bit or 64-bit as expected.'); + } + } + + public function add(string $a, string $b) : string + { + /** + * @psalm-var numeric-string $a + * @psalm-var numeric-string $b + */ + $result = $a + $b; + + if (is_int($result)) { + return (string) $result; + } + + if ($a === '0') { + return $b; + } + + if ($b === '0') { + return $a; + } + + [$aNeg, $bNeg, $aDig, $bDig] = $this->init($a, $b); + + $result = $aNeg === $bNeg ? $this->doAdd($aDig, $bDig) : $this->doSub($aDig, $bDig); + + if ($aNeg) { + $result = $this->neg($result); + } + + return $result; + } + + public function sub(string $a, string $b) : string + { + return $this->add($a, $this->neg($b)); + } + + public function mul(string $a, string $b) : string + { + /** + * @psalm-var numeric-string $a + * @psalm-var numeric-string $b + */ + $result = $a * $b; + + if (is_int($result)) { + return (string) $result; + } + + if ($a === '0' || $b === '0') { + return '0'; + } + + if ($a === '1') { + return $b; + } + + if ($b === '1') { + return $a; + } + + if ($a === '-1') { + return $this->neg($b); + } + + if ($b === '-1') { + return $this->neg($a); + } + + [$aNeg, $bNeg, $aDig, $bDig] = $this->init($a, $b); + + $result = $this->doMul($aDig, $bDig); + + if ($aNeg !== $bNeg) { + $result = $this->neg($result); + } + + return $result; + } + + public function divQ(string $a, string $b) : string + { + return $this->divQR($a, $b)[0]; + } + + public function divR(string $a, string $b): string + { + return $this->divQR($a, $b)[1]; + } + + public function divQR(string $a, string $b) : array + { + if ($a === '0') { + return ['0', '0']; + } + + if ($a === $b) { + return ['1', '0']; + } + + if ($b === '1') { + return [$a, '0']; + } + + if ($b === '-1') { + return [$this->neg($a), '0']; + } + + /** @psalm-var numeric-string $a */ + $na = $a * 1; // cast to number + + if (is_int($na)) { + /** @psalm-var numeric-string $b */ + $nb = $b * 1; + + if (is_int($nb)) { + // the only division that may overflow is PHP_INT_MIN / -1, + // which cannot happen here as we've already handled a divisor of -1 above. + $r = $na % $nb; + $q = ($na - $r) / $nb; + + assert(is_int($q)); + + return [ + (string) $q, + (string) $r + ]; + } + } + + [$aNeg, $bNeg, $aDig, $bDig] = $this->init($a, $b); + + [$q, $r] = $this->doDiv($aDig, $bDig); + + if ($aNeg !== $bNeg) { + $q = $this->neg($q); + } + + if ($aNeg) { + $r = $this->neg($r); + } + + return [$q, $r]; + } + + public function pow(string $a, int $e) : string + { + if ($e === 0) { + return '1'; + } + + if ($e === 1) { + return $a; + } + + $odd = $e % 2; + $e -= $odd; + + $aa = $this->mul($a, $a); + + /** @psalm-suppress PossiblyInvalidArgument We're sure that $e / 2 is an int now */ + $result = $this->pow($aa, $e / 2); + + if ($odd === 1) { + $result = $this->mul($result, $a); + } + + return $result; + } + + /** + * Algorithm from: https://www.geeksforgeeks.org/modular-exponentiation-power-in-modular-arithmetic/ + */ + public function modPow(string $base, string $exp, string $mod) : string + { + // special case: the algorithm below fails with 0 power 0 mod 1 (returns 1 instead of 0) + if ($base === '0' && $exp === '0' && $mod === '1') { + return '0'; + } + + // special case: the algorithm below fails with power 0 mod 1 (returns 1 instead of 0) + if ($exp === '0' && $mod === '1') { + return '0'; + } + + $x = $base; + + $res = '1'; + + // numbers are positive, so we can use remainder instead of modulo + $x = $this->divR($x, $mod); + + while ($exp !== '0') { + if (in_array($exp[-1], ['1', '3', '5', '7', '9'])) { // odd + $res = $this->divR($this->mul($res, $x), $mod); + } + + $exp = $this->divQ($exp, '2'); + $x = $this->divR($this->mul($x, $x), $mod); + } + + return $res; + } + + /** + * Adapted from https://cp-algorithms.com/num_methods/roots_newton.html + */ + public function sqrt(string $n) : string + { + if ($n === '0') { + return '0'; + } + + // initial approximation + $x = \str_repeat('9', \intdiv(\strlen($n), 2) ?: 1); + + $decreased = false; + + for (;;) { + $nx = $this->divQ($this->add($x, $this->divQ($n, $x)), '2'); + + if ($x === $nx || $this->cmp($nx, $x) > 0 && $decreased) { + break; + } + + $decreased = $this->cmp($nx, $x) < 0; + $x = $nx; + } + + return $x; + } + + /** + * Performs the addition of two non-signed large integers. + */ + private function doAdd(string $a, string $b) : string + { + [$a, $b, $length] = $this->pad($a, $b); + + $carry = 0; + $result = ''; + + for ($i = $length - $this->maxDigits;; $i -= $this->maxDigits) { + $blockLength = $this->maxDigits; + + if ($i < 0) { + $blockLength += $i; + /** @psalm-suppress LoopInvalidation */ + $i = 0; + } + + /** @psalm-var numeric-string $blockA */ + $blockA = \substr($a, $i, $blockLength); + + /** @psalm-var numeric-string $blockB */ + $blockB = \substr($b, $i, $blockLength); + + $sum = (string) ($blockA + $blockB + $carry); + $sumLength = \strlen($sum); + + if ($sumLength > $blockLength) { + $sum = \substr($sum, 1); + $carry = 1; + } else { + if ($sumLength < $blockLength) { + $sum = \str_repeat('0', $blockLength - $sumLength) . $sum; + } + $carry = 0; + } + + $result = $sum . $result; + + if ($i === 0) { + break; + } + } + + if ($carry === 1) { + $result = '1' . $result; + } + + return $result; + } + + /** + * Performs the subtraction of two non-signed large integers. + */ + private function doSub(string $a, string $b) : string + { + if ($a === $b) { + return '0'; + } + + // Ensure that we always subtract to a positive result: biggest minus smallest. + $cmp = $this->doCmp($a, $b); + + $invert = ($cmp === -1); + + if ($invert) { + $c = $a; + $a = $b; + $b = $c; + } + + [$a, $b, $length] = $this->pad($a, $b); + + $carry = 0; + $result = ''; + + $complement = 10 ** $this->maxDigits; + + for ($i = $length - $this->maxDigits;; $i -= $this->maxDigits) { + $blockLength = $this->maxDigits; + + if ($i < 0) { + $blockLength += $i; + /** @psalm-suppress LoopInvalidation */ + $i = 0; + } + + /** @psalm-var numeric-string $blockA */ + $blockA = \substr($a, $i, $blockLength); + + /** @psalm-var numeric-string $blockB */ + $blockB = \substr($b, $i, $blockLength); + + $sum = $blockA - $blockB - $carry; + + if ($sum < 0) { + $sum += $complement; + $carry = 1; + } else { + $carry = 0; + } + + $sum = (string) $sum; + $sumLength = \strlen($sum); + + if ($sumLength < $blockLength) { + $sum = \str_repeat('0', $blockLength - $sumLength) . $sum; + } + + $result = $sum . $result; + + if ($i === 0) { + break; + } + } + + // Carry cannot be 1 when the loop ends, as a > b + assert($carry === 0); + + $result = \ltrim($result, '0'); + + if ($invert) { + $result = $this->neg($result); + } + + return $result; + } + + /** + * Performs the multiplication of two non-signed large integers. + */ + private function doMul(string $a, string $b) : string + { + $x = \strlen($a); + $y = \strlen($b); + + $maxDigits = \intdiv($this->maxDigits, 2); + $complement = 10 ** $maxDigits; + + $result = '0'; + + for ($i = $x - $maxDigits;; $i -= $maxDigits) { + $blockALength = $maxDigits; + + if ($i < 0) { + $blockALength += $i; + /** @psalm-suppress LoopInvalidation */ + $i = 0; + } + + $blockA = (int) \substr($a, $i, $blockALength); + + $line = ''; + $carry = 0; + + for ($j = $y - $maxDigits;; $j -= $maxDigits) { + $blockBLength = $maxDigits; + + if ($j < 0) { + $blockBLength += $j; + /** @psalm-suppress LoopInvalidation */ + $j = 0; + } + + $blockB = (int) \substr($b, $j, $blockBLength); + + $mul = $blockA * $blockB + $carry; + $value = $mul % $complement; + $carry = ($mul - $value) / $complement; + + $value = (string) $value; + $value = \str_pad($value, $maxDigits, '0', STR_PAD_LEFT); + + $line = $value . $line; + + if ($j === 0) { + break; + } + } + + if ($carry !== 0) { + $line = $carry . $line; + } + + $line = \ltrim($line, '0'); + + if ($line !== '') { + $line .= \str_repeat('0', $x - $blockALength - $i); + $result = $this->add($result, $line); + } + + if ($i === 0) { + break; + } + } + + return $result; + } + + /** + * Performs the division of two non-signed large integers. + * + * @return string[] The quotient and remainder. + */ + private function doDiv(string $a, string $b) : array + { + $cmp = $this->doCmp($a, $b); + + if ($cmp === -1) { + return ['0', $a]; + } + + $x = \strlen($a); + $y = \strlen($b); + + // we now know that a >= b && x >= y + + $q = '0'; // quotient + $r = $a; // remainder + $z = $y; // focus length, always $y or $y+1 + + for (;;) { + $focus = \substr($a, 0, $z); + + $cmp = $this->doCmp($focus, $b); + + if ($cmp === -1) { + if ($z === $x) { // remainder < dividend + break; + } + + $z++; + } + + $zeros = \str_repeat('0', $x - $z); + + $q = $this->add($q, '1' . $zeros); + $a = $this->sub($a, $b . $zeros); + + $r = $a; + + if ($r === '0') { // remainder == 0 + break; + } + + $x = \strlen($a); + + if ($x < $y) { // remainder < dividend + break; + } + + $z = $y; + } + + return [$q, $r]; + } + + /** + * Compares two non-signed large numbers. + * + * @return int [-1, 0, 1] + */ + private function doCmp(string $a, string $b) : int + { + $x = \strlen($a); + $y = \strlen($b); + + $cmp = $x <=> $y; + + if ($cmp !== 0) { + return $cmp; + } + + return \strcmp($a, $b) <=> 0; // enforce [-1, 0, 1] + } + + /** + * Pads the left of one of the given numbers with zeros if necessary to make both numbers the same length. + * + * The numbers must only consist of digits, without leading minus sign. + * + * @return array{string, string, int} + */ + private function pad(string $a, string $b) : array + { + $x = \strlen($a); + $y = \strlen($b); + + if ($x > $y) { + $b = \str_repeat('0', $x - $y) . $b; + + return [$a, $b, $x]; + } + + if ($x < $y) { + $a = \str_repeat('0', $y - $x) . $a; + + return [$a, $b, $y]; + } + + return [$a, $b, $x]; + } +} diff --git a/vendor/brick/math/src/RoundingMode.php b/vendor/brick/math/src/RoundingMode.php new file mode 100644 index 000000000..06936d8db --- /dev/null +++ b/vendor/brick/math/src/RoundingMode.php @@ -0,0 +1,107 @@ += 0.5; otherwise, behaves as for DOWN. + * Note that this is the rounding mode commonly taught at school. + */ + public const HALF_UP = 5; + + /** + * Rounds towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. + * + * Behaves as for UP if the discarded fraction is > 0.5; otherwise, behaves as for DOWN. + */ + public const HALF_DOWN = 6; + + /** + * Rounds towards "nearest neighbor" unless both neighbors are equidistant, in which case round towards positive infinity. + * + * If the result is positive, behaves as for HALF_UP; if negative, behaves as for HALF_DOWN. + */ + public const HALF_CEILING = 7; + + /** + * Rounds towards "nearest neighbor" unless both neighbors are equidistant, in which case round towards negative infinity. + * + * If the result is positive, behaves as for HALF_DOWN; if negative, behaves as for HALF_UP. + */ + public const HALF_FLOOR = 8; + + /** + * Rounds towards the "nearest neighbor" unless both neighbors are equidistant, in which case rounds towards the even neighbor. + * + * Behaves as for HALF_UP if the digit to the left of the discarded fraction is odd; + * behaves as for HALF_DOWN if it's even. + * + * Note that this is the rounding mode that statistically minimizes + * cumulative error when applied repeatedly over a sequence of calculations. + * It is sometimes known as "Banker's rounding", and is chiefly used in the USA. + */ + public const HALF_EVEN = 9; +} diff --git a/vendor/buckaroo/sdk/.env.example b/vendor/buckaroo/sdk/.env.example new file mode 100644 index 000000000..c05ac37a3 --- /dev/null +++ b/vendor/buckaroo/sdk/.env.example @@ -0,0 +1,12 @@ +BPE_WEBSITE="Example.com" +BPE_WEBSITE_KEY="KEY" +BPE_SECRET_KEY="SECRET" +BPE_MODE="test" +BPE_DEBUG=true +BPE_REPORT_ERROR=true + +BPE_EXAMPLE_BASE_URL="https://example.com/buckaroo/" +BPE_EXAMPLE_RETURN_URL="${BPE_EXAMPLE_BASE_URL}return" +BPE_EXAMPLE_PUSH_URL="${BPE_EXAMPLE_BASE_URL}push" +BPE_EXAMPLE_IP="127.0.0.1" +BPE_EXAMPLE_CURRENCY_CODE="EUR" diff --git a/vendor/buckaroo/sdk/.github/workflows/codestyle.yml b/vendor/buckaroo/sdk/.github/workflows/codestyle.yml new file mode 100644 index 000000000..1348548f9 --- /dev/null +++ b/vendor/buckaroo/sdk/.github/workflows/codestyle.yml @@ -0,0 +1,35 @@ +name: CheckStyleAndLint + +on: + pull_request: + paths: + - "src/**.php" + - "example/**.php" + +jobs: + phpcs: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [7.4, 8.1, 8.2] + stability: [prefer-stable] + + name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: cs2pr, phplint, phpcs + + - name: Run phplint + run: phplint --no-configuration --no-cache --no-interaction ./src/* ./example/* + + - name: Run phpcs + run: phpcs -q --report=checkstyle --extensions=php ./src/* | cs2pr diff --git a/vendor/buckaroo/sdk/.gitignore b/vendor/buckaroo/sdk/.gitignore new file mode 100644 index 000000000..6e5adff69 --- /dev/null +++ b/vendor/buckaroo/sdk/.gitignore @@ -0,0 +1,11 @@ +.idea/ +vendor/ +composer.lock +phpcs.txt +example/logs +.env +.phpunit.result.cache + +logs/ + +.php-cs-fixer.cache diff --git a/vendor/buckaroo/sdk/.php-cs-fixer.php b/vendor/buckaroo/sdk/.php-cs-fixer.php new file mode 100644 index 000000000..21867d19c --- /dev/null +++ b/vendor/buckaroo/sdk/.php-cs-fixer.php @@ -0,0 +1,46 @@ +in([ + __DIR__ . '/src', + __DIR__ . '/example' + ]) + ->name('*.php') + ->notPath('bootstrap/*') + ->notPath('storage/*') + ->notPath('vendor') + ->ignoreDotFiles(true) + ->ignoreVCS(true); + +return (new PhpCsFixer\Config()) + ->setRules([ + '@PSR2' => true, + 'array_syntax' => ['syntax' => 'short'], + 'ordered_imports' => ['sort_algorithm' => 'alpha'], + 'no_unused_imports' => true, + 'not_operator_with_successor_space' => true, + 'trailing_comma_in_multiline' => true, + 'phpdoc_scalar' => true, + 'unary_operator_spaces' => true, + 'binary_operator_spaces' => true, + 'blank_line_before_statement' => [ + 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], + ], + 'braces' => [ + 'allow_single_line_closure' => false, + 'position_after_functions_and_oop_constructs' => 'next', + 'position_after_anonymous_constructs' => 'next', + 'position_after_control_structures' => 'next', + ], + 'curly_braces_position' => [ + 'classes_opening_brace' => 'next_line_unless_newline_at_signature_end', + 'control_structures_opening_brace' => 'next_line_unless_newline_at_signature_end' + ], + 'phpdoc_single_line_var_spacing' => true, + 'phpdoc_var_without_name' => true, + 'method_argument_space' => [ + 'on_multiline' => 'ensure_fully_multiline', + 'keep_multiple_spaces_after_comma' => true, + ], + 'single_trait_insert_per_statement' => true, + ]) + ->setFinder($finder); \ No newline at end of file diff --git a/vendor/buckaroo/sdk/CHANGELOG.md b/vendor/buckaroo/sdk/CHANGELOG.md new file mode 100644 index 000000000..ea1b8e852 --- /dev/null +++ b/vendor/buckaroo/sdk/CHANGELOG.md @@ -0,0 +1,80 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +--- + +## [Released] + +## [1.5.2] +- Downgrade Ramsey UUID package to version 3 in order to support PHP 7.4 + +## [1.5.1] +- BP-2485 Bugfix in generating nonce, duplicated nonce can occured when there is a large amount of transactions. + +## [1.5.0] +- BP-2351 Bugfix in transaction response in sub status code +- Subscription example updated. +- Github action added for PSR12 and PHPlint validation. Contributed by @avido +- iDeal QR Test updated. +- BP-2404 PHP 8.2 support + +## [1.4.0] +- Fixed an issue with getting issuers for iDEAL. Reported by @reflie-nxte +- Add Bancontact alias and fixing typo in method name +- When response data is not set return null +- BP-2257 Payment method Request to pay removed +- BP-2285 BP-Add missing subscriptions parameters +- BP-2345 Add missing parameters in iDEAL QR + +## [1.3.0] +- Add parameter retrieval in replyhandler, check lower & upper string +- Remove hardcoded iDEAL banks and use api call to retrieve the latest available iDEAL banks +- Add html_entity_decode for the validation checker +- Fixed combined subscription test +- Update Debtor code +- Fix additional parameters +- Add missing cardnumber & pin parameter in giftcard +- Check more condition on json return or push +- Php Clean code format PSR-12 +- Add payRemainderEncrypted to creditcard +- Add culture to default payload +- Use TransactionResponse when retrieving the transation status Report by @avido in https://github.com/buckaroo-it/BuckarooSDK_PHP/issues/71 +- Update rate_plans node to ratePlans for subscription method + +## [1.2.0] +- Add cancelAuthorize method to billink +- Bugfix billink +- Remove Careof in Klarna KP +- Add missing methods in afterpaydigiaccept & partial refund in afterpay +- Add missing parameter and add cancelauthorize +- BP-2088 Consistent naming for VAT in Credit Management +- Added new payment method Buckaroo voucher +- Add ApplePay payRedirect method + example fix +- All examples updated +- Update iDeal banks +- Fix missing FashionChequePin + +## [1.1.2] +- Add missing service parameters to Giftcard payment +- BP-2130 Examples updated. +- Cast getAmount in TransactionResponse a string. +- ApplePay redirect method fixed. +- New payment method Buckaroo Voucher added. +- iDEAL banks list updated. + +## [1.1.1] +- BP-2061 Signature bugfix +- BP-2059 Add CancelAuthorize for Creditcards & Missing APIs parameters + +## [1.0.1] +- Add missing methods to different payment providers. +- Support lower and/or upper case reply and push response. Report by @antonboutkam https://github.com/buckaroo-it/BuckarooSDK_PHP/issues/36 +- Improve reply and push validation. Report by @antonboutkam https://github.com/buckaroo-it/BuckarooSDK_PHP/issues/36 +- Retrieve transaction status. Report by @antonboutkam in https://github.com/buckaroo-it/BuckarooSDK_PHP/issues/37 +- ReplyHandler is able to retrieve the given data. +- Giftcard redirect method & review update +- Moved vlucas/phpdotenv to dev-dependency. Report by @ederuiter https://github.com/buckaroo-it/BuckarooSDK_PHP/issues/32 + +## [1.0.0] +- Initial release. \ No newline at end of file diff --git a/vendor/buckaroo/sdk/CONTRIBUTING.md b/vendor/buckaroo/sdk/CONTRIBUTING.md new file mode 100644 index 000000000..e63d12bb4 --- /dev/null +++ b/vendor/buckaroo/sdk/CONTRIBUTING.md @@ -0,0 +1,21 @@ +# Contribution Guidelines + +### Repository setup: +- Fork the repository to your account +- more details about [how to fork a repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) can be found [here](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo): + +### Making changes: +- create a branch from develop branch +- name of the branch shoul be something like: `feature/GITHUB-ISSUE-ID-slug` (eg: `feature/50-configprovider-update`) +- including unit tests is encouraged + +### Pull Request: +- open the PR to develop branch +- if there is no issue referenced, add a description about the problem and the way it is being solved +- Allow edits from maintainers + + +### Contribution to refactoring: +- include unit tests +- open the Pull Request +- check that git workflows checks have passed \ No newline at end of file diff --git a/vendor/buckaroo/sdk/LICENSE b/vendor/buckaroo/sdk/LICENSE new file mode 100644 index 000000000..ec6264df3 --- /dev/null +++ b/vendor/buckaroo/sdk/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Buckaroo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vendor/buckaroo/sdk/README.md b/vendor/buckaroo/sdk/README.md new file mode 100644 index 000000000..225b0055a --- /dev/null +++ b/vendor/buckaroo/sdk/README.md @@ -0,0 +1,105 @@ + +

+ +

+ +# Buckaroo PHP SDK +[![Latest release](https://badgen.net/github/release/buckaroo-it/BuckarooSDK_PHP)](https://github.com/buckaroo-it/BuckarooSDK_PHP/releases) + +

+ +

+ +--- +### Index +- [About](#about) +- [Requirements](#requirements) +- [Composer Installation](#composer-installation) +- [Requirements](#requirements) +- [Example](#example) +- [Contribute](#contribute) +- [Versioning](#versioning) +- [Additional information](#additional-information) +--- + +### About + +Buckaroo is the the Payment Service Provider for all your online payments with more than 30,000 companies relying on Buckaroo's platform to securely process their payments, subscriptions and unpaid invoices. +Buckaroo developed their own PHP SDK. The SDK is a modern, open-source PHP library that makes it easy to integrate your PHP application with Buckaroo's services. +Start accepting payments today with Buckaroo. + +### Requirements + +To use the Buckaroo API client, the following things are required: + ++ A Buckaroo account ([Dutch](https://www.buckaroo.nl/start) or [English](https://www.buckaroo.eu/solutions/request-form)) ++ PHP >= 7.4 ++ Up-to-date OpenSSL (or other SSL/TLS toolkit) + +### Composer Installation + +By far the easiest way to install the Buckaroo API client is to require it with [Composer](http://getcomposer.org/doc/00-intro.md). + + $ composer require buckaroo/sdk:^1.0 + + { + "require": { + "buckaroo/sdk": "^1.0" + } + } + +### Example +Create and config the Buckaroo object. +You can find your credentials in plaza [WEBSITE_KEY](https://plaza.buckaroo.nl/Configuration/Website/Index/) and [SECRET_KEY](https://admin.buckaroo.nl/Configuration/Merchant/SecretKey) + +```php +require __DIR__ . '/vendor/autoload.php'; + +# Get your website & secret key in your plaza. +# You can perform a test payment by giving the third param with the string "test", on default it is set on "live" +$buckaroo = new \BuckarooClient('WEBSITE_KEY', 'SECRET_KEY', 'test'); +``` + +Create a payment with all the available payment methods. In this example, we show how to create a credit card payment. Each payment has a slightly different payload. +```php +# Create a new payment +$buckaroo->method('creditcard') // Input the desire payment method. + ->pay([ + 'name' => 'visa', // Request to pay with Visa + 'amountDebit' => 10, // The amount we want to charge + 'invoice' => 'UNIQUE-INVOICE-NO', // Each payment must contain a unique invoice number + ]); +``` + +After you create a transaction, you can retrieve several transaction information on demand. +```php +# Retrieve transaction information +$transaction = $buckaroo->transaction('YOUR-TRANSACTION-KEY') + +$transaction->status(); // Retrieve transaction status +$transaction->refundInfo(); // Retrieve refund info +$transaction->cancelInfo() // Retrieve cancellation info +``` + +Find our full documentation online on [docs.buckaroo.io](https://docs.buckaroo.io). + +### Contribute + +We really appreciate it when developers contribute to improve the Buckaroo plugins. +If you want to contribute as well, then please follow our [Contribution Guidelines](CONTRIBUTING.md). + +### Versioning +

+ +

+ +- **MAJOR:** Breaking changes that require additional testing/caution +- **MINOR:** Changes that should not have a big impact +- **PATCHES:** Bug and hotfixes only + +### Additional information +- **Support:** https://docs.buckaroo.io/docs/contact-us +- **Contact:** [support@buckaroo.nl](mailto:support@buckaroo.nl) or [+31 (0)30 711 50 50](tel:+310307115050) + +## License +Buckaroo PHP SDK is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/vendor/buckaroo/sdk/composer.json b/vendor/buckaroo/sdk/composer.json new file mode 100644 index 000000000..dd0a93fb7 --- /dev/null +++ b/vendor/buckaroo/sdk/composer.json @@ -0,0 +1,40 @@ +{ + "name": "buckaroo/sdk", + "description": "Buckaroo payment SDK", + "license": "MIT", + "version": "1.8.1", + "type": "library", + "require": { + "php": ">=7.4|^8.0", + "ext-json": "*", + "ext-pcre": "*", + "ext-fileinfo": "*", + "monolog/monolog": "^2.2|^3", + "guzzlehttp/guzzle": "^7.0", + "composer/ca-bundle": "^1.3", + "ramsey/uuid": "^3.9.7|^4" + }, + "require-dev": { + "squizlabs/php_codesniffer": "3.*", + "symfony/var-dumper": "^5.4.9", + "phpunit/phpunit": "^9.5", + "vlucas/phpdotenv": "^5.4", + "friendsofphp/php-cs-fixer": "^3.13" + }, + "authors": [{ + "name": "Buckaroo", + "email": "support@buckaroo.nl", + "homepage": "https://www.buckaroo.nl", + "role": "Developer" + }], + "autoload": { + "psr-4": { + "Buckaroo\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + } +} diff --git a/vendor/buckaroo/sdk/example/additional_services/credit_management.php b/vendor/buckaroo/sdk/example/additional_services/credit_management.php new file mode 100644 index 000000000..e26bd257f --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/credit_management.php @@ -0,0 +1,71 @@ +method('credit_management')->manually()->createCombinedInvoice([ + 'invoice' => rand(1000, 9999), + 'applyStartRecurrent' => 'False', + 'invoiceAmount' => 10.00, + 'invoiceAmountVAT' => 1.00, + 'invoiceDate' => date('Y-m-d'), + 'dueDate' => date('Y-m-d'), + 'schemeKey' => '2amq34', + 'maxStepIndex' => 1, + 'allowedServices' => 'ideal,mastercard', + 'debtor' => [ + 'code' => 'johnsmith4', + ], + 'email' => 'youremail@example.nl', + 'phone' => [ + 'mobile' => '06198765432', + ], + 'person' => [ + 'culture' => 'nl-NL', + 'title' => 'Msc', + 'initials' => 'JS', + 'firstName' => 'Test', + 'lastNamePrefix' => 'Jones', + 'lastName' => 'Aflever', + 'gender' => Gender::MALE, + ], + 'company' => [ + 'culture' => 'nl-NL', + 'name' => 'My Company Corporation', + 'vatApplicable' => true, + 'vatNumber' => 'NL140619562B01', + 'chamberOfCommerce' => '20091741', + ], + 'address' => [ + 'street' => 'Hoofdtraat', + 'houseNumber' => '90', + 'houseNumberSuffix' => 'A', + 'zipcode' => '8441ER', + 'city' => 'Heerenveen', + 'state' => 'Friesland', + 'country' => 'NL', + ], + ]); + +// In this case, we have the payload stored in the $invoice variable. We can now combine it with the next payment using the combine method + +$response = $buckaroo->method('sepadirectdebit')->combine($invoice)->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'iban' => 'NL13TEST0123456789', + 'bic' => 'TESTNL2A', + 'collectdate' => date('Y-m-d'), + 'mandateReference' => '1DCtestreference', + 'mandateDate' => '2022-07-03', + 'customer' => [ + 'name' => 'John Smith', + ], +]); diff --git a/vendor/buckaroo/sdk/example/additional_services/idin.php b/vendor/buckaroo/sdk/example/additional_services/idin.php new file mode 100644 index 000000000..8fe3a8b68 --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/idin.php @@ -0,0 +1,22 @@ +method('idin')->identify([ + 'issuer' => 'BANKNL2Y', +]); + +//Verify +$response = $buckaroo->method('idin')->verify([ + 'issuer' => 'BANKNL2Y', +]); + +//Login +$response = $buckaroo->method('idin')->login([ + 'issuer' => 'BANKNL2Y', +]); diff --git a/vendor/buckaroo/sdk/example/additional_services/marketplaces.php b/vendor/buckaroo/sdk/example/additional_services/marketplaces.php new file mode 100644 index 000000000..2091ec037 --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/marketplaces.php @@ -0,0 +1,33 @@ +method('marketplaces')->manually()->split([ + 'daysUntilTransfer' => 2, + 'marketplace' => [ + 'amount' => 10, + 'description' => 'INV0001 Commission Marketplace', + ], + 'sellers' => [ + [ + 'accountId' => '789C60F316D24B088ACD471', + 'amount' => 50, + 'description' => 'INV001 Payout Make-Up Products BV', + ], + [ + 'accountId' => '369C60F316D24B088ACD238', + 'amount' => 35, + 'description' => 'INV0001 Payout Beauty Products BV', + ], + ], +]); + +$response = $buckaroo->method('ideal')->combine($marketplace)->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 95.00, + 'issuer' => 'ABNANL2A', +]); diff --git a/vendor/buckaroo/sdk/example/additional_services/pay_per_email.php b/vendor/buckaroo/sdk/example/additional_services/pay_per_email.php new file mode 100644 index 000000000..c45ec115f --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/pay_per_email.php @@ -0,0 +1,23 @@ +method('payperemail')->paymentInvitation([ + 'amountDebit' => 10, + 'invoice' => 'testinvoice 123', + 'merchantSendsEmail' => false, + 'email' => 'johnsmith@gmail.com', + 'expirationDate' => carbon()->addDays()->format('Y-m-d'), + 'paymentMethodsAllowed' => 'ideal,mastercard,paypal', + 'attachment' => '', + 'customer' => [ + 'gender' => Gender::FEMALE, + 'firstName' => 'John', + 'lastName' => 'Smith', + ], +]); diff --git a/vendor/buckaroo/sdk/example/additional_services/subscriptions.php b/vendor/buckaroo/sdk/example/additional_services/subscriptions.php new file mode 100644 index 000000000..d41677feb --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/subscriptions.php @@ -0,0 +1,124 @@ +method('subscriptions')->manually()->createCombined([ + 'pushURL' => 'https://buckaroo.dev/push', + 'includeTransaction' => false, + 'transactionVatPercentage' => 5, + 'configurationCode' => 'gfyh9fe4', + 'email' => 'test@buckaroo.nl', + 'ratePlans' => [ + 'add' => [ + 'startDate' => '2033-01-01', + 'ratePlanCode' => '9863hdcj', + ], + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + 'debtor' => [ + 'code' => 'johnsmith4', + ], +// 'person' => [ +// 'firstName' => 'John', +// 'lastName' => 'Do', +// 'gender' => Gender::FEMALE, +// 'culture' => 'nl-NL', +// 'birthDate' => '1990-01-01' +// ], + 'company' => [ + 'culture' => 'nl-NL', + 'companyName' => 'My Company Coporation', + 'vatApplicable' => true, + 'vatNumber' => 'NL140619562B01', + 'chamberOfCommerce' => '20091741', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '90', + 'zipcode' => '8441ER', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], +]); + +$response = $buckaroo->method('ideal')->combine($subscriptions)->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'issuer' => 'ABNANL2A', +]); +//** END Create Duo Combined */ + +//** START Create Triple Combined */ +$subscriptions = $buckaroo->method('subscriptions')->manually()->createCombined([ + 'pushURL' => 'https://buckaroo.dev/push', + 'includeTransaction' => false, + 'transactionVatPercentage' => 5, + 'configurationCode' => 'gfyh9fe4', + 'email' => 'test@buckaroo.nl', + 'ratePlans' => [ + 'add' => [ + 'startDate' => '2033-01-01', + 'ratePlanCode' => '9863hdcj', + ], + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + 'debtor' => [ + 'code' => 'johnsmith4', + ], +// 'person' => [ +// 'firstName' => 'John', +// 'lastName' => 'Do', +// 'gender' => Gender::FEMALE, +// 'culture' => 'nl-NL', +// 'birthDate' => '1990-01-01' +// ], + 'company' => [ + 'culture' => 'nl-NL', + 'companyName' => 'My Company Coporation', + 'vatApplicable' => true, + 'vatNumber' => 'NL140619562B01', + 'chamberOfCommerce' => '20091741', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '90', + 'zipcode' => '8441ER', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], +]); + +$paypal_extra_info = $buckaroo->method('paypal')->manually()->extraInfo([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'customer' => [ + 'name' => 'John Smith', + ], + 'address' => [ + 'street' => 'Hoofstraat 90', + 'street2' => 'Street 2', + 'city' => 'Heerenveen', + 'state' => 'Friesland', + 'zipcode' => '8441AB', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0612345678', + ], +]); + +$response = $buckaroo->method('paypal')->combine($subscriptions)->combine($paypal_extra_info)->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), +]); +//** END Create Triple Combined */ diff --git a/vendor/buckaroo/sdk/example/additional_services/surepay.php b/vendor/buckaroo/sdk/example/additional_services/surepay.php new file mode 100644 index 000000000..33f5017b7 --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/surepay.php @@ -0,0 +1,15 @@ +method('surepay')->verify([ + 'bankAccount' => [ + 'iban' => 'NL13TEST0123456789', + 'accountName' => 'John Doe', + ], +]); diff --git a/vendor/buckaroo/sdk/example/additional_services/voucher.php b/vendor/buckaroo/sdk/example/additional_services/voucher.php new file mode 100644 index 000000000..4567fa5fc --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/voucher.php @@ -0,0 +1,62 @@ +method('buckaroovoucher')->create( + [ + 'usageType' => '2', + 'validFrom' => '2022-01-01', + 'validUntil' => '2024-01-01', + 'creationBalance' => '5', + ] +); + +//Pay +$response = $buckaroo->method('buckaroovoucher')->pay( + [ + 'amountDebit' => '10', + 'invoice' => uniqid(), + 'vouchercode' => 'vouchercode', + ] +); + + +//Pay +$response = $buckaroo->method('buckaroovoucher')->payRemainder( + [ + 'amountDebit' => '10', + 'invoice' => uniqid(), + 'vouchercode' => 'vouchercode', + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', + ] +); + + +//Refund +$response = $buckaroo->method('buckaroovoucher')->refund( + [ + 'amountCredit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', + ] +); + +//Get Balance +$response = $buckaroo->method('buckaroovoucher')->getBalance( + [ + 'vouchercode' => 'vouchercode', + ] +); + +//Deactivate +$response = $buckaroo->method('buckaroovoucher')->deactivate( + [ + 'vouchercode' => 'vouchercode', + ] +); diff --git a/vendor/buckaroo/sdk/example/additional_services/wallets.php b/vendor/buckaroo/sdk/example/additional_services/wallets.php new file mode 100644 index 000000000..ffd0a5bcb --- /dev/null +++ b/vendor/buckaroo/sdk/example/additional_services/wallets.php @@ -0,0 +1,19 @@ +method('buckaroo_wallet')->createWallet([ + 'walletId' => uniqid(), + 'email' => 'test@buckaroo.nl', + 'customer' => [ + 'firstName' => 'John', + 'lastName' => 'Doe', + ], + 'bankAccount' => [ + 'iban' => 'NL13TEST0123456789', + ], +]); diff --git a/vendor/buckaroo/sdk/example/bootstrap.php b/vendor/buckaroo/sdk/example/bootstrap.php new file mode 100644 index 000000000..cb429d0c7 --- /dev/null +++ b/vendor/buckaroo/sdk/example/bootstrap.php @@ -0,0 +1,9 @@ +load(); diff --git a/vendor/buckaroo/sdk/example/responses/push.php b/vendor/buckaroo/sdk/example/responses/push.php new file mode 100644 index 000000000..05ec5e977 --- /dev/null +++ b/vendor/buckaroo/sdk/example/responses/push.php @@ -0,0 +1,49 @@ + "10.10", + "brq_currency" => "EUR", + "brq_customer_name" => "J. de Tèster", + "brq_invoicenumber" => "SDKDevelopment.com_INVOICE_NO_628c6d032af90", + "brq_ordernumber" => "SDKDevelopment.com_ORDER_NO_628c6d032af95", + "brq_payer_hash" => "2d26d34584a4eafeeaa97eed10cfdae22ae64cdce1649a80a55fafca8850e3e22cb32eb7c8fc95ef0c6f96669a21651d4734cc568816f9bd59c2092911e6c0da", + "brq_payment" => "D44ACDD0F99D4A1C811D2CD3EFDB05BA", + "brq_payment_method" => "ideal", + "brq_SERVICE_ideal_consumerBIC" => "RABONL2U", + "brq_SERVICE_ideal_consumerIBAN" => "NL44RABO0123456789", + "brq_SERVICE_ideal_consumerIssuer" => "ABN AMRO", + "brq_SERVICE_ideal_consumerName" => "J. de Tèster", + "brq_SERVICE_ideal_transactionId" => "0000000000000001", + "brq_statuscode" => "190", + "brq_statuscode_detail" => "S001", + "brq_statusmessage" => "Transaction successfully processed", + "brq_test" => "true", + "brq_timestamp" => "2022-05-24 07:29:09", + "brq_transactions" => "4C1BE53E2C42412AB32A799D9316E7DD", + "brq_websitekey" => "IBjihN7Fhp", + "brq_signature" => "bf7a62c830da2d2e004199919a8fe0d53b0668f5", +]; + +$reply_handler = new ReplyHandler($buckaroo->client()->config(), $post_data); +$reply_handler->validate(); +$reply_handler->isValid(); // Return either true or false +//END HTTP POST PUSH + + +//START JSON PUSH +$auth_header = 'IBjihN7Fhp:0YvyjYAzDQ28W+hQi80f2nhe0Z1QFJLbz7IH//6LsAU=:cad1832100784f57a6e6de835d9f3638:1658227572'; +$post_data = '{"Transaction":{"Key":"5340604668D74435AA344E1428ED1292","Invoice":"62d68b6c8ab0c","ServiceCode":"ideal","Status":{"Code":{"Code":190,"Description":"Success"},"SubCode":{"Code":"S001","Description":"Transaction successfully processed"},"DateTime":"2022-07-19T12:46:12"},"IsTest":true,"Order":"ORDER_NO_62d68b6ca2df3","Currency":"EUR","AmountDebit":10.1,"TransactionType":"C021","Services":[{"Name":"ideal","Action":null,"Parameters":[{"Name":"consumerIssuer","Value":"ABN AMRO"},{"Name":"transactionId","Value":"0000000000000001"},{"Name":"consumerName","Value":"J. de Tèster"},{"Name":"consumerIBAN","Value":"NL44RABO0123456789"},{"Name":"consumerBIC","Value":"RABONL2U"}],"VersionAsProperty":2}],"CustomParameters":null,"AdditionalParameters":{"List":[{"Name":"initiated_by_magento","Value":"1"},{"Name":"service_action","Value":"something"}]},"MutationType":1,"RelatedTransactions":null,"IsCancelable":false,"IssuingCountry":null,"StartRecurrent":false,"Recurring":false,"CustomerName":"J. de Tèster","PayerHash":"2d26d34584a4eafeeaa97eed10cfdae22ae64cdce1649a80a55fafca8850e3e22cb32eb7c8fc95ef0c6f96669a21651d4734cc568816f9bd59c2092911e6c0da","PaymentKey":"AEC974D455FF4A4B9B4C21E437A04838","Description":null}}'; +$uri = 'https://buckaroo.dev/push'; + +$reply_handler = new ReplyHandler($buckaroo->client()->config(), $post_data, $auth_header, $uri); +$reply_handler->validate(); +$reply_handler->isValid(); // Return either true or false +//END JSON PUSH diff --git a/vendor/buckaroo/sdk/example/responses/return.php b/vendor/buckaroo/sdk/example/responses/return.php new file mode 100644 index 000000000..319091bc3 --- /dev/null +++ b/vendor/buckaroo/sdk/example/responses/return.php @@ -0,0 +1,36 @@ + "10.10", + "brq_currency" => "EUR", + "brq_customer_name" => "J. de Tèster", + "brq_invoicenumber" => "SDKDevelopment.com_INVOICE_NO_628c6d032af90", + "brq_ordernumber" => "SDKDevelopment.com_ORDER_NO_628c6d032af95", + "brq_payer_hash" => "2d26d34584a4eafeeaa97eed10cfdae22ae64cdce1649a80a55fafca8850e3e22cb32eb7c8fc95ef0c6f96669a21651d4734cc568816f9bd59c2092911e6c0da", + "brq_payment" => "D44ACDD0F99D4A1C811D2CD3EFDB05BA", + "brq_payment_method" => "ideal", + "brq_SERVICE_ideal_consumerBIC" => "RABONL2U", + "brq_SERVICE_ideal_consumerIBAN" => "NL44RABO0123456789", + "brq_SERVICE_ideal_consumerIssuer" => "ABN AMRO", + "brq_SERVICE_ideal_consumerName" => "J. de Tèster", + "brq_SERVICE_ideal_transactionId" => "0000000000000001", + "brq_statuscode" => "190", + "brq_statuscode_detail" => "S001", + "brq_statusmessage" => "Transaction successfully processed", + "brq_test" => "true", + "brq_timestamp" => "2022-05-24 07:29:09", + "brq_transactions" => "4C1BE53E2C42412AB32A799D9316E7DD", + "brq_websitekey" => "IBjihN7Fhp", + "brq_signature" => "bf7a62c830da2d2e004199919a8fe0d53b0668f5", +]; + +$buckaroo = new BuckarooClient($_ENV['BPE_WEBSITE_KEY'], $_ENV['BPE_SECRET_KEY']); + +$replyHandler = $buckaroo->payment($returnReponse['brq_payment_method'])->handleReply($returnReponse); +$replyHandler->validate(); + +$replyHandler->isValid(); diff --git a/vendor/buckaroo/sdk/example/transactions/afterpay.php b/vendor/buckaroo/sdk/example/transactions/afterpay.php new file mode 100644 index 000000000..80ff3eab8 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/afterpay.php @@ -0,0 +1,179 @@ +method('afterpay')->pay([ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'clientIP' => '127.0.0.1', + 'billing' => [ + 'recipient' => [ + 'category' => RecipientCategory::PERSON, + 'careOf' => 'John Smith', + 'title' => 'Mrs', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + 'conversationLanguage' => 'NL', + 'identificationNumber' => 'IdNumber12345', + 'customerNumber' => 'customerNumber12345', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => RecipientCategory::COMPANY, + 'careOf' => 'John Smith', + 'companyName' => 'Buckaroo B.V.', + 'firstName' => 'John', + 'lastName' => 'Do', + 'chamberOfCommerce' => '12345678', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], +]); + +//Authorize +$response = $buckaroo->method('afterpay')->authorize([ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'clientIP' => '127.0.0.1', + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'grossUnitPrice' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'grossUnitPrice' => '10.10', + ], + ], + 'customer' => [ + 'useBillingInfoForShipping' => false, + 'billing' => [ + 'firstName' => 'Test', + 'lastName' => 'Acceptatie', + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => '0109876543', + 'street' => 'Hoofdstraat', + 'streetNumber' => '80', + 'streetNumberAdditional' => 'A', + 'postalCode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + 'salutation' => 'Mr', + 'birthDate' => '01-01-1990', + ], + 'shipping' => [ + 'firstName' => 'Test', + 'lastName' => 'Aflever', + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => '0109876543', + 'street' => 'Hoofdstraat', + 'streetNumber' => '80', + 'streetNumberAdditional' => 'A', + 'postalCode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + 'salutation' => 'Mr', + 'birthDate' => '01-01-1990', + ], + ], +]); + +//Capture +$response = $buckaroo->method('afterpay')->capture([ + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', //Set transaction key of the transaction to capture + 'invoice' => '628603a20c375', //Set invoice id + 'amountDebit' => 50.30, //set amount to capture + 'clientIP' => '127.0.0.1', + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'grossUnitPrice' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'grossUnitPrice' => '10.10', + ], + ], +]); + +//Refund +$response = $buckaroo->method('afterpay')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); + +//Partial refund +$response = $buckaroo->method('afterpay')->refund([ + 'invoice' => 'testinvoice 123', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', //Set transaction key of the transaction to refund + 'amountCredit' => 1.23, + 'articles' => [ + [ + 'refundType' => 'Return', + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + ], +]); diff --git a/vendor/buckaroo/sdk/example/transactions/afterpaydigiaccept.php b/vendor/buckaroo/sdk/example/transactions/afterpaydigiaccept.php new file mode 100644 index 000000000..eb9f01b10 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/afterpaydigiaccept.php @@ -0,0 +1,241 @@ +method('afterpaydigiaccept')->pay([ + 'amountDebit' => 40.50, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'b2b' => true, + 'addressesDiffer' => true, + 'customerIPAddress' => '0.0.0.0', + 'shippingCosts' => 0.5, + 'costCentre' => 'Test', + 'department' => 'Test', + 'establishmentNumber' => '123456', + 'billing' => [ + 'recipient' => [ + 'gender' => Gender::FEMALE, + 'initials' => 'AB', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + 'culture' => 'NL', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'culture' => 'NL', + 'gender' => Gender::MALE, + 'initials' => 'YJ', + 'lastName' => 'Jansen', + 'companyName' => 'Buckaroo B.V.', + 'birthDate' => '1990-01-01', + 'chamberOfCommerce' => '12345678', + 'vatNumber' => 'NL12345678', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => uniqid(), + 'description' => 'Blue Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + [ + 'identifier' => uniqid(), + 'description' => 'Red Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + ], +]); + +//Authorize +$response = $buckaroo->method('afterpaydigiaccept')->authorize([ + 'amountDebit' => 40.50, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'b2b' => true, + 'addressesDiffer' => true, + 'customerIPAddress' => '0.0.0.0', + 'shippingCosts' => 0.5, + 'costCentre' => 'Test', + 'department' => 'Test', + 'establishmentNumber' => '123456', + 'billing' => [ + 'recipient' => [ + 'gender' => Gender::FEMALE, + 'initials' => 'AB', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + 'culture' => 'NL', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'culture' => 'NL', + 'gender' => Gender::MALE, + 'initials' => 'YJ', + 'lastName' => 'Jansen', + 'companyName' => 'Buckaroo B.V.', + 'birthDate' => '1990-01-01', + 'chamberOfCommerce' => '12345678', + 'vatNumber' => 'NL12345678', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => uniqid(), + 'description' => 'Blue Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + [ + 'identifier' => uniqid(), + 'description' => 'Red Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + ], +]); + +//Capture +$response = $buckaroo->method('afterpaydigiaccept')->pay([ + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + 'amountDebit' => 40.50, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'b2b' => true, + 'addressesDiffer' => true, + 'customerIPAddress' => '0.0.0.0', + 'shippingCosts' => 0.5, + 'costCentre' => 'Test', + 'department' => 'Test', + 'establishmentNumber' => '123456', + 'billing' => [ + 'recipient' => [ + 'gender' => Gender::FEMALE, + 'initials' => 'AB', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + 'culture' => 'NL', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'culture' => 'NL', + 'gender' => Gender::MALE, + 'initials' => 'YJ', + 'lastName' => 'Jansen', + 'companyName' => 'Buckaroo B.V.', + 'birthDate' => '1990-01-01', + 'chamberOfCommerce' => '12345678', + 'vatNumber' => 'NL12345678', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => uniqid(), + 'description' => 'Blue Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + [ + 'identifier' => uniqid(), + 'description' => 'Red Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + ], +]); + +//Refund +$response = $buckaroo->method('afterpaydigiaccept')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/alipay.php b/vendor/buckaroo/sdk/example/transactions/alipay.php new file mode 100644 index 000000000..9d0ff33bd --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/alipay.php @@ -0,0 +1,21 @@ +method('alipay')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'useMobileView' => true, +]); + +//Refund +$response = $buckaroo->method('alipay')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/applepay.php b/vendor/buckaroo/sdk/example/transactions/applepay.php new file mode 100644 index 000000000..4cc4a12e9 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/applepay.php @@ -0,0 +1,31 @@ +method('applepay')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'paymentData' => uniqid(), + 'customerCardName' => 'Buck Aroo', +]); + +//Pay Redirect +$response = $buckaroo->method('applepay')->payRedirect([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'servicesSelectableByClient' => 'applepay', + 'continueOnIncomplete' => '1', +]); + +//Refund +$response = $buckaroo->method('applepay')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/applepay_redirect.php b/vendor/buckaroo/sdk/example/transactions/applepay_redirect.php new file mode 100644 index 000000000..e1e4a63bd --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/applepay_redirect.php @@ -0,0 +1,24 @@ +method('applepay')->payRedirect([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'servicesSelectableByClient' => 'applepay', + 'continueOnIncomplete' => '1', +]); + + +//Refund +$response = $buckaroo->method('applepay')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/bancontact.php b/vendor/buckaroo/sdk/example/transactions/bancontact.php new file mode 100644 index 000000000..fbfa1e1d8 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/bancontact.php @@ -0,0 +1,39 @@ +method('bancontactmrcash')->pay([ + //'saveToken' => true, //SaveToken is the parameter used to indicate if a token is to be created, that can be used for Wallet Initiated Payments in the future. + //'encryptedCardData' => '', //If this is set PayEncryoted Action will be used. The value of this parameter is the result of the "encryptCardData"-function of our Client Side Encryption SDK. + 'invoice' => uniqid(), + 'amountDebit' => 10.10, +]); + +//PayEncrypted +$response = $buckaroo->method('bancontactmrcash')->payEncrypted([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'description' => 'Bancontact PayEncrypted Test 123', + 'encryptedCardData' => '001SlXfd8MbiTd/JFwCiGVs3f6o4x6xt0aN29NzOSNZHPKlVsz/EWeQmyhb1gGZ86VY88DP7gfDV+UyjcPfpVfHZd7u+WkO71hnV2QfYILCBNqE1aiPv2GQVGdaGbuoQloKu1o3o3I1UDmVxivXTMQX76ovot89geA6hqbtakmpmvxeiwwea3l4htNoX1IlD1hfYkDDl9rzSu5ypcjvVs6aRGXK5iMHnyrmEsEnfdj/Q5XWbsD5xAm4u3y6J8d4UP7LB31VLECzZUTiJOtKKcCQlT01YThIkQlj8PWBBMtt4H52VN3IH2+wPYtR8HiOZzcA2HA7UxozogIpS53tIURj/g==', +]); + +//Recurrent payment +$response = $buckaroo->method('bancontactmrcash')->payRecurrent([ + 'invoice' => 'testinvoice 123', + 'amountDebit' => 10.50, + 'originalTransactionKey' => '91D08EC01F414926A4CA29C059XXXXXX', +]); + + +//Refund +$response = $buckaroo->method('bancontactmrcash')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/belfius.php b/vendor/buckaroo/sdk/example/transactions/belfius.php new file mode 100644 index 000000000..06945fd06 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/belfius.php @@ -0,0 +1,21 @@ +method('belfius')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, +]); + +//Refund +$response = $buckaroo->method('belfius')->refund([ + 'invoice' => 'INVOICE_NO_628cf7f4f3c79', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '59AA593AFB3D4B4C8524ACB71EDDCE40', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/billink.php b/vendor/buckaroo/sdk/example/transactions/billink.php new file mode 100644 index 000000000..2fcfb3a18 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/billink.php @@ -0,0 +1,189 @@ +method('billink')->pay([ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'trackAndTrace' => 'TR0F123456789', + 'vATNumber' => '2', + 'billing' => [ + 'recipient' => [ + 'category' => 'B2B', + 'careOf' => 'John Smith', + 'title' => 'Female', + 'initials' => 'JD', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '01-01-1990', + 'chamberOfCommerce' => 'TEST', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2C', + 'careOf' => 'John Smith', + 'title' => 'Male', + 'initials' => 'JD', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + 'priceExcl' => 5, + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => 10.10, + 'priceExcl' => 5, + ], + ], +]); + +//Authorize +$response = $buckaroo->method('billink')->authorize([ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'trackAndTrace' => 'TR0F123456789', + 'vATNumber' => '2', + 'billing' => [ + 'recipient' => [ + 'category' => 'B2B', + 'careOf' => 'John Smith', + 'title' => 'Female', + 'initials' => 'JD', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '01-01-1990', + 'chamberOfCommerce' => 'TEST', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2C', + 'careOf' => 'John Smith', + 'title' => 'Male', + 'initials' => 'JD', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + 'priceExcl' => 5, + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => 10.10, + 'priceExcl' => 5, + ], + ], +]); + +//Capture +$response = $buckaroo->method('billink')->capture([ + 'originalTransactionKey' => '74AD098CCFAA4F739FE16279B5059B6B', //Set transaction key of the transaction to capture + 'invoice' => '62905fa2650f4', //Set invoice id + 'amountDebit' => 50.30, //set amount to capture + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + 'priceExcl' => 5, + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => 10.10, + 'priceExcl' => 5, + ], + ], +]); + +//Cancel authorize +$response = $buckaroo->method('billink')->cancelAuthorize([ + 'originalTransactionKey' => '74AD098CCFAA4F739FE16279B5059B6B', //Set transaction key of the authorized transaction to cancel + 'invoice' => '62905fa2650f4', //Set invoice id + 'AmountCredit' => 10, //set amount to capture +]); + +//Refund +$response = $buckaroo->method('billink')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/credit_click.php b/vendor/buckaroo/sdk/example/transactions/credit_click.php new file mode 100644 index 000000000..32187c1fc --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/credit_click.php @@ -0,0 +1,30 @@ +method('creditclick')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'email' => 'billingcustomer@buckaroo.nl', + 'customer' => [ + 'firstName' => 'Test', + 'lastName' => 'Aflever', + ], +]); + +//Refund +$response = $buckaroo->method('creditclick')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'description' => 'refund', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + 'serviceParameters' => [ + 'reason' => 'RequestedByCustomer', + ], +]); diff --git a/vendor/buckaroo/sdk/example/transactions/creditcard.php b/vendor/buckaroo/sdk/example/transactions/creditcard.php new file mode 100644 index 000000000..b94da1e06 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/creditcard.php @@ -0,0 +1,81 @@ +method('creditcard')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'visa', +]); + +//Pay Encrypted +$response = $buckaroo->method('creditcard')->payEncrypted([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'mastercard', + 'cardData' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', +]); + +//Pay with security code +$response = $buckaroo->method('creditcard')->payWithSecurityCode([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + 'securityCode' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', +]); + +//Refund +$response = $buckaroo->method('creditcard')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '13FAF43579D94F5FB8119A6819XXXXXX', + 'name' => 'mastercard', +]); + +//Authorize +$response = $buckaroo->method('creditcard')->authorize([ + 'amountDebit' => 10, + 'invoice' => 'testinvoice 123', + 'name' => 'mastercard', +]); + +//Authorize Encrypted +$response = $buckaroo->method('creditcard')->authorizeEncrypted([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'mastercard', + 'cardData' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', +]); + +//Authorize with security code +$response = $buckaroo->method('creditcard')->authorizeWithSecurityCode([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + 'securityCode' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', +]); + +//Capture +$response = $buckaroo->method('creditcard')->capture([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + 'securityCode' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', +]); + +//Pay Recurrent +$response = $buckaroo->method('creditcard')->payRecurrent([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + 'securityCode' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/eps.php b/vendor/buckaroo/sdk/example/transactions/eps.php new file mode 100644 index 000000000..426ed7ae4 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/eps.php @@ -0,0 +1,21 @@ +method('eps')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, +]); + +//Refund +$response = $buckaroo->method('eps')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/giftcards.php b/vendor/buckaroo/sdk/example/transactions/giftcards.php new file mode 100644 index 000000000..a01fdd31e --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/giftcards.php @@ -0,0 +1,25 @@ +method('giftcard')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'boekenbon', + 'intersolveCardnumber' => '0000000000000000001', + 'intersolvePIN' => '1000', +]); + +//Refund +$response = $buckaroo->method('giftcard')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + 'name' => 'boekenbon', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/giftcards_redirect.php b/vendor/buckaroo/sdk/example/transactions/giftcards_redirect.php new file mode 100644 index 000000000..007e2ae64 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/giftcards_redirect.php @@ -0,0 +1,25 @@ +method('giftcard')->payRedirect([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'servicesSelectableByClient' => 'westlandbon,ideal,babygiftcard,babyparkgiftcard,beautywellness,boekenbon,boekenvoordeel,designshopsgiftcard,fashioncheque,fashionucadeaukaart,fijncadeau,koffiecadeau,kokenzo,kookcadeau,nationaleentertainmentcard,naturesgift,podiumcadeaukaart,shoesaccessories,webshopgiftcard,wijncadeau,wonenzo,yourgift,vvvgiftcard,parfumcadeaukaart', + 'continueOnIncomplete' => '1', +]); + + +//Refund +$response = $buckaroo->method('giftcard')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '50891AED2D9647668A2F48C87B3000EE', + 'name' => 'boekenbon', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/giropay.php b/vendor/buckaroo/sdk/example/transactions/giropay.php new file mode 100644 index 000000000..d1cfbac06 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/giropay.php @@ -0,0 +1,22 @@ +method('giropay')->pay([ + 'invoice' => uniqid(), + 'bic' => 'GENODETT488', + 'amountDebit' => 10.10, +]); + +//Refund +$response = $buckaroo->method('giropay')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/ideal.php b/vendor/buckaroo/sdk/example/transactions/ideal.php new file mode 100644 index 000000000..4400853b1 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/ideal.php @@ -0,0 +1,26 @@ +method('ideal')->pay([ + 'returnURL' => 'https://example.com/return', + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'issuer' => 'ABNANL2A', +]); + +//Refund +$response = $buckaroo->method('ideal')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); + +//Get issuers +$buckaroo->method('ideal')->issuers(); diff --git a/vendor/buckaroo/sdk/example/transactions/ideal_qr.php b/vendor/buckaroo/sdk/example/transactions/ideal_qr.php new file mode 100644 index 000000000..053d91763 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/ideal_qr.php @@ -0,0 +1,23 @@ +method('ideal_qr')->generate([ + 'description' => 'Test purchase', + 'returnURL' => 'https://buckaroo.dev./return', + 'minAmount' => '0.10', + 'maxAmount' => '10.0', + 'imageSize' => '2000', + 'purchaseId' => 'Testpurchase123', + 'isOneOff' => false, + 'amount' => '1.00', + 'amountIsChangeable' => true, + 'expiration' => '2030-09-30', + 'isProcessing' => false, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/in3.php b/vendor/buckaroo/sdk/example/transactions/in3.php new file mode 100644 index 000000000..64ec35dff --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/in3.php @@ -0,0 +1,98 @@ + 52.30, + 'description' => 'in3 pay', + 'order' => uniqid(), + 'invoice' => uniqid(), + 'clientIP' => '127.0.0.1', + 'billing' => [ + 'recipient' => [ + 'category' => 'B2C', + 'initials' => 'J', + 'firstName' => 'John', + 'lastName' => 'Dona', + 'birthDate' => '1990-01-01', + 'customerNumber' => '12345', + 'phone' => '0612345678', + 'country' => 'NL', + 'companyName' => 'My Company B.V.', + 'chamberOfCommerce' => '123456' + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'phone' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2C', + 'careOf' => 'John Smith', + 'firstName' => 'John', + 'lastName' => 'Do', + 'chamberOfCommerce' => '123456' + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'type' => 'Physical', + 'description' => 'Blue Toy Car', + 'category' => 'test product', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'type' => 'Physical', + 'description' => 'Red Toy Car', + 'category' => 'test product', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + [ + 'identifier' => 'USPShippingID', + 'type' => 'Physical', + 'description' => 'UPS', + 'category' => 'test product', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '2', + ], + ] +]; + +//Also accepts json +//Pay +$response = $buckaroo->method('in3')->pay($payload); + +//Refund +$response = $buckaroo->method('in3')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/in3old.php b/vendor/buckaroo/sdk/example/transactions/in3old.php new file mode 100644 index 000000000..77272c075 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/in3old.php @@ -0,0 +1,78 @@ + 9.5, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'description' => 'This is a test order', + 'invoiceDate' => '22-01-2018', + 'customerType' => 'Company', + 'email' => 'test@buckaroo.nl', + 'phone' => [ + 'mobile' => '0612345678', + ], + 'articles' => [ + [ + 'identifier' => uniqid(), + 'description' => 'Blue Toy Car', + 'quantity' => '1', + 'price' => 10.00, + ], + ], + 'company' => [ + 'companyName' => 'My Company B.V.', + 'chamberOfCommerce' => '123456', + ], + 'customer' => [ + 'gender' => Gender::FEMALE, + 'initials' => 'J.S.', + 'lastName' => 'Aflever', + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => '0610000000', + 'culture' => 'nl-NL', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '2', + 'houseNumberAdditional' => 'a', + 'zipcode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'subtotals' => [ + [ + 'name' => 'Korting', + 'value' => -2.00, + ], + [ + 'name' => 'Betaaltoeslag', + 'value' => 0.50, + ], + [ + 'name' => 'Verzendkosten', + 'value' => 1.00, + ], + ], +]; + +//Also accepts json +//Pay +$response = $buckaroo->method('in3Old')->pay($payload); + +//Pay installment +$response = $buckaroo->method('in3Old')->payInInstallments($payload); + +//Refund +$response = $buckaroo->method('in3Old')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/kbc.php b/vendor/buckaroo/sdk/example/transactions/kbc.php new file mode 100644 index 000000000..a3e056a41 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/kbc.php @@ -0,0 +1,22 @@ +method('kbcpaymentbutton')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, +]); + + +//Refund +$response = $buckaroo->method('kbcpaymentbutton')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/klarna.php b/vendor/buckaroo/sdk/example/transactions/klarna.php new file mode 100644 index 000000000..5ea0e212f --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/klarna.php @@ -0,0 +1,141 @@ +method('klarna')->pay([ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'billing' => [ + 'recipient' => [ + 'category' => 'B2C', + 'gender' => 'female', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2B', + 'gender' => 'male', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], +]); + +//PayInInstallments +$response = $buckaroo->method('klarna')->payInInstallments([ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'currency' => 'GBP', + 'billing' => [ + 'recipient' => [ + 'category' => 'B2C', + 'gender' => 'female', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'GB', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2B', + 'gender' => 'male', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'GB', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], +]); + +//Refund +$response = $buckaroo->method('klarna')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/klarnakp.php b/vendor/buckaroo/sdk/example/transactions/klarnakp.php new file mode 100644 index 000000000..15f878870 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/klarnakp.php @@ -0,0 +1,68 @@ +method('klarnakp')->reserve([ + 'invoice' => uniqid(), + 'gender' => "1", + 'operatingCountry' => 'NL', + 'pno' => '01011990', + 'billing' => [ + 'recipient' => [ + 'firstName' => 'John', + 'lastName' => 'Do', + ], + 'address' => [ + 'street' => 'Neherkade', + 'houseNumber' => '1', + 'zipcode' => '2521VA', + 'city' => 'Gravenhage', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + 'email' => 'youremail@example.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'firstName' => 'John', + 'lastName' => 'Do', + ], + 'address' => [ + 'street' => 'Rosenburglaan', + 'houseNumber' => '216', + 'zipcode' => '4385 JM', + 'city' => 'Vlissingen', + 'country' => 'NL', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], +]); + +//Refund +$response = $buckaroo->method('klarnakp')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/noservicespecified.php b/vendor/buckaroo/sdk/example/transactions/noservicespecified.php new file mode 100644 index 000000000..c68fde4f4 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/noservicespecified.php @@ -0,0 +1,27 @@ +method(null)->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'servicesSelectableByClient' => 'ideal,bancontactmrcash,paypal', + 'servicesExcludedForClient' => 'ideal', + 'continueOnIncomplete' => '1', +]); + + +//Refund +$response = $buckaroo->method(null)->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/payconiq.php b/vendor/buckaroo/sdk/example/transactions/payconiq.php new file mode 100644 index 000000000..af2521f99 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/payconiq.php @@ -0,0 +1,22 @@ +method('payconiq')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'description' => 'Payment for testinvoice123', +]); + +//Refund +$response = $buckaroo->method('payconiq')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/payment_initiation.php b/vendor/buckaroo/sdk/example/transactions/payment_initiation.php new file mode 100644 index 000000000..b8eb9eb2f --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/payment_initiation.php @@ -0,0 +1,23 @@ +method('paybybank')->pay([ + 'returnURL' => 'https://example.com/return', + 'amountDebit' => 10, + 'description' => 'Payment for testinvoice123', + 'issuer' => 'ABNANL2A', +]); + +//Refund +$response = $buckaroo->method('paybybank')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10, +]); \ No newline at end of file diff --git a/vendor/buckaroo/sdk/example/transactions/paypal.php b/vendor/buckaroo/sdk/example/transactions/paypal.php new file mode 100644 index 000000000..d29585276 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/paypal.php @@ -0,0 +1,48 @@ +method('paypal')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), +]); + +//Recurrent Payment +$response = $buckaroo->method('paypal')->payRecurrent([ + 'amountDebit' => 10, + 'originalTransactionKey' => 'C32C0B52E1FE4A37835FFB1716XXXXXX', + 'invoice' => uniqid(), +]); + +//Pay with extra info +$response = $buckaroo->method('paypal')->extraInfo([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'customer' => [ + 'name' => 'John Smith', + ], + 'address' => [ + 'street' => 'Hoofstraat 90', + 'street2' => 'Street 2', + 'city' => 'Heerenveen', + 'state' => 'Friesland', + 'zipcode' => '8441AB', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0612345678', + ], +]); + +//Refund +$response = $buckaroo->method('paypal')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/pos.php b/vendor/buckaroo/sdk/example/transactions/pos.php new file mode 100644 index 000000000..d0b9b4b96 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/pos.php @@ -0,0 +1,15 @@ +method('pospayment')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'terminalID' => '50000001', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/przelewy24.php b/vendor/buckaroo/sdk/example/transactions/przelewy24.php new file mode 100644 index 000000000..70ceaaaf4 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/przelewy24.php @@ -0,0 +1,26 @@ +method("przelewy24")->pay([ + 'amountDebit' => 3.5, + 'invoice' => uniqid(), + 'email' => 'test@test.nl', + 'customer' => [ + 'firstName' => 'John', + 'lastName' => 'Smith', + ], +]); + +//Refund +$response = $buckaroo->method('przelewy24')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/sepa.php b/vendor/buckaroo/sdk/example/transactions/sepa.php new file mode 100644 index 000000000..f46409760 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/sepa.php @@ -0,0 +1,29 @@ +method('sepadirectdebit')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'iban' => 'NL13TEST0123456789', + 'bic' => 'TESTNL2A', + 'collectdate' => '2022-12-01', + 'mandateReference' => '1DCtestreference', + 'mandateDate' => '2022-07-03', + 'customer' => [ + 'name' => 'John Smith', + ], +]); + +//Refund +$response = $buckaroo->method('sepadirectdebit')->refund([ + 'invoice' => 'INVOICE_NO_628d386d9b9d4', //Set invoice number of the transaction to refund + 'originalTransactionKey' => 'B6DDFC65AE074CB7AF2C0EA015D473D0', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/sofort.php b/vendor/buckaroo/sdk/example/transactions/sofort.php new file mode 100644 index 000000000..877c8f599 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/sofort.php @@ -0,0 +1,22 @@ +method('sofortueberweisung')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, +]); + + +//Refund +$response = $buckaroo->method('sofortueberweisung')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/thunes.php b/vendor/buckaroo/sdk/example/transactions/thunes.php new file mode 100644 index 000000000..0551656fd --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/thunes.php @@ -0,0 +1,29 @@ +method('thunes')->pay([ + 'amountDebit' => 30.20, + 'name' => 'monizzeecovoucher', + 'order' => uniqid(), + 'invoice' => uniqid(), + 'clientIP' => '127.0.0.1', + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'price' => '10.10', + ], + ], +]); diff --git a/vendor/buckaroo/sdk/example/transactions/tinka.php b/vendor/buckaroo/sdk/example/transactions/tinka.php new file mode 100644 index 000000000..441b53e0b --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/tinka.php @@ -0,0 +1,81 @@ +method('tinka')->pay([ + 'amountDebit' => 3.5, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'description' => 'This is a test order', + 'paymentMethod' => 'Credit', + 'deliveryMethod' => 'Locker', + 'deliveryDate' => '2030-01-01', + 'articles' => [ + [ + 'type' => 1, + 'description' => 'Blue Toy Car', + 'brand' => 'Ford Focus', + 'manufacturer' => 'Ford', + 'color' => 'Red', + 'size' => 'Small', + 'quantity' => '1', + 'price' => '3.5', + 'unitCode' => 'test', + ], + ], + 'customer' => [ + 'gender' => Gender::MALE, + 'firstName' => 'Buck', + 'lastName' => 'Aroo', + 'initials' => 'BA', + 'birthDate' => '1990-01-01', + ], + 'billing' => [ + 'recipient' => [ + 'lastNamePrefix' => 'the', + ], + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => [ + 'mobile' => '0109876543', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '80', + 'houseNumberAdditional' => 'A', + 'zipcode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + ], + 'shipping' => [ + 'recipient' => [ + 'lastNamePrefix' => 'the', + ], + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => [ + 'mobile' => '0109876543', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '80', + 'houseNumberAdditional' => 'A', + 'zipcode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + ], +]); + +//Refund +$response = $buckaroo->method('tinka')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/transfer.php b/vendor/buckaroo/sdk/example/transactions/transfer.php new file mode 100644 index 000000000..0e8ad539f --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/transfer.php @@ -0,0 +1,31 @@ +method('transfer')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'email' => 'your@email.com', + 'country' => 'NL', + 'dateDue' => date("Y-m-d"), + 'sendMail' => true, + 'customer' => [ + 'gender' => Gender::MALE, + 'firstName' => 'John', + 'lastName' => 'Smith', + ], +]); + +//Refund +$response = $buckaroo->method('transfer')->refund([ + 'invoice' => '', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '', //Set transaction key of the transaction to refund + 'amountCredit' => 10.10, +]); diff --git a/vendor/buckaroo/sdk/example/transactions/trustly.php b/vendor/buckaroo/sdk/example/transactions/trustly.php new file mode 100644 index 000000000..fca9c7fa4 --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/trustly.php @@ -0,0 +1,26 @@ +method('trustly')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'country' => 'DE', + 'customer' => [ + 'firstName' => 'Test', + 'lastName' => 'Aflever', + ], +]); + +//Refund +$response = $buckaroo->method('trustly')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', +]); diff --git a/vendor/buckaroo/sdk/example/transactions/wechat.php b/vendor/buckaroo/sdk/example/transactions/wechat.php new file mode 100644 index 000000000..fbf1ff56a --- /dev/null +++ b/vendor/buckaroo/sdk/example/transactions/wechat.php @@ -0,0 +1,22 @@ +method('wechatpay')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'locale' => 'en-US', +]); + +//Refund +$response = $buckaroo->method('wechatpay')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', +]); diff --git a/vendor/buckaroo/sdk/phpcs.xml b/vendor/buckaroo/sdk/phpcs.xml new file mode 100644 index 000000000..e60e272dc --- /dev/null +++ b/vendor/buckaroo/sdk/phpcs.xml @@ -0,0 +1,22 @@ + + + Buckaroo SDK coding standard. + + src + + + src + + + + *.php + + + + src/PaymentMethods/iDeal/iDeal.php + src/PaymentMethods/iDealQR/iDealQR.php + src/PaymentMethods/iDin/iDin.php + + + + \ No newline at end of file diff --git a/vendor/buckaroo/sdk/phpunit.xml b/vendor/buckaroo/sdk/phpunit.xml new file mode 100644 index 000000000..b57d1976c --- /dev/null +++ b/vendor/buckaroo/sdk/phpunit.xml @@ -0,0 +1,12 @@ + + + + tests + + + + + + + + diff --git a/vendor/buckaroo/sdk/src/BuckarooClient.php b/vendor/buckaroo/sdk/src/BuckarooClient.php new file mode 100644 index 000000000..ad682cc41 --- /dev/null +++ b/vendor/buckaroo/sdk/src/BuckarooClient.php @@ -0,0 +1,149 @@ +config = $websiteKey; + } + + if (is_string($websiteKey)) + { + $this->config = $this->getConfig($websiteKey, $secretKey, $mode); + } + + $this->client = new Client($this->config); + } + + /** + * @param string $method + * @return PaymentFacade + */ + public function method(string $method = null): PaymentFacade + { + return new PaymentFacade($this->client, $method); + } + + /** + * @param array $transactions + * @return BatchTransactions + */ + public function batch(array $transactions): BatchTransactions + { + return new BatchTransactions($this->client, $transactions); + } + + /** + * @param string $transactionKey + * @return TransactionService + */ + public function transaction(string $transactionKey): TransactionService + { + return new TransactionService($this->client, $transactionKey); + } + + /** + * @return bool + */ + public function confirmCredential(): bool + { + $credentialHandler = new Credentials($this->client, $this->config); + + return $credentialHandler->confirm(); + } + + /** + * @param LoggingObserver $observer + * @return $this + */ + public function attachLogger(LoggingObserver $observer) + { + $this->config->getLogger()->attach($observer); + + return $this; + } + + /** + * @param Config $config + * @return $this + */ + public function setConfig(Config $config) + { + $this->client->config($config); + + return $this; + } + + /** + * @return Client + */ + public function client() + { + return $this->client; + } + + /** + * @param string $websiteKey + * @param string $secretKey + * @param string|null $mode + * @return Config|null + */ + private function getConfig(string $websiteKey, string $secretKey, string $mode = null): ?Config + { + if ($websiteKey && $secretKey) + { + return new DefaultConfig($websiteKey, $secretKey, $mode); + } + + throw new BuckarooException(null, "Config is missing."); + } +} diff --git a/vendor/buckaroo/sdk/src/Config/Config.php b/vendor/buckaroo/sdk/src/Config/Config.php new file mode 100644 index 000000000..dddfc0c46 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Config/Config.php @@ -0,0 +1,360 @@ +websiteKey = $websiteKey; + $this->secretKey = $secretKey; + + $this->mode = $_ENV['BPE_MODE'] ?? $mode ?? 'test'; + $this->currency = $_ENV['BPE_CURRENCY_CODE'] ?? $currency ?? 'EUR'; + $this->returnURL = $_ENV['BPE_RETURN_URL'] ?? $returnURL ?? ''; + $this->returnURLCancel = $_ENV['BPE_RETURN_URL_CANCEL'] ?? $returnURLCancel ?? ''; + $this->pushURL = $_ENV['BPE_PUSH_URL'] ?? $pushURL ?? ''; + $this->platformName = $_ENV['PlatformName'] ?? $platformName ?? 'Empty Platform Name'; + $this->platformVersion = $_ENV['PlatformVersion'] ?? $platformVersion ?? '1.0.0'; + $this->moduleSupplier = $_ENV['ModuleSupplier'] ?? $moduleSupplier ?? 'Empty Module Supplier'; + $this->moduleName = $_ENV['ModuleName'] ?? $moduleName ?? 'Empty Module name'; + $this->moduleVersion = $_ENV['ModuleVersion'] ?? $moduleVersion ?? '1.0.0'; + $this->culture = $_ENV['Culture'] ?? $culture ?? ''; + $this->channel = $_ENV['Channel'] ?? $channel ?? ''; + + $this->setLogger($logger ?? new DefaultLogger()); + } + + /** + * @return string + */ + public function websiteKey(): string + { + return $this->websiteKey; + } + + /** + * @return string + */ + public function secretKey(): string + { + return $this->secretKey; + } + + /** + * @return bool + */ + public function isLiveMode(): bool + { + return $this->mode == self::LIVE_MODE; + } + + /** + * @param string|null $mode + * @return string + */ + public function mode(?string $mode = null): string + { + if ($mode && in_array($mode, [self::LIVE_MODE, self::TEST_MODE])) + { + $this->mode = $mode; + } + + return $this->mode; + } + + /** + * @return string + */ + public function currency(): string + { + return $this->currency; + } + + /** + * @return string + */ + public function returnURL(): string + { + return $this->returnURL; + } + + /** + * @return string + */ + public function returnURLCancel(): string + { + return $this->returnURLCancel; + } + + /** + * @return string + */ + public function pushURL(): string + { + return $this->pushURL; + } + + /** + * @return string + */ + public function platformName(): string + { + return $this->platformName; + } + + /** + * @return string + */ + public function platformVersion(): string + { + return $this->platformVersion; + } + + /** + * @return string + */ + public function moduleSupplier(): string + { + return $this->moduleSupplier; + } + + /** + * @return string + */ + public function moduleName(): string + { + return $this->moduleName; + } + + /** + * @return string + */ + public function moduleVersion(): string + { + return $this->moduleVersion; + } + + /** + * @return string + */ + public function culture(): string + { + if (! empty($this->culture)) + { + return $this->culture; + } + + return 'en-GB'; + } + + /** + * @return string + */ + public function channel(): string + { + if (! empty($this->channel)) + { + return $this->channel; + } + return 'Web'; + } + + /** + * @param array $payload + * @return $this + */ + public function merge(array $payload) + { + $payload = $this->filterNonUpdatableKeys($payload); + + foreach ($payload as $key => $value) + { + if (property_exists($this, $key)) + { + $this->$key = $value; + } + } + + return $this; + } + + /** + * @param $payload + * @return array + */ + private function filterNonUpdatableKeys($payload) + { + $filter = ['websiteKey', 'secretKey']; + + return array_filter($payload, function ($k) use ($filter) { + return ! in_array($k, $filter); + }, ARRAY_FILTER_USE_KEY); + } + + /** + * @param array $properties + * @return array + */ + public function get(array $properties = []) + { + $values = []; + + foreach ($properties as $property) + { + if (method_exists($this, $property)) + { + $values[$property] = $this->$property(); + } + } + + return $values; + } + + /** + * @param Subject $logger + * @return $this + */ + public function setLogger(Subject $logger) + { + $this->logger = $logger; + + return $this; + } + + /** + * @return Subject|null + */ + public function getLogger(): ?Subject + { + return $this->logger; + } +} diff --git a/vendor/buckaroo/sdk/src/Config/DefaultConfig.php b/vendor/buckaroo/sdk/src/Config/DefaultConfig.php new file mode 100644 index 000000000..8a82d9580 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Config/DefaultConfig.php @@ -0,0 +1,25 @@ +message($message); + + $this->log($logger, $message); + + parent::__construct($message, $code, $previous); + } + + /** + * @param $logger + * @param $message + * @return $this + */ + private function log($logger, $message) + { + if ($logger) + { + $this->logger = $logger; + $this->logger->error($message); + } + + return $this; + } + + /** + * @param string $message + * @return string + */ + protected function message(string $message): string + { + return 'Buckaroo SDKExeption: ' . $message; + } +} diff --git a/vendor/buckaroo/sdk/src/Exceptions/TransferException.php b/vendor/buckaroo/sdk/src/Exceptions/TransferException.php new file mode 100644 index 000000000..a600da50e --- /dev/null +++ b/vendor/buckaroo/sdk/src/Exceptions/TransferException.php @@ -0,0 +1,35 @@ +client = $client; + $this->config = $config; + } + + /** + * @return bool + */ + public function confirm(): bool + { + $serviceList = new ServiceList('ideal', 2, 'Specification'); + + $request = new TransactionRequest; + + try + { + $response = $this->client->specification($request, 'ideal', 2); + } catch (BuckarooException $e) + { + return false; + } + + if ($response->getHttpResponse()->getStatusCode() == 200) + { + return true; + } + + return false; + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/HMAC/Generator.php b/vendor/buckaroo/sdk/src/Handlers/HMAC/Generator.php new file mode 100644 index 000000000..e2c1fc91e --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/HMAC/Generator.php @@ -0,0 +1,95 @@ +config = $config; + $this->method = $method; + + $this->base64Data($data); + $this->uri($uri); + $this->nonce(Uuid::uuid4()); + $this->time(time()); + } + + /** + * @return string + */ + public function generate() + { + $hashString = $this->config->websiteKey() . + $this->method . $this->uri . + $this->time . $this->nonce . + $this->base64Data; + + $hash = hash_hmac('sha256', $hashString, $this->config->secretKey(), true); + $hmac = base64_encode($hash); + + return implode(':', [ + $this->config->websiteKey(), + $hmac, + $this->nonce, + $this->time, + ]); + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/HMAC/Hmac.php b/vendor/buckaroo/sdk/src/Handlers/HMAC/Hmac.php new file mode 100644 index 000000000..0ef34533e --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/HMAC/Hmac.php @@ -0,0 +1,91 @@ +uri = strtolower(urlencode($uri)); + } + + return $this->uri; + } + + /** + * @param $data + * @return string + */ + public function base64Data($data = null) + { + $this->base64Data = ''; + + if ($data) + { + if (is_array($data)) + { + $data = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION); + } + + $md5 = md5($data, true); + + $this->base64Data = base64_encode($md5); + } + + return $this->base64Data; + } + + /** + * @param $nonce + * @return mixed + */ + public function nonce($nonce = null) + { + if ($nonce) + { + $this->nonce = $nonce; + } + + return $this->nonce; + } + + /** + * @param $time + * @return mixed + */ + public function time($time = null) + { + if ($time) + { + $this->time = $time; + } + + return $this->time; + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/HMAC/Validator.php b/vendor/buckaroo/sdk/src/Handlers/HMAC/Validator.php new file mode 100644 index 000000000..92560cbe8 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/HMAC/Validator.php @@ -0,0 +1,105 @@ +config = $config; + } + + /** + * @param string $header + * @param string $uri + * @param string $method + * @param $data + * @return bool + */ + public function validate(string $header, string $uri, string $method, $data) + { + $header = explode(':', $header); + + $providedHash = $header[1]; + + $this->uri($uri); + $this->nonce($header[2]); + $this->time($header[3]); + + $this->base64Data($data); + + $hmac = $this->config->websiteKey() . $method . $this->uri . $this->time . $this->nonce . $this->base64Data; + + $this->hash = base64_encode(hash_hmac('sha256', $hmac, $this->config->secretKey(), true)); + + return $providedHash == $this->hash; + } + + /** + * @param string $header + * @param string $uri + * @param string $method + * @param $data + * @return bool + * @throws BuckarooException + */ + public function validateOrFail(string $header, string $uri, string $method, $data) + { + if ($this->validate($header, $uri, $method, $data)) + { + return true; + } + + throw new BuckarooException($this->config->getLogger(), "HMAC validation failed."); + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/Logging/DefaultLogger.php b/vendor/buckaroo/sdk/src/Handlers/Logging/DefaultLogger.php new file mode 100644 index 000000000..70650d7fb --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/Logging/DefaultLogger.php @@ -0,0 +1,194 @@ +attach(new Monolog()); + + if (($_ENV['BPE_REPORT_ERROR'] ?? false) === 'true') + { + $this->attach(new ErrorReporter()); + } + } + + /** + * @param $observer + * @return $this + */ + public function attach($observer) + { + if (is_array($observer)) + { + foreach ($observer as $singleObserver) + { + $this->attach($singleObserver); + } + + return $this; + } + + if ($observer instanceof Observer) + { + $this->observers[] = $observer; + } + + return $this; + } + + /** + * @param Observer $observer + * @return $this + */ + public function detach(Observer $observer) + { + $this->observers = array_filter($this->observers, function ($value) use ($observer) { + return get_class($value) != get_class($observer); + }); + + return $this; + } + + /** + * @param string|Stringable $message The log message + * @param array $context + * @return void + */ + public function emergency($message, array $context = []): void + { + $this->notify('emergency', $message, $context); + } + + /** + * @param string|Stringable $message The log message + * @param array $context + * @return void + */ + public function alert($message, array $context = []): void + { + $this->notify('alert', $message, $context); + } + + /** + * @param $message + * @param array $context + * @return void + */ + public function critical($message, array $context = []): void + { + $this->notify('critical', $message, $context); + } + + /** + * @param $message + * @param array $context + * @return void + */ + public function error($message, array $context = []): void + { + $this->notify('error', $message, $context); + } + + /** + * @param $message + * @param array $context + * @return void + */ + public function warning($message, array $context = []): void + { + $this->notify('warning', $message, $context); + } + + /** + * @param $message + * @param array $context + * @return void + */ + public function notice($message, array $context = []): void + { + $this->notify('notice', $message, $context); + } + + /** + * @param $message + * @param array $context + * @return void + */ + public function info($message, array $context = []): void + { + $this->notify('info', $message, $context); + } + + /** + * @param $message + * @param array $context + * @return void + */ + public function debug($message, array $context = []): void + { + if ($_ENV['BPE_DEBUG'] ?? false) + { + $this->notify('debug', $message, $context); + } + } + + /** + * @param $level + * @param $message + * @param array $context + * @return void + */ + public function log($level, $message, array $context = []): void + { + $this->notify('log', $message, $context); + } + + /** + * @param string $method + * @param string $message + * @param array $context + * @return $this + */ + public function notify(string $method, string $message, array $context = []) + { + foreach ($this->observers as $observer) + { + $observer->handle($method, $message, $context); + } + + return $this; + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/Logging/Loggable.php b/vendor/buckaroo/sdk/src/Handlers/Logging/Loggable.php new file mode 100644 index 000000000..df9f69de3 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/Logging/Loggable.php @@ -0,0 +1,27 @@ +reportables)) + { + //print("Fire off message to mail/report server/slack"); + } + + return $this; + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/Logging/Observers/Monolog.php b/vendor/buckaroo/sdk/src/Handlers/Logging/Observers/Monolog.php new file mode 100644 index 000000000..f331a5188 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/Logging/Observers/Monolog.php @@ -0,0 +1,24 @@ +log = new Logger('Buckaroo log'); + $this->log->pushHandler(new StreamHandler('php://stdout', Logger::INFO)); + } + + public function handle(string $method, string $message, array $context = []) + { + $this->log->$method($message, $context); + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/Logging/Subject.php b/vendor/buckaroo/sdk/src/Handlers/Logging/Subject.php new file mode 100644 index 000000000..0a2e1be14 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/Logging/Subject.php @@ -0,0 +1,44 @@ +config = $config; + $this->data = $data; + + ksort($this->data, SORT_FLAG_CASE | SORT_STRING); + } + + /** + * @return bool + */ + public function validate(): bool + { + //Remove brq_signature from the equation + $data = array_filter($this->data, function ($key) { + $acceptable_top_level = ['brq', 'add', 'cust', 'BRQ', 'ADD', 'CUST']; + + return ( + $key != 'brq_signature' && $key != 'BRQ_SIGNATURE') && + in_array(explode('_', $key)[0], $acceptable_top_level); + }, ARRAY_FILTER_USE_KEY); + + //Combine the array keys with value + $data = array_map(function ($value, $key) { + return $key . '=' . html_entity_decode($value); + }, $data, array_keys($data)); + + $dataString = implode('', $data) . trim($this->config->secretKey()); + + return hash_equals( + sha1($dataString), + trim($this->data['brq_signature'] ?? $this->data['BRQ_SIGNATURE'] ?? null) + ); + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/Reply/Json.php b/vendor/buckaroo/sdk/src/Handlers/Reply/Json.php new file mode 100644 index 000000000..4282651a3 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/Reply/Json.php @@ -0,0 +1,74 @@ +config = $config; + $this->data = $data; + $this->auth_header = $auth_header; + $this->uri = $uri; + $this->method = $method; + } + + /** + * @return bool + */ + public function validate(): bool + { + $validator = new Validator($this->config); + + return $validator->validate($this->auth_header, $this->uri, $this->method, $this->data); + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/Reply/ReplyHandler.php b/vendor/buckaroo/sdk/src/Handlers/Reply/ReplyHandler.php new file mode 100644 index 000000000..785c3c799 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/Reply/ReplyHandler.php @@ -0,0 +1,155 @@ +config = $config; + $this->data = $data; + $this->auth_header = $auth_header; + $this->uri = $uri; + } + + /** + * @return $this + * @throws \Exception + */ + public function validate() + { + $this->setStrategy(); + + $this->isValid = $this->strategy->validate(); + + return $this; + } + + /** + * @return $this + * @throws \Exception + */ + private function setStrategy() + { + $data = $this->data; + + if (is_string($data)) + { + $data = json_decode($data, true); + } + + if ($this->contains('Transaction', $data) && $this->auth_header && $this->uri) + { + $this->strategy = new Json($this->config, $data, $this->auth_header, $this->uri); + + return $this; + } + + if ($this->contains('brq_', $data) || $this->contains('BRQ_', $data)) + { + $this->strategy = new HttpPost($this->config, $data); + + return $this; + } + + throw new \Exception("No reply handler strategy applied."); + } + + /** + * @param string $needle + * @param array $data + * @return bool + */ + private function contains(string $needle, array $data, bool $strict = false): bool + { + foreach (array_keys($data) as $key) + { + if ($strict && $key == $needle) + { + return true; + } + + if (! $strict && str_contains($key, $needle)) + { + return true; + } + } + + return false; + } + + /** + * @return bool + */ + public function isValid() + { + return $this->isValid; + } + + /** + * @return mixed + */ + public function data($key = null) + { + if ($key) + { + return $this->data[$key] ?? $this->data[strtolower($key)] ?? $this->data[strtoupper($key)] ?? null; + } + + return $this->data; + } +} diff --git a/vendor/buckaroo/sdk/src/Handlers/Reply/ReplyStrategy.php b/vendor/buckaroo/sdk/src/Handlers/Reply/ReplyStrategy.php new file mode 100644 index 000000000..8b1c10336 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Handlers/Reply/ReplyStrategy.php @@ -0,0 +1,26 @@ +model = $model; + } + + /** + * @param $property + * @return null + */ + public function __get($property) + { + if (property_exists($this->model, $property)) + { + return $this->model->$property; + } + + return null; + } + + /** + * @param $propertyName + * @return string + */ + public function serviceParameterKeyOf($propertyName): string + { + return (isset($this->keys[$propertyName]))? $this->keys[$propertyName] : ucfirst($propertyName); + } + + /** + * @return array + */ + public function toArray(): array + { + return $this->model->toArray(); + } + + /** + * @return array + */ + public function getObjectVars(): array + { + return $this->model->getObjectVars(); + } +} diff --git a/vendor/buckaroo/sdk/src/Models/AdditionalParameters.php b/vendor/buckaroo/sdk/src/Models/AdditionalParameters.php new file mode 100644 index 000000000..1d0fbd0b0 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/AdditionalParameters.php @@ -0,0 +1,76 @@ +isDataRequest = $isDataRequest; + + parent::__construct($values); + } + + /** + * @param array|null $data + * @return AdditionalParameters + */ + public function setProperties(?array $data) + { + foreach ($data ?? [] as $name => $value) + { + if($this->isDataRequest) + { + $this->List[] = [ + 'Value' => $value, + 'Name' => $name, + ]; + + continue; + } + + $this->AdditionalParameter[] = [ + 'Value' => $value, + 'Name' => $name, + ]; + } + + return parent::setProperties($data); + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Address.php b/vendor/buckaroo/sdk/src/Models/Address.php new file mode 100644 index 000000000..5e3dd7595 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Address.php @@ -0,0 +1,32 @@ +setAddress($ip); + $this->setType($type); + } + + /** + * @param string|null $ip + * @return $this + */ + private function setAddress(?string $ip) + { + $this->Address = $ip ?? $this->getRemoteIp(); + + return $this; + } + + /** + * @param int|null $type + * @return $this + */ + private function setType(?int $type) + { + $this->Type = $type ?? IPProtocolVersion::getVersion($this->Address); + + return $this; + } + + /** + * @return mixed|string + */ + private function getRemoteIp() + { + $headers = function_exists('apache_request_headers') ? apache_request_headers() : $_SERVER; + + /** + * Get the forwarded IP if it exists + */ + if (isset($headers['X-Forwarded-For']) && filter_var($headers['X-Forwarded-For'], FILTER_VALIDATE_IP)) + { + return $headers['X-Forwarded-For']; + } + + if (isset($headers['HTTP_X_FORWARDED_FOR']) && + filter_var($headers['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP) + ) { + return $headers['HTTP_X_FORWARDED_FOR']; + } + + if (isset($_SERVER['REMOTE_ADDR']) && filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP)) + { + return $_SERVER['REMOTE_ADDR']; + } + + return '127.0.0.1'; + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Company.php b/vendor/buckaroo/sdk/src/Models/Company.php new file mode 100644 index 000000000..9d803e327 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Company.php @@ -0,0 +1,29 @@ + $value) + { + $this->List[] = [ + 'Value' => $value, + 'Name' => $name, + ]; + } + + return parent::setProperties($data); + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Debtor.php b/vendor/buckaroo/sdk/src/Models/Debtor.php new file mode 100644 index 000000000..b5ad89738 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Debtor.php @@ -0,0 +1,26 @@ + $email]); + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Interfaces/Recipient.php b/vendor/buckaroo/sdk/src/Models/Interfaces/Recipient.php new file mode 100644 index 000000000..fafdba60f --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Interfaces/Recipient.php @@ -0,0 +1,25 @@ +setProperties($values); + } + + /** + * @param $property + * @return null + */ + public function __get($property) + { + if (property_exists($this, $property) && isset($this->$property)) + { + return $this->$property; + } + + return null; + } + + /** + * @param $property + * @param $value + * @return $this + */ + public function __set($property, $value) + { + if (property_exists($this, $property)) + { + $this->$property = $value; + } + + return $this; + } + + /** + * @return array + */ + public function getObjectVars() + { + return get_object_vars($this); + } + + /** + * @param array|null $data + * @return $this + */ + public function setProperties(?array $data) + { + if ($data) + { + foreach ($data ?? [] as $property => $value) + { + $this->$property = $value; + } + } + + return $this; + } + + /** + * @param $propertyName + * @return string + */ + public function serviceParameterKeyOf($propertyName) + { + return ucfirst($propertyName); + } + + /** + * @return array + */ + public function toArray() : array + { + return $this->recursiveToArray(get_object_vars($this)); + } + + /** + * @param array $array + * @return array + */ + private function recursiveToArray(array $array) : array + { + foreach ($array as $key => $value) + { + if (is_array($value)) + { + $array[$key] = $this->recursiveToArray($value); + } + + if (is_a($value, Arrayable::class)) + { + $array[$key] = $value->toArray(); + } + } + + return $array; + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Payload/DataRequestPayload.php b/vendor/buckaroo/sdk/src/Models/Payload/DataRequestPayload.php new file mode 100644 index 000000000..a9c0e3232 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Payload/DataRequestPayload.php @@ -0,0 +1,45 @@ +additionalParameters = new AdditionalParameters($data['additionalParameters'], true); + + unset($data['additionalParameters']); + } + + return parent::setProperties($data); + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Payload/PayPayload.php b/vendor/buckaroo/sdk/src/Models/Payload/PayPayload.php new file mode 100644 index 000000000..f54c4381b --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Payload/PayPayload.php @@ -0,0 +1,45 @@ +order = uniqid('ORDER_NO_'); + + parent::__construct($payload); + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Payload/Payload.php b/vendor/buckaroo/sdk/src/Models/Payload/Payload.php new file mode 100644 index 000000000..d0776b68b --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Payload/Payload.php @@ -0,0 +1,149 @@ +customParameters = new CustomParameters($data['customParameters']); + + unset($data['customParameters']); + } + + if (isset($data['additionalParameters'])) + { + $this->additionalParameters = new AdditionalParameters($data['additionalParameters']); + + unset($data['additionalParameters']); + } + + if (isset($data['clientIP'])) + { + $this->clientIP = new ClientIP($data['clientIP']['address'] ?? null, $data['clientIP']['type'] ?? null); + + unset($data['clientIP']); + } + + return parent::setProperties($data); + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Payload/RefundPayload.php b/vendor/buckaroo/sdk/src/Models/Payload/RefundPayload.php new file mode 100644 index 000000000..4dbcc00e7 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Payload/RefundPayload.php @@ -0,0 +1,29 @@ +name = $name; + $this->version = $version; + $this->action = $action; + + $this->parameterService = new DefaultParameters($this); + + if ($model) + { + $this->decorateParameters($model); + $this->parameterService->data(); + } + + parent::__construct(); + } + + /** + * @return array + */ + public function parameters(): array + { + return $this->parameters; + } + + /** + * @param $value + * @param $key + * @return $this + */ + public function appendParameter($value, $key = null) + { + /* Check value pass multiple, iterate through it*/ + if (is_array($value) && is_array(current($value))) + { + foreach ($value as $singleValue) + { + $this->appendParameter($singleValue, $key); + } + + return $this; + } + + if ($key) + { + $this->parameters[$key] = $value; + + return $this; + } + + $this->parameters[] = $value; + + return $this; + } + + /** + * @param Model $model + * @param string|null $groupType + * @param int|null $groupKey + * @return $this + */ + protected function decorateParameters(Model $model, ?string $groupType = null, ?int $groupKey = null) + { + $this->parameterService = new ModelParameters($this->parameterService, $model, $groupType, $groupKey); + + $this->iterateThroughObject($model, $model->getObjectVars()); + + return $this; + } + + /** + * @param Model $model + * @param array $array + * @param string|null $keyName + * @return $this + */ + protected function iterateThroughObject(Model $model, array $array, ?string $keyName = null) + { + foreach ($array as $key => $value) + { + if ($model instanceof ServiceParameter && $value instanceof Model) + { + $this->decorateParameters( + $value, + $model->getGroupType($keyName ?? $key), + $model->getGroupKey($keyName ?? $key, is_int($key)? $key : null) + ); + + continue; + } + + if (is_array($value) && count($value)) + { + $this->iterateThroughObject($model, $value, $key); + } + } + + return $this; + } +} diff --git a/vendor/buckaroo/sdk/src/Models/ServiceParameter.php b/vendor/buckaroo/sdk/src/Models/ServiceParameter.php new file mode 100644 index 000000000..809034700 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/ServiceParameter.php @@ -0,0 +1,69 @@ + $value) + { + if (method_exists($this, $property)) + { + $this->$property($value); + + continue; + } + + $this->$property = $value; + } + + return $this; + } + + /** + * @param string $key + * @return string|null + */ + public function getGroupType(string $key): ?string + { + return $this->groupData[$key]['groupType'] ?? null; + } + + /** + * @param string $key + * @param int|null $keyCount + * @return int|null + */ + public function getGroupKey(string $key, ?int $keyCount = 0): ?int + { + return $this->groupData[$key]['groupKey'] ?? null; + } +} diff --git a/vendor/buckaroo/sdk/src/Models/Services.php b/vendor/buckaroo/sdk/src/Models/Services.php new file mode 100644 index 000000000..6a69eb4cf --- /dev/null +++ b/vendor/buckaroo/sdk/src/Models/Services.php @@ -0,0 +1,48 @@ +ServiceList; + } + + /** + * @param ServiceList $serviceList + * @return $this + */ + public function pushServiceList(ServiceList $serviceList): self + { + $this->ServiceList[] = $serviceList; + + return $this; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Afterpay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Afterpay.php new file mode 100644 index 000000000..666e91f51 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Afterpay.php @@ -0,0 +1,106 @@ +payload)); + } + + /** + * @return TransactionResponse + */ + public function authorize(): TransactionResponse + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Authorize', $pay); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function cancelAuthorize(): TransactionResponse + { + $this->setRefundPayload(); + + $this->setServiceList('CancelAuthorize'); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function capture(): TransactionResponse + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Capture', $pay); + + return $this->postRequest(); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function refund(?Model $model = null): TransactionResponse + { + return parent::refund($model ?? new Refund($this->payload)); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new Pay($this->payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Article.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Article.php new file mode 100644 index 000000000..92e6ab8c1 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Article.php @@ -0,0 +1,29 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @param $billing + * @return Recipient + */ + public function billing($billing = null) + { + if (is_array($billing)) + { + $this->billingRecipient = new Recipient('Billing', $billing); + $this->shippingRecipient = new Recipient('Shipping', $billing); + } + + return $this->billingRecipient; + } + + /** + * @param $shipping + * @return Recipient + */ + public function shipping($shipping = null) + { + if (is_array($shipping)) + { + $this->shippingRecipient = new Recipient('Shipping', $shipping); + } + + return $this->shippingRecipient; + } + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Person.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Person.php new file mode 100644 index 000000000..c3d6a2a01 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Person.php @@ -0,0 +1,28 @@ +type = $type; + + parent::__construct($values); + } + + /** + * @param $recipient + * @return RecipientInterface + * @throws \Exception + */ + public function recipient($recipient = null) + { + if (is_array($recipient)) + { + $this->recipient = $this->getRecipientObject($recipient); + } + + return $this->recipient; + } + + /** + * @param $address + * @return AddressAdapter + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone)); + } + + return $this->phone; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param array $recipient + * @return RecipientInterface + * @throws \Exception + */ + private function getRecipientObject(array $recipient) : RecipientInterface + { + switch ($recipient['category']) + { + case RecipientCategory::COMPANY: + return new RecipientAdapter(new Company($recipient)); + case RecipientCategory::PERSON: + return new RecipientAdapter(new Person($recipient)); + } + + throw new \Exception('No recipient category found.'); + } + + /** + * @param string $key + * @return string|null + */ + public function getGroupType(string $key): ?string + { + return $this->type . 'Customer'; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Refund.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Refund.php new file mode 100644 index 000000000..8ac00a530 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Models/Refund.php @@ -0,0 +1,58 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..81cbbeed8 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,32 @@ + 'StreetNumber', + 'houseNumberAdditional' => 'StreetNumberAdditional', + 'zipcode' => 'PostalCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..113aca72e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,30 @@ + 'GrossUnitPrice', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/PhoneAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/PhoneAdapter.php new file mode 100644 index 000000000..5c8e9d5ff --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/PhoneAdapter.php @@ -0,0 +1,31 @@ + 'Phone', + 'mobile' => 'MobilePhone', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/RecipientAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/RecipientAdapter.php new file mode 100644 index 000000000..112083fac --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Afterpay/Service/ParameterKeys/RecipientAdapter.php @@ -0,0 +1,32 @@ + 'Salutation', + 'chamberOfCommerce' => 'IdentificationNumber', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/AfterpayDigiAccept.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/AfterpayDigiAccept.php new file mode 100644 index 000000000..1019afb96 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/AfterpayDigiAccept.php @@ -0,0 +1,80 @@ +payload)); + } + + public function refund(?Model $model = null) + { + return parent::refund($model ?? new Refund($this->payload)); + } + + public function authorize(?Model $model = null): TransactionResponse + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Authorize', $pay); + + return $this->postRequest(); + } + + public function capture(?Model $model = null): TransactionResponse + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Capture', $pay); + + return $this->postRequest(); + } + + public function cancelAuthorize(?Model $model = null): TransactionResponse + { + $this->setRefundPayload(); + + $this->setServiceList('CancelAuthorize'); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Pay.php new file mode 100644 index 000000000..897d47e5b --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Pay.php @@ -0,0 +1,140 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @var Recipient + */ + protected Recipient $billingRecipient; + /** + * @var Recipient + */ + protected Recipient $shippingRecipient; + + /** + * @var bool + */ + protected bool $b2B; + /** + * @var bool + */ + protected bool $addressesDiffer; + /** + * @var string + */ + protected string $customerIPAddress; + /** + * @var float + */ + protected float $shippingCosts; + /** + * @var string + */ + protected string $costCentre; + /** + * @var string + */ + protected string $department; + /** + * @var string + */ + protected string $establishmentNumber; + + /** + * @var bool + */ + protected bool $accept = true; + /** + * @var array + */ + protected array $articles = []; + + /** + * @param $billing + * @return Recipient + */ + public function billing($billing = null) + { + if (is_array($billing)) + { + $this->billingRecipient = new Recipient('Billing', $billing); + $this->shippingRecipient = new Recipient('Shipping', $billing); + } + + return $this->billingRecipient; + } + + /** + * @param $shipping + * @return Recipient + */ + public function shipping($shipping = null) + { + if (is_array($shipping)) + { + $this->addressesDiffer = true; + + $this->shippingRecipient = new Recipient('Shipping', $shipping); + } + + return $this->shippingRecipient; + } + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Recipient.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Recipient.php new file mode 100644 index 000000000..05735b86e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Recipient.php @@ -0,0 +1,143 @@ +type = $type; + + parent::__construct($values); + } + + /** + * @param $recipient + * @return RecipientAdapter + */ + public function recipient($recipient = null) + { + if (is_array($recipient)) + { + $this->recipient = $this->getRecipientObject($recipient); + } + + return $this->recipient; + } + + /** + * @param $address + * @return AddressAdapter + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter($this->type, new Address($address)); + } + + return $this->address; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter($this->type, new Phone($phone)); + } + + return $this->phone; + } + + /** + * @param $email + * @return EmailAdapter + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new EmailAdapter($this->type, new Email($email)); + } + + return $this->email; + } + + /** + * @param array $recipient + * @return RecipientAdapter + */ + private function getRecipientObject(array $recipient) : RecipientAdapter + { + $model = new Person($recipient); + + if (($recipient['companyName'] ?? null) || + ($recipient['chamberOfCommerce'] ?? null) || + ($recipient['vatNumber'] ?? null) + ) { + $model = new Company($recipient); + } + + return new RecipientAdapter($this->type, $model); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Refund.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Refund.php new file mode 100644 index 000000000..dd5a52f38 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Models/Refund.php @@ -0,0 +1,65 @@ +articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..d2c0e2759 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,48 @@ + 'HouseNumberSuffix', + 'zipcode' => 'PostalCode', + ]; + + /** + * @param $propertyName + * @return string + */ + public function serviceParameterKeyOf($propertyName): string + { + if ($this->prefix == 'Shipping' && $propertyName == 'country') + { + return 'ShippingCountryCode'; + } + + $name = (isset($this->keys[$propertyName]))? $this->keys[$propertyName] : ucfirst($propertyName); + + return $this->prefix . $name; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..65c5a5dce --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,34 @@ + 'ArticleId', + 'quantity' => 'ArticleQuantity', + 'price' => 'ArticleUnitprice', + 'vatCategory' => 'ArticleVatcategory', + 'description' => 'ArticleDescription', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/EmailAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/EmailAdapter.php new file mode 100644 index 000000000..f01915f95 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/EmailAdapter.php @@ -0,0 +1,25 @@ + 'PhoneNumber', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/RecipientAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/RecipientAdapter.php new file mode 100644 index 000000000..dd2af1c39 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/RecipientAdapter.php @@ -0,0 +1,49 @@ + 'Language', + 'chamberOfCommerce' => 'CompanyCOCRegistration', + 'vatNumber' => 'VatNumber', + ]; + + /** + * @param $propertyName + * @return string + */ + public function serviceParameterKeyOf($propertyName): string + { + if (in_array($propertyName, ['companyName', 'chamberOfCommerce', 'vatNumber'])) + { + return (isset($this->keys[$propertyName]))? $this->keys[$propertyName] : ucfirst($propertyName); + } + + $name = (isset($this->keys[$propertyName]))? $this->keys[$propertyName] : ucfirst($propertyName); + + return $this->prefix . $name; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/ServiceAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/ServiceAdapter.php new file mode 100644 index 000000000..1788c1033 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/AfterpayDigiAccept/Service/ParameterKeys/ServiceAdapter.php @@ -0,0 +1,53 @@ +prefix = $prefix; + + parent::__construct($model); + } + + /** + * @param $propertyName + * @return string + */ + public function serviceParameterKeyOf($propertyName): string + { + $name = (isset($this->keys[$propertyName]))? $this->keys[$propertyName] : ucfirst($propertyName); + + return $this->prefix . $name; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Alipay/Alipay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Alipay/Alipay.php new file mode 100644 index 000000000..3fa388d72 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Alipay/Alipay.php @@ -0,0 +1,52 @@ +payload)); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new Pay($this->payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Alipay/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Alipay/Models/Pay.php new file mode 100644 index 000000000..29daacb14 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Alipay/Models/Pay.php @@ -0,0 +1,28 @@ +payload)); + } + + public function payRedirect(): TransactionResponse + { + $this->payModel = PayPayload::class; + + $pay = new PayPayload($this->payload); + + $this->setPayPayload(); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/ApplePay/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/ApplePay/Models/Pay.php new file mode 100644 index 000000000..af8e5cdcd --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/ApplePay/Models/Pay.php @@ -0,0 +1,29 @@ +payload)); + } + + /** + * @return TransactionResponse + */ + public function payEncrypted(): TransactionResponse + { + $payEncrypted = new PayEncrypted($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('PayEncrypted', $payEncrypted); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function payRecurring(): TransactionResponse + { + $this->setPayPayload(); + + $this->setServiceList('PayRecurring'); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function payOneClick(): TransactionResponse + { + $this->setPayPayload(); + + $this->setServiceList('PayOneClick'); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + * @deprecated deprecated since version 1.7.0, please use authorize method + */ + public function authenticate(): TransactionResponse + { + return $this->authorize(); + } + + /** + * @return Bancontact|mixed + */ + public function authorize() + { + $authenticate = new Authenticate($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Authorize', $authenticate); + + return $this->postRequest(); + } + + /** + * @return Bancontact|mixed + */ + public function capture() + { + $authenticate = new Authenticate($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Capture', $authenticate); + + return $this->postRequest(); + } + + /** + * @return Bancontact|mixed + */ + public function cancelAuthorize() + { + $this->setPayPayload(); + + $this->setServiceList('CancelAuthorize'); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Bancontact/Models/Authenticate.php b/vendor/buckaroo/sdk/src/PaymentMethods/Bancontact/Models/Authenticate.php new file mode 100644 index 000000000..271be042e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Bancontact/Models/Authenticate.php @@ -0,0 +1,28 @@ +payload))); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Models/Pay.php new file mode 100644 index 000000000..7b55677d2 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Models/Pay.php @@ -0,0 +1,80 @@ +customer = new CustomerAdapter(new Person($customer)); + } + + return $this->customer; + } + + /** + * @param $email + * @return EmailAdapter + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new EmailAdapter(new Email($email)); + } + + return $this->email; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/CustomerAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/CustomerAdapter.php new file mode 100644 index 000000000..6b1d8f168 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/CustomerAdapter.php @@ -0,0 +1,33 @@ + 'CustomerGender', + 'firstName' => 'CustomerFirstName', + 'lastName' => 'CustomerLastName', + 'email' => 'CustomerEmail', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/EmailAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/EmailAdapter.php new file mode 100644 index 000000000..96b1d83ea --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/EmailAdapter.php @@ -0,0 +1,30 @@ + 'Customeremail', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/PayAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/PayAdapter.php new file mode 100644 index 000000000..9aeaad37e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BankTransfer/Service/ParameterKeys/PayAdapter.php @@ -0,0 +1,30 @@ + 'CustomerCountry', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BatchTransactions.php b/vendor/buckaroo/sdk/src/PaymentMethods/BatchTransactions.php new file mode 100644 index 000000000..14aed5896 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BatchTransactions.php @@ -0,0 +1,41 @@ +client = $client; + + $this->batch_transactions = new BatchRequest($transactions); + } + + /** + * @return mixed + * @throws \Buckaroo\Exceptions\BuckarooException + */ + public function execute() + { + return $this->client->dataBatchRequest($this->batch_transactions); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Belfius/Belfius.php b/vendor/buckaroo/sdk/src/PaymentMethods/Belfius/Belfius.php new file mode 100644 index 000000000..230cf6d65 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Belfius/Belfius.php @@ -0,0 +1,32 @@ +payload)); + } + + /** + * @return TransactionResponse + */ + public function authorize(): TransactionResponse + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Authorize', $pay); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function capture(): TransactionResponse + { + $capture = new Capture($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Capture', $capture); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function cancelAuthorize(): TransactionResponse + { + $pay = new Refund($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('CancelAuthorize', $pay); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Article.php b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Article.php new file mode 100644 index 000000000..5b3d79d08 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Article.php @@ -0,0 +1,26 @@ +articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Pay.php new file mode 100644 index 000000000..2b7d661fa --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Pay.php @@ -0,0 +1,113 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @param $billing + * @return Recipient + */ + public function billing($billing = null) + { + if (is_array($billing)) + { + $this->billingRecipient = new Recipient('Billing', $billing); + $this->shippingRecipient = new Recipient('Billing', $billing); + } + + return $this->billingRecipient; + } + + /** + * @param $shipping + * @return Recipient + */ + public function shipping($shipping = null) + { + if (is_array($shipping)) + { + $this->shippingRecipient = new Recipient('Shipping', $shipping); + } + + return $this->shippingRecipient; + } + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Recipient.php b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Recipient.php new file mode 100644 index 000000000..3d42e6293 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Models/Recipient.php @@ -0,0 +1,154 @@ +type = $type; + + parent::__construct($values); + } + + /** + * @param $recipient + * @return RecipientInterface|RecipientAdapter + */ + public function recipient($recipient = null) + { + if (is_array($recipient)) + { + $this->recipient = $this->getRecipientObject($recipient); + } + + return $this->recipient; + } + + /** + * @param $address + * @return AddressAdapter + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone)); + } + + return $this->phone; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param array $recipient + * @return RecipientInterface + * @throws \Exception + */ + private function getRecipientObject(array $recipient) : RecipientInterface + { + if (isset($recipient['category'])) + { + switch ($recipient['category']) + { + case 'B2B': + return new RecipientAdapter(new Company($recipient)); + case 'B2C': + return new RecipientAdapter(new Person($recipient)); + } + } + + throw new \Exception('No recipient category found.'); + } + + /** + * @param string $key + * @return string|null + */ + public function getGroupType(string $key): ?string + { + return $this->type . 'Customer'; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..7228b390f --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,32 @@ + 'StreetNumber', + 'houseNumberAdditional' => 'StreetNumberAdditional', + 'zipcode' => 'PostalCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..9b6e7c8af --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,32 @@ + 'Identifier', + 'price' => 'GrossUnitPriceIncl', + 'priceExcl' => 'GrossUnitPriceExcl', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/PhoneAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/PhoneAdapter.php new file mode 100644 index 000000000..e8e806609 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/PhoneAdapter.php @@ -0,0 +1,31 @@ + 'Phone', + 'mobile' => 'MobilePhone', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/RecipientAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/RecipientAdapter.php new file mode 100644 index 000000000..6c6687ff9 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Billink/Service/ParameterKeys/RecipientAdapter.php @@ -0,0 +1,31 @@ + 'Salutation', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooVoucher/BuckarooVoucher.php b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooVoucher/BuckarooVoucher.php new file mode 100644 index 000000000..7dcbacffc --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooVoucher/BuckarooVoucher.php @@ -0,0 +1,112 @@ +setPayPayload(); + + $pay = new Pay($this->payload); + + return parent::pay($model ?? $pay); + } + + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + $this->setPayPayload(); + + $pay = new Pay($this->payload); + + return parent::payRemainder($model ?? $pay); + } + + /** + * @return TransactionResponse + */ + public function getBalance(): TransactionResponse + { + $this->payModel = DataRequestPayload::class; + + $data = new GetBalance($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('GetBalance', $data); + + return $this->dataRequest(); + } + /** + * @return TransactionResponse + */ + public function create(): TransactionResponse + { + $this->payModel = DataRequestPayload::class; + + $data = new Create($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('CreateApplication', $data); + + return $this->dataRequest(); + } + + /** + * @return TransactionResponse + */ + public function deactivate(): TransactionResponse + { + $this->payModel = DataRequestPayload::class; + + $data = new Deactivate($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('DeactivateVoucher', $data); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooVoucher/Models/Create.php b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooVoucher/Models/Create.php new file mode 100644 index 000000000..9bb8229d5 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooVoucher/Models/Create.php @@ -0,0 +1,36 @@ +payModel = DataRequestPayload::class; + + $this->requiredConfigFields = ['currency']; + + $wallet = new Wallet($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Create', $wallet); + + return $this->dataRequest(); + } + + /** + * @return BuckarooWallet|mixed + */ + public function updateWallet() + { + $this->payModel = DataRequestPayload::class; + + $wallet = new Wallet($this->payload); + + $this->setServiceList('Update', $wallet); + + return $this->dataRequest(); + } + + /** + * @return BuckarooWallet|mixed + */ + public function getInfo() + { + $this->payModel = DataRequestPayload::class; + + $wallet = new Wallet($this->payload); + + $this->setServiceList('GetInfo', $wallet); + + return $this->dataRequest(); + } + + /** + * @return BuckarooWallet|mixed + */ + public function release() + { + $this->payModel = DataRequestPayload::class; + + $relasePayload = new ReleasePayload($this->payload); + + $wallet = new Wallet($this->payload); + + $this->request->setPayload($relasePayload); + + $this->setServiceList('Release', $wallet); + + return $this->dataRequest(); + } + + /** + * @return BuckarooWallet|mixed + */ + public function deposit() + { + $depositPayload = new DepositReservePayload($this->payload); + + $wallet = new Wallet($this->payload); + + $this->request->setPayload($depositPayload); + + $this->setServiceList('Deposit', $wallet); + + return $this->postRequest(); + } + + /** + * @return BuckarooWallet|mixed + */ + public function reserve() + { + $depositPayload = new DepositReservePayload($this->payload); + + $wallet = new Wallet($this->payload); + + $this->request->setPayload($depositPayload); + + $this->setServiceList('Reserve', $wallet); + + return $this->postRequest(); + } + + /** + * @return BuckarooWallet|mixed + */ + public function withdrawal() + { + $wallet = new Wallet($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Withdrawal', $wallet); + + return $this->postRequest(); + } + + /** + * @return BuckarooWallet|mixed + */ + public function cancel() + { + $wallet = new Wallet($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Cancel', $wallet); + + return $this->postRequest(); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function pay(?Model $model = null): TransactionResponse + { + return parent::pay(new Wallet($this->payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Models/DepositReservePayload.php b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Models/DepositReservePayload.php new file mode 100644 index 000000000..ce56271fa --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Models/DepositReservePayload.php @@ -0,0 +1,30 @@ +customer = new CustomerAdapter(new Person($customer)); + } + + return $this->customer; + } + + /** + * @param $email + * @return EmailAdapter + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new EmailAdapter(new Email($email)); + } + + return $this->email; + } + + /** + * @param $bankAccount + * @return BankAccountAdapter + */ + public function bankAccount($bankAccount = null) + { + if (is_array($bankAccount)) + { + $this->bankAccount = new BankAccountAdapter(new BankAccount($bankAccount)); + } + + return $this->bankAccount; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/BankAccountAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/BankAccountAdapter.php new file mode 100644 index 000000000..c88e02281 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/BankAccountAdapter.php @@ -0,0 +1,28 @@ + 'ConsumerIban', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/CustomerAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/CustomerAdapter.php new file mode 100644 index 000000000..2e6e2cba7 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/CustomerAdapter.php @@ -0,0 +1,31 @@ + 'ConsumerFirstName', + 'lastName' => 'ConsumerLastName', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/EmailAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/EmailAdapter.php new file mode 100644 index 000000000..b1cdc555c --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/BuckarooWallet/Service/ParameterKeys/EmailAdapter.php @@ -0,0 +1,28 @@ + 'ConsumerEmail', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditCard/CreditCard.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditCard/CreditCard.php new file mode 100644 index 000000000..d64d76ca9 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditCard/CreditCard.php @@ -0,0 +1,162 @@ +payload); + + $this->setPayPayload(); + + $this->setServiceList('PayEncrypted', $cardData); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function authorizeEncrypted(): TransactionResponse + { + $cardData = new CardData($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('AuthorizeEncrypted', $cardData); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function payWithSecurityCode(): TransactionResponse + { + $securityCode = new SecurityCode($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('PayWithSecurityCode', $securityCode); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function authorizeWithSecurityCode(): TransactionResponse + { + $securityCode = new SecurityCode($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('AuthorizeWithSecurityCode', $securityCode); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function authorize(): TransactionResponse + { + $this->setPayPayload(); + + $this->setServiceList('Authorize'); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function capture(): TransactionResponse + { + $this->setPayPayload(); + + $this->setServiceList('Capture'); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function payRecurrent(): TransactionResponse + { + $this->setPayPayload(); + + $this->setServiceList('PayRecurrent'); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function payRemainderEncrypted(): TransactionResponse + { + $cardData = new CardData($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('PayRemainderEncrypted', $cardData); + + return $this->postRequest(); + } + + /** + * @return TransactionResponse + */ + public function cancelAuthorize(): TransactionResponse + { + $this->setRefundPayload(); + + $this->setServiceList('CancelAuthorize'); + + return $this->postRequest(); + } + + /** + * @return string + * @throws \Exception + */ + public function paymentName(): string + { + if (isset($this->payload['name'])) + { + return $this->payload['name']; + } + + throw new \Exception('Missing creditcard name'); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditCard/Models/CardData.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditCard/Models/CardData.php new file mode 100644 index 000000000..67fccafc2 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditCard/Models/CardData.php @@ -0,0 +1,28 @@ +payload)); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function refund(?Model $model = null): TransactionResponse + { + return parent::refund($model ?? new Refund($this->payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditClick/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditClick/Models/Pay.php new file mode 100644 index 000000000..f5cb5f49a --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditClick/Models/Pay.php @@ -0,0 +1,65 @@ +customer = new Person($customer); + } + + return $this->customer; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditClick/Models/Refund.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditClick/Models/Refund.php new file mode 100644 index 000000000..881cfd99e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditClick/Models/Refund.php @@ -0,0 +1,28 @@ + 'firstname', + 'lastName' => 'lastname', + 'email' => 'email', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/CreditManagement.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/CreditManagement.php new file mode 100644 index 000000000..1044ed77c --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/CreditManagement.php @@ -0,0 +1,187 @@ +payload); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + $this->setServiceList('CreateInvoice', $invoice); + + return $this->dataRequest(); + } + + public function createCombinedInvoice() + { + $invoice = new Invoice($this->payload); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + $this->setServiceList('CreateCombinedInvoice', $invoice); + + return $this->dataRequest(); + } + + public function createCreditNote() + { + $creditNote = new CreditNote($this->payload); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + $this->setServiceList('CreateCreditNote', $creditNote); + + return $this->dataRequest(); + } + + public function addOrUpdateDebtor() + { + $debtor = new Debtor($this->payload); + + $this->setServiceList('AddOrUpdateDebtor', $debtor); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function createPaymentPlan() + { + $paymentPlan = new PaymentPlan($this->payload); + + $this->setServiceList('CreatePaymentPlan', $paymentPlan); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + $this->request->setData('Description', $this->payload['description'] ?? null); + + return $this->dataRequest(); + } + + public function terminatePaymentPlan() + { + $paymentPlan = new PaymentPlan($this->payload); + + $this->setServiceList('TerminatePaymentPlan', $paymentPlan); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function pauseInvoice() + { + $this->request->setData('Invoice', $this->payload['invoice'] ?? null); + + $this->setServiceList('PauseInvoice'); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function unpauseInvoice() + { + $this->request->setData('Invoice', $this->payload['invoice'] ?? null); + + $this->setServiceList('UnPauseInvoice'); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function invoiceInfo() + { + $multipleInvoices = new MultipleInvoiceInfo($this->payload); + + $this->request->setData('Invoice', $this->payload['invoice'] ?? null); + + $this->setServiceList('InvoiceInfo', $multipleInvoices); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function debtorInfo() + { + $debtorInfo = new DebtorInfo($this->payload); + + $this->setServiceList('DebtorInfo', $debtorInfo); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function addOrUpdateProductLines() + { + $addOrUpdateProductLines = new AddOrUpdateProductLines($this->payload); + + $this->setServiceList('AddOrUpdateProductLines', $addOrUpdateProductLines); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function resumeDebtorFile() + { + $debtor_file = new DebtorFile($this->payload); + + $this->setServiceList('ResumeDebtorFile', $debtor_file); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + public function pauseDebtorFile() + { + $debtor_file = new DebtorFile($this->payload); + + $this->setServiceList('PauseDebtorFile', $debtor_file); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/AddOrUpdateProductLines.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/AddOrUpdateProductLines.php new file mode 100644 index 000000000..2bff3a54f --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/AddOrUpdateProductLines.php @@ -0,0 +1,70 @@ + [ + 'groupType' => 'ProductLine', + ], + ]; + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/Article.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/Article.php new file mode 100644 index 000000000..8dfde2498 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/Article.php @@ -0,0 +1,35 @@ + [ + 'groupType' => 'Address', + ], + 'company' => [ + 'groupType' => 'Company', + ], + 'person' => [ + 'groupType' => 'Person', + ], + 'debtor' => [ + 'groupType' => 'Debtor', + ], + 'email' => [ + 'groupType' => 'Email', + ], + 'phone' => [ + 'groupType' => 'Phone', + ], + 'addressUnreachable' => [ + 'groupType' => 'Address', + ], + 'emailUnreachable' => [ + 'groupType' => 'Email', + ], + 'mobileUnreachable' => [ + 'groupType' => 'Phone', + ], + 'landlineUnreachable' => [ + 'groupType' => 'Phone', + ], + 'faxUnreachable' => [ + 'groupType' => 'Phone', + ], + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/DebtorFile.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/DebtorFile.php new file mode 100644 index 000000000..6737dcfc3 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/DebtorFile.php @@ -0,0 +1,28 @@ + [ + 'groupType' => 'Debtor', + ], + ]; + + /** + * @param $debtor + * @return DebtorInfoAdapter + */ + public function debtor($debtor = null) + { + if (is_array($debtor)) + { + $this->debtor = new DebtorInfoAdapter(new Debtor($debtor)); + } + + return $this->debtor; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/Invoice.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/Invoice.php new file mode 100644 index 000000000..412547cca --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/Invoice.php @@ -0,0 +1,255 @@ + [ + 'groupType' => 'ProductLine', + ], + 'address' => [ + 'groupType' => 'Address', + ], + 'company' => [ + 'groupType' => 'Company', + ], + 'person' => [ + 'groupType' => 'Person', + ], + 'debtor' => [ + 'groupType' => 'Debtor', + ], + 'email' => [ + 'groupType' => 'Email', + ], + 'phone' => [ + 'groupType' => 'Phone', + ], + ]; + + /** + * @param $address + * @return Address + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new Address($address); + } + + return $this->address; + } + + /** + * @param $company + * @return Company + */ + public function company($company = null) + { + if (is_array($company)) + { + $this->company = new Company($company); + } + + return $this->company; + } + + /** + * @param $person + * @return Person + */ + public function person($person = null) + { + if (is_array($person)) + { + $this->person = new Person($person); + } + + return $this->person; + } + + /** + * @param $debtor + * @return Debtor + */ + public function debtor($debtor = null) + { + if (is_array($debtor)) + { + $this->debtor = new Debtor($debtor); + } + + return $this->debtor; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param $phone + * @return Phone + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new Phone($phone); + } + + return $this->phone; + } + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/MultipleInvoiceInfo.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/MultipleInvoiceInfo.php new file mode 100644 index 000000000..80f2d9705 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/MultipleInvoiceInfo.php @@ -0,0 +1,56 @@ +invoices[] = new Invoice($invoice); + } + } + + return $this->invoices; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/PaymentPlan.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/PaymentPlan.php new file mode 100644 index 000000000..5c2108397 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Models/PaymentPlan.php @@ -0,0 +1,37 @@ + 'ProductId', + 'description' => 'ProductName', + 'price' => 'PricePerUnit', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Service/ParameterKeys/DebtorInfoAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Service/ParameterKeys/DebtorInfoAdapter.php new file mode 100644 index 000000000..615db3305 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/CreditManagement/Service/ParameterKeys/DebtorInfoAdapter.php @@ -0,0 +1,30 @@ + 'DebtorCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/EPS/EPS.php b/vendor/buckaroo/sdk/src/PaymentMethods/EPS/EPS.php new file mode 100644 index 000000000..04b134383 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/EPS/EPS.php @@ -0,0 +1,31 @@ +setServiceList('GetIssuerList'); + + return $this->dataRequest(); + } + + /** + * @return Emandates|mixed + */ + public function createMandate() + { + $mandate = new Mandate($this->payload); + + $this->setServiceList('CreateMandate', $mandate); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Emandates|mixed + */ + public function status() + { + $mandate = new Mandate($this->payload); + + $this->setServiceList('GetStatus', $mandate); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Emandates|mixed + */ + public function modifyMandate() + { + $mandate = new Mandate($this->payload); + + $this->setServiceList('ModifyMandate', $mandate); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Emandates|mixed + */ + public function cancelMandate() + { + $mandate = new Mandate($this->payload); + + $this->setServiceList('CancelMandate', $mandate); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Emandates/Models/Mandate.php b/vendor/buckaroo/sdk/src/PaymentMethods/Emandates/Models/Mandate.php new file mode 100644 index 000000000..455b32552 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Emandates/Models/Mandate.php @@ -0,0 +1,36 @@ +setPayPayload(); + + $pay = new Pay($this->payload); + + return parent::pay($model ?? $pay); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function refund(?Model $model = null): TransactionResponse + { + return parent::refund($model ?? new Refund($this->payload)); + } + + /** + * @return TransactionResponse + */ + public function payRedirect(): TransactionResponse + { + $this->payModel = PayPayload::class; + + $pay = new PayPayload($this->payload); + + $this->setPayPayload(); + + return $this->postRequest(); + } + + /** + * @param Model|null $model + * @return PayablePaymentMethod|mixed + */ + public function payRemainder(?Model $model = null) + { + return parent::payRemainder(new Pay($this->payload)); + } + + /** + * @return string + * @throws \Exception + */ + public function paymentName(): string + { + if (isset($this->payload['name'])) + { + return $this->payload['name']; + } + + return 'giftcard'; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/GiftCard/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/GiftCard/Models/Pay.php new file mode 100644 index 000000000..7403461d7 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/GiftCard/Models/Pay.php @@ -0,0 +1,38 @@ +payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Giropay/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Giropay/Models/Pay.php new file mode 100644 index 000000000..e4aeae05c --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Giropay/Models/Pay.php @@ -0,0 +1,29 @@ +payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Article.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Article.php new file mode 100644 index 000000000..4e8e8993c --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Article.php @@ -0,0 +1,27 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @param $billing + * @return Recipient + */ + public function billing($billing = null) + { + if (is_array($billing)) + { + $this->billingRecipient = new Recipient('Billing', $billing); + $this->shippingRecipient = new Recipient('Shipping', $billing); + } + + return $this->billingRecipient; + } + + /** + * @param $shipping + * @return Recipient + */ + public function shipping($shipping = null) + { + if (is_array($shipping)) + { + $this->shippingRecipient = new Recipient('Shipping', $shipping); + } + + return $this->shippingRecipient; + } + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Person.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Person.php new file mode 100644 index 000000000..06a2d9187 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Person.php @@ -0,0 +1,28 @@ +type = $type; + + parent::__construct($values); + } + + /** + * @param $recipient + * @return RecipientInterface + * @throws \Exception + */ + public function recipient($recipient = null) + { + if (is_array($recipient)) + { + $this->recipient = $this->getRecipientObject($recipient); + } + + return $this->recipient; + } + + /** + * @param $address + * @return AddressAdapter + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone)); + } + + return $this->phone; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param array $recipient + * @return RecipientInterface + * @throws \Exception + */ + private function getRecipientObject(array $recipient) : RecipientInterface + { + if (isset($recipient['category'])) + { + switch ($recipient['category']) + { + case 'B2B': + return new RecipientAdapter(new Company($recipient)); + case 'B2C': + return new RecipientAdapter(new Person($recipient)); + } + } + + throw new \Exception('No recipient category found.'); + } + + /** + * @param string $key + * @return string|null + */ + public function getGroupType(string $key): ?string + { + return $this->type . 'Customer'; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Refund.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Refund.php new file mode 100644 index 000000000..4a8f0f580 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Models/Refund.php @@ -0,0 +1,58 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..c73ef28bb --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,33 @@ + 'StreetNumber', + 'houseNumberAdditional' => 'StreetNumberSuffix', + 'zipcode' => 'PostalCode', + 'country' => 'CountryCode' + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..ef06e310a --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,31 @@ + 'GrossUnitPrice', + 'category' => 'Category', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/PhoneAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/PhoneAdapter.php new file mode 100644 index 000000000..dbba7c251 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/PhoneAdapter.php @@ -0,0 +1,32 @@ + 'Phone', + 'mobile' => 'MobilePhone', + 'phone' => 'Phone' + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/RecipientAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/RecipientAdapter.php new file mode 100644 index 000000000..26c6e92ac --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3/Service/ParameterKeys/RecipientAdapter.php @@ -0,0 +1,34 @@ + 'Salutation', + 'chamberOfCommerce' => 'CocNumber', + 'companyName' => 'CompanyName', + 'customerNumber' => 'customerNumber', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/In3Old.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/In3Old.php new file mode 100644 index 000000000..89d102791 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/In3Old.php @@ -0,0 +1,63 @@ +payload)); + } + + /** + * @return In3Old|mixed + */ + public function payInInstallments() + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('PayInInstallments', $pay); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/Pay.php new file mode 100644 index 000000000..d542bb50c --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/Pay.php @@ -0,0 +1,211 @@ + [ + 'groupType' => 'ProductLine', + ], + 'address' => [ + 'groupType' => 'Address', + ], + 'customer' => [ + 'groupType' => 'Person', + ], + 'company' => [ + 'groupType' => 'Company', + ], + 'phone' => [ + 'groupType' => 'Phone', + ], + 'email' => [ + 'groupType' => 'Email', + ], + ]; + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } + + /** + * @param $company + * @return CompanyAdapter + */ + public function company($company = null) + { + if (is_array($company)) + { + $this->company = new CompanyAdapter(new Company($company)); + } + + return $this->company; + } + + /** + * @param $customer + * @return Person + */ + public function customer($customer = null) + { + if (is_array($customer)) + { + $this->customer = new Person($customer); + } + + return $this->customer; + } + + /** + * @param $address + * @return AddressAdapter + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone)); + } + + return $this->phone; + } + + /** + * @param array|null $subtotals + * @return array + */ + public function subtotals(?array $subtotals = null) + { + if (is_array($subtotals)) + { + foreach ($subtotals as $subtotal) + { + $this->subtotals[] = new Subtotal($subtotal); + } + } + + return $this->subtotals; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/PayPayload.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/PayPayload.php new file mode 100644 index 000000000..ead144f74 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/PayPayload.php @@ -0,0 +1,41 @@ +clientIP = new ClientIP(); + + parent::__construct($payload); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/Subtotal.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/Subtotal.php new file mode 100644 index 000000000..2c95eb2f7 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Models/Subtotal.php @@ -0,0 +1,29 @@ + 'HouseNumberSuffix', + 'zipcode' => 'ZipCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..470eed16f --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,33 @@ + 'Code', + 'description' => 'Name', + 'quantity' => 'Quantity', + 'price' => 'Price', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/CompanyAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/CompanyAdapter.php new file mode 100644 index 000000000..ab56fa238 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/CompanyAdapter.php @@ -0,0 +1,30 @@ + 'Name', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/PhoneAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/PhoneAdapter.php new file mode 100644 index 000000000..14bb27504 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/In3Old/Service/ParameterKeys/PhoneAdapter.php @@ -0,0 +1,30 @@ + 'Phone', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Interfaces/Combinable.php b/vendor/buckaroo/sdk/src/PaymentMethods/Interfaces/Combinable.php new file mode 100644 index 000000000..10f504041 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Interfaces/Combinable.php @@ -0,0 +1,25 @@ +payload)); + } + + /** + * @return TransactionResponse + */ + public function reserve(): TransactionResponse + { + $this->payModel = DataRequestPayload::class; + + $reserve = new Payload($this->payload); + + $this->setServiceList('Reserve', $reserve); + + $this->setPayPayload(); + + return $this->dataRequest(); + } + + /** + * @return TransactionResponse + */ + public function cancelReserve(): TransactionResponse + { + $this->payModel = DataRequestPayload::class; + + $cancel = new Payload($this->payload); + + $this->setServiceList('CancelReservation', $cancel); + + return $this->dataRequest(); + } + + /** + * @return TransactionResponse + */ + public function updateReserve(): TransactionResponse + { + $this->payModel = DataRequestPayload::class; + + $update = new Payload($this->payload); + + $this->setServiceList('UpdateReservation', $update); + + $this->setPayPayload(); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Models/Payload.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Models/Payload.php new file mode 100644 index 000000000..cd4a0d780 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Models/Payload.php @@ -0,0 +1,86 @@ + [ + 'groupType' => 'Article', + ], + ]; + + public function billing($billing = null) + { + if (is_array($billing)) + { + $this->billingRecipient = new Recipient('Billing', $billing); + $this->shippingRecipient = new Recipient('Shipping', $billing); + } + + return $this->billingRecipient; + } + + public function shipping($shipping = null) + { + if (is_array($shipping)) + { + $this->shippingSameAsBilling = false; + + $this->shippingRecipient = new Recipient('Shipping', $shipping); + } + + return $this->shippingRecipient; + } + + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Models/Recipient.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Models/Recipient.php new file mode 100644 index 000000000..242a0836d --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Models/Recipient.php @@ -0,0 +1,73 @@ +type = $type; + + parent::__construct($values); + } + + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone), $this->type); + } + + return $this->phone; + } + + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new EmailAdapter(new Email($email), $this->type); + } + + return $this->email; + } + + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter(new Address($address), $this->type); + } + + return $this->address; + } + + public function recipient($recipient = null) + { + if (is_array($recipient)) + { + $this->recipient = new RecipientAdapter(new Person($recipient), $this->type); + } + + return $this->recipient; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..5d5083f09 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,31 @@ + 'PostalCode', + 'houseNumberAdditional' => 'HouseNumberSuffix', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..926436146 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,35 @@ + 'ArticleType', + 'description' => 'ArticleTitle', + 'identifier' => 'ArticleNumber', + 'price' => 'ArticlePrice', + 'quantity' => 'ArticleQuantity', + 'vatPercentage' => 'ArticleVat', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/EmailAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/EmailAdapter.php new file mode 100644 index 000000000..0641fe46d --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/EmailAdapter.php @@ -0,0 +1,27 @@ + 'PhoneNumber', + 'mobile' => 'CellPhoneNumber', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/RecipientAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/RecipientAdapter.php new file mode 100644 index 000000000..0f6be322d --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaKP/Service/ParameterKeys/RecipientAdapter.php @@ -0,0 +1,57 @@ +type = $type; + + parent::__construct($model); + } + + /** + * @param $propertyName + * @return string + */ + public function serviceParameterKeyOf($propertyName): string + { + $propertyName = (isset($this->keys[$propertyName]))? $this->keys[$propertyName] : ucfirst($propertyName); + + return $this->type . $propertyName; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/KlarnaPay.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/KlarnaPay.php new file mode 100644 index 000000000..3f0e564d3 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/KlarnaPay.php @@ -0,0 +1,71 @@ +payload)); + } + + /** + * @return KlarnaPay|mixed + */ + public function payInInstallments(): TransactionResponse + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('PayInInstallments', $pay); + + return $this->postRequest(); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new Pay($this->payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Models/Pay.php new file mode 100644 index 000000000..8697ad980 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Models/Pay.php @@ -0,0 +1,105 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @param $billing + * @return Recipient + */ + public function billing($billing = null) + { + if (is_array($billing)) + { + $this->billingRecipient = new Recipient('Billing', $billing); + $this->shippingRecipient = new Recipient('Shipping', $billing); + } + + return $this->billingRecipient; + } + + /** + * @param $shipping + * @return Recipient + */ + public function shipping($shipping = null) + { + if (is_array($shipping)) + { + $this->shippingRecipient = new Recipient('Shipping', $shipping); + } + + return $this->shippingRecipient; + } + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Models/PayPayload.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Models/PayPayload.php new file mode 100644 index 000000000..69bc7a191 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Models/PayPayload.php @@ -0,0 +1,28 @@ +type = $type; + + parent::__construct($values); + } + + /** + * @param $recipient + * @return RecipientInterface|Person + */ + public function recipient($recipient = null) + { + if (is_array($recipient)) + { + $this->recipient = new Person($recipient); + } + + return $this->recipient; + } + + /** + * @param $address + * @return AddressAdapter + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone)); + } + + return $this->phone; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param array $recipient + * @return RecipientInterface + * @throws \Exception + */ + private function getRecipientObject(array $recipient) : RecipientInterface + { + switch ($recipient['category']) + { + case 'B2B': + return new Company($recipient); + case 'B2C': + return new Person($recipient); + } + + throw new \Exception('No recipient category found.'); + } + + /** + * @param string $key + * @return string|null + */ + public function getGroupType(string $key): ?string + { + return $this->type . 'Customer'; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..6bd234bfb --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,32 @@ + 'StreetNumber', + 'houseNumberAdditional' => 'StreetNumberAdditional', + 'zipcode' => 'PostalCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..cbcf5bd3f --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,30 @@ + 'GrossUnitPrice', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/PhoneAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/PhoneAdapter.php new file mode 100644 index 000000000..da15397f7 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/KlarnaPay/Service/ParameterKeys/PhoneAdapter.php @@ -0,0 +1,30 @@ + 'Phone', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Marketplaces/Marketplaces.php b/vendor/buckaroo/sdk/src/PaymentMethods/Marketplaces/Marketplaces.php new file mode 100644 index 000000000..9bb4afcab --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Marketplaces/Marketplaces.php @@ -0,0 +1,76 @@ +payload); + + $this->setServiceList('Split', $serviceList); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Marketplaces|mixed + */ + public function transfer() + { + $serviceList = new ServiceList($this->payload); + + $this->setServiceList('Transfer', $serviceList); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Marketplaces|mixed + */ + public function refundSupplementary() + { + $serviceList = new ServiceList($this->payload); + + $this->setServiceList('RefundSupplementary', $serviceList); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Marketplaces/Models/Marketplace.php b/vendor/buckaroo/sdk/src/PaymentMethods/Marketplaces/Models/Marketplace.php new file mode 100644 index 000000000..51b64f709 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Marketplaces/Models/Marketplace.php @@ -0,0 +1,29 @@ + [ + 'groupType' => 'Marketplace', + ], + 'sellers' => [ + 'groupType' => 'Seller', + ], + ]; + + /** + * @param $marketplace + * @return Marketplace + */ + public function marketplace($marketplace = null) + { + if (is_array($marketplace)) + { + $this->marketplace = new Marketplace($marketplace); + } + + return $this->marketplace; + } + + /** + * @param $sellers + * @return array + */ + public function sellers($sellers = null) + { + if (is_array($sellers)) + { + foreach ($sellers as $seller) + { + $this->sellers[] = new Seller($seller); + } + } + + return $this->sellers; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/NoServiceSpecifiedPayment/NoServiceSpecifiedPayment.php b/vendor/buckaroo/sdk/src/PaymentMethods/NoServiceSpecifiedPayment/NoServiceSpecifiedPayment.php new file mode 100644 index 000000000..bb02a8f85 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/NoServiceSpecifiedPayment/NoServiceSpecifiedPayment.php @@ -0,0 +1,47 @@ +customer = new CustomerAdapter(new Person($customer)); + } + + return $this->customer; + } + + /** + * @param $email + * @return EmailAdapter + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new EmailAdapter(new Email($email)); + } + + return $this->email; + } + + /** + * @param array|null $attachments + * @return array + */ + public function attachments(?array $attachments = null) + { + if (is_array($attachments)) + { + foreach ($attachments as $attachment) + { + $this->attachments[] = new AttachmentAdapter(new Attachment($attachment)); + } + } + + return $this->attachments; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/PayPerEmail.php b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/PayPerEmail.php new file mode 100644 index 000000000..232dbfabd --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/PayPerEmail.php @@ -0,0 +1,49 @@ +payload); + + $payPayload = new PayPayload($this->payload); + + $this->request->setPayload($payPayload); + + $this->setServiceList('PaymentInvitation', $paymentInvitation); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/AttachmentAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/AttachmentAdapter.php new file mode 100644 index 000000000..414f0d39f --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/AttachmentAdapter.php @@ -0,0 +1,30 @@ + 'attachment', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/CustomerAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/CustomerAdapter.php new file mode 100644 index 000000000..58c017de1 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/CustomerAdapter.php @@ -0,0 +1,32 @@ + 'customergender', + 'firstName' => 'CustomerFirstName', + 'lastName' => 'CustomerLastName', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/EmailAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/EmailAdapter.php new file mode 100644 index 000000000..31c2ac137 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PayPerEmail/Service/ParameterKeys/EmailAdapter.php @@ -0,0 +1,30 @@ + 'CustomerEmail', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PayablePaymentMethod.php b/vendor/buckaroo/sdk/src/PaymentMethods/PayablePaymentMethod.php new file mode 100644 index 000000000..4ed63adcf --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PayablePaymentMethod.php @@ -0,0 +1,106 @@ +setPayPayload(); + + $this->setServiceList('Pay', $model); + + //TODO + //Create validator class that validates specific request + //$request->validate(); + return $this->postRequest(); + } + + /** + * @param Model|null $model + * @return PayablePaymentMethod|mixed + */ + public function payRemainder(?Model $model = null) + { + $this->setPayPayload(); + + $this->setServiceList('PayRemainder', $model); + + return $this->postRequest(); + } + + /** + * @param Model|null $model + * @return PayablePaymentMethod|mixed + */ + public function refund(?Model $model = null) + { + $this->setRefundPayload(); + + $this->setServiceList('Refund', $model); + + return $this->postRequest(); + } + + /** + * @return $this + */ + protected function setPayPayload() + { + $payPayload = new $this->payModel($this->payload); + + $this->request->setPayload($payPayload); + + return $this; + } + + /** + * @return $this + */ + protected function setRefundPayload() + { + $refundPayload = new $this->refundModel($this->payload); + + $this->request->setPayload($refundPayload); + + return $this; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Payconiq/Payconiq.php b/vendor/buckaroo/sdk/src/PaymentMethods/Payconiq/Payconiq.php new file mode 100644 index 000000000..61a3bc219 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Payconiq/Payconiq.php @@ -0,0 +1,44 @@ +setRefundPayload(); + + $this->setServiceList('instantRefund', $model); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PaymentFacade.php b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentFacade.php new file mode 100644 index 000000000..584472acb --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentFacade.php @@ -0,0 +1,183 @@ +client = $client; + + $this->paymentMethod = PaymentMethodFactory::get($client, $method); + } + + /** + * @return $this + */ + public function manually() + { + $this->paymentMethod->manually(true); + + return $this; + } + + /** + * @param $combinablePayment + * @return $this + */ + public function combine($combinablePayment) + { + if (is_array($combinablePayment)) + { + foreach ($combinablePayment as $combinable_payment) + { + $this->combine($combinable_payment); + } + + return $this; + } + + if ($combinablePayment instanceof Combinable) + { + $this->paymentMethod->combinePayment($combinablePayment); + } + + return $this; + } + + /** + * @return PaymentMethod + */ + public function paymentMethod(): PaymentMethod + { + return $this->paymentMethod; + } + + /** + * @param string $name + * @param array $arguments + * @return mixed + * @throws BuckarooException + */ + public function __call(?string $name, array $arguments) + { + if (method_exists($this->paymentMethod, $name)) + { + $this->paymentMethod->setPayload((new PayloadService($arguments[0] ?? []))->toArray()); + + return $this->paymentMethod->$name(); + } + + throw new BuckarooException( + $this->client->config()->getLogger(), + "Payment method " . + $name . " on payment " . + $this->paymentMethod->paymentName() . " you requested does not exist." + ); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PaymentInitiation/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentInitiation/Models/Pay.php new file mode 100644 index 000000000..456450f45 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentInitiation/Models/Pay.php @@ -0,0 +1,12 @@ +payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PaymentInterface.php b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentInterface.php new file mode 100644 index 000000000..1f8331d98 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentInterface.php @@ -0,0 +1,27 @@ +client = $client; + + $this->request = new TransactionRequest; + $this->serviceCode = $serviceCode; + } + + /** + * @param array $payload + * @return $this + * @throws \Buckaroo\Exceptions\BuckarooException + */ + public function setPayload(array $payload) + { + //When custom config pass into the payload + $this->client->config()->merge($payload); + + $this->payload = array_merge($this->client->config()->get($this->requiredConfigFields), $payload); + + return $this; + } + + /** + * @return $this|mixed + */ + protected function postRequest() + { + if ($this->isManually) + { + return $this; + } + + return $this->client->post( + $this->request, + TransactionResponse::class + ); + } + + /** + * @return $this|mixed + */ + protected function dataRequest() + { + if ($this->isManually) + { + return $this; + } + + return $this->client->dataRequest( + $this->request, + TransactionResponse::class + ); + } + + /** + * @param string $action + * @param Model|null $model + * @return $this + */ + protected function setServiceList(?string $action, ?Model $model = null): PaymentMethod + { + $serviceList = new ServiceList($this->paymentName(), $this->serviceVersion(), $action, $model); + + $this->request->getServices()->pushServiceList($serviceList); + + return $this; + } + + /** + * @return string + */ + public function paymentName(): string + { + return $this->paymentName; + } + + /** + * @return int + */ + public function serviceVersion(): int + { + return $this->serviceVersion; + } + + /** + * @param bool|null $isManually + * @return $this + */ + public function manually(?bool $isManually = null) + { + if ($isManually !== null) + { + $this->isManually = $isManually; + } + + return $this; + } + + /** + * @param Combinable $combinablePayment + * @return $this + */ + public function combinePayment(Combinable $combinablePayment) + { + $this->combinablePayment = $combinablePayment; + + $payload_data = array_filter($combinablePayment->request->data(), function ($key) { + return ! in_array($key, ['Services']); + }, ARRAY_FILTER_USE_KEY); + + foreach ($payload_data as $key => $value) + { + $this->request->setData($key, $value); + } + + foreach ($this->combinablePayment->request->getServices()->serviceList() as $serviceList) + { + $this->request->getServices()->pushServiceList($serviceList); + } + + return $this; + } + + public function request(): TransactionRequest + { + return $this->request; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PaymentMethodFactory.php b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentMethodFactory.php new file mode 100644 index 000000000..ca9149dfb --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PaymentMethodFactory.php @@ -0,0 +1,192 @@ + ['applepay'], + Alipay::class => ['alipay'], + Afterpay::class => ['afterpay'], + AfterpayDigiAccept::class => ['afterpaydigiaccept'], + Bancontact::class => ['bancontact', 'bancontactmrcash'], + Billink::class => ['billink'], + Belfius::class => ['belfius'], + BuckarooWallet::class => ['buckaroo_wallet'], + CreditCard::class => + [ + 'creditcard', 'mastercard', 'visa', + 'amex', 'vpay', 'maestro', + 'visaelectron', 'cartebleuevisa', + 'cartebancaire', 'dankort', 'nexi', + 'postepay', + ], + CreditClick::class => ['creditclick'], + CreditManagement::class => ['credit_management'], + iDeal::class => ['ideal', 'idealprocessing'], + iDealQR::class => ['ideal_qr'], + iDin::class => ['idin'], + In3::class => ['in3'], + In3Old::class => ['in3old'], + KlarnaPay::class => ['klarna', 'klarnain'], + KlarnaKP::class => ['klarnakp'], + Surepay::class => ['surepay'], + Subscriptions::class => ['subscriptions'], + SEPA::class => ['sepadirectdebit', 'sepa'], + KBC::class => ['kbc', 'kbcpaymentbutton'], + Paypal::class => ['paypal'], + PayPerEmail::class => ['payperemail'], + PaymentInitiation::class => ['paymentinitiation','paybybank'], + EPS::class => ['eps'], + Emandates::class => ['emandates'], + Sofort::class => ['sofort', 'sofortueberweisung'], + Tinka::class => ['tinka'], + Marketplaces::class => ['marketplaces'], + NoServiceSpecifiedPayment::class => ['noservice'], + Payconiq::class => ['payconiq'], + Przelewy24::class => ['przelewy24'], + PointOfSale::class => ['pospayment'], + Giropay::class => ['giropay'], + NoServiceSpecifiedPayment::class => ['noservice'], + GiftCard::class => [ + 'giftcard', 'westlandbon', 'babygiftcard', 'babyparkgiftcard', + 'beautywellness', 'boekenbon', 'boekenvoordeel', + 'designshopsgiftcard', 'fashioncheque', 'fashionucadeaukaart', + 'fijncadeau', 'koffiecadeau', 'kokenzo', + 'kookcadeau', 'nationaleentertainmentcard', 'naturesgift', + 'podiumcadeaukaart', 'shoesaccessories', 'webshopgiftcard', + 'wijncadeau', 'wonenzo', 'yourgift', + 'vvvgiftcard', 'parfumcadeaukaart', + ], + Thunes::class => [ + 'thunes', 'monizzemealvoucher', 'monizzeecovoucher', 'monizzegiftvoucher', + 'sodexomealvoucher', 'sodexoecovoucher', 'sodexogiftvoucher', + ], + Trustly::class => ['trustly'], + BankTransfer::class => ['transfer'], + WeChatPay::class => ['wechatpay'], + BuckarooVoucher::class => ['buckaroovoucher'], + ]; + + /** + * @var Client + */ + private Client $client; + /** + * @var string + */ + private ?string $paymentMethod; + + /** + * @param Client $client + * @param string|null $paymentMethod + */ + public function __construct(Client $client, ?string $paymentMethod) + { + $this->client = $client; + $this->paymentMethod = ($paymentMethod)? strtolower($paymentMethod) : null; + } + + /** + * @return PaymentMethod + * @throws BuckarooException + */ + public function getPaymentMethod(): PaymentMethod + { + if ($this->paymentMethod) + { + foreach (self::$payments as $class => $alias) + { + if (in_array($this->paymentMethod, $alias)) + { + return new $class($this->client, $this->paymentMethod); + } + } + + throw new BuckarooException( + $this->client->config()->getLogger(), + "Wrong payment method code has been given" + ); + } + + return new NoServiceSpecifiedPayment($this->client, $this->paymentMethod); + } + + /** + * @param Client $client + * @param string|null $paymentMethod + * @return PaymentMethod + * @throws BuckarooException + */ + public static function get(Client $client, ?string $paymentMethod): PaymentMethod + { + $factory = new self($client, $paymentMethod); + + return $factory->getPaymentMethod(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Models/Address.php b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Models/Address.php new file mode 100644 index 000000000..0c6baa54c --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Models/Address.php @@ -0,0 +1,26 @@ +address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } + + /** + * @param $customer + * @return Person + */ + public function customer($customer = null) + { + if (is_array($customer)) + { + $this->customer = new Person($customer); + } + + return $this->customer; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone)); + } + + return $this->phone; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Models/Pay.php new file mode 100644 index 000000000..582094c14 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Models/Pay.php @@ -0,0 +1,33 @@ +payload)); + } + + /** + * @return TransactionResponse + */ + public function payRecurrent(): TransactionResponse + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('PayRecurrent', $pay); + + return $this->postRequest(); + } + + /** + * @return Paypal|mixed + */ + public function extraInfo() + { + $extraInfo = new ExtraInfo($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('Pay,ExtraInfo', $extraInfo); + + return $this->postRequest(); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new Pay($this->payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..d74a34eb8 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,33 @@ + 'Street1', + 'city' => 'CityName', + 'state' => 'StateOrProvince', + 'zipcode' => 'PostalCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Service/ParameterKeys/PhoneAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Service/ParameterKeys/PhoneAdapter.php new file mode 100644 index 000000000..c86325ebc --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Paypal/Service/ParameterKeys/PhoneAdapter.php @@ -0,0 +1,30 @@ + 'Phone', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/PointOfSale/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/PointOfSale/Models/Pay.php new file mode 100644 index 000000000..25edcdb88 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/PointOfSale/Models/Pay.php @@ -0,0 +1,28 @@ +payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Models/Pay.php new file mode 100644 index 000000000..c76466ff0 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Models/Pay.php @@ -0,0 +1,67 @@ +customer = new CustomerAdapter(new Person($customer)); + } + + return $this->customer; + } + + /** + * @param $email + * @return EmailAdapter + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new EmailAdapter(new Email($email)); + } + + return $this->email; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Przelewy24.php b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Przelewy24.php new file mode 100644 index 000000000..a1ec0dfbb --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Przelewy24.php @@ -0,0 +1,52 @@ +payload)); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new Pay($this->payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Service/ParameterKeys/CustomerAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Service/ParameterKeys/CustomerAdapter.php new file mode 100644 index 000000000..263c8357e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Service/ParameterKeys/CustomerAdapter.php @@ -0,0 +1,32 @@ + 'CustomerFirstName', + 'lastName' => 'CustomerLastName', + 'email' => 'CustomerEmail', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Service/ParameterKeys/EmailAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Service/ParameterKeys/EmailAdapter.php new file mode 100644 index 000000000..38c038a4b --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Przelewy24/Service/ParameterKeys/EmailAdapter.php @@ -0,0 +1,30 @@ + 'CustomerEmail', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Models/ExtraInfo.php b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Models/ExtraInfo.php new file mode 100644 index 000000000..cd8dca244 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Models/ExtraInfo.php @@ -0,0 +1,63 @@ +address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Models/Pay.php new file mode 100644 index 000000000..faecafdc9 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Models/Pay.php @@ -0,0 +1,72 @@ +customer = new CustomerAdapter(new Person($customer)); + } + + return $this->customer; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/SEPA.php b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/SEPA.php new file mode 100644 index 000000000..1eab2472f --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/SEPA.php @@ -0,0 +1,108 @@ +payload))); + } + + /** + * @return TransactionResponse + */ + public function authorize(): TransactionResponse + { + $pay = new PayAdapter(new Pay($this->payload)); + + $this->setPayPayload(); + + $this->setServiceList('Authorize', $pay); + + return $this->postRequest(); + } + + /** + * @return SEPA|mixed + */ + public function payRecurrent() + { + $pay = new PayAdapter(new Pay($this->payload)); + + $this->setPayPayload(); + + $this->setServiceList('PayRecurrent', $pay); + + return $this->postRequest(); + } + + /** + * @return SEPA|mixed + */ + public function extraInfo() + { + $extraInfo = new PayAdapter(new ExtraInfo($this->payload)); + + $this->setPayPayload(); + + $this->setServiceList('Pay,ExtraInfo', $extraInfo); + + return $this->postRequest(); + } + + /** + * @return SEPA|mixed + */ + public function payWithEmandate() + { + $pay = new Pay($this->payload); + + $this->setPayPayload(); + + $this->setServiceList('PayWithEmandate', $pay); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..329efd240 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,30 @@ + 'housenumbersuffix', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/CustomerAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/CustomerAdapter.php new file mode 100644 index 000000000..1d4d369cc --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/CustomerAdapter.php @@ -0,0 +1,30 @@ + 'customeraccountname', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/PayAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/PayAdapter.php new file mode 100644 index 000000000..8022b2188 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/SEPA/Service/ParameterKeys/PayAdapter.php @@ -0,0 +1,31 @@ + 'customerbic', + 'iban' => 'CustomerIBAN', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Sofort/Sofort.php b/vendor/buckaroo/sdk/src/PaymentMethods/Sofort/Sofort.php new file mode 100644 index 000000000..68adc948a --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Sofort/Sofort.php @@ -0,0 +1,47 @@ +setRefundPayload(); + + $this->setServiceList('instantRefund', $model); + + return $this->postRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Models/CombinedPayload.php b/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Models/CombinedPayload.php new file mode 100644 index 000000000..bbd92c38b --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Models/CombinedPayload.php @@ -0,0 +1,31 @@ + [ + 'groupType' => 'Debtor', + ], + 'person' => [ + 'groupType' => 'Person', + ], + 'email' => [ + 'groupType' => 'Email', + ], + 'address' => [ + 'groupType' => 'Address', + ], + 'addRatePlan' => [ + 'groupType' => 'AddRatePlan', + ], + 'configuration' => [ + 'groupType' => 'AddConfiguration', + ], + 'updateRatePlan' => [ + 'groupType' => 'UpdateRatePlan', + ], + 'disableRatePlan' => [ + 'groupType' => 'DisableRatePlan', + ], + 'addRatePlanCharge' => [ + 'groupType' => 'AddRatePlanCharge', + ], + 'updateRatePlanCharge' => [ + 'groupType' => 'UpdateRatePlanCharge', + ], + 'disableRatePlanCharge' => [ + 'groupType' => 'DisableRatePlanCharge', + ], + ]; + + /** + * @param $debtor + * @return Debtor + */ + public function debtor($debtor = null) + { + if (is_array($debtor)) + { + $this->debtor = new Debtor($debtor); + } + + return $this->debtor; + } + + /** + * @param $bankAccount + * @return BankAccount + */ + public function bankAccount($bankAccount = null) + { + if (is_array($bankAccount)) + { + $this->bankAccount = new BankAccount($bankAccount); + } + + return $this->bankAccount; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param $phone + * @return Phone + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new Phone($phone); + } + + return $this->phone; + } + + /** + * @param $address + * @return Address + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new Address($address); + } + + return $this->address; + } + + /** + * @param $person + * @return Person + */ + public function person($person = null) + { + if (is_array($person)) + { + $this->person = new Person($person); + } + + return $this->person; + } + + /** + * @param $company + * @return Company|CompanyAdapter + */ + public function company($company = null) + { + if (is_array($company)) + { + $this->company = new CompanyAdapter(new Company($company)); + } + + return $this->company; + } + + /** + * @param $configuration + * @return Configuration + */ + public function configuration($configuration = null) + { + if (is_array($configuration)) + { + $this->configuration = new Configuration($configuration); + } + + return $this->configuration; + } + + /** + * @param $rate_plans + * @return $this + */ + public function ratePlans($rate_plans = null) + { + if (is_array($rate_plans)) + { + foreach ($rate_plans as $type => $rate_plan) + { + $property = $type . 'RatePlan'; + + $this->$property = new RatePlan($rate_plan); + } + } + + return $this; + } + + /** + * @param $rate_plan_charges + * @return $this + */ + public function ratePlanCharges($rate_plan_charges = null) + { + if (is_array($rate_plan_charges)) + { + foreach ($rate_plan_charges as $type => $rate_plan_charge) + { + $property = $type . 'RatePlanCharge'; + + $this->$property = new RatePlanCharge($rate_plan_charge); + } + } + + return $this; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Service/ParameterKeys/CompanyAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Service/ParameterKeys/CompanyAdapter.php new file mode 100644 index 000000000..a682c15e3 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Service/ParameterKeys/CompanyAdapter.php @@ -0,0 +1,33 @@ + 'Name', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Subscriptions.php b/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Subscriptions.php new file mode 100644 index 000000000..65b09e7ab --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Subscriptions/Subscriptions.php @@ -0,0 +1,165 @@ +payload); + + $this->setServiceList('CreateSubscription', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function createCombined() + { + $subscription = new Subscription($this->payload); + + $this->setServiceList('CreateCombinedSubscription', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function update() + { + $subscription = new Subscription($this->payload); + + $this->setServiceList('UpdateSubscription', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function updateCombined() + { + $subscription = new Subscription($this->payload); + + $payPayload = new CombinedPayload($this->payload); + + $this->request->setPayload($payPayload); + + $this->setServiceList('UpdateCombinedSubscription', $subscription); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function stop() + { + $subscription = new Subscription($this->payload); + + $this->setServiceList('StopSubscription', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function info() + { + $subscription = new Subscription($this->payload); + + $this->setServiceList('SubscriptionInfo', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function deletePaymentConfig() + { + $subscription = new Subscription($this->payload); + + $this->setServiceList('DeletePaymentConfiguration', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function pause() + { + $subscription = new ResumeSubscription($this->payload); + + $this->setServiceList('PauseSubscription', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return Subscriptions|mixed + */ + public function resume() + { + $subscription = new ResumeSubscription($this->payload); + + $this->setServiceList('ResumeSubscription', $subscription); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Models/Verify.php b/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Models/Verify.php new file mode 100644 index 000000000..512bff6dc --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Models/Verify.php @@ -0,0 +1,47 @@ +bankAccount = new BankAccountAdapter(new BankAccount($bankAccount)); + } + + return $this->bankAccount; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Service/ParameterKeys/BankAccountAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Service/ParameterKeys/BankAccountAdapter.php new file mode 100644 index 000000000..da3bde3c8 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Service/ParameterKeys/BankAccountAdapter.php @@ -0,0 +1,30 @@ + 'customeraccountname', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Surepay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Surepay.php new file mode 100644 index 000000000..b7815776f --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Surepay/Surepay.php @@ -0,0 +1,47 @@ +payload); + + $this->setServiceList('verify', $verify); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Models/Pay.php new file mode 100644 index 000000000..5bb06890e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Models/Pay.php @@ -0,0 +1,56 @@ + [ + 'groupType' => 'Article', + ], + ]; + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..2fa96196d --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,32 @@ + 'ArticleId', + 'description' => 'ArticleLabel', + 'price' => 'ArticleUnitPrice', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Thunes.php b/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Thunes.php new file mode 100644 index 000000000..65c6cf76c --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Thunes/Thunes.php @@ -0,0 +1,61 @@ +payload)); + } + + /** + * @return string + */ + public function paymentName(): string + { + if (isset($this->payload['name'])) + { + return $this->payload['name']; + } + + return 'thunes'; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Models/Article.php b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Models/Article.php new file mode 100644 index 000000000..1ad39f077 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Models/Article.php @@ -0,0 +1,26 @@ + [ + 'groupType' => 'Article', + ], + ]; + + /** + * @param $billing + * @return Recipient + */ + public function billing($billing = null) + { + if (is_array($billing)) + { + $this->billingRecipient = new Recipient('Billing', $billing); + $this->shippingRecipient = new Recipient('Billing', $billing); + } + + return $this->billingRecipient; + } + + /** + * @param $shipping + * @return Recipient + */ + public function shipping($shipping = null) + { + if (is_array($shipping)) + { + $this->shippingRecipient = new Recipient('Shipping', $shipping); + } + + return $this->shippingRecipient; + } + + /** + * @param $customer + * @return CustomerAdapter + */ + public function customer($customer = null) + { + if (is_array($customer)) + { + $this->customer = new CustomerAdapter(new Person($customer)); + } + + return $this->customer; + } + + /** + * @param array|null $articles + * @return array + */ + public function articles(?array $articles = null) + { + if (is_array($articles)) + { + foreach ($articles as $article) + { + $this->articles[] = new ArticleAdapter(new Article($article)); + } + } + + return $this->articles; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Models/Recipient.php b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Models/Recipient.php new file mode 100644 index 000000000..b266423ab --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Models/Recipient.php @@ -0,0 +1,132 @@ +type = $type; + + parent::__construct($values); + } + + /** + * @param $recipient + * @return CustomerAdapter + */ + public function recipient($recipient = null) + { + if (is_array($recipient)) + { + $this->recipient = new CustomerAdapter(new Person($recipient)); + } + + return $this->recipient; + } + + /** + * @param $address + * @return AddressAdapter + */ + public function address($address = null) + { + if (is_array($address)) + { + $this->address = new AddressAdapter(new Address($address)); + } + + return $this->address; + } + + /** + * @param $phone + * @return PhoneAdapter + */ + public function phone($phone = null) + { + if (is_array($phone)) + { + $this->phone = new PhoneAdapter(new Phone($phone)); + } + + return $this->phone; + } + + /** + * @param $email + * @return Email + */ + public function email($email = null) + { + if (is_string($email)) + { + $this->email = new Email($email); + } + + return $this->email; + } + + /** + * @param string $key + * @return string|null + */ + public function getGroupType(string $key): ?string + { + return $this->type . 'Customer'; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/AddressAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/AddressAdapter.php new file mode 100644 index 000000000..bd316ace2 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/AddressAdapter.php @@ -0,0 +1,32 @@ + 'StreetNumber', + 'houseNumberAdditional' => 'StreetNumberAdditional', + 'zipcode' => 'PostalCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/ArticleAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/ArticleAdapter.php new file mode 100644 index 000000000..79f51acc8 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/ArticleAdapter.php @@ -0,0 +1,30 @@ + 'UnitGrossPrice', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/CustomerAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/CustomerAdapter.php new file mode 100644 index 000000000..f868f4e86 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/CustomerAdapter.php @@ -0,0 +1,31 @@ + 'PrefixLastName', + 'birthDate' => 'DateOfBirth', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/PhoneAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/PhoneAdapter.php new file mode 100644 index 000000000..7107fa2cb --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Service/ParameterKeys/PhoneAdapter.php @@ -0,0 +1,30 @@ + 'Phone', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Tinka.php b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Tinka.php new file mode 100644 index 000000000..0363ae782 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Tinka/Tinka.php @@ -0,0 +1,37 @@ +payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Traits/CountableGroupKey.php b/vendor/buckaroo/sdk/src/PaymentMethods/Traits/CountableGroupKey.php new file mode 100644 index 000000000..b2b074613 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Traits/CountableGroupKey.php @@ -0,0 +1,49 @@ +countable($key, $keyCount)) + { + return intval($keyCount) + 1; + } + + return $this->groupData[$key]['groupKey'] ?? null; + } + + /** + * @param string $key + * @param int|null $keyCount + * @return bool + */ + private function countable(string $key, ?int $keyCount = 0) + { + return isset($this->countableProperties) && in_array($key, $this->countableProperties) && is_numeric($keyCount); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Models/Pay.php new file mode 100644 index 000000000..d2d37cba4 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Models/Pay.php @@ -0,0 +1,52 @@ +customer = new CustomerAdapter(new Person($customer)); + } + + return $this->customer; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Service/ParameterKeys/CustomerAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Service/ParameterKeys/CustomerAdapter.php new file mode 100644 index 000000000..2162a1cd2 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Service/ParameterKeys/CustomerAdapter.php @@ -0,0 +1,31 @@ + 'CustomerFirstName', + 'lastName' => 'CustomerLastName', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Service/ParameterKeys/PayAdapter.php b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Service/ParameterKeys/PayAdapter.php new file mode 100644 index 000000000..e0bc27b21 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Service/ParameterKeys/PayAdapter.php @@ -0,0 +1,30 @@ + 'CustomerCountryCode', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Trustly.php b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Trustly.php new file mode 100644 index 000000000..c8d268ceb --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/Trustly/Trustly.php @@ -0,0 +1,46 @@ +payload))); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new PayAdapter(new Pay($this->payload))); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/WeChatPay/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/WeChatPay/Models/Pay.php new file mode 100644 index 000000000..0fe1678c3 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/WeChatPay/Models/Pay.php @@ -0,0 +1,28 @@ +payload)); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/iDeal/Models/Pay.php b/vendor/buckaroo/sdk/src/PaymentMethods/iDeal/Models/Pay.php new file mode 100644 index 000000000..da7304ea7 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/iDeal/Models/Pay.php @@ -0,0 +1,28 @@ +payload)); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new Pay($this->payload)); + } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function instantRefund(?Model $model = null):TransactionResponse + { + $this->setRefundPayload(); + + $this->setServiceList('instantRefund', $model); + + return $this->postRequest(); + } + + /** + * @return array + * @throws \Buckaroo\Exceptions\BuckarooException + */ + public function issuers(): array + { + $request = new TransactionRequest; + + try + { + $response = $this->client->specification($request, 'ideal', 2); + } catch (BuckarooException $e) + { + return []; + } + + $issuerList = []; + if (isset($response->data()['Actions']['0']['RequestParameters'][0]['ListItemDescriptions'])) + { + $issuersData = $response->data()['Actions']['0']['RequestParameters'][0]['ListItemDescriptions']; + if (count($issuersData) > 0) + { + foreach ($issuersData as $issuer) + { + $issuerList[] = ['id' => $issuer['Value'], 'name' => $issuer['Description']]; + } + } + } + + return $issuerList; + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/iDealQR/Models/Generate.php b/vendor/buckaroo/sdk/src/PaymentMethods/iDealQR/Models/Generate.php new file mode 100644 index 000000000..ebc20882e --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/iDealQR/Models/Generate.php @@ -0,0 +1,37 @@ +payload); + + $this->request->setPayload($payPayload); + + $generate = new Generate($this->payload); + + $this->setServiceList('Generate', $generate); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/iDin/Models/Issuer.php b/vendor/buckaroo/sdk/src/PaymentMethods/iDin/Models/Issuer.php new file mode 100644 index 000000000..2ff7d44a8 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/iDin/Models/Issuer.php @@ -0,0 +1,28 @@ + 'issuerId', + ]; +} diff --git a/vendor/buckaroo/sdk/src/PaymentMethods/iDin/iDin.php b/vendor/buckaroo/sdk/src/PaymentMethods/iDin/iDin.php new file mode 100644 index 000000000..1855a6a12 --- /dev/null +++ b/vendor/buckaroo/sdk/src/PaymentMethods/iDin/iDin.php @@ -0,0 +1,81 @@ +payload)); + + $this->setServiceList('identify', $issuer); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return iDin|mixed + */ + public function verify() + { + $issuer = new IssuerAdapter(new Issuer($this->payload)); + + $this->setServiceList('verify', $issuer); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } + + /** + * @return iDin|mixed + */ + public function login() + { + $issuer = new IssuerAdapter(new Issuer($this->payload)); + + $this->setServiceList('login', $issuer); + + $this->request->setPayload(new DataRequestPayload($this->payload)); + + return $this->dataRequest(); + } +} diff --git a/vendor/buckaroo/sdk/src/Resources/Arrayable.php b/vendor/buckaroo/sdk/src/Resources/Arrayable.php new file mode 100644 index 000000000..69a5d1e28 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Resources/Arrayable.php @@ -0,0 +1,28 @@ +setPayload($payload); + } + + /** + * @param $payload + * @return $this + * @throws \Exception + */ + protected function setPayload($payload) + { + if (is_array($payload)) + { + $this->payload = $payload; + + return $this; + } + + if (is_string($payload)) + { + $this->payload = json_decode($payload, true); + } + + if ($this->payload == null) + { + throw new \Exception("Invalid or empty payload. Array or json format required."); + } + + return $this; + } + + /** + * @return array + */ + public function toArray(): array + { + return $this->payload; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/ServiceListParameters/DefaultParameters.php b/vendor/buckaroo/sdk/src/Services/ServiceListParameters/DefaultParameters.php new file mode 100644 index 000000000..87d0a7115 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/ServiceListParameters/DefaultParameters.php @@ -0,0 +1,31 @@ +serviceList = $serviceList; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/ServiceListParameters/ModelParameters.php b/vendor/buckaroo/sdk/src/Services/ServiceListParameters/ModelParameters.php new file mode 100644 index 000000000..63b58bf47 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/ServiceListParameters/ModelParameters.php @@ -0,0 +1,109 @@ +model = $model; + $this->groupType = $groupType; + $this->groupKey = $groupKey; + + parent::__construct($serviceListParameter); + } + + /** + * @return ServiceList + */ + public function data(): ServiceList + { + foreach ($this->model->toArray() as $key => $value) + { + if (! is_array($value)) + { + $this->appendParameter( + $this->groupKey($key), + $this->groupType($key), + $this->model->serviceParameterKeyOf($key), + $value + ); + } + } + + return $this->serviceList; + } + + /** + * @param $key + * @return int|null + */ + private function groupKey($key) + { + if ($this->model instanceof ServiceParameter && ! $this->groupKey) + { + return $this->model->getGroupKey($key); + } + + return $this->groupKey; + } + + /** + * @param $key + * @return string|null + */ + private function groupType($key) + { + if ($this->model instanceof ServiceParameter && ! $this->groupType) + { + return $this->model->getGroupType($key); + } + + return $this->groupType; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/ServiceListParameters/ServiceListParameter.php b/vendor/buckaroo/sdk/src/Services/ServiceListParameters/ServiceListParameter.php new file mode 100644 index 000000000..6aa546355 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/ServiceListParameters/ServiceListParameter.php @@ -0,0 +1,85 @@ +serviceListParameter = $serviceListParameter; + $this->serviceList = $this->serviceListParameter->data(); + } + + /** + * @return ServiceList + */ + public function data(): ServiceList + { + return $this->serviceList; + } + + /** + * @param int|null $groupKey + * @param string|null $groupType + * @param string $name + * @param $value + * @return $this + */ + protected function appendParameter(?int $groupKey, ?string $groupType, string $name, $value) + { + if (! is_null($value)) + { + if (is_callable($value)) + { + $this->serviceList->appendParameter($value($groupKey, $groupType)); + + return $this; + } + + $this->serviceList->appendParameter([ + "Name" => $name, + "Value" => $value, + "GroupType" => (is_null($groupType))? "" : $groupType, + "GroupID" => (is_null($groupKey))? "" : $groupKey, + ]); + } + + return $this; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/TransactionHeaders/ChannelHeader.php b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/ChannelHeader.php new file mode 100644 index 000000000..f63beb5b0 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/ChannelHeader.php @@ -0,0 +1,56 @@ +config = $config; + + parent::__construct($transactionHeader); + } + + /** + * @return array + */ + public function getHeaders(): array + { + $headers = $this->transactionHeader->getHeaders(); + + $headers[] = "Channel: " . $this->config->channel(); + + return $headers; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/TransactionHeaders/CultureHeader.php b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/CultureHeader.php new file mode 100644 index 000000000..38eea6b0a --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/CultureHeader.php @@ -0,0 +1,60 @@ +config = $config; + + parent::__construct($transactionHeader); + } + + /** + * @return array + */ + public function getHeaders(): array + { + $headers = $this->transactionHeader->getHeaders(); + + $headers[] = "Culture: " . $this->config->culture(); + + return $headers; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/TransactionHeaders/DefaultHeader.php b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/DefaultHeader.php new file mode 100644 index 000000000..27fd8bd17 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/DefaultHeader.php @@ -0,0 +1,29 @@ +headers = $headers ?? []; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/TransactionHeaders/HmacHeader.php b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/HmacHeader.php new file mode 100644 index 000000000..59988c5ec --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/HmacHeader.php @@ -0,0 +1,56 @@ +hmacGenerator = new Generator($config, $content, $requestUri, $httpMethod); + + parent::__construct($transactionHeader); + } + + public function getHeaders(): array + { + $headers = $this->transactionHeader->getHeaders(); + + $headers[] = "Authorization: hmac " . $this->hmacGenerator->generate(); + + return $headers; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/TransactionHeaders/SoftwareHeader.php b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/SoftwareHeader.php new file mode 100644 index 000000000..111a1b119 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/SoftwareHeader.php @@ -0,0 +1,54 @@ +config = $config; + + parent::__construct($transactionHeader); + } + /** + * @return array + */ + public function getHeaders(): array + { + $headers = $this->transactionHeader->getHeaders(); + + $headers[] = "Software: " . json_encode([ + "PlatformName" => $this->config->platformName(), + "PlatformVersion" => $this->config->platformVersion(), + "ModuleSupplier" => $this->config->moduleSupplier(), + "ModuleName" => $this->config->moduleName(), + "ModuleVersion" => $this->config->moduleVersion(), + ]); + + return $headers; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/TransactionHeaders/TransactionHeader.php b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/TransactionHeader.php new file mode 100644 index 000000000..0fd9bcffe --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/TransactionHeaders/TransactionHeader.php @@ -0,0 +1,50 @@ +transactionHeader = $transactionHeader; + } + + /** + * @return array + */ + public function getHeaders(): array + { + return $this->headers; + } +} diff --git a/vendor/buckaroo/sdk/src/Services/TransactionService.php b/vendor/buckaroo/sdk/src/Services/TransactionService.php new file mode 100644 index 000000000..2ad63b8e2 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Services/TransactionService.php @@ -0,0 +1,69 @@ +transactionKey = $transactionKey; + $this->client = $client; + } + + /** + * @return TransactionResponse + * @throws \Buckaroo\Exceptions\BuckarooException + */ + public function status(): TransactionResponse + { + return $this->client->get( + TransactionResponse::class, + $this->client->getEndpoint('json/Transaction/Status/' . $this->transactionKey) + ); + } + + /** + * @return Response + * @throws \Buckaroo\Exceptions\BuckarooException + */ + public function refundInfo(): Response + { + return $this->client->get( + Response::class, + $this->client->getEndpoint('json/Transaction/RefundInfo/' . $this->transactionKey) + ); + } + + /** + * @return Response + * @throws \Buckaroo\Exceptions\BuckarooException + */ + public function cancelInfo(): Response + { + return $this->client->get( + Response::class, + $this->client->getEndpoint('json/Transaction/Cancel/' . $this->transactionKey) + ); + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Client.php b/vendor/buckaroo/sdk/src/Transaction/Client.php new file mode 100644 index 000000000..b3116fac6 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Client.php @@ -0,0 +1,247 @@ +config = $config; + $this->httpClient = new HttpClientGuzzle($config->getLogger()); + } + + /** + * @return string + */ + public function getTransactionUrl(): string + { + return $this->getEndpoint('json/Transaction/'); + } + + /** + * @param $path + * @return string + * @throws BuckarooException + */ + public function getEndpoint($path): string + { + $baseUrl = ($this->config()->isLiveMode())? Endpoints::LIVE : Endpoints::TEST; + + return $baseUrl . $path; + } + + /** + * @param string $url + * @param string $data + * @param string $method + * @return array + */ + protected function getHeaders(string $url, string $data, string $method): array + { + $headers = new DefaultHeader([ + 'Content-Type: application/json; charset=utf-8', + 'Accept: application/json', + ]); + + $headers = new HmacHeader($headers, $this->config, $url, $data, $method); + $headers = new CultureHeader($headers, $this->config); + $headers = new ChannelHeader($headers, $this->config); + $headers = new SoftwareHeader($headers, $this->config); + + return $headers->getHeaders(); + } + + //WIP + + /** + * @param $responseClass + * @return mixed + */ + public function get($responseClass = Response::class, string $endPoint = null) + { + return $this->call(self::METHOD_GET, null, $responseClass, $endPoint); + } + + /** + * @param Request|null $data + * @param $responseClass + * @return mixed + */ + public function post(Request $data = null, $responseClass = TransactionResponse::class) + { + return $this->call(self::METHOD_POST, $data, $responseClass); + } + + /** + * @param Request|null $data + * @param $responseClass + * @return mixed + * @throws BuckarooException + */ + public function dataRequest(Request $data = null, $responseClass = TransactionResponse::class) + { + $endPoint = $this->getEndpoint('json/DataRequest/'); + + return $this->call(self::METHOD_POST, $data, $responseClass, $endPoint); + } + + /** + * @param Request|null $data + * @param $responseClass + * @return mixed + * @throws BuckarooException + */ + public function dataBatchRequest(Request $data = null, $responseClass = TransactionResponse::class) + { + $endPoint = $this->getEndpoint('json/batch/DataRequests'); + + return $this->call(self::METHOD_POST, $data, $responseClass, $endPoint); + } + + /** + * @param Request|null $data + * @param $responseClass + * @return mixed + * @throws BuckarooException + */ + public function transactionBatchRequest(Request $data = null, $responseClass = TransactionResponse::class) + { + $endPoint = $this->getEndpoint('json/batch/Transactions'); + + return $this->call(self::METHOD_POST, $data, $responseClass, $endPoint); + } + + /** + * @param Request|null $data + * @param string $paymentName + * @param int $serviceVersion + * @return mixed + * @throws BuckarooException + */ + public function specification(Request $data = null, string $paymentName, int $serviceVersion = 0) + { + $endPoint = $this->getEndpoint( + 'json/Transaction/Specification/' . $paymentName . + '?serviceVersion=' . $serviceVersion + ); + + return $this->call(self::METHOD_GET, $data, TransactionResponse::class, $endPoint); + } + + /** + * @param $method + * @param Request $data + * @param string $responseClass + * @param string|null $endPoint + * @return mixed + * @throws BuckarooException + * @throws \Buckaroo\Exceptions\TransferException + */ + protected function call($method, Request $data = null, string $responseClass, string $endPoint = null) + { + $endPoint = $endPoint ?? $this->getTransactionUrl(); + + // all headers have to be set at once + $headers = $this->getHeaders($endPoint, ($data)? $data->toJson() : '', $method); + $headers = array_merge($headers, ($data)? $data->getHeaders() : []); + + $this->config->getLogger()->info($method . ' ' . $endPoint); + $this->config->getLogger()->info('HEADERS: ' . json_encode($headers)); + + if ($data) + { + $this->config->getLogger()->info( + 'PAYLOAD: ' . $data->toJson() + ); + } + + list($response, $decodedResult) = $this->httpClient->call( + $endPoint, + $headers, + $method, + ($data)? $data->toJson() : '' + ); + + $response = new $responseClass($response, $decodedResult); + + return $response; + } + + /** + * @param Config|null $config + * @return Config|null + * @throws BuckarooException + */ + public function config(?Config $config = null) + { + if ($config) + { + $this->config = $config; + } + + if (! $this->config) + { + throw new BuckarooException( + $this->logger, + "No config has been configured. + Please pass your credentials to the constructor or set up a Config object." + ); + } + + return $this->config; + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Request/BatchRequest.php b/vendor/buckaroo/sdk/src/Transaction/Request/BatchRequest.php new file mode 100644 index 000000000..773812b5c --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Request/BatchRequest.php @@ -0,0 +1,34 @@ +transactions = $transactions; + } + + /** + * @return string + */ + public function toJson(): string + { + $data = array_map(function ($transaction) { + return $transaction->request()->toArray(); + }, $this->transactions); + + return json_encode($data); + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientAbstract.php b/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientAbstract.php new file mode 100644 index 000000000..52a2d087a --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientAbstract.php @@ -0,0 +1,101 @@ +logger = $logger; + } + + /** + * @param string $url + * @param array $headers + * @param string $method + * @param string|null $data + * @return mixed + */ + abstract public function call(string $url, array $headers, string $method, string $data = null); + + /** + * @param $result + * @return array + * @throws BuckarooException + */ + protected function getDecodedResult($response, $result): array + { + $decoded_result = json_decode($result, true); + + if (is_array($decoded_result)) + { + return $decoded_result; + } + + throw new BuckarooException( + $this->logger, + 'Status code: ' . + $response->getStatusCode() . + ' Message: ' . + $result + ); + } + + /** + * @param array $headers + * @return array + */ + protected function convertHeadersFormat(array $headers): array + { + $resultHeaders = []; + + foreach ($headers as $header) + { + $headerName = substr($header, 0, strpos($header, ':')); + $headerValue = substr($header, strpos($header, ':') + 2); + $resultHeaders[$headerName] = $headerValue; + } + + return $resultHeaders; + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientGuzzle.php b/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientGuzzle.php new file mode 100644 index 000000000..d15a2fd74 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientGuzzle.php @@ -0,0 +1,92 @@ +logger = $logger; + + $this->httpClient = new Client([ + RequestOptions::TIMEOUT => self::TIMEOUT, + RequestOptions::CONNECT_TIMEOUT => self::CONNECT_TIMEOUT, + ]); + } + + /** + * @param string $url + * @param array $headers + * @param string $method + * @param string|null $data + * @return array|mixed + * @throws TransferException + * @throws \Buckaroo\Exceptions\BuckarooException + */ + public function call(string $url, array $headers, string $method, string $data = null) + { + $headers = $this->convertHeadersFormat($headers); + + $request = new Request($method, $url, $headers, $data); + + try + { + $response = $this->httpClient->send($request, ['http_errors' => false]); + + $result = (string) $response->getBody(); + + $this->logger->info('RESPONSE HEADERS: ' . json_encode($response->getHeaders())); + $this->logger->info('RESPONSE BODY: ' . $response->getBody()); + } catch (GuzzleException $e) + { + throw new TransferException($this->logger, "Transfer failed", 0, $e); + } + + $result = $this->getDecodedResult($response, $result); + + return [ + $response, + $result, + ]; + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientInterface.php b/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientInterface.php new file mode 100644 index 000000000..404852a60 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Request/HttpClient/HttpClientInterface.php @@ -0,0 +1,35 @@ +data[] = $value; + } else + { + $this->data[$offset] = $value; + } + } + + /** Implement ArrayAccess */ + public function offsetExists($offset): bool + { + return isset($this->data[$offset]); + } + + /** Implement ArrayAccess */ + public function offsetUnset($offset): void + { + unset($this->data[$offset]); + } + + /** Implement ArrayAccess */ + public function offsetGet($offset): mixed + { + return isset($this->data[$offset]) ? $this->data[$offset] : null; + } + + /** Implement JsonSerializable */ + public function jsonSerialize(): mixed + { + return $this->data; + } + + /** + * Redirect all method calls prefixed with 'get' or 'set' + * to check if a param exists with that name + * Return or set the param if it does + * + * @param string $method + * @param array $args + * @return mixed + */ + public function __call($method, $args) + { + $prefix = substr($method, 0, 3); + $param = substr($method, 3); + $arg = isset($args[0]) ? $args[0] : null; + + if ($prefix === 'set') + { + return $this->offsetSet($param, $arg); + } elseif ($prefix === 'get') + { + return $this->offsetGet($param); + } + + throw new Exception("Call to undefined method " . __CLASS__ . '::' . $method); + } + + /** Implement Arrayable */ + public function toArray(): array + { + return $this->data; + } + + /** + * @return string + */ + public function toJson(): string + { + return json_encode($this->toArray()); + } + + /** + * @param string $name + * @param string $value + */ + public function setHeader($name, $value) + { + $this->headers[strtolower($name)] = $value; + } + + /** + * @param string $name + * @return string + */ + public function getHeader($name) + { + if (isset($this->headers[strtolower($name)])) + { + return $this->headers[strtolower($name)]; + } + + return null; + } + + /** + * @return array [ string ] + */ + public function getHeaders(): array + { + return array_map(function ($value, $key) { + return $key . ': ' . $value; + }, $this->headers); + } + + /** + * @return array + */ + public function getData(): array + { + return $this->data; + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Request/TransactionRequest.php b/vendor/buckaroo/sdk/src/Transaction/Request/TransactionRequest.php new file mode 100644 index 000000000..bd0bb600b --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Request/TransactionRequest.php @@ -0,0 +1,96 @@ +data['ClientUserAgent'] = $_SERVER['HTTP_USER_AGENT'] ?? ''; + } + + /** + * @param Model $model + * @return $this + */ + public function setPayload(Model $model) + { + foreach ($model->toArray() as $key => $value) + { + $this->data[$model->serviceParameterKeyOf($key)] = $value; + } + + return $this; + } + + /** + * @param $key + * @param $value + * @return $this + */ + public function setData($key, $value) + { + $this->data[$key] = $value; + + return $this; + } + + /** + * @return array + */ + public function data(): array + { + return $this->data; + } + + /** + * @return Services + */ + public function getServices() : Services + { + $this->data['Services'] = $this->data['Services'] ?? new Services; + + return $this->data['Services']; + } + + /** + * @return array + */ + public function toArray(): array + { + foreach ($this->data as $key => $value) + { + if (is_a($value, Arrayable::class)) + { + $this->data[$key] = $value->toArray(); + } + } + + return $this->data; + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Response/Response.php b/vendor/buckaroo/sdk/src/Transaction/Response/Response.php new file mode 100644 index 000000000..6646db745 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Response/Response.php @@ -0,0 +1,107 @@ +httpResponse = $response; + $this->data = $data; + } + + /** Implement ArrayAccess */ + public function offsetSet($offset, $value): void + { + throw new Exception("Can't set a value of a Response"); + } + + /** Implement ArrayAccess */ + public function offsetExists($offset): bool + { + return isset($this->data[$offset]); + } + + /** Implement ArrayAccess */ + public function offsetUnset($offset): void + { + unset($this->data[$offset]); + } + + /** Implement ArrayAccess */ + public function offsetGet($offset): mixed + { + return isset($this->data[$offset]) ? $this->data[$offset] : null; + } + + /** + * Redirect all method calls prefixed with 'get' + * to check if a param exists with that name + * Return the param if it does + * + * @param string $method + * @param array $args + * @return mixed + */ + public function __call($method, $args) + { + $prefix = substr($method, 0, 3); + $param = substr($method, 3); + // $arg = isset($args[0]) ? $args[0] : null; + + if ($prefix === 'get') + { + return $this->offsetGet($param); + } + + throw new Exception("Call to undefined method " . __CLASS__ . '::' . $method); + } + + /** + * @return mixed + */ + public function getHttpResponse() + { + return $this->httpResponse; + } + + /** Implement Arrayable */ + public function toArray(): array + { + return $this->data; + } +} diff --git a/vendor/buckaroo/sdk/src/Transaction/Response/TransactionResponse.php b/vendor/buckaroo/sdk/src/Transaction/Response/TransactionResponse.php new file mode 100644 index 000000000..e4e3085d1 --- /dev/null +++ b/vendor/buckaroo/sdk/src/Transaction/Response/TransactionResponse.php @@ -0,0 +1,450 @@ +getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_SUCCESS; + } + + /** + * @return bool + */ + public function isFailed(): bool + { + return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_FAILED; + } + + /** + * @return bool + */ + public function isCanceled(): bool + { + return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_CANCELLED_BY_USER + || $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_CANCELLED_BY_MERCHANT; + } + + /** + * @return bool + */ + public function isAwaitingConsumer(): bool + { + return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_WAITING_ON_CONSUMER; + } + + /** + * @return bool + */ + public function isPendingProcessing(): bool + { + return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_PENDING_PROCESSING; + } + + /** + * @return bool + */ + public function isWaitingOnUserInput(): bool + { + return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_WAITING_ON_USER_INPUT; + } + + /** + * @return bool + */ + public function isRejected(): bool + { + return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_REJECTED; + } + + /** + * @return bool + */ + public function isValidationFailure(): bool + { + return $this->getStatusCode() == ResponseStatus::BUCKAROO_STATUSCODE_VALIDATION_FAILURE; + } + + /** + * @param string|null $key + * @return array|mixed + */ + public function data(?string $key = null) + { + if ($key && isset($this->data[$key])) + { + return $this->data[$key]; + } + + return $this->data; + } + + /** + * @return bool + */ + public function hasRedirect(): bool + { + return ! empty($this->data['RequiredAction']['RedirectURL']) + && $this->data['RequiredAction']['Name'] == 'Redirect'; + } + + /** + * @return string + */ + public function getRedirectUrl(): string + { + if ($this->hasRedirect()) + { + return $this->data['RequiredAction']['RedirectURL']; + } + + return ''; + } + + /** + * @return string + */ + public function getMethod(): string + { + return $this->data['Services'][0]['Name']; + } + + /** + * @return string + */ + public function getServiceAction(): string + { + return $this->data['Services'][0]['Action']; + } + + /** + * Get the returned service parameters + * + * @return array [ name => value ] + */ + public function getServiceParameters() + { + if (! empty($this->data['Services'][0]['Parameters'])) + { + $parameters = $this->data['Services'][0]['Parameters']; + + $params = []; + + foreach ($parameters as $key => $parameter) + { + // key to lowercase to be consistent with PaymentResult version of getServiceParameters + $params[strtolower($parameter['Name'])] = $parameter['Value']; + } + + return $params; + } + + return []; + } + + /** + * @return array + */ + public function getCustomParameters(): array + { + if (! empty($this->data['CustomParameters']['List'])) + { + $parameters = $this->data['CustomParameters']['List']; + + $params = []; + + foreach ($parameters as $key => $parameter) + { + $params[$parameter['Name']] = $parameter['Value']; + } + + return $params; + } + + return []; + } + + /** + * @return array + */ + public function getAdditionalParameters(): array + { + if (! empty($this->data['AdditionalParameters']['AdditionalParameter'])) + { + $parameters = $this->data['AdditionalParameters']['AdditionalParameter']; + + $params = []; + + foreach ($parameters as $key => $parameter) + { + $params[$parameter['Name']] = $parameter['Value']; + } + + return $params; + } + + return []; + } + + /** + * @return string + */ + public function getTransactionKey(): string + { + return $this->data['Key']; + } + + /** + * @return string + */ + public function getPaymentKey(): string + { + return $this->data['PaymentKey']; + } + + /** + * @return string + */ + public function getToken(): string + { + $params = $this->getAdditionalParameters(); + + return trim($params['token']); + } + + /** + * @return string + */ + public function getSignature(): string + { + $params = $this->getAdditionalParameters(); + + return trim($params['signature']); + } + + /** + * @return string + */ + public function getAmount(): string + { + return (string)$this->data['AmountDebit']; + } + + /** + * @return string + */ + public function getCurrency(): string + { + return $this->data['Currency']; + } + + /** + * @return string + */ + public function getInvoice(): string + { + return $this->data['Invoice']; + } + + /** + * @return int|null + */ + public function getStatusCode(): ?int + { + if (! empty($this->data['Status']['Code']['Code'])) + { + return $this->data['Status']['Code']['Code']; + } + + return null; + } + + /** + * @return string|null + */ + public function getSubStatusCode(): ?string + { + if (! empty($this->data['Status']['SubCode']['Code'])) + { + return $this->data['Status']['SubCode']['Code']; + } + + return null; + } + + /** + * @return bool + */ + public function hasSomeError(): bool + { + $getError = $this->getSomeError(); + + return ! empty($getError); + } + + /** + * @return string + */ + public function getSomeError(): string + { + if ($this->hasError()) + { + $error = $this->getFirstError(); + + return $error['ErrorMessage']; + } + + if ($this->hasConsumerMessage()) + { + return $this->getConsumerMessage(); + } + + if ($this->hasMessage()) + { + return $this->getMessage(); + } + + if ($this->hasSubCodeMessage()) + { + return $this->getSubCodeMessage(); + } + + return ''; + } + + /** + * @return bool + */ + public function hasError(): bool + { + return ! empty($this->data['RequestErrors']) && ( + ! empty($this->data['RequestErrors']['ChannelErrors']) || + ! empty($this->data['RequestErrors']['ServiceErrors']) || + ! empty($this->data['RequestErrors']['ActionErrors']) || + ! empty($this->data['RequestErrors']['ParameterErrors']) || + ! empty($this->data['RequestErrors']['CustomParameterErrors']) + ); + } + + /** + * @return array + */ + public function getFirstError(): array + { + $errorTypes = ['ChannelErrors', 'ServiceErrors', 'ActionErrors', 'ParameterErrors', 'CustomParameterErrors']; + + if ($this->hasError()) + { + foreach ($errorTypes as $errorType) + { + if (! empty($this->data['RequestErrors'][$errorType])) + { + return $this->data['RequestErrors'][$errorType][0]; + } + } + } + + return []; + } + + /** + * @return bool + */ + public function hasMessage(): bool + { + return ! empty($this->data['Message']); + } + + /** + * @return string + */ + public function getMessage(): string + { + return $this->hasMessage() ? $this->data['Message'] : ''; + } + + /** + * @return bool + */ + public function hasConsumerMessage(): bool + { + return ! empty($this->data['ConsumerMessage']['HtmlText']); + } + + /** + * @return string + */ + public function getConsumerMessage(): string + { + if ($this->hasConsumerMessage()) + { + return $this->data['ConsumerMessage']['HtmlText']; + } + + return ''; + } + + /** + * @return bool + */ + public function hasSubCodeMessage(): bool + { + return ! empty($this->data['Status']['SubCode']['Description']); + } + + /** + * @return string + */ + public function getSubCodeMessage(): string + { + if ($this->hasSubCodeMessage()) + { + return $this->data['Status']['SubCode']['Description']; + } + + return ''; + } + + /** + * @return string + */ + public function getCustomerName(): string + { + return $this->data['CustomerName']; + } + + /** + * @param string $key + * @return mixed + */ + public function get(string $key) + { + return $this->data[$key] ?? null; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/BuckarooTestCase.php b/vendor/buckaroo/sdk/tests/Buckaroo/BuckarooTestCase.php new file mode 100644 index 000000000..dd8792c89 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/BuckarooTestCase.php @@ -0,0 +1,66 @@ +load(); + +// $this->buckaroo = new BuckarooClient($_ENV['BPE_WEBSITE_KEY'], $_ENV['BPE_SECRET_KEY']); +// +// ?string $mode = null, +// ?string $currency = null, +// ?string $returnURL = null, +// ?string $returnURLCancel = null, +// ?string $pushURL = null, +// ?string $platformName = null, +// ?string $moduleSupplier = null, +// ?string $moduleName = null, +// ?string $moduleVersion = null, + + $this->buckaroo = new BuckarooClient(new DefaultConfig( + $_ENV['BPE_WEBSITE_KEY'], + $_ENV['BPE_SECRET_KEY'], + $_ENV['BPE_MODE'] ?? null, + $_ENV['BPE_CURRENCY_CODE'] ?? null, + $_ENV['BPE_RETURN_URL'] ?? null, + $_ENV['BPE_RETURN_URL_CANCEL'] ?? null, + $_ENV['BPE_PUSH_URL'] ?? null, + 'TestingPlatform', + '3.0.0', + 'TestingModule', + 'Testing', + '2.4.0', + 'nl-NL' + )); + + parent::__construct(); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/ConfirmingCredentialsTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/ConfirmingCredentialsTest.php new file mode 100644 index 000000000..758d54c04 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/ConfirmingCredentialsTest.php @@ -0,0 +1,37 @@ +buckaroo->confirmCredential(); + + $this->assertTrue($response); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AfterpayDigiAcceptTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AfterpayDigiAcceptTest.php new file mode 100644 index 000000000..95409eff8 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AfterpayDigiAcceptTest.php @@ -0,0 +1,177 @@ +buckaroo->method('afterpaydigiaccept')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_afterpaydigiaccept_authorize() + { + $response = $this->buckaroo->method('afterpaydigiaccept')->authorize($this->getPaymentPayload()); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_afterpaydigiaccept_capture() + { + $response = $this->buckaroo->method('afterpaydigiaccept')->capture($this->getPaymentPayload([ + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + ])); + + $this->assertTrue($response->isFailed()); + } + +// /** +// * @return void +// * @test +// */ +// public function it_creates_a_afterpaydigiaccept_cancel_authorize() +// { +// $response = $this->buckaroo->method('afterpaydigiaccept')->cancelAuthorize([ +// 'amountCredit' => 10, +// 'invoice' => '10000480', +// 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX' +// ]); +// +// $this->assertTrue($response->isFailed()); +// } + + /** + * @return void + * @test + */ + public function it_creates_a_afterpaydigiaccept_refund() + { + $response = $this->buckaroo->method('afterpaydigiaccept')->refund([ + 'amountCredit' => 10, + 'shippingCosts' => 0.5, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + ]); + + $this->assertTrue($response->isFailed()); + } + + private function getPaymentPayload(array $additionalParameters = null): array + { + $payload = [ + 'amountDebit' => 40.50, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'b2b' => true, + 'addressesDiffer' => true, + 'customerIPAddress' => '0.0.0.0', + 'shippingCosts' => 0.5, + 'costCentre' => 'Test', + 'department' => 'Test', + 'establishmentNumber' => '123456', + 'billing' => [ + 'recipient' => [ + 'gender' => Gender::FEMALE, + 'initials' => 'AB', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + 'culture' => 'NL', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'culture' => 'NL', + 'gender' => Gender::MALE, + 'initials' => 'YJ', + 'lastName' => 'Jansen', + 'companyName' => 'Buckaroo B.V.', + 'birthDate' => '1990-01-01', + 'chamberOfCommerce' => '12345678', + 'vatNumber' => 'NL12345678', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => uniqid(), + 'description' => 'Blue Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + [ + 'identifier' => uniqid(), + 'description' => 'Red Toy Car', + 'price' => '10.00', + 'quantity' => '2', + 'vatCategory' => '1', + ], + ], + ]; + + if ($additionalParameters) + { + $payload = array_merge($payload, $additionalParameters); + } + + return $payload; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AfterpayTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AfterpayTest.php new file mode 100644 index 000000000..86841ec0d --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AfterpayTest.php @@ -0,0 +1,203 @@ +buckaroo->method('afterpay')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_afterpay_authorize() + { + $response = $this->buckaroo->method('afterpay')->authorize($this->getPaymentPayload()); + + $this->assertTrue($response->isSuccess()); + } + +// /** +// * @return void +// * @test +// */ +// public function it_creates_a_afterpay_cancel_authorize() +// { +// $response = $this->buckaroo->method('afterpay')->cancelAuthorize([ +// 'amountCredit' => 10, +// 'originalTransactionKey' => 'F86579ECED1D493887ECAE7C287BXXXX', +// 'invoice' => 'testinvoice12345cvx' +// ]); +// +// $this->assertTrue($response->isRejected()); +// } + + /** + * @return void + * @test + */ + public function it_creates_a_afterpay_capture() + { + $response = $this->buckaroo->method('afterpay')->capture($this->getPaymentPayload([ + 'originalTransactionKey' => 'D5127080BA1D4644856FECDC560FXXXX', + ])); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_afterpay_refund() + { + $response = $this->buckaroo->method('afterpay')->refund([ + 'invoice' => 'testinvoice 123', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', //Set transaction key of the transaction to refund + 'amountCredit' => 1.23, + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_afterpay_partial_refund() + { + $response = $this->buckaroo->method('afterpay')->refund([ + 'invoice' => 'testinvoice 123', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', //Set transaction key of the transaction to refund + 'amountCredit' => 1.23, + 'articles' => [ + [ + 'refundType' => 'Return', + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + ], + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + private function getPaymentPayload(?array $additional = null): array + { + $payload = [ + 'amountDebit' => 52.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'clientIP' => '127.0.0.1', + 'billing' => [ + 'recipient' => [ + 'category' => RecipientCategory::COMPANY, + 'careOf' => 'John Smith', + 'title' => 'Mrs', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + 'companyName' => 'buckarooTest', + 'conversationLanguage' => 'NL', + 'chamberOfCommerce' => 'IdNumber12345', + 'customerNumber' => 'customerNumber12345' + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => RecipientCategory::COMPANY, + 'careOf' => 'John Smith', + 'companyName' => 'Buckaroo B.V.', + 'firstName' => 'John', + 'lastName' => 'Do', + 'chamberOfCommerce' => '12345678', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + [ + 'type' => 'ShippingFee', + 'identifier' => 'USPShippingID', + 'description' => 'UPS', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '2' + ], + ] + ]; + + if ($additional) + { + return array_merge($additional, $payload); + } + + return $payload; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AlipayTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AlipayTest.php new file mode 100644 index 000000000..5be4c4324 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/AlipayTest.php @@ -0,0 +1,55 @@ +buckaroo->method('alipay')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'useMobileView' => true, + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_alipay_refund() + { + $response = $this->buckaroo->method('alipay')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/ApplepayTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/ApplepayTest.php new file mode 100644 index 000000000..0949a1f14 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/ApplepayTest.php @@ -0,0 +1,70 @@ +buckaroo->payment('applepay')->pay([ +// 'amountDebit' => 10, +// 'invoice' => uniqid(), +// 'paymentData' => 'XXXXXXXXXXXXX', +// 'customerCardName' => 'XXXXXXXXXXXXX' +// ]); +// +// $this->assertTrue($response->isPendingProcessing()); +// } + + /** + * @test + */ + public function it_creates_a_applepay_redirect_payment() + { + $response = $this->buckaroo->method('applepay')->payRedirect([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'servicesSelectableByClient' => 'applepay', + 'continueOnIncomplete' => '1', + ]); + + $this->assertTrue($response->isWaitingOnUserInput()); + } + + /** + * @test + */ + public function it_creates_a_applepay_refund() + { + $response = $this->buckaroo->method('applepay')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BancontactTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BancontactTest.php new file mode 100644 index 000000000..be9606f5f --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BancontactTest.php @@ -0,0 +1,148 @@ +buckaroo->method('bancontactmrcash')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'saveToken' => true, + ]); + + $this->assertTrue($response->isWaitingOnUserInput()); + } + + /** + * @test + */ + public function it_creates_a_bancontact_refund() + { + $response = $this->buckaroo->method('bancontactmrcash')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '0EF39AA94BD64FF38F1540DEB6XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_bancontact_encrypted_payment() + { + $response = $this->buckaroo->method('bancontactmrcash')->payEncrypted([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'description' => 'Bancontact PayEncrypted Test 123', + 'encryptedCardData' => '001SlXfd8MbiTd/JFwCiGVs3f6o4x6xt0aN29NzOSNZHPKlVsz/EWeQmyhb1gGZ86VY88DP7gfDV+UyjcPfpVfHZd7u+WkO71hnV2QfYILCBNqE1aiPv2GQVGdaGbuoQloKu1o3o3I1UDmVxivXTMQX76ovot89geA6hqbtakmpmvxeiwwea3l4htNoX1IlD1hfYkDDl9rzSu5ypcjvVs6aRGXK5iMHnyrmEsEnfdj/Q5XWbsD5xAm4u3y6J8d4UP7LB31VLECzZUTiJOtKKcCQlT01YThIkQlj8PWBBMtt4H52VN3IH2+wPYtR8HiOZzcA2HA7UxozogIpS53tIURj/g==', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_bancontact_recurring_payment() + { + $response = $this->buckaroo->method('bancontactmrcash')->payRecurring([ + 'invoice' => 'testinvoice 123', + 'amountDebit' => 10.50, + 'originalTransactionKey' => '91D08EC01F414926A4CA29C059XXXXXX', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_bancontact_pay_one_click_payment() + { + $response = $this->buckaroo->method('bancontactmrcash')->payOneClick([ + 'invoice' => 'testinvoice 123', + 'amountDebit' => 10.50, + 'originalTransactionKey' => '91D08EC01F414926A4CA29C059XXXXXX', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_bancontact_authorize() + { + $response = $this->buckaroo->method('bancontactmrcash')->authorize([ + 'invoice' => 'Bancontact Authenticate SaveToken', + 'description' => 'Bancontact Authenticate SaveToken', + 'amountDebit' => 0.02, + 'savetoken' => false, + ]); + + $this->assertTrue($response->isWaitingOnUserInput()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_bancontact_capture() + { + $response = $this->buckaroo->method('bancontactmrcash')->capture([ + 'invoice' => 'Bancontact Authenticate SaveToken', + 'description' => 'Bancontact Authenticate SaveToken', + 'originalTransactionKey' => 'D3EEF5279D9047A0B202334D8050B6CF', + 'amountDebit' => 0.02, + ]); + + $this->assertTrue($response->isWaitingOnUserInput()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_bancontact_cancel_authorize() + { + $response = $this->buckaroo->method('bancontactmrcash')->cancelAuthorize([ + 'invoice' => 'Bancontact Authenticate SaveToken', + 'description' => 'Bancontact Authenticate SaveToken', + 'originalTransactionKey' => '122862F217D44C4DAF4012D93301E168', + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BatchTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BatchTest.php new file mode 100644 index 000000000..aa3db5049 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BatchTest.php @@ -0,0 +1,85 @@ +buckaroo->method('credit_management')->manually()->createCombinedInvoice([ + 'invoice' => rand(1000, 9999), + 'applyStartRecurrent' => 'False', + 'invoiceAmount' => 10.00, + 'invoiceAmountVAT' => 1.00, + 'invoiceDate' => date('Y-m-d'), + 'dueDate' => date('Y-m-d'), + 'schemeKey' => '2amq34', + 'maxStepIndex' => 1, + 'allowedServices' => 'ideal,mastercard', + 'debtor' => [ + 'code' => 'johnsmith4', + ], + 'email' => 'youremail@example.nl', + 'phone' => [ + 'mobile' => '06198765432', + ], + 'person' => [ + 'culture' => 'nl-NL', + 'title' => 'Msc', + 'initials' => 'JS', + 'firstName' => 'Test', + 'lastNamePrefix' => 'Jones', + 'lastName' => 'Aflever', + 'gender' => Gender::MALE, + ], + 'company' => [ + 'culture' => 'nl-NL', + 'name' => 'My Company Corporation', + 'vatApplicable' => true, + 'vatNumber' => 'NL140619562B01', + 'chamberOfCommerce' => '20091741', + ], + 'address' => [ + 'street' => 'Hoofdtraat', + 'houseNumber' => '90', + 'houseNumberSuffix' => 'A', + 'zipcode' => '8441ER', + 'city' => 'Heerenveen', + 'state' => 'Friesland', + 'country' => 'NL', + ], + ]); + + $transactions[] = $this->buckaroo->method('sepadirectdebit')->combine($invoice)->manually()->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'iban' => 'NL13TEST0123456789', + 'bic' => 'TESTNL2A', + 'collectdate' => date('Y-m-d'), + 'mandateReference' => '1DCtestreference', + 'mandateDate' => '2022-07-03', + 'customer' => [ + 'name' => 'John Smith', + ], + ]); + } + + $response = $this->buckaroo->batch($transactions)->execute(); + + $this->assertTrue($response->data('Message') == '3 data requests were queued for processing.'); + } +} \ No newline at end of file diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BelfiusTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BelfiusTest.php new file mode 100644 index 000000000..f98405fbe --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BelfiusTest.php @@ -0,0 +1,54 @@ +buckaroo->method('belfius')->pay([ + 'amountDebit' => 10.10, + 'invoice' => uniqid(), + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_belfius_refund() + { + $response = $this->buckaroo->method('belfius')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '0EF39AA94BD64FF38F1540DEB6XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BillinkTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BillinkTest.php new file mode 100644 index 000000000..599aad46c --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BillinkTest.php @@ -0,0 +1,179 @@ +buckaroo->method('billink')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @test + */ + public function it_creates_a_billink_authorize() + { + $response = $this->buckaroo->method('billink')->authorize($this->getPaymentPayload()); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @test + */ + public function it_creates_a_billink_capture() + { + $response = $this->buckaroo->method('billink')->capture([ + 'originalTransactionKey' => '74AD098CCFAA4F739FE16279B5059B6B', //Set transaction key of the transaction to capture + 'invoice' => '62905fa2650f4', //Set invoice id + 'amountDebit' => 50.30, //set amount to capture + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + 'priceExcl' => 5, + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => 10.10, + 'priceExcl' => 5, + ], + ], + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @test + */ + public function it_creates_a_billink_refund() + { + $response = $this->buckaroo->method('billink')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } + + private function getPaymentPayload(): array + { + return [ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'trackAndTrace' => 'TR0F123456789', + 'vATNumber' => '2', + 'billing' => [ + 'recipient' => [ + 'category' => 'B2B', + 'careOf' => 'John Smith', + 'title' => 'Female', + 'initials' => 'JD', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '01-01-1990', + 'chamberOfCommerce' => 'TEST', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2C', + 'careOf' => 'John Smith', + 'title' => 'Male', + 'initials' => 'JD', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + 'priceExcl' => 5, + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => 10.10, + 'priceExcl' => 5, + ], + ], + ]; + } + + /** + * @test + */ + public function it_creates_a_billink_cancel_authorize() + { + $response = $this->buckaroo->method('billink')->cancelAuthorize([ + 'originalTransactionKey' => '74AD098CCFAA4F739FE16279B5059B6B', //Set transaction key of the transaction to capture + 'invoice' => '62905fa2650f4', //Set invoice id + 'AmountCredit' => 10, //set amount to capture + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BuckarooVoucherTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BuckarooVoucherTest.php new file mode 100644 index 000000000..4b103c964 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BuckarooVoucherTest.php @@ -0,0 +1,126 @@ +buckaroo->method('buckaroovoucher')->create( + [ + 'usageType' => '2', + 'validFrom' => '2022-01-01', + 'validUntil' => '2024-01-01', + 'creationBalance' => '5', + ] + ); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_buckaroo_payment() + { + $response = $this->buckaroo->method('buckaroovoucher')->pay( + [ + 'amountDebit' => '10', + 'invoice' => uniqid(), + 'vouchercode' => 'vouchercode', + ] + ); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_buckaroo_pay_remainder() + { + $response = $this->buckaroo->method('buckaroovoucher')->payRemainder( + [ + 'amountDebit' => '10', + 'invoice' => uniqid(), + 'vouchercode' => 'vouchercode', + 'originalTransaction' => '4E8BD922192746C3918BF4077CXXXXXX', + ] + ); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_buckaroo_refund() + { + $response = $this->buckaroo->method('buckaroovoucher')->refund( + [ + 'amountCredit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', + ] + ); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_buckaroo_get_balance() + { + $response = $this->buckaroo->method('buckaroovoucher')->getBalance( + [ + 'vouchercode' => 'vouchercode', + ] + ); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_deactivate_a_buckaroo_voucher() + { + $response = $this->buckaroo->method('buckaroovoucher')->deactivate( + [ + 'vouchercode' => 'vouchercode', + ] + ); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BuckarooWalletTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BuckarooWalletTest.php new file mode 100644 index 000000000..f489e6d32 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/BuckarooWalletTest.php @@ -0,0 +1,192 @@ +buckaroo->method('buckaroo_wallet')->createWallet([ + 'walletId' => uniqid(), + 'email' => 'test@buckaroo.nl', + 'customer' => [ + 'firstName' => 'John', + 'lastName' => 'Doe', + ], + 'bankAccount' => [ + 'iban' => 'NL13TEST0123456789', + ] + ]); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_updates_a_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->updateWallet([ + 'walletId' => 10, + 'email' => 'test@buckaroo.nl', + 'status' => 'Disabled', + 'customer' => [ + 'firstName' => 'John', + 'lastName' => 'Doe', + ], + 'bankAccount' => [ + 'iban' => 'NL13TEST0123456789', + ], + ]); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_get_buckaroo_wallet_info() + { + $response = $this->buckaroo->method('buckaroo_wallet')->getInfo([ + 'walletId' => 10, + ]); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_releases_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->release([ + 'amountCredit' => 1, + 'walletId' => 10, + 'walletMutationGuid' => '1757B313E57E4973997DD8C5235A', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_deposit_to_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->deposit([ + 'invoice' => 'BuckarooWalletInvoiceId', + 'originalTransactionKey' => '46FB241693914AA4AE7A8B6DB33DE', + 'amountCredit' => 1, + 'walletId' => 10, + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_reserve_to_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->reserve([ + 'invoice' => 'BuckarooWalletInvoiceId', + 'originalTransactionKey' => '46FB241693914AA4AE7A8B6DB33DE', + 'amountCredit' => 1, + 'walletId' => 10, + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_withdrawal_from_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->withdrawal([ + 'invoice' => 'BuckarooWalletInvoiceId', + 'originalTransactionKey' => '46FB241693914AA4AE7A8B6DB33DE', + 'amountDebit' => 1, + 'walletId' => 10, + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_cancel_from_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->cancel([ + 'invoice' => 'BuckarooWalletInvoiceId', + 'originalTransactionKey' => '46FB241693914AA4AE7A8B6DB33DE', + 'amountDebit' => 1, + 'walletMutationGuid' => '49B018248ECE4346AC20B902', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_payment_on_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->pay([ + 'invoice' => 'BuckarooWalletInvoiceId', + 'description' => 'Test', + 'amountDebit' => 1, + 'walletId' => 10, + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_refund_on_buckaroo_wallet() + { + $response = $this->buckaroo->method('buckaroo_wallet')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditClickTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditClickTest.php new file mode 100644 index 000000000..ab4db2d7f --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditClickTest.php @@ -0,0 +1,61 @@ +buckaroo->method('creditclick')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'customer' => [ + 'firstName' => 'Test', + 'lastName' => 'Aflever', + ], + 'email' => 't.tester@test.nl', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_creditclick_refund() + { + $response = $this->buckaroo->method('creditclick')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'description' => 'refund', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + 'refundreason' => 'RequestedByCustomer', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditManagementTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditManagementTest.php new file mode 100644 index 000000000..4c88909c9 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditManagementTest.php @@ -0,0 +1,359 @@ +buckaroo->method('credit_management')->createInvoice($this->invoice()); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_invoice_with_product_lines() + { + $response = $this->buckaroo->method('credit_management')->createInvoice([ + 'invoice' => 'Billingtest101', + 'description' => 'buckaroo_schema_test_PDF', + 'invoiceAmount' => 217.80, + 'invoiceDate' => '2022-01-01', + 'dueDate' => '1990-01-01', + 'schemeKey' => '2amq34', + 'poNumber' => 'PO-12345', + 'debtor' => [ + 'code' => 'johnsmith4', + ], + 'articles' => [ + [ + 'productGroupName' => 'Toys', + 'productGroupOrderIndex' => 1, + 'productOrderIndex' => 1, + 'type' => 'Regular', + 'identifier' => 'ART12', + 'description' => 'Blue Toy Car', + 'quantity' => 3, + 'unitOfMeasurement' => 'piece(s)', + 'price' => 10, + 'discountPercentage' => 20, + 'totalDiscount' => 6, + 'vatPercentage' => 21, + 'totalVat' => 0.6, + 'totalAmountExVat' => 8.40, + 'totalAmount' => 123, + ], + [ + 'productGroupName' => 'Toys', + 'productGroupOrderIndex' => 1, + 'productOrderIndex' => 2, + 'type' => 'Regular', + 'identifier' => 'ART12', + 'description' => 'Blue Toy Car', + 'quantity' => 3, + 'unitOfMeasurement' => 'piece(s)', + 'price' => 10, + 'discountPercentage' => 20, + 'totalDiscount' => 6, + 'vatPercentage' => 21, + 'totalVat' => 0.6, + 'totalAmountExVat' => 8.40, + 'totalAmount' => 123, + ], + ], + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_combined_invoice() + { + $invoice = $this->buckaroo->method('credit_management')->manually()->createCombinedInvoice($this->invoice()); + + $response = $this->buckaroo->method('sepadirectdebit')->combine($invoice) + ->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'iban' => 'NL13TEST0123456789', + 'bic' => 'TESTNL2A', + 'collectdate' => '2030-01-01', + 'mandateReference' => '1DCtestreference', + 'mandateDate' => '2022-07-03', + 'customer' => [ + 'name' => 'John Smith', + ], + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_credit_note() + { + $response = $this->buckaroo->method('credit_management')->createCreditNote([ + 'originalInvoiceNumber' => 'testinvoice1337', + 'invoiceDate' => '2022-01-01', + 'invoiceAmount' => 10.00, + 'invoiceAmountVAT' => 1.00, + 'sendCreditNoteMessage' => 'info@buckaroo.nl', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_add_or_update_debtor() + { + $response = $this->buckaroo->method('credit_management')->addOrUpdateDebtor($this->invoice([ + 'addressUnreachable' => false, + 'emailUnreachable' => false, + 'mobileUnreachable' => false + ])); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_payment_plan() + { + $response = $this->buckaroo->method('credit_management')->createPaymentPlan([ + 'description' => 'Payment in two intstallments', + 'includedInvoiceKey' => '20D09973FB5C4DBC9A33DB0F4F707xxx', + 'dossierNumber' => 'PaymentplanJohnsmith123', + 'installmentCount' => 2, + 'initialAmount' => 100, + 'startDate' => '2030-01-01', + 'interval' => CreditManagementInstallmentInterval::MONTH, + 'paymentPlanCostAmount' => 3.50, + 'paymentPlanCostAmountVat' => 1.20, + 'recipientEmail' => 'test@buckaroo.nl', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_terminate_payment_plan() + { + $response = $this->buckaroo->method('credit_management')->terminatePaymentPlan([ + 'includedInvoiceKey' => '20D09973FB5C4DBC9A33DB0F4F707xxx', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_pause_invoice() + { + $response = $this->buckaroo->method('credit_management')->pauseInvoice([ + 'invoice' => 'Testinvoice184915', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_unpause_invoice() + { + $response = $this->buckaroo->method('credit_management')->unpauseInvoice([ + 'invoice' => 'Testinvoice184915', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_invoice_info() + { + $response = $this->buckaroo->method('credit_management')->invoiceInfo([ + 'invoice' => 'INV001', + 'invoices' => [ // If you want to check multiple invoices + [ + 'invoiceNumber' => 'INV002', + ], + [ + 'invoiceNumber' => 'INV003', + ], + ], + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_debtor_info() + { + $response = $this->buckaroo->method('credit_management')->debtorInfo([ + 'debtor' => [ + 'code' => 'TestDebtor123123', + ], + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_add_or_update_product_lines() + { + $response = $this->buckaroo->method('credit_management')->addOrUpdateProductLines([ + 'invoiceKey' => 'xxxxxxxxxxxxxxxxxxxxxxxx', + 'articles' => [ + [ + 'type' => 'Regular', + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'totalVat' => 12, + 'totalAmount' => 123, + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'type' => 'Regular', + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'totalVat' => 12, + 'totalAmount' => 123, + 'quantity' => '1', + 'price' => '10.10', + ], + ], + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_resume_debtor_file() + { + $response = $this->buckaroo->method('credit_management')->resumeDebtorFile([ + 'debtorFileGuid' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_credit_management_pause_debtor_file() + { + $response = $this->buckaroo->method('credit_management')->pauseDebtorFile([ + 'debtorFileGuid' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + private function invoice(array $append = []): array + { + return array_merge($append, [ + // 'invoice' => rand(1000, 99999999), + 'applyStartRecurrent' => 'False', + 'invoiceAmount' => 10.00, + 'invoiceAmountVAT' => 1.00, + 'invoiceDate' => '2022-01-01', + 'dueDate' => '2030-01-01', + 'schemeKey' => '2amq34', + 'maxStepIndex' => 1, + 'allowedServices' => 'ideal,mastercard', + 'debtor' => [ + 'code' => 'johnsmith4', + ], + 'email' => 'youremail@example.nl', + 'phone' => [ + 'mobile' => '06198765432', + ], + 'person' => [ + 'culture' => 'nl-NL', + 'title' => 'Msc', + 'initials' => 'JS', + 'firstName' => 'Test', + 'lastNamePrefix' => 'Jones', + 'lastName' => 'Aflever', + 'gender' => Gender::MALE, + ], + 'company' => [ + 'culture' => 'nl-NL', + 'name' => 'My Company Corporation', + 'vatApplicable' => true, + 'vatNumber' => 'NL140619562B01', + 'chamberOfCommerce' => '20091741', + ], + 'address' => [ + 'street' => 'Hoofdtraat', + 'houseNumber' => '90', + 'houseNumberSuffix' => 'A', + 'zipcode' => '8441ER', + 'city' => 'Heerenveen', + 'state' => 'Friesland', + 'country' => 'NL', + ], + ]); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditcardTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditcardTest.php new file mode 100644 index 000000000..a877af45e --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/CreditcardTest.php @@ -0,0 +1,186 @@ +buckaroo->method('creditcard')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'visa', + ]); + + $this->assertTrue($response->isWaitingOnUserInput()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_encrypted_payment() + { + $response = $this->buckaroo->method('creditcard')->payEncrypted([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'mastercard', + 'encryptedCardData' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_security_code_payment() + { + $response = $this->buckaroo->method('creditcard')->payWithSecurityCode([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + 'encryptedSecurityCode' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_refund() + { + $response = $this->buckaroo->method('creditcard')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '13FAF43579D94F5FB8119A6819XXXXXX', + 'name' => 'mastercard', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_authorize() + { + $response = $this->buckaroo->method('creditcard')->authorize([ + 'amountDebit' => 10, + 'invoice' => 'testinvoice 123', + 'name' => 'mastercard', + ]); + + $this->assertTrue($response->isWaitingOnUserInput()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_encrypted_authorize() + { + $response = $this->buckaroo->method('creditcard')->authorizeEncrypted([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'mastercard', + 'encryptedCardData' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_security_code_authorize() + { + $response = $this->buckaroo->method('creditcard')->authorizeWithSecurityCode([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + 'encryptedSecurityCode' => '001u8gJNwngKubFCO6FmJod6aESlIFATkKYaj47KlgBp7f3NeVxUzChg1Aug7WD2vc5wut2KU9NPLUaO0tFmzhVLZoDWn7dX4AzGxSjPrsPmDMWYcEkIwMZfcyJqoRfFkF3j15mil3muXxhR1a609NfkTo11J3ENVsvU3k60z', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_capture() + { + $response = $this->buckaroo->method('creditcard')->capture([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_pay_recurrent() + { + $response = $this->buckaroo->method('creditcard')->payRecurrent([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'originalTransactionKey' => '6C5DBB69E74644958F8C25199514DC6C', + 'name' => 'mastercard', + ]); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_creditcard_cancel_authorize() + { + $response = $this->buckaroo->method('creditcard')->cancelAuthorize([ + 'name' => 'mastercard', + 'amountCredit' => 10, + 'originalTransactionKey' => 'F86579ECED1D493887ECAE7C287BXXXX', + 'invoice' => 'testinvoice12345cvx', + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/EPSTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/EPSTest.php new file mode 100644 index 000000000..dfe5beda1 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/EPSTest.php @@ -0,0 +1,55 @@ +buckaroo->method('eps')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + ]); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @test + */ + public function it_creates_a_eps_refund() + { + $response = $this->buckaroo->method('eps')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'description' => 'refund', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/EmandatesTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/EmandatesTest.php new file mode 100644 index 000000000..b966198ce --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/EmandatesTest.php @@ -0,0 +1,98 @@ +buckaroo->method('emandates')->issuerList(); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_mandante_on_emandates() + { + $response = $this->buckaroo->method('emandates')->createMandate([ + 'emandatereason' => 'testing', + 'sequencetype' => '1', + 'purchaseid' => 'purchaseid1234', + 'debtorbankid' => 'INGBNL2A', + 'debtorreference' => 'klant1234', + 'language' => 'nl', + 'mandateid' => '1DC1234567890', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_get_status_from_emandates() + { + $response = $this->buckaroo->method('emandates')->status([ + 'mandateid' => '1DC1234567890', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_modifies_mandante_on_emandates() + { + $response = $this->buckaroo->method('emandates')->modifyMandate([ + 'originalMandateId' => '1DC1234567890', + 'debtorbankid' => 'ABNANL2A', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_cancels_mandante_on_emandates() + { + $response = $this->buckaroo->method('emandates')->cancelMandate([ + 'mandateid' => '1DC1234567890', + 'emandatereason' => 'testing cancel', + 'purchaseid' => 'purchaseid1234', + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/GiftcardsTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/GiftcardsTest.php new file mode 100644 index 000000000..9dd2a587a --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/GiftcardsTest.php @@ -0,0 +1,84 @@ +buckaroo->method('giftcard')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'boekenbon', + 'intersolveCardnumber' => '0000000000000000001', + 'intersolvePIN' => '1000', + ]); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @test + */ + public function it_creates_a_giftcards_partial_payment() + { + $giftCardResponse = $this->buckaroo->method('giftcard')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'name' => 'boekenbon', + 'intersolveCardnumber' => '0000000000000000001', + 'intersolvePIN' => '500', + ]); + + $this->assertTrue($giftCardResponse->isSuccess()); + + $response = $this->buckaroo->method('ideal')->payRemainder([ + 'originalTransactionKey' => $giftCardResponse->data('RelatedTransactions')[0]['RelatedTransactionKey'], + 'invoice' => $giftCardResponse->data('Invoice'), + 'amountDebit' => 10.10, + 'issuer' => 'ABNANL2A', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_giftcards_refund() + { + $response = $this->buckaroo->method('giftcard')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + 'name' => 'boekenbon', + 'email' => 'test123@hotmail.com', + 'lastname' => 'test123' + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/GiropayTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/GiropayTest.php new file mode 100644 index 000000000..5650a1e84 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/GiropayTest.php @@ -0,0 +1,57 @@ +buckaroo->method('giropay')->pay([ + 'invoice' => uniqid(), + 'bic' => 'GENODETT488', + 'amountDebit' => 10.10, + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_giropay_refund() + { + $response = $this->buckaroo->method('giropay')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'description' => 'refund', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/IdealQRTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/IdealQRTest.php new file mode 100644 index 000000000..97434776f --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/IdealQRTest.php @@ -0,0 +1,55 @@ +buckaroo->method('ideal_qr')->generate([ + 'description' => 'Test purchase', + 'returnURL' => 'https://buckaroo.dev/return', + 'returnURLCancel' => 'https://buckaroo.dev/cancel', + 'returnURLError' => 'https://buckaroo.dev/error', + 'returnURLReject' => 'https://buckaroo.dev/reject', + 'minAmount' => '0.10', + 'maxAmount' => '10.0', + 'imageSize' => '2000', + 'purchaseId' => 'Testpurchase123', + 'isOneOff' => false, + 'amount' => '1.00', + 'amountIsChangeable' => true, + 'expiration' => '2030-09-30', + 'isProcessing' => false, + 'additionalParameters' => [ + 'initiated_by_magento' => '1', + 'service_action' => 'something', + ] + ]); + + $this->assertTrue($response->isSuccess()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/IdealTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/IdealTest.php new file mode 100644 index 000000000..a8f5c1773 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/IdealTest.php @@ -0,0 +1,105 @@ +paymentPayload = [ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'issuer' => 'ABNANL2A', + 'pushURL' => 'https://buckaroo.dev/push', + 'returnURL' => 'https://buckaroo.dev/return', + 'clientIP' => [ + 'address' => '123.456.789.123', + 'type' => 0, + ], + 'customParameters' => [ + 'CustomerBillingFirstName' => 'test' + ], + 'additionalParameters' => [ + 'initiated_by_magento' => 1, + 'service_action' => 'something', + ], + ]; + + $this->refundPayload = [ + 'invoice' => 'testinvoice 123', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', //Set transaction key of the transaction to refund + 'amountCredit' => 1.23, + 'clientIP' => [ + 'address' => '123.456.789.123', + 'type' => 0, + ], + 'additionalParameters' => [ + 'initiated_by_magento' => '1', + 'service_action' => 'something', + ], + ]; + } + + /** + * @return void + * @test + */ + public function it_creates_a_ideal_payment() + { + $response = $this->buckaroo->method('idealprocessing')->pay($this->paymentPayload); + + $this->assertTrue($response->isPendingProcessing()); + +// $customConfig = new CustomConfig(); +// $customConfig->currency('AUD'); +// +// $response = $this->buckaroo->setConfig($customConfig)->payment('ideal')->pay(json_encode($this->paymentPayload)); +// $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_ideal_refund() + { + $response = $this->buckaroo->method('ideal')->refund($this->refundPayload); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/In3OldTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/In3OldTest.php new file mode 100644 index 000000000..a4cd9b7e8 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/In3OldTest.php @@ -0,0 +1,123 @@ +buckaroo->method('in3old')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isSuccess()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_in3old_installments_payment() + { + $response = $this->buckaroo->method('in3Old')->payInInstallments($this->getPaymentPayload()); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_in3old_refund() + { + $response = $this->buckaroo->method('in3Old')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + ]); + + $this->assertTrue($response->isFailed()); + } + + private function getPaymentPayload(): array + { + return [ + 'amountDebit' => 9.5, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'description' => 'This is a test order', + 'invoiceDate' => '22-01-2018', + 'customerType' => 'Company', + 'email' => 'test@buckaroo.nl', + 'phone' => [ + 'mobile' => '0612345678', + ], + 'articles' => [ + [ + 'identifier' => uniqid(), + 'description' => 'Blue Toy Car', + 'quantity' => '1', + 'price' => 10.00, + ], + ], + 'company' => [ + 'companyName' => 'My Company B.V.', + 'chamberOfCommerce' => '123456', + ], + 'customer' => [ + 'gender' => Gender::FEMALE, + 'initials' => 'J.S.', + 'lastName' => 'Aflever', + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => '0610000000', + 'culture' => 'nl-NL', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '2', + 'houseNumberAdditional' => 'a', + 'zipcode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'subtotals' => [ + [ + 'name' => 'Korting', + 'value' => -2.00, + ], + [ + 'name' => 'Betaaltoeslag', + 'value' => 0.50, + ], + [ + 'name' => 'Verzendkosten', + 'value' => 1.00, + ], + ], + ]; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/In3Test.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/In3Test.php new file mode 100644 index 000000000..18a32c853 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/In3Test.php @@ -0,0 +1,144 @@ +buckaroo->method('in3')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_in3_refund() + { + $response = $this->buckaroo->method('in3Old')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + ]); + + $this->assertTrue($response->isFailed()); + } + + private function getPaymentPayload(?array $additional = null): array + { + $payload = [ + 'amountDebit' => 52.30, + 'description' => 'in3 pay', + 'order' => uniqid(), + 'invoice' => uniqid(), + 'clientIP' => '127.0.0.1', + 'billing' => [ + 'recipient' => [ + 'category' => 'B2C', + 'initials' => 'J', + 'firstName' => 'John', + 'lastName' => 'Dona', + 'birthDate' => '1990-01-01', + 'customerNumber' => '12345', + 'phone' => '0612345678', + 'country' => 'NL', + 'companyName' => 'My Company B.V.', + 'chamberOfCommerce' => '123456' + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'phone' => '0698765433', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2C', + 'careOf' => 'John Smith', + 'firstName' => 'John', + 'lastName' => 'Do', + 'chamberOfCommerce' => '123456' + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'type' => 'Physical', + 'description' => 'Blue Toy Car', + 'category' => 'test product', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'type' => 'Physical', + 'description' => 'Red Toy Car', + 'category' => 'test product', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + [ + 'identifier' => 'USPShippingID', + 'type' => 'Physical', + 'description' => 'UPS', + 'category' => 'test product', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '2', + ], + ] + ]; + + if ($additional) + { + return array_merge($additional, $payload); + } + + return $payload; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KBCTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KBCTest.php new file mode 100644 index 000000000..5fa571742 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KBCTest.php @@ -0,0 +1,44 @@ +paymentPayload = ([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + ]); + } + + /** + * @return void + * @test + */ + public function it_creates_a_kbc_payment() + { + $response = $this->buckaroo->method('kbcpaymentbutton')->pay($this->paymentPayload); + $this->assertTrue($response->isPendingProcessing()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KlarnaKPTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KlarnaKPTest.php new file mode 100644 index 000000000..4439d0855 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KlarnaKPTest.php @@ -0,0 +1,214 @@ +buckaroo->method('klarnakp')->pay([ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'reservationNumber' => '2377577452', + 'serviceParameters' => [ + 'articles' => [ + [ + 'identifier' => uniqid(), + 'quantity' => '2', + ], + [ + 'identifier' => uniqid(), + 'quantity' => '2', + ], + ], + ] + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_klarnakp_reserve() + { + $response = $this->buckaroo->method('klarnakp')->reserve([ + 'invoice' => uniqid(), + 'gender' => "1", + 'operatingCountry' => 'NL', + 'pno' => '01011990', + 'billing' => [ + 'recipient' => [ + 'firstName' => 'John', + 'lastName' => 'Do', + ], + 'address' => [ + 'street' => 'Neherkade', + 'houseNumber' => '1', + 'zipcode' => '2521VA', + 'city' => 'Gravenhage', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + 'email' => 'youremail@example.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'firstName' => 'John', + 'lastName' => 'Do', + ], + 'address' => [ + 'street' => 'Rosenburglaan', + 'houseNumber' => '216', + 'zipcode' => '4385 JM', + 'city' => 'Vlissingen', + 'country' => 'NL', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], + 'additionalParameters' => [ + 'initiated_by_magento' => '1', + 'service_action' => 'something', + ], + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_klarnakp_cancel_reservation() + { + $response = $this->buckaroo->method('klarnakp')->cancelReserve([ + 'reservationNumber' => '2377577452', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_klarnakp_update_reservation() + { + $response = $this->buckaroo->method('klarnakp')->updateReserve([ + 'invoice' => 'testinvoice 1234', + 'billing' => [ + 'recipient' => [ + 'careOf' => 'Person', + 'firstName' => 'John', + 'lastName' => 'Do', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'GB', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landLine' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'careOf' => 'Company', + 'firstName' => 'John', + 'lastName' => 'Do', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'GB', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_klarnakp_refund() + { + $response = $this->buckaroo->method('klarnakp')->refund([ + 'amountCredit' => 10, + 'invoice' => '10000480', + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KlarnaTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KlarnaTest.php new file mode 100644 index 000000000..91dee781e --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/KlarnaTest.php @@ -0,0 +1,179 @@ +buckaroo->method('klarna')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_klarna_payment_installment() + { + $response = $this->buckaroo->method('klarna')->payInInstallments($this->getPaymentInstallmentPayload()); + + $this->assertTrue($response->isPendingProcessing()); + } + + private function getPaymentPayload(): array + { + return [ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'billing' => [ + 'recipient' => [ + 'category' => 'B2C', + 'gender' => 'female', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2B', + 'gender' => 'male', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'NL', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], + ]; + } + + private function getPaymentInstallmentPayload(): array + { + return [ + 'amountDebit' => 50.30, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'currency' => 'GBP', + 'billing' => [ + 'recipient' => [ + 'category' => 'B2C', + 'gender' => 'female', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'GB', + ], + 'phone' => [ + 'mobile' => '0698765433', + 'landline' => '0109876543', + ], + 'email' => 'test@buckaroo.nl', + ], + 'shipping' => [ + 'recipient' => [ + 'category' => 'B2B', + 'gender' => 'male', + 'firstName' => 'John', + 'lastName' => 'Do', + 'birthDate' => '1990-01-01', + ], + 'address' => [ + 'street' => 'Kalverstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'b', + 'zipcode' => '4321EB', + 'city' => 'Amsterdam', + 'country' => 'GB', + ], + 'email' => 'test@buckaroo.nl', + ], + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Blue Toy Car', + 'vatPercentage' => '21', + 'quantity' => '2', + 'price' => '20.10', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Red Toy Car', + 'vatPercentage' => '21', + 'quantity' => '1', + 'price' => '10.10', + ], + ], + ]; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/MarketplacesTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/MarketplacesTest.php new file mode 100644 index 000000000..715f12c6b --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/MarketplacesTest.php @@ -0,0 +1,107 @@ +buckaroo->method('marketplaces')->manually()->split([ + 'daysUntilTransfer' => 2, + 'marketplace' => [ + 'amount' => 10, + 'description' => 'INV0001 Commission Marketplace', + ], + 'sellers' => [ + [ + 'accountId' => '789C60F316D24B088ACD471', + 'amount' => 50, + 'description' => 'INV001 Payout Make-Up Products BV', + ], + [ + 'accountId' => '369C60F316D24B088ACD238', + 'amount' => 35, + 'description' => 'INV0001 Payout Beauty Products BV', + ], + ], + ]); + + $response = $this->buckaroo->method('ideal')->combine($marketplace)->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 95.00, + 'issuer' => 'ABNANL2A', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @test + */ + public function it_creates_marketplaces_transfer() + { + $response = $this->buckaroo->method('marketplaces')->transfer([ + 'originalTransactionKey' => 'D3732474ED0', + 'marketplace' => [ + 'amount' => 10, + 'description' => 'INV0001 Commission Marketplace', + ], + 'sellers' => [ + [ + 'accountId' => '789C60F316D24B088ACD471', + 'amount' => 50, + 'description' => 'INV001 Payout Make-Up Products BV', + ], + ], + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @test + */ + public function it_creates_marketplaces_refund() + { + $marketplace = $this->buckaroo->method('marketplaces')->manually()->refundSupplementary([ + 'sellers' => [ + [ + 'accountId' => '789C60F316D24B088ACD471', +// 'amount' => 30, + 'description' => 'INV001 Payout Make-Up Products BV', + ], + ], + ]); + + $response = $this->buckaroo->method('ideal')->combine($marketplace)->refund([ + 'invoice' => 'testinvoice 123', //Set invoice number of the transaction to refund + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', //Set transaction key of the transaction to refund + 'amountCredit' => 30, + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/NoServiceSpecifiedPaymentTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/NoServiceSpecifiedPaymentTest.php new file mode 100644 index 000000000..bef3e4112 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/NoServiceSpecifiedPaymentTest.php @@ -0,0 +1,42 @@ +buckaroo->method('noservice')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'servicesSelectableByClient' => 'ideal,bancontactmrcash,paypal', + 'servicesExcludedForClient' => 'ideal', + 'continueOnIncomplete' => '1', + ]); + + $this->assertTrue($response->isWaitingOnUserInput()); + } +} \ No newline at end of file diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PayPerEmailTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PayPerEmailTest.php new file mode 100644 index 000000000..bc33ca931 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PayPerEmailTest.php @@ -0,0 +1,79 @@ +buckaroo->method('payperemail')->paymentInvitation([ + 'amountDebit' => 10, + 'invoice' => 'testinvoice 123', + 'merchantSendsEmail' => false, + 'email' => 'johnsmith@gmail.com', + 'expirationDate' => '2030-01-01', + 'paymentMethodsAllowed' => 'ideal,mastercard,paypal', + 'attachment' => '', + 'customer' => [ + 'gender' => Gender::FEMALE, + 'firstName' => 'John', + 'lastName' => 'Smith', + ], + ]); + + $this->assertTrue($response->isAwaitingConsumer()); + } + + /** + * @return void + * @test + */ + public function it_invites_pay_per_email_with_attachments() + { + $response = $this->buckaroo->method('payperemail')->paymentInvitation([ + 'amountDebit' => 10, + 'invoice' => 'testinvoice 123', + 'merchantSendsEmail' => false, + 'email' => 'johnsmith@gmail.com', + 'expirationDate' => '2030-01-01', + 'paymentMethodsAllowed' => 'ideal,mastercard,paypal', + 'attachment' => '', + 'customer' => [ + 'gender' => Gender::FEMALE, + 'firstName' => 'John', + 'lastName' => 'Smith', + ], + 'attachments' => [ + ['name' => 'bijlage1.pdf'], + ['name' => 'bijlage2.pdf'], + ], + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PayconiqTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PayconiqTest.php new file mode 100644 index 000000000..97b2b5cf2 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PayconiqTest.php @@ -0,0 +1,54 @@ +buckaroo->method('payconiq')->pay([ + 'amountDebit' => 10, + 'description' => 'Payment for testinvoice123', + 'invoice' => uniqid(), + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_payconiq_refund() + { + $response = $this->buckaroo->method('payconiq')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PaymentInitiation.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PaymentInitiation.php new file mode 100644 index 000000000..3759c63de --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PaymentInitiation.php @@ -0,0 +1,39 @@ +buckaroo->method('paybybank')->pay([ + 'amountDebit' => 10, + 'description' => 'Payment for testinvoice123', + 'invoice' => uniqid(), + 'issuer' => 'ABNANL2A', + 'countryCode' => 'NL' + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @test + */ + public function it_creates_a_payment_initiation_refund() + { + $response = $this->buckaroo->method('paybybank')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '4E8BD922192746C3918BF4077CXXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PaypalTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PaypalTest.php new file mode 100644 index 000000000..470bf7d98 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PaypalTest.php @@ -0,0 +1,167 @@ +buckaroo->method('paypal')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_paypal_recurrent_payment() + { + $response = $this->buckaroo->method('paypal')->payRecurrent([ + 'amountDebit' => 10, + 'originalTransactionKey' => 'C32C0B52E1FE4A37835FFB1716XXXXXX', + 'invoice' => uniqid(), + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @test + */ + public function it_creates_a_paypal_extra_info() + { + $response = $this->buckaroo->method('paypal')->extraInfo([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'customer' => [ + 'name' => 'John Smith', + ], + 'address' => [ + 'street' => 'Hoofstraat 90', + 'street2' => 'Street 2', + 'city' => 'Heerenveen', + 'state' => 'Friesland', + 'zipcode' => '8441AB', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_paypal_refund() + { + $response = $this->buckaroo->method('paypal')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @test + */ + public function it_creates_a_combined_subscriptions_with_paypal_and_extra_info() + { + $subscriptions = $this->buckaroo->method('subscriptions')->manually()->createCombined([ + 'pushURL' => 'https://buckaroo.dev/push', + 'includeTransaction' => false, + 'transactionVatPercentage' => 5, + 'configurationCode' => 'gfyh9fe4', + 'email' => 'test@buckaroo.nl', + 'ratePlans' => [ + 'add' => [ + 'startDate' => '2033-01-01', + 'ratePlanCode' => '9863hdcj', + ], + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + 'debtor' => [ + 'code' => 'johnsmith4', + ], +// 'person' => [ +// 'firstName' => 'John', +// 'lastName' => 'Do', +// 'gender' => Gender::FEMALE, +// 'culture' => 'nl-NL', +// 'birthDate' => '1990-01-01' +// ], + 'company' => [ + 'culture' => 'nl-NL', + 'companyName' => 'My Company Coporation', + 'vatApplicable' => true, + 'vatNumber' => 'NL140619562B01', + 'chamberOfCommerce' => '20091741', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '90', + 'zipcode' => '8441ER', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + ]); + + $paypal_extra_info = $this->buckaroo->method('paypal')->manually()->extraInfo([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'customer' => [ + 'name' => 'John Smith', + ], + 'address' => [ + 'street' => 'Hoofstraat 90', + 'street2' => 'Street 2', + 'city' => 'Heerenveen', + 'state' => 'Friesland', + 'zipcode' => '8441AB', + 'country' => 'NL', + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + ]); + + $response = $this->buckaroo->method('paypal')->combine([$subscriptions, $paypal_extra_info])->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PosTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PosTest.php new file mode 100644 index 000000000..c5df65541 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PosTest.php @@ -0,0 +1,41 @@ +buckaroo->method('pospayment')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'terminalID' => '50000001', + ]); + + $this->assertTrue($response->isSuccess()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/Przelewy24Test.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/Przelewy24Test.php new file mode 100644 index 000000000..a0a2cc583 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/Przelewy24Test.php @@ -0,0 +1,58 @@ +buckaroo->method("przelewy24")->pay([ + 'amountDebit' => 3.5, + 'invoice' => uniqid(), + 'email' => 'test@test.nl', + 'customer' => [ + 'firstName' => 'John', + 'lastName' => 'Smith', + ], + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_przelewy24_refund() + { + $response = $this->buckaroo->method('przelewy24')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PushTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PushTest.php new file mode 100644 index 000000000..3aab3f4dd --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/PushTest.php @@ -0,0 +1,102 @@ + 'test' +// ]; +// $generator = new Generator($this->buckaroo->client()->config(), $data, 'https://buckaroo.com/push'); +// $generator->generate(); + + + $replyHandler = $this->buckaroo->method('ideal'); + + $auth_header = 'IBjihN7Fhp:0YvyjYAzDQ28W+hQi80f2nhe0Z1QFJLbz7IH//6LsAU=:cad1832100784f57a6e6de835d9f3638:1658227572'; + $post_data = '{"Transaction":{"Key":"5340604668D74435AA344E1428ED1292","Invoice":"62d68b6c8ab0c","ServiceCode":"ideal","Status":{"Code":{"Code":190,"Description":"Success"},"SubCode":{"Code":"S001","Description":"Transaction successfully processed"},"DateTime":"2022-07-19T12:46:12"},"IsTest":true,"Order":"ORDER_NO_62d68b6ca2df3","Currency":"EUR","AmountDebit":10.1,"TransactionType":"C021","Services":[{"Name":"ideal","Action":null,"Parameters":[{"Name":"consumerIssuer","Value":"ABN AMRO"},{"Name":"transactionId","Value":"0000000000000001"},{"Name":"consumerName","Value":"J. de Tèster"},{"Name":"consumerIBAN","Value":"NL44RABO0123456789"},{"Name":"consumerBIC","Value":"RABONL2U"}],"VersionAsProperty":2}],"CustomParameters":null,"AdditionalParameters":{"List":[{"Name":"initiated_by_magento","Value":"1"},{"Name":"service_action","Value":"something"}]},"MutationType":1,"RelatedTransactions":null,"IsCancelable":false,"IssuingCountry":null,"StartRecurrent":false,"Recurring":false,"CustomerName":"J. de Tèster","PayerHash":"2d26d34584a4eafeeaa97eed10cfdae22ae64cdce1649a80a55fafca8850e3e22cb32eb7c8fc95ef0c6f96669a21651d4734cc568816f9bd59c2092911e6c0da","PaymentKey":"AEC974D455FF4A4B9B4C21E437A04838","Description":null}}'; + $uri = 'https://buckaroo.dev/push'; + + $post_data = [ + "brq_amount" => "10.10", + "brq_currency" => "EUR", + "brq_customer_name" => "J. de Tèster", + "brq_invoicenumber" => "SDKDevelopment.com_INVOICE_NO_628c6d032af90", + "brq_ordernumber" => "SDKDevelopment.com_ORDER_NO_628c6d032af95", + "brq_payer_hash" => "2d26d34584a4eafeeaa97eed10cfdae22ae64cdce1649a80a55fafca8850e3e22cb32eb7c8fc95ef0c6f96669a21651d4734cc568816f9bd59c2092911e6c0da", + "brq_payment" => "D44ACDD0F99D4A1C811D2CD3EFDB05BA", + "brq_payment_method" => "ideal", + "brq_SERVICE_ideal_consumerBIC" => "RABONL2U", + "brq_SERVICE_ideal_consumerIBAN" => "NL44RABO0123456789", + "brq_SERVICE_ideal_consumerIssuer" => "ABN AMRO", + "brq_SERVICE_ideal_consumerName" => "J. de Tèster", + "brq_SERVICE_ideal_transactionId" => "0000000000000001", + "brq_statuscode" => "190", + "brq_statuscode_detail" => "S001", + "brq_statusmessage" => "Transaction successfully processed", + "brq_test" => "true", + "brq_timestamp" => "2022-05-24 07:29:09", + "brq_transactions" => "4C1BE53E2C42412AB32A799D9316E7DD", + "brq_websitekey" => "IBjihN7Fhp", + "brq_signature" => "bf7a62c830da2d2e004199919a8fe0d53b0668f5", + ]; + +// $post_data = [ +// "BRQ_AMOUNT" => "10.10", +// "BRQ_CURRENCY" => "EUR", +// "BRQ_CUSTOMER_NAME" => "J. de Tèster", +// "BRQ_INVOICENUMBER" => "63208dbcb5702", +// "BRQ_ORDERNUMBER" => "ORDER_NO_63208dbcd10e2", +// "BRQ_PAYER_HASH" => "2d26d34584a4eafeeaa97eed10cfdae22ae64cdce1649a80a55fafca8850e3e22cb32eb7c8fc95ef0c6f96669a21651d4734cc568816f9bd59c2092911e6c0da", +// "BRQ_PAYMENT" => "7F817F3A3F614062AC3E6EE634B2699F", +// "BRQ_PAYMENT_METHOD" => "ideal", +// "BRQ_SERVICE_IDEAL_CONSUMERBIC" => "RABONL2U", +// "BRQ_SERVICE_IDEAL_CONSUMERIBAN" => "NL44RABO0123456789", +// "BRQ_SERVICE_IDEAL_CONSUMERISSUER" => "ABN AMRO", +// "BRQ_SERVICE_IDEAL_CONSUMERNAME" => "J. de Tèster", +// "BRQ_SERVICE_IDEAL_TRANSACTIONID" => "0000000000000001", +// "BRQ_STATUSCODE" => "190", +// "BRQ_STATUSCODE_DETAIL" => "S001", +// "BRQ_STATUSMESSAGE" => "Transaction successfully processed", +// "BRQ_TEST" => "true", +// "BRQ_TIMESTAMP" => "2022-09-13 16:03:58", +// "BRQ_TRANSACTIONS" => "BBEB99F178C64A7FB30667B6427D8064", +// "BRQ_WEBSITEKEY" => "IBjihN7Fhp", +// "BRQ_SIGNATURE" => "06de0e66b0df062df376fa619cc0792b2ed5f3fd", +// "ADD_INITIATED_BY_MAGENTO" => "1", +// "ADD_SERVICE_ACTION" => "something" +// ]; + + $reply_handler = new ReplyHandler($this->buckaroo->client()->config(), $post_data, $auth_header, $uri); + + $reply_handler->validate(); + + $this->assertTrue($reply_handler->isValid()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SepaTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SepaTest.php new file mode 100644 index 000000000..5a6194ac9 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SepaTest.php @@ -0,0 +1,122 @@ +paymentPayload = ([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'iban' => 'NL13TEST0123456789', + 'bic' => 'TESTNL2A', + 'collectdate' => '2022-12-01', + 'mandateReference' => '1DCtestreference', + 'mandateDate' => '2022-07-03', + 'customer' => [ + 'name' => 'John Smith', + ], + ]); + } + + /** + * @return void + * @test + */ + public function it_creates_a_sepa_payment() + { + $response = $this->buckaroo->method('sepadirectdebit')->pay($this->paymentPayload); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_sepa_refund() + { + $response = $this->buckaroo->method('sepadirectdebit')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '3D175524FCF94C94A23B67E8DCXXXXXX', + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_sepa_authorize() + { + $response = $this->buckaroo->method('sepadirectdebit')->authorize($this->paymentPayload); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_sepa_recurrent_payment() + { + $response = $this->buckaroo->method('sepadirectdebit')->payRecurrent([ + 'amountDebit' => 10, + 'originalTransactionKey' => 'FDA9EEEEA53C42BF875C35C6C2B7xxxx', + 'invoice' => 'testinvoice 123', + 'collectdate' => '2030-07-03', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_sepa_extra_info() + { + $response = $this->buckaroo->method('sepadirectdebit')->extraInfo([ + 'amountDebit' => 10, + 'invoice' => 'testinvoice 123', + 'iban' => 'NL13TEST0123456789', + 'bic' => 'TESTNL2A', + 'contractID' => 'TEST', + 'mandateDate' => '2022-07-03', + 'customerReferencePartyName' => 'Lorem', + 'customer' => [ + 'name' => 'John Smith', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '13', + 'houseNumberAdditional' => 'a', + 'zipcode' => '1234AB', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_sepa_pay_with_emandate() + { + $response = $this->buckaroo->method('sepadirectdebit')->payWithEmandate([ + 'amountDebit' => 10, + 'invoice' => 'testinvoice 123', + 'mandateReference' => '001D284C4A887F84756A1425A369997xxxx', + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SofortTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SofortTest.php new file mode 100644 index 000000000..ef4759da5 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SofortTest.php @@ -0,0 +1,60 @@ +paymentPayload = ([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + ]); + } + + /** + * @return void + * @test + */ + public function it_creates_a_sofort_payment() + { + $response = $this->buckaroo->method('sofortueberweisung')->pay($this->paymentPayload); + + $this->assertTrue($response->isPendingProcessing()); + } + + + /** + * @return void + * @test + */ + public function it_creates_a_sofort_instant_refund() + { + $response = $this->buckaroo->method('sofortueberweisung')->instantRefund([ + 'invoice' => uniqid(), + 'amountCredit' => 10.10, + ]); + + $this->assertTrue($response->isValidationFailure()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SubscriptionsTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SubscriptionsTest.php new file mode 100644 index 000000000..44c8ab5b2 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SubscriptionsTest.php @@ -0,0 +1,228 @@ +buckaroo->method('subscriptions')->create([ + 'startDate' => date('Y-m-d'), + 'ratePlans' => [ + 'update' => [ + 'startDate' => date('Y-m-d', strtotime(date('Y-m-d'). ' + 60 days')), + 'ratePlanCode' => 'zfv59mmy', + ], + ], + 'ratePlanCharges' => [ + 'add' => [ + 'ratePlanChargeCode' => 'test', + ], + ], + 'configurationCode' => 'gfyh9fe4', + 'configuration' => [ + 'name' => 'owiejr' + ], + 'debtor' => [ + 'code' => 'johnsmith4', + ], + ]); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + public function it_creates_a_combined_subscription() + { + $subscriptions = $this->buckaroo->method('subscriptions')->manually()->createCombined([ + 'pushURL' => 'https://buckaroo.dev/push', + 'includeTransaction' => false, + 'transactionVatPercentage' => 5, + 'configurationCode' => 'gfyh9fe4', + 'email' => 'test@buckaroo.nl', + 'ratePlans' => [ + 'add' => [ + 'startDate' => '2033-01-01', + 'ratePlanCode' => '9863hdcj', + ], + ], + 'phone' => [ + 'mobile' => '0612345678', + ], + 'debtor' => [ + 'code' => 'johnsmith4', + ], +// 'person' => [ +// 'firstName' => 'John', +// 'lastName' => 'Do', +// 'gender' => Gender::FEMALE, +// 'culture' => 'nl-NL', +// 'birthDate' => '1990-01-01' +// ], + 'company' => [ + 'culture' => 'nl-NL', + 'companyName' => 'My Company Coporation', + 'vatApplicable' => true, + 'vatNumber' => 'NL140619562B01', + 'chamberOfCommerce' => '20091741', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '90', + 'zipcode' => '8441ER', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + ]); + + $response = $this->buckaroo->method('ideal')->combine($subscriptions)->pay([ + 'startRecurrent' => true, + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'issuer' => 'ABNANL2A', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @return void + * @test + */ + public function it_updates_subscription() + { + $response = $this->buckaroo->method('subscriptions')->update([ + 'subscriptionGuid' => 'FC512FC9CC3A485D8CF3D1804FF6xxxx', + 'configurationCode' => '9wqe32ew', + 'ratePlans' => [ + 'update' => [ + 'ratePlanGuid' => 'F075470B1BB24B9291943A888A2Fxxxx', + 'startDate' => '2022-01-01', + 'endDate' => '2030-01-01', + 'charge' => [ + 'ratePlanChargeGuid' => 'AD375E2E188747159673440898B9xxxx', + 'baseNumberOfUnits' => '1', + 'pricePerUnit' => 10, + ], + ], + ], + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_updates_combined_subscription() + { + $subscription = $this->buckaroo->method('subscriptions')->manually()->updateCombined([ + 'startRecurrent' => true, + 'subscriptionGuid' => '65EB06079D854B0C9A9ECB0E2C1Cxxxx', + ]); + + $response = $this->buckaroo->method('ideal')->combine($subscription)->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'issuer' => 'ABNANL2A', + ]); + + + $this->assertTrue($response->isRejected()); + } + + /** + * @return void + * @test + */ + public function it_stops_subscription() + { + $response = $this->buckaroo->method('subscriptions')->stop([ + 'subscriptionGuid' => 'A8A3DF828F0E4706B50191D3D1C88xxx', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_get_info_of_subscription() + { + $response = $this->buckaroo->method('subscriptions')->info([ + 'subscriptionGuid' => '6ABDB214C4944B5C8638420CE9ECxxxx', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_delete_payment_config_of_subscription() + { + $response = $this->buckaroo->method('subscriptions')->deletePaymentConfig([ + 'subscriptionGuid' => '6ABDB214C4944B5C8638420CE9ECxxxx', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_pauses_of_subscription() + { + $response = $this->buckaroo->method('subscriptions')->pause([ + 'resumeDate' => '2030-01-01', + 'subscriptionGuid' => '6ABDB214C4944B5C8638420CE9ECxxxx', + ]); + + $this->assertTrue($response->isFailed()); + } + + /** + * @return void + * @test + */ + public function it_resumes_of_subscription() + { + $response = $this->buckaroo->method('subscriptions')->resume([ + 'resumeDate' => '2030-01-01', + 'subscriptionGuid' => '6ABDB214C4944B5C8638420CE9ECxxxx', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SurepayTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SurepayTest.php new file mode 100644 index 000000000..eb56bcbb5 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/SurepayTest.php @@ -0,0 +1,42 @@ +buckaroo->method('surepay')->verify([ + 'bankAccount' => [ + 'iban' => 'NL13TEST0123456789', + 'accountName' => 'John Doe', + ] + ]); + + $this->assertTrue($response->isSuccess()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/ThunesTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/ThunesTest.php new file mode 100644 index 000000000..16a92783d --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/ThunesTest.php @@ -0,0 +1,72 @@ +buckaroo->method('thunes')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isValidationFailure()); + } + + /** + * @return void + * @test + */ + private function getPaymentPayload(?array $additional = null): array + { + $payload = [ + 'amountDebit' => 3, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'name' => 'monizzeecovoucher', + 'clientIP' => '127.0.0.1', + 'articles' => [ + [ + 'identifier' => 'Articlenumber1', + 'description' => 'Articledesciption1', + 'price' => '1', + ], + [ + 'identifier' => 'Articlenumber2', + 'description' => 'Articledesciption2', + 'price' => '2', + ], + ] + ]; + + if ($additional) + { + return array_merge($additional, $payload); + } + + return $payload; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TinkaTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TinkaTest.php new file mode 100644 index 000000000..e4689423a --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TinkaTest.php @@ -0,0 +1,118 @@ +buckaroo->method('tinka')->pay($this->getPaymentPayload()); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_tinka_refund() + { + $response = $this->buckaroo->method('tinka')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } + + private function getPaymentPayload(): array + { + return [ + 'amountDebit' => 3.5, + 'order' => uniqid(), + 'invoice' => uniqid(), + 'description' => 'This is a test order', + 'paymentMethod' => 'Credit', + 'deliveryMethod' => 'Locker', + 'deliveryDate' => '2030-01-01', + 'articles' => [ + [ + 'type' => 1, + 'description' => 'Blue Toy Car', + 'brand' => 'Ford Focus', + 'manufacturer' => 'Ford', + 'color' => 'Red', + 'size' => 'Small', + 'quantity' => '1', + 'price' => '3.5', + 'unitCode' => 'test', + ], + ], + 'customer' => [ + 'gender' => Gender::MALE, + 'firstName' => 'Buck', + 'lastName' => 'Aroo', + 'initials' => 'BA', + 'birthDate' => '1990-01-01', + ], + 'billing' => [ + 'recipient' => [ + 'lastNamePrefix' => 'the', + ], + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => [ + 'mobile' => '0109876543', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '80', + 'houseNumberAdditional' => 'A', + 'zipcode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + ], + 'shipping' => [ + 'recipient' => [ + 'lastNamePrefix' => 'the', + ], + 'email' => 'billingcustomer@buckaroo.nl', + 'phone' => [ + 'mobile' => '0109876543', + ], + 'address' => [ + 'street' => 'Hoofdstraat', + 'houseNumber' => '80', + 'houseNumberAdditional' => 'A', + 'zipcode' => '8441EE', + 'city' => 'Heerenveen', + 'country' => 'NL', + ], + ], + ]; + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TransferTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TransferTest.php new file mode 100644 index 000000000..6b9b9e416 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TransferTest.php @@ -0,0 +1,64 @@ +buckaroo->method('transfer')->pay([ + 'invoice' => uniqid(), + 'amountDebit' => 10.10, + 'email' => 'your@email.com', + 'country' => 'NL', + 'dateDue' => date("Y-m-d"), + 'sendMail' => true, + 'customer' => [ + 'gender' => Gender::MALE, + 'firstName' => 'John', + 'lastName' => 'Smith', + ], + ]); + + $this->assertTrue($response->isAwaitingConsumer()); + } + + /** + * @test + */ + public function it_creates_a_transfer_refund() + { + $response = $this->buckaroo->method('transfer')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TrustlyTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TrustlyTest.php new file mode 100644 index 000000000..1c92ea9e4 --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/TrustlyTest.php @@ -0,0 +1,58 @@ +buckaroo->method('trustly')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'country' => 'DE', + 'customer' => [ + 'firstName' => 'Test', + 'lastName' => 'Aflever', + ], + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_trustly_refund() + { + $response = $this->buckaroo->method('trustly')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/WeChatPayTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/WeChatPayTest.php new file mode 100644 index 000000000..138356e0a --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/WeChatPayTest.php @@ -0,0 +1,54 @@ +buckaroo->method('wechatpay')->pay([ + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'locale' => 'en-US', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_creates_a_wechat_refund() + { + $response = $this->buckaroo->method('wechatpay')->refund([ + 'amountCredit' => 10, + 'invoice' => 'testinvoice 123', + 'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX', + ]); + + $this->assertTrue($response->isFailed()); + } +} diff --git a/vendor/buckaroo/sdk/tests/Buckaroo/Payments/iDinTest.php b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/iDinTest.php new file mode 100644 index 000000000..8b1cabc9b --- /dev/null +++ b/vendor/buckaroo/sdk/tests/Buckaroo/Payments/iDinTest.php @@ -0,0 +1,62 @@ +buckaroo->method('idin')->identify([ + 'issuer' => 'BANKNL2Y', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_verify_with_idin() + { + $response = $this->buckaroo->method('idin')->verify([ + 'issuer' => 'BANKNL2Y', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } + + /** + * @test + */ + public function it_login_with_idin() + { + $response = $this->buckaroo->method('idin')->login([ + 'issuer' => 'BANKNL2Y', + ]); + + $this->assertTrue($response->isPendingProcessing()); + } +} diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/CHANGELOG.md b/vendor/composer/200a40ea/symfony-finder-a1b31d8/CHANGELOG.md new file mode 100644 index 000000000..1a12afe65 --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/CHANGELOG.md @@ -0,0 +1,98 @@ +CHANGELOG +========= + +6.2 +--- + + * Add `Finder::sortByExtension()` and `Finder::sortBySize()` + * Add `Finder::sortByCaseInsensitiveName()` to sort by name with case insensitive sorting methods + +6.0 +--- + + * Remove `Comparator::setTarget()` and `Comparator::setOperator()` + +5.4.0 +----- + + * Deprecate `Comparator::setTarget()` and `Comparator::setOperator()` + * Add a constructor to `Comparator` that allows setting target and operator + * Finder's iterator has now `Symfony\Component\Finder\SplFileInfo` inner type specified + * Add recursive .gitignore files support + +5.0.0 +----- + + * added `$useNaturalSort` argument to `Finder::sortByName()` + +4.3.0 +----- + + * added Finder::ignoreVCSIgnored() to ignore files based on rules listed in .gitignore + +4.2.0 +----- + + * added $useNaturalSort option to Finder::sortByName() method + * the `Finder::sortByName()` method will have a new `$useNaturalSort` + argument in version 5.0, not defining it is deprecated + * added `Finder::reverseSorting()` to reverse the sorting + +4.0.0 +----- + + * removed `ExceptionInterface` + * removed `Symfony\Component\Finder\Iterator\FilterIterator` + +3.4.0 +----- + + * deprecated `Symfony\Component\Finder\Iterator\FilterIterator` + * added Finder::hasResults() method to check if any results were found + +3.3.0 +----- + + * added double-star matching to Glob::toRegex() + +3.0.0 +----- + + * removed deprecated classes + +2.8.0 +----- + + * deprecated adapters and related classes + +2.5.0 +----- + * added support for GLOB_BRACE in the paths passed to Finder::in() + +2.3.0 +----- + + * added a way to ignore unreadable directories (via Finder::ignoreUnreadableDirs()) + * unified the way subfolders that are not executable are handled by always throwing an AccessDeniedException exception + +2.2.0 +----- + + * added Finder::path() and Finder::notPath() methods + * added finder adapters to improve performance on specific platforms + * added support for wildcard characters (glob patterns) in the paths passed + to Finder::in() + +2.1.0 +----- + + * added Finder::sortByAccessedTime(), Finder::sortByChangedTime(), and + Finder::sortByModifiedTime() + * added Countable to Finder + * added support for an array of directories as an argument to + Finder::exclude() + * added searching based on the file content via Finder::contains() and + Finder::notContains() + * added support for the != operator in the Comparator + * [BC BREAK] filter expressions (used for file name and content) are no more + considered as regexps but glob patterns when they are enclosed in '*' or '?' diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/Comparator.php b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/Comparator.php new file mode 100644 index 000000000..bd6858347 --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/Comparator.php @@ -0,0 +1,62 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Finder\Comparator; + +/** + * @author Fabien Potencier + */ +class Comparator +{ + private string $target; + private string $operator; + + public function __construct(string $target, string $operator = '==') + { + if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='])) { + throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator)); + } + + $this->target = $target; + $this->operator = $operator; + } + + /** + * Gets the target value. + */ + public function getTarget(): string + { + return $this->target; + } + + /** + * Gets the comparison operator. + */ + public function getOperator(): string + { + return $this->operator; + } + + /** + * Tests against the target. + */ + public function test(mixed $test): bool + { + return match ($this->operator) { + '>' => $test > $this->target, + '>=' => $test >= $this->target, + '<' => $test < $this->target, + '<=' => $test <= $this->target, + '!=' => $test != $this->target, + default => $test == $this->target, + }; + } +} diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/DateComparator.php b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/DateComparator.php new file mode 100644 index 000000000..e0c523d05 --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/DateComparator.php @@ -0,0 +1,50 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Finder\Comparator; + +/** + * DateCompare compiles date comparisons. + * + * @author Fabien Potencier + */ +class DateComparator extends Comparator +{ + /** + * @param string $test A comparison string + * + * @throws \InvalidArgumentException If the test is not understood + */ + public function __construct(string $test) + { + if (!preg_match('#^\s*(==|!=|[<>]=?|after|since|before|until)?\s*(.+?)\s*$#i', $test, $matches)) { + throw new \InvalidArgumentException(sprintf('Don\'t understand "%s" as a date test.', $test)); + } + + try { + $date = new \DateTimeImmutable($matches[2]); + $target = $date->format('U'); + } catch (\Exception) { + throw new \InvalidArgumentException(sprintf('"%s" is not a valid date.', $matches[2])); + } + + $operator = $matches[1] ?? '=='; + if ('since' === $operator || 'after' === $operator) { + $operator = '>'; + } + + if ('until' === $operator || 'before' === $operator) { + $operator = '<'; + } + + parent::__construct($target, $operator); + } +} diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/NumberComparator.php b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/NumberComparator.php new file mode 100644 index 000000000..dd3082077 --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Comparator/NumberComparator.php @@ -0,0 +1,78 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Finder\Comparator; + +/** + * NumberComparator compiles a simple comparison to an anonymous + * subroutine, which you can call with a value to be tested again. + * + * Now this would be very pointless, if NumberCompare didn't understand + * magnitudes. + * + * The target value may use magnitudes of kilobytes (k, ki), + * megabytes (m, mi), or gigabytes (g, gi). Those suffixed + * with an i use the appropriate 2**n version in accordance with the + * IEC standard: http://physics.nist.gov/cuu/Units/binary.html + * + * Based on the Perl Number::Compare module. + * + * @author Fabien Potencier PHP port + * @author Richard Clamp Perl version + * @copyright 2004-2005 Fabien Potencier + * @copyright 2002 Richard Clamp + * + * @see http://physics.nist.gov/cuu/Units/binary.html + */ +class NumberComparator extends Comparator +{ + /** + * @param string|null $test A comparison string or null + * + * @throws \InvalidArgumentException If the test is not understood + */ + public function __construct(?string $test) + { + if (null === $test || !preg_match('#^\s*(==|!=|[<>]=?)?\s*([0-9\.]+)\s*([kmg]i?)?\s*$#i', $test, $matches)) { + throw new \InvalidArgumentException(sprintf('Don\'t understand "%s" as a number test.', $test ?? 'null')); + } + + $target = $matches[2]; + if (!is_numeric($target)) { + throw new \InvalidArgumentException(sprintf('Invalid number "%s".', $target)); + } + if (isset($matches[3])) { + // magnitude + switch (strtolower($matches[3])) { + case 'k': + $target *= 1000; + break; + case 'ki': + $target *= 1024; + break; + case 'm': + $target *= 1000000; + break; + case 'mi': + $target *= 1024 * 1024; + break; + case 'g': + $target *= 1000000000; + break; + case 'gi': + $target *= 1024 * 1024 * 1024; + break; + } + } + + parent::__construct($target, $matches[1] ?: '=='); + } +} diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/Exception/AccessDeniedException.php b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Exception/AccessDeniedException.php new file mode 100644 index 000000000..ee195ea8d --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Exception/AccessDeniedException.php @@ -0,0 +1,19 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Finder\Exception; + +/** + * @author Jean-François Simon + */ +class AccessDeniedException extends \UnexpectedValueException +{ +} diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/Exception/DirectoryNotFoundException.php b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Exception/DirectoryNotFoundException.php new file mode 100644 index 000000000..c6cc0f273 --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Exception/DirectoryNotFoundException.php @@ -0,0 +1,19 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Finder\Exception; + +/** + * @author Andreas Erhard + */ +class DirectoryNotFoundException extends \InvalidArgumentException +{ +} diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/Finder.php b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Finder.php new file mode 100644 index 000000000..a3bf9a1a7 --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Finder.php @@ -0,0 +1,846 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Finder; + +use Symfony\Component\Finder\Comparator\DateComparator; +use Symfony\Component\Finder\Comparator\NumberComparator; +use Symfony\Component\Finder\Exception\DirectoryNotFoundException; +use Symfony\Component\Finder\Iterator\CustomFilterIterator; +use Symfony\Component\Finder\Iterator\DateRangeFilterIterator; +use Symfony\Component\Finder\Iterator\DepthRangeFilterIterator; +use Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator; +use Symfony\Component\Finder\Iterator\FilecontentFilterIterator; +use Symfony\Component\Finder\Iterator\FilenameFilterIterator; +use Symfony\Component\Finder\Iterator\LazyIterator; +use Symfony\Component\Finder\Iterator\SizeRangeFilterIterator; +use Symfony\Component\Finder\Iterator\SortableIterator; + +/** + * Finder allows to build rules to find files and directories. + * + * It is a thin wrapper around several specialized iterator classes. + * + * All rules may be invoked several times. + * + * All methods return the current Finder object to allow chaining: + * + * $finder = Finder::create()->files()->name('*.php')->in(__DIR__); + * + * @author Fabien Potencier + * + * @implements \IteratorAggregate + */ +class Finder implements \IteratorAggregate, \Countable +{ + public const IGNORE_VCS_FILES = 1; + public const IGNORE_DOT_FILES = 2; + public const IGNORE_VCS_IGNORED_FILES = 4; + + private int $mode = 0; + private array $names = []; + private array $notNames = []; + private array $exclude = []; + private array $filters = []; + private array $depths = []; + private array $sizes = []; + private bool $followLinks = false; + private bool $reverseSorting = false; + private \Closure|int|false $sort = false; + private int $ignore = 0; + private array $dirs = []; + private array $dates = []; + private array $iterators = []; + private array $contains = []; + private array $notContains = []; + private array $paths = []; + private array $notPaths = []; + private bool $ignoreUnreadableDirs = false; + + private static array $vcsPatterns = ['.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg']; + + public function __construct() + { + $this->ignore = static::IGNORE_VCS_FILES | static::IGNORE_DOT_FILES; + } + + /** + * Creates a new Finder. + */ + public static function create(): static + { + return new static(); + } + + /** + * Restricts the matching to directories only. + * + * @return $this + */ + public function directories(): static + { + $this->mode = Iterator\FileTypeFilterIterator::ONLY_DIRECTORIES; + + return $this; + } + + /** + * Restricts the matching to files only. + * + * @return $this + */ + public function files(): static + { + $this->mode = Iterator\FileTypeFilterIterator::ONLY_FILES; + + return $this; + } + + /** + * Adds tests for the directory depth. + * + * Usage: + * + * $finder->depth('> 1') // the Finder will start matching at level 1. + * $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point. + * $finder->depth(['>= 1', '< 3']) + * + * @param string|int|string[]|int[] $levels The depth level expression or an array of depth levels + * + * @return $this + * + * @see DepthRangeFilterIterator + * @see NumberComparator + */ + public function depth(string|int|array $levels): static + { + foreach ((array) $levels as $level) { + $this->depths[] = new Comparator\NumberComparator($level); + } + + return $this; + } + + /** + * Adds tests for file dates (last modified). + * + * The date must be something that strtotime() is able to parse: + * + * $finder->date('since yesterday'); + * $finder->date('until 2 days ago'); + * $finder->date('> now - 2 hours'); + * $finder->date('>= 2005-10-15'); + * $finder->date(['>= 2005-10-15', '<= 2006-05-27']); + * + * @param string|string[] $dates A date range string or an array of date ranges + * + * @return $this + * + * @see strtotime + * @see DateRangeFilterIterator + * @see DateComparator + */ + public function date(string|array $dates): static + { + foreach ((array) $dates as $date) { + $this->dates[] = new Comparator\DateComparator($date); + } + + return $this; + } + + /** + * Adds rules that files must match. + * + * You can use patterns (delimited with / sign), globs or simple strings. + * + * $finder->name('/\.php$/') + * $finder->name('*.php') // same as above, without dot files + * $finder->name('test.php') + * $finder->name(['test.py', 'test.php']) + * + * @param string|string[] $patterns A pattern (a regexp, a glob, or a string) or an array of patterns + * + * @return $this + * + * @see FilenameFilterIterator + */ + public function name(string|array $patterns): static + { + $this->names = array_merge($this->names, (array) $patterns); + + return $this; + } + + /** + * Adds rules that files must not match. + * + * @param string|string[] $patterns A pattern (a regexp, a glob, or a string) or an array of patterns + * + * @return $this + * + * @see FilenameFilterIterator + */ + public function notName(string|array $patterns): static + { + $this->notNames = array_merge($this->notNames, (array) $patterns); + + return $this; + } + + /** + * Adds tests that file contents must match. + * + * Strings or PCRE patterns can be used: + * + * $finder->contains('Lorem ipsum') + * $finder->contains('/Lorem ipsum/i') + * $finder->contains(['dolor', '/ipsum/i']) + * + * @param string|string[] $patterns A pattern (string or regexp) or an array of patterns + * + * @return $this + * + * @see FilecontentFilterIterator + */ + public function contains(string|array $patterns): static + { + $this->contains = array_merge($this->contains, (array) $patterns); + + return $this; + } + + /** + * Adds tests that file contents must not match. + * + * Strings or PCRE patterns can be used: + * + * $finder->notContains('Lorem ipsum') + * $finder->notContains('/Lorem ipsum/i') + * $finder->notContains(['lorem', '/dolor/i']) + * + * @param string|string[] $patterns A pattern (string or regexp) or an array of patterns + * + * @return $this + * + * @see FilecontentFilterIterator + */ + public function notContains(string|array $patterns): static + { + $this->notContains = array_merge($this->notContains, (array) $patterns); + + return $this; + } + + /** + * Adds rules that filenames must match. + * + * You can use patterns (delimited with / sign) or simple strings. + * + * $finder->path('some/special/dir') + * $finder->path('/some\/special\/dir/') // same as above + * $finder->path(['some dir', 'another/dir']) + * + * Use only / as dirname separator. + * + * @param string|string[] $patterns A pattern (a regexp or a string) or an array of patterns + * + * @return $this + * + * @see FilenameFilterIterator + */ + public function path(string|array $patterns): static + { + $this->paths = array_merge($this->paths, (array) $patterns); + + return $this; + } + + /** + * Adds rules that filenames must not match. + * + * You can use patterns (delimited with / sign) or simple strings. + * + * $finder->notPath('some/special/dir') + * $finder->notPath('/some\/special\/dir/') // same as above + * $finder->notPath(['some/file.txt', 'another/file.log']) + * + * Use only / as dirname separator. + * + * @param string|string[] $patterns A pattern (a regexp or a string) or an array of patterns + * + * @return $this + * + * @see FilenameFilterIterator + */ + public function notPath(string|array $patterns): static + { + $this->notPaths = array_merge($this->notPaths, (array) $patterns); + + return $this; + } + + /** + * Adds tests for file sizes. + * + * $finder->size('> 10K'); + * $finder->size('<= 1Ki'); + * $finder->size(4); + * $finder->size(['> 10K', '< 20K']) + * + * @param string|int|string[]|int[] $sizes A size range string or an integer or an array of size ranges + * + * @return $this + * + * @see SizeRangeFilterIterator + * @see NumberComparator + */ + public function size(string|int|array $sizes): static + { + foreach ((array) $sizes as $size) { + $this->sizes[] = new Comparator\NumberComparator($size); + } + + return $this; + } + + /** + * Excludes directories. + * + * Directories passed as argument must be relative to the ones defined with the `in()` method. For example: + * + * $finder->in(__DIR__)->exclude('ruby'); + * + * @param string|array $dirs A directory path or an array of directories + * + * @return $this + * + * @see ExcludeDirectoryFilterIterator + */ + public function exclude(string|array $dirs): static + { + $this->exclude = array_merge($this->exclude, (array) $dirs); + + return $this; + } + + /** + * Excludes "hidden" directories and files (starting with a dot). + * + * This option is enabled by default. + * + * @return $this + * + * @see ExcludeDirectoryFilterIterator + */ + public function ignoreDotFiles(bool $ignoreDotFiles): static + { + if ($ignoreDotFiles) { + $this->ignore |= static::IGNORE_DOT_FILES; + } else { + $this->ignore &= ~static::IGNORE_DOT_FILES; + } + + return $this; + } + + /** + * Forces the finder to ignore version control directories. + * + * This option is enabled by default. + * + * @return $this + * + * @see ExcludeDirectoryFilterIterator + */ + public function ignoreVCS(bool $ignoreVCS): static + { + if ($ignoreVCS) { + $this->ignore |= static::IGNORE_VCS_FILES; + } else { + $this->ignore &= ~static::IGNORE_VCS_FILES; + } + + return $this; + } + + /** + * Forces Finder to obey .gitignore and ignore files based on rules listed there. + * + * This option is disabled by default. + * + * @return $this + */ + public function ignoreVCSIgnored(bool $ignoreVCSIgnored): static + { + if ($ignoreVCSIgnored) { + $this->ignore |= static::IGNORE_VCS_IGNORED_FILES; + } else { + $this->ignore &= ~static::IGNORE_VCS_IGNORED_FILES; + } + + return $this; + } + + /** + * Adds VCS patterns. + * + * @see ignoreVCS() + * + * @param string|string[] $pattern VCS patterns to ignore + * + * @return void + */ + public static function addVCSPattern(string|array $pattern) + { + foreach ((array) $pattern as $p) { + self::$vcsPatterns[] = $p; + } + + self::$vcsPatterns = array_unique(self::$vcsPatterns); + } + + /** + * Sorts files and directories by an anonymous function. + * + * The anonymous function receives two \SplFileInfo instances to compare. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sort(\Closure $closure): static + { + $this->sort = $closure; + + return $this; + } + + /** + * Sorts files and directories by extension. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortByExtension(): static + { + $this->sort = Iterator\SortableIterator::SORT_BY_EXTENSION; + + return $this; + } + + /** + * Sorts files and directories by name. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortByName(bool $useNaturalSort = false): static + { + $this->sort = $useNaturalSort ? Iterator\SortableIterator::SORT_BY_NAME_NATURAL : Iterator\SortableIterator::SORT_BY_NAME; + + return $this; + } + + /** + * Sorts files and directories by name case insensitive. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortByCaseInsensitiveName(bool $useNaturalSort = false): static + { + $this->sort = $useNaturalSort ? Iterator\SortableIterator::SORT_BY_NAME_NATURAL_CASE_INSENSITIVE : Iterator\SortableIterator::SORT_BY_NAME_CASE_INSENSITIVE; + + return $this; + } + + /** + * Sorts files and directories by size. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortBySize(): static + { + $this->sort = Iterator\SortableIterator::SORT_BY_SIZE; + + return $this; + } + + /** + * Sorts files and directories by type (directories before files), then by name. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortByType(): static + { + $this->sort = Iterator\SortableIterator::SORT_BY_TYPE; + + return $this; + } + + /** + * Sorts files and directories by the last accessed time. + * + * This is the time that the file was last accessed, read or written to. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortByAccessedTime(): static + { + $this->sort = Iterator\SortableIterator::SORT_BY_ACCESSED_TIME; + + return $this; + } + + /** + * Reverses the sorting. + * + * @return $this + */ + public function reverseSorting(): static + { + $this->reverseSorting = true; + + return $this; + } + + /** + * Sorts files and directories by the last inode changed time. + * + * This is the time that the inode information was last modified (permissions, owner, group or other metadata). + * + * On Windows, since inode is not available, changed time is actually the file creation time. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortByChangedTime(): static + { + $this->sort = Iterator\SortableIterator::SORT_BY_CHANGED_TIME; + + return $this; + } + + /** + * Sorts files and directories by the last modified time. + * + * This is the last time the actual contents of the file were last modified. + * + * This can be slow as all the matching files and directories must be retrieved for comparison. + * + * @return $this + * + * @see SortableIterator + */ + public function sortByModifiedTime(): static + { + $this->sort = Iterator\SortableIterator::SORT_BY_MODIFIED_TIME; + + return $this; + } + + /** + * Filters the iterator with an anonymous function. + * + * The anonymous function receives a \SplFileInfo and must return false + * to remove files. + * + * @return $this + * + * @see CustomFilterIterator + */ + public function filter(\Closure $closure): static + { + $this->filters[] = $closure; + + return $this; + } + + /** + * Forces the following of symlinks. + * + * @return $this + */ + public function followLinks(): static + { + $this->followLinks = true; + + return $this; + } + + /** + * Tells finder to ignore unreadable directories. + * + * By default, scanning unreadable directories content throws an AccessDeniedException. + * + * @return $this + */ + public function ignoreUnreadableDirs(bool $ignore = true): static + { + $this->ignoreUnreadableDirs = $ignore; + + return $this; + } + + /** + * Searches files and directories which match defined rules. + * + * @param string|string[] $dirs A directory path or an array of directories + * + * @return $this + * + * @throws DirectoryNotFoundException if one of the directories does not exist + */ + public function in(string|array $dirs): static + { + $resolvedDirs = []; + + foreach ((array) $dirs as $dir) { + if (is_dir($dir)) { + $resolvedDirs[] = [$this->normalizeDir($dir)]; + } elseif ($glob = glob($dir, (\defined('GLOB_BRACE') ? \GLOB_BRACE : 0) | \GLOB_ONLYDIR | \GLOB_NOSORT)) { + sort($glob); + $resolvedDirs[] = array_map($this->normalizeDir(...), $glob); + } else { + throw new DirectoryNotFoundException(sprintf('The "%s" directory does not exist.', $dir)); + } + } + + $this->dirs = array_merge($this->dirs, ...$resolvedDirs); + + return $this; + } + + /** + * Returns an Iterator for the current Finder configuration. + * + * This method implements the IteratorAggregate interface. + * + * @return \Iterator + * + * @throws \LogicException if the in() method has not been called + */ + public function getIterator(): \Iterator + { + if (0 === \count($this->dirs) && 0 === \count($this->iterators)) { + throw new \LogicException('You must call one of in() or append() methods before iterating over a Finder.'); + } + + if (1 === \count($this->dirs) && 0 === \count($this->iterators)) { + $iterator = $this->searchInDirectory($this->dirs[0]); + + if ($this->sort || $this->reverseSorting) { + $iterator = (new Iterator\SortableIterator($iterator, $this->sort, $this->reverseSorting))->getIterator(); + } + + return $iterator; + } + + $iterator = new \AppendIterator(); + foreach ($this->dirs as $dir) { + $iterator->append(new \IteratorIterator(new LazyIterator(fn () => $this->searchInDirectory($dir)))); + } + + foreach ($this->iterators as $it) { + $iterator->append($it); + } + + if ($this->sort || $this->reverseSorting) { + $iterator = (new Iterator\SortableIterator($iterator, $this->sort, $this->reverseSorting))->getIterator(); + } + + return $iterator; + } + + /** + * Appends an existing set of files/directories to the finder. + * + * The set can be another Finder, an Iterator, an IteratorAggregate, or even a plain array. + * + * @return $this + * + * @throws \InvalidArgumentException when the given argument is not iterable + */ + public function append(iterable $iterator): static + { + if ($iterator instanceof \IteratorAggregate) { + $this->iterators[] = $iterator->getIterator(); + } elseif ($iterator instanceof \Iterator) { + $this->iterators[] = $iterator; + } elseif (is_iterable($iterator)) { + $it = new \ArrayIterator(); + foreach ($iterator as $file) { + $file = $file instanceof \SplFileInfo ? $file : new \SplFileInfo($file); + $it[$file->getPathname()] = $file; + } + $this->iterators[] = $it; + } else { + throw new \InvalidArgumentException('Finder::append() method wrong argument type.'); + } + + return $this; + } + + /** + * Check if any results were found. + */ + public function hasResults(): bool + { + foreach ($this->getIterator() as $_) { + return true; + } + + return false; + } + + /** + * Counts all the results collected by the iterators. + */ + public function count(): int + { + return iterator_count($this->getIterator()); + } + + private function searchInDirectory(string $dir): \Iterator + { + $exclude = $this->exclude; + $notPaths = $this->notPaths; + + if (static::IGNORE_VCS_FILES === (static::IGNORE_VCS_FILES & $this->ignore)) { + $exclude = array_merge($exclude, self::$vcsPatterns); + } + + if (static::IGNORE_DOT_FILES === (static::IGNORE_DOT_FILES & $this->ignore)) { + $notPaths[] = '#(^|/)\..+(/|$)#'; + } + + $minDepth = 0; + $maxDepth = \PHP_INT_MAX; + + foreach ($this->depths as $comparator) { + switch ($comparator->getOperator()) { + case '>': + $minDepth = $comparator->getTarget() + 1; + break; + case '>=': + $minDepth = $comparator->getTarget(); + break; + case '<': + $maxDepth = $comparator->getTarget() - 1; + break; + case '<=': + $maxDepth = $comparator->getTarget(); + break; + default: + $minDepth = $maxDepth = $comparator->getTarget(); + } + } + + $flags = \RecursiveDirectoryIterator::SKIP_DOTS; + + if ($this->followLinks) { + $flags |= \RecursiveDirectoryIterator::FOLLOW_SYMLINKS; + } + + $iterator = new Iterator\RecursiveDirectoryIterator($dir, $flags, $this->ignoreUnreadableDirs); + + if ($exclude) { + $iterator = new Iterator\ExcludeDirectoryFilterIterator($iterator, $exclude); + } + + $iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::SELF_FIRST); + + if ($minDepth > 0 || $maxDepth < \PHP_INT_MAX) { + $iterator = new Iterator\DepthRangeFilterIterator($iterator, $minDepth, $maxDepth); + } + + if ($this->mode) { + $iterator = new Iterator\FileTypeFilterIterator($iterator, $this->mode); + } + + if ($this->names || $this->notNames) { + $iterator = new Iterator\FilenameFilterIterator($iterator, $this->names, $this->notNames); + } + + if ($this->contains || $this->notContains) { + $iterator = new Iterator\FilecontentFilterIterator($iterator, $this->contains, $this->notContains); + } + + if ($this->sizes) { + $iterator = new Iterator\SizeRangeFilterIterator($iterator, $this->sizes); + } + + if ($this->dates) { + $iterator = new Iterator\DateRangeFilterIterator($iterator, $this->dates); + } + + if ($this->filters) { + $iterator = new Iterator\CustomFilterIterator($iterator, $this->filters); + } + + if ($this->paths || $notPaths) { + $iterator = new Iterator\PathFilterIterator($iterator, $this->paths, $notPaths); + } + + if (static::IGNORE_VCS_IGNORED_FILES === (static::IGNORE_VCS_IGNORED_FILES & $this->ignore)) { + $iterator = new Iterator\VcsIgnoredFilterIterator($iterator, $dir); + } + + return $iterator; + } + + /** + * Normalizes given directory names by removing trailing slashes. + * + * Excluding: (s)ftp:// or ssh2.(s)ftp:// wrapper + */ + private function normalizeDir(string $dir): string + { + if ('/' === $dir) { + return $dir; + } + + $dir = rtrim($dir, '/'.\DIRECTORY_SEPARATOR); + + if (preg_match('#^(ssh2\.)?s?ftp://#', $dir)) { + $dir .= '/'; + } + + return $dir; + } +} diff --git a/vendor/composer/200a40ea/symfony-finder-a1b31d8/Gitignore.php b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Gitignore.php new file mode 100644 index 000000000..bf05c5b37 --- /dev/null +++ b/vendor/composer/200a40ea/symfony-finder-a1b31d8/Gitignore.php @@ -0,0 +1,91 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Finder; + +/** + * Gitignore matches against text. + * + * @author Michael Voříšek + * @author Ahmed Abdou + */ +class Gitignore +{ + /** + * Returns a regexp which is the equivalent of the gitignore pattern. + * + * Format specification: https://git-scm.com/docs/gitignore#_pattern_format + */ + public static function toRegex(string $gitignoreFileContent): string + { + return self::buildRegex($gitignoreFileContent, false); + } + + public static function toRegexMatchingNegatedPatterns(string $gitignoreFileContent): string + { + return self::buildRegex($gitignoreFileContent, true); + } + + private static function buildRegex(string $gitignoreFileContent, bool $inverted): string + { + $gitignoreFileContent = preg_replace('~(? '['.('' !== $matches[1] ? '^' : '').str_replace('\\-', '-', $matches[2]).']', $regex); + $regex = preg_replace('~(?:(?:\\\\\*){2,}(/?))+~', '(?:(?:(?!//).(?setExtraAttributes` not working with buffering handler wrappers (#1781) + +### 3.2.0 (2022-07-24) + + * Deprecated `CubeHandler` and `PHPConsoleHandler` as both projects are abandoned and those should not be used anymore (#1734) + * Marked `Logger` `@final` as it should not be extended, prefer composition or talk to us if you are missing something + * Added RFC 5424 level (`7` to `0`) support to `Logger::log` and `Logger::addRecord` to increase interoperability (#1723) + * Added `SyslogFormatter` to output syslog-like files which can be consumed by tools like [lnav](https://lnav.org/) (#1689) + * Added support for `__toString` for objects which are not json serializable in `JsonFormatter` (#1733) + * Added `GoogleCloudLoggingFormatter` (#1719) + * Added support for Predis 2.x (#1732) + * Added `AmqpHandler->setExtraAttributes` to allow configuring attributes when using an AMQPExchange (#1724) + * Fixed serialization/unserialization of handlers to make sure private properties are included (#1727) + * Fixed allowInlineLineBreaks in LineFormatter causing issues with windows paths containing `\n` or `\r` sequences (#1720) + * Fixed max normalization depth not being taken into account when formatting exceptions with a deep chain of previous exceptions (#1726) + * Fixed PHP 8.2 deprecation warnings (#1722) + * Fixed rare race condition or filesystem issue where StreamHandler is unable to create the directory the log should go into yet it exists already (#1678) + +### 3.1.0 (2022-06-09) + + * Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future (#1682) + * Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks (#1681) + * Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#1670) + * Fixed interop issue by removing the need for a return type in ProcessorInterface (#1680) + * Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though (#1677) + * Fixed RotatingFileHandler issue when the date format contained slashes (#1671) + +### 3.0.0 (2022-05-10) + +Changes from RC1 + +- The `Monolog\LevelName` enum does not exist anymore, use `Monolog\Level->getName()` instead. + +### 3.0.0-RC1 (2022-05-08) + +This is mostly a cleanup release offering stronger type guarantees for integrators with the +array->object/enum changes, but there is no big new feature for end users. + +See [UPGRADE notes](UPGRADE.md#300) for details on all breaking changes especially if you are extending/implementing Monolog classes/interfaces. + +Noteworthy BC Breaks: + +- The minimum supported PHP version is now `8.1.0`. +- Log records have been converted from an array to a [`Monolog\LogRecord` object](src/Monolog/LogRecord.php) + with public (and mostly readonly) properties. e.g. instead of doing + `$record['context']` use `$record->context`. + In formatters or handlers if you rather need an array to work with you can use `$record->toArray()` + to get back a Monolog 1/2 style record array. This will contain the enum values instead of enum cases + in the `level` and `level_name` keys to be more backwards compatible and use simpler data types. +- `FormatterInterface`, `HandlerInterface`, `ProcessorInterface`, etc. changed to contain `LogRecord $record` + instead of `array $record` parameter types. If you want to support multiple Monolog versions this should + be possible by type-hinting nothing, or `array|LogRecord` if you support PHP 8.0+. You can then code + against the $record using Monolog 2 style as LogRecord implements ArrayAccess for BC. + The interfaces do not require a `LogRecord` return type even where it would be applicable, but if you only + support Monolog 3 in integration code I would recommend you use `LogRecord` return types wherever fitting + to ensure forward compatibility as it may be added in Monolog 4. +- Log levels are now enums [`Monolog\Level`](src/Monolog/Level.php) and [`Monolog\LevelName`](src/Monolog/LevelName.php) +- Removed deprecated SwiftMailerHandler, migrate to SymfonyMailerHandler instead. +- `ResettableInterface::reset()` now requires a void return type. +- All properties have had types added, which may require you to do so as well if you extended + a Monolog class and declared the same property. + +New deprecations: + +- `Logger::DEBUG`, `Logger::ERROR`, etc. are now deprecated in favor of the `Monolog\Level` enum. + e.g. instead of `Logger::WARNING` use `Level::Warning` if you need to pass the enum case + to Monolog or one of its handlers, or `Level::Warning->value` if you need the integer + value equal to what `Logger::WARNING` was giving you. +- `Logger::getLevelName()` is now deprecated. + +### 2.9.2 (2023-10-27) + + * Fixed display_errors parsing in ErrorHandler which did not support string values (#1804) + * Fixed bug where the previous error handler would not be restored in some cases where StreamHandler fails (#1815) + * Fixed normalization error when normalizing incomplete classes (#1833) + +### 2.9.1 (2023-02-06) + + * Fixed Logger not being serializable anymore (#1792) + +### 2.9.0 (2023-02-05) + + * Deprecated FlowdockHandler & Formatter as the flowdock service was shutdown (#1748) + * Added support for enum context values in PsrLogMessageProcessor (#1773) + * Added graylog2/gelf-php 2.x support (#1747) + * Improved `BrowserConsoleHandler` logging to use more appropriate methods than just console.log in the browser (#1739) + * Fixed `WhatFailureGroupHandler` not catching errors happening inside `close()` (#1791) + * Fixed datetime field in `GoogleCloudLoggingFormatter` (#1758) + * Fixed infinite loop detection within Fibers (#1753) + * Fixed `AmqpHandler->setExtraAttributes` not working with buffering handler wrappers (#1781) + +### 2.8.0 (2022-07-24) + + * Deprecated `CubeHandler` and `PHPConsoleHandler` as both projects are abandoned and those should not be used anymore (#1734) + * Added RFC 5424 level (`7` to `0`) support to `Logger::log` and `Logger::addRecord` to increase interoperability (#1723) + * Added support for `__toString` for objects which are not json serializable in `JsonFormatter` (#1733) + * Added `GoogleCloudLoggingFormatter` (#1719) + * Added support for Predis 2.x (#1732) + * Added `AmqpHandler->setExtraAttributes` to allow configuring attributes when using an AMQPExchange (#1724) + * Fixed serialization/unserialization of handlers to make sure private properties are included (#1727) + * Fixed allowInlineLineBreaks in LineFormatter causing issues with windows paths containing `\n` or `\r` sequences (#1720) + * Fixed max normalization depth not being taken into account when formatting exceptions with a deep chain of previous exceptions (#1726) + * Fixed PHP 8.2 deprecation warnings (#1722) + * Fixed rare race condition or filesystem issue where StreamHandler is unable to create the directory the log should go into yet it exists already (#1678) + +### 2.7.0 (2022-06-09) + + * Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future (#1682) + * Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks (#1681) + * Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#1670) + * Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though (#1677) + * Fixed RotatingFileHandler issue when the date format contained slashes (#1671) + +### 2.6.0 (2022-05-10) + + * Deprecated `SwiftMailerHandler`, use `SymfonyMailerHandler` instead + * Added `SymfonyMailerHandler` (#1663) + * Added ElasticSearch 8.x support to the ElasticsearchHandler (#1662) + * Added a way to filter/modify stack traces in LineFormatter (#1665) + * Fixed UdpSocket not being able to reopen/reconnect after close() + * Fixed infinite loops if a Handler is triggering logging while handling log records + +### 2.5.0 (2022-04-08) + + * Added `callType` to IntrospectionProcessor (#1612) + * Fixed AsMonologProcessor syntax to be compatible with PHP 7.2 (#1651) + +### 2.4.0 (2022-03-14) + + * Added [`Monolog\LogRecord`](src/Monolog/LogRecord.php) interface that can be used to type-hint records like `array|\Monolog\LogRecord $record` to be forward compatible with the upcoming Monolog 3 changes + * Added `includeStacktraces` constructor params to LineFormatter & JsonFormatter (#1603) + * Added `persistent`, `timeout`, `writingTimeout`, `connectionTimeout`, `chunkSize` constructor params to SocketHandler and derivatives (#1600) + * Added `AsMonologProcessor` PHP attribute which can help autowiring / autoconfiguration of processors if frameworks / integrations decide to make use of it. This is useless when used purely with Monolog (#1637) + * Added support for keeping native BSON types as is in MongoDBFormatter (#1620) + * Added support for a `user_agent` key in WebProcessor, disabled by default but you can use it by configuring the $extraFields you want (#1613) + * Added support for username/userIcon in SlackWebhookHandler (#1617) + * Added extension points to BrowserConsoleHandler (#1593) + * Added record message/context/extra info to exceptions thrown when a StreamHandler cannot open its stream to avoid completely losing the data logged (#1630) + * Fixed error handler signature to accept a null $context which happens with internal PHP errors (#1614) + * Fixed a few setter methods not returning `self` (#1609) + * Fixed handling of records going over the max Telegram message length (#1616) + +### 2.3.5 (2021-10-01) + + * Fixed regression in StreamHandler since 2.3.3 on systems with the memory_limit set to >=20GB (#1592) + +### 2.3.4 (2021-09-15) + + * Fixed support for psr/log 3.x (#1589) + +### 2.3.3 (2021-09-14) + + * Fixed memory usage when using StreamHandler and calling stream_get_contents on the resource you passed to it (#1578, #1577) + * Fixed support for psr/log 2.x (#1587) + * Fixed some type annotations + +### 2.3.2 (2021-07-23) + + * Fixed compatibility with PHP 7.2 - 7.4 when experiencing PCRE errors (#1568) + +### 2.3.1 (2021-07-14) + + * Fixed Utils::getClass handling of anonymous classes not being fully compatible with PHP 8 (#1563) + * Fixed some `@inheritDoc` annotations having the wrong case + +### 2.3.0 (2021-07-05) + + * Added a ton of PHPStan type annotations as well as type aliases on Monolog\Logger for Record, Level and LevelName that you can import (#1557) + * Added ability to customize date format when using JsonFormatter (#1561) + * Fixed FilterHandler not calling reset on its internal handler when reset() is called on it (#1531) + * Fixed SyslogUdpHandler not setting the timezone correctly on DateTimeImmutable instances (#1540) + * Fixed StreamHandler thread safety - chunk size set to 2GB now to avoid interlacing when doing concurrent writes (#1553) + +### 2.2.0 (2020-12-14) + + * Added JSON_PARTIAL_OUTPUT_ON_ERROR to default json encoding flags, to avoid dropping entire context data or even records due to an invalid subset of it somewhere + * Added setDateFormat to NormalizerFormatter (and Line/Json formatters by extension) to allow changing this after object creation + * Added RedisPubSubHandler to log records to a Redis channel using PUBLISH + * Added support for Elastica 7, and deprecated the $type argument of ElasticaFormatter which is not in use anymore as of Elastica 7 + * Added support for millisecond write timeouts in SocketHandler, you can now pass floats to setWritingTimeout, e.g. 0.2 is 200ms + * Added support for unix sockets in SyslogUdpHandler (set $port to 0 to make the $host a unix socket) + * Added handleBatch support for TelegramBotHandler + * Added RFC5424e extended date format including milliseconds to SyslogUdpHandler + * Added support for configuring handlers with numeric level values in strings (coming from e.g. env vars) + * Fixed Wildfire/FirePHP/ChromePHP handling of unicode characters + * Fixed PHP 8 issues in SyslogUdpHandler + * Fixed internal type error when mbstring is missing + +### 2.1.1 (2020-07-23) + + * Fixed removing of json encoding options + * Fixed type hint of $level not accepting strings in SendGridHandler and OverflowHandler + * Fixed SwiftMailerHandler not accepting email templates with an empty subject + * Fixed array access on null in RavenHandler + * Fixed unique_id in WebProcessor not being disableable + +### 2.1.0 (2020-05-22) + + * Added `JSON_INVALID_UTF8_SUBSTITUTE` to default json flags, so that invalid UTF8 characters now get converted to [�](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character) instead of being converted from ISO-8859-15 to UTF8 as it was before, which was hardly a comprehensive solution + * Added `$ignoreEmptyContextAndExtra` option to JsonFormatter to skip empty context/extra entirely from the output + * Added `$parseMode`, `$disableWebPagePreview` and `$disableNotification` options to TelegramBotHandler + * Added tentative support for PHP 8 + * NormalizerFormatter::addJsonEncodeOption and removeJsonEncodeOption are now public to allow modifying default json flags + * Fixed GitProcessor type error when there is no git repo present + * Fixed normalization of SoapFault objects containing deeply nested objects as "detail" + * Fixed support for relative paths in RotatingFileHandler + +### 2.0.2 (2019-12-20) + + * Fixed ElasticsearchHandler swallowing exceptions details when failing to index log records + * Fixed normalization of SoapFault objects containing non-strings as "detail" in LineFormatter + * Fixed formatting of resources in JsonFormatter + * Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services) + * Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it + * Fixed Turkish locale messing up the conversion of level names to their constant values + +### 2.0.1 (2019-11-13) + + * Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable + * Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler, OverflowHandler and SamplingHandler + * Fixed BrowserConsoleHandler formatting when using multiple styles + * Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings + * Fixed normalization of SoapFault objects containing non-strings as "detail" + * Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding + * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB). + * Fixed type error in BrowserConsoleHandler when the context array of log records was not associative. + +### 2.0.0 (2019-08-30) + + * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release + * BC Break: Logger methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types + * Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it + * Fixed support for UTF-8 when cutting strings to avoid cutting a multibyte-character in half + * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases + * Fixed date timezone handling in SyslogUdpHandler + +### 2.0.0-beta2 (2019-07-06) + + * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release + * BC Break: PHP 7.2 is now the minimum required PHP version. + * BC Break: Removed SlackbotHandler, RavenHandler and HipChatHandler, see [UPGRADE.md](UPGRADE.md) for details + * Added OverflowHandler which will only flush log records to its nested handler when reaching a certain amount of logs (i.e. only pass through when things go really bad) + * Added TelegramBotHandler to log records to a [Telegram](https://core.telegram.org/bots/api) bot account + * Added support for JsonSerializable when normalizing exceptions + * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler + * Added SoapFault details to formatted exceptions + * Fixed DeduplicationHandler silently failing to start when file could not be opened + * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records + * Fixed GelfFormatter losing some data when one attachment was too long + * Fixed issue in SignalHandler restarting syscalls functionality + * Improved performance of LogglyHandler when sending multiple logs in a single request + +### 2.0.0-beta1 (2018-12-08) + + * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release + * BC Break: PHP 7.1 is now the minimum required PHP version. + * BC Break: Quite a few interface changes, only relevant if you implemented your own handlers/processors/formatters + * BC Break: Removed non-PSR-3 methods to add records, all the `add*` (e.g. `addWarning`) methods as well as `emerg`, `crit`, `err` and `warn` + * BC Break: The record timezone is now set per Logger instance and not statically anymore + * BC Break: There is no more default handler configured on empty Logger instances + * BC Break: ElasticSearchHandler renamed to ElasticaHandler + * BC Break: Various handler-specific breaks, see [UPGRADE.md](UPGRADE.md) for details + * Added scalar type hints and return hints in all the places it was possible. Switched strict_types on for more reliability. + * Added DateTimeImmutable support, all record datetime are now immutable, and will toString/json serialize with the correct date format, including microseconds (unless disabled) + * Added timezone and microseconds to the default date format + * Added SendGridHandler to use the SendGrid API to send emails + * Added LogmaticHandler to use the Logmatic.io API to store log records + * Added SqsHandler to send log records to an AWS SQS queue + * Added ElasticsearchHandler to send records via the official ES library. Elastica users should now use ElasticaHandler instead of ElasticSearchHandler + * Added NoopHandler which is similar to the NullHandle but does not prevent the bubbling of log records to handlers further down the configuration, useful for temporarily disabling a handler in configuration files + * Added ProcessHandler to write log output to the STDIN of a given process + * Added HostnameProcessor that adds the machine's hostname to log records + * Added a `$dateFormat` option to the PsrLogMessageProcessor which lets you format DateTime instances nicely + * Added support for the PHP 7.x `mongodb` extension in the MongoDBHandler + * Fixed many minor issues in various handlers, and probably added a few regressions too + +### 1.26.1 (2021-05-28) + + * Fixed PHP 8.1 deprecation warning + +### 1.26.0 (2020-12-14) + + * Added $dateFormat and $removeUsedContextFields arguments to PsrLogMessageProcessor (backport from 2.x) + +### 1.25.5 (2020-07-23) + + * Fixed array access on null in RavenHandler + * Fixed unique_id in WebProcessor not being disableable + +### 1.25.4 (2020-05-22) + + * Fixed GitProcessor type error when there is no git repo present + * Fixed normalization of SoapFault objects containing deeply nested objects as "detail" + * Fixed support for relative paths in RotatingFileHandler + +### 1.25.3 (2019-12-20) + + * Fixed formatting of resources in JsonFormatter + * Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services) + * Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it + * Fixed Turkish locale messing up the conversion of level names to their constant values + +### 1.25.2 (2019-11-13) + + * Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable + * Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler and SamplingHandler + * Fixed BrowserConsoleHandler formatting when using multiple styles + * Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings + * Fixed normalization of SoapFault objects containing non-strings as "detail" + * Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding + +### 1.25.1 (2019-09-06) + + * Fixed forward-compatible interfaces to be compatible with Monolog 1.x too. + +### 1.25.0 (2019-09-06) + + * Deprecated SlackbotHandler, use SlackWebhookHandler or SlackHandler instead + * Deprecated RavenHandler, use sentry/sentry 2.x and their Sentry\Monolog\Handler instead + * Deprecated HipChatHandler, migrate to Slack and use SlackWebhookHandler or SlackHandler instead + * Added forward-compatible interfaces and traits FormattableHandlerInterface, FormattableHandlerTrait, ProcessableHandlerInterface, ProcessableHandlerTrait. If you use modern PHP and want to make code compatible with Monolog 1 and 2 this can help. You will have to require at least Monolog 1.25 though. + * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler + * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records + * Fixed issue in SignalHandler restarting syscalls functionality + * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases + * Fixed ZendMonitorHandler to work with the latest Zend Server versions + * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB). + +### 1.24.0 (2018-11-05) + + * BC Notice: If you are extending any of the Monolog's Formatters' `normalize` method, make sure you add the new `$depth = 0` argument to your function signature to avoid strict PHP warnings. + * Added a `ResettableInterface` in order to reset/reset/clear/flush handlers and processors + * Added a `ProcessorInterface` as an optional way to label a class as being a processor (mostly useful for autowiring dependency containers) + * Added a way to log signals being received using Monolog\SignalHandler + * Added ability to customize error handling at the Logger level using Logger::setExceptionHandler + * Added InsightOpsHandler to migrate users of the LogEntriesHandler + * Added protection to NormalizerFormatter against circular and very deep structures, it now stops normalizing at a depth of 9 + * Added capture of stack traces to ErrorHandler when logging PHP errors + * Added RavenHandler support for a `contexts` context or extra key to forward that to Sentry's contexts + * Added forwarding of context info to FluentdFormatter + * Added SocketHandler::setChunkSize to override the default chunk size in case you must send large log lines to rsyslog for example + * Added ability to extend/override BrowserConsoleHandler + * Added SlackWebhookHandler::getWebhookUrl and SlackHandler::getToken to enable class extensibility + * Added SwiftMailerHandler::getSubjectFormatter to enable class extensibility + * Dropped official support for HHVM in test builds + * Fixed normalization of exception traces when call_user_func is used to avoid serializing objects and the data they contain + * Fixed naming of fields in Slack handler, all field names are now capitalized in all cases + * Fixed HipChatHandler bug where slack dropped messages randomly + * Fixed normalization of objects in Slack handlers + * Fixed support for PHP7's Throwable in NewRelicHandler + * Fixed race bug when StreamHandler sometimes incorrectly reported it failed to create a directory + * Fixed table row styling issues in HtmlFormatter + * Fixed RavenHandler dropping the message when logging exception + * Fixed WhatFailureGroupHandler skipping processors when using handleBatch + and implement it where possible + * Fixed display of anonymous class names + +### 1.23.0 (2017-06-19) + + * Improved SyslogUdpHandler's support for RFC5424 and added optional `$ident` argument + * Fixed GelfHandler truncation to be per field and not per message + * Fixed compatibility issue with PHP <5.3.6 + * Fixed support for headless Chrome in ChromePHPHandler + * Fixed support for latest Aws SDK in DynamoDbHandler + * Fixed support for SwiftMailer 6.0+ in SwiftMailerHandler + +### 1.22.1 (2017-03-13) + + * Fixed lots of minor issues in the new Slack integrations + * Fixed support for allowInlineLineBreaks in LineFormatter when formatting exception backtraces + +### 1.22.0 (2016-11-26) + + * Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily + * Added MercurialProcessor to add mercurial revision and branch names to log records + * Added support for AWS SDK v3 in DynamoDbHandler + * Fixed fatal errors occurring when normalizing generators that have been fully consumed + * Fixed RollbarHandler to include a level (rollbar level), monolog_level (original name), channel and datetime (unix) + * Fixed RollbarHandler not flushing records automatically, calling close() explicitly is not necessary anymore + * Fixed SyslogUdpHandler to avoid sending empty frames + * Fixed a few PHP 7.0 and 7.1 compatibility issues + +### 1.21.0 (2016-07-29) + + * Break: Reverted the addition of $context when the ErrorHandler handles regular php errors from 1.20.0 as it was causing issues + * Added support for more formats in RotatingFileHandler::setFilenameFormat as long as they have Y, m and d in order + * Added ability to format the main line of text the SlackHandler sends by explicitly setting a formatter on the handler + * Added information about SoapFault instances in NormalizerFormatter + * Added $handleOnlyReportedErrors option on ErrorHandler::registerErrorHandler (default true) to allow logging of all errors no matter the error_reporting level + +### 1.20.0 (2016-07-02) + + * Added FingersCrossedHandler::activate() to manually trigger the handler regardless of the activation policy + * Added StreamHandler::getUrl to retrieve the stream's URL + * Added ability to override addRow/addTitle in HtmlFormatter + * Added the $context to context information when the ErrorHandler handles a regular php error + * Deprecated RotatingFileHandler::setFilenameFormat to only support 3 formats: Y, Y-m and Y-m-d + * Fixed WhatFailureGroupHandler to work with PHP7 throwables + * Fixed a few minor bugs + +### 1.19.0 (2016-04-12) + + * Break: StreamHandler will not close streams automatically that it does not own. If you pass in a stream (not a path/url), then it will not close it for you. You can retrieve those using getStream() if needed + * Added DeduplicationHandler to remove duplicate records from notifications across multiple requests, useful for email or other notifications on errors + * Added ability to use `%message%` and other LineFormatter replacements in the subject line of emails sent with NativeMailHandler and SwiftMailerHandler + * Fixed HipChatHandler handling of long messages + +### 1.18.2 (2016-04-02) + + * Fixed ElasticaFormatter to use more precise dates + * Fixed GelfMessageFormatter sending too long messages + +### 1.18.1 (2016-03-13) + + * Fixed SlackHandler bug where slack dropped messages randomly + * Fixed RedisHandler issue when using with the PHPRedis extension + * Fixed AmqpHandler content-type being incorrectly set when using with the AMQP extension + * Fixed BrowserConsoleHandler regression + +### 1.18.0 (2016-03-01) + + * Added optional reduction of timestamp precision via `Logger->useMicrosecondTimestamps(false)`, disabling it gets you a bit of performance boost but reduces the precision to the second instead of microsecond + * Added possibility to skip some extra stack frames in IntrospectionProcessor if you have some library wrapping Monolog that is always adding frames + * Added `Logger->withName` to clone a logger (keeping all handlers) with a new name + * Added FluentdFormatter for the Fluentd unix socket protocol + * Added HandlerWrapper base class to ease the creation of handler wrappers, just extend it and override as needed + * Added support for replacing context sub-keys using `%context.*%` in LineFormatter + * Added support for `payload` context value in RollbarHandler + * Added setRelease to RavenHandler to describe the application version, sent with every log + * Added support for `fingerprint` context value in RavenHandler + * Fixed JSON encoding errors that would gobble up the whole log record, we now handle those more gracefully by dropping chars as needed + * Fixed write timeouts in SocketHandler and derivatives, set to 10sec by default, lower it with `setWritingTimeout()` + * Fixed PHP7 compatibility with regard to Exception/Throwable handling in a few places + +### 1.17.2 (2015-10-14) + + * Fixed ErrorHandler compatibility with non-Monolog PSR-3 loggers + * Fixed SlackHandler handling to use slack functionalities better + * Fixed SwiftMailerHandler bug when sending multiple emails they all had the same id + * Fixed 5.3 compatibility regression + +### 1.17.1 (2015-08-31) + + * Fixed RollbarHandler triggering PHP notices + +### 1.17.0 (2015-08-30) + + * Added support for `checksum` and `release` context/extra values in RavenHandler + * Added better support for exceptions in RollbarHandler + * Added UidProcessor::getUid + * Added support for showing the resource type in NormalizedFormatter + * Fixed IntrospectionProcessor triggering PHP notices + +### 1.16.0 (2015-08-09) + + * Added IFTTTHandler to notify ifttt.com triggers + * Added Logger::setHandlers() to allow setting/replacing all handlers + * Added $capSize in RedisHandler to cap the log size + * Fixed StreamHandler creation of directory to only trigger when the first log write happens + * Fixed bug in the handling of curl failures + * Fixed duplicate logging of fatal errors when both error and fatal error handlers are registered in monolog's ErrorHandler + * Fixed missing fatal errors records with handlers that need to be closed to flush log records + * Fixed TagProcessor::addTags support for associative arrays + +### 1.15.0 (2015-07-12) + + * Added addTags and setTags methods to change a TagProcessor + * Added automatic creation of directories if they are missing for a StreamHandler to open a log file + * Added retry functionality to Loggly, Cube and Mandrill handlers so they retry up to 5 times in case of network failure + * Fixed process exit code being incorrectly reset to 0 if ErrorHandler::registerExceptionHandler was used + * Fixed HTML/JS escaping in BrowserConsoleHandler + * Fixed JSON encoding errors being silently suppressed (PHP 5.5+ only) + +### 1.14.0 (2015-06-19) + + * Added PHPConsoleHandler to send record to Chrome's PHP Console extension and library + * Added support for objects implementing __toString in the NormalizerFormatter + * Added support for HipChat's v2 API in HipChatHandler + * Added Logger::setTimezone() to initialize the timezone monolog should use in case date.timezone isn't correct for your app + * Added an option to send formatted message instead of the raw record on PushoverHandler via ->useFormattedMessage(true) + * Fixed curl errors being silently suppressed + +### 1.13.1 (2015-03-09) + + * Fixed regression in HipChat requiring a new token to be created + +### 1.13.0 (2015-03-05) + + * Added Registry::hasLogger to check for the presence of a logger instance + * Added context.user support to RavenHandler + * Added HipChat API v2 support in the HipChatHandler + * Added NativeMailerHandler::addParameter to pass params to the mail() process + * Added context data to SlackHandler when $includeContextAndExtra is true + * Added ability to customize the Swift_Message per-email in SwiftMailerHandler + * Fixed SwiftMailerHandler to lazily create message instances if a callback is provided + * Fixed serialization of INF and NaN values in Normalizer and LineFormatter + +### 1.12.0 (2014-12-29) + + * Break: HandlerInterface::isHandling now receives a partial record containing only a level key. This was always the intent and does not break any Monolog handler but is strictly speaking a BC break and you should check if you relied on any other field in your own handlers. + * Added PsrHandler to forward records to another PSR-3 logger + * Added SamplingHandler to wrap around a handler and include only every Nth record + * Added MongoDBFormatter to support better storage with MongoDBHandler (it must be enabled manually for now) + * Added exception codes in the output of most formatters + * Added LineFormatter::includeStacktraces to enable exception stack traces in logs (uses more than one line) + * Added $useShortAttachment to SlackHandler to minify attachment size and $includeExtra to append extra data + * Added $host to HipChatHandler for users of private instances + * Added $transactionName to NewRelicHandler and support for a transaction_name context value + * Fixed MandrillHandler to avoid outputting API call responses + * Fixed some non-standard behaviors in SyslogUdpHandler + +### 1.11.0 (2014-09-30) + + * Break: The NewRelicHandler extra and context data are now prefixed with extra_ and context_ to avoid clashes. Watch out if you have scripts reading those from the API and rely on names + * Added WhatFailureGroupHandler to suppress any exception coming from the wrapped handlers and avoid chain failures if a logging service fails + * Added MandrillHandler to send emails via the Mandrillapp.com API + * Added SlackHandler to log records to a Slack.com account + * Added FleepHookHandler to log records to a Fleep.io account + * Added LogglyHandler::addTag to allow adding tags to an existing handler + * Added $ignoreEmptyContextAndExtra to LineFormatter to avoid empty [] at the end + * Added $useLocking to StreamHandler and RotatingFileHandler to enable flock() while writing + * Added support for PhpAmqpLib in the AmqpHandler + * Added FingersCrossedHandler::clear and BufferHandler::clear to reset them between batches in long running jobs + * Added support for adding extra fields from $_SERVER in the WebProcessor + * Fixed support for non-string values in PrsLogMessageProcessor + * Fixed SwiftMailer messages being sent with the wrong date in long running scripts + * Fixed minor PHP 5.6 compatibility issues + * Fixed BufferHandler::close being called twice + +### 1.10.0 (2014-06-04) + + * Added Logger::getHandlers() and Logger::getProcessors() methods + * Added $passthruLevel argument to FingersCrossedHandler to let it always pass some records through even if the trigger level is not reached + * Added support for extra data in NewRelicHandler + * Added $expandNewlines flag to the ErrorLogHandler to create multiple log entries when a message has multiple lines + +### 1.9.1 (2014-04-24) + + * Fixed regression in RotatingFileHandler file permissions + * Fixed initialization of the BufferHandler to make sure it gets flushed after receiving records + * Fixed ChromePHPHandler and FirePHPHandler's activation strategies to be more conservative + +### 1.9.0 (2014-04-20) + + * Added LogEntriesHandler to send logs to a LogEntries account + * Added $filePermissions to tweak file mode on StreamHandler and RotatingFileHandler + * Added $useFormatting flag to MemoryProcessor to make it send raw data in bytes + * Added support for table formatting in FirePHPHandler via the table context key + * Added a TagProcessor to add tags to records, and support for tags in RavenHandler + * Added $appendNewline flag to the JsonFormatter to enable using it when logging to files + * Added sound support to the PushoverHandler + * Fixed multi-threading support in StreamHandler + * Fixed empty headers issue when ChromePHPHandler received no records + * Fixed default format of the ErrorLogHandler + +### 1.8.0 (2014-03-23) + + * Break: the LineFormatter now strips newlines by default because this was a bug, set $allowInlineLineBreaks to true if you need them + * Added BrowserConsoleHandler to send logs to any browser's console via console.log() injection in the output + * Added FilterHandler to filter records and only allow those of a given list of levels through to the wrapped handler + * Added FlowdockHandler to send logs to a Flowdock account + * Added RollbarHandler to send logs to a Rollbar account + * Added HtmlFormatter to send prettier log emails with colors for each log level + * Added GitProcessor to add the current branch/commit to extra record data + * Added a Monolog\Registry class to allow easier global access to pre-configured loggers + * Added support for the new official graylog2/gelf-php lib for GelfHandler, upgrade if you can by replacing the mlehner/gelf-php requirement + * Added support for HHVM + * Added support for Loggly batch uploads + * Added support for tweaking the content type and encoding in NativeMailerHandler + * Added $skipClassesPartials to tweak the ignored classes in the IntrospectionProcessor + * Fixed batch request support in GelfHandler + +### 1.7.0 (2013-11-14) + + * Added ElasticSearchHandler to send logs to an Elastic Search server + * Added DynamoDbHandler and ScalarFormatter to send logs to Amazon's Dynamo DB + * Added SyslogUdpHandler to send logs to a remote syslogd server + * Added LogglyHandler to send logs to a Loggly account + * Added $level to IntrospectionProcessor so it only adds backtraces when needed + * Added $version to LogstashFormatter to allow using the new v1 Logstash format + * Added $appName to NewRelicHandler + * Added configuration of Pushover notification retries/expiry + * Added $maxColumnWidth to NativeMailerHandler to change the 70 chars default + * Added chainability to most setters for all handlers + * Fixed RavenHandler batch processing so it takes the message from the record with highest priority + * Fixed HipChatHandler batch processing so it sends all messages at once + * Fixed issues with eAccelerator + * Fixed and improved many small things + +### 1.6.0 (2013-07-29) + + * Added HipChatHandler to send logs to a HipChat chat room + * Added ErrorLogHandler to send logs to PHP's error_log function + * Added NewRelicHandler to send logs to NewRelic's service + * Added Monolog\ErrorHandler helper class to register a Logger as exception/error/fatal handler + * Added ChannelLevelActivationStrategy for the FingersCrossedHandler to customize levels by channel + * Added stack traces output when normalizing exceptions (json output & co) + * Added Monolog\Logger::API constant (currently 1) + * Added support for ChromePHP's v4.0 extension + * Added support for message priorities in PushoverHandler, see $highPriorityLevel and $emergencyLevel + * Added support for sending messages to multiple users at once with the PushoverHandler + * Fixed RavenHandler's support for batch sending of messages (when behind a Buffer or FingersCrossedHandler) + * Fixed normalization of Traversables with very large data sets, only the first 1000 items are shown now + * Fixed issue in RotatingFileHandler when an open_basedir restriction is active + * Fixed minor issues in RavenHandler and bumped the API to Raven 0.5.0 + * Fixed SyslogHandler issue when many were used concurrently with different facilities + +### 1.5.0 (2013-04-23) + + * Added ProcessIdProcessor to inject the PID in log records + * Added UidProcessor to inject a unique identifier to all log records of one request/run + * Added support for previous exceptions in the LineFormatter exception serialization + * Added Monolog\Logger::getLevels() to get all available levels + * Fixed ChromePHPHandler so it avoids sending headers larger than Chrome can handle + +### 1.4.1 (2013-04-01) + + * Fixed exception formatting in the LineFormatter to be more minimalistic + * Fixed RavenHandler's handling of context/extra data, requires Raven client >0.1.0 + * Fixed log rotation in RotatingFileHandler to work with long running scripts spanning multiple days + * Fixed WebProcessor array access so it checks for data presence + * Fixed Buffer, Group and FingersCrossed handlers to make use of their processors + +### 1.4.0 (2013-02-13) + + * Added RedisHandler to log to Redis via the Predis library or the phpredis extension + * Added ZendMonitorHandler to log to the Zend Server monitor + * Added the possibility to pass arrays of handlers and processors directly in the Logger constructor + * Added `$useSSL` option to the PushoverHandler which is enabled by default + * Fixed ChromePHPHandler and FirePHPHandler issue when multiple instances are used simultaneously + * Fixed header injection capability in the NativeMailHandler + +### 1.3.1 (2013-01-11) + + * Fixed LogstashFormatter to be usable with stream handlers + * Fixed GelfMessageFormatter levels on Windows + +### 1.3.0 (2013-01-08) + + * Added PSR-3 compliance, the `Monolog\Logger` class is now an instance of `Psr\Log\LoggerInterface` + * Added PsrLogMessageProcessor that you can selectively enable for full PSR-3 compliance + * Added LogstashFormatter (combine with SocketHandler or StreamHandler to send logs to Logstash) + * Added PushoverHandler to send mobile notifications + * Added CouchDBHandler and DoctrineCouchDBHandler + * Added RavenHandler to send data to Sentry servers + * Added support for the new MongoClient class in MongoDBHandler + * Added microsecond precision to log records' timestamps + * Added `$flushOnOverflow` param to BufferHandler to flush by batches instead of losing + the oldest entries + * Fixed normalization of objects with cyclic references + +### 1.2.1 (2012-08-29) + + * Added new $logopts arg to SyslogHandler to provide custom openlog options + * Fixed fatal error in SyslogHandler + +### 1.2.0 (2012-08-18) + + * Added AmqpHandler (for use with AMQP servers) + * Added CubeHandler + * Added NativeMailerHandler::addHeader() to send custom headers in mails + * Added the possibility to specify more than one recipient in NativeMailerHandler + * Added the possibility to specify float timeouts in SocketHandler + * Added NOTICE and EMERGENCY levels to conform with RFC 5424 + * Fixed the log records to use the php default timezone instead of UTC + * Fixed BufferHandler not being flushed properly on PHP fatal errors + * Fixed normalization of exotic resource types + * Fixed the default format of the SyslogHandler to avoid duplicating datetimes in syslog + +### 1.1.0 (2012-04-23) + + * Added Monolog\Logger::isHandling() to check if a handler will + handle the given log level + * Added ChromePHPHandler + * Added MongoDBHandler + * Added GelfHandler (for use with Graylog2 servers) + * Added SocketHandler (for use with syslog-ng for example) + * Added NormalizerFormatter + * Added the possibility to change the activation strategy of the FingersCrossedHandler + * Added possibility to show microseconds in logs + * Added `server` and `referer` to WebProcessor output + +### 1.0.2 (2011-10-24) + + * Fixed bug in IE with large response headers and FirePHPHandler + +### 1.0.1 (2011-08-25) + + * Added MemoryPeakUsageProcessor and MemoryUsageProcessor + * Added Monolog\Logger::getName() to get a logger's channel name + +### 1.0.0 (2011-07-06) + + * Added IntrospectionProcessor to get info from where the logger was called + * Fixed WebProcessor in CLI + +### 1.0.0-RC1 (2011-07-01) + + * Initial release diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/LICENSE b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/LICENSE new file mode 100644 index 000000000..aa2a0426c --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011-2020 Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/README.md b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/README.md new file mode 100644 index 000000000..d7151de4f --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/README.md @@ -0,0 +1,120 @@ +![Monolog](logo.jpg) + +# Monolog - Logging for PHP [![Continuous Integration](https://github.com/Seldaek/monolog/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/Seldaek/monolog/actions) + +[![Total Downloads](https://img.shields.io/packagist/dt/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog) +[![Latest Stable Version](https://img.shields.io/packagist/v/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog) + +>**Note** This is the **documentation for Monolog 3.x**, if you are using older releases +>see the documentation for [Monolog 2.x](https://github.com/Seldaek/monolog/blob/2.x/README.md) or [Monolog 1.x](https://github.com/Seldaek/monolog/blob/1.x/README.md) + +Monolog sends your logs to files, sockets, inboxes, databases and various +web services. See the complete list of handlers below. Special handlers +allow you to build advanced logging strategies. + +This library implements the [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) +interface that you can type-hint against in your own libraries to keep +a maximum of interoperability. You can also use it in your applications to +make sure you can always use another compatible logger at a later time. +As of 1.11.0 Monolog public APIs will also accept PSR-3 log levels. +Internally Monolog still uses its own level scheme since it predates PSR-3. + +## Installation + +Install the latest version with + +```bash +$ composer require monolog/monolog +``` + +## Basic Usage + +```php +pushHandler(new StreamHandler('path/to/your.log', Level::Warning)); + +// add records to the log +$log->warning('Foo'); +$log->error('Bar'); +``` + +## Documentation + +- [Usage Instructions](doc/01-usage.md) +- [Handlers, Formatters and Processors](doc/02-handlers-formatters-processors.md) +- [Utility Classes](doc/03-utilities.md) +- [Extending Monolog](doc/04-extending.md) +- [Log Record Structure](doc/message-structure.md) + +## Support Monolog Financially + +Get supported Monolog and help fund the project with the [Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-monolog-monolog?utm_source=packagist-monolog-monolog&utm_medium=referral&utm_campaign=enterprise) or via [GitHub sponsorship](https://github.com/sponsors/Seldaek). + +Tidelift delivers commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. + +## Third Party Packages + +Third party handlers, formatters and processors are +[listed in the wiki](https://github.com/Seldaek/monolog/wiki/Third-Party-Packages). You +can also add your own there if you publish one. + +## About + +### Requirements + +- Monolog `^3.0` works with PHP 8.1 or above. +- Monolog `^2.5` works with PHP 7.2 or above. +- Monolog `^1.25` works with PHP 5.3 up to 8.1, but is not very maintained anymore and will not receive PHP support fixes anymore. + +### Support + +Monolog 1.x support is somewhat limited at this point and only important fixes will be done. You should migrate to Monolog 2 or 3 where possible to benefit from all the latest features and fixes. + +### Submitting bugs and feature requests + +Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/monolog/issues) + +### Framework Integrations + +- Frameworks and libraries using [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) + can be used very easily with Monolog since it implements the interface. +- [Symfony](http://symfony.com) comes out of the box with Monolog. +- [Laravel](http://laravel.com/) comes out of the box with Monolog. +- [Lumen](http://lumen.laravel.com/) comes out of the box with Monolog. +- [PPI](https://github.com/ppi/framework) comes out of the box with Monolog. +- [CakePHP](http://cakephp.org/) is usable with Monolog via the [cakephp-monolog](https://github.com/jadb/cakephp-monolog) plugin. +- [Slim](http://www.slimframework.com/) is usable with Monolog via the [Slim-Monolog](https://github.com/Flynsarmy/Slim-Monolog) log writer. +- [XOOPS 2.6](http://xoops.org/) comes out of the box with Monolog. +- [Aura.Web_Project](https://github.com/auraphp/Aura.Web_Project) comes out of the box with Monolog. +- [Nette Framework](http://nette.org/en/) is usable with Monolog via the [contributte/monolog](https://github.com/contributte/monolog) or [orisai/nette-monolog](https://github.com/orisai/nette-monolog) extensions. +- [Proton Micro Framework](https://github.com/alexbilbie/Proton) comes out of the box with Monolog. +- [FuelPHP](http://fuelphp.com/) comes out of the box with Monolog. +- [Equip Framework](https://github.com/equip/framework) comes out of the box with Monolog. +- [Yii 2](http://www.yiiframework.com/) is usable with Monolog via the [yii2-monolog](https://github.com/merorafael/yii2-monolog) or [yii2-psr-log-target](https://github.com/samdark/yii2-psr-log-target) plugins. +- [Hawkbit Micro Framework](https://github.com/HawkBitPhp/hawkbit) comes out of the box with Monolog. +- [SilverStripe 4](https://www.silverstripe.org/) comes out of the box with Monolog. +- [Drupal](https://www.drupal.org/) is usable with Monolog via the [monolog](https://www.drupal.org/project/monolog) module. +- [Aimeos ecommerce framework](https://aimeos.org/) is usable with Monolog via the [ai-monolog](https://github.com/aimeos/ai-monolog) extension. +- [Magento](https://magento.com/) comes out of the box with Monolog. +- [Spiral Framework](https://spiral.dev) comes out of the box with Monolog bridge. + +### Author + +Jordi Boggiano - -
+See also the list of [contributors](https://github.com/Seldaek/monolog/contributors) who participated in this project. + +### License + +Monolog is licensed under the MIT License - see the [LICENSE](LICENSE) file for details + +### Acknowledgements + +This library is heavily inspired by Python's [Logbook](https://logbook.readthedocs.io/en/stable/) +library, although most concepts have been adjusted to fit to the PHP world. diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/composer.json b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/composer.json new file mode 100644 index 000000000..4ccd07211 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/composer.json @@ -0,0 +1,77 @@ +{ + "name": "monolog/monolog", + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "keywords": ["log", "logging", "psr-3"], + "homepage": "https://github.com/Seldaek/monolog", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "require-dev": { + "ext-json": "*", + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.4", + "phpunit/phpunit": "^10.1", + "predis/predis": "^1.1 || ^2", + "ruflin/elastica": "^7", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-openssl": "Required to send log messages using SSL" + }, + "autoload": { + "psr-4": {"Monolog\\": "src/Monolog"} + }, + "autoload-dev": { + "psr-4": {"Monolog\\": "tests/Monolog"} + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "scripts": { + "test": "@php vendor/bin/phpunit", + "phpstan": "@php vendor/bin/phpstan analyse" + }, + "config": { + "lock": false, + "sort-packages": true, + "platform-check": false + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/favicon.ico b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/favicon.ico new file mode 100644 index 000000000..a36dc176c Binary files /dev/null and b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/favicon.ico differ diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/logo.jpg b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/logo.jpg new file mode 100644 index 000000000..333234a7e Binary files /dev/null and b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/logo.jpg differ diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Attribute/AsMonologProcessor.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Attribute/AsMonologProcessor.php new file mode 100644 index 000000000..c519e0537 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Attribute/AsMonologProcessor.php @@ -0,0 +1,38 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Attribute; + +/** + * A reusable attribute to help configure a class or a method as a processor. + * + * Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer. + * + * Using it with the Monolog library only has no effect at all: processors should still be turned into a callable if + * needed and manually pushed to the loggers and to the processable handlers. + */ +#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] +class AsMonologProcessor +{ + /** + * @param string|null $channel The logging channel the processor should be pushed to. + * @param string|null $handler The handler the processor should be pushed to. + * @param string|null $method The method that processes the records (if the attribute is used at the class level). + * @param int|null $priority The priority of the processor so the order can be determined. + */ + public function __construct( + public readonly ?string $channel = null, + public readonly ?string $handler = null, + public readonly ?string $method = null, + public readonly ?int $priority = null + ) { + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Attribute/WithMonologChannel.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Attribute/WithMonologChannel.php new file mode 100644 index 000000000..862e05b33 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Attribute/WithMonologChannel.php @@ -0,0 +1,29 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Attribute; + +/** + * A reusable attribute to help configure a class as expecting a given logger channel. + * + * Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer. + * + * Using it with the Monolog library only has no effect at all: wiring the logger instance into + * other classes is not managed by Monolog. + */ +#[\Attribute(\Attribute::TARGET_CLASS)] +final class WithMonologChannel +{ + public function __construct( + public readonly string $channel + ) { + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/DateTimeImmutable.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/DateTimeImmutable.php new file mode 100644 index 000000000..274b73ea1 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/DateTimeImmutable.php @@ -0,0 +1,46 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use DateTimeZone; + +/** + * Overrides default json encoding of date time objects + * + * @author Menno Holtkamp + * @author Jordi Boggiano + */ +class DateTimeImmutable extends \DateTimeImmutable implements \JsonSerializable +{ + private bool $useMicroseconds; + + public function __construct(bool $useMicroseconds, ?DateTimeZone $timezone = null) + { + $this->useMicroseconds = $useMicroseconds; + + parent::__construct('now', $timezone); + } + + public function jsonSerialize(): string + { + if ($this->useMicroseconds) { + return $this->format('Y-m-d\TH:i:s.uP'); + } + + return $this->format('Y-m-d\TH:i:sP'); + } + + public function __toString(): string + { + return $this->jsonSerialize(); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/ErrorHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/ErrorHandler.php new file mode 100644 index 000000000..08d414b34 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/ErrorHandler.php @@ -0,0 +1,279 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use Closure; +use Psr\Log\LoggerInterface; +use Psr\Log\LogLevel; + +/** + * Monolog error handler + * + * A facility to enable logging of runtime errors, exceptions and fatal errors. + * + * Quick setup: ErrorHandler::register($logger); + * + * @author Jordi Boggiano + */ +class ErrorHandler +{ + private Closure|null $previousExceptionHandler = null; + + /** @var array an array of class name to LogLevel::* constant mapping */ + private array $uncaughtExceptionLevelMap = []; + + /** @var Closure|true|null */ + private Closure|bool|null $previousErrorHandler = null; + + /** @var array an array of E_* constant to LogLevel::* constant mapping */ + private array $errorLevelMap = []; + + private bool $handleOnlyReportedErrors = true; + + private bool $hasFatalErrorHandler = false; + + private string $fatalLevel = LogLevel::ALERT; + + private string|null $reservedMemory = null; + + /** @var ?array{type: int, message: string, file: string, line: int, trace: mixed} */ + private array|null $lastFatalData = null; + + private const FATAL_ERRORS = [E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR]; + + public function __construct( + private LoggerInterface $logger + ) { + } + + /** + * Registers a new ErrorHandler for a given Logger + * + * By default it will handle errors, exceptions and fatal errors + * + * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling + * @param array|false $exceptionLevelMap an array of class name to LogLevel::* constant mapping, or false to disable exception handling + * @param LogLevel::*|null|false $fatalLevel a LogLevel::* constant, null to use the default LogLevel::ALERT or false to disable fatal error handling + * @return static + */ + public static function register(LoggerInterface $logger, $errorLevelMap = [], $exceptionLevelMap = [], $fatalLevel = null): self + { + /** @phpstan-ignore-next-line */ + $handler = new static($logger); + if ($errorLevelMap !== false) { + $handler->registerErrorHandler($errorLevelMap); + } + if ($exceptionLevelMap !== false) { + $handler->registerExceptionHandler($exceptionLevelMap); + } + if ($fatalLevel !== false) { + $handler->registerFatalHandler($fatalLevel); + } + + return $handler; + } + + /** + * @param array $levelMap an array of class name to LogLevel::* constant mapping + * @return $this + */ + public function registerExceptionHandler(array $levelMap = [], bool $callPrevious = true): self + { + $prev = set_exception_handler(function (\Throwable $e): void { + $this->handleException($e); + }); + $this->uncaughtExceptionLevelMap = $levelMap; + foreach ($this->defaultExceptionLevelMap() as $class => $level) { + if (!isset($this->uncaughtExceptionLevelMap[$class])) { + $this->uncaughtExceptionLevelMap[$class] = $level; + } + } + if ($callPrevious && null !== $prev) { + $this->previousExceptionHandler = $prev(...); + } + + return $this; + } + + /** + * @param array $levelMap an array of E_* constant to LogLevel::* constant mapping + * @return $this + */ + public function registerErrorHandler(array $levelMap = [], bool $callPrevious = true, int $errorTypes = -1, bool $handleOnlyReportedErrors = true): self + { + $prev = set_error_handler($this->handleError(...), $errorTypes); + $this->errorLevelMap = array_replace($this->defaultErrorLevelMap(), $levelMap); + if ($callPrevious) { + $this->previousErrorHandler = $prev !== null ? $prev(...) : true; + } else { + $this->previousErrorHandler = null; + } + + $this->handleOnlyReportedErrors = $handleOnlyReportedErrors; + + return $this; + } + + /** + * @param LogLevel::*|null $level a LogLevel::* constant, null to use the default LogLevel::ALERT + * @param int $reservedMemorySize Amount of KBs to reserve in memory so that it can be freed when handling fatal errors giving Monolog some room in memory to get its job done + * @return $this + */ + public function registerFatalHandler($level = null, int $reservedMemorySize = 20): self + { + register_shutdown_function($this->handleFatalError(...)); + + $this->reservedMemory = str_repeat(' ', 1024 * $reservedMemorySize); + $this->fatalLevel = null === $level ? LogLevel::ALERT : $level; + $this->hasFatalErrorHandler = true; + + return $this; + } + + /** + * @return array + */ + protected function defaultExceptionLevelMap(): array + { + return [ + 'ParseError' => LogLevel::CRITICAL, + 'Throwable' => LogLevel::ERROR, + ]; + } + + /** + * @return array + */ + protected function defaultErrorLevelMap(): array + { + return [ + E_ERROR => LogLevel::CRITICAL, + E_WARNING => LogLevel::WARNING, + E_PARSE => LogLevel::ALERT, + E_NOTICE => LogLevel::NOTICE, + E_CORE_ERROR => LogLevel::CRITICAL, + E_CORE_WARNING => LogLevel::WARNING, + E_COMPILE_ERROR => LogLevel::ALERT, + E_COMPILE_WARNING => LogLevel::WARNING, + E_USER_ERROR => LogLevel::ERROR, + E_USER_WARNING => LogLevel::WARNING, + E_USER_NOTICE => LogLevel::NOTICE, + E_STRICT => LogLevel::NOTICE, + E_RECOVERABLE_ERROR => LogLevel::ERROR, + E_DEPRECATED => LogLevel::NOTICE, + E_USER_DEPRECATED => LogLevel::NOTICE, + ]; + } + + private function handleException(\Throwable $e): never + { + $level = LogLevel::ERROR; + foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) { + if ($e instanceof $class) { + $level = $candidate; + break; + } + } + + $this->logger->log( + $level, + sprintf('Uncaught Exception %s: "%s" at %s line %s', Utils::getClass($e), $e->getMessage(), $e->getFile(), $e->getLine()), + ['exception' => $e] + ); + + if (null !== $this->previousExceptionHandler) { + ($this->previousExceptionHandler)($e); + } + + if (!headers_sent() && in_array(strtolower((string) ini_get('display_errors')), ['0', '', 'false', 'off', 'none', 'no'], true)) { + http_response_code(500); + } + + exit(255); + } + + private function handleError(int $code, string $message, string $file = '', int $line = 0): bool + { + if ($this->handleOnlyReportedErrors && 0 === (error_reporting() & $code)) { + return false; + } + + // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries + if (!$this->hasFatalErrorHandler || !in_array($code, self::FATAL_ERRORS, true)) { + $level = $this->errorLevelMap[$code] ?? LogLevel::CRITICAL; + $this->logger->log($level, self::codeToString($code).': '.$message, ['code' => $code, 'message' => $message, 'file' => $file, 'line' => $line]); + } else { + $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); + array_shift($trace); // Exclude handleError from trace + $this->lastFatalData = ['type' => $code, 'message' => $message, 'file' => $file, 'line' => $line, 'trace' => $trace]; + } + + if ($this->previousErrorHandler === true) { + return false; + } + if ($this->previousErrorHandler instanceof Closure) { + return (bool) ($this->previousErrorHandler)($code, $message, $file, $line); + } + + return true; + } + + /** + * @private + */ + public function handleFatalError(): void + { + $this->reservedMemory = ''; + + if (is_array($this->lastFatalData)) { + $lastError = $this->lastFatalData; + } else { + $lastError = error_get_last(); + } + if (is_array($lastError) && in_array($lastError['type'], self::FATAL_ERRORS, true)) { + $trace = $lastError['trace'] ?? null; + $this->logger->log( + $this->fatalLevel, + 'Fatal Error ('.self::codeToString($lastError['type']).'): '.$lastError['message'], + ['code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'], 'trace' => $trace] + ); + + if ($this->logger instanceof Logger) { + foreach ($this->logger->getHandlers() as $handler) { + $handler->close(); + } + } + } + } + + private static function codeToString(int $code): string + { + return match ($code) { + E_ERROR => 'E_ERROR', + E_WARNING => 'E_WARNING', + E_PARSE => 'E_PARSE', + E_NOTICE => 'E_NOTICE', + E_CORE_ERROR => 'E_CORE_ERROR', + E_CORE_WARNING => 'E_CORE_WARNING', + E_COMPILE_ERROR => 'E_COMPILE_ERROR', + E_COMPILE_WARNING => 'E_COMPILE_WARNING', + E_USER_ERROR => 'E_USER_ERROR', + E_USER_WARNING => 'E_USER_WARNING', + E_USER_NOTICE => 'E_USER_NOTICE', + E_STRICT => 'E_STRICT', + E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', + E_DEPRECATED => 'E_DEPRECATED', + E_USER_DEPRECATED => 'E_USER_DEPRECATED', + default => 'Unknown PHP error', + }; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ChromePHPFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ChromePHPFormatter.php new file mode 100644 index 000000000..3f1d45829 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ChromePHPFormatter.php @@ -0,0 +1,87 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Formats a log message according to the ChromePHP array format + * + * @author Christophe Coevoet + */ +class ChromePHPFormatter implements FormatterInterface +{ + /** + * Translates Monolog log levels to Wildfire levels. + * + * @return 'log'|'info'|'warn'|'error' + */ + private function toWildfireLevel(Level $level): string + { + return match ($level) { + Level::Debug => 'log', + Level::Info => 'info', + Level::Notice => 'info', + Level::Warning => 'warn', + Level::Error => 'error', + Level::Critical => 'error', + Level::Alert => 'error', + Level::Emergency => 'error', + }; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + // Retrieve the line and file if set and remove them from the formatted extra + $backtrace = 'unknown'; + if (isset($record->extra['file'], $record->extra['line'])) { + $backtrace = $record->extra['file'].' : '.$record->extra['line']; + unset($record->extra['file'], $record->extra['line']); + } + + $message = ['message' => $record->message]; + if (\count($record->context) > 0) { + $message['context'] = $record->context; + } + if (\count($record->extra) > 0) { + $message['extra'] = $record->extra; + } + if (count($message) === 1) { + $message = reset($message); + } + + return [ + $record->channel, + $message, + $backtrace, + $this->toWildfireLevel($record->level), + ]; + } + + /** + * @inheritDoc + */ + public function formatBatch(array $records) + { + $formatted = []; + + foreach ($records as $record) { + $formatted[] = $this->format($record); + } + + return $formatted; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ElasticaFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ElasticaFormatter.php new file mode 100644 index 000000000..8c92eff22 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ElasticaFormatter.php @@ -0,0 +1,89 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Elastica\Document; +use Monolog\LogRecord; + +/** + * Format a log message into an Elastica Document + * + * @author Jelle Vink + */ +class ElasticaFormatter extends NormalizerFormatter +{ + /** + * @var string Elastic search index name + */ + protected string $index; + + /** + * @var string|null Elastic search document type + */ + protected string|null $type; + + /** + * @param string $index Elastic Search index name + * @param ?string $type Elastic Search document type, deprecated as of Elastica 7 + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(string $index, ?string $type) + { + // elasticsearch requires a ISO 8601 format date with optional millisecond precision. + parent::__construct('Y-m-d\TH:i:s.uP'); + + $this->index = $index; + $this->type = $type; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + $record = parent::format($record); + + return $this->getDocument($record); + } + + public function getIndex(): string + { + return $this->index; + } + + /** + * @deprecated since Elastica 7 type has no effect + */ + public function getType(): string + { + /** @phpstan-ignore-next-line */ + return $this->type; + } + + /** + * Convert a log message into an Elastica Document + * + * @param mixed[] $record + */ + protected function getDocument(array $record): Document + { + $document = new Document(); + $document->setData($record); + if (method_exists($document, 'setType')) { + $document->setType($this->type); + } + $document->setIndex($this->index); + + return $document; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ElasticsearchFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ElasticsearchFormatter.php new file mode 100644 index 000000000..b38aca079 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ElasticsearchFormatter.php @@ -0,0 +1,88 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use DateTimeInterface; +use Monolog\LogRecord; + +/** + * Format a log message into an Elasticsearch record + * + * @author Avtandil Kikabidze + */ +class ElasticsearchFormatter extends NormalizerFormatter +{ + /** + * @var string Elasticsearch index name + */ + protected string $index; + + /** + * @var string Elasticsearch record type + */ + protected string $type; + + /** + * @param string $index Elasticsearch index name + * @param string $type Elasticsearch record type + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(string $index, string $type) + { + // Elasticsearch requires an ISO 8601 format date with optional millisecond precision. + parent::__construct(DateTimeInterface::ISO8601); + + $this->index = $index; + $this->type = $type; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + $record = parent::format($record); + + return $this->getDocument($record); + } + + /** + * Getter index + */ + public function getIndex(): string + { + return $this->index; + } + + /** + * Getter type + */ + public function getType(): string + { + return $this->type; + } + + /** + * Convert a log message into an Elasticsearch record + * + * @param mixed[] $record Log message + * @return mixed[] + */ + protected function getDocument(array $record): array + { + $record['_index'] = $this->index; + $record['_type'] = $this->type; + + return $record; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FlowdockFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FlowdockFormatter.php new file mode 100644 index 000000000..c64da7c06 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FlowdockFormatter.php @@ -0,0 +1,106 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * formats the record to be used in the FlowdockHandler + * + * @author Dominik Liebler + * @deprecated Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 + */ +class FlowdockFormatter implements FormatterInterface +{ + private string $source; + + private string $sourceEmail; + + public function __construct(string $source, string $sourceEmail) + { + $this->source = $source; + $this->sourceEmail = $sourceEmail; + } + + /** + * @inheritDoc + * + * @return mixed[] + */ + public function format(LogRecord $record): array + { + $tags = [ + '#logs', + '#' . $record->level->toPsrLogLevel(), + '#' . $record->channel, + ]; + + foreach ($record->extra as $value) { + $tags[] = '#' . $value; + } + + $subject = sprintf( + 'in %s: %s - %s', + $this->source, + $record->level->getName(), + $this->getShortMessage($record->message) + ); + + return [ + 'source' => $this->source, + 'from_address' => $this->sourceEmail, + 'subject' => $subject, + 'content' => $record->message, + 'tags' => $tags, + 'project' => $this->source, + ]; + } + + /** + * @inheritDoc + * + * @return mixed[][] + */ + public function formatBatch(array $records): array + { + $formatted = []; + + foreach ($records as $record) { + $formatted[] = $this->format($record); + } + + return $formatted; + } + + public function getShortMessage(string $message): string + { + static $hasMbString; + + if (null === $hasMbString) { + $hasMbString = function_exists('mb_strlen'); + } + + $maxLength = 45; + + if ($hasMbString) { + if (mb_strlen($message, 'UTF-8') > $maxLength) { + $message = mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...'; + } + } else { + if (strlen($message) > $maxLength) { + $message = substr($message, 0, $maxLength - 4) . ' ...'; + } + } + + return $message; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FluentdFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FluentdFormatter.php new file mode 100644 index 000000000..04495a614 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FluentdFormatter.php @@ -0,0 +1,92 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Class FluentdFormatter + * + * Serializes a log message to Fluentd unix socket protocol + * + * Fluentd config: + * + * + * type unix + * path /var/run/td-agent/td-agent.sock + * + * + * Monolog setup: + * + * $logger = new Monolog\Logger('fluent.tag'); + * $fluentHandler = new Monolog\Handler\SocketHandler('unix:///var/run/td-agent/td-agent.sock'); + * $fluentHandler->setFormatter(new Monolog\Formatter\FluentdFormatter()); + * $logger->pushHandler($fluentHandler); + * + * @author Andrius Putna + */ +class FluentdFormatter implements FormatterInterface +{ + /** + * @var bool $levelTag should message level be a part of the fluentd tag + */ + protected bool $levelTag = false; + + /** + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(bool $levelTag = false) + { + if (!function_exists('json_encode')) { + throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s FluentdUnixFormatter'); + } + + $this->levelTag = $levelTag; + } + + public function isUsingLevelsInTag(): bool + { + return $this->levelTag; + } + + public function format(LogRecord $record): string + { + $tag = $record->channel; + if ($this->levelTag) { + $tag .= '.' . $record->level->toPsrLogLevel(); + } + + $message = [ + 'message' => $record->message, + 'context' => $record->context, + 'extra' => $record->extra, + ]; + + if (!$this->levelTag) { + $message['level'] = $record->level->value; + $message['level_name'] = $record->level->getName(); + } + + return Utils::jsonEncode([$tag, $record->datetime->getTimestamp(), $message]); + } + + public function formatBatch(array $records): string + { + $message = ''; + foreach ($records as $record) { + $message .= $this->format($record); + } + + return $message; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FormatterInterface.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FormatterInterface.php new file mode 100644 index 000000000..3413a4b05 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/FormatterInterface.php @@ -0,0 +1,38 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Interface for formatters + * + * @author Jordi Boggiano + */ +interface FormatterInterface +{ + /** + * Formats a log record. + * + * @param LogRecord $record A record to format + * @return mixed The formatted record + */ + public function format(LogRecord $record); + + /** + * Formats a set of log records. + * + * @param array $records A set of records to format + * @return mixed The formatted set of records + */ + public function formatBatch(array $records); +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/GelfMessageFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/GelfMessageFormatter.php new file mode 100644 index 000000000..96cb60ffe --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/GelfMessageFormatter.php @@ -0,0 +1,148 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Gelf\Message; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Serializes a log message to GELF + * @see http://docs.graylog.org/en/latest/pages/gelf.html + * + * @author Matt Lehner + */ +class GelfMessageFormatter extends NormalizerFormatter +{ + protected const DEFAULT_MAX_LENGTH = 32766; + + /** + * @var string the name of the system for the Gelf log message + */ + protected string $systemName; + + /** + * @var string a prefix for 'extra' fields from the Monolog record (optional) + */ + protected string $extraPrefix; + + /** + * @var string a prefix for 'context' fields from the Monolog record (optional) + */ + protected string $contextPrefix; + + /** + * @var int max length per field + */ + protected int $maxLength; + + /** + * Translates Monolog log levels to Graylog2 log priorities. + */ + private function getGraylog2Priority(Level $level): int + { + return match ($level) { + Level::Debug => 7, + Level::Info => 6, + Level::Notice => 5, + Level::Warning => 4, + Level::Error => 3, + Level::Critical => 2, + Level::Alert => 1, + Level::Emergency => 0, + }; + } + + /** + * @throws \RuntimeException + */ + public function __construct(?string $systemName = null, ?string $extraPrefix = null, string $contextPrefix = 'ctxt_', ?int $maxLength = null) + { + if (!class_exists(Message::class)) { + throw new \RuntimeException('Composer package graylog2/gelf-php is required to use Monolog\'s GelfMessageFormatter'); + } + + parent::__construct('U.u'); + + $this->systemName = (null === $systemName || $systemName === '') ? (string) gethostname() : $systemName; + + $this->extraPrefix = null === $extraPrefix ? '' : $extraPrefix; + $this->contextPrefix = $contextPrefix; + $this->maxLength = null === $maxLength ? self::DEFAULT_MAX_LENGTH : $maxLength; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): Message + { + $context = $extra = []; + if (isset($record->context)) { + /** @var mixed[] $context */ + $context = parent::normalize($record->context); + } + if (isset($record->extra)) { + /** @var mixed[] $extra */ + $extra = parent::normalize($record->extra); + } + + $message = new Message(); + $message + ->setTimestamp($record->datetime) + ->setShortMessage($record->message) + ->setHost($this->systemName) + ->setLevel($this->getGraylog2Priority($record->level)); + + // message length + system name length + 200 for padding / metadata + $len = 200 + strlen($record->message) + strlen($this->systemName); + + if ($len > $this->maxLength) { + $message->setShortMessage(Utils::substr($record->message, 0, $this->maxLength)); + } + + if (isset($record->channel)) { + $message->setAdditional('facility', $record->channel); + } + + foreach ($extra as $key => $val) { + $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); + $len = strlen($this->extraPrefix . $key . $val); + if ($len > $this->maxLength) { + $message->setAdditional($this->extraPrefix . $key, Utils::substr((string) $val, 0, $this->maxLength)); + + continue; + } + $message->setAdditional($this->extraPrefix . $key, $val); + } + + foreach ($context as $key => $val) { + $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); + $len = strlen($this->contextPrefix . $key . $val); + if ($len > $this->maxLength) { + $message->setAdditional($this->contextPrefix . $key, Utils::substr((string) $val, 0, $this->maxLength)); + + continue; + } + $message->setAdditional($this->contextPrefix . $key, $val); + } + + if (!$message->hasAdditional('file') && isset($context['exception']['file'])) { + if (1 === preg_match("/^(.+):([0-9]+)$/", $context['exception']['file'], $matches)) { + $message->setAdditional('file', $matches[1]); + $message->setAdditional('line', $matches[2]); + } + } + + return $message; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php new file mode 100644 index 000000000..ea555d4de --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php @@ -0,0 +1,40 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use DateTimeInterface; +use Monolog\LogRecord; + +/** + * Encodes message information into JSON in a format compatible with Cloud logging. + * + * @see https://cloud.google.com/logging/docs/structured-logging + * @see https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry + * + * @author Luís Cobucci + */ +final class GoogleCloudLoggingFormatter extends JsonFormatter +{ + protected function normalizeRecord(LogRecord $record): array + { + $normalized = parent::normalizeRecord($record); + + // Re-key level for GCP logging + $normalized['severity'] = $normalized['level_name']; + $normalized['time'] = $record->datetime->format(DateTimeInterface::RFC3339_EXTENDED); + + // Remove keys that are not used by GCP + unset($normalized['level'], $normalized['level_name'], $normalized['datetime']); + + return $normalized; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/HtmlFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/HtmlFormatter.php new file mode 100644 index 000000000..c316b65ee --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/HtmlFormatter.php @@ -0,0 +1,143 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Formats incoming records into an HTML table + * + * This is especially useful for html email logging + * + * @author Tiago Brito + */ +class HtmlFormatter extends NormalizerFormatter +{ + /** + * Translates Monolog log levels to html color priorities. + */ + protected function getLevelColor(Level $level): string + { + return match ($level) { + Level::Debug => '#CCCCCC', + Level::Info => '#28A745', + Level::Notice => '#17A2B8', + Level::Warning => '#FFC107', + Level::Error => '#FD7E14', + Level::Critical => '#DC3545', + Level::Alert => '#821722', + Level::Emergency => '#000000', + }; + } + + /** + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $dateFormat = null) + { + parent::__construct($dateFormat); + } + + /** + * Creates an HTML table row + * + * @param string $th Row header content + * @param string $td Row standard cell content + * @param bool $escapeTd false if td content must not be html escaped + */ + protected function addRow(string $th, string $td = ' ', bool $escapeTd = true): string + { + $th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8'); + if ($escapeTd) { + $td = '
'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').'
'; + } + + return "\n$th:\n".$td."\n"; + } + + /** + * Create a HTML h1 tag + * + * @param string $title Text to be in the h1 + */ + protected function addTitle(string $title, Level $level): string + { + $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8'); + + return '

'.$title.'

'; + } + + /** + * Formats a log record. + * + * @return string The formatted record + */ + public function format(LogRecord $record): string + { + $output = $this->addTitle($record->level->getName(), $record->level); + $output .= ''; + + $output .= $this->addRow('Message', $record->message); + $output .= $this->addRow('Time', $this->formatDate($record->datetime)); + $output .= $this->addRow('Channel', $record->channel); + if (\count($record->context) > 0) { + $embeddedTable = '
'; + foreach ($record->context as $key => $value) { + $embeddedTable .= $this->addRow((string) $key, $this->convertToString($value)); + } + $embeddedTable .= '
'; + $output .= $this->addRow('Context', $embeddedTable, false); + } + if (\count($record->extra) > 0) { + $embeddedTable = ''; + foreach ($record->extra as $key => $value) { + $embeddedTable .= $this->addRow((string) $key, $this->convertToString($value)); + } + $embeddedTable .= '
'; + $output .= $this->addRow('Extra', $embeddedTable, false); + } + + return $output.''; + } + + /** + * Formats a set of log records. + * + * @return string The formatted set of records + */ + public function formatBatch(array $records): string + { + $message = ''; + foreach ($records as $record) { + $message .= $this->format($record); + } + + return $message; + } + + /** + * @param mixed $data + */ + protected function convertToString($data): string + { + if (null === $data || is_scalar($data)) { + return (string) $data; + } + + $data = $this->normalize($data); + + return Utils::jsonEncode($data, JSON_PRETTY_PRINT | Utils::DEFAULT_JSON_FLAGS, true); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/JsonFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/JsonFormatter.php new file mode 100644 index 000000000..ca3d7d27f --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/JsonFormatter.php @@ -0,0 +1,216 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Stringable; +use Throwable; +use Monolog\LogRecord; + +/** + * Encodes whatever record data is passed to it as json + * + * This can be useful to log to databases or remote APIs + * + * @author Jordi Boggiano + */ +class JsonFormatter extends NormalizerFormatter +{ + public const BATCH_MODE_JSON = 1; + public const BATCH_MODE_NEWLINES = 2; + + /** @var self::BATCH_MODE_* */ + protected int $batchMode; + + protected bool $appendNewline; + + protected bool $ignoreEmptyContextAndExtra; + + protected bool $includeStacktraces = false; + + /** + * @param self::BATCH_MODE_* $batchMode + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(int $batchMode = self::BATCH_MODE_JSON, bool $appendNewline = true, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) + { + $this->batchMode = $batchMode; + $this->appendNewline = $appendNewline; + $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; + $this->includeStacktraces = $includeStacktraces; + + parent::__construct(); + } + + /** + * The batch mode option configures the formatting style for + * multiple records. By default, multiple records will be + * formatted as a JSON-encoded array. However, for + * compatibility with some API endpoints, alternative styles + * are available. + */ + public function getBatchMode(): int + { + return $this->batchMode; + } + + /** + * True if newlines are appended to every formatted record + */ + public function isAppendingNewlines(): bool + { + return $this->appendNewline; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + $normalized = parent::format($record); + + if (isset($normalized['context']) && $normalized['context'] === []) { + if ($this->ignoreEmptyContextAndExtra) { + unset($normalized['context']); + } else { + $normalized['context'] = new \stdClass; + } + } + if (isset($normalized['extra']) && $normalized['extra'] === []) { + if ($this->ignoreEmptyContextAndExtra) { + unset($normalized['extra']); + } else { + $normalized['extra'] = new \stdClass; + } + } + + return $this->toJson($normalized, true) . ($this->appendNewline ? "\n" : ''); + } + + /** + * @inheritDoc + */ + public function formatBatch(array $records): string + { + return match ($this->batchMode) { + static::BATCH_MODE_NEWLINES => $this->formatBatchNewlines($records), + default => $this->formatBatchJson($records), + }; + } + + /** + * @return $this + */ + public function includeStacktraces(bool $include = true): self + { + $this->includeStacktraces = $include; + + return $this; + } + + /** + * Return a JSON-encoded array of records. + * + * @phpstan-param LogRecord[] $records + */ + protected function formatBatchJson(array $records): string + { + return $this->toJson($this->normalize($records), true); + } + + /** + * Use new lines to separate records instead of a + * JSON-encoded array. + * + * @phpstan-param LogRecord[] $records + */ + protected function formatBatchNewlines(array $records): string + { + $oldNewline = $this->appendNewline; + $this->appendNewline = false; + $formatted = array_map(fn (LogRecord $record) => $this->format($record), $records); + $this->appendNewline = $oldNewline; + + return implode("\n", $formatted); + } + + /** + * Normalizes given $data. + * + * @return null|scalar|array|object + */ + protected function normalize(mixed $data, int $depth = 0): mixed + { + if ($depth > $this->maxNormalizeDepth) { + return 'Over '.$this->maxNormalizeDepth.' levels deep, aborting normalization'; + } + + if (is_array($data)) { + $normalized = []; + + $count = 1; + foreach ($data as $key => $value) { + if ($count++ > $this->maxNormalizeItemCount) { + $normalized['...'] = 'Over '.$this->maxNormalizeItemCount.' items ('.count($data).' total), aborting normalization'; + break; + } + + $normalized[$key] = $this->normalize($value, $depth + 1); + } + + return $normalized; + } + + if (is_object($data)) { + if ($data instanceof \DateTimeInterface) { + return $this->formatDate($data); + } + + if ($data instanceof Throwable) { + return $this->normalizeException($data, $depth); + } + + // if the object has specific json serializability we want to make sure we skip the __toString treatment below + if ($data instanceof \JsonSerializable) { + return $data; + } + + if ($data instanceof Stringable) { + return $data->__toString(); + } + + return $data; + } + + if (is_resource($data)) { + return parent::normalize($data); + } + + return $data; + } + + /** + * Normalizes given exception with or without its own stack trace based on + * `includeStacktraces` property. + * + * @inheritDoc + */ + protected function normalizeException(Throwable $e, int $depth = 0): array + { + $data = parent::normalizeException($e, $depth); + if (!$this->includeStacktraces) { + unset($data['trace']); + } + + return $data; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LineFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LineFormatter.php new file mode 100644 index 000000000..025572a5c --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LineFormatter.php @@ -0,0 +1,289 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Closure; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Formats incoming records into a one-line string + * + * This is especially useful for logging to files + * + * @author Jordi Boggiano + * @author Christophe Coevoet + */ +class LineFormatter extends NormalizerFormatter +{ + public const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"; + + protected string $format; + protected bool $allowInlineLineBreaks; + protected bool $ignoreEmptyContextAndExtra; + protected bool $includeStacktraces; + protected ?int $maxLevelNameLength = null; + protected string $indentStacktraces = ''; + protected Closure|null $stacktracesParser = null; + + /** + * @param string|null $format The format of the message + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $format = null, ?string $dateFormat = null, bool $allowInlineLineBreaks = false, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) + { + $this->format = $format === null ? static::SIMPLE_FORMAT : $format; + $this->allowInlineLineBreaks = $allowInlineLineBreaks; + $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; + $this->includeStacktraces($includeStacktraces); + parent::__construct($dateFormat); + } + + /** + * @return $this + */ + public function includeStacktraces(bool $include = true, ?Closure $parser = null): self + { + $this->includeStacktraces = $include; + if ($this->includeStacktraces) { + $this->allowInlineLineBreaks = true; + $this->stacktracesParser = $parser; + } + + return $this; + } + + /** + * Indent stack traces to separate them a bit from the main log record messages + * + * @param string $indent The string used to indent, for example " " + * @return $this + */ + public function indentStacktraces(string $indent): self + { + $this->indentStacktraces = $indent; + + return $this; + } + + /** + * @return $this + */ + public function allowInlineLineBreaks(bool $allow = true): self + { + $this->allowInlineLineBreaks = $allow; + + return $this; + } + + /** + * @return $this + */ + public function ignoreEmptyContextAndExtra(bool $ignore = true): self + { + $this->ignoreEmptyContextAndExtra = $ignore; + + return $this; + } + + /** + * Allows cutting the level name to get fixed-length levels like INF for INFO, ERR for ERROR if you set this to 3 for example + * + * @param int|null $maxLevelNameLength Maximum characters for the level name. Set null for infinite length (default) + * @return $this + */ + public function setMaxLevelNameLength(?int $maxLevelNameLength = null): self + { + $this->maxLevelNameLength = $maxLevelNameLength; + + return $this; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + $vars = parent::format($record); + + if ($this->maxLevelNameLength !== null) { + $vars['level_name'] = substr($vars['level_name'], 0, $this->maxLevelNameLength); + } + + $output = $this->format; + foreach ($vars['extra'] as $var => $val) { + if (false !== strpos($output, '%extra.'.$var.'%')) { + $output = str_replace('%extra.'.$var.'%', $this->stringify($val), $output); + unset($vars['extra'][$var]); + } + } + + foreach ($vars['context'] as $var => $val) { + if (false !== strpos($output, '%context.'.$var.'%')) { + $output = str_replace('%context.'.$var.'%', $this->stringify($val), $output); + unset($vars['context'][$var]); + } + } + + if ($this->ignoreEmptyContextAndExtra) { + if (\count($vars['context']) === 0) { + unset($vars['context']); + $output = str_replace('%context%', '', $output); + } + + if (\count($vars['extra']) === 0) { + unset($vars['extra']); + $output = str_replace('%extra%', '', $output); + } + } + + foreach ($vars as $var => $val) { + if (false !== strpos($output, '%'.$var.'%')) { + $output = str_replace('%'.$var.'%', $this->stringify($val), $output); + } + } + + // remove leftover %extra.xxx% and %context.xxx% if any + if (false !== strpos($output, '%')) { + $output = preg_replace('/%(?:extra|context)\..+?%/', '', $output); + if (null === $output) { + $pcreErrorCode = preg_last_error(); + + throw new \RuntimeException('Failed to run preg_replace: ' . $pcreErrorCode . ' / ' . Utils::pcreLastErrorMessage($pcreErrorCode)); + } + } + + return $output; + } + + public function formatBatch(array $records): string + { + $message = ''; + foreach ($records as $record) { + $message .= $this->format($record); + } + + return $message; + } + + /** + * @param mixed $value + */ + public function stringify($value): string + { + return $this->replaceNewlines($this->convertToString($value)); + } + + protected function normalizeException(\Throwable $e, int $depth = 0): string + { + $str = $this->formatException($e); + + if (($previous = $e->getPrevious()) instanceof \Throwable) { + do { + $depth++; + if ($depth > $this->maxNormalizeDepth) { + $str .= "\n[previous exception] Over " . $this->maxNormalizeDepth . ' levels deep, aborting normalization'; + break; + } + + $str .= "\n[previous exception] " . $this->formatException($previous); + } while ($previous = $previous->getPrevious()); + } + + return $str; + } + + /** + * @param mixed $data + */ + protected function convertToString($data): string + { + if (null === $data || is_bool($data)) { + return var_export($data, true); + } + + if (is_scalar($data)) { + return (string) $data; + } + + return $this->toJson($data, true); + } + + protected function replaceNewlines(string $str): string + { + if ($this->allowInlineLineBreaks) { + if (0 === strpos($str, '{') || 0 === strpos($str, '[')) { + $str = preg_replace('/(?getCode(); + if ($e instanceof \SoapFault) { + if (isset($e->faultcode)) { + $str .= ' faultcode: ' . $e->faultcode; + } + + if (isset($e->faultactor)) { + $str .= ' faultactor: ' . $e->faultactor; + } + + if (isset($e->detail)) { + if (is_string($e->detail)) { + $str .= ' detail: ' . $e->detail; + } elseif (is_object($e->detail) || is_array($e->detail)) { + $str .= ' detail: ' . $this->toJson($e->detail, true); + } + } + } + $str .= '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . ')'; + + if ($this->includeStacktraces) { + $str .= $this->stacktracesParser($e); + } + + return $str; + } + + private function stacktracesParser(\Throwable $e): string + { + $trace = $e->getTraceAsString(); + + if ($this->stacktracesParser !== null) { + $trace = $this->stacktracesParserCustom($trace); + } + + if ($this->indentStacktraces !== '') { + $trace = str_replace("\n", "\n{$this->indentStacktraces}", $trace); + } + + return "\n{$this->indentStacktraces}[stacktrace]\n{$this->indentStacktraces}" . $trace . "\n"; + } + + private function stacktracesParserCustom(string $trace): string + { + return implode("\n", array_filter(array_map($this->stacktracesParser, explode("\n", $trace)))); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogglyFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogglyFormatter.php new file mode 100644 index 000000000..5f0b6a453 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogglyFormatter.php @@ -0,0 +1,47 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Encodes message information into JSON in a format compatible with Loggly. + * + * @author Adam Pancutt + */ +class LogglyFormatter extends JsonFormatter +{ + /** + * Overrides the default batch mode to new lines for compatibility with the + * Loggly bulk API. + */ + public function __construct(int $batchMode = self::BATCH_MODE_NEWLINES, bool $appendNewline = false) + { + parent::__construct($batchMode, $appendNewline); + } + + /** + * Appends the 'timestamp' parameter for indexing by Loggly. + * + * @see https://www.loggly.com/docs/automated-parsing/#json + * @see \Monolog\Formatter\JsonFormatter::format() + */ + protected function normalizeRecord(LogRecord $record): array + { + $recordData = parent::normalizeRecord($record); + + $recordData["timestamp"] = $record->datetime->format("Y-m-d\TH:i:s.uO"); + unset($recordData["datetime"]); + + return $recordData; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogmaticFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogmaticFormatter.php new file mode 100644 index 000000000..9e44c19f4 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogmaticFormatter.php @@ -0,0 +1,70 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Encodes message information into JSON in a format compatible with Logmatic. + * + * @author Julien Breux + */ +class LogmaticFormatter extends JsonFormatter +{ + protected const MARKERS = ["sourcecode", "php"]; + + protected string $hostname = ''; + + protected string $appName = ''; + + /** + * @return $this + */ + public function setHostname(string $hostname): self + { + $this->hostname = $hostname; + + return $this; + } + + /** + * @return $this + */ + public function setAppName(string $appName): self + { + $this->appName = $appName; + + return $this; + } + + /** + * Appends the 'hostname' and 'appname' parameter for indexing by Logmatic. + * + * @see http://doc.logmatic.io/docs/basics-to-send-data + * @see \Monolog\Formatter\JsonFormatter::format() + */ + public function normalizeRecord(LogRecord $record): array + { + $record = parent::normalizeRecord($record); + + if ($this->hostname !== '') { + $record["hostname"] = $this->hostname; + } + if ($this->appName !== '') { + $record["appname"] = $this->appName; + } + + $record["@marker"] = static::MARKERS; + + return $record; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogstashFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogstashFormatter.php new file mode 100644 index 000000000..abee3cd13 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/LogstashFormatter.php @@ -0,0 +1,102 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Serializes a log message to Logstash Event Format + * + * @see https://www.elastic.co/products/logstash + * @see https://github.com/elastic/logstash/blob/master/logstash-core/src/main/java/org/logstash/Event.java + * + * @author Tim Mower + */ +class LogstashFormatter extends NormalizerFormatter +{ + /** + * @var string the name of the system for the Logstash log message, used to fill the @source field + */ + protected string $systemName; + + /** + * @var string an application name for the Logstash log message, used to fill the @type field + */ + protected string $applicationName; + + /** + * @var string the key for 'extra' fields from the Monolog record + */ + protected string $extraKey; + + /** + * @var string the key for 'context' fields from the Monolog record + */ + protected string $contextKey; + + /** + * @param string $applicationName The application that sends the data, used as the "type" field of logstash + * @param string|null $systemName The system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine + * @param string $extraKey The key for extra keys inside logstash "fields", defaults to extra + * @param string $contextKey The key for context keys inside logstash "fields", defaults to context + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(string $applicationName, ?string $systemName = null, string $extraKey = 'extra', string $contextKey = 'context') + { + // logstash requires a ISO 8601 format date with optional millisecond precision. + parent::__construct('Y-m-d\TH:i:s.uP'); + + $this->systemName = $systemName === null ? (string) gethostname() : $systemName; + $this->applicationName = $applicationName; + $this->extraKey = $extraKey; + $this->contextKey = $contextKey; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + $recordData = parent::format($record); + + $message = [ + '@timestamp' => $recordData['datetime'], + '@version' => 1, + 'host' => $this->systemName, + ]; + if (isset($recordData['message'])) { + $message['message'] = $recordData['message']; + } + if (isset($recordData['channel'])) { + $message['type'] = $recordData['channel']; + $message['channel'] = $recordData['channel']; + } + if (isset($recordData['level_name'])) { + $message['level'] = $recordData['level_name']; + } + if (isset($recordData['level'])) { + $message['monolog_level'] = $recordData['level']; + } + if ('' !== $this->applicationName) { + $message['type'] = $this->applicationName; + } + if (\count($recordData['extra']) > 0) { + $message[$this->extraKey] = $recordData['extra']; + } + if (\count($recordData['context']) > 0) { + $message[$this->contextKey] = $recordData['context']; + } + + return $this->toJson($message) . "\n"; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/MongoDBFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/MongoDBFormatter.php new file mode 100644 index 000000000..9b7da8a9c --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/MongoDBFormatter.php @@ -0,0 +1,159 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use MongoDB\BSON\Type; +use MongoDB\BSON\UTCDateTime; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Formats a record for use with the MongoDBHandler. + * + * @author Florian Plattner + */ +class MongoDBFormatter implements FormatterInterface +{ + private bool $exceptionTraceAsString; + private int $maxNestingLevel; + private bool $isLegacyMongoExt; + + /** + * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record->context is 2 + * @param bool $exceptionTraceAsString set to false to log exception traces as a sub documents instead of strings + */ + public function __construct(int $maxNestingLevel = 3, bool $exceptionTraceAsString = true) + { + $this->maxNestingLevel = max($maxNestingLevel, 0); + $this->exceptionTraceAsString = $exceptionTraceAsString; + + $this->isLegacyMongoExt = extension_loaded('mongodb') && version_compare((string) phpversion('mongodb'), '1.1.9', '<='); + } + + /** + * @inheritDoc + * + * @return mixed[] + */ + public function format(LogRecord $record): array + { + /** @var mixed[] $res */ + $res = $this->formatArray($record->toArray()); + + return $res; + } + + /** + * @inheritDoc + * + * @return array + */ + public function formatBatch(array $records): array + { + $formatted = []; + foreach ($records as $key => $record) { + $formatted[$key] = $this->format($record); + } + + return $formatted; + } + + /** + * @param mixed[] $array + * @return mixed[]|string Array except when max nesting level is reached then a string "[...]" + */ + protected function formatArray(array $array, int $nestingLevel = 0) + { + if ($this->maxNestingLevel > 0 && $nestingLevel > $this->maxNestingLevel) { + return '[...]'; + } + + foreach ($array as $name => $value) { + if ($value instanceof \DateTimeInterface) { + $array[$name] = $this->formatDate($value, $nestingLevel + 1); + } elseif ($value instanceof \Throwable) { + $array[$name] = $this->formatException($value, $nestingLevel + 1); + } elseif (is_array($value)) { + $array[$name] = $this->formatArray($value, $nestingLevel + 1); + } elseif (is_object($value) && !$value instanceof Type) { + $array[$name] = $this->formatObject($value, $nestingLevel + 1); + } + } + + return $array; + } + + /** + * @param mixed $value + * @return mixed[]|string + */ + protected function formatObject($value, int $nestingLevel) + { + $objectVars = get_object_vars($value); + $objectVars['class'] = Utils::getClass($value); + + return $this->formatArray($objectVars, $nestingLevel); + } + + /** + * @return mixed[]|string + */ + protected function formatException(\Throwable $exception, int $nestingLevel) + { + $formattedException = [ + 'class' => Utils::getClass($exception), + 'message' => $exception->getMessage(), + 'code' => (int) $exception->getCode(), + 'file' => $exception->getFile() . ':' . $exception->getLine(), + ]; + + if ($this->exceptionTraceAsString === true) { + $formattedException['trace'] = $exception->getTraceAsString(); + } else { + $formattedException['trace'] = $exception->getTrace(); + } + + return $this->formatArray($formattedException, $nestingLevel); + } + + protected function formatDate(\DateTimeInterface $value, int $nestingLevel): UTCDateTime + { + if ($this->isLegacyMongoExt) { + return $this->legacyGetMongoDbDateTime($value); + } + + return $this->getMongoDbDateTime($value); + } + + private function getMongoDbDateTime(\DateTimeInterface $value): UTCDateTime + { + return new UTCDateTime((int) floor(((float) $value->format('U.u')) * 1000)); + } + + /** + * This is needed to support MongoDB Driver v1.19 and below + * + * See https://github.com/mongodb/mongo-php-driver/issues/426 + * + * It can probably be removed in 2.1 or later once MongoDB's 1.2 is released and widely adopted + */ + private function legacyGetMongoDbDateTime(\DateTimeInterface $value): UTCDateTime + { + $milliseconds = floor(((float) $value->format('U.u')) * 1000); + + $milliseconds = (PHP_INT_SIZE == 8) //64-bit OS? + ? (int) $milliseconds + : (string) $milliseconds; + + return new UTCDateTime($milliseconds); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/NormalizerFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/NormalizerFormatter.php new file mode 100644 index 000000000..a5c99156f --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/NormalizerFormatter.php @@ -0,0 +1,325 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\DateTimeImmutable; +use Monolog\Utils; +use Throwable; +use Monolog\LogRecord; + +/** + * Normalizes incoming records to remove objects/resources so it's easier to dump to various targets + * + * @author Jordi Boggiano + */ +class NormalizerFormatter implements FormatterInterface +{ + public const SIMPLE_DATE = "Y-m-d\TH:i:sP"; + + protected string $dateFormat; + protected int $maxNormalizeDepth = 9; + protected int $maxNormalizeItemCount = 1000; + + private int $jsonEncodeOptions = Utils::DEFAULT_JSON_FLAGS; + + /** + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $dateFormat = null) + { + $this->dateFormat = null === $dateFormat ? static::SIMPLE_DATE : $dateFormat; + if (!function_exists('json_encode')) { + throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter'); + } + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + return $this->normalizeRecord($record); + } + + /** + * Normalize an arbitrary value to a scalar|array|null + * + * @return null|scalar|array + */ + public function normalizeValue(mixed $data): mixed + { + return $this->normalize($data); + } + + /** + * @inheritDoc + */ + public function formatBatch(array $records) + { + foreach ($records as $key => $record) { + $records[$key] = $this->format($record); + } + + return $records; + } + + public function getDateFormat(): string + { + return $this->dateFormat; + } + + /** + * @return $this + */ + public function setDateFormat(string $dateFormat): self + { + $this->dateFormat = $dateFormat; + + return $this; + } + + /** + * The maximum number of normalization levels to go through + */ + public function getMaxNormalizeDepth(): int + { + return $this->maxNormalizeDepth; + } + + /** + * @return $this + */ + public function setMaxNormalizeDepth(int $maxNormalizeDepth): self + { + $this->maxNormalizeDepth = $maxNormalizeDepth; + + return $this; + } + + /** + * The maximum number of items to normalize per level + */ + public function getMaxNormalizeItemCount(): int + { + return $this->maxNormalizeItemCount; + } + + /** + * @return $this + */ + public function setMaxNormalizeItemCount(int $maxNormalizeItemCount): self + { + $this->maxNormalizeItemCount = $maxNormalizeItemCount; + + return $this; + } + + /** + * Enables `json_encode` pretty print. + * + * @return $this + */ + public function setJsonPrettyPrint(bool $enable): self + { + if ($enable) { + $this->jsonEncodeOptions |= JSON_PRETTY_PRINT; + } else { + $this->jsonEncodeOptions &= ~JSON_PRETTY_PRINT; + } + + return $this; + } + + /** + * Provided as extension point + * + * Because normalize is called with sub-values of context data etc, normalizeRecord can be + * extended when data needs to be appended on the record array but not to other normalized data. + * + * @return array + */ + protected function normalizeRecord(LogRecord $record): array + { + /** @var array $normalized */ + $normalized = $this->normalize($record->toArray()); + + return $normalized; + } + + /** + * @return null|scalar|array + */ + protected function normalize(mixed $data, int $depth = 0): mixed + { + if ($depth > $this->maxNormalizeDepth) { + return 'Over ' . $this->maxNormalizeDepth . ' levels deep, aborting normalization'; + } + + if (null === $data || is_scalar($data)) { + if (is_float($data)) { + if (is_infinite($data)) { + return ($data > 0 ? '' : '-') . 'INF'; + } + if (is_nan($data)) { + return 'NaN'; + } + } + + return $data; + } + + if (is_array($data)) { + $normalized = []; + + $count = 1; + foreach ($data as $key => $value) { + if ($count++ > $this->maxNormalizeItemCount) { + $normalized['...'] = 'Over ' . $this->maxNormalizeItemCount . ' items ('.count($data).' total), aborting normalization'; + break; + } + + $normalized[$key] = $this->normalize($value, $depth + 1); + } + + return $normalized; + } + + if ($data instanceof \DateTimeInterface) { + return $this->formatDate($data); + } + + if (is_object($data)) { + if ($data instanceof Throwable) { + return $this->normalizeException($data, $depth); + } + + if ($data instanceof \JsonSerializable) { + /** @var null|scalar|array $value */ + $value = $data->jsonSerialize(); + } elseif (\get_class($data) === '__PHP_Incomplete_Class') { + $accessor = new \ArrayObject($data); + $value = (string) $accessor['__PHP_Incomplete_Class_Name']; + } elseif (method_exists($data, '__toString')) { + /** @var string $value */ + $value = $data->__toString(); + } else { + // the rest is normalized by json encoding and decoding it + /** @var null|scalar|array $value */ + $value = json_decode($this->toJson($data, true), true); + } + + return [Utils::getClass($data) => $value]; + } + + if (is_resource($data)) { + return sprintf('[resource(%s)]', get_resource_type($data)); + } + + return '[unknown('.gettype($data).')]'; + } + + /** + * @return mixed[] + */ + protected function normalizeException(Throwable $e, int $depth = 0) + { + if ($depth > $this->maxNormalizeDepth) { + return ['Over ' . $this->maxNormalizeDepth . ' levels deep, aborting normalization']; + } + + if ($e instanceof \JsonSerializable) { + return (array) $e->jsonSerialize(); + } + + $data = [ + 'class' => Utils::getClass($e), + 'message' => $e->getMessage(), + 'code' => (int) $e->getCode(), + 'file' => $e->getFile().':'.$e->getLine(), + ]; + + if ($e instanceof \SoapFault) { + if (isset($e->faultcode)) { + $data['faultcode'] = $e->faultcode; + } + + if (isset($e->faultactor)) { + $data['faultactor'] = $e->faultactor; + } + + if (isset($e->detail)) { + if (is_string($e->detail)) { + $data['detail'] = $e->detail; + } elseif (is_object($e->detail) || is_array($e->detail)) { + $data['detail'] = $this->toJson($e->detail, true); + } + } + } + + $trace = $e->getTrace(); + foreach ($trace as $frame) { + if (isset($frame['file'], $frame['line'])) { + $data['trace'][] = $frame['file'].':'.$frame['line']; + } + } + + if (($previous = $e->getPrevious()) instanceof \Throwable) { + $data['previous'] = $this->normalizeException($previous, $depth + 1); + } + + return $data; + } + + /** + * Return the JSON representation of a value + * + * @param mixed $data + * @throws \RuntimeException if encoding fails and errors are not ignored + * @return string if encoding fails and ignoreErrors is true 'null' is returned + */ + protected function toJson($data, bool $ignoreErrors = false): string + { + return Utils::jsonEncode($data, $this->jsonEncodeOptions, $ignoreErrors); + } + + protected function formatDate(\DateTimeInterface $date): string + { + // in case the date format isn't custom then we defer to the custom DateTimeImmutable + // formatting logic, which will pick the right format based on whether useMicroseconds is on + if ($this->dateFormat === self::SIMPLE_DATE && $date instanceof DateTimeImmutable) { + return (string) $date; + } + + return $date->format($this->dateFormat); + } + + /** + * @return $this + */ + public function addJsonEncodeOption(int $option): self + { + $this->jsonEncodeOptions |= $option; + + return $this; + } + + /** + * @return $this + */ + public function removeJsonEncodeOption(int $option): self + { + $this->jsonEncodeOptions &= ~$option; + + return $this; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ScalarFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ScalarFormatter.php new file mode 100644 index 000000000..4bc20a08c --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/ScalarFormatter.php @@ -0,0 +1,49 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Formats data into an associative array of scalar (+ null) values. + * Objects and arrays will be JSON encoded. + * + * @author Andrew Lawson + */ +class ScalarFormatter extends NormalizerFormatter +{ + /** + * @inheritDoc + * + * @phpstan-return array $record + */ + public function format(LogRecord $record): array + { + $result = []; + foreach ($record->toArray() as $key => $value) { + $result[$key] = $this->toScalar($value); + } + + return $result; + } + + protected function toScalar(mixed $value): string|int|float|bool|null + { + $normalized = $this->normalize($value); + + if (is_array($normalized)) { + return $this->toJson($normalized, true); + } + + return $normalized; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/SyslogFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/SyslogFormatter.php new file mode 100644 index 000000000..6ed7e92ef --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/SyslogFormatter.php @@ -0,0 +1,66 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Serializes a log message according to RFC 5424 + * + * @author Dalibor Karlović + * @author Renat Gabdullin + */ +class SyslogFormatter extends LineFormatter +{ + private const SYSLOG_FACILITY_USER = 1; + private const FORMAT = "<%extra.priority%>1 %datetime% %extra.hostname% %extra.app-name% %extra.procid% %channel% %extra.structured-data% %level_name%: %message% %context% %extra%\n"; + private const NILVALUE = '-'; + + private string $hostname; + private int $procid; + + public function __construct(private string $applicationName = self::NILVALUE) + { + parent::__construct(self::FORMAT, 'Y-m-d\TH:i:s.uP', true, true); + $this->hostname = (string) gethostname(); + $this->procid = (int) getmypid(); + } + + public function format(LogRecord $record): string + { + $record->extra = $this->formatExtra($record); + + return parent::format($record); + } + + /** + * @param LogRecord $record + * @return array + */ + private function formatExtra(LogRecord $record): array + { + $extra = $record->extra; + $extra['app-name'] = $this->applicationName; + $extra['hostname'] = $this->hostname; + $extra['procid'] = $this->procid; + $extra['priority'] = self::calculatePriority($record->level); + $extra['structured-data'] = self::NILVALUE; + + return $extra; + } + + private static function calculatePriority(Level $level): int + { + return (self::SYSLOG_FACILITY_USER * 8) + $level->toRFC5424Level(); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/WildfireFormatter.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/WildfireFormatter.php new file mode 100644 index 000000000..2e28b3ab4 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Formatter/WildfireFormatter.php @@ -0,0 +1,139 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Serializes a log message according to Wildfire's header requirements + * + * @author Eric Clemmons (@ericclemmons) + * @author Christophe Coevoet + * @author Kirill chEbba Chebunin + */ +class WildfireFormatter extends NormalizerFormatter +{ + /** + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $dateFormat = null) + { + parent::__construct($dateFormat); + + // http headers do not like non-ISO-8559-1 characters + $this->removeJsonEncodeOption(JSON_UNESCAPED_UNICODE); + } + + /** + * Translates Monolog log levels to Wildfire levels. + * + * @return 'LOG'|'INFO'|'WARN'|'ERROR' + */ + private function toWildfireLevel(Level $level): string + { + return match ($level) { + Level::Debug => 'LOG', + Level::Info => 'INFO', + Level::Notice => 'INFO', + Level::Warning => 'WARN', + Level::Error => 'ERROR', + Level::Critical => 'ERROR', + Level::Alert => 'ERROR', + Level::Emergency => 'ERROR', + }; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + // Retrieve the line and file if set and remove them from the formatted extra + $file = $line = ''; + if (isset($record->extra['file'])) { + $file = $record->extra['file']; + unset($record->extra['file']); + } + if (isset($record->extra['line'])) { + $line = $record->extra['line']; + unset($record->extra['line']); + } + + $message = ['message' => $record->message]; + $handleError = false; + if (count($record->context) > 0) { + $message['context'] = $this->normalize($record->context); + $handleError = true; + } + if (count($record->extra) > 0) { + $message['extra'] = $this->normalize($record->extra); + $handleError = true; + } + if (count($message) === 1) { + $message = reset($message); + } + + if (is_array($message) && isset($message['context']['table'])) { + $type = 'TABLE'; + $label = $record->channel .': '. $record->message; + $message = $message['context']['table']; + } else { + $type = $this->toWildfireLevel($record->level); + $label = $record->channel; + } + + // Create JSON object describing the appearance of the message in the console + $json = $this->toJson([ + [ + 'Type' => $type, + 'File' => $file, + 'Line' => $line, + 'Label' => $label, + ], + $message, + ], $handleError); + + // The message itself is a serialization of the above JSON object + it's length + return sprintf( + '%d|%s|', + strlen($json), + $json + ); + } + + /** + * @inheritDoc + * + * @phpstan-return never + */ + public function formatBatch(array $records) + { + throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter'); + } + + /** + * @inheritDoc + * + * @return null|scalar|array|object + */ + protected function normalize(mixed $data, int $depth = 0): mixed + { + if (is_object($data) && !$data instanceof \DateTimeInterface) { + return $data; + } + + return parent::normalize($data, $depth); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractHandler.php new file mode 100644 index 000000000..d3c2cbd7b --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractHandler.php @@ -0,0 +1,104 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Logger; +use Monolog\ResettableInterface; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Base Handler class providing basic level/bubble support + * + * @author Jordi Boggiano + */ +abstract class AbstractHandler extends Handler implements ResettableInterface +{ + protected Level $level = Level::Debug; + protected bool $bubble = true; + + /** + * @param int|string|Level|LogLevel::* $level The minimum logging level at which this handler will be triggered + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) + { + $this->setLevel($level); + $this->bubble = $bubble; + } + + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + return $record->level->value >= $this->level->value; + } + + /** + * Sets minimum logging level at which this handler will be triggered. + * + * @param Level|LogLevel::* $level Level or level name + * @return $this + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function setLevel(int|string|Level $level): self + { + $this->level = Logger::toMonologLevel($level); + + return $this; + } + + /** + * Gets minimum logging level at which this handler will be triggered. + */ + public function getLevel(): Level + { + return $this->level; + } + + /** + * Sets the bubbling behavior. + * + * @param bool $bubble true means that this handler allows bubbling. + * false means that bubbling is not permitted. + * @return $this + */ + public function setBubble(bool $bubble): self + { + $this->bubble = $bubble; + + return $this; + } + + /** + * Gets the bubbling behavior. + * + * @return bool true means that this handler allows bubbling. + * false means that bubbling is not permitted. + */ + public function getBubble(): bool + { + return $this->bubble; + } + + /** + * @inheritDoc + */ + public function reset(): void + { + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractProcessingHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractProcessingHandler.php new file mode 100644 index 000000000..de13a76be --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractProcessingHandler.php @@ -0,0 +1,60 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\LogRecord; + +/** + * Base Handler class providing the Handler structure, including processors and formatters + * + * Classes extending it should (in most cases) only implement write($record) + * + * @author Jordi Boggiano + * @author Christophe Coevoet + */ +abstract class AbstractProcessingHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface +{ + use ProcessableHandlerTrait; + use FormattableHandlerTrait; + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (!$this->isHandling($record)) { + return false; + } + + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + $record->formatted = $this->getFormatter()->format($record); + + $this->write($record); + + return false === $this->bubble; + } + + /** + * Writes the (already formatted) record down to the log of the implementing handler + */ + abstract protected function write(LogRecord $record): void; + + public function reset(): void + { + parent::reset(); + + $this->resetProcessors(); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractSyslogHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractSyslogHandler.php new file mode 100644 index 000000000..695a1c07f --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AbstractSyslogHandler.php @@ -0,0 +1,95 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LineFormatter; + +/** + * Common syslog functionality + */ +abstract class AbstractSyslogHandler extends AbstractProcessingHandler +{ + protected int $facility; + + /** + * List of valid log facility names. + * @var array + */ + protected array $facilities = [ + 'auth' => \LOG_AUTH, + 'authpriv' => \LOG_AUTHPRIV, + 'cron' => \LOG_CRON, + 'daemon' => \LOG_DAEMON, + 'kern' => \LOG_KERN, + 'lpr' => \LOG_LPR, + 'mail' => \LOG_MAIL, + 'news' => \LOG_NEWS, + 'syslog' => \LOG_SYSLOG, + 'user' => \LOG_USER, + 'uucp' => \LOG_UUCP, + ]; + + /** + * Translates Monolog log levels to syslog log priorities. + */ + protected function toSyslogPriority(Level $level): int + { + return $level->toRFC5424Level(); + } + + /** + * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant + */ + public function __construct(string|int $facility = \LOG_USER, int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + + if (!defined('PHP_WINDOWS_VERSION_BUILD')) { + $this->facilities['local0'] = \LOG_LOCAL0; + $this->facilities['local1'] = \LOG_LOCAL1; + $this->facilities['local2'] = \LOG_LOCAL2; + $this->facilities['local3'] = \LOG_LOCAL3; + $this->facilities['local4'] = \LOG_LOCAL4; + $this->facilities['local5'] = \LOG_LOCAL5; + $this->facilities['local6'] = \LOG_LOCAL6; + $this->facilities['local7'] = \LOG_LOCAL7; + } else { + $this->facilities['local0'] = 128; // LOG_LOCAL0 + $this->facilities['local1'] = 136; // LOG_LOCAL1 + $this->facilities['local2'] = 144; // LOG_LOCAL2 + $this->facilities['local3'] = 152; // LOG_LOCAL3 + $this->facilities['local4'] = 160; // LOG_LOCAL4 + $this->facilities['local5'] = 168; // LOG_LOCAL5 + $this->facilities['local6'] = 176; // LOG_LOCAL6 + $this->facilities['local7'] = 184; // LOG_LOCAL7 + } + + // convert textual description of facility to syslog constant + if (is_string($facility) && array_key_exists(strtolower($facility), $this->facilities)) { + $facility = $this->facilities[strtolower($facility)]; + } elseif (!in_array($facility, array_values($this->facilities), true)) { + throw new \UnexpectedValueException('Unknown facility value "'.$facility.'" given'); + } + + $this->facility = $facility; + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%'); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AmqpHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AmqpHandler.php new file mode 100644 index 000000000..72265d4ba --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/AmqpHandler.php @@ -0,0 +1,159 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\JsonFormatter; +use PhpAmqpLib\Message\AMQPMessage; +use PhpAmqpLib\Channel\AMQPChannel; +use AMQPExchange; +use Monolog\LogRecord; + +class AmqpHandler extends AbstractProcessingHandler +{ + protected AMQPExchange|AMQPChannel $exchange; + + /** @var array */ + private array $extraAttributes = []; + + protected string $exchangeName; + + /** + * @param AMQPExchange|AMQPChannel $exchange AMQPExchange (php AMQP ext) or PHP AMQP lib channel, ready for use + * @param string|null $exchangeName Optional exchange name, for AMQPChannel (PhpAmqpLib) only + */ + public function __construct(AMQPExchange|AMQPChannel $exchange, ?string $exchangeName = null, int|string|Level $level = Level::Debug, bool $bubble = true) + { + if ($exchange instanceof AMQPChannel) { + $this->exchangeName = (string) $exchangeName; + } elseif ($exchangeName !== null) { + @trigger_error('The $exchangeName parameter can only be passed when using PhpAmqpLib, if using an AMQPExchange instance configure it beforehand', E_USER_DEPRECATED); + } + $this->exchange = $exchange; + + parent::__construct($level, $bubble); + } + + /** + * @return array + */ + public function getExtraAttributes(): array + { + return $this->extraAttributes; + } + + /** + * Configure extra attributes to pass to the AMQPExchange (if you are using the amqp extension) + * + * @param array $extraAttributes One of content_type, content_encoding, + * message_id, user_id, app_id, delivery_mode, + * priority, timestamp, expiration, type + * or reply_to, headers. + * @return $this + */ + public function setExtraAttributes(array $extraAttributes): self + { + $this->extraAttributes = $extraAttributes; + return $this; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $data = $record->formatted; + $routingKey = $this->getRoutingKey($record); + + if ($this->exchange instanceof AMQPExchange) { + $attributes = [ + 'delivery_mode' => 2, + 'content_type' => 'application/json', + ]; + if (\count($this->extraAttributes) > 0) { + $attributes = array_merge($attributes, $this->extraAttributes); + } + $this->exchange->publish( + $data, + $routingKey, + 0, + $attributes + ); + } else { + $this->exchange->basic_publish( + $this->createAmqpMessage($data), + $this->exchangeName, + $routingKey + ); + } + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + if ($this->exchange instanceof AMQPExchange) { + parent::handleBatch($records); + + return; + } + + foreach ($records as $record) { + if (!$this->isHandling($record)) { + continue; + } + + $record = $this->processRecord($record); + $data = $this->getFormatter()->format($record); + + $this->exchange->batch_basic_publish( + $this->createAmqpMessage($data), + $this->exchangeName, + $this->getRoutingKey($record) + ); + } + + $this->exchange->publish_batch(); + } + + /** + * Gets the routing key for the AMQP exchange + */ + protected function getRoutingKey(LogRecord $record): string + { + $routingKey = sprintf('%s.%s', $record->level->name, $record->channel); + + return strtolower($routingKey); + } + + private function createAmqpMessage(string $data): AMQPMessage + { + $attributes = [ + 'delivery_mode' => 2, + 'content_type' => 'application/json', + ]; + if (\count($this->extraAttributes) > 0) { + $attributes = array_merge($attributes, $this->extraAttributes); + } + return new AMQPMessage($data, $attributes); + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/BrowserConsoleHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/BrowserConsoleHandler.php new file mode 100644 index 000000000..5930ca488 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/BrowserConsoleHandler.php @@ -0,0 +1,301 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LineFormatter; +use Monolog\Utils; +use Monolog\LogRecord; +use Monolog\Level; + +use function count; +use function headers_list; +use function stripos; + +/** + * Handler sending logs to browser's javascript console with no browser extension required + * + * @author Olivier Poitrey + */ +class BrowserConsoleHandler extends AbstractProcessingHandler +{ + protected static bool $initialized = false; + + /** @var LogRecord[] */ + protected static array $records = []; + + protected const FORMAT_HTML = 'html'; + protected const FORMAT_JS = 'js'; + protected const FORMAT_UNKNOWN = 'unknown'; + + /** + * @inheritDoc + * + * Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format. + * + * Example of formatted string: + * + * You can do [[blue text]]{color: blue} or [[green background]]{background-color: green; color: white} + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%'); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + // Accumulate records + static::$records[] = $record; + + // Register shutdown handler if not already done + if (!static::$initialized) { + static::$initialized = true; + $this->registerShutdownFunction(); + } + } + + /** + * Convert records to javascript console commands and send it to the browser. + * This method is automatically called on PHP shutdown if output is HTML or Javascript. + */ + public static function send(): void + { + $format = static::getResponseFormat(); + if ($format === self::FORMAT_UNKNOWN) { + return; + } + + if (count(static::$records) > 0) { + if ($format === self::FORMAT_HTML) { + static::writeOutput(''); + } else { // js format + static::writeOutput(self::generateScript()); + } + static::resetStatic(); + } + } + + public function close(): void + { + self::resetStatic(); + } + + public function reset(): void + { + parent::reset(); + + self::resetStatic(); + } + + /** + * Forget all logged records + */ + public static function resetStatic(): void + { + static::$records = []; + } + + /** + * Wrapper for register_shutdown_function to allow overriding + */ + protected function registerShutdownFunction(): void + { + if (PHP_SAPI !== 'cli') { + register_shutdown_function(['Monolog\Handler\BrowserConsoleHandler', 'send']); + } + } + + /** + * Wrapper for echo to allow overriding + */ + protected static function writeOutput(string $str): void + { + echo $str; + } + + /** + * Checks the format of the response + * + * If Content-Type is set to application/javascript or text/javascript -> js + * If Content-Type is set to text/html, or is unset -> html + * If Content-Type is anything else -> unknown + * + * @return string One of 'js', 'html' or 'unknown' + * @phpstan-return self::FORMAT_* + */ + protected static function getResponseFormat(): string + { + // Check content type + foreach (headers_list() as $header) { + if (stripos($header, 'content-type:') === 0) { + return static::getResponseFormatFromContentType($header); + } + } + + return self::FORMAT_HTML; + } + + /** + * @return string One of 'js', 'html' or 'unknown' + * @phpstan-return self::FORMAT_* + */ + protected static function getResponseFormatFromContentType(string $contentType): string + { + // This handler only works with HTML and javascript outputs + // text/javascript is obsolete in favour of application/javascript, but still used + if (stripos($contentType, 'application/javascript') !== false || stripos($contentType, 'text/javascript') !== false) { + return self::FORMAT_JS; + } + + if (stripos($contentType, 'text/html') !== false) { + return self::FORMAT_HTML; + } + + return self::FORMAT_UNKNOWN; + } + + private static function generateScript(): string + { + $script = []; + foreach (static::$records as $record) { + $context = self::dump('Context', $record->context); + $extra = self::dump('Extra', $record->extra); + + if (\count($context) === 0 && \count($extra) === 0) { + $script[] = self::call_array(self::getConsoleMethodForLevel($record->level), self::handleStyles($record->formatted)); + } else { + $script = array_merge( + $script, + [self::call_array('groupCollapsed', self::handleStyles($record->formatted))], + $context, + $extra, + [self::call('groupEnd')] + ); + } + } + + return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);"; + } + + private static function getConsoleMethodForLevel(Level $level): string + { + return match ($level) { + Level::Debug => 'debug', + Level::Info, Level::Notice => 'info', + Level::Warning => 'warn', + Level::Error, Level::Critical, Level::Alert, Level::Emergency => 'error', + }; + } + + /** + * @return string[] + */ + private static function handleStyles(string $formatted): array + { + $args = []; + $format = '%c' . $formatted; + preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER); + + foreach (array_reverse($matches) as $match) { + $args[] = '"font-weight: normal"'; + $args[] = self::quote(self::handleCustomStyles($match[2][0], $match[1][0])); + + $pos = $match[0][1]; + $format = Utils::substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . Utils::substr($format, $pos + strlen($match[0][0])); + } + + $args[] = self::quote('font-weight: normal'); + $args[] = self::quote($format); + + return array_reverse($args); + } + + private static function handleCustomStyles(string $style, string $string): string + { + static $colors = ['blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey']; + static $labels = []; + + $style = preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function (array $m) use ($string, &$colors, &$labels) { + if (trim($m[1]) === 'autolabel') { + // Format the string as a label with consistent auto assigned background color + if (!isset($labels[$string])) { + $labels[$string] = $colors[count($labels) % count($colors)]; + } + $color = $labels[$string]; + + return "background-color: $color; color: white; border-radius: 3px; padding: 0 2px 0 2px"; + } + + return $m[1]; + }, $style); + + if (null === $style) { + $pcreErrorCode = preg_last_error(); + + throw new \RuntimeException('Failed to run preg_replace_callback: ' . $pcreErrorCode . ' / ' . Utils::pcreLastErrorMessage($pcreErrorCode)); + } + + return $style; + } + + /** + * @param mixed[] $dict + * @return mixed[] + */ + private static function dump(string $title, array $dict): array + { + $script = []; + $dict = array_filter($dict); + if (\count($dict) === 0) { + return $script; + } + $script[] = self::call('log', self::quote('%c%s'), self::quote('font-weight: bold'), self::quote($title)); + foreach ($dict as $key => $value) { + $value = json_encode($value); + if (false === $value) { + $value = self::quote(''); + } + $script[] = self::call('log', self::quote('%s: %o'), self::quote((string) $key), $value); + } + + return $script; + } + + private static function quote(string $arg): string + { + return '"' . addcslashes($arg, "\"\n\\") . '"'; + } + + /** + * @param mixed $args + */ + private static function call(...$args): string + { + $method = array_shift($args); + if (!is_string($method)) { + throw new \UnexpectedValueException('Expected the first arg to be a string, got: '.var_export($method, true)); + } + + return self::call_array($method, $args); + } + + /** + * @param mixed[] $args + */ + private static function call_array(string $method, array $args): string + { + return 'c.' . $method . '(' . implode(', ', $args) . ');'; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/BufferHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/BufferHandler.php new file mode 100644 index 000000000..ff89faa8a --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/BufferHandler.php @@ -0,0 +1,165 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\ResettableInterface; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Buffers all records until closing the handler and then pass them as batch. + * + * This is useful for a MailHandler to send only one mail per request instead of + * sending one per log message. + * + * @author Christophe Coevoet + */ +class BufferHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface +{ + use ProcessableHandlerTrait; + + protected HandlerInterface $handler; + + protected int $bufferSize = 0; + + protected int $bufferLimit; + + protected bool $flushOnOverflow; + + /** @var LogRecord[] */ + protected array $buffer = []; + + protected bool $initialized = false; + + /** + * @param HandlerInterface $handler Handler. + * @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. + * @param bool $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded + */ + public function __construct(HandlerInterface $handler, int $bufferLimit = 0, int|string|Level $level = Level::Debug, bool $bubble = true, bool $flushOnOverflow = false) + { + parent::__construct($level, $bubble); + $this->handler = $handler; + $this->bufferLimit = $bufferLimit; + $this->flushOnOverflow = $flushOnOverflow; + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if ($record->level->isLowerThan($this->level)) { + return false; + } + + if (!$this->initialized) { + // __destructor() doesn't get called on Fatal errors + register_shutdown_function([$this, 'close']); + $this->initialized = true; + } + + if ($this->bufferLimit > 0 && $this->bufferSize === $this->bufferLimit) { + if ($this->flushOnOverflow) { + $this->flush(); + } else { + array_shift($this->buffer); + $this->bufferSize--; + } + } + + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + $this->buffer[] = $record; + $this->bufferSize++; + + return false === $this->bubble; + } + + public function flush(): void + { + if ($this->bufferSize === 0) { + return; + } + + $this->handler->handleBatch($this->buffer); + $this->clear(); + } + + public function __destruct() + { + // suppress the parent behavior since we already have register_shutdown_function() + // to call close(), and the reference contained there will prevent this from being + // GC'd until the end of the request + } + + /** + * @inheritDoc + */ + public function close(): void + { + $this->flush(); + + $this->handler->close(); + } + + /** + * Clears the buffer without flushing any messages down to the wrapped handler. + */ + public function clear(): void + { + $this->bufferSize = 0; + $this->buffer = []; + } + + public function reset(): void + { + $this->flush(); + + parent::reset(); + + $this->resetProcessors(); + + if ($this->handler instanceof ResettableInterface) { + $this->handler->reset(); + } + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + $this->handler->setFormatter($formatter); + + return $this; + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($this->handler).' does not support formatters.'); + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + return $this->handler->getFormatter(); + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($this->handler).' does not support formatters.'); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/ChromePHPHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/ChromePHPHandler.php new file mode 100644 index 000000000..2f7f21d5f --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/ChromePHPHandler.php @@ -0,0 +1,192 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\ChromePHPFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; +use Monolog\DateTimeImmutable; + +/** + * Handler sending logs to the ChromePHP extension (http://www.chromephp.com/) + * + * This also works out of the box with Firefox 43+ + * + * @author Christophe Coevoet + */ +class ChromePHPHandler extends AbstractProcessingHandler +{ + use WebRequestRecognizerTrait; + + /** + * Version of the extension + */ + protected const VERSION = '4.0'; + + /** + * Header name + */ + protected const HEADER_NAME = 'X-ChromeLogger-Data'; + + /** + * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+) + */ + protected const USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}'; + + protected static bool $initialized = false; + + /** + * Tracks whether we sent too much data + * + * Chrome limits the headers to 4KB, so when we sent 3KB we stop sending + */ + protected static bool $overflowed = false; + + /** @var mixed[] */ + protected static array $json = [ + 'version' => self::VERSION, + 'columns' => ['label', 'log', 'backtrace', 'type'], + 'rows' => [], + ]; + + protected static bool $sendHeaders = true; + + /** + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + if (!function_exists('json_encode')) { + throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s ChromePHPHandler'); + } + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + if (!$this->isWebRequest()) { + return; + } + + $messages = []; + + foreach ($records as $record) { + if ($record->level < $this->level) { + continue; + } + + $message = $this->processRecord($record); + $messages[] = $message; + } + + if (\count($messages) > 0) { + $messages = $this->getFormatter()->formatBatch($messages); + self::$json['rows'] = array_merge(self::$json['rows'], $messages); + $this->send(); + } + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new ChromePHPFormatter(); + } + + /** + * Creates & sends header for a record + * + * @see sendHeader() + * @see send() + */ + protected function write(LogRecord $record): void + { + if (!$this->isWebRequest()) { + return; + } + + self::$json['rows'][] = $record->formatted; + + $this->send(); + } + + /** + * Sends the log header + * + * @see sendHeader() + */ + protected function send(): void + { + if (self::$overflowed || !self::$sendHeaders) { + return; + } + + if (!self::$initialized) { + self::$initialized = true; + + self::$sendHeaders = $this->headersAccepted(); + if (!self::$sendHeaders) { + return; + } + + self::$json['request_uri'] = $_SERVER['REQUEST_URI'] ?? ''; + } + + $json = Utils::jsonEncode(self::$json, Utils::DEFAULT_JSON_FLAGS & ~JSON_UNESCAPED_UNICODE, true); + $data = base64_encode($json); + if (strlen($data) > 3 * 1024) { + self::$overflowed = true; + + $record = new LogRecord( + message: 'Incomplete logs, chrome header size limit reached', + level: Level::Warning, + channel: 'monolog', + datetime: new DateTimeImmutable(true), + ); + self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record); + $json = Utils::jsonEncode(self::$json, Utils::DEFAULT_JSON_FLAGS & ~JSON_UNESCAPED_UNICODE, true); + $data = base64_encode($json); + } + + if (trim($data) !== '') { + $this->sendHeader(static::HEADER_NAME, $data); + } + } + + /** + * Send header string to the client + */ + protected function sendHeader(string $header, string $content): void + { + if (!headers_sent() && self::$sendHeaders) { + header(sprintf('%s: %s', $header, $content)); + } + } + + /** + * Verifies if the headers are accepted by the current user agent + */ + protected function headersAccepted(): bool + { + if (!isset($_SERVER['HTTP_USER_AGENT'])) { + return false; + } + + return preg_match(static::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']) === 1; + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/CouchDBHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/CouchDBHandler.php new file mode 100644 index 000000000..8d9c10e76 --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/CouchDBHandler.php @@ -0,0 +1,97 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\JsonFormatter; +use Monolog\Level; +use Monolog\LogRecord; + +/** + * CouchDB handler + * + * @author Markus Bachmann + * @phpstan-type Options array{ + * host: string, + * port: int, + * dbname: string, + * username: string|null, + * password: string|null + * } + * @phpstan-type InputOptions array{ + * host?: string, + * port?: int, + * dbname?: string, + * username?: string|null, + * password?: string|null + * } + */ +class CouchDBHandler extends AbstractProcessingHandler +{ + /** + * @var mixed[] + * @phpstan-var Options + */ + private array $options; + + /** + * @param mixed[] $options + * + * @phpstan-param InputOptions $options + */ + public function __construct(array $options = [], int|string|Level $level = Level::Debug, bool $bubble = true) + { + $this->options = array_merge([ + 'host' => 'localhost', + 'port' => 5984, + 'dbname' => 'logger', + 'username' => null, + 'password' => null, + ], $options); + + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $basicAuth = null; + if (null !== $this->options['username'] && null !== $this->options['password']) { + $basicAuth = sprintf('%s:%s@', $this->options['username'], $this->options['password']); + } + + $url = 'http://'.$basicAuth.$this->options['host'].':'.$this->options['port'].'/'.$this->options['dbname']; + $context = stream_context_create([ + 'http' => [ + 'method' => 'POST', + 'content' => $record->formatted, + 'ignore_errors' => true, + 'max_redirects' => 0, + 'header' => 'Content-type: application/json', + ], + ]); + + if (false === @file_get_contents($url, false, $context)) { + throw new \RuntimeException(sprintf('Could not connect to %s', $url)); + } + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); + } +} diff --git a/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/CubeHandler.php b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/CubeHandler.php new file mode 100644 index 000000000..8388f5ade --- /dev/null +++ b/vendor/composer/4500e6a8/Seldaek-monolog-c915e26/src/Monolog/Handler/CubeHandler.php @@ -0,0 +1,167 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Logs to Cube. + * + * @link https://github.com/square/cube/wiki + * @author Wan Chen + * @deprecated Since 2.8.0 and 3.2.0, Cube appears abandoned and thus we will drop this handler in Monolog 4 + */ +class CubeHandler extends AbstractProcessingHandler +{ + private ?\Socket $udpConnection = null; + private ?\CurlHandle $httpConnection = null; + private string $scheme; + private string $host; + private int $port; + /** @var string[] */ + private array $acceptedSchemes = ['http', 'udp']; + + /** + * Create a Cube handler + * + * @throws \UnexpectedValueException when given url is not a valid url. + * A valid url must consist of three parts : protocol://host:port + * Only valid protocols used by Cube are http and udp + */ + public function __construct(string $url, int|string|Level $level = Level::Debug, bool $bubble = true) + { + $urlInfo = parse_url($url); + + if ($urlInfo === false || !isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) { + throw new \UnexpectedValueException('URL "'.$url.'" is not valid'); + } + + if (!in_array($urlInfo['scheme'], $this->acceptedSchemes, true)) { + throw new \UnexpectedValueException( + 'Invalid protocol (' . $urlInfo['scheme'] . ').' + . ' Valid options are ' . implode(', ', $this->acceptedSchemes) + ); + } + + $this->scheme = $urlInfo['scheme']; + $this->host = $urlInfo['host']; + $this->port = $urlInfo['port']; + + parent::__construct($level, $bubble); + } + + /** + * Establish a connection to an UDP socket + * + * @throws \LogicException when unable to connect to the socket + * @throws MissingExtensionException when there is no socket extension + */ + protected function connectUdp(): void + { + if (!extension_loaded('sockets')) { + throw new MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler'); + } + + $udpConnection = socket_create(AF_INET, SOCK_DGRAM, 0); + if (false === $udpConnection) { + throw new \LogicException('Unable to create a socket'); + } + + $this->udpConnection = $udpConnection; + if (!socket_connect($this->udpConnection, $this->host, $this->port)) { + throw new \LogicException('Unable to connect to the socket at ' . $this->host . ':' . $this->port); + } + } + + /** + * Establish a connection to an http server + * + * @throws \LogicException when unable to connect to the socket + * @throws MissingExtensionException when no curl extension + */ + protected function connectHttp(): void + { + if (!extension_loaded('curl')) { + throw new MissingExtensionException('The curl extension is required to use http URLs with the CubeHandler'); + } + + $httpConnection = curl_init('http://'.$this->host.':'.$this->port.'/1.0/event/put'); + if (false === $httpConnection) { + throw new \LogicException('Unable to connect to ' . $this->host . ':' . $this->port); + } + + $this->httpConnection = $httpConnection; + curl_setopt($this->httpConnection, CURLOPT_CUSTOMREQUEST, "POST"); + curl_setopt($this->httpConnection, CURLOPT_RETURNTRANSFER, true); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $date = $record->datetime; + + $data = ['time' => $date->format('Y-m-d\TH:i:s.uO')]; + $context = $record->context; + + if (isset($context['type'])) { + $data['type'] = $context['type']; + unset($context['type']); + } else { + $data['type'] = $record->channel; + } + + $data['data'] = $context; + $data['data']['level'] = $record->level; + + if ($this->scheme === 'http') { + $this->writeHttp(Utils::jsonEncode($data)); + } else { + $this->writeUdp(Utils::jsonEncode($data)); + } + } + + private function writeUdp(string $data): void + { + if (null === $this->udpConnection) { + $this->connectUdp(); + } + + if (null === $this->udpConnection) { + throw new \LogicException('No UDP socket could be opened'); + } + + socket_send($this->udpConnection, $data, strlen($data), 0); + } + + private function writeHttp(string $data): void + { + if (null === $this->httpConnection) { + $this->connectHttp(); + } + + if (null === $this->httpConnection) { + throw new \LogicException('No connection could be established'); + } + + curl_setopt($this->httpConnection, CURLOPT_POSTFIELDS, '['.$data.']'); + curl_setopt($this->httpConnection, CURLOPT_HTTPHEADER, [ + 'Content-Type: application/json', + 'Content-Length: ' . strlen('['.$data.']'), + ]); + + Curl\Util::execute($this->httpConnection, 5, false); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/LICENSE b/vendor/composer/5250d275/ramsey-uuid-60a4c63/LICENSE new file mode 100644 index 000000000..5b2acc5b7 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2012-2023 Ben Ramsey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/README.md b/vendor/composer/5250d275/ramsey-uuid-60a4c63/README.md new file mode 100644 index 000000000..0db814959 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/README.md @@ -0,0 +1,83 @@ +

ramsey/uuid

+ +

+ A PHP library for generating and working with UUIDs. +

+ +

+ Source Code + Download Package + PHP Programming Language + Read License + Build Status + Codecov Code Coverage + Psalm Type Coverage +

+ +ramsey/uuid is a PHP library for generating and working with universally unique +identifiers (UUIDs). + +This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). +By participating in this project and its community, you are expected to +uphold this code. + +Much inspiration for this library came from the [Java][javauuid] and +[Python][pyuuid] UUID libraries. + +## Installation + +The preferred method of installation is via [Composer][]. Run the following +command to install the package and add it as a requirement to your project's +`composer.json`: + +```bash +composer require ramsey/uuid +``` + +## Upgrading to Version 4 + +See the documentation for a thorough upgrade guide: + +* [Upgrading ramsey/uuid Version 3 to 4](https://uuid.ramsey.dev/en/stable/upgrading/3-to-4.html) + +## Documentation + +Please see for documentation, tips, examples, and +frequently asked questions. + +## Contributing + +Contributions are welcome! To contribute, please familiarize yourself with +[CONTRIBUTING.md](CONTRIBUTING.md). + +## Coordinated Disclosure + +Keeping user information safe and secure is a top priority, and we welcome the +contribution of external security researchers. If you believe you've found a +security issue in software that is maintained in this repository, please read +[SECURITY.md][] for instructions on submitting a vulnerability report. + +## ramsey/uuid for Enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of ramsey/uuid and thousands of other packages are working with +Tidelift to deliver commercial support and maintenance for the open source +packages you use to build your applications. Save time, reduce risk, and improve +code health, while paying the maintainers of the exact packages you use. +[Learn more.](https://tidelift.com/subscription/pkg/packagist-ramsey-uuid?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + +## Copyright and License + +The ramsey/uuid library is copyright © [Ben Ramsey](https://benramsey.com/) and +licensed for use under the MIT License (MIT). Please see [LICENSE][] for more +information. + +[rfc4122]: http://tools.ietf.org/html/rfc4122 +[conduct]: https://github.com/ramsey/uuid/blob/4.x/CODE_OF_CONDUCT.md +[javauuid]: http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html +[pyuuid]: http://docs.python.org/3/library/uuid.html +[composer]: http://getcomposer.org/ +[contributing.md]: https://github.com/ramsey/uuid/blob/4.x/CONTRIBUTING.md +[security.md]: https://github.com/ramsey/uuid/blob/4.x/SECURITY.md +[license]: https://github.com/ramsey/uuid/blob/4.x/LICENSE diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/composer.json b/vendor/composer/5250d275/ramsey-uuid-60a4c63/composer.json new file mode 100644 index 000000000..9ea4e06b3 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/composer.json @@ -0,0 +1,108 @@ +{ + "name": "ramsey/uuid", + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "license": "MIT", + "type": "library", + "keywords": [ + "uuid", + "identifier", + "guid" + ], + "require": { + "php": "^8.0", + "ext-json": "*", + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", + "ramsey/collection": "^1.2 || ^2.0" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "minimum-stability": "dev", + "prefer-stable": true, + "autoload": { + "psr-4": { + "Ramsey\\Uuid\\": "src/" + }, + "files": [ + "src/functions.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Ramsey\\Uuid\\Benchmark\\": "tests/benchmark/", + "Ramsey\\Uuid\\StaticAnalysis\\": "tests/static-analysis/", + "Ramsey\\Uuid\\Test\\": "tests/" + } + }, + "config": { + "allow-plugins": { + "captainhook/plugin-composer": true, + "ergebnis/composer-normalize": true, + "phpstan/extension-installer": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "ramsey/composer-repl": true + }, + "sort-packages": true + }, + "extra": { + "captainhook": { + "force-install": true + } + }, + "scripts": { + "analyze": [ + "@phpstan", + "@psalm" + ], + "build:clean": "git clean -fX build/", + "lint": "parallel-lint src tests", + "lint:paths": "parallel-lint", + "phpbench": "phpbench run", + "phpcbf": "phpcbf -vpw --cache=build/cache/phpcs.cache", + "phpcs": "phpcs --cache=build/cache/phpcs.cache", + "phpstan": [ + "phpstan analyse --no-progress --memory-limit=1G", + "phpstan analyse -c phpstan-tests.neon --no-progress --memory-limit=1G" + ], + "phpunit": "phpunit --verbose --colors=always", + "phpunit-coverage": "phpunit --verbose --colors=always --coverage-html build/coverage", + "psalm": "psalm --show-info=false --config=psalm.xml", + "test": [ + "@lint", + "@phpbench", + "@phpcs", + "@phpstan", + "@psalm", + "@phpunit" + ] + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/BinaryUtils.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/BinaryUtils.php new file mode 100644 index 000000000..fb8ba9adc --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/BinaryUtils.php @@ -0,0 +1,63 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +/** + * Provides binary math utilities + */ +class BinaryUtils +{ + /** + * Applies the RFC 4122 variant field to the 16-bit clock sequence + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + * + * @param int $clockSeq The 16-bit clock sequence value before the RFC 4122 + * variant is applied + * + * @return int The 16-bit clock sequence multiplexed with the UUID variant + * + * @psalm-pure + */ + public static function applyVariant(int $clockSeq): int + { + $clockSeq = $clockSeq & 0x3fff; + $clockSeq |= 0x8000; + + return $clockSeq; + } + + /** + * Applies the RFC 4122 version number to the 16-bit `time_hi_and_version` field + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + * + * @param int $timeHi The value of the 16-bit `time_hi_and_version` field + * before the RFC 4122 version is applied + * @param int $version The RFC 4122 version to apply to the `time_hi` field + * + * @return int The 16-bit time_hi field of the timestamp multiplexed with + * the UUID version number + * + * @psalm-pure + */ + public static function applyVersion(int $timeHi, int $version): int + { + $timeHi = $timeHi & 0x0fff; + $timeHi |= $version << 12; + + return $timeHi; + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/BuilderCollection.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/BuilderCollection.php new file mode 100644 index 000000000..9df3110fd --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/BuilderCollection.php @@ -0,0 +1,85 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Collection\AbstractCollection; +use Ramsey\Uuid\Converter\Number\GenericNumberConverter; +use Ramsey\Uuid\Converter\Time\GenericTimeConverter; +use Ramsey\Uuid\Converter\Time\PhpTimeConverter; +use Ramsey\Uuid\Guid\GuidBuilder; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Nonstandard\UuidBuilder as NonstandardUuidBuilder; +use Ramsey\Uuid\Rfc4122\UuidBuilder as Rfc4122UuidBuilder; +use Traversable; + +/** + * A collection of UuidBuilderInterface objects + * + * @deprecated this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from + * a pre-`phpstan/phpstan` and pre-`vimeo/psalm` ecosystem, in which type safety had to be mostly enforced + * at runtime: that is no longer necessary, now that you can safely verify your code to be correct, and use + * more generic types like `iterable` instead. + * + * @extends AbstractCollection + */ +class BuilderCollection extends AbstractCollection +{ + public function getType(): string + { + return UuidBuilderInterface::class; + } + + /** + * @psalm-mutation-free + * @psalm-suppress ImpureMethodCall + * @psalm-suppress InvalidTemplateParam + */ + public function getIterator(): Traversable + { + return parent::getIterator(); + } + + /** + * Re-constructs the object from its serialized form + * + * @param string $serialized The serialized PHP string to unserialize into + * a UuidInterface instance + * + * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint + * @psalm-suppress RedundantConditionGivenDocblockType + */ + public function unserialize($serialized): void + { + /** @var array $data */ + $data = unserialize($serialized, [ + 'allowed_classes' => [ + BrickMathCalculator::class, + GenericNumberConverter::class, + GenericTimeConverter::class, + GuidBuilder::class, + NonstandardUuidBuilder::class, + PhpTimeConverter::class, + Rfc4122UuidBuilder::class, + ], + ]); + + $this->data = array_filter( + $data, + function ($unserialized): bool { + return $unserialized instanceof UuidBuilderInterface; + } + ); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/DefaultUuidBuilder.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/DefaultUuidBuilder.php new file mode 100644 index 000000000..7c4a6f837 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/DefaultUuidBuilder.php @@ -0,0 +1,26 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Rfc4122\UuidBuilder as Rfc4122UuidBuilder; + +/** + * @deprecated Transition to {@see Rfc4122UuidBuilder}. + * + * @psalm-immutable + */ +class DefaultUuidBuilder extends Rfc4122UuidBuilder +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/DegradedUuidBuilder.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/DegradedUuidBuilder.php new file mode 100644 index 000000000..20b384212 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/DegradedUuidBuilder.php @@ -0,0 +1,67 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\Time\DegradedTimeConverter; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\DegradedUuid; +use Ramsey\Uuid\Rfc4122\Fields as Rfc4122Fields; +use Ramsey\Uuid\UuidInterface; + +/** + * @deprecated DegradedUuid instances are no longer necessary to support 32-bit + * systems. Transition to {@see DefaultUuidBuilder}. + * + * @psalm-immutable + */ +class DegradedUuidBuilder implements UuidBuilderInterface +{ + private TimeConverterInterface $timeConverter; + + /** + * @param NumberConverterInterface $numberConverter The number converter to + * use when constructing the DegradedUuid + * @param TimeConverterInterface|null $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to Unix timestamps + */ + public function __construct( + private NumberConverterInterface $numberConverter, + ?TimeConverterInterface $timeConverter = null + ) { + $this->timeConverter = $timeConverter ?: new DegradedTimeConverter(); + } + + /** + * Builds and returns a DegradedUuid + * + * @param CodecInterface $codec The codec to use for building this DegradedUuid instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return DegradedUuid The DegradedUuidBuild returns an instance of Ramsey\Uuid\DegradedUuid + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface + { + return new DegradedUuid( + new Rfc4122Fields($bytes), + $this->numberConverter, + $codec, + $this->timeConverter + ); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/FallbackBuilder.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/FallbackBuilder.php new file mode 100644 index 000000000..ba5f31fbe --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/FallbackBuilder.php @@ -0,0 +1,68 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Exception\BuilderNotFoundException; +use Ramsey\Uuid\Exception\UnableToBuildUuidException; +use Ramsey\Uuid\UuidInterface; + +/** + * FallbackBuilder builds a UUID by stepping through a list of UUID builders + * until a UUID can be constructed without exceptions + * + * @psalm-immutable + */ +class FallbackBuilder implements UuidBuilderInterface +{ + /** + * @param iterable $builders An array of UUID builders + */ + public function __construct(private iterable $builders) + { + } + + /** + * Builds and returns a UuidInterface instance using the first builder that + * succeeds + * + * @param CodecInterface $codec The codec to use for building this instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return UuidInterface an instance of a UUID object + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface + { + $lastBuilderException = null; + + foreach ($this->builders as $builder) { + try { + return $builder->build($codec, $bytes); + } catch (UnableToBuildUuidException $exception) { + $lastBuilderException = $exception; + + continue; + } + } + + throw new BuilderNotFoundException( + 'Could not find a suitable builder for the provided codec and fields', + 0, + $lastBuilderException + ); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/UuidBuilderInterface.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/UuidBuilderInterface.php new file mode 100644 index 000000000..8e58b2b43 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Builder/UuidBuilderInterface.php @@ -0,0 +1,39 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\UuidInterface; + +/** + * A UUID builder builds instances of UuidInterface + * + * @psalm-immutable + */ +interface UuidBuilderInterface +{ + /** + * Builds and returns a UuidInterface + * + * @param CodecInterface $codec The codec to use for building this UuidInterface instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return UuidInterface Implementations may choose to return more specific + * instances of UUIDs that implement UuidInterface + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface; +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/CodecInterface.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/CodecInterface.php new file mode 100644 index 000000000..85f8a7e99 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/CodecInterface.php @@ -0,0 +1,71 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\UuidInterface; + +/** + * A codec encodes and decodes a UUID according to defined rules + * + * @psalm-immutable + */ +interface CodecInterface +{ + /** + * Returns a hexadecimal string representation of a UuidInterface + * + * @param UuidInterface $uuid The UUID for which to create a hexadecimal + * string representation + * + * @return string Hexadecimal string representation of a UUID + * + * @psalm-return non-empty-string + */ + public function encode(UuidInterface $uuid): string; + + /** + * Returns a binary string representation of a UuidInterface + * + * @param UuidInterface $uuid The UUID for which to create a binary string + * representation + * + * @return string Binary string representation of a UUID + * + * @psalm-return non-empty-string + */ + public function encodeBinary(UuidInterface $uuid): string; + + /** + * Returns a UuidInterface derived from a hexadecimal string representation + * + * @param string $encodedUuid The hexadecimal string representation to + * convert into a UuidInterface instance + * + * @return UuidInterface An instance of a UUID decoded from a hexadecimal + * string representation + */ + public function decode(string $encodedUuid): UuidInterface; + + /** + * Returns a UuidInterface derived from a binary string representation + * + * @param string $bytes The binary string representation to convert into a + * UuidInterface instance + * + * @return UuidInterface An instance of a UUID decoded from a binary string + * representation + */ + public function decodeBytes(string $bytes): UuidInterface; +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/GuidStringCodec.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/GuidStringCodec.php new file mode 100644 index 000000000..04872e0bc --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/GuidStringCodec.php @@ -0,0 +1,76 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Guid\Guid; +use Ramsey\Uuid\UuidInterface; + +use function bin2hex; +use function sprintf; +use function substr; + +/** + * GuidStringCodec encodes and decodes globally unique identifiers (GUID) + * + * @see Guid + * + * @psalm-immutable + */ +class GuidStringCodec extends StringCodec +{ + public function encode(UuidInterface $uuid): string + { + $hex = bin2hex($uuid->getFields()->getBytes()); + + /** @var non-empty-string */ + return sprintf( + '%02s%02s%02s%02s-%02s%02s-%02s%02s-%04s-%012s', + substr($hex, 6, 2), + substr($hex, 4, 2), + substr($hex, 2, 2), + substr($hex, 0, 2), + substr($hex, 10, 2), + substr($hex, 8, 2), + substr($hex, 14, 2), + substr($hex, 12, 2), + substr($hex, 16, 4), + substr($hex, 20), + ); + } + + public function decode(string $encodedUuid): UuidInterface + { + $bytes = $this->getBytes($encodedUuid); + + return $this->getBuilder()->build($this, $this->swapBytes($bytes)); + } + + public function decodeBytes(string $bytes): UuidInterface + { + // Specifically call parent::decode to preserve correct byte order + return parent::decode(bin2hex($bytes)); + } + + /** + * Swaps bytes according to the GUID rules + */ + private function swapBytes(string $bytes): string + { + return $bytes[3] . $bytes[2] . $bytes[1] . $bytes[0] + . $bytes[5] . $bytes[4] + . $bytes[7] . $bytes[6] + . substr($bytes, 8); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/OrderedTimeCodec.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/OrderedTimeCodec.php new file mode 100644 index 000000000..0798ebc4d --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/OrderedTimeCodec.php @@ -0,0 +1,113 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; + +use function strlen; +use function substr; + +/** + * OrderedTimeCodec encodes and decodes a UUID, optimizing the byte order for + * more efficient storage + * + * For binary representations of version 1 UUID, this codec may be used to + * reorganize the time fields, making the UUID closer to sequential when storing + * the bytes. According to Percona, this optimization can improve database + * INSERTs and SELECTs using the UUID column as a key. + * + * The string representation of the UUID will remain unchanged. Only the binary + * representation is reordered. + * + * **PLEASE NOTE:** Binary representations of UUIDs encoded with this codec must + * be decoded with this codec. Decoding using another codec can result in + * malformed UUIDs. + * + * @link https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/ Storing UUID Values in MySQL + * + * @psalm-immutable + */ +class OrderedTimeCodec extends StringCodec +{ + /** + * Returns a binary string representation of a UUID, with the timestamp + * fields rearranged for optimized storage + * + * @inheritDoc + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encodeBinary(UuidInterface $uuid): string + { + if ( + !($uuid->getFields() instanceof Rfc4122FieldsInterface) + || $uuid->getFields()->getVersion() !== Uuid::UUID_TYPE_TIME + ) { + throw new InvalidArgumentException( + 'Expected RFC 4122 version 1 (time-based) UUID' + ); + } + + $bytes = $uuid->getFields()->getBytes(); + + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $bytes[6] . $bytes[7] + . $bytes[4] . $bytes[5] + . $bytes[0] . $bytes[1] . $bytes[2] . $bytes[3] + . substr($bytes, 8); + } + + /** + * Returns a UuidInterface derived from an ordered-time binary string + * representation + * + * @throws InvalidArgumentException if $bytes is an invalid length + * + * @inheritDoc + */ + public function decodeBytes(string $bytes): UuidInterface + { + if (strlen($bytes) !== 16) { + throw new InvalidArgumentException( + '$bytes string should contain 16 characters.' + ); + } + + // Rearrange the bytes to their original order. + $rearrangedBytes = $bytes[4] . $bytes[5] . $bytes[6] . $bytes[7] + . $bytes[2] . $bytes[3] + . $bytes[0] . $bytes[1] + . substr($bytes, 8); + + $uuid = parent::decodeBytes($rearrangedBytes); + + if ( + !($uuid->getFields() instanceof Rfc4122FieldsInterface) + || $uuid->getFields()->getVersion() !== Uuid::UUID_TYPE_TIME + ) { + throw new UnsupportedOperationException( + 'Attempting to decode a non-time-based UUID using ' + . 'OrderedTimeCodec' + ); + } + + return $uuid; + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/StringCodec.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/StringCodec.php new file mode 100644 index 000000000..95f38d2e8 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/StringCodec.php @@ -0,0 +1,131 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Exception\InvalidUuidStringException; +use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; + +use function bin2hex; +use function hex2bin; +use function implode; +use function sprintf; +use function str_replace; +use function strlen; +use function substr; + +/** + * StringCodec encodes and decodes RFC 4122 UUIDs + * + * @link http://tools.ietf.org/html/rfc4122 + * + * @psalm-immutable + */ +class StringCodec implements CodecInterface +{ + /** + * Constructs a StringCodec + * + * @param UuidBuilderInterface $builder The builder to use when encoding UUIDs + */ + public function __construct(private UuidBuilderInterface $builder) + { + } + + public function encode(UuidInterface $uuid): string + { + $hex = bin2hex($uuid->getFields()->getBytes()); + + /** @var non-empty-string */ + return sprintf( + '%08s-%04s-%04s-%04s-%012s', + substr($hex, 0, 8), + substr($hex, 8, 4), + substr($hex, 12, 4), + substr($hex, 16, 4), + substr($hex, 20), + ); + } + + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encodeBinary(UuidInterface $uuid): string + { + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $uuid->getFields()->getBytes(); + } + + /** + * @throws InvalidUuidStringException + * + * @inheritDoc + */ + public function decode(string $encodedUuid): UuidInterface + { + return $this->builder->build($this, $this->getBytes($encodedUuid)); + } + + public function decodeBytes(string $bytes): UuidInterface + { + if (strlen($bytes) !== 16) { + throw new InvalidArgumentException( + '$bytes string should contain 16 characters.' + ); + } + + return $this->builder->build($this, $bytes); + } + + /** + * Returns the UUID builder + */ + protected function getBuilder(): UuidBuilderInterface + { + return $this->builder; + } + + /** + * Returns a byte string of the UUID + */ + protected function getBytes(string $encodedUuid): string + { + $parsedUuid = str_replace( + ['urn:', 'uuid:', 'URN:', 'UUID:', '{', '}', '-'], + '', + $encodedUuid + ); + + $components = [ + substr($parsedUuid, 0, 8), + substr($parsedUuid, 8, 4), + substr($parsedUuid, 12, 4), + substr($parsedUuid, 16, 4), + substr($parsedUuid, 20), + ]; + + if (!Uuid::isValid(implode('-', $components))) { + throw new InvalidUuidStringException( + 'Invalid UUID string: ' . $encodedUuid + ); + } + + return (string) hex2bin($parsedUuid); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/TimestampFirstCombCodec.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/TimestampFirstCombCodec.php new file mode 100644 index 000000000..0e0042d0a --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/TimestampFirstCombCodec.php @@ -0,0 +1,113 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Exception\InvalidUuidStringException; +use Ramsey\Uuid\UuidInterface; + +use function bin2hex; +use function sprintf; +use function substr; +use function substr_replace; + +/** + * TimestampFirstCombCodec encodes and decodes COMBs, with the timestamp as the + * first 48 bits + * + * In contrast with the TimestampLastCombCodec, the TimestampFirstCombCodec + * adds the timestamp to the first 48 bits of the COMB. To generate a + * timestamp-first COMB, set the TimestampFirstCombCodec as the codec, along + * with the CombGenerator as the random generator. + * + * ``` php + * $factory = new UuidFactory(); + * + * $factory->setCodec(new TimestampFirstCombCodec($factory->getUuidBuilder())); + * + * $factory->setRandomGenerator(new CombGenerator( + * $factory->getRandomGenerator(), + * $factory->getNumberConverter() + * )); + * + * $timestampFirstComb = $factory->uuid4(); + * ``` + * + * @link https://www.informit.com/articles/printerfriendly/25862 The Cost of GUIDs as Primary Keys + * + * @psalm-immutable + */ +class TimestampFirstCombCodec extends StringCodec +{ + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encode(UuidInterface $uuid): string + { + $bytes = $this->swapBytes($uuid->getFields()->getBytes()); + + return sprintf( + '%08s-%04s-%04s-%04s-%012s', + bin2hex(substr($bytes, 0, 4)), + bin2hex(substr($bytes, 4, 2)), + bin2hex(substr($bytes, 6, 2)), + bin2hex(substr($bytes, 8, 2)), + bin2hex(substr($bytes, 10)) + ); + } + + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encodeBinary(UuidInterface $uuid): string + { + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $this->swapBytes($uuid->getFields()->getBytes()); + } + + /** + * @throws InvalidUuidStringException + * + * @inheritDoc + */ + public function decode(string $encodedUuid): UuidInterface + { + $bytes = $this->getBytes($encodedUuid); + + return $this->getBuilder()->build($this, $this->swapBytes($bytes)); + } + + public function decodeBytes(string $bytes): UuidInterface + { + return $this->getBuilder()->build($this, $this->swapBytes($bytes)); + } + + /** + * Swaps bytes according to the timestamp-first COMB rules + */ + private function swapBytes(string $bytes): string + { + $first48Bits = substr($bytes, 0, 6); + $last48Bits = substr($bytes, -6); + + $bytes = substr_replace($bytes, $last48Bits, 0, 6); + $bytes = substr_replace($bytes, $first48Bits, -6); + + return $bytes; + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/TimestampLastCombCodec.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/TimestampLastCombCodec.php new file mode 100644 index 000000000..4856deaed --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Codec/TimestampLastCombCodec.php @@ -0,0 +1,51 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +/** + * TimestampLastCombCodec encodes and decodes COMBs, with the timestamp as the + * last 48 bits + * + * The CombGenerator when used with the StringCodec (and, by proxy, the + * TimestampLastCombCodec) adds the timestamp to the last 48 bits of the COMB. + * The TimestampLastCombCodec is provided for the sake of consistency. In + * practice, it is identical to the standard StringCodec but, it may be used + * with the CombGenerator for additional context when reading code. + * + * Consider the following code. By default, the codec used by UuidFactory is the + * StringCodec, but here, we explicitly set the TimestampLastCombCodec. It is + * redundant, but it is clear that we intend this COMB to be generated with the + * timestamp appearing at the end. + * + * ``` php + * $factory = new UuidFactory(); + * + * $factory->setCodec(new TimestampLastCombCodec($factory->getUuidBuilder())); + * + * $factory->setRandomGenerator(new CombGenerator( + * $factory->getRandomGenerator(), + * $factory->getNumberConverter() + * )); + * + * $timestampLastComb = $factory->uuid4(); + * ``` + * + * @link https://www.informit.com/articles/printerfriendly/25862 The Cost of GUIDs as Primary Keys + * + * @psalm-immutable + */ +class TimestampLastCombCodec extends StringCodec +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/BigNumberConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/BigNumberConverter.php new file mode 100644 index 000000000..99b88b3bf --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/BigNumberConverter.php @@ -0,0 +1,54 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Number; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Math\BrickMathCalculator; + +/** + * Previously used to integrate moontoast/math as a bignum arithmetic library, + * BigNumberConverter is deprecated in favor of GenericNumberConverter + * + * @deprecated Transition to {@see GenericNumberConverter}. + * + * @psalm-immutable + */ +class BigNumberConverter implements NumberConverterInterface +{ + private NumberConverterInterface $converter; + + public function __construct() + { + $this->converter = new GenericNumberConverter(new BrickMathCalculator()); + } + + /** + * @inheritDoc + * @psalm-pure + */ + public function fromHex(string $hex): string + { + return $this->converter->fromHex($hex); + } + + /** + * @inheritDoc + * @psalm-pure + */ + public function toHex(string $number): string + { + return $this->converter->toHex($number); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/DegradedNumberConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/DegradedNumberConverter.php new file mode 100644 index 000000000..c9cfa6864 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/DegradedNumberConverter.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Number; + +/** + * @deprecated DegradedNumberConverter is no longer necessary for converting + * numbers on 32-bit systems. Transition to {@see GenericNumberConverter}. + * + * @psalm-immutable + */ +class DegradedNumberConverter extends BigNumberConverter +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/GenericNumberConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/GenericNumberConverter.php new file mode 100644 index 000000000..043c3c43d --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Number/GenericNumberConverter.php @@ -0,0 +1,57 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Number; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Type\Integer as IntegerObject; + +/** + * GenericNumberConverter uses the provided calculator to convert decimal + * numbers to and from hexadecimal values + * + * @psalm-immutable + */ +class GenericNumberConverter implements NumberConverterInterface +{ + public function __construct(private CalculatorInterface $calculator) + { + } + + /** + * @inheritDoc + * @psalm-pure + * @psalm-return numeric-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function fromHex(string $hex): string + { + return $this->calculator->fromBase($hex, 16)->toString(); + } + + /** + * @inheritDoc + * @psalm-pure + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function toHex(string $number): string + { + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $this->calculator->toBase(new IntegerObject($number), 16); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/NumberConverterInterface.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/NumberConverterInterface.php new file mode 100644 index 000000000..b33ec31f9 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/NumberConverterInterface.php @@ -0,0 +1,57 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter; + +/** + * A number converter converts UUIDs from hexadecimal characters into + * representations of integers and vice versa + * + * @psalm-immutable + */ +interface NumberConverterInterface +{ + /** + * Converts a hexadecimal number into an string integer representation of + * the number + * + * The integer representation returned is a string representation of the + * integer, to accommodate unsigned integers greater than PHP_INT_MAX. + * + * @param string $hex The hexadecimal string representation to convert + * + * @return string String representation of an integer + * + * @psalm-return numeric-string + * + * @psalm-pure + */ + public function fromHex(string $hex): string; + + /** + * Converts a string integer representation into a hexadecimal string + * representation of the number + * + * @param string $number A string integer representation to convert; this + * must be a numeric string to accommodate unsigned integers greater + * than PHP_INT_MAX. + * + * @return string Hexadecimal string + * + * @psalm-return non-empty-string + * + * @psalm-pure + */ + public function toHex(string $number): string; +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/BigNumberTimeConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/BigNumberTimeConverter.php new file mode 100644 index 000000000..b6bca9ee2 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/BigNumberTimeConverter.php @@ -0,0 +1,48 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Time; + +/** + * Previously used to integrate moontoast/math as a bignum arithmetic library, + * BigNumberTimeConverter is deprecated in favor of GenericTimeConverter + * + * @deprecated Transition to {@see GenericTimeConverter}. + * + * @psalm-immutable + */ +class BigNumberTimeConverter implements TimeConverterInterface +{ + private TimeConverterInterface $converter; + + public function __construct() + { + $this->converter = new GenericTimeConverter(new BrickMathCalculator()); + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + return $this->converter->calculateTime($seconds, $microseconds); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + return $this->converter->convertTime($uuidTimestamp); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/DegradedTimeConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/DegradedTimeConverter.php new file mode 100644 index 000000000..cdc28752d --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/DegradedTimeConverter.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +/** + * @deprecated DegradedTimeConverter is no longer necessary for converting + * time on 32-bit systems. Transition to {@see GenericTimeConverter}. + * + * @psalm-immutable + */ +class DegradedTimeConverter extends BigNumberTimeConverter +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/GenericTimeConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/GenericTimeConverter.php new file mode 100644 index 000000000..f6b60abbe --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/GenericTimeConverter.php @@ -0,0 +1,118 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Math\RoundingMode; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +use function explode; +use function str_pad; + +use const STR_PAD_LEFT; + +/** + * GenericTimeConverter uses the provided calculator to calculate and convert + * time values + * + * @psalm-immutable + */ +class GenericTimeConverter implements TimeConverterInterface +{ + /** + * The number of 100-nanosecond intervals from the Gregorian calendar epoch + * to the Unix epoch. + */ + private const GREGORIAN_TO_UNIX_INTERVALS = '122192928000000000'; + + /** + * The number of 100-nanosecond intervals in one second. + */ + private const SECOND_INTERVALS = '10000000'; + + /** + * The number of 100-nanosecond intervals in one microsecond. + */ + private const MICROSECOND_INTERVALS = '10'; + + public function __construct(private CalculatorInterface $calculator) + { + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + $timestamp = new Time($seconds, $microseconds); + + // Convert the seconds into a count of 100-nanosecond intervals. + $sec = $this->calculator->multiply( + $timestamp->getSeconds(), + new IntegerObject(self::SECOND_INTERVALS) + ); + + // Convert the microseconds into a count of 100-nanosecond intervals. + $usec = $this->calculator->multiply( + $timestamp->getMicroseconds(), + new IntegerObject(self::MICROSECOND_INTERVALS) + ); + + // Combine the seconds and microseconds intervals and add the count of + // 100-nanosecond intervals from the Gregorian calendar epoch to the + // Unix epoch. This gives us the correct count of 100-nanosecond + // intervals since the Gregorian calendar epoch for the given seconds + // and microseconds. + /** @var IntegerObject $uuidTime */ + $uuidTime = $this->calculator->add( + $sec, + $usec, + new IntegerObject(self::GREGORIAN_TO_UNIX_INTERVALS) + ); + + $uuidTimeHex = str_pad( + $this->calculator->toHexadecimal($uuidTime)->toString(), + 16, + '0', + STR_PAD_LEFT + ); + + return new Hexadecimal($uuidTimeHex); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + // From the total, subtract the number of 100-nanosecond intervals from + // the Gregorian calendar epoch to the Unix epoch. This gives us the + // number of 100-nanosecond intervals from the Unix epoch, which also + // includes the microtime. + $epochNanoseconds = $this->calculator->subtract( + $this->calculator->toInteger($uuidTimestamp), + new IntegerObject(self::GREGORIAN_TO_UNIX_INTERVALS) + ); + + // Convert the 100-nanosecond intervals into seconds and microseconds. + $unixTimestamp = $this->calculator->divide( + RoundingMode::HALF_UP, + 6, + $epochNanoseconds, + new IntegerObject(self::SECOND_INTERVALS) + ); + + $split = explode('.', (string) $unixTimestamp, 2); + + return new Time($split[0], $split[1] ?? 0); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/PhpTimeConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/PhpTimeConverter.php new file mode 100644 index 000000000..66009f14d --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/PhpTimeConverter.php @@ -0,0 +1,172 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +use function count; +use function dechex; +use function explode; +use function is_float; +use function is_int; +use function str_pad; +use function strlen; +use function substr; + +use const STR_PAD_LEFT; +use const STR_PAD_RIGHT; + +/** + * PhpTimeConverter uses built-in PHP functions and standard math operations + * available to the PHP programming language to provide facilities for + * converting parts of time into representations that may be used in UUIDs + * + * @psalm-immutable + */ +class PhpTimeConverter implements TimeConverterInterface +{ + /** + * The number of 100-nanosecond intervals from the Gregorian calendar epoch + * to the Unix epoch. + */ + private const GREGORIAN_TO_UNIX_INTERVALS = 0x01b21dd213814000; + + /** + * The number of 100-nanosecond intervals in one second. + */ + private const SECOND_INTERVALS = 10000000; + + /** + * The number of 100-nanosecond intervals in one microsecond. + */ + private const MICROSECOND_INTERVALS = 10; + + private int $phpPrecision; + private CalculatorInterface $calculator; + private TimeConverterInterface $fallbackConverter; + + public function __construct( + ?CalculatorInterface $calculator = null, + ?TimeConverterInterface $fallbackConverter = null + ) { + if ($calculator === null) { + $calculator = new BrickMathCalculator(); + } + + if ($fallbackConverter === null) { + $fallbackConverter = new GenericTimeConverter($calculator); + } + + $this->calculator = $calculator; + $this->fallbackConverter = $fallbackConverter; + $this->phpPrecision = (int) ini_get('precision'); + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + $seconds = new IntegerObject($seconds); + $microseconds = new IntegerObject($microseconds); + + // Calculate the count of 100-nanosecond intervals since the Gregorian + // calendar epoch for the given seconds and microseconds. + $uuidTime = ((int) $seconds->toString() * self::SECOND_INTERVALS) + + ((int) $microseconds->toString() * self::MICROSECOND_INTERVALS) + + self::GREGORIAN_TO_UNIX_INTERVALS; + + // Check to see whether we've overflowed the max/min integer size. + // If so, we will default to a different time converter. + /** @psalm-suppress RedundantCondition */ + if (!is_int($uuidTime)) { + return $this->fallbackConverter->calculateTime( + $seconds->toString(), + $microseconds->toString() + ); + } + + return new Hexadecimal(str_pad(dechex($uuidTime), 16, '0', STR_PAD_LEFT)); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + $timestamp = $this->calculator->toInteger($uuidTimestamp); + + // Convert the 100-nanosecond intervals into seconds and microseconds. + $splitTime = $this->splitTime( + ((int) $timestamp->toString() - self::GREGORIAN_TO_UNIX_INTERVALS) + / self::SECOND_INTERVALS + ); + + if (count($splitTime) === 0) { + return $this->fallbackConverter->convertTime($uuidTimestamp); + } + + return new Time($splitTime['sec'], $splitTime['usec']); + } + + /** + * @param float|int $time The time to split into seconds and microseconds + * + * @return string[] + */ + private function splitTime(float | int $time): array + { + $split = explode('.', (string) $time, 2); + + // If the $time value is a float but $split only has 1 element, then the + // float math was rounded up to the next second, so we want to return + // an empty array to allow use of the fallback converter. + if (is_float($time) && count($split) === 1) { + return []; + } + + if (count($split) === 1) { + return [ + 'sec' => $split[0], + 'usec' => '0', + ]; + } + + // If the microseconds are less than six characters AND the length of + // the number is greater than or equal to the PHP precision, then it's + // possible that we lost some precision for the microseconds. Return an + // empty array, so that we can choose to use the fallback converter. + if (strlen($split[1]) < 6 && strlen((string) $time) >= $this->phpPrecision) { + return []; + } + + $microseconds = $split[1]; + + // Ensure the microseconds are no longer than 6 digits. If they are, + // truncate the number to the first 6 digits and round up, if needed. + if (strlen($microseconds) > 6) { + $roundingDigit = (int) substr($microseconds, 6, 1); + $microseconds = (int) substr($microseconds, 0, 6); + + if ($roundingDigit >= 5) { + $microseconds++; + } + } + + return [ + 'sec' => $split[0], + 'usec' => str_pad((string) $microseconds, 6, '0', STR_PAD_RIGHT), + ]; + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/UnixTimeConverter.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/UnixTimeConverter.php new file mode 100644 index 000000000..4d6d0a8a7 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/Time/UnixTimeConverter.php @@ -0,0 +1,90 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Math\RoundingMode; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +use function explode; +use function str_pad; + +use const STR_PAD_LEFT; + +/** + * UnixTimeConverter converts Unix Epoch timestamps to/from hexadecimal values + * consisting of milliseconds elapsed since the Unix Epoch + * + * @psalm-immutable + */ +class UnixTimeConverter implements TimeConverterInterface +{ + private const MILLISECONDS = 1000; + + public function __construct(private CalculatorInterface $calculator) + { + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + $timestamp = new Time($seconds, $microseconds); + + // Convert the seconds into milliseconds. + $sec = $this->calculator->multiply( + $timestamp->getSeconds(), + new IntegerObject(self::MILLISECONDS), + ); + + // Convert the microseconds into milliseconds; the scale is zero because + // we need to discard the fractional part. + $usec = $this->calculator->divide( + RoundingMode::DOWN, // Always round down to stay in the previous millisecond. + 0, + $timestamp->getMicroseconds(), + new IntegerObject(self::MILLISECONDS), + ); + + /** @var IntegerObject $unixTime */ + $unixTime = $this->calculator->add($sec, $usec); + + $unixTimeHex = str_pad( + $this->calculator->toHexadecimal($unixTime)->toString(), + 12, + '0', + STR_PAD_LEFT + ); + + return new Hexadecimal($unixTimeHex); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + $milliseconds = $this->calculator->toInteger($uuidTimestamp); + + $unixTimestamp = $this->calculator->divide( + RoundingMode::HALF_UP, + 6, + $milliseconds, + new IntegerObject(self::MILLISECONDS) + ); + + $split = explode('.', (string) $unixTimestamp, 2); + + return new Time($split[0], $split[1] ?? '0'); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/TimeConverterInterface.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/TimeConverterInterface.php new file mode 100644 index 000000000..1e8480701 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Converter/TimeConverterInterface.php @@ -0,0 +1,58 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter; + +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Time; + +/** + * A time converter converts timestamps into representations that may be used + * in UUIDs + * + * @psalm-immutable + */ +interface TimeConverterInterface +{ + /** + * Uses the provided seconds and micro-seconds to calculate the count of + * 100-nanosecond intervals since UTC 00:00:00.00, 15 October 1582, for + * RFC 4122 variant UUIDs + * + * @link http://tools.ietf.org/html/rfc4122#section-4.2.2 RFC 4122, § 4.2.2: Generation Details + * + * @param string $seconds A string representation of the number of seconds + * since the Unix epoch for the time to calculate + * @param string $microseconds A string representation of the micro-seconds + * associated with the time to calculate + * + * @return Hexadecimal The full UUID timestamp as a Hexadecimal value + * + * @psalm-pure + */ + public function calculateTime(string $seconds, string $microseconds): Hexadecimal; + + /** + * Converts a timestamp extracted from a UUID to a Unix timestamp + * + * @param Hexadecimal $uuidTimestamp A hexadecimal representation of a UUID + * timestamp; a UUID timestamp is a count of 100-nanosecond intervals + * since UTC 00:00:00.00, 15 October 1582. + * + * @return Time An instance of {@see Time} + * + * @psalm-pure + */ + public function convertTime(Hexadecimal $uuidTimestamp): Time; +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DegradedUuid.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DegradedUuid.php new file mode 100644 index 000000000..9166042cc --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DegradedUuid.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +/** + * @deprecated DegradedUuid is no longer necessary to represent UUIDs on 32-bit + * systems. Transition typehints to {@see UuidInterface}. + * + * @psalm-immutable + */ +class DegradedUuid extends Uuid +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DeprecatedUuidInterface.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DeprecatedUuidInterface.php new file mode 100644 index 000000000..ac01a79cf --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DeprecatedUuidInterface.php @@ -0,0 +1,140 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use DateTimeInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; + +/** + * This interface encapsulates deprecated methods for ramsey/uuid + * + * @psalm-immutable + */ +interface DeprecatedUuidInterface +{ + /** + * @deprecated This method will be removed in 5.0.0. There is no alternative + * recommendation, so plan accordingly. + */ + public function getNumberConverter(): NumberConverterInterface; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. + * + * @return string[] + */ + public function getFieldsHex(): array; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}. + */ + public function getClockSeqHiAndReservedHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}. + */ + public function getClockSeqLowHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}. + */ + public function getClockSequenceHex(): string; + + /** + * @deprecated In ramsey/uuid version 5.0.0, this will be removed from the + * interface. It is available at {@see UuidV1::getDateTime()}. + */ + public function getDateTime(): DateTimeInterface; + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getLeastSignificantBitsHex(): string; + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getMostSignificantBitsHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}. + */ + public function getNodeHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}. + */ + public function getTimeHiAndVersionHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}. + */ + public function getTimeLowHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}. + */ + public function getTimeMidHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}. + */ + public function getTimestampHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}. + */ + public function getVariant(): ?int; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}. + */ + public function getVersion(): ?int; +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DeprecatedUuidMethodsTrait.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DeprecatedUuidMethodsTrait.php new file mode 100644 index 000000000..d3fbb0ccb --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/DeprecatedUuidMethodsTrait.php @@ -0,0 +1,360 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use DateTimeImmutable; +use DateTimeInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Exception\DateTimeException; +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Throwable; + +use function str_pad; +use function substr; + +use const STR_PAD_LEFT; + +/** + * This trait encapsulates deprecated methods for ramsey/uuid; this trait and + * its methods will be removed in ramsey/uuid 5.0.0. + * + * @deprecated This trait and its methods will be removed in ramsey/uuid 5.0.0. + * + * @psalm-immutable + */ +trait DeprecatedUuidMethodsTrait +{ + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getClockSeqHiAndReserved(): string + { + return $this->numberConverter->fromHex($this->fields->getClockSeqHiAndReserved()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}. + */ + public function getClockSeqHiAndReservedHex(): string + { + return $this->fields->getClockSeqHiAndReserved()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getClockSeqLow(): string + { + return $this->numberConverter->fromHex($this->fields->getClockSeqLow()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}. + */ + public function getClockSeqLowHex(): string + { + return $this->fields->getClockSeqLow()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getClockSequence(): string + { + return $this->numberConverter->fromHex($this->fields->getClockSeq()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}. + */ + public function getClockSequenceHex(): string + { + return $this->fields->getClockSeq()->toString(); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no alternative + * recommendation, so plan accordingly. + */ + public function getNumberConverter(): NumberConverterInterface + { + return $this->numberConverter; + } + + /** + * @deprecated In ramsey/uuid version 5.0.0, this will be removed. + * It is available at {@see UuidV1::getDateTime()}. + * + * @return DateTimeImmutable An immutable instance of DateTimeInterface + * + * @throws UnsupportedOperationException if UUID is not time-based + * @throws DateTimeException if DateTime throws an exception/error + */ + public function getDateTime(): DateTimeInterface + { + if ($this->fields->getVersion() !== 1) { + throw new UnsupportedOperationException('Not a time-based UUID'); + } + + $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); + + try { + return new DateTimeImmutable( + '@' + . $time->getSeconds()->toString() + . '.' + . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) + ); + } catch (Throwable $e) { + throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); + } + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. + * + * @return string[] + */ + public function getFieldsHex(): array + { + return [ + 'time_low' => $this->fields->getTimeLow()->toString(), + 'time_mid' => $this->fields->getTimeMid()->toString(), + 'time_hi_and_version' => $this->fields->getTimeHiAndVersion()->toString(), + 'clock_seq_hi_and_reserved' => $this->fields->getClockSeqHiAndReserved()->toString(), + 'clock_seq_low' => $this->fields->getClockSeqLow()->toString(), + 'node' => $this->fields->getNode()->toString(), + ]; + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getLeastSignificantBits(): string + { + $leastSignificantHex = substr($this->getHex()->toString(), 16); + + return $this->numberConverter->fromHex($leastSignificantHex); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getLeastSignificantBitsHex(): string + { + return substr($this->getHex()->toString(), 16); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getMostSignificantBits(): string + { + $mostSignificantHex = substr($this->getHex()->toString(), 0, 16); + + return $this->numberConverter->fromHex($mostSignificantHex); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getMostSignificantBitsHex(): string + { + return substr($this->getHex()->toString(), 0, 16); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. + */ + public function getNode(): string + { + return $this->numberConverter->fromHex($this->fields->getNode()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}. + */ + public function getNodeHex(): string + { + return $this->fields->getNode()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getTimeHiAndVersion(): string + { + return $this->numberConverter->fromHex($this->fields->getTimeHiAndVersion()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}. + */ + public function getTimeHiAndVersionHex(): string + { + return $this->fields->getTimeHiAndVersion()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. + */ + public function getTimeLow(): string + { + return $this->numberConverter->fromHex($this->fields->getTimeLow()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}. + */ + public function getTimeLowHex(): string + { + return $this->fields->getTimeLow()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. + */ + public function getTimeMid(): string + { + return $this->numberConverter->fromHex($this->fields->getTimeMid()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}. + */ + public function getTimeMidHex(): string + { + return $this->fields->getTimeMid()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()} and use + * the arbitrary-precision math library of your choice to convert it to + * a string integer. + */ + public function getTimestamp(): string + { + if ($this->fields->getVersion() !== 1) { + throw new UnsupportedOperationException('Not a time-based UUID'); + } + + return $this->numberConverter->fromHex($this->fields->getTimestamp()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}. + */ + public function getTimestampHex(): string + { + if ($this->fields->getVersion() !== 1) { + throw new UnsupportedOperationException('Not a time-based UUID'); + } + + return $this->fields->getTimestamp()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}. + */ + public function getVariant(): ?int + { + return $this->fields->getVariant(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}. + */ + public function getVersion(): ?int + { + return $this->fields->getVersion(); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/BuilderNotFoundException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/BuilderNotFoundException.php new file mode 100644 index 000000000..220ffedb8 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/BuilderNotFoundException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that no suitable builder could be found + */ +class BuilderNotFoundException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/DateTimeException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/DateTimeException.php new file mode 100644 index 000000000..5f0e658bf --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/DateTimeException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the PHP DateTime extension encountered an exception/error + */ +class DateTimeException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/DceSecurityException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/DceSecurityException.php new file mode 100644 index 000000000..e6d800136 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/DceSecurityException.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate an exception occurred while dealing with DCE Security + * (version 2) UUIDs + */ +class DceSecurityException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidArgumentException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidArgumentException.php new file mode 100644 index 000000000..2a1fa3ac2 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidArgumentException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use InvalidArgumentException as PhpInvalidArgumentException; + +/** + * Thrown to indicate that the argument received is not valid + */ +class InvalidArgumentException extends PhpInvalidArgumentException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidBytesException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidBytesException.php new file mode 100644 index 000000000..1c94f6596 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidBytesException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the bytes being operated on are invalid in some way + */ +class InvalidBytesException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidUuidStringException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidUuidStringException.php new file mode 100644 index 000000000..6d9758166 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/InvalidUuidStringException.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +/** + * Thrown to indicate that the string received is not a valid UUID + * + * The InvalidArgumentException that this extends is the ramsey/uuid version + * of this exception. It exists in the same namespace as this class. + */ +class InvalidUuidStringException extends InvalidArgumentException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/NameException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/NameException.php new file mode 100644 index 000000000..fd96a1faf --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/NameException.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that an error occurred while attempting to hash a + * namespace and name + */ +class NameException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/NodeException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/NodeException.php new file mode 100644 index 000000000..0dbdd50b4 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/NodeException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that attempting to fetch or create a node ID encountered an error + */ +class NodeException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/RandomSourceException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/RandomSourceException.php new file mode 100644 index 000000000..a44dd34a2 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/RandomSourceException.php @@ -0,0 +1,27 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the source of random data encountered an error + * + * This exception is used mostly to indicate that random_bytes() or random_int() + * threw an exception. However, it may be used for other sources of random data. + */ +class RandomSourceException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/TimeSourceException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/TimeSourceException.php new file mode 100644 index 000000000..fc9cf36b6 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/TimeSourceException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the source of time encountered an error + */ +class TimeSourceException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UnableToBuildUuidException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UnableToBuildUuidException.php new file mode 100644 index 000000000..5ba26d8dc --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UnableToBuildUuidException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate a builder is unable to build a UUID + */ +class UnableToBuildUuidException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UnsupportedOperationException.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UnsupportedOperationException.php new file mode 100644 index 000000000..e1b3eda17 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UnsupportedOperationException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use LogicException as PhpLogicException; + +/** + * Thrown to indicate that the requested operation is not supported + */ +class UnsupportedOperationException extends PhpLogicException implements UuidExceptionInterface +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UuidExceptionInterface.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UuidExceptionInterface.php new file mode 100644 index 000000000..a2f1c103b --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Exception/UuidExceptionInterface.php @@ -0,0 +1,21 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use Throwable; + +interface UuidExceptionInterface extends Throwable +{ +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/FeatureSet.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/FeatureSet.php new file mode 100644 index 000000000..b9af869f9 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/FeatureSet.php @@ -0,0 +1,397 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use Ramsey\Uuid\Builder\FallbackBuilder; +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Codec\GuidStringCodec; +use Ramsey\Uuid\Codec\StringCodec; +use Ramsey\Uuid\Converter\Number\GenericNumberConverter; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\Time\GenericTimeConverter; +use Ramsey\Uuid\Converter\Time\PhpTimeConverter; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Generator\DceSecurityGenerator; +use Ramsey\Uuid\Generator\DceSecurityGeneratorInterface; +use Ramsey\Uuid\Generator\NameGeneratorFactory; +use Ramsey\Uuid\Generator\NameGeneratorInterface; +use Ramsey\Uuid\Generator\PeclUuidNameGenerator; +use Ramsey\Uuid\Generator\PeclUuidRandomGenerator; +use Ramsey\Uuid\Generator\PeclUuidTimeGenerator; +use Ramsey\Uuid\Generator\RandomGeneratorFactory; +use Ramsey\Uuid\Generator\RandomGeneratorInterface; +use Ramsey\Uuid\Generator\TimeGeneratorFactory; +use Ramsey\Uuid\Generator\TimeGeneratorInterface; +use Ramsey\Uuid\Generator\UnixTimeGenerator; +use Ramsey\Uuid\Guid\GuidBuilder; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Nonstandard\UuidBuilder as NonstandardUuidBuilder; +use Ramsey\Uuid\Provider\Dce\SystemDceSecurityProvider; +use Ramsey\Uuid\Provider\DceSecurityProviderInterface; +use Ramsey\Uuid\Provider\Node\FallbackNodeProvider; +use Ramsey\Uuid\Provider\Node\RandomNodeProvider; +use Ramsey\Uuid\Provider\Node\SystemNodeProvider; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Provider\Time\SystemTimeProvider; +use Ramsey\Uuid\Provider\TimeProviderInterface; +use Ramsey\Uuid\Rfc4122\UuidBuilder as Rfc4122UuidBuilder; +use Ramsey\Uuid\Validator\GenericValidator; +use Ramsey\Uuid\Validator\ValidatorInterface; + +use const PHP_INT_SIZE; + +/** + * FeatureSet detects and exposes available features in the current environment + * + * A feature set is used by UuidFactory to determine the available features and + * capabilities of the environment. + */ +class FeatureSet +{ + private ?TimeProviderInterface $timeProvider = null; + private CalculatorInterface $calculator; + private CodecInterface $codec; + private DceSecurityGeneratorInterface $dceSecurityGenerator; + private NameGeneratorInterface $nameGenerator; + private NodeProviderInterface $nodeProvider; + private NumberConverterInterface $numberConverter; + private RandomGeneratorInterface $randomGenerator; + private TimeConverterInterface $timeConverter; + private TimeGeneratorInterface $timeGenerator; + private TimeGeneratorInterface $unixTimeGenerator; + private UuidBuilderInterface $builder; + private ValidatorInterface $validator; + + /** + * @param bool $useGuids True build UUIDs using the GuidStringCodec + * @param bool $force32Bit True to force the use of 32-bit functionality + * (primarily for testing purposes) + * @param bool $forceNoBigNumber (obsolete) + * @param bool $ignoreSystemNode True to disable attempts to check for the + * system node ID (primarily for testing purposes) + * @param bool $enablePecl True to enable the use of the PeclUuidTimeGenerator + * to generate version 1 UUIDs + */ + public function __construct( + bool $useGuids = false, + private bool $force32Bit = false, + bool $forceNoBigNumber = false, + private bool $ignoreSystemNode = false, + private bool $enablePecl = false + ) { + $this->randomGenerator = $this->buildRandomGenerator(); + $this->setCalculator(new BrickMathCalculator()); + $this->builder = $this->buildUuidBuilder($useGuids); + $this->codec = $this->buildCodec($useGuids); + $this->nodeProvider = $this->buildNodeProvider(); + $this->nameGenerator = $this->buildNameGenerator(); + $this->setTimeProvider(new SystemTimeProvider()); + $this->setDceSecurityProvider(new SystemDceSecurityProvider()); + $this->validator = new GenericValidator(); + + assert($this->timeProvider !== null); + $this->unixTimeGenerator = $this->buildUnixTimeGenerator(); + } + + /** + * Returns the builder configured for this environment + */ + public function getBuilder(): UuidBuilderInterface + { + return $this->builder; + } + + /** + * Returns the calculator configured for this environment + */ + public function getCalculator(): CalculatorInterface + { + return $this->calculator; + } + + /** + * Returns the codec configured for this environment + */ + public function getCodec(): CodecInterface + { + return $this->codec; + } + + /** + * Returns the DCE Security generator configured for this environment + */ + public function getDceSecurityGenerator(): DceSecurityGeneratorInterface + { + return $this->dceSecurityGenerator; + } + + /** + * Returns the name generator configured for this environment + */ + public function getNameGenerator(): NameGeneratorInterface + { + return $this->nameGenerator; + } + + /** + * Returns the node provider configured for this environment + */ + public function getNodeProvider(): NodeProviderInterface + { + return $this->nodeProvider; + } + + /** + * Returns the number converter configured for this environment + */ + public function getNumberConverter(): NumberConverterInterface + { + return $this->numberConverter; + } + + /** + * Returns the random generator configured for this environment + */ + public function getRandomGenerator(): RandomGeneratorInterface + { + return $this->randomGenerator; + } + + /** + * Returns the time converter configured for this environment + */ + public function getTimeConverter(): TimeConverterInterface + { + return $this->timeConverter; + } + + /** + * Returns the time generator configured for this environment + */ + public function getTimeGenerator(): TimeGeneratorInterface + { + return $this->timeGenerator; + } + + /** + * Returns the Unix Epoch time generator configured for this environment + */ + public function getUnixTimeGenerator(): TimeGeneratorInterface + { + return $this->unixTimeGenerator; + } + + /** + * Returns the validator configured for this environment + */ + public function getValidator(): ValidatorInterface + { + return $this->validator; + } + + /** + * Sets the calculator to use in this environment + */ + public function setCalculator(CalculatorInterface $calculator): void + { + $this->calculator = $calculator; + $this->numberConverter = $this->buildNumberConverter($calculator); + $this->timeConverter = $this->buildTimeConverter($calculator); + + /** @psalm-suppress RedundantPropertyInitializationCheck */ + if (isset($this->timeProvider)) { + $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); + } + } + + /** + * Sets the DCE Security provider to use in this environment + */ + public function setDceSecurityProvider(DceSecurityProviderInterface $dceSecurityProvider): void + { + $this->dceSecurityGenerator = $this->buildDceSecurityGenerator($dceSecurityProvider); + } + + /** + * Sets the node provider to use in this environment + */ + public function setNodeProvider(NodeProviderInterface $nodeProvider): void + { + $this->nodeProvider = $nodeProvider; + + if (isset($this->timeProvider)) { + $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); + } + } + + /** + * Sets the time provider to use in this environment + */ + public function setTimeProvider(TimeProviderInterface $timeProvider): void + { + $this->timeProvider = $timeProvider; + $this->timeGenerator = $this->buildTimeGenerator($timeProvider); + } + + /** + * Set the validator to use in this environment + */ + public function setValidator(ValidatorInterface $validator): void + { + $this->validator = $validator; + } + + /** + * Returns a codec configured for this environment + * + * @param bool $useGuids Whether to build UUIDs using the GuidStringCodec + */ + private function buildCodec(bool $useGuids = false): CodecInterface + { + if ($useGuids) { + return new GuidStringCodec($this->builder); + } + + return new StringCodec($this->builder); + } + + /** + * Returns a DCE Security generator configured for this environment + */ + private function buildDceSecurityGenerator( + DceSecurityProviderInterface $dceSecurityProvider + ): DceSecurityGeneratorInterface { + return new DceSecurityGenerator( + $this->numberConverter, + $this->timeGenerator, + $dceSecurityProvider + ); + } + + /** + * Returns a node provider configured for this environment + */ + private function buildNodeProvider(): NodeProviderInterface + { + if ($this->ignoreSystemNode) { + return new RandomNodeProvider(); + } + + return new FallbackNodeProvider([ + new SystemNodeProvider(), + new RandomNodeProvider(), + ]); + } + + /** + * Returns a number converter configured for this environment + */ + private function buildNumberConverter(CalculatorInterface $calculator): NumberConverterInterface + { + return new GenericNumberConverter($calculator); + } + + /** + * Returns a random generator configured for this environment + */ + private function buildRandomGenerator(): RandomGeneratorInterface + { + if ($this->enablePecl) { + return new PeclUuidRandomGenerator(); + } + + return (new RandomGeneratorFactory())->getGenerator(); + } + + /** + * Returns a time generator configured for this environment + * + * @param TimeProviderInterface $timeProvider The time provider to use with + * the time generator + */ + private function buildTimeGenerator(TimeProviderInterface $timeProvider): TimeGeneratorInterface + { + if ($this->enablePecl) { + return new PeclUuidTimeGenerator(); + } + + return (new TimeGeneratorFactory( + $this->nodeProvider, + $this->timeConverter, + $timeProvider + ))->getGenerator(); + } + + /** + * Returns a Unix Epoch time generator configured for this environment + */ + private function buildUnixTimeGenerator(): TimeGeneratorInterface + { + return new UnixTimeGenerator($this->randomGenerator); + } + + /** + * Returns a name generator configured for this environment + */ + private function buildNameGenerator(): NameGeneratorInterface + { + if ($this->enablePecl) { + return new PeclUuidNameGenerator(); + } + + return (new NameGeneratorFactory())->getGenerator(); + } + + /** + * Returns a time converter configured for this environment + */ + private function buildTimeConverter(CalculatorInterface $calculator): TimeConverterInterface + { + $genericConverter = new GenericTimeConverter($calculator); + + if ($this->is64BitSystem()) { + return new PhpTimeConverter($calculator, $genericConverter); + } + + return $genericConverter; + } + + /** + * Returns a UUID builder configured for this environment + * + * @param bool $useGuids Whether to build UUIDs using the GuidStringCodec + */ + private function buildUuidBuilder(bool $useGuids = false): UuidBuilderInterface + { + if ($useGuids) { + return new GuidBuilder($this->numberConverter, $this->timeConverter); + } + + return new FallbackBuilder([ + new Rfc4122UuidBuilder($this->numberConverter, $this->timeConverter), + new NonstandardUuidBuilder($this->numberConverter, $this->timeConverter), + ]); + } + + /** + * Returns true if the PHP build is 64-bit + */ + private function is64BitSystem(): bool + { + return PHP_INT_SIZE === 8 && !$this->force32Bit; + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Fields/FieldsInterface.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Fields/FieldsInterface.php new file mode 100644 index 000000000..f1b7a290d --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Fields/FieldsInterface.php @@ -0,0 +1,32 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Fields; + +use Serializable; + +/** + * UUIDs are comprised of unsigned integers, the bytes of which are separated + * into fields and arranged in a particular layout defined by the specification + * for the variant + * + * @psalm-immutable + */ +interface FieldsInterface extends Serializable +{ + /** + * Returns the bytes that comprise the fields + */ + public function getBytes(): string; +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Fields/SerializableFieldsTrait.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Fields/SerializableFieldsTrait.php new file mode 100644 index 000000000..3d36b6f12 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Fields/SerializableFieldsTrait.php @@ -0,0 +1,87 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Fields; + +use ValueError; + +use function base64_decode; +use function sprintf; +use function strlen; + +/** + * Provides common serialization functionality to fields + * + * @psalm-immutable + */ +trait SerializableFieldsTrait +{ + /** + * @param string $bytes The bytes that comprise the fields + */ + abstract public function __construct(string $bytes); + + /** + * Returns the bytes that comprise the fields + */ + abstract public function getBytes(): string; + + /** + * Returns a string representation of object + */ + public function serialize(): string + { + return $this->getBytes(); + } + + /** + * @return array{bytes: string} + */ + public function __serialize(): array + { + return ['bytes' => $this->getBytes()]; + } + + /** + * Constructs the object from a serialized string representation + * + * @param string $data The serialized string representation of the object + * + * @psalm-suppress UnusedMethodCall + */ + public function unserialize(string $data): void + { + if (strlen($data) === 16) { + $this->__construct($data); + } else { + $this->__construct(base64_decode($data)); + } + } + + /** + * @param array{bytes?: string} $data + * + * @psalm-suppress UnusedMethodCall + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['bytes'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->unserialize($data['bytes']); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Generator/CombGenerator.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Generator/CombGenerator.php new file mode 100644 index 000000000..0e8870608 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Generator/CombGenerator.php @@ -0,0 +1,115 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; + +use function bin2hex; +use function explode; +use function hex2bin; +use function microtime; +use function str_pad; +use function substr; + +use const STR_PAD_LEFT; + +/** + * CombGenerator generates COMBs (combined UUID/timestamp) + * + * The CombGenerator, when used with the StringCodec (and, by proxy, the + * TimestampLastCombCodec) or the TimestampFirstCombCodec, combines the current + * timestamp with a UUID (hence the name "COMB"). The timestamp either appears + * as the first or last 48 bits of the COMB, depending on the codec used. + * + * By default, COMBs will have the timestamp set as the last 48 bits of the + * identifier. + * + * ``` php + * $factory = new UuidFactory(); + * + * $factory->setRandomGenerator(new CombGenerator( + * $factory->getRandomGenerator(), + * $factory->getNumberConverter() + * )); + * + * $comb = $factory->uuid4(); + * ``` + * + * To generate a COMB with the timestamp as the first 48 bits, set the + * TimestampFirstCombCodec as the codec. + * + * ``` php + * $factory->setCodec(new TimestampFirstCombCodec($factory->getUuidBuilder())); + * ``` + * + * @link https://www.informit.com/articles/printerfriendly/25862 The Cost of GUIDs as Primary Keys + */ +class CombGenerator implements RandomGeneratorInterface +{ + public const TIMESTAMP_BYTES = 6; + + public function __construct( + private RandomGeneratorInterface $generator, + private NumberConverterInterface $numberConverter + ) { + } + + /** + * @throws InvalidArgumentException if $length is not a positive integer + * greater than or equal to CombGenerator::TIMESTAMP_BYTES + * + * @inheritDoc + */ + public function generate(int $length): string + { + if ($length < self::TIMESTAMP_BYTES) { + throw new InvalidArgumentException( + 'Length must be a positive integer greater than or equal to ' . self::TIMESTAMP_BYTES + ); + } + + $hash = ''; + if (self::TIMESTAMP_BYTES > 0 && $length > self::TIMESTAMP_BYTES) { + $hash = $this->generator->generate($length - self::TIMESTAMP_BYTES); + } + + $lsbTime = str_pad( + $this->numberConverter->toHex($this->timestamp()), + self::TIMESTAMP_BYTES * 2, + '0', + STR_PAD_LEFT + ); + + return (string) hex2bin( + str_pad( + bin2hex($hash), + $length - self::TIMESTAMP_BYTES, + '0' + ) + . $lsbTime + ); + } + + /** + * Returns current timestamp a string integer, precise to 0.00001 seconds + */ + private function timestamp(): string + { + $time = explode(' ', microtime(false)); + + return $time[1] . substr($time[0], 2, 5); + } +} diff --git a/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Generator/DceSecurityGenerator.php b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Generator/DceSecurityGenerator.php new file mode 100644 index 000000000..37ba78131 --- /dev/null +++ b/vendor/composer/5250d275/ramsey-uuid-60a4c63/src/Generator/DceSecurityGenerator.php @@ -0,0 +1,141 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Exception\DceSecurityException; +use Ramsey\Uuid\Provider\DceSecurityProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Uuid; + +use function hex2bin; +use function in_array; +use function pack; +use function str_pad; +use function strlen; +use function substr_replace; + +use const STR_PAD_LEFT; + +/** + * DceSecurityGenerator generates strings of binary data based on a local + * domain, local identifier, node ID, clock sequence, and the current time + */ +class DceSecurityGenerator implements DceSecurityGeneratorInterface +{ + private const DOMAINS = [ + Uuid::DCE_DOMAIN_PERSON, + Uuid::DCE_DOMAIN_GROUP, + Uuid::DCE_DOMAIN_ORG, + ]; + + /** + * Upper bounds for the clock sequence in DCE Security UUIDs. + */ + private const CLOCK_SEQ_HIGH = 63; + + /** + * Lower bounds for the clock sequence in DCE Security UUIDs. + */ + private const CLOCK_SEQ_LOW = 0; + + public function __construct( + private NumberConverterInterface $numberConverter, + private TimeGeneratorInterface $timeGenerator, + private DceSecurityProviderInterface $dceSecurityProvider + ) { + } + + public function generate( + int $localDomain, + ?IntegerObject $localIdentifier = null, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): string { + if (!in_array($localDomain, self::DOMAINS)) { + throw new DceSecurityException( + 'Local domain must be a valid DCE Security domain' + ); + } + + if ($localIdentifier && $localIdentifier->isNegative()) { + throw new DceSecurityException( + 'Local identifier out of bounds; it must be a value between 0 and 4294967295' + ); + } + + if ($clockSeq > self::CLOCK_SEQ_HIGH || $clockSeq < self::CLOCK_SEQ_LOW) { + throw new DceSecurityException( + 'Clock sequence out of bounds; it must be a value between 0 and 63' + ); + } + + switch ($localDomain) { + case Uuid::DCE_DOMAIN_ORG: + if ($localIdentifier === null) { + throw new DceSecurityException( + 'A local identifier must be provided for the org domain' + ); + } + + break; + case Uuid::DCE_DOMAIN_PERSON: + if ($localIdentifier === null) { + $localIdentifier = $this->dceSecurityProvider->getUid(); + } + + break; + case Uuid::DCE_DOMAIN_GROUP: + default: + if ($localIdentifier === null) { + $localIdentifier = $this->dceSecurityProvider->getGid(); + } + + break; + } + + $identifierHex = $this->numberConverter->toHex($localIdentifier->toString()); + + // The maximum value for the local identifier is 0xffffffff, or + // 4294967295. This is 8 hexadecimal digits, so if the length of + // hexadecimal digits is greater than 8, we know the value is greater + // than 0xffffffff. + if (strlen($identifierHex) > 8) { + throw new DceSecurityException( + 'Local identifier out of bounds; it must be a value between 0 and 4294967295' + ); + } + + $domainByte = pack('n', $localDomain)[1]; + $identifierBytes = (string) hex2bin(str_pad($identifierHex, 8, '0', STR_PAD_LEFT)); + + if ($node instanceof Hexadecimal) { + $node = $node->toString(); + } + + // Shift the clock sequence 8 bits to the left, so it matches 0x3f00. + if ($clockSeq !== null) { + $clockSeq = $clockSeq << 8; + } + + $bytes = $this->timeGenerator->generate($node, $clockSeq); + + // Replace bytes in the time-based UUID with DCE Security values. + $bytes = substr_replace($bytes, $identifierBytes, 0, 4); + + return substr_replace($bytes, $domainByte, 9, 1); + } +} diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.github/workflows/php.yml b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.github/workflows/php.yml new file mode 100644 index 000000000..3150dbe48 --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.github/workflows/php.yml @@ -0,0 +1,60 @@ +name: PHP tests +on: [push, pull_request] +jobs: + php-linter: + name: PHP Syntax check 7.2|7.3|7.4|8.0 + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.0.0 + - name: PHP syntax checker 7.2 + uses: prestashop/github-action-php-lint/7.2@master + - name: PHP syntax checker 7.3 + uses: prestashop/github-action-php-lint/7.3@master + - name: PHP syntax checker 7.4 + uses: prestashop/github-action-php-lint/7.4@master + - name: PHP syntax checker 8.0 + uses: prestashop/github-action-php-lint/8.0@master + + php-cs-fixer: + name: PHP-CS-Fixer + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.0.0 + - name: Run PHP-CS-Fixer + uses: prestashopcorp/github-action-php-cs-fixer@master + + integration-tests: + name: PHP Integration tests + runs-on: ubuntu-latest + strategy: + matrix: + php-version: ['7.2', '7.3', '7.4', '8.0'] + steps: + - name: Setup PHP ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv + - uses: actions/checkout@v1 + with: + fetch-depth: 0 + - run: composer install --prefer-dist + - run: php tests/integration/runner/run.php + + phpstan: + name: PHPStan + runs-on: ubuntu-latest + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv + - uses: actions/checkout@v1 + with: + fetch-depth: 0 + - run: composer install --prefer-dist + - name: Install & run PHPStan + run: ./vendor/bin/phpstan analyse --configuration=tests/phpstan/phpstan.neon diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.gitignore b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.gitignore new file mode 100644 index 000000000..af6c6e2cd --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.gitignore @@ -0,0 +1,3 @@ +vendor/ +.idea +tests/integration/workspace/* \ No newline at end of file diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.php_cs.dist b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.php_cs.dist new file mode 100644 index 000000000..2503edbb4 --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/.php_cs.dist @@ -0,0 +1,11 @@ +setUsingCache(false) + ->getFinder() + ->in(__DIR__) + ->exclude(['vendor', 'tests/integration/module-samples', 'tests/integration/expected']); + +return $config; diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/README.md b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/README.md new file mode 100644 index 000000000..677727d43 --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/README.md @@ -0,0 +1,56 @@ +# Header Stamp + +![PHP tests](https://github.com/PrestaShopCorp/header-stamp/workflows/PHP%20tests/badge.svg) + +Update the headers of the current folder. This tools extracts the command originally available in the PrestaShop Core. + +## Installation + +This projet is downloadable via Composer, the PHP Package Manager. We recommend having it in the `require-dev` section of your dependancies as it is not needed on production environments. + +``` +composer require --dev prestashop/header-stamp +``` + +## Usage + +If installed via Composer, the application is available in its binaries folder + +```php +php vendor/bin/header-stamp +``` + +The default behavior is to apply the OSL license in every compatible file found in the current folder. + +:warning: Header Stamp will scan and process all your compatible files, including `node_modules` or `vendor` if you do not specify the target. Use `--exclude` to avoid modifying dependency files. + +```php +php vendor/bin/header-stamp --exclude=vendor,node_modules +``` + +Available options: + +``` +--license=LICENSE License file to apply [default: "assets/osl3.txt"] +--exclude=EXCLUDE Comma-separated list of folders and files to exclude from the update [default: ""] +--extensions=EXTENSIONS Comma-separated list of file extensions to update [default: "php,js,css,scss,tpl,html.twig,json,vue"] +--target=PATH Folder to work in [default: Current directory] +--dry-run Dry-run mode does not modify files +--display-report Whether or not to display a report +``` + +## Development + +Install dependencies with composer. Two CI tools are configured for this project: php-cs-fixer and phpstan + +``` +composer install +php vendor/bin/php-cs-fixer fix --no-interaction --dry-run --diff +php phpstan analyse tests/phpstan/phpstan.neon +``` + +Before submitting changes to the projects, tests can be run with: + +``` +php tests/integration/runner/run.php +``` diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/assets/afl.txt b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/assets/afl.txt new file mode 100644 index 000000000..211dbf002 --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/assets/afl.txt @@ -0,0 +1,18 @@ +/** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License version 3.0 + * that is bundled with this package in the file LICENSE.md. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/AFL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 + */ diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/assets/osl3.txt b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/assets/osl3.txt new file mode 100644 index 000000000..5ff9a04dc --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/assets/osl3.txt @@ -0,0 +1,24 @@ +/** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.md. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/OSL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/bin/header-stamp b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/bin/header-stamp new file mode 100644 index 000000000..a32bf6b25 --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/bin/header-stamp @@ -0,0 +1,49 @@ +#!/usr/bin/env php + + * @copyright 2007-2020 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + * International Registered Trademark & Property of PrestaShop SA + */ + +declare(strict_types=1); + +$autoloadFiles = [ + __DIR__ . '/../../../autoload.php', + __DIR__ . '/../vendor/autoload.php', +]; +foreach ($autoloadFiles as $autoloadFile) { + if (file_exists($autoloadFile)) { + require_once $autoloadFile; + } +} + +use PrestaShop\HeaderStamp\Command\UpdateLicensesCommand; +use Symfony\Component\Console\Application; + +$application = new Application('header-stamp', '1.4.0'); +$command = new UpdateLicensesCommand(); + +$application->add($command); + +$application->setDefaultCommand($command->getName()); +$application->run(); diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/composer.json b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/composer.json new file mode 100644 index 000000000..153a10544 --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/composer.json @@ -0,0 +1,39 @@ +{ + "name": "prestashop/header-stamp", + "description": "Rewrite your file headers to add the license or to make them up-to-date", + "homepage": "https://github.com/PrestaShopCorp/header-stamp", + "license": "AFL-3.0", + "authors": [ + { + "name": "PrestaShop SA", + "email": "contact@prestashop.com" + } + ], + "require": { + "php": "^8.0 || ^7.2", + "symfony/console": "^3.4 || ~4.0 || ~5.0 || ~6.0", + "symfony/finder": "^3.4 || ~4.0 || ~5.0 || ~6.0", + "nikic/php-parser": "^4.10" + }, + "config": { + "preferred-install": "dist", + "prepend-autoloader": false, + "optimize-autoloader": true, + "platform": { + "php": "7.2.5" + } + }, + "bin": [ + "bin/header-stamp" + ], + "autoload": { + "psr-4": { + "PrestaShop\\HeaderStamp\\": "src/" + } + }, + "author": "PrestaShop", + "require-dev": { + "prestashop/php-dev-tools": "1.*", + "phpstan/phpstan": "^0.12.83" + } +} diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/src/Command/UpdateLicensesCommand.php b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/src/Command/UpdateLicensesCommand.php new file mode 100644 index 000000000..e09eacf4c --- /dev/null +++ b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/src/Command/UpdateLicensesCommand.php @@ -0,0 +1,472 @@ + + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 + */ + +declare(strict_types=1); + +namespace PrestaShop\HeaderStamp\Command; + +use PhpParser\Node\Stmt; +use PhpParser\ParserFactory; +use PrestaShop\HeaderStamp\LicenseHeader; +use PrestaShop\HeaderStamp\Reporter; +use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Helper\ProgressBar; +use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; +use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Style\SymfonyStyle; +use Symfony\Component\Finder\Finder; +use Symfony\Component\Finder\SplFileInfo; + +class UpdateLicensesCommand extends Command +{ + const DEFAULT_LICENSE_FILE = __DIR__ . '/../../assets/osl3.txt'; + const DEFAULT_EXTENSIONS = [ + 'php', + 'js', + 'css', + 'scss', + 'tpl', + 'html.twig', + 'json', + 'vue', + ]; + const DEFAULT_FOLDER_FILTERS = []; + + const DEFAULT_FILE_FILTERS = []; + + /** + * License content + * + * @var string + */ + private $text; + + /** + * License file path (not content) + * + * @var string + */ + private $license; + + /** + * @var string|false Can be false because of realpath function + */ + private $targetDirectory; + + /** + * List of extensions to update + * + * @var array + */ + private $extensions; + + /** + * List of folders to exclude from the search + * + * @var array + */ + private $folderFilters; + + /** + * List of file names to exclude from the search + * + * @var array + */ + private $fileFilters; + + /** + * dry-run feature flag + * + * @var bool + */ + private $runAsDry; + + /** + * display-report feature flag + * + * @var bool + */ + private $displayReport; + + /** + * Reporter in charge of monitoring what is done and provide a complete report + * at the end of execution + * + * @var Reporter + */ + private $reporter; + + /** + * @var string + */ + private $discriminationString; + + protected function configure(): void + { + $this + ->setName('prestashop:licenses:update') + ->setDescription('Rewrite your file headers to add the license or to make them up-to-date') + ->addOption( + 'license', + null, + InputOption::VALUE_REQUIRED, + 'License file to apply', + realpath(static::DEFAULT_LICENSE_FILE) + ) + ->addOption( + 'target', + null, + InputOption::VALUE_REQUIRED, + 'Folder to work in (default: current dir)' + ) + ->addOption( + 'exclude', + null, + InputOption::VALUE_REQUIRED, + 'Comma-separated list of folders to exclude from the update', + implode(',', static::DEFAULT_FOLDER_FILTERS) + ) + ->addOption( + 'not-name', + null, + InputOption::VALUE_REQUIRED, + 'Comma-separated list of file names to exclude from the update', + implode(',', static::DEFAULT_FILE_FILTERS) + ) + ->addOption( + 'extensions', + null, + InputOption::VALUE_REQUIRED, + 'Comma-separated list of file extensions to update', + implode(',', static::DEFAULT_EXTENSIONS) + ) + ->addOption( + 'display-report', + null, + InputOption::VALUE_NONE, + 'Whether or not to display a report' + ) + ->addOption( + 'dry-run', + null, + InputOption::VALUE_NONE, + 'Dry-run mode does not modify files' + ) + ->addOption( + 'header-discrimination-string', + null, + InputOption::VALUE_OPTIONAL, + 'Fix existing licenses only if they contain that string', + 'prestashop' + ); + } + + protected function initialize(InputInterface $input, OutputInterface $output): void + { + $this->extensions = explode(',', $input->getOption('extensions')); + $this->folderFilters = $input->getOption('exclude') + ? explode(',', $input->getOption('exclude')) : []; + $this->fileFilters = $input->getOption('not-name') + ? explode(',', $input->getOption('not-name')) : []; + + $licenseOption = $input->getOption('license'); + $this->license = is_string($licenseOption) ? $licenseOption : ''; + + $targetOption = $input->getOption('target'); + if (is_string($targetOption) && !empty($targetOption)) { + $this->targetDirectory = realpath($targetOption); + } else { + $this->targetDirectory = getcwd(); + } + $this->runAsDry = ($input->getOption('dry-run') === true); + $this->displayReport = ($input->getOption('display-report') === true); + + $discriminationOption = $input->getOption('header-discrimination-string'); + $this->discriminationString = is_string($discriminationOption) ? $discriminationOption : ''; + } + + protected function execute(InputInterface $input, OutputInterface $output): int + { + $this->text = trim((new LicenseHeader($this->license))->getContent(), PHP_EOL); + + $this->reporter = new Reporter(); + + foreach ($this->extensions as $extension) { + $this->findAndCheckExtension($input, $output, $extension); + } + + if ($this->runAsDry) { + $this->printDryRunPrettyReport($input, $output); + + if (empty($this->reporter->getReport()['fixed'])) { + return 0; + } + + return 1; + } + + if ($this->displayReport) { + $this->printPrettyReport($input, $output); + } + + return 0; + } + + private function findAndCheckExtension(InputInterface $input, OutputInterface $output, string $ext): void + { + if ($this->targetDirectory === false) { + throw new \Exception('Could not get target directory. Check your permissions.'); + } + + $finder = new Finder(); + $finder + ->files() + ->name('*.' . $ext) + ->in($this->targetDirectory) + ->exclude($this->folderFilters) + ->notPath($this->folderFilters) + ->notName($this->fileFilters); + + $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + + $output->writeln('Updating license in ' . strtoupper($ext) . ' files ...'); + $progress = new ProgressBar($output, count($finder)); + $progress->start(); + $progress->setRedrawFrequency(20); + + foreach ($finder as $file) { + switch ($file->getExtension()) { + case 'php': + try { + $nodes = $parser->parse($file->getContents()); + if ($nodes !== null && count($nodes)) { + $this->addLicenseToNode($nodes[0], $file); + } + } catch (\PhpParser\Error $exception) { + $output->writeln('Syntax error on file ' . $file->getRelativePathname() . '. Continue ...'); + $this->reporter->reportLicenseCouldNotBeFixed($file->getFilename()); + } + + break; + case 'js': + case 'css': + case 'scss': + $this->addLicenseToFile($file); + + break; + case 'tpl': + $this->addLicenseToSmartyTemplate($file); + + break; + case 'twig': + $this->addLicenseToTwigTemplate($file); + + break; + case 'json': + $this->addLicenseToJsonFile($file); + + break; + case 'vue': + $this->addLicenseToHtmlFile($file); + + break; + } + $progress->advance(); + } + + $progress->finish(); + $output->writeln(''); + } + + private function addLicenseToFile(SplFileInfo $file, string $startDelimiter = '\/', string $endDelimiter = '\/'): void + { + $content = $file->getContents(); + $oldContent = $content; + // Regular expression found thanks to Stephen Ostermiller's Blog. http://blog.ostermiller.org/find-comment + $regex = '%' . $startDelimiter . '\*([^*]|[\r\n]|(\*+([^*' . $endDelimiter . ']|[\r\n])))*\*+' . $endDelimiter . '%'; + $matches = []; + $text = $this->text; + if ($startDelimiter != '\/') { + $text = $startDelimiter . ltrim($text, '/'); + } + if ($endDelimiter != '\/') { + $text = rtrim($text, '/') . $endDelimiter; + } + + // Try to find an existing license + preg_match($regex, $content, $matches); + + if (count($matches)) { + // Found - Replace it if prestashop one + foreach ($matches as $match) { + if (stripos($match, $this->discriminationString) !== false) { + $content = str_replace($match, $text, $content); + } + } + } else { + // Not found - Add it at the beginning of the file + $content = $text . "\n" . $content; + } + + if (!$this->runAsDry) { + file_put_contents($this->targetDirectory . '/' . $file->getRelativePathname(), $content); + } + + $this->reportOperationResult($content, $oldContent, $file->getFilename()); + } + + private function addLicenseToNode(Stmt $node, SplFileInfo $file): void + { + if (!$node->hasAttribute('comments')) { + $needle = 'text; + $haystack = $file->getContents(); + + $pos = strpos($haystack, $needle); + // Important, if the runAsDry) { + file_put_contents($this->targetDirectory . '/' . $file->getRelativePathname(), $newstring); + } + + $this->reportOperationResult($newstring, $haystack, $file->getFilename()); + } + + return; + } + + $comments = $node->getAttribute('comments'); + foreach ($comments as $comment) { + if ($comment instanceof \PhpParser\Comment + && strpos($comment->getText(), $this->discriminationString) !== false) { + $newContent = str_replace($comment->getText(), $this->text, $file->getContents()); + + if (!$this->runAsDry) { + file_put_contents( + $this->targetDirectory . '/' . $file->getRelativePathname(), + $newContent + ); + } + + $this->reportOperationResult($newContent, $file->getContents(), $file->getFilename()); + } + } + } + + private function addLicenseToSmartyTemplate(SplFileInfo $file): void + { + $this->addLicenseToFile($file, '{', '}'); + } + + private function addLicenseToTwigTemplate(SplFileInfo $file): void + { + if (strrpos($file->getRelativePathName(), 'html.twig') !== false) { + $this->addLicenseToFile($file, '{#', '#}'); + } + } + + private function addLicenseToHtmlFile(SplFileInfo $file): void + { + $this->addLicenseToFile($file, ''); + } + + private function addLicenseToJsonFile(SplFileInfo $file): bool + { + if (!in_array($file->getFilename(), ['composer.json', 'package.json'])) { + return false; + } + + $content = json_decode($file->getContents(), true); + $oldContent = $content; + $content['author'] = 'PrestaShop'; + $content['license'] = (false !== strpos($this->license, 'afl')) ? 'AFL-3.0' : 'OSL-3.0'; + + if (!$this->runAsDry) { + $result = file_put_contents( + $this->targetDirectory . '/' . $file->getRelativePathname(), + json_encode($content, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) + ); + } else { + $result = true; + } + + $newFileContent = (string) json_encode($content); + $oldFileContent = (string) json_encode($oldContent); + + $this->reportOperationResult($newFileContent, $oldFileContent, $file->getFilename()); + + return false !== $result; + } + + /** + * @var string + * @var string + */ + private function reportOperationResult(string $newFileContent, string $oldFileContent, string $filename): void + { + if ($newFileContent !== $oldFileContent) { + $this->reporter->reportLicenseHasBeenFixed($filename); + } else { + $this->reporter->reportLicenseWasFine($filename); + } + } + + private function printPrettyReport(InputInterface $input, OutputInterface $output): void + { + $style = new SymfonyStyle($input, $output); + $style->section('Header Stamp Report'); + + $report = $this->reporter->getReport(); + $sections = ['fixed', 'nothing to fix', 'failed']; + foreach ($sections as $section) { + if (empty($report[$section])) { + continue; + } + + $style->text(ucfirst($section) . ':'); + $style->listing($report[$section]); + } + } + + private function printDryRunPrettyReport(InputInterface $input, OutputInterface $output): void + { + $style = new SymfonyStyle($input, $output); + $style->section('Header Stamp Dry Run Report'); + + $report = $this->reporter->getReport(); + + if (empty($report['fixed'])) { + return; + } + + $style->text('Files with bad license headers:'); + $style->listing($report['fixed']); + } +} diff --git a/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/src/LicenseHeader.php b/vendor/composer/54b5e9da/PrestaShopCorp-header-stamp-3104b69/src/LicenseHeader.php new file mode 100644 index 000000000..e69de29bb diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php new file mode 100644 index 000000000..7824d8f7e --- /dev/null +++ b/vendor/composer/ClassLoader.php @@ -0,0 +1,579 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + /** @var \Closure(string):void */ + private static $includeFile; + + /** @var string|null */ + private $vendorDir; + + // PSR-4 + /** + * @var array> + */ + private $prefixLengthsPsr4 = array(); + /** + * @var array> + */ + private $prefixDirsPsr4 = array(); + /** + * @var list + */ + private $fallbackDirsPsr4 = array(); + + // PSR-0 + /** + * List of PSR-0 prefixes + * + * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) + * + * @var array>> + */ + private $prefixesPsr0 = array(); + /** + * @var list + */ + private $fallbackDirsPsr0 = array(); + + /** @var bool */ + private $useIncludePath = false; + + /** + * @var array + */ + private $classMap = array(); + + /** @var bool */ + private $classMapAuthoritative = false; + + /** + * @var array + */ + private $missingClasses = array(); + + /** @var string|null */ + private $apcuPrefix; + + /** + * @var array + */ + private static $registeredLoaders = array(); + + /** + * @param string|null $vendorDir + */ + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + self::initializeIncludeClosure(); + } + + /** + * @return array> + */ + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + /** + * @return array> + */ + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + /** + * @return list + */ + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + /** + * @return list + */ + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + /** + * @return array Array of classname => path + */ + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + * + * @return void + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void + */ + public function add($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 base directories + * + * @return void + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + * + * @return void + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + * + * @return void + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + * + * @return void + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + * + * @return void + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return true|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + $includeFile = self::$includeFile; + $includeFile($file); + + return true; + } + + return null; + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders keyed by their corresponding vendor directories. + * + * @return array + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + /** + * @param string $class + * @param string $ext + * @return string|false + */ + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } + + /** + * @return void + */ + private static function initializeIncludeClosure() + { + if (self::$includeFile !== null) { + return; + } + + /** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + */ + self::$includeFile = \Closure::bind(static function($file) { + include $file; + }, null, null); + } +} diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php new file mode 100644 index 000000000..51e734a77 --- /dev/null +++ b/vendor/composer/InstalledVersions.php @@ -0,0 +1,359 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer; + +use Composer\Autoload\ClassLoader; +use Composer\Semver\VersionParser; + +/** + * This class is copied in every Composer installed project and available to all + * + * See also https://getcomposer.org/doc/07-runtime.md#installed-versions + * + * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final + */ +class InstalledVersions +{ + /** + * @var mixed[]|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null + */ + private static $installed; + + /** + * @var bool|null + */ + private static $canGetVendors; + + /** + * @var array[] + * @psalm-var array}> + */ + private static $installedByVendor = array(); + + /** + * Returns a list of all package names which are present, either by being installed, replaced or provided + * + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackages() + { + $packages = array(); + foreach (self::getInstalled() as $installed) { + $packages[] = array_keys($installed['versions']); + } + + if (1 === \count($packages)) { + return $packages[0]; + } + + return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); + } + + /** + * Returns a list of all package names with a specific type e.g. 'library' + * + * @param string $type + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackagesByType($type) + { + $packagesByType = array(); + + foreach (self::getInstalled() as $installed) { + foreach ($installed['versions'] as $name => $package) { + if (isset($package['type']) && $package['type'] === $type) { + $packagesByType[] = $name; + } + } + } + + return $packagesByType; + } + + /** + * Checks whether the given package is installed + * + * This also returns true if the package name is provided or replaced by another package + * + * @param string $packageName + * @param bool $includeDevRequirements + * @return bool + */ + public static function isInstalled($packageName, $includeDevRequirements = true) + { + foreach (self::getInstalled() as $installed) { + if (isset($installed['versions'][$packageName])) { + return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; + } + } + + return false; + } + + /** + * Checks whether the given package satisfies a version constraint + * + * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: + * + * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') + * + * @param VersionParser $parser Install composer/semver to have access to this class and functionality + * @param string $packageName + * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package + * @return bool + */ + public static function satisfies(VersionParser $parser, $packageName, $constraint) + { + $constraint = $parser->parseConstraints((string) $constraint); + $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + + return $provided->matches($constraint); + } + + /** + * Returns a version constraint representing all the range(s) which are installed for a given package + * + * It is easier to use this via isInstalled() with the $constraint argument if you need to check + * whether a given version of a package is installed, and not just whether it exists + * + * @param string $packageName + * @return string Version constraint usable with composer/semver + */ + public static function getVersionRanges($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + $ranges = array(); + if (isset($installed['versions'][$packageName]['pretty_version'])) { + $ranges[] = $installed['versions'][$packageName]['pretty_version']; + } + if (array_key_exists('aliases', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); + } + if (array_key_exists('replaced', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); + } + if (array_key_exists('provided', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); + } + + return implode(' || ', $ranges); + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['version'])) { + return null; + } + + return $installed['versions'][$packageName]['version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getPrettyVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['pretty_version'])) { + return null; + } + + return $installed['versions'][$packageName]['pretty_version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference + */ + public static function getReference($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['reference'])) { + return null; + } + + return $installed['versions'][$packageName]['reference']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. + */ + public static function getInstallPath($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @return array + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} + */ + public static function getRootPackage() + { + $installed = self::getInstalled(); + + return $installed[0]['root']; + } + + /** + * Returns the raw installed.php data for custom implementations + * + * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. + * @return array[] + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} + */ + public static function getRawData() + { + @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = include __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + + return self::$installed; + } + + /** + * Returns the raw data of all installed.php which are currently loaded for custom implementations + * + * @return array[] + * @psalm-return list}> + */ + public static function getAllRawData() + { + return self::getInstalled(); + } + + /** + * Lets you reload the static array from another file + * + * This is only useful for complex integrations in which a project needs to use + * this class but then also needs to execute another project's autoloader in process, + * and wants to ensure both projects have access to their version of installed.php. + * + * A typical case would be PHPUnit, where it would need to make sure it reads all + * the data it needs from this class, then call reload() with + * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure + * the project in which it runs can then also use this class safely, without + * interference between PHPUnit's dependencies and the project's dependencies. + * + * @param array[] $data A vendor/composer/installed.php data set + * @return void + * + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data + */ + public static function reload($data) + { + self::$installed = $data; + self::$installedByVendor = array(); + } + + /** + * @return array[] + * @psalm-return list}> + */ + private static function getInstalled() + { + if (null === self::$canGetVendors) { + self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); + } + + $installed = array(); + + if (self::$canGetVendors) { + foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + if (isset(self::$installedByVendor[$vendorDir])) { + $installed[] = self::$installedByVendor[$vendorDir]; + } elseif (is_file($vendorDir.'/composer/installed.php')) { + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require $vendorDir.'/composer/installed.php'; + $installed[] = self::$installedByVendor[$vendorDir] = $required; + if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { + self::$installed = $installed[count($installed) - 1]; + } + } + } + } + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require __DIR__ . '/installed.php'; + self::$installed = $required; + } else { + self::$installed = array(); + } + } + + if (self::$installed !== array()) { + $installed[] = self::$installed; + } + + return $installed; + } +} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE new file mode 100644 index 000000000..f27399a04 --- /dev/null +++ b/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php new file mode 100644 index 000000000..0fb0a2c19 --- /dev/null +++ b/vendor/composer/autoload_classmap.php @@ -0,0 +1,10 @@ + $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php new file mode 100644 index 000000000..e0dff4efe --- /dev/null +++ b/vendor/composer/autoload_files.php @@ -0,0 +1,13 @@ + $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', + '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', + '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', + 'e39a8b23c42d4e1452234d762b03835a' => $vendorDir . '/ramsey/uuid/src/functions.php', +); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php new file mode 100644 index 000000000..15a2ff3ad --- /dev/null +++ b/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($vendorDir . '/ramsey/uuid/src'), + 'Ramsey\\Collection\\' => array($vendorDir . '/ramsey/collection/src'), + 'Psr\\Log\\' => array($vendorDir . '/psr/log/src'), + 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), + 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), + 'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'), + 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), + 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), + 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), + 'Composer\\CaBundle\\' => array($vendorDir . '/composer/ca-bundle/src'), + 'Buckaroo\\PrestaShop\\Src\\' => array($baseDir . '/src'), + 'Buckaroo\\PrestaShop\\Library\\' => array($baseDir . '/library'), + 'Buckaroo\\PrestaShop\\Controllers\\' => array($baseDir . '/controllers'), + 'Buckaroo\\PrestaShop\\Classes\\' => array($baseDir . '/classes'), + 'Buckaroo\\' => array($vendorDir . '/buckaroo/sdk/src'), + 'Brick\\Math\\' => array($vendorDir . '/brick/math/src'), +); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php new file mode 100644 index 000000000..fb82e2a26 --- /dev/null +++ b/vendor/composer/autoload_real.php @@ -0,0 +1,50 @@ +register(false); + + $filesToLoad = \Composer\Autoload\ComposerStaticInit6466906dc694b40793f7449103660c84::$files; + $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + + require $file; + } + }, null, null); + foreach ($filesToLoad as $fileIdentifier => $file) { + $requireFile($fileIdentifier, $file); + } + + return $loader; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php new file mode 100644 index 000000000..627f4ac35 --- /dev/null +++ b/vendor/composer/autoload_static.php @@ -0,0 +1,134 @@ + __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', + '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', + '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', + 'e39a8b23c42d4e1452234d762b03835a' => __DIR__ . '/..' . '/ramsey/uuid/src/functions.php', + ); + + public static $prefixLengthsPsr4 = array ( + 'R' => + array ( + 'Ramsey\\Uuid\\' => 12, + 'Ramsey\\Collection\\' => 18, + ), + 'P' => + array ( + 'Psr\\Log\\' => 8, + 'Psr\\Http\\Message\\' => 17, + 'Psr\\Http\\Client\\' => 16, + ), + 'M' => + array ( + 'Monolog\\' => 8, + ), + 'G' => + array ( + 'GuzzleHttp\\Psr7\\' => 16, + 'GuzzleHttp\\Promise\\' => 19, + 'GuzzleHttp\\' => 11, + ), + 'C' => + array ( + 'Composer\\CaBundle\\' => 18, + ), + 'B' => + array ( + 'Buckaroo\\PrestaShop\\Src\\' => 24, + 'Buckaroo\\PrestaShop\\Library\\' => 28, + 'Buckaroo\\PrestaShop\\Controllers\\' => 32, + 'Buckaroo\\PrestaShop\\Classes\\' => 28, + 'Buckaroo\\' => 9, + 'Brick\\Math\\' => 11, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'Ramsey\\Uuid\\' => + array ( + 0 => __DIR__ . '/..' . '/ramsey/uuid/src', + ), + 'Ramsey\\Collection\\' => + array ( + 0 => __DIR__ . '/..' . '/ramsey/collection/src', + ), + 'Psr\\Log\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/log/src', + ), + 'Psr\\Http\\Message\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-factory/src', + 1 => __DIR__ . '/..' . '/psr/http-message/src', + ), + 'Psr\\Http\\Client\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-client/src', + ), + 'Monolog\\' => + array ( + 0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog', + ), + 'GuzzleHttp\\Psr7\\' => + array ( + 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', + ), + 'GuzzleHttp\\Promise\\' => + array ( + 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src', + ), + 'GuzzleHttp\\' => + array ( + 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src', + ), + 'Composer\\CaBundle\\' => + array ( + 0 => __DIR__ . '/..' . '/composer/ca-bundle/src', + ), + 'Buckaroo\\PrestaShop\\Src\\' => + array ( + 0 => __DIR__ . '/../..' . '/src', + ), + 'Buckaroo\\PrestaShop\\Library\\' => + array ( + 0 => __DIR__ . '/../..' . '/library', + ), + 'Buckaroo\\PrestaShop\\Controllers\\' => + array ( + 0 => __DIR__ . '/../..' . '/controllers', + ), + 'Buckaroo\\PrestaShop\\Classes\\' => + array ( + 0 => __DIR__ . '/../..' . '/classes', + ), + 'Buckaroo\\' => + array ( + 0 => __DIR__ . '/..' . '/buckaroo/sdk/src', + ), + 'Brick\\Math\\' => + array ( + 0 => __DIR__ . '/..' . '/brick/math/src', + ), + ); + + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInit6466906dc694b40793f7449103660c84::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit6466906dc694b40793f7449103660c84::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit6466906dc694b40793f7449103660c84::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/CONTRIBUTING.md b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/CONTRIBUTING.md new file mode 100644 index 000000000..5cc736353 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/CONTRIBUTING.md @@ -0,0 +1,13 @@ +Contributing +------------- + +Before you contribute code to PHP\_CodeSniffer, please make sure it conforms to the PHPCS coding standard and that the PHP\_CodeSniffer unit tests still pass. The easiest way to contribute is to work on a checkout of the repository, or your own fork, rather than an installed PEAR version. If you do this, you can run the following commands to check if everything is ready to submit: + + cd PHP_CodeSniffer + php bin/phpcs + +Which should display no coding standard errors. And then: + + phpunit + +Which should give you no failures or errors. You can ignore any skipped tests as these are for external tools. diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/CodeSniffer.conf.dist b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/CodeSniffer.conf.dist new file mode 100644 index 000000000..f95058faa --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/CodeSniffer.conf.dist @@ -0,0 +1,9 @@ + 'PSR2', + 'report_format' => 'summary', + 'show_warnings' => '0', + 'show_progress' => '1', + 'report_width' => '120', +); +?> diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/README.md b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/README.md new file mode 100644 index 000000000..859de432c --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/README.md @@ -0,0 +1,134 @@ +## About + +PHP_CodeSniffer is a set of two PHP scripts; the main `phpcs` script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second `phpcbf` script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent. + +[![Build Status](https://github.com/squizlabs/PHP_CodeSniffer/workflows/Validate/badge.svg?branch=master)](https://github.com/squizlabs/PHP_CodeSniffer/actions) +[![Build Status](https://github.com/squizlabs/PHP_CodeSniffer/workflows/Test/badge.svg?branch=master)](https://github.com/squizlabs/PHP_CodeSniffer/actions) +[![Code consistency](http://squizlabs.github.io/PHP_CodeSniffer/analysis/squizlabs/PHP_CodeSniffer/grade.svg)](http://squizlabs.github.io/PHP_CodeSniffer/analysis/squizlabs/PHP_CodeSniffer) +[![Join the chat at https://gitter.im/squizlabs/PHP_CodeSniffer](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/squizlabs/PHP_CodeSniffer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +## Requirements + +PHP_CodeSniffer requires PHP version 5.4.0 or greater, although individual sniffs may have additional requirements such as external applications and scripts. See the [Configuration Options manual page](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options) for a list of these requirements. + +If you're using PHP_CodeSniffer as part of a team, or you're running it on a [CI](https://en.wikipedia.org/wiki/Continuous_integration) server, you may want to configure your project's settings [using a configuration file](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file). + + +## Installation + +The easiest way to get started with PHP_CodeSniffer is to download the Phar files for each of the commands: +``` +# Download using curl +curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar +curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar + +# Or download using wget +wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar +wget https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar + +# Then test the downloaded PHARs +php phpcs.phar -h +php phpcbf.phar -h +``` + +### Composer +If you use Composer, you can install PHP_CodeSniffer system-wide with the following command: +```bash +composer global require "squizlabs/php_codesniffer=*" +``` +Make sure you have the composer bin dir in your PATH. The default value is `~/.composer/vendor/bin/`, but you can check the value that you need to use by running `composer global config bin-dir --absolute`. + +Or alternatively, include a dependency for `squizlabs/php_codesniffer` in your `composer.json` file. For example: + +```json +{ + "require-dev": { + "squizlabs/php_codesniffer": "3.*" + } +} +``` + +You will then be able to run PHP_CodeSniffer from the vendor bin directory: +```bash +./vendor/bin/phpcs -h +./vendor/bin/phpcbf -h +``` +### Phive +If you use Phive, you can install PHP_CodeSniffer as a project tool using the following commands: +```bash +phive install phpcs +phive install phpcbf +``` +You will then be able to run PHP_CodeSniffer from the tools directory: +```bash +./tools/phpcs -h +./tools/phpcbf -h +``` +### PEAR +If you use PEAR, you can install PHP_CodeSniffer using the PEAR installer. This will make the `phpcs` and `phpcbf` commands immediately available for use. To install PHP_CodeSniffer using the PEAR installer, first ensure you have [installed PEAR](http://pear.php.net/manual/en/installation.getting.php) and then run the following command: +```bash +pear install PHP_CodeSniffer +``` +### Git Clone +You can also download the PHP_CodeSniffer source and run the `phpcs` and `phpcbf` commands directly from the Git clone: +```bash +git clone https://github.com/squizlabs/PHP_CodeSniffer.git +cd PHP_CodeSniffer +php bin/phpcs -h +php bin/phpcbf -h +``` +## Getting Started + +The default coding standard used by PHP_CodeSniffer is the PEAR coding standard. To check a file against the PEAR coding standard, simply specify the file's location: +```bash +phpcs /path/to/code/myfile.php +``` +Or if you wish to check an entire directory you can specify the directory location instead of a file. +```bash +phpcs /path/to/code-directory +``` +If you wish to check your code against the PSR-12 coding standard, use the `--standard` command line argument: +```bash +phpcs --standard=PSR12 /path/to/code-directory +``` + +If PHP_CodeSniffer finds any coding standard errors, a report will be shown after running the command. + +Full usage information and example reports are available on the [usage page](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage). + +## Documentation + +The documentation for PHP_CodeSniffer is available on the [Github wiki](https://github.com/squizlabs/PHP_CodeSniffer/wiki). + +## Issues + +Bug reports and feature requests can be submitted on the [Github Issue Tracker](https://github.com/squizlabs/PHP_CodeSniffer/issues). + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md) for information. + +## Versioning + +PHP_CodeSniffer uses a `MAJOR.MINOR.PATCH` version number format. + +The `MAJOR` version is incremented when: +- backwards-incompatible changes are made to how the `phpcs` or `phpcbf` commands are used, or +- backwards-incompatible changes are made to the `ruleset.xml` format, or +- backwards-incompatible changes are made to the API used by sniff developers, or +- custom PHP_CodeSniffer token types are removed, or +- existing sniffs are removed from PHP_CodeSniffer entirely + +The `MINOR` version is incremented when: +- new backwards-compatible features are added to the `phpcs` and `phpcbf` commands, or +- backwards-compatible changes are made to the `ruleset.xml` format, or +- backwards-compatible changes are made to the API used by sniff developers, or +- new sniffs are added to an included standard, or +- existing sniffs are removed from an included standard + +> NOTE: Backwards-compatible changes to the API used by sniff developers will allow an existing sniff to continue running without producing fatal errors but may not result in the sniff reporting the same errors as it did previously without changes being required. + +The `PATCH` version is incremented when: +- backwards-compatible bug fixes are made + +> NOTE: As PHP_CodeSniffer exists to report and fix issues, most bugs are the result of coding standard errors being incorrectly reported or coding standard errors not being reported when they should be. This means that the messages produced by PHP_CodeSniffer, and the fixes it makes, are likely to be different between PATCH versions. diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/autoload.php b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/autoload.php new file mode 100644 index 000000000..0dcf1b4c8 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/autoload.php @@ -0,0 +1,342 @@ + + * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) + * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + */ + +namespace PHP_CodeSniffer; + +if (class_exists('PHP_CodeSniffer\Autoload', false) === false) { + class Autoload + { + + /** + * The composer autoloader. + * + * @var \Composer\Autoload\ClassLoader + */ + private static $composerAutoloader = null; + + /** + * A mapping of file names to class names. + * + * @var array + */ + private static $loadedClasses = []; + + /** + * A mapping of class names to file names. + * + * @var array + */ + private static $loadedFiles = []; + + /** + * A list of additional directories to search during autoloading. + * + * This is typically a list of coding standard directories. + * + * @var string[] + */ + private static $searchPaths = []; + + + /** + * Loads a class. + * + * This method only loads classes that exist in the PHP_CodeSniffer namespace. + * All other classes are ignored and loaded by subsequent autoloaders. + * + * @param string $class The name of the class to load. + * + * @return bool + */ + public static function load($class) + { + // Include the composer autoloader if there is one, but re-register it + // so this autoloader runs before the composer one as we need to include + // all files so we can figure out what the class/interface/trait name is. + if (self::$composerAutoloader === null) { + // Make sure we don't try to load any of Composer's classes + // while the autoloader is being setup. + if (strpos($class, 'Composer\\') === 0) { + return; + } + + if (strpos(__DIR__, 'phar://') !== 0 + && @file_exists(__DIR__.'/../../autoload.php') === true + ) { + self::$composerAutoloader = include __DIR__.'/../../autoload.php'; + if (self::$composerAutoloader instanceof \Composer\Autoload\ClassLoader) { + self::$composerAutoloader->unregister(); + self::$composerAutoloader->register(); + } else { + // Something went wrong, so keep going without the autoloader + // although namespaced sniffs might error. + self::$composerAutoloader = false; + } + } else { + self::$composerAutoloader = false; + } + }//end if + + $ds = DIRECTORY_SEPARATOR; + $path = false; + + if (substr($class, 0, 16) === 'PHP_CodeSniffer\\') { + if (substr($class, 0, 22) === 'PHP_CodeSniffer\Tests\\') { + $isInstalled = !is_dir(__DIR__.$ds.'tests'); + if ($isInstalled === false) { + $path = __DIR__.$ds.'tests'; + } else { + $path = '@test_dir@'.$ds.'PHP_CodeSniffer'.$ds.'CodeSniffer'; + } + + $path .= $ds.substr(str_replace('\\', $ds, $class), 22).'.php'; + } else { + $path = __DIR__.$ds.'src'.$ds.substr(str_replace('\\', $ds, $class), 16).'.php'; + } + } + + // See if the composer autoloader knows where the class is. + if ($path === false && self::$composerAutoloader !== false) { + $path = self::$composerAutoloader->findFile($class); + } + + // See if the class is inside one of our alternate search paths. + if ($path === false) { + foreach (self::$searchPaths as $searchPath => $nsPrefix) { + $className = $class; + if ($nsPrefix !== '' && substr($class, 0, strlen($nsPrefix)) === $nsPrefix) { + $className = substr($class, (strlen($nsPrefix) + 1)); + } + + $path = $searchPath.$ds.str_replace('\\', $ds, $className).'.php'; + if (is_file($path) === true) { + break; + } + + $path = false; + } + } + + if ($path !== false && is_file($path) === true) { + self::loadFile($path); + return true; + } + + return false; + + }//end load() + + + /** + * Includes a file and tracks what class or interface was loaded as a result. + * + * @param string $path The path of the file to load. + * + * @return string The fully qualified name of the class in the loaded file. + */ + public static function loadFile($path) + { + if (strpos(__DIR__, 'phar://') !== 0) { + $path = realpath($path); + if ($path === false) { + return false; + } + } + + if (isset(self::$loadedClasses[$path]) === true) { + return self::$loadedClasses[$path]; + } + + $classesBeforeLoad = [ + 'classes' => get_declared_classes(), + 'interfaces' => get_declared_interfaces(), + 'traits' => get_declared_traits(), + ]; + + include $path; + + $classesAfterLoad = [ + 'classes' => get_declared_classes(), + 'interfaces' => get_declared_interfaces(), + 'traits' => get_declared_traits(), + ]; + + $className = self::determineLoadedClass($classesBeforeLoad, $classesAfterLoad); + + self::$loadedClasses[$path] = $className; + self::$loadedFiles[$className] = $path; + return self::$loadedClasses[$path]; + + }//end loadFile() + + + /** + * Determine which class was loaded based on the before and after lists of loaded classes. + * + * @param array $classesBeforeLoad The classes/interfaces/traits before the file was included. + * @param array $classesAfterLoad The classes/interfaces/traits after the file was included. + * + * @return string The fully qualified name of the class in the loaded file. + */ + public static function determineLoadedClass($classesBeforeLoad, $classesAfterLoad) + { + $className = null; + + $newClasses = array_diff($classesAfterLoad['classes'], $classesBeforeLoad['classes']); + if (PHP_VERSION_ID < 70400) { + $newClasses = array_reverse($newClasses); + } + + // Since PHP 7.4 get_declared_classes() does not guarantee any order, making + // it impossible to use order to determine which is the parent an which is the child. + // Let's reduce the list of candidates by removing all the classes known to be "parents". + // That way, at the end, only the "main" class just included will remain. + $newClasses = array_reduce( + $newClasses, + function ($remaining, $current) { + return array_diff($remaining, class_parents($current)); + }, + $newClasses + ); + + foreach ($newClasses as $name) { + if (isset(self::$loadedFiles[$name]) === false) { + $className = $name; + break; + } + } + + if ($className === null) { + $newClasses = array_reverse(array_diff($classesAfterLoad['interfaces'], $classesBeforeLoad['interfaces'])); + foreach ($newClasses as $name) { + if (isset(self::$loadedFiles[$name]) === false) { + $className = $name; + break; + } + } + } + + if ($className === null) { + $newClasses = array_reverse(array_diff($classesAfterLoad['traits'], $classesBeforeLoad['traits'])); + foreach ($newClasses as $name) { + if (isset(self::$loadedFiles[$name]) === false) { + $className = $name; + break; + } + } + } + + return $className; + + }//end determineLoadedClass() + + + /** + * Adds a directory to search during autoloading. + * + * @param string $path The path to the directory to search. + * @param string $nsPrefix The namespace prefix used by files under this path. + * + * @return void + */ + public static function addSearchPath($path, $nsPrefix='') + { + self::$searchPaths[$path] = rtrim(trim((string) $nsPrefix), '\\'); + + }//end addSearchPath() + + + /** + * Retrieve the namespaces and paths registered by external standards. + * + * @return array + */ + public static function getSearchPaths() + { + return self::$searchPaths; + + }//end getSearchPaths() + + + /** + * Gets the class name for the given file path. + * + * @param string $path The name of the file. + * + * @throws \Exception If the file path has not been loaded. + * @return string + */ + public static function getLoadedClassName($path) + { + if (isset(self::$loadedClasses[$path]) === false) { + throw new \Exception("Cannot get class name for $path; file has not been included"); + } + + return self::$loadedClasses[$path]; + + }//end getLoadedClassName() + + + /** + * Gets the file path for the given class name. + * + * @param string $class The name of the class. + * + * @throws \Exception If the class name has not been loaded + * @return string + */ + public static function getLoadedFileName($class) + { + if (isset(self::$loadedFiles[$class]) === false) { + throw new \Exception("Cannot get file name for $class; class has not been included"); + } + + return self::$loadedFiles[$class]; + + }//end getLoadedFileName() + + + /** + * Gets the mapping of file names to class names. + * + * @return array + */ + public static function getLoadedClasses() + { + return self::$loadedClasses; + + }//end getLoadedClasses() + + + /** + * Gets the mapping of class names to file names. + * + * @return array + */ + public static function getLoadedFiles() + { + return self::$loadedFiles; + + }//end getLoadedFiles() + + + }//end class + + // Register the autoloader before any existing autoloaders to ensure + // it gets a chance to hear about every autoload request, and record + // the file and class name for it. + spl_autoload_register(__NAMESPACE__.'\Autoload::load', true, true); +}//end if diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcbf b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcbf new file mode 100644 index 000000000..45b43f432 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcbf @@ -0,0 +1,19 @@ +#!/usr/bin/env php + + * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) + * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + */ + +if (is_file(__DIR__.'/../autoload.php') === true) { + include_once __DIR__.'/../autoload.php'; +} else { + include_once 'PHP/CodeSniffer/autoload.php'; +} + +$runner = new PHP_CodeSniffer\Runner(); +$exitCode = $runner->runPHPCBF(); +exit($exitCode); diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcbf.bat b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcbf.bat new file mode 100644 index 000000000..5b07a7d92 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcbf.bat @@ -0,0 +1,12 @@ +@echo off +REM PHP Code Beautifier and Fixer fixes violations of a defined coding standard. +REM +REM @author Greg Sherwood +REM @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) +REM @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + +if "%PHP_PEAR_PHP_BIN%" neq "" ( + set PHPBIN=%PHP_PEAR_PHP_BIN% +) else set PHPBIN=php + +"%PHPBIN%" "%~dp0\phpcbf" %* diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcs b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcs new file mode 100644 index 000000000..52d28cdf1 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcs @@ -0,0 +1,19 @@ +#!/usr/bin/env php + + * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) + * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + */ + +if (is_file(__DIR__.'/../autoload.php') === true) { + include_once __DIR__.'/../autoload.php'; +} else { + include_once 'PHP/CodeSniffer/autoload.php'; +} + +$runner = new PHP_CodeSniffer\Runner(); +$exitCode = $runner->runPHPCS(); +exit($exitCode); diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcs.bat b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcs.bat new file mode 100644 index 000000000..9f9be7203 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/bin/phpcs.bat @@ -0,0 +1,12 @@ +@echo off +REM PHP_CodeSniffer detects violations of a defined coding standard. +REM +REM @author Greg Sherwood +REM @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) +REM @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + +if "%PHP_PEAR_PHP_BIN%" neq "" ( + set PHPBIN=%PHP_PEAR_PHP_BIN% +) else set PHPBIN=php + +"%PHPBIN%" "%~dp0\phpcs" %* diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/composer.json b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/composer.json new file mode 100644 index 000000000..37f41a0b8 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/composer.json @@ -0,0 +1,41 @@ +{ + "name": "squizlabs/php_codesniffer", + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "type": "library", + "keywords": [ + "phpcs", + "standards", + "static analysis" + ], + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "license": "BSD-3-Clause", + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki", + "source": "https://github.com/squizlabs/PHP_CodeSniffer" + }, + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "require": { + "php": ">=5.4.0", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "ext-simplexml": "*" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ] +} diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/licence.txt b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/licence.txt new file mode 100644 index 000000000..9f95b6771 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/licence.txt @@ -0,0 +1,24 @@ +Copyright (c) 2012, Squiz Pty Ltd (ABN 77 084 670 600) +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holder nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/phpcs.xsd b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/phpcs.xsd new file mode 100644 index 000000000..d93dd868c --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/phpcs.xsd @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/src/Config.php b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/src/Config.php new file mode 100644 index 000000000..bfca9e1d1 --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/src/Config.php @@ -0,0 +1,1704 @@ + + * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) + * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + */ + +namespace PHP_CodeSniffer; + +use PHP_CodeSniffer\Exceptions\DeepExitException; +use PHP_CodeSniffer\Exceptions\RuntimeException; +use PHP_CodeSniffer\Util\Common; + +/** + * Stores the configuration used to run PHPCS and PHPCBF. + * + * @property string[] $files The files and directories to check. + * @property string[] $standards The standards being used for checking. + * @property int $verbosity How verbose the output should be. + * 0: no unnecessary output + * 1: basic output for files being checked + * 2: ruleset and file parsing output + * 3: sniff execution output + * @property bool $interactive Enable interactive checking mode. + * @property bool $parallel Check files in parallel. + * @property bool $cache Enable the use of the file cache. + * @property bool $cacheFile A file where the cache data should be written + * @property bool $colors Display colours in output. + * @property bool $explain Explain the coding standards. + * @property bool $local Process local files in directories only (no recursion). + * @property bool $showSources Show sniff source codes in report output. + * @property bool $showProgress Show basic progress information while running. + * @property bool $quiet Quiet mode; disables progress and verbose output. + * @property bool $annotations Process phpcs: annotations. + * @property int $tabWidth How many spaces each tab is worth. + * @property string $encoding The encoding of the files being checked. + * @property string[] $sniffs The sniffs that should be used for checking. + * If empty, all sniffs in the supplied standards will be used. + * @property string[] $exclude The sniffs that should be excluded from checking. + * If empty, all sniffs in the supplied standards will be used. + * @property string[] $ignored Regular expressions used to ignore files and folders during checking. + * @property string $reportFile A file where the report output should be written. + * @property string $generator The documentation generator to use. + * @property string $filter The filter to use for the run. + * @property string[] $bootstrap One of more files to include before the run begins. + * @property int $reportWidth The maximum number of columns that reports should use for output. + * Set to "auto" for have this value changed to the width of the terminal. + * @property int $errorSeverity The minimum severity an error must have to be displayed. + * @property int $warningSeverity The minimum severity a warning must have to be displayed. + * @property bool $recordErrors Record the content of error messages as well as error counts. + * @property string $suffix A suffix to add to fixed files. + * @property string $basepath A file system location to strip from the paths of files shown in reports. + * @property bool $stdin Read content from STDIN instead of supplied files. + * @property string $stdinContent Content passed directly to PHPCS on STDIN. + * @property string $stdinPath The path to use for content passed on STDIN. + * + * @property array $extensions File extensions that should be checked, and what tokenizer to use. + * E.g., array('inc' => 'PHP'); + * @property array $reports The reports to use for printing output after the run. + * The format of the array is: + * array( + * 'reportName1' => 'outputFile', + * 'reportName2' => null, + * ); + * If the array value is NULL, the report will be written to the screen. + * + * @property string[] $unknown Any arguments gathered on the command line that are unknown to us. + * E.g., using `phpcs -c` will give array('c'); + */ +class Config +{ + + /** + * The current version. + * + * @var string + */ + const VERSION = '3.7.2'; + + /** + * Package stability; either stable, beta or alpha. + * + * @var string + */ + const STABILITY = 'stable'; + + /** + * An array of settings that PHPCS and PHPCBF accept. + * + * This array is not meant to be accessed directly. Instead, use the settings + * as if they are class member vars so the __get() and __set() magic methods + * can be used to validate the values. For example, to set the verbosity level to + * level 2, use $this->verbosity = 2; instead of accessing this property directly. + * + * Each of these settings is described in the class comment property list. + * + * @var array + */ + private $settings = [ + 'files' => null, + 'standards' => null, + 'verbosity' => null, + 'interactive' => null, + 'parallel' => null, + 'cache' => null, + 'cacheFile' => null, + 'colors' => null, + 'explain' => null, + 'local' => null, + 'showSources' => null, + 'showProgress' => null, + 'quiet' => null, + 'annotations' => null, + 'tabWidth' => null, + 'encoding' => null, + 'extensions' => null, + 'sniffs' => null, + 'exclude' => null, + 'ignored' => null, + 'reportFile' => null, + 'generator' => null, + 'filter' => null, + 'bootstrap' => null, + 'reports' => null, + 'basepath' => null, + 'reportWidth' => null, + 'errorSeverity' => null, + 'warningSeverity' => null, + 'recordErrors' => null, + 'suffix' => null, + 'stdin' => null, + 'stdinContent' => null, + 'stdinPath' => null, + 'unknown' => null, + ]; + + /** + * Whether or not to kill the process when an unknown command line arg is found. + * + * If FALSE, arguments that are not command line options or file/directory paths + * will be ignored and execution will continue. These values will be stored in + * $this->unknown. + * + * @var boolean + */ + public $dieOnUnknownArg; + + /** + * The current command line arguments we are processing. + * + * @var string[] + */ + private $cliArgs = []; + + /** + * Command line values that the user has supplied directly. + * + * @var array + */ + private static $overriddenDefaults = []; + + /** + * Config file data that has been loaded for the run. + * + * @var array + */ + private static $configData = null; + + /** + * The full path to the config data file that has been loaded. + * + * @var string + */ + private static $configDataFile = null; + + /** + * Automatically discovered executable utility paths. + * + * @var array + */ + private static $executablePaths = []; + + + /** + * Get the value of an inaccessible property. + * + * @param string $name The name of the property. + * + * @return mixed + * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the setting name is invalid. + */ + public function __get($name) + { + if (array_key_exists($name, $this->settings) === false) { + throw new RuntimeException("ERROR: unable to get value of property \"$name\""); + } + + return $this->settings[$name]; + + }//end __get() + + + /** + * Set the value of an inaccessible property. + * + * @param string $name The name of the property. + * @param mixed $value The value of the property. + * + * @return void + * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the setting name is invalid. + */ + public function __set($name, $value) + { + if (array_key_exists($name, $this->settings) === false) { + throw new RuntimeException("Can't __set() $name; setting doesn't exist"); + } + + switch ($name) { + case 'reportWidth' : + // Support auto terminal width. + if ($value === 'auto' + && function_exists('shell_exec') === true + && preg_match('|\d+ (\d+)|', shell_exec('stty size 2>&1'), $matches) === 1 + ) { + $value = (int) $matches[1]; + } else { + $value = (int) $value; + } + break; + case 'standards' : + $cleaned = []; + + // Check if the standard name is valid, or if the case is invalid. + $installedStandards = Util\Standards::getInstalledStandards(); + foreach ($value as $standard) { + foreach ($installedStandards as $validStandard) { + if (strtolower($standard) === strtolower($validStandard)) { + $standard = $validStandard; + break; + } + } + + $cleaned[] = $standard; + } + + $value = $cleaned; + break; + default : + // No validation required. + break; + }//end switch + + $this->settings[$name] = $value; + + }//end __set() + + + /** + * Check if the value of an inaccessible property is set. + * + * @param string $name The name of the property. + * + * @return bool + */ + public function __isset($name) + { + return isset($this->settings[$name]); + + }//end __isset() + + + /** + * Unset the value of an inaccessible property. + * + * @param string $name The name of the property. + * + * @return void + */ + public function __unset($name) + { + $this->settings[$name] = null; + + }//end __unset() + + + /** + * Get the array of all config settings. + * + * @return array + */ + public function getSettings() + { + return $this->settings; + + }//end getSettings() + + + /** + * Set the array of all config settings. + * + * @param array $settings The array of config settings. + * + * @return void + */ + public function setSettings($settings) + { + return $this->settings = $settings; + + }//end setSettings() + + + /** + * Creates a Config object and populates it with command line values. + * + * @param array $cliArgs An array of values gathered from CLI args. + * @param bool $dieOnUnknownArg Whether or not to kill the process when an + * unknown command line arg is found. + * + * @return void + */ + public function __construct(array $cliArgs=[], $dieOnUnknownArg=true) + { + if (defined('PHP_CODESNIFFER_IN_TESTS') === true) { + // Let everything through during testing so that we can + // make use of PHPUnit command line arguments as well. + $this->dieOnUnknownArg = false; + } else { + $this->dieOnUnknownArg = $dieOnUnknownArg; + } + + if (empty($cliArgs) === true) { + $cliArgs = $_SERVER['argv']; + array_shift($cliArgs); + } + + $this->restoreDefaults(); + $this->setCommandLineValues($cliArgs); + + if (isset(self::$overriddenDefaults['standards']) === false) { + // They did not supply a standard to use. + // Look for a default ruleset in the current directory or higher. + $currentDir = getcwd(); + + $defaultFiles = [ + '.phpcs.xml', + 'phpcs.xml', + '.phpcs.xml.dist', + 'phpcs.xml.dist', + ]; + + do { + foreach ($defaultFiles as $defaultFilename) { + $default = $currentDir.DIRECTORY_SEPARATOR.$defaultFilename; + if (is_file($default) === true) { + $this->standards = [$default]; + break(2); + } + } + + $lastDir = $currentDir; + $currentDir = dirname($currentDir); + } while ($currentDir !== '.' && $currentDir !== $lastDir && Common::isReadable($currentDir) === true); + }//end if + + if (defined('STDIN') === false + || stripos(PHP_OS, 'WIN') === 0 + ) { + return; + } + + $handle = fopen('php://stdin', 'r'); + + // Check for content on STDIN. + if ($this->stdin === true + || (Util\Common::isStdinATTY() === false + && feof($handle) === false) + ) { + $readStreams = [$handle]; + $writeSteams = null; + + $fileContents = ''; + while (is_resource($handle) === true && feof($handle) === false) { + // Set a timeout of 200ms. + if (stream_select($readStreams, $writeSteams, $writeSteams, 0, 200000) === 0) { + break; + } + + $fileContents .= fgets($handle); + } + + if (trim($fileContents) !== '') { + $this->stdin = true; + $this->stdinContent = $fileContents; + self::$overriddenDefaults['stdin'] = true; + self::$overriddenDefaults['stdinContent'] = true; + } + }//end if + + fclose($handle); + + }//end __construct() + + + /** + * Set the command line values. + * + * @param array $args An array of command line arguments to set. + * + * @return void + */ + public function setCommandLineValues($args) + { + $this->cliArgs = $args; + $numArgs = count($args); + + for ($i = 0; $i < $numArgs; $i++) { + $arg = $this->cliArgs[$i]; + if ($arg === '') { + continue; + } + + if ($arg[0] === '-') { + if ($arg === '-') { + // Asking to read from STDIN. + $this->stdin = true; + self::$overriddenDefaults['stdin'] = true; + continue; + } + + if ($arg === '--') { + // Empty argument, ignore it. + continue; + } + + if ($arg[1] === '-') { + $this->processLongArgument(substr($arg, 2), $i); + } else { + $switches = str_split($arg); + foreach ($switches as $switch) { + if ($switch === '-') { + continue; + } + + $this->processShortArgument($switch, $i); + } + } + } else { + $this->processUnknownArgument($arg, $i); + }//end if + }//end for + + }//end setCommandLineValues() + + + /** + * Restore default values for all possible command line arguments. + * + * @return void + */ + public function restoreDefaults() + { + $this->files = []; + $this->standards = ['PEAR']; + $this->verbosity = 0; + $this->interactive = false; + $this->cache = false; + $this->cacheFile = null; + $this->colors = false; + $this->explain = false; + $this->local = false; + $this->showSources = false; + $this->showProgress = false; + $this->quiet = false; + $this->annotations = true; + $this->parallel = 1; + $this->tabWidth = 0; + $this->encoding = 'utf-8'; + $this->extensions = [ + 'php' => 'PHP', + 'inc' => 'PHP', + 'js' => 'JS', + 'css' => 'CSS', + ]; + $this->sniffs = []; + $this->exclude = []; + $this->ignored = []; + $this->reportFile = null; + $this->generator = null; + $this->filter = null; + $this->bootstrap = []; + $this->basepath = null; + $this->reports = ['full' => null]; + $this->reportWidth = 'auto'; + $this->errorSeverity = 5; + $this->warningSeverity = 5; + $this->recordErrors = true; + $this->suffix = ''; + $this->stdin = false; + $this->stdinContent = null; + $this->stdinPath = null; + $this->unknown = []; + + $standard = self::getConfigData('default_standard'); + if ($standard !== null) { + $this->standards = explode(',', $standard); + } + + $reportFormat = self::getConfigData('report_format'); + if ($reportFormat !== null) { + $this->reports = [$reportFormat => null]; + } + + $tabWidth = self::getConfigData('tab_width'); + if ($tabWidth !== null) { + $this->tabWidth = (int) $tabWidth; + } + + $encoding = self::getConfigData('encoding'); + if ($encoding !== null) { + $this->encoding = strtolower($encoding); + } + + $severity = self::getConfigData('severity'); + if ($severity !== null) { + $this->errorSeverity = (int) $severity; + $this->warningSeverity = (int) $severity; + } + + $severity = self::getConfigData('error_severity'); + if ($severity !== null) { + $this->errorSeverity = (int) $severity; + } + + $severity = self::getConfigData('warning_severity'); + if ($severity !== null) { + $this->warningSeverity = (int) $severity; + } + + $showWarnings = self::getConfigData('show_warnings'); + if ($showWarnings !== null) { + $showWarnings = (bool) $showWarnings; + if ($showWarnings === false) { + $this->warningSeverity = 0; + } + } + + $reportWidth = self::getConfigData('report_width'); + if ($reportWidth !== null) { + $this->reportWidth = $reportWidth; + } + + $showProgress = self::getConfigData('show_progress'); + if ($showProgress !== null) { + $this->showProgress = (bool) $showProgress; + } + + $quiet = self::getConfigData('quiet'); + if ($quiet !== null) { + $this->quiet = (bool) $quiet; + } + + $colors = self::getConfigData('colors'); + if ($colors !== null) { + $this->colors = (bool) $colors; + } + + if (defined('PHP_CODESNIFFER_IN_TESTS') === false) { + $cache = self::getConfigData('cache'); + if ($cache !== null) { + $this->cache = (bool) $cache; + } + + $parallel = self::getConfigData('parallel'); + if ($parallel !== null) { + $this->parallel = max((int) $parallel, 1); + } + } + + }//end restoreDefaults() + + + /** + * Processes a short (-e) command line argument. + * + * @param string $arg The command line argument. + * @param int $pos The position of the argument on the command line. + * + * @return void + * @throws \PHP_CodeSniffer\Exceptions\DeepExitException + */ + public function processShortArgument($arg, $pos) + { + switch ($arg) { + case 'h': + case '?': + ob_start(); + $this->printUsage(); + $output = ob_get_contents(); + ob_end_clean(); + throw new DeepExitException($output, 0); + case 'i' : + ob_start(); + Util\Standards::printInstalledStandards(); + $output = ob_get_contents(); + ob_end_clean(); + throw new DeepExitException($output, 0); + case 'v' : + if ($this->quiet === true) { + // Ignore when quiet mode is enabled. + break; + } + + $this->verbosity++; + self::$overriddenDefaults['verbosity'] = true; + break; + case 'l' : + $this->local = true; + self::$overriddenDefaults['local'] = true; + break; + case 's' : + $this->showSources = true; + self::$overriddenDefaults['showSources'] = true; + break; + case 'a' : + $this->interactive = true; + self::$overriddenDefaults['interactive'] = true; + break; + case 'e': + $this->explain = true; + self::$overriddenDefaults['explain'] = true; + break; + case 'p' : + if ($this->quiet === true) { + // Ignore when quiet mode is enabled. + break; + } + + $this->showProgress = true; + self::$overriddenDefaults['showProgress'] = true; + break; + case 'q' : + // Quiet mode disables a few other settings as well. + $this->quiet = true; + $this->showProgress = false; + $this->verbosity = 0; + + self::$overriddenDefaults['quiet'] = true; + break; + case 'm' : + $this->recordErrors = false; + self::$overriddenDefaults['recordErrors'] = true; + break; + case 'd' : + $ini = explode('=', $this->cliArgs[($pos + 1)]); + $this->cliArgs[($pos + 1)] = ''; + if (isset($ini[1]) === true) { + ini_set($ini[0], $ini[1]); + } else { + ini_set($ini[0], true); + } + break; + case 'n' : + if (isset(self::$overriddenDefaults['warningSeverity']) === false) { + $this->warningSeverity = 0; + self::$overriddenDefaults['warningSeverity'] = true; + } + break; + case 'w' : + if (isset(self::$overriddenDefaults['warningSeverity']) === false) { + $this->warningSeverity = $this->errorSeverity; + self::$overriddenDefaults['warningSeverity'] = true; + } + break; + default: + if ($this->dieOnUnknownArg === false) { + $unknown = $this->unknown; + $unknown[] = $arg; + $this->unknown = $unknown; + } else { + $this->processUnknownArgument('-'.$arg, $pos); + } + }//end switch + + }//end processShortArgument() + + + /** + * Processes a long (--example) command line argument. + * + * @param string $arg The command line argument. + * @param int $pos The position of the argument on the command line. + * + * @return void + * @throws \PHP_CodeSniffer\Exceptions\DeepExitException + */ + public function processLongArgument($arg, $pos) + { + switch ($arg) { + case 'help': + ob_start(); + $this->printUsage(); + $output = ob_get_contents(); + ob_end_clean(); + throw new DeepExitException($output, 0); + case 'version': + $output = 'PHP_CodeSniffer version '.self::VERSION.' ('.self::STABILITY.') '; + $output .= 'by Squiz (http://www.squiz.net)'.PHP_EOL; + throw new DeepExitException($output, 0); + case 'colors': + if (isset(self::$overriddenDefaults['colors']) === true) { + break; + } + + $this->colors = true; + self::$overriddenDefaults['colors'] = true; + break; + case 'no-colors': + if (isset(self::$overriddenDefaults['colors']) === true) { + break; + } + + $this->colors = false; + self::$overriddenDefaults['colors'] = true; + break; + case 'cache': + if (isset(self::$overriddenDefaults['cache']) === true) { + break; + } + + if (defined('PHP_CODESNIFFER_IN_TESTS') === false) { + $this->cache = true; + self::$overriddenDefaults['cache'] = true; + } + break; + case 'no-cache': + if (isset(self::$overriddenDefaults['cache']) === true) { + break; + } + + $this->cache = false; + self::$overriddenDefaults['cache'] = true; + break; + case 'ignore-annotations': + if (isset(self::$overriddenDefaults['annotations']) === true) { + break; + } + + $this->annotations = false; + self::$overriddenDefaults['annotations'] = true; + break; + case 'config-set': + if (isset($this->cliArgs[($pos + 1)]) === false + || isset($this->cliArgs[($pos + 2)]) === false + ) { + $error = 'ERROR: Setting a config option requires a name and value'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $key = $this->cliArgs[($pos + 1)]; + $value = $this->cliArgs[($pos + 2)]; + $current = self::getConfigData($key); + + try { + $this->setConfigData($key, $value); + } catch (\Exception $e) { + throw new DeepExitException($e->getMessage().PHP_EOL, 3); + } + + $output = 'Using config file: '.self::$configDataFile.PHP_EOL.PHP_EOL; + + if ($current === null) { + $output .= "Config value \"$key\" added successfully".PHP_EOL; + } else { + $output .= "Config value \"$key\" updated successfully; old value was \"$current\"".PHP_EOL; + } + throw new DeepExitException($output, 0); + case 'config-delete': + if (isset($this->cliArgs[($pos + 1)]) === false) { + $error = 'ERROR: Deleting a config option requires the name of the option'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $output = 'Using config file: '.self::$configDataFile.PHP_EOL.PHP_EOL; + + $key = $this->cliArgs[($pos + 1)]; + $current = self::getConfigData($key); + if ($current === null) { + $output .= "Config value \"$key\" has not been set".PHP_EOL; + } else { + try { + $this->setConfigData($key, null); + } catch (\Exception $e) { + throw new DeepExitException($e->getMessage().PHP_EOL, 3); + } + + $output .= "Config value \"$key\" removed successfully; old value was \"$current\"".PHP_EOL; + } + throw new DeepExitException($output, 0); + case 'config-show': + ob_start(); + $data = self::getAllConfigData(); + echo 'Using config file: '.self::$configDataFile.PHP_EOL.PHP_EOL; + $this->printConfigData($data); + $output = ob_get_contents(); + ob_end_clean(); + throw new DeepExitException($output, 0); + case 'runtime-set': + if (isset($this->cliArgs[($pos + 1)]) === false + || isset($this->cliArgs[($pos + 2)]) === false + ) { + $error = 'ERROR: Setting a runtime config option requires a name and value'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $key = $this->cliArgs[($pos + 1)]; + $value = $this->cliArgs[($pos + 2)]; + $this->cliArgs[($pos + 1)] = ''; + $this->cliArgs[($pos + 2)] = ''; + self::setConfigData($key, $value, true); + if (isset(self::$overriddenDefaults['runtime-set']) === false) { + self::$overriddenDefaults['runtime-set'] = []; + } + + self::$overriddenDefaults['runtime-set'][$key] = true; + break; + default: + if (substr($arg, 0, 7) === 'sniffs=') { + if (isset(self::$overriddenDefaults['sniffs']) === true) { + break; + } + + $sniffs = explode(',', substr($arg, 7)); + foreach ($sniffs as $sniff) { + if (substr_count($sniff, '.') !== 2) { + $error = 'ERROR: The specified sniff code "'.$sniff.'" is invalid'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + } + + $this->sniffs = $sniffs; + self::$overriddenDefaults['sniffs'] = true; + } else if (substr($arg, 0, 8) === 'exclude=') { + if (isset(self::$overriddenDefaults['exclude']) === true) { + break; + } + + $sniffs = explode(',', substr($arg, 8)); + foreach ($sniffs as $sniff) { + if (substr_count($sniff, '.') !== 2) { + $error = 'ERROR: The specified sniff code "'.$sniff.'" is invalid'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + } + + $this->exclude = $sniffs; + self::$overriddenDefaults['exclude'] = true; + } else if (defined('PHP_CODESNIFFER_IN_TESTS') === false + && substr($arg, 0, 6) === 'cache=' + ) { + if ((isset(self::$overriddenDefaults['cache']) === true + && $this->cache === false) + || isset(self::$overriddenDefaults['cacheFile']) === true + ) { + break; + } + + // Turn caching on. + $this->cache = true; + self::$overriddenDefaults['cache'] = true; + + $this->cacheFile = Util\Common::realpath(substr($arg, 6)); + + // It may not exist and return false instead. + if ($this->cacheFile === false) { + $this->cacheFile = substr($arg, 6); + + $dir = dirname($this->cacheFile); + if (is_dir($dir) === false) { + $error = 'ERROR: The specified cache file path "'.$this->cacheFile.'" points to a non-existent directory'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + if ($dir === '.') { + // Passed cache file is a file in the current directory. + $this->cacheFile = getcwd().'/'.basename($this->cacheFile); + } else { + if ($dir[0] === '/') { + // An absolute path. + $dir = Util\Common::realpath($dir); + } else { + $dir = Util\Common::realpath(getcwd().'/'.$dir); + } + + if ($dir !== false) { + // Cache file path is relative. + $this->cacheFile = $dir.'/'.basename($this->cacheFile); + } + } + }//end if + + self::$overriddenDefaults['cacheFile'] = true; + + if (is_dir($this->cacheFile) === true) { + $error = 'ERROR: The specified cache file path "'.$this->cacheFile.'" is a directory'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + } else if (substr($arg, 0, 10) === 'bootstrap=') { + $files = explode(',', substr($arg, 10)); + $bootstrap = []; + foreach ($files as $file) { + $path = Util\Common::realpath($file); + if ($path === false) { + $error = 'ERROR: The specified bootstrap file "'.$file.'" does not exist'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $bootstrap[] = $path; + } + + $this->bootstrap = array_merge($this->bootstrap, $bootstrap); + self::$overriddenDefaults['bootstrap'] = true; + } else if (substr($arg, 0, 10) === 'file-list=') { + $fileList = substr($arg, 10); + $path = Util\Common::realpath($fileList); + if ($path === false) { + $error = 'ERROR: The specified file list "'.$fileList.'" does not exist'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $files = file($path); + foreach ($files as $inputFile) { + $inputFile = trim($inputFile); + + // Skip empty lines. + if ($inputFile === '') { + continue; + } + + $this->processFilePath($inputFile); + } + } else if (substr($arg, 0, 11) === 'stdin-path=') { + if (isset(self::$overriddenDefaults['stdinPath']) === true) { + break; + } + + $this->stdinPath = Util\Common::realpath(substr($arg, 11)); + + // It may not exist and return false instead, so use whatever they gave us. + if ($this->stdinPath === false) { + $this->stdinPath = trim(substr($arg, 11)); + } + + self::$overriddenDefaults['stdinPath'] = true; + } else if (PHP_CODESNIFFER_CBF === false && substr($arg, 0, 12) === 'report-file=') { + if (isset(self::$overriddenDefaults['reportFile']) === true) { + break; + } + + $this->reportFile = Util\Common::realpath(substr($arg, 12)); + + // It may not exist and return false instead. + if ($this->reportFile === false) { + $this->reportFile = substr($arg, 12); + + $dir = Util\Common::realpath(dirname($this->reportFile)); + if (is_dir($dir) === false) { + $error = 'ERROR: The specified report file path "'.$this->reportFile.'" points to a non-existent directory'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $this->reportFile = $dir.'/'.basename($this->reportFile); + }//end if + + self::$overriddenDefaults['reportFile'] = true; + + if (is_dir($this->reportFile) === true) { + $error = 'ERROR: The specified report file path "'.$this->reportFile.'" is a directory'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + } else if (substr($arg, 0, 13) === 'report-width=') { + if (isset(self::$overriddenDefaults['reportWidth']) === true) { + break; + } + + $this->reportWidth = substr($arg, 13); + self::$overriddenDefaults['reportWidth'] = true; + } else if (substr($arg, 0, 9) === 'basepath=') { + if (isset(self::$overriddenDefaults['basepath']) === true) { + break; + } + + self::$overriddenDefaults['basepath'] = true; + + if (substr($arg, 9) === '') { + $this->basepath = null; + break; + } + + $this->basepath = Util\Common::realpath(substr($arg, 9)); + + // It may not exist and return false instead. + if ($this->basepath === false) { + $this->basepath = substr($arg, 9); + } + + if (is_dir($this->basepath) === false) { + $error = 'ERROR: The specified basepath "'.$this->basepath.'" points to a non-existent directory'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + } else if ((substr($arg, 0, 7) === 'report=' || substr($arg, 0, 7) === 'report-')) { + $reports = []; + + if ($arg[6] === '-') { + // This is a report with file output. + $split = strpos($arg, '='); + if ($split === false) { + $report = substr($arg, 7); + $output = null; + } else { + $report = substr($arg, 7, ($split - 7)); + $output = substr($arg, ($split + 1)); + if ($output === false) { + $output = null; + } else { + $dir = Util\Common::realpath(dirname($output)); + if (is_dir($dir) === false) { + $error = 'ERROR: The specified '.$report.' report file path "'.$output.'" points to a non-existent directory'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $output = $dir.'/'.basename($output); + + if (is_dir($output) === true) { + $error = 'ERROR: The specified '.$report.' report file path "'.$output.'" is a directory'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + }//end if + }//end if + + $reports[$report] = $output; + } else { + // This is a single report. + if (isset(self::$overriddenDefaults['reports']) === true) { + break; + } + + $reportNames = explode(',', substr($arg, 7)); + foreach ($reportNames as $report) { + $reports[$report] = null; + } + }//end if + + // Remove the default value so the CLI value overrides it. + if (isset(self::$overriddenDefaults['reports']) === false) { + $this->reports = $reports; + } else { + $this->reports = array_merge($this->reports, $reports); + } + + self::$overriddenDefaults['reports'] = true; + } else if (substr($arg, 0, 7) === 'filter=') { + if (isset(self::$overriddenDefaults['filter']) === true) { + break; + } + + $this->filter = substr($arg, 7); + self::$overriddenDefaults['filter'] = true; + } else if (substr($arg, 0, 9) === 'standard=') { + $standards = trim(substr($arg, 9)); + if ($standards !== '') { + $this->standards = explode(',', $standards); + } + + self::$overriddenDefaults['standards'] = true; + } else if (substr($arg, 0, 11) === 'extensions=') { + if (isset(self::$overriddenDefaults['extensions']) === true) { + break; + } + + $extensions = explode(',', substr($arg, 11)); + $newExtensions = []; + foreach ($extensions as $ext) { + $slash = strpos($ext, '/'); + if ($slash !== false) { + // They specified the tokenizer too. + list($ext, $tokenizer) = explode('/', $ext); + $newExtensions[$ext] = strtoupper($tokenizer); + continue; + } + + if (isset($this->extensions[$ext]) === true) { + $newExtensions[$ext] = $this->extensions[$ext]; + } else { + $newExtensions[$ext] = 'PHP'; + } + } + + $this->extensions = $newExtensions; + self::$overriddenDefaults['extensions'] = true; + } else if (substr($arg, 0, 7) === 'suffix=') { + if (isset(self::$overriddenDefaults['suffix']) === true) { + break; + } + + $this->suffix = substr($arg, 7); + self::$overriddenDefaults['suffix'] = true; + } else if (substr($arg, 0, 9) === 'parallel=') { + if (isset(self::$overriddenDefaults['parallel']) === true) { + break; + } + + $this->parallel = max((int) substr($arg, 9), 1); + self::$overriddenDefaults['parallel'] = true; + } else if (substr($arg, 0, 9) === 'severity=') { + $this->errorSeverity = (int) substr($arg, 9); + $this->warningSeverity = $this->errorSeverity; + if (isset(self::$overriddenDefaults['errorSeverity']) === false) { + self::$overriddenDefaults['errorSeverity'] = true; + } + + if (isset(self::$overriddenDefaults['warningSeverity']) === false) { + self::$overriddenDefaults['warningSeverity'] = true; + } + } else if (substr($arg, 0, 15) === 'error-severity=') { + if (isset(self::$overriddenDefaults['errorSeverity']) === true) { + break; + } + + $this->errorSeverity = (int) substr($arg, 15); + self::$overriddenDefaults['errorSeverity'] = true; + } else if (substr($arg, 0, 17) === 'warning-severity=') { + if (isset(self::$overriddenDefaults['warningSeverity']) === true) { + break; + } + + $this->warningSeverity = (int) substr($arg, 17); + self::$overriddenDefaults['warningSeverity'] = true; + } else if (substr($arg, 0, 7) === 'ignore=') { + if (isset(self::$overriddenDefaults['ignored']) === true) { + break; + } + + // Split the ignore string on commas, unless the comma is escaped + // using 1 or 3 slashes (\, or \\\,). + $patterns = preg_split( + '/(?<=(?ignored = $ignored; + self::$overriddenDefaults['ignored'] = true; + } else if (substr($arg, 0, 10) === 'generator=' + && PHP_CODESNIFFER_CBF === false + ) { + if (isset(self::$overriddenDefaults['generator']) === true) { + break; + } + + $this->generator = substr($arg, 10); + self::$overriddenDefaults['generator'] = true; + } else if (substr($arg, 0, 9) === 'encoding=') { + if (isset(self::$overriddenDefaults['encoding']) === true) { + break; + } + + $this->encoding = strtolower(substr($arg, 9)); + self::$overriddenDefaults['encoding'] = true; + } else if (substr($arg, 0, 10) === 'tab-width=') { + if (isset(self::$overriddenDefaults['tabWidth']) === true) { + break; + } + + $this->tabWidth = (int) substr($arg, 10); + self::$overriddenDefaults['tabWidth'] = true; + } else { + if ($this->dieOnUnknownArg === false) { + $eqPos = strpos($arg, '='); + try { + if ($eqPos === false) { + $this->values[$arg] = $arg; + } else { + $value = substr($arg, ($eqPos + 1)); + $arg = substr($arg, 0, $eqPos); + $this->values[$arg] = $value; + } + } catch (RuntimeException $e) { + // Value is not valid, so just ignore it. + } + } else { + $this->processUnknownArgument('--'.$arg, $pos); + } + }//end if + break; + }//end switch + + }//end processLongArgument() + + + /** + * Processes an unknown command line argument. + * + * Assumes all unknown arguments are files and folders to check. + * + * @param string $arg The command line argument. + * @param int $pos The position of the argument on the command line. + * + * @return void + * @throws \PHP_CodeSniffer\Exceptions\DeepExitException + */ + public function processUnknownArgument($arg, $pos) + { + // We don't know about any additional switches; just files. + if ($arg[0] === '-') { + if ($this->dieOnUnknownArg === false) { + return; + } + + $error = "ERROR: option \"$arg\" not known".PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } + + $this->processFilePath($arg); + + }//end processUnknownArgument() + + + /** + * Processes a file path and add it to the file list. + * + * @param string $path The path to the file to add. + * + * @return void + * @throws \PHP_CodeSniffer\Exceptions\DeepExitException + */ + public function processFilePath($path) + { + // If we are processing STDIN, don't record any files to check. + if ($this->stdin === true) { + return; + } + + $file = Util\Common::realpath($path); + if (file_exists($file) === false) { + if ($this->dieOnUnknownArg === false) { + return; + } + + $error = 'ERROR: The file "'.$path.'" does not exist.'.PHP_EOL.PHP_EOL; + $error .= $this->printShortUsage(true); + throw new DeepExitException($error, 3); + } else { + // Can't modify the files array directly because it's not a real + // class member, so need to use this little get/modify/set trick. + $files = $this->files; + $files[] = $file; + $this->files = $files; + self::$overriddenDefaults['files'] = true; + } + + }//end processFilePath() + + + /** + * Prints out the usage information for this script. + * + * @return void + */ + public function printUsage() + { + echo PHP_EOL; + + if (PHP_CODESNIFFER_CBF === true) { + $this->printPHPCBFUsage(); + } else { + $this->printPHPCSUsage(); + } + + echo PHP_EOL; + + }//end printUsage() + + + /** + * Prints out the short usage information for this script. + * + * @param bool $return If TRUE, the usage string is returned + * instead of output to screen. + * + * @return string|void + */ + public function printShortUsage($return=false) + { + if (PHP_CODESNIFFER_CBF === true) { + $usage = 'Run "phpcbf --help" for usage information'; + } else { + $usage = 'Run "phpcs --help" for usage information'; + } + + $usage .= PHP_EOL.PHP_EOL; + + if ($return === true) { + return $usage; + } + + echo $usage; + + }//end printShortUsage() + + + /** + * Prints out the usage information for PHPCS. + * + * @return void + */ + public function printPHPCSUsage() + { + echo 'Usage: phpcs [-nwlsaepqvi] [-d key[=value]] [--colors] [--no-colors]'.PHP_EOL; + echo ' [--cache[=]] [--no-cache] [--tab-width=]'.PHP_EOL; + echo ' [--report=] [--report-file=] [--report-=]'.PHP_EOL; + echo ' [--report-width=] [--basepath=] [--bootstrap=]'.PHP_EOL; + echo ' [--severity=] [--error-severity=] [--warning-severity=]'.PHP_EOL; + echo ' [--runtime-set key value] [--config-set key value] [--config-delete key] [--config-show]'.PHP_EOL; + echo ' [--standard=] [--sniffs=] [--exclude=]'.PHP_EOL; + echo ' [--encoding=] [--parallel=] [--generator=]'.PHP_EOL; + echo ' [--extensions=] [--ignore=] [--ignore-annotations]'.PHP_EOL; + echo ' [--stdin-path=] [--file-list=] [--filter=] - ...'.PHP_EOL; + echo PHP_EOL; + echo ' - Check STDIN instead of local files and directories'.PHP_EOL; + echo ' -n Do not print warnings (shortcut for --warning-severity=0)'.PHP_EOL; + echo ' -w Print both warnings and errors (this is the default)'.PHP_EOL; + echo ' -l Local directory only, no recursion'.PHP_EOL; + echo ' -s Show sniff codes in all reports'.PHP_EOL; + echo ' -a Run interactively'.PHP_EOL; + echo ' -e Explain a standard by showing the sniffs it includes'.PHP_EOL; + echo ' -p Show progress of the run'.PHP_EOL; + echo ' -q Quiet mode; disables progress and verbose output'.PHP_EOL; + echo ' -m Stop error messages from being recorded'.PHP_EOL; + echo ' (saves a lot of memory, but stops many reports from being used)'.PHP_EOL; + echo ' -v Print processed files'.PHP_EOL; + echo ' -vv Print ruleset and token output'.PHP_EOL; + echo ' -vvv Print sniff processing information'.PHP_EOL; + echo ' -i Show a list of installed coding standards'.PHP_EOL; + echo ' -d Set the [key] php.ini value to [value] or [true] if value is omitted'.PHP_EOL; + echo PHP_EOL; + echo ' --help Print this help message'.PHP_EOL; + echo ' --version Print version information'.PHP_EOL; + echo ' --colors Use colors in output'.PHP_EOL; + echo ' --no-colors Do not use colors in output (this is the default)'.PHP_EOL; + echo ' --cache Cache results between runs'.PHP_EOL; + echo ' --no-cache Do not cache results between runs (this is the default)'.PHP_EOL; + echo ' --ignore-annotations Ignore all phpcs: annotations in code comments'.PHP_EOL; + echo PHP_EOL; + echo ' Use a specific file for caching (uses a temporary file by default)'.PHP_EOL; + echo ' A path to strip from the front of file paths inside reports'.PHP_EOL; + echo ' A comma separated list of files to run before processing begins'.PHP_EOL; + echo ' The encoding of the files being checked (default is utf-8)'.PHP_EOL; + echo ' A comma separated list of file extensions to check'.PHP_EOL; + echo ' The type of the file can be specified using: ext/type'.PHP_EOL; + echo ' e.g., module/php,es/js'.PHP_EOL; + echo ' One or more files and/or directories to check'.PHP_EOL; + echo ' A file containing a list of files and/or directories to check (one per line)'.PHP_EOL; + echo ' Use either the "gitmodified" or "gitstaged" filter,'.PHP_EOL; + echo ' or specify the path to a custom filter class'.PHP_EOL; + echo ' Use either the "HTML", "Markdown" or "Text" generator'.PHP_EOL; + echo ' (forces documentation generation instead of checking)'.PHP_EOL; + echo ' A comma separated list of patterns to ignore files and directories'.PHP_EOL; + echo ' How many files should be checked simultaneously (default is 1)'.PHP_EOL; + echo ' Print either the "full", "xml", "checkstyle", "csv"'.PHP_EOL; + echo ' "json", "junit", "emacs", "source", "summary", "diff"'.PHP_EOL; + echo ' "svnblame", "gitblame", "hgblame" or "notifysend" report,'.PHP_EOL; + echo ' or specify the path to a custom report class'.PHP_EOL; + echo ' (the "full" report is printed by default)'.PHP_EOL; + echo ' Write the report to the specified file path'.PHP_EOL; + echo ' How many columns wide screen reports should be printed'.PHP_EOL; + echo ' or set to "auto" to use current screen width, where supported'.PHP_EOL; + echo ' The minimum severity required to display an error or warning'.PHP_EOL; + echo ' A comma separated list of sniff codes to include or exclude from checking'.PHP_EOL; + echo ' (all sniffs must be part of the specified standard)'.PHP_EOL; + echo ' The name or path of the coding standard to use'.PHP_EOL; + echo ' If processing STDIN, the file path that STDIN will be processed as'.PHP_EOL; + echo ' The number of spaces each tab represents'.PHP_EOL; + + }//end printPHPCSUsage() + + + /** + * Prints out the usage information for PHPCBF. + * + * @return void + */ + public function printPHPCBFUsage() + { + echo 'Usage: phpcbf [-nwli] [-d key[=value]] [--ignore-annotations] [--bootstrap=]'.PHP_EOL; + echo ' [--standard=] [--sniffs=] [--exclude=] [--suffix=]'.PHP_EOL; + echo ' [--severity=] [--error-severity=] [--warning-severity=]'.PHP_EOL; + echo ' [--tab-width=] [--encoding=] [--parallel=]'.PHP_EOL; + echo ' [--basepath=] [--extensions=] [--ignore=]'.PHP_EOL; + echo ' [--stdin-path=] [--file-list=] [--filter=] - ...'.PHP_EOL; + echo PHP_EOL; + echo ' - Fix STDIN instead of local files and directories'.PHP_EOL; + echo ' -n Do not fix warnings (shortcut for --warning-severity=0)'.PHP_EOL; + echo ' -w Fix both warnings and errors (on by default)'.PHP_EOL; + echo ' -l Local directory only, no recursion'.PHP_EOL; + echo ' -p Show progress of the run'.PHP_EOL; + echo ' -q Quiet mode; disables progress and verbose output'.PHP_EOL; + echo ' -v Print processed files'.PHP_EOL; + echo ' -vv Print ruleset and token output'.PHP_EOL; + echo ' -vvv Print sniff processing information'.PHP_EOL; + echo ' -i Show a list of installed coding standards'.PHP_EOL; + echo ' -d Set the [key] php.ini value to [value] or [true] if value is omitted'.PHP_EOL; + echo PHP_EOL; + echo ' --help Print this help message'.PHP_EOL; + echo ' --version Print version information'.PHP_EOL; + echo ' --ignore-annotations Ignore all phpcs: annotations in code comments'.PHP_EOL; + echo PHP_EOL; + echo ' A path to strip from the front of file paths inside reports'.PHP_EOL; + echo ' A comma separated list of files to run before processing begins'.PHP_EOL; + echo ' The encoding of the files being fixed (default is utf-8)'.PHP_EOL; + echo ' A comma separated list of file extensions to fix'.PHP_EOL; + echo ' The type of the file can be specified using: ext/type'.PHP_EOL; + echo ' e.g., module/php,es/js'.PHP_EOL; + echo ' One or more files and/or directories to fix'.PHP_EOL; + echo ' A file containing a list of files and/or directories to fix (one per line)'.PHP_EOL; + echo ' Use either the "gitmodified" or "gitstaged" filter,'.PHP_EOL; + echo ' or specify the path to a custom filter class'.PHP_EOL; + echo ' A comma separated list of patterns to ignore files and directories'.PHP_EOL; + echo ' How many files should be fixed simultaneously (default is 1)'.PHP_EOL; + echo ' The minimum severity required to fix an error or warning'.PHP_EOL; + echo ' A comma separated list of sniff codes to include or exclude from fixing'.PHP_EOL; + echo ' (all sniffs must be part of the specified standard)'.PHP_EOL; + echo ' The name or path of the coding standard to use'.PHP_EOL; + echo ' If processing STDIN, the file path that STDIN will be processed as'.PHP_EOL; + echo ' Write modified files to a filename using this suffix'.PHP_EOL; + echo ' ("diff" and "patch" are not used in this mode)'.PHP_EOL; + echo ' The number of spaces each tab represents'.PHP_EOL; + + }//end printPHPCBFUsage() + + + /** + * Get a single config value. + * + * @param string $key The name of the config value. + * + * @return string|null + * @see setConfigData() + * @see getAllConfigData() + */ + public static function getConfigData($key) + { + $phpCodeSnifferConfig = self::getAllConfigData(); + + if ($phpCodeSnifferConfig === null) { + return null; + } + + if (isset($phpCodeSnifferConfig[$key]) === false) { + return null; + } + + return $phpCodeSnifferConfig[$key]; + + }//end getConfigData() + + + /** + * Get the path to an executable utility. + * + * @param string $name The name of the executable utility. + * + * @return string|null + * @see getConfigData() + */ + public static function getExecutablePath($name) + { + $data = self::getConfigData($name.'_path'); + if ($data !== null) { + return $data; + } + + if ($name === "php") { + // For php, we know the executable path. There's no need to look it up. + return PHP_BINARY; + } + + if (array_key_exists($name, self::$executablePaths) === true) { + return self::$executablePaths[$name]; + } + + if (stripos(PHP_OS, 'WIN') === 0) { + $cmd = 'where '.escapeshellarg($name).' 2> nul'; + } else { + $cmd = 'which '.escapeshellarg($name).' 2> /dev/null'; + } + + $result = exec($cmd, $output, $retVal); + if ($retVal !== 0) { + $result = null; + } + + self::$executablePaths[$name] = $result; + return $result; + + }//end getExecutablePath() + + + /** + * Set a single config value. + * + * @param string $key The name of the config value. + * @param string|null $value The value to set. If null, the config + * entry is deleted, reverting it to the + * default value. + * @param boolean $temp Set this config data temporarily for this + * script run. This will not write the config + * data to the config file. + * + * @return bool + * @see getConfigData() + * @throws \PHP_CodeSniffer\Exceptions\DeepExitException If the config file can not be written. + */ + public static function setConfigData($key, $value, $temp=false) + { + if (isset(self::$overriddenDefaults['runtime-set']) === true + && isset(self::$overriddenDefaults['runtime-set'][$key]) === true + ) { + return false; + } + + if ($temp === false) { + $path = ''; + if (is_callable('\Phar::running') === true) { + $path = \Phar::running(false); + } + + if ($path !== '') { + $configFile = dirname($path).DIRECTORY_SEPARATOR.'CodeSniffer.conf'; + } else { + $configFile = dirname(__DIR__).DIRECTORY_SEPARATOR.'CodeSniffer.conf'; + if (is_file($configFile) === false + && strpos('@data_dir@', '@data_dir') === false + ) { + // If data_dir was replaced, this is a PEAR install and we can + // use the PEAR data dir to store the conf file. + $configFile = '@data_dir@/PHP_CodeSniffer/CodeSniffer.conf'; + } + } + + if (is_file($configFile) === true + && is_writable($configFile) === false + ) { + $error = 'ERROR: Config file '.$configFile.' is not writable'.PHP_EOL.PHP_EOL; + throw new DeepExitException($error, 3); + } + }//end if + + $phpCodeSnifferConfig = self::getAllConfigData(); + + if ($value === null) { + if (isset($phpCodeSnifferConfig[$key]) === true) { + unset($phpCodeSnifferConfig[$key]); + } + } else { + $phpCodeSnifferConfig[$key] = $value; + } + + if ($temp === false) { + $output = '<'.'?php'."\n".' $phpCodeSnifferConfig = '; + $output .= var_export($phpCodeSnifferConfig, true); + $output .= ";\n?".'>'; + + if (file_put_contents($configFile, $output) === false) { + $error = 'ERROR: Config file '.$configFile.' could not be written'.PHP_EOL.PHP_EOL; + throw new DeepExitException($error, 3); + } + + self::$configDataFile = $configFile; + } + + self::$configData = $phpCodeSnifferConfig; + + // If the installed paths are being set, make sure all known + // standards paths are added to the autoloader. + if ($key === 'installed_paths') { + $installedStandards = Util\Standards::getInstalledStandardDetails(); + foreach ($installedStandards as $name => $details) { + Autoload::addSearchPath($details['path'], $details['namespace']); + } + } + + return true; + + }//end setConfigData() + + + /** + * Get all config data. + * + * @return array + * @see getConfigData() + * @throws \PHP_CodeSniffer\Exceptions\DeepExitException If the config file could not be read. + */ + public static function getAllConfigData() + { + if (self::$configData !== null) { + return self::$configData; + } + + $path = ''; + if (is_callable('\Phar::running') === true) { + $path = \Phar::running(false); + } + + if ($path !== '') { + $configFile = dirname($path).DIRECTORY_SEPARATOR.'CodeSniffer.conf'; + } else { + $configFile = dirname(__DIR__).DIRECTORY_SEPARATOR.'CodeSniffer.conf'; + if (is_file($configFile) === false + && strpos('@data_dir@', '@data_dir') === false + ) { + $configFile = '@data_dir@/PHP_CodeSniffer/CodeSniffer.conf'; + } + } + + if (is_file($configFile) === false) { + self::$configData = []; + return []; + } + + if (Common::isReadable($configFile) === false) { + $error = 'ERROR: Config file '.$configFile.' is not readable'.PHP_EOL.PHP_EOL; + throw new DeepExitException($error, 3); + } + + include $configFile; + self::$configDataFile = $configFile; + self::$configData = $phpCodeSnifferConfig; + return self::$configData; + + }//end getAllConfigData() + + + /** + * Prints out the gathered config data. + * + * @param array $data The config data to print. + * + * @return void + */ + public function printConfigData($data) + { + $max = 0; + $keys = array_keys($data); + foreach ($keys as $key) { + $len = strlen($key); + if (strlen($key) > $max) { + $max = $len; + } + } + + if ($max === 0) { + return; + } + + $max += 2; + ksort($data); + foreach ($data as $name => $value) { + echo str_pad($name.': ', $max).$value.PHP_EOL; + } + + }//end printConfigData() + + +}//end class diff --git a/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/src/Exceptions/DeepExitException.php b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/src/Exceptions/DeepExitException.php new file mode 100644 index 000000000..b1440944a --- /dev/null +++ b/vendor/composer/b4cd7aea/squizlabs-PHP_CodeSniffer-ed8e00d/src/Exceptions/DeepExitException.php @@ -0,0 +1,18 @@ + + * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) + * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + */ + +namespace PHP_CodeSniffer\Exceptions; + +class DeepExitException extends \Exception +{ + +}//end class diff --git a/vendor/composer/ca-bundle/LICENSE b/vendor/composer/ca-bundle/LICENSE new file mode 100644 index 000000000..c5b5220e8 --- /dev/null +++ b/vendor/composer/ca-bundle/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2016 Composer + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/composer/ca-bundle/README.md b/vendor/composer/ca-bundle/README.md new file mode 100644 index 000000000..d8205ec53 --- /dev/null +++ b/vendor/composer/ca-bundle/README.md @@ -0,0 +1,85 @@ +composer/ca-bundle +================== + +Small utility library that lets you find a path to the system CA bundle, +and includes a fallback to the Mozilla CA bundle. + +Originally written as part of [composer/composer](https://github.com/composer/composer), +now extracted and made available as a stand-alone library. + + +Installation +------------ + +Install the latest version with: + +```bash +$ composer require composer/ca-bundle +``` + + +Requirements +------------ + +* PHP 5.3.2 is required but using the latest version of PHP is highly recommended. + + +Basic usage +----------- + +### `Composer\CaBundle\CaBundle` + +- `CaBundle::getSystemCaRootBundlePath()`: Returns the system CA bundle path, or a path to the bundled one as fallback +- `CaBundle::getBundledCaBundlePath()`: Returns the path to the bundled CA file +- `CaBundle::validateCaFile($filename)`: Validates a CA file using openssl_x509_parse only if it is safe to use +- `CaBundle::isOpensslParseSafe()`: Test if it is safe to use the PHP function openssl_x509_parse() +- `CaBundle::reset()`: Resets the static caches + + +#### To use with curl + +```php +$curl = curl_init("https://example.org/"); + +$caPathOrFile = \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath(); +if (is_dir($caPathOrFile)) { + curl_setopt($curl, CURLOPT_CAPATH, $caPathOrFile); +} else { + curl_setopt($curl, CURLOPT_CAINFO, $caPathOrFile); +} + +$result = curl_exec($curl); +``` + +#### To use with php streams + +```php +$opts = array( + 'http' => array( + 'method' => "GET" + ) +); + +$caPathOrFile = \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath(); +if (is_dir($caPathOrFile)) { + $opts['ssl']['capath'] = $caPathOrFile; +} else { + $opts['ssl']['cafile'] = $caPathOrFile; +} + +$context = stream_context_create($opts); +$result = file_get_contents('https://example.com', false, $context); +``` + +#### To use with Guzzle + +```php +$client = new \GuzzleHttp\Client([ + \GuzzleHttp\RequestOptions::VERIFY => \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath() +]); +``` + +License +------- + +composer/ca-bundle is licensed under the MIT License, see the LICENSE file for details. diff --git a/vendor/composer/ca-bundle/composer.json b/vendor/composer/ca-bundle/composer.json new file mode 100644 index 000000000..ed6a1b364 --- /dev/null +++ b/vendor/composer/ca-bundle/composer.json @@ -0,0 +1,54 @@ +{ + "name": "composer/ca-bundle", + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "type": "library", + "license": "MIT", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.2 || ^5", + "phpstan/phpstan": "^0.12.55", + "psr/log": "^1.0", + "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0 || ^6.0" + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Composer\\CaBundle\\": "tests" + } + }, + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "scripts": { + "test": "SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit", + "phpstan": "vendor/bin/phpstan analyse" + } +} diff --git a/vendor/composer/ca-bundle/res/cacert.pem b/vendor/composer/ca-bundle/res/cacert.pem new file mode 100644 index 000000000..9551dfd83 --- /dev/null +++ b/vendor/composer/ca-bundle/res/cacert.pem @@ -0,0 +1,3451 @@ +## +## Bundle of CA Root Certificates +## +## Certificate data from Mozilla as of: Tue Aug 22 03:12:04 2023 GMT +## +## This is a bundle of X.509 certificates of public Certificate Authorities +## (CA). These were automatically extracted from Mozilla's root certificates +## file (certdata.txt). This file can be found in the mozilla source tree: +## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt +## +## It contains the certificates in PEM format and therefore +## can be directly used with curl / libcurl / php_curl, or with +## an Apache+mod_ssl webserver for SSL client authentication. +## Just configure this file as the SSLCACertificateFile. +## +## Conversion done with mk-ca-bundle.pl version 1.29. +## SHA256: 0ff137babc6a5561a9cfbe9f29558972e5b528202681b7d3803d03a3e82922bd +## + + +GlobalSign Root CA +================== +-----BEGIN CERTIFICATE----- +MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx +GTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds +b2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAwMDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNV +BAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYD +VQQDExJHbG9iYWxTaWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDa +DuaZjc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavpxy0Sy6sc +THAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp1Wrjsok6Vjk4bwY8iGlb +Kk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdGsnUOhugZitVtbNV4FpWi6cgKOOvyJBNP +c1STE4U6G7weNLWLBYy5d4ux2x8gkasJU26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrX +gzT/LCrBbBlDSgeF59N89iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV +HRMBAf8EBTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0BAQUF +AAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOzyj1hTdNGCbM+w6Dj +Y1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE38NflNUVyRRBnMRddWQVDf9VMOyG +j/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymPAbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhH +hm4qxFYxldBniYUr+WymXUadDKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveC +X4XSQRjbgbMEHMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A== +-----END CERTIFICATE----- + +Entrust.net Premium 2048 Secure Server CA +========================================= +-----BEGIN CERTIFICATE----- +MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChMLRW50cnVzdC5u +ZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4gKGxp +bWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNV +BAMTKkVudHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQx +NzUwNTFaFw0yOTA3MjQxNDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3 +d3d3LmVudHJ1c3QubmV0L0NQU18yMDQ4IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTEl +MCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDEzMDEGA1UEAxMqRW50cnVzdC5u +ZXQgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgKDIwNDgpMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A +MIIBCgKCAQEArU1LqRKGsuqjIAcVFmQqK0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOL +Gp18EzoOH1u3Hs/lJBQesYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSr +hRSGlVuXMlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVTXTzW +nLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/HoZdenoVve8AjhUi +VBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH4QIDAQABo0IwQDAOBgNVHQ8BAf8E +BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJ +KoZIhvcNAQEFBQADggEBADubj1abMOdTmXx6eadNl9cZlZD7Bh/KM3xGY4+WZiT6QBshJ8rmcnPy +T/4xmf3IDExoU8aAghOY+rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7mhpElesYT6Yf +zX1XEC+bBAlahLVu2B064dae0Wx5XnkcFMXj0EyTO2U87d89vqbllRrDtRnDvV5bu/8j72gZyxKT +J1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBCbJPKVt7+bYQLCIt+jerXmCHG8+c8eS9e +nNFMFY3h7CI3zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzURZVE= +-----END CERTIFICATE----- + +Baltimore CyberTrust Root +========================= +-----BEGIN CERTIFICATE----- +MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJRTESMBAGA1UE +ChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3li +ZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoXDTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMC +SUUxEjAQBgNVBAoTCUJhbHRpbW9yZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFs +dGltb3JlIEN5YmVyVHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKME +uyKrmD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjrIZ3AQSsB +UnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeKmpYcqWe4PwzV9/lSEy/C +G9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSuXmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9 +XbIGevOF6uvUA65ehD5f/xXtabz5OTZydc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjpr +l3RjM71oGDHweI12v/yejl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoI +VDaGezq1BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEB +BQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT929hkTI7gQCvlYpNRh +cL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3WgxjkzSswF07r51XgdIGn9w/xZchMB5 +hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsa +Y71k5h+3zvDyny67G7fyUIhzksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9H +RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp +-----END CERTIFICATE----- + +Entrust Root Certification Authority +==================================== +-----BEGIN CERTIFICATE----- +MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV +BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw +b3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMWKGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsG +A1UEAxMkRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0 +MloXDTI2MTEyNzIwNTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMu +MTkwNwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSByZWZlcmVu +Y2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNVBAMTJEVudHJ1c3QgUm9v +dCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB +ALaVtkNC+sZtKm9I35RMOVcF7sN5EUFoNu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYsz +A9u3g3s+IIRe7bJWKKf44LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOww +Cj0Yzfv9KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGIrb68 +j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgNmBu1kmwhH+5pPi94DkZfs0Nw4pgHBN +rziGLp5/V6+eF67rHMsoIV+2HNjnogQi+dPa2MsCAwEAAaOBsDCBrTAOBgNVHQ8BAf8EBAMCAQYw +DwYDVR0TAQH/BAUwAwEB/zArBgNVHRAEJDAigA8yMDA2MTEyNzIwMjM0MlqBDzIwMjYxMTI3MjA1 +MzQyWjAfBgNVHSMEGDAWgBRokORnpKZTgMeGZqTx90tD+4S9bTAdBgNVHQ4EFgQUaJDkZ6SmU4DH +hmak8fdLQ/uEvW0wHQYJKoZIhvZ9B0EABBAwDhsIVjcuMTo0LjADAgSQMA0GCSqGSIb3DQEBBQUA +A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9tO1KzKtvn1ISM +Y/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6ZuaAGAT/3B+XxFNSRuzFVJ7yVTa +v52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTS +W3iDVuycNsMm4hH2Z0kdkquM++v/eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0 +tHuu2guQOHXvgR1m0vdXcDazv/wor3ElhVsT/h5/WrQ8 +-----END CERTIFICATE----- + +Comodo AAA Services root +======================== +-----BEGIN CERTIFICATE----- +MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEbMBkGA1UECAwS +R3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0Eg +TGltaXRlZDEhMB8GA1UEAwwYQUFBIENlcnRpZmljYXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAw +MFoXDTI4MTIzMTIzNTk1OVowezELMAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hl +c3RlcjEQMA4GA1UEBwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNV +BAMMGEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC +ggEBAL5AnfRu4ep2hxxNRUSOvkbIgwadwSr+GB+O5AL686tdUIoWMQuaBtDFcCLNSS1UY8y2bmhG +C1Pqy0wkwLxyTurxFa70VJoSCsN6sjNg4tqJVfMiWPPe3M/vg4aijJRPn2jymJBGhCfHdr/jzDUs +i14HZGWCwEiwqJH5YZ92IFCokcdmtet4YgNW8IoaE+oxox6gmf049vYnMlhvB/VruPsUK6+3qszW +Y19zjNoFmag4qMsXeDZRrOme9Hg6jc8P2ULimAyrL58OAd7vn5lJ8S3frHRNG5i1R8XlKdH5kBjH +Ypy+g8cmez6KJcfA3Z3mNWgQIJ2P2N7Sw4ScDV7oL8kCAwEAAaOBwDCBvTAdBgNVHQ4EFgQUoBEK +Iz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wewYDVR0f +BHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20vQUFBQ2VydGlmaWNhdGVTZXJ2aWNl +cy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29tb2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2Vz +LmNybDANBgkqhkiG9w0BAQUFAAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm +7l3sAg9g1o1QGE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz +Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2G9w84FoVxp7Z +8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsil2D4kF501KKaU73yqWjgom7C +12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg== +-----END CERTIFICATE----- + +QuoVadis Root CA 2 +================== +-----BEGIN CERTIFICATE----- +MIIFtzCCA5+gAwIBAgICBQkwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT +EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMjAeFw0wNjExMjQx +ODI3MDBaFw0zMTExMjQxODIzMzNaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM +aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQCaGMpLlA0ALa8DKYrwD4HIrkwZhR0In6spRIXzL4GtMh6QRr+jhiYaHv5+HBg6 +XJxgFyo6dIMzMH1hVBHL7avg5tKifvVrbxi3Cgst/ek+7wrGsxDp3MJGF/hd/aTa/55JWpzmM+Yk +lvc/ulsrHHo1wtZn/qtmUIttKGAr79dgw8eTvI02kfN/+NsRE8Scd3bBrrcCaoF6qUWD4gXmuVbB +lDePSHFjIuwXZQeVikvfj8ZaCuWw419eaxGrDPmF60Tp+ARz8un+XJiM9XOva7R+zdRcAitMOeGy +lZUtQofX1bOQQ7dsE/He3fbE+Ik/0XX1ksOR1YqI0JDs3G3eicJlcZaLDQP9nL9bFqyS2+r+eXyt +66/3FsvbzSUr5R/7mp/iUcw6UwxI5g69ybR2BlLmEROFcmMDBOAENisgGQLodKcftslWZvB1Jdxn +wQ5hYIizPtGo/KPaHbDRsSNU30R2be1B2MGyIrZTHN81Hdyhdyox5C315eXbyOD/5YDXC2Og/zOh +D7osFRXql7PSorW+8oyWHhqPHWykYTe5hnMz15eWniN9gqRMgeKh0bpnX5UHoycR7hYQe7xFSkyy +BNKr79X9DFHOUGoIMfmR2gyPZFwDwzqLID9ujWc9Otb+fVuIyV77zGHcizN300QyNQliBJIWENie +J0f7OyHj+OsdWwIDAQABo4GwMIGtMA8GA1UdEwEB/wQFMAMBAf8wCwYDVR0PBAQDAgEGMB0GA1Ud +DgQWBBQahGK8SEwzJQTU7tD2A8QZRtGUazBuBgNVHSMEZzBlgBQahGK8SEwzJQTU7tD2A8QZRtGU +a6FJpEcwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMT +ElF1b1ZhZGlzIFJvb3QgQ0EgMoICBQkwDQYJKoZIhvcNAQEFBQADggIBAD4KFk2fBluornFdLwUv +Z+YTRYPENvbzwCYMDbVHZF34tHLJRqUDGCdViXh9duqWNIAXINzng/iN/Ae42l9NLmeyhP3ZRPx3 +UIHmfLTJDQtyU/h2BwdBR5YM++CCJpNVjP4iH2BlfF/nJrP3MpCYUNQ3cVX2kiF495V5+vgtJodm +VjB3pjd4M1IQWK4/YY7yarHvGH5KWWPKjaJW1acvvFYfzznB4vsKqBUsfU16Y8Zsl0Q80m/DShcK ++JDSV6IZUaUtl0HaB0+pUNqQjZRG4T7wlP0QADj1O+hA4bRuVhogzG9Yje0uRY/W6ZM/57Es3zrW +IozchLsib9D45MY56QSIPMO661V6bYCZJPVsAfv4l7CUW+v90m/xd2gNNWQjrLhVoQPRTUIZ3Ph1 +WVaj+ahJefivDrkRoHy3au000LYmYjgahwz46P0u05B/B5EqHdZ+XIWDmbA4CD/pXvk1B+TJYm5X +f6dQlfe6yJvmjqIBxdZmv3lh8zwc4bmCXF2gw+nYSL0ZohEUGW6yhhtoPkg3Goi3XZZenMfvJ2II +4pEZXNLxId26F0KCl3GBUzGpn/Z9Yr9y4aOTHcyKJloJONDO1w2AFrR4pTqHTI2KpdVGl/IsELm8 +VCLAAVBpQ570su9t+Oza8eOx79+Rj1QqCyXBJhnEUhAFZdWCEOrCMc0u +-----END CERTIFICATE----- + +QuoVadis Root CA 3 +================== +-----BEGIN CERTIFICATE----- +MIIGnTCCBIWgAwIBAgICBcYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT +EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMzAeFw0wNjExMjQx +OTExMjNaFw0zMTExMjQxOTA2NDRaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM +aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQDMV0IWVJzmmNPTTe7+7cefQzlKZbPoFog02w1ZkXTPkrgEQK0CSzGrvI2RaNgg +DhoB4hp7Thdd4oq3P5kazethq8Jlph+3t723j/z9cI8LoGe+AaJZz3HmDyl2/7FWeUUrH556VOij +KTVopAFPD6QuN+8bv+OPEKhyq1hX51SGyMnzW9os2l2ObjyjPtr7guXd8lyyBTNvijbO0BNO/79K +DDRMpsMhvVAEVeuxu537RR5kFd5VAYwCdrXLoT9CabwvvWhDFlaJKjdhkf2mrk7AyxRllDdLkgbv +BNDInIjbC3uBr7E9KsRlOni27tyAsdLTmZw67mtaa7ONt9XOnMK+pUsvFrGeaDsGb659n/je7Mwp +p5ijJUMv7/FfJuGITfhebtfZFG4ZM2mnO4SJk8RTVROhUXhA+LjJou57ulJCg54U7QVSWllWp5f8 +nT8KKdjcT5EOE7zelaTfi5m+rJsziO+1ga8bxiJTyPbH7pcUsMV8eFLI8M5ud2CEpukqdiDtWAEX +MJPpGovgc2PZapKUSU60rUqFxKMiMPwJ7Wgic6aIDFUhWMXhOp8q3crhkODZc6tsgLjoC2SToJyM +Gf+z0gzskSaHirOi4XCPLArlzW1oUevaPwV/izLmE1xr/l9A4iLItLRkT9a6fUg+qGkM17uGcclz +uD87nSVL2v9A6wIDAQABo4IBlTCCAZEwDwYDVR0TAQH/BAUwAwEB/zCB4QYDVR0gBIHZMIHWMIHT +BgkrBgEEAb5YAAMwgcUwgZMGCCsGAQUFBwICMIGGGoGDQW55IHVzZSBvZiB0aGlzIENlcnRpZmlj +YXRlIGNvbnN0aXR1dGVzIGFjY2VwdGFuY2Ugb2YgdGhlIFF1b1ZhZGlzIFJvb3QgQ0EgMyBDZXJ0 +aWZpY2F0ZSBQb2xpY3kgLyBDZXJ0aWZpY2F0aW9uIFByYWN0aWNlIFN0YXRlbWVudC4wLQYIKwYB +BQUHAgEWIWh0dHA6Ly93d3cucXVvdmFkaXNnbG9iYWwuY29tL2NwczALBgNVHQ8EBAMCAQYwHQYD +VR0OBBYEFPLAE+CCQz777i9nMpY1XNu4ywLQMG4GA1UdIwRnMGWAFPLAE+CCQz777i9nMpY1XNu4 +ywLQoUmkRzBFMQswCQYDVQQGEwJCTTEZMBcGA1UEChMQUXVvVmFkaXMgTGltaXRlZDEbMBkGA1UE +AxMSUXVvVmFkaXMgUm9vdCBDQSAzggIFxjANBgkqhkiG9w0BAQUFAAOCAgEAT62gLEz6wPJv92ZV +qyM07ucp2sNbtrCD2dDQ4iH782CnO11gUyeim/YIIirnv6By5ZwkajGxkHon24QRiSemd1o417+s +hvzuXYO8BsbRd2sPbSQvS3pspweWyuOEn62Iix2rFo1bZhfZFvSLgNLd+LJ2w/w4E6oM3kJpK27z +POuAJ9v1pkQNn1pVWQvVDVJIxa6f8i+AxeoyUDUSly7B4f/xI4hROJ/yZlZ25w9Rl6VSDE1JUZU2 +Pb+iSwwQHYaZTKrzchGT5Or2m9qoXadNt54CrnMAyNojA+j56hl0YgCUyyIgvpSnWbWCar6ZeXqp +8kokUvd0/bpO5qgdAm6xDYBEwa7TIzdfu4V8K5Iu6H6li92Z4b8nby1dqnuH/grdS/yO9SbkbnBC +bjPsMZ57k8HkyWkaPcBrTiJt7qtYTcbQQcEr6k8Sh17rRdhs9ZgC06DYVYoGmRmioHfRMJ6szHXu +g/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0jWy10QJLZYxkNc91p +vGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeTmJlglFwjz1onl14LBQaTNx47aTbr +qZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK4SVhM7JZG+Ju1zdXtg2pEto= +-----END CERTIFICATE----- + +Security Communication Root CA +============================== +-----BEGIN CERTIFICATE----- +MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP +U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw +HhcNMDMwOTMwMDQyMDQ5WhcNMjMwOTMwMDQyMDQ5WjBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP +U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw +ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzs/5/022x7xZ8V6UMbXaKL0u/ZPtM7orw +8yl89f/uKuDp6bpbZCKamm8sOiZpUQWZJtzVHGpxxpp9Hp3dfGzGjGdnSj74cbAZJ6kJDKaVv0uM +DPpVmDvY6CKhS3E4eayXkmmziX7qIWgGmBSWh9JhNrxtJ1aeV+7AwFb9Ms+k2Y7CI9eNqPPYJayX +5HA49LY6tJ07lyZDo6G8SVlyTCMwhwFY9k6+HGhWZq/NQV3Is00qVUarH9oe4kA92819uZKAnDfd +DJZkndwi92SL32HeFZRSFaB9UslLqCHJxrHty8OVYNEP8Ktw+N/LTX7s1vqr2b1/VPKl6Xn62dZ2 +JChzAgMBAAGjPzA9MB0GA1UdDgQWBBSgc0mZaNyFW2XjmygvV5+9M7wHSDALBgNVHQ8EBAMCAQYw +DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAaECpqLvkT115swW1F7NgE+vGkl3g +0dNq/vu+m22/xwVtWSDEHPC32oRYAmP6SBbvT6UL90qY8j+eG61Ha2POCEfrUj94nK9NrvjVT8+a +mCoQQTlSxN3Zmw7vkwGusi7KaEIkQmywszo+zenaSMQVy+n5Bw+SUEmK3TGXX8npN6o7WWWXlDLJ +s58+OmJYxUmtYg5xpTKqL8aJdkNAExNnPaJUJRDL8Try2frbSVa7pv6nQTXD4IhhyYjH3zYQIphZ +6rBK+1YWc26sTfcioU+tHXotRSflMMFe8toTyyVCUZVHA4xsIcx0Qu1T/zOLjw9XARYvz6buyXAi +FL39vmwLAw== +-----END CERTIFICATE----- + +XRamp Global CA Root +==================== +-----BEGIN CERTIFICATE----- +MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UE +BhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2Vj +dXJpdHkgU2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkwHhcNMDQxMTAxMTcxNDA0WhcNMzUwMTAxMDUzNzE5WjCBgjELMAkGA1UEBhMCVVMx +HjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2VjdXJpdHkg +U2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3Jp +dHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCYJB69FbS638eMpSe2OAtp87ZOqCwu +IR1cRN8hXX4jdP5efrRKt6atH67gBhbim1vZZ3RrXYCPKZ2GG9mcDZhtdhAoWORlsH9KmHmf4MMx +foArtYzAQDsRhtDLooY2YKTVMIJt2W7QDxIEM5dfT2Fa8OT5kavnHTu86M/0ay00fOJIYRyO82FE +zG+gSqmUsE3a56k0enI4qEHMPJQRfevIpoy3hsvKMzvZPTeL+3o+hiznc9cKV6xkmxnr9A8ECIqs +AxcZZPRaJSKNNCyy9mgdEm3Tih4U2sSPpuIjhdV6Db1q4Ons7Be7QhtnqiXtRYMh/MHJfNViPvry +xS3T/dRlAgMBAAGjgZ8wgZwwEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud +EwEB/wQFMAMBAf8wHQYDVR0OBBYEFMZPoj0GY4QJnM5i5ASsjVy16bYbMDYGA1UdHwQvMC0wK6Ap +oCeGJWh0dHA6Ly9jcmwueHJhbXBzZWN1cml0eS5jb20vWEdDQS5jcmwwEAYJKwYBBAGCNxUBBAMC +AQEwDQYJKoZIhvcNAQEFBQADggEBAJEVOQMBG2f7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc +/Kh4ZzXxHfARvbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt +qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLaIR9NmXmd4c8n +nxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSyi6mx5O+aGtA9aZnuqCij4Tyz +8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQO+7ETPTsJ3xCwnR8gooJybQDJbw= +-----END CERTIFICATE----- + +Go Daddy Class 2 CA +=================== +-----BEGIN CERTIFICATE----- +MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMY +VGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRp +ZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkG +A1UEBhMCVVMxITAfBgNVBAoTGFRoZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28g +RGFkZHkgQ2xhc3MgMiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQAD +ggENADCCAQgCggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCAPVYYYwhv +2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6wwdhFJ2+qN1j3hybX2C32 +qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXiEqITLdiOr18SPaAIBQi2XKVlOARFmR6j +YGB0xUGlcmIbYsUfb18aQr4CUWWoriMYavx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmY +vLEHZ6IVDd2gWMZEewo+YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0O +BBYEFNLEsNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h/t2o +atTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5IEdyb3VwLCBJbmMu +MTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwG +A1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wim +PQoZ+YeAEW5p5JYXMP80kWNyOO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKt +I3lpjbi2Tc7PTMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ +HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mERdEr/VxqHD3VI +Ls9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5CufReYNnyicsbkqWletNw+vHX/b +vZ8= +-----END CERTIFICATE----- + +Starfield Class 2 CA +==================== +-----BEGIN CERTIFICATE----- +MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzElMCMGA1UEChMc +U3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZpZWxkIENsYXNzIDIg +Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQwNjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBo +MQswCQYDVQQGEwJVUzElMCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAG +A1UECxMpU3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqG +SIb3DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf8MOh2tTY +bitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN+lq2cwQlZut3f+dZxkqZ +JRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVm +epsZGD3/cVE8MC5fvj13c7JdBmzDI1aaK4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSN +F4Azbl5KXZnJHoe0nRrA1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HF +MIHCMB0GA1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fRzt0f +hvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNo +bm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBDbGFzcyAyIENlcnRpZmljYXRpb24g +QXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGs +afPzWdqbAYcaT1epoXkJKtv3L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLM +PUxA2IGvd56Deruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl +xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynpVSJYACPq4xJD +KVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEYWQPJIrSPnNVeKtelttQKbfi3 +QBFGmh95DmK/D5fs4C8fF5Q= +-----END CERTIFICATE----- + +DigiCert Assured ID Root CA +=========================== +-----BEGIN CERTIFICATE----- +MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw +IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzEx +MTEwMDAwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL +ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0Ew +ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7cJpSIqvTO +9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYPmDI2dsze3Tyoou9q+yHy +UmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW +/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpy +oeb6pNnVFzF1roV9Iq4/AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whf +GHdPAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRF +66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYunpyGd823IDzANBgkq +hkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRCdWKuh+vy1dneVrOfzM4UKLkNl2Bc +EkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTffwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38Fn +SbNd67IJKusm7Xi+fT8r87cmNW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i +8b5QZ7dsvfPxH2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe ++o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g== +-----END CERTIFICATE----- + +DigiCert Global Root CA +======================= +-----BEGIN CERTIFICATE----- +MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw +HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBDQTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAw +MDAwMDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3 +dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkq +hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsBCSDMAZOn +TjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97nh6Vfe63SKMI2tavegw5 +BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt43C/dxC//AH2hdmoRBBYMql1GNXRor5H +4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7PT19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y +7vrTC0LUq7dBMtoM1O/4gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQAB +o2MwYTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbRTLtm +8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUwDQYJKoZIhvcNAQEF +BQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/EsrhMAtudXH/vTBH1jLuG2cenTnmCmr +EbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIt +tep3Sp+dWOIrWcBAI+0tKIJFPnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886 +UAb3LujEV0lsYSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk +CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4= +-----END CERTIFICATE----- + +DigiCert High Assurance EV Root CA +================================== +-----BEGIN CERTIFICATE----- +MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSsw +KQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAw +MFoXDTMxMTExMDAwMDAwMFowbDELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZ +MBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFu +Y2UgRVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm+9S75S0t +Mqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTWPNt0OKRKzE0lgvdKpVMS +OO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEMxChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3 +MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFBIk5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQ +NAQTXKFx01p8VdteZOE3hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUe +h10aUAsgEsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMB +Af8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaAFLE+w2kD+L9HAdSY +JhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3NecnzyIZgYIVyHbIUf4KmeqvxgydkAQ +V8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6zeM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFp +myPInngiK3BD41VHMWEZ71jFhS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkK +mNEVX58Svnw2Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe +vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep+OkuE6N36B9K +-----END CERTIFICATE----- + +SwissSign Gold CA - G2 +====================== +-----BEGIN CERTIFICATE----- +MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNVBAYTAkNIMRUw +EwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3aXNzU2lnbiBHb2xkIENBIC0gRzIwHhcN +MDYxMDI1MDgzMDM1WhcNMzYxMDI1MDgzMDM1WjBFMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dp +c3NTaWduIEFHMR8wHQYDVQQDExZTd2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUq +t2/876LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+bbqBHH5C +jCA12UNNhPqE21Is8w4ndwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c6bM8K8vzARO/Ws/BtQpg +vd21mWRTuKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqEemA8atufK+ze3gE/bk3lUIbLtK/tREDF +ylqM2tIrfKjuvqblCqoOpd8FUrdVxyJdMmqXl2MT28nbeTZ7hTpKxVKJ+STnnXepgv9VHKVxaSvR +AiTysybUa9oEVeXBCsdtMDeQKuSeFDNeFhdVxVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuend +jIj3o02yMszYF9rNt85mndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69yFGkO +peUDDniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPiaG59je883WX0XaxR +7ySArqpWl2/5rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxMgI93e2CaHt+28kgeDrpOVG2Y4OGi +GqJ3UM/EY5LsRxmd6+ZrzsECAwEAAaOBrDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw +AwEB/zAdBgNVHQ4EFgQUWyV7lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64 +OfPAeGZe6Drn8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEFBQcCARYgaHR0cDov +L3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBACe645R88a7A3hfm +5djV9VSwg/S7zV4Fe0+fdWavPOhWfvxyeDgD2StiGwC5+OlgzczOUYrHUDFu4Up+GC9pWbY9ZIEr +44OE5iKHjn3g7gKZYbge9LgriBIWhMIxkziWMaa5O1M/wySTVltpkuzFwbs4AOPsF6m43Md8AYOf +Mke6UiI0HTJ6CVanfCU2qT1L2sCCbwq7EsiHSycR+R4tx5M/nttfJmtS2S6K8RTGRI0Vqbe/vd6m +Gu6uLftIdxf+u+yvGPUqUfA5hJeVbG4bwyvEdGB5JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxp +mo/a77KwPJ+HbBIrZXAVUjEaJM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCChdiDyyJk +vC24JdVUorgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid392qgQmwLOM7XdVAyksLf +KzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEppLd6leNcG2mqeSz53OiATIgHQv2ieY2Br +NU0LbbqhPcCT4H8js1WtciVORvnSFu+wZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6Lqj +viOvrv1vA+ACOzB2+httQc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ +-----END CERTIFICATE----- + +SwissSign Silver CA - G2 +======================== +-----BEGIN CERTIFICATE----- +MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCQ0gxFTAT +BgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMB4X +DTA2MTAyNTA4MzI0NloXDTM2MTAyNTA4MzI0NlowRzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3 +aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkqhkiG +9w0BAQEFAAOCAg8AMIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dOcbpLj6VzHVxumK4DV644 +N0MvFz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gREpzn5/ASLHvGiTSf5YXu6t+WiE7brYT7QbNHm ++/pe7R20nqA1W6GSy/BJkv6FCgU+5tkL4k+73JU3/JHpMjUi0R86TieFnbAVlDLaYQ1HTWBCrpJH +6INaUFjpiou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH6ATK72oxh9TAtvmUcXtnZLi2kUpCe2Uu +MGoM9ZDulebyzYLs2aFK7PayS+VFheZteJMELpyCbTapxDFkH4aDCyr0NQp4yVXPQbBH6TCfmb5h +qAaEuSh6XzjZG6k4sIN/c8HDO0gqgg8hm7jMqDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5 +FZGkECwJMoBgs5PAKrYYC51+jUnyEEp/+dVGLxmSo5mnJqy7jDzmDrxHB9xzUfFwZC8I+bRHHTBs +ROopN4WSaGa8gzj+ezku01DwH/teYLappvonQfGbGHLy9YR0SslnxFSuSGTfjNFusB3hB48IHpmc +celM2KX3RxIfdNFRnobzwqIjQAtz20um53MGjMGg6cFZrEb65i/4z3GcRm25xBWNOHkDRUjvxF3X +CO6HOSKGsg0PWEP3calILv3q1h8CAwEAAaOBrDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/ +BAUwAwEB/zAdBgNVHQ4EFgQUF6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRB +tjpbO8tFnb0cwpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggrBgEFBQcCARYgaHR0 +cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBAHPGgeAn0i0P +4JUw4ppBf1AsX19iYamGamkYDHRJ1l2E6kFSGG9YrVBWIGrGvShpWJHckRE1qTodvBqlYJ7YH39F +kWnZfrt4csEGDyrOj4VwYaygzQu4OSlWhDJOhrs9xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcSH9/L +3XWgwF15kIwb4FDm3jH+mHtwX6WQ2K34ArZv02DdQEsixT2tOnqfGhpHkXkzuoLcMmkDlm4fS/Bx +/uNncqCxv1yL5PqZIseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFa +DGi8aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2Xem1ZqSqP +e97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQRdAtq/gsD/KNVV4n+Ssuu +WxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJ +DIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ub +DgEj8Z+7fNzcbBGXJbLytGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u +-----END CERTIFICATE----- + +SecureTrust CA +============== +-----BEGIN CERTIFICATE----- +MIIDuDCCAqCgAwIBAgIQDPCOXAgWpa1Cf/DrJxhZ0DANBgkqhkiG9w0BAQUFADBIMQswCQYDVQQG +EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xFzAVBgNVBAMTDlNlY3VyZVRy +dXN0IENBMB4XDTA2MTEwNzE5MzExOFoXDTI5MTIzMTE5NDA1NVowSDELMAkGA1UEBhMCVVMxIDAe +BgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9uMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTCC +ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKukgeWVzfX2FI7CT8rU4niVWJxB4Q2ZQCQX +OZEzZum+4YOvYlyJ0fwkW2Gz4BERQRwdbvC4u/jep4G6pkjGnx29vo6pQT64lO0pGtSO0gMdA+9t +DWccV9cGrcrI9f4Or2YlSASWC12juhbDCE/RRvgUXPLIXgGZbf2IzIaowW8xQmxSPmjL8xk037uH +GFaAJsTQ3MBv396gwpEWoGQRS0S8Hvbn+mPeZqx2pHGj7DaUaHp3pLHnDi+BeuK1cobvomuL8A/b +01k/unK8RCSc43Oz969XL0Imnal0ugBS8kvNU3xHCzaFDmapCJcWNFfBZveA4+1wVMeT4C4oFVmH +ursCAwEAAaOBnTCBmjATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/ +BAUwAwEB/zAdBgNVHQ4EFgQUQjK2FvoE/f5dS3rD/fdMQB1aQ68wNAYDVR0fBC0wKzApoCegJYYj +aHR0cDovL2NybC5zZWN1cmV0cnVzdC5jb20vU1RDQS5jcmwwEAYJKwYBBAGCNxUBBAMCAQAwDQYJ +KoZIhvcNAQEFBQADggEBADDtT0rhWDpSclu1pqNlGKa7UTt36Z3q059c4EVlew3KW+JwULKUBRSu +SceNQQcSc5R+DCMh/bwQf2AQWnL1mA6s7Ll/3XpvXdMc9P+IBWlCqQVxyLesJugutIxq/3HcuLHf +mbx8IVQr5Fiiu1cprp6poxkmD5kuCLDv/WnPmRoJjeOnnyvJNjR7JLN4TJUXpAYmHrZkUjZfYGfZ +nMUFdAvnZyPSCPyI6a6Lf+Ew9Dd+/cYy2i2eRDAwbO4H3tI0/NL/QPZL9GZGBlSm8jIKYyYwa5vR +3ItHuuG51WLQoqD0ZwV4KWMabwTW+MZMo5qxN7SN5ShLHZ4swrhovO0C7jE= +-----END CERTIFICATE----- + +Secure Global CA +================ +-----BEGIN CERTIFICATE----- +MIIDvDCCAqSgAwIBAgIQB1YipOjUiolN9BPI8PjqpTANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQG +EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBH +bG9iYWwgQ0EwHhcNMDYxMTA3MTk0MjI4WhcNMjkxMjMxMTk1MjA2WjBKMQswCQYDVQQGEwJVUzEg +MB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBHbG9iYWwg +Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvNS7YrGxVaQZx5RNoJLNP2MwhR/jx +YDiJiQPpvepeRlMJ3Fz1Wuj3RSoC6zFh1ykzTM7HfAo3fg+6MpjhHZevj8fcyTiW89sa/FHtaMbQ +bqR8JNGuQsiWUGMu4P51/pinX0kuleM5M2SOHqRfkNJnPLLZ/kG5VacJjnIFHovdRIWCQtBJwB1g +8NEXLJXr9qXBkqPFwqcIYA1gBBCWeZ4WNOaptvolRTnIHmX5k/Wq8VLcmZg9pYYaDDUz+kulBAYV +HDGA76oYa8J719rO+TMg1fW9ajMtgQT7sFzUnKPiXB3jqUJ1XnvUd+85VLrJChgbEplJL4hL/VBi +0XPnj3pDAgMBAAGjgZ0wgZowEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud +EwEB/wQFMAMBAf8wHQYDVR0OBBYEFK9EBMJBfkiD2045AuzshHrmzsmkMDQGA1UdHwQtMCswKaAn +oCWGI2h0dHA6Ly9jcmwuc2VjdXJldHJ1c3QuY29tL1NHQ0EuY3JsMBAGCSsGAQQBgjcVAQQDAgEA +MA0GCSqGSIb3DQEBBQUAA4IBAQBjGghAfaReUw132HquHw0LURYD7xh8yOOvaliTFGCRsoTciE6+ +OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXOH0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cn +CDpOGR86p1hcF895P4vkp9MmI50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/5 +3CYNv6ZHdAbYiNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc +f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW +-----END CERTIFICATE----- + +COMODO Certification Authority +============================== +-----BEGIN CERTIFICATE----- +MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCBgTELMAkGA1UE +BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG +A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNVBAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1 +dGhvcml0eTAeFw0wNjEyMDEwMDAwMDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEb +MBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFD +T01PRE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0aG9yaXR5 +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3UcEbVASY06m/weaKXTuH ++7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI2GqGd0S7WWaXUF601CxwRM/aN5VCaTww +xHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV +4EajcNxo2f8ESIl33rXp+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA +1KGzqSX+DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5OnKVI +rLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW/zAOBgNVHQ8BAf8E +BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLmNvbW9k +b2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOC +AQEAPpiem/Yb6dc5t3iuHXIYSdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CP +OGEIqB6BCsAvIC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/ +RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4zJVSk/BwJVmc +IGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5ddBA6+C4OmF4O5MBKgxTMVBbkN ++8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IBZQ== +-----END CERTIFICATE----- + +COMODO ECC Certification Authority +================================== +-----BEGIN CERTIFICATE----- +MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC +R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE +ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix +GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR +Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo +b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X +4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni +wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E +BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VG +FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA +U/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY= +-----END CERTIFICATE----- + +Certigna +======== +-----BEGIN CERTIFICATE----- +MIIDqDCCApCgAwIBAgIJAP7c4wEPyUj/MA0GCSqGSIb3DQEBBQUAMDQxCzAJBgNVBAYTAkZSMRIw +EAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hMB4XDTA3MDYyOTE1MTMwNVoXDTI3 +MDYyOTE1MTMwNVowNDELMAkGA1UEBhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczERMA8GA1UEAwwI +Q2VydGlnbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDIaPHJ1tazNHUmgh7stL7q +XOEm7RFHYeGifBZ4QCHkYJ5ayGPhxLGWkv8YbWkj4Sti993iNi+RB7lIzw7sebYs5zRLcAglozyH +GxnygQcPOJAZ0xH+hrTy0V4eHpbNgGzOOzGTtvKg0KmVEn2lmsxryIRWijOp5yIVUxbwzBfsV1/p +ogqYCd7jX5xv3EjjhQsVWqa6n6xI4wmy9/Qy3l40vhx4XUJbzg4ij02Q130yGLMLLGq/jj8UEYkg +DncUtT2UCIf3JR7VsmAA7G8qKCVuKj4YYxclPz5EIBb2JsglrgVKtOdjLPOMFlN+XPsRGgjBRmKf +Irjxwo1p3Po6WAbfAgMBAAGjgbwwgbkwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUGu3+QTmQ +tCRZvgHyUtVF9lo53BEwZAYDVR0jBF0wW4AUGu3+QTmQtCRZvgHyUtVF9lo53BGhOKQ2MDQxCzAJ +BgNVBAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hggkA/tzjAQ/J +SP8wDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzANBgkqhkiG9w0BAQUFAAOCAQEA +hQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8hbV6lUmPOEvjvKtpv6zf+EwLHyzs+ +ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFncfca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1klu +PBS1xp81HlDQwY9qcEQCYsuuHWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY +1gkIl2PlwS6wt0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw +WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg== +-----END CERTIFICATE----- + +ePKI Root Certification Authority +================================= +-----BEGIN CERTIFICATE----- +MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQYDVQQG +EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xKjAoBgNVBAsMIWVQS0kg +Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMx +MjdaMF4xCzAJBgNVBAYTAlRXMSMwIQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEq +MCgGA1UECwwhZVBLSSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAHSyZbCUNs +IZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAhijHyl3SJCRImHJ7K2RKi +lTza6We/CKBk49ZCt0Xvl/T29de1ShUCWH2YWEtgvM3XDZoTM1PRYfl61dd4s5oz9wCGzh1NlDiv +qOx4UXCKXBCDUSH3ET00hl7lSM2XgYI1TBnsZfZrxQWh7kcT1rMhJ5QQCtkkO7q+RBNGMD+XPNjX +12ruOzjjK9SXDrkb5wdJfzcq+Xd4z1TtW0ado4AOkUPB1ltfFLqfpo0kR0BZv3I4sjZsN/+Z0V0O +WQqraffAsgRFelQArr5T9rXn4fg8ozHSqf4hUmTFpmfwdQcGlBSBVcYn5AGPF8Fqcde+S/uUWH1+ +ETOxQvdibBjWzwloPn9s9h6PYq2lY9sJpx8iQkEeb5mKPtf5P0B6ebClAZLSnT0IFaUQAS2zMnao +lQ2zepr7BxB4EW/hj8e6DyUadCrlHJhBmd8hh+iVBmoKs2pHdmX2Os+PYhcZewoozRrSgx4hxyy/ +vv9haLdnG7t4TY3OZ+XkwY63I2binZB1NJipNiuKmpS5nezMirH4JYlcWrYvjB9teSSnUmjDhDXi +Zo1jDiVN1Rmy5nk3pyKdVDECAwEAAaNqMGgwHQYDVR0OBBYEFB4M97Zn8uGSJglFwFU5Lnc/Qkqi +MAwGA1UdEwQFMAMBAf8wOQYEZyoHAAQxMC8wLQIBADAJBgUrDgMCGgUAMAcGBWcqAwAABBRFsMLH +ClZ87lt4DJX5GFPBphzYEDANBgkqhkiG9w0BAQUFAAOCAgEACbODU1kBPpVJufGBuvl2ICO1J2B0 +1GqZNF5sAFPZn/KmsSQHRGoqxqWOeBLoR9lYGxMqXnmbnwoqZ6YlPwZpVnPDimZI+ymBV3QGypzq +KOg4ZyYr8dW1P2WT+DZdjo2NQCCHGervJ8A9tDkPJXtoUHRVnAxZfVo9QZQlUgjgRywVMRnVvwdV +xrsStZf0X4OFunHB2WyBEXYKCrC/gpf36j36+uwtqSiUO1bd0lEursC9CBWMd1I0ltabrNMdjmEP +NXubrjlpC2JgQCA2j6/7Nu4tCEoduL+bXPjqpRugc6bY+G7gMwRfaKonh+3ZwZCc7b3jajWvY9+r +GNm65ulK6lCKD2GTHuItGeIwlDWSXQ62B68ZgI9HkFFLLk3dheLSClIKF5r8GrBQAuUBo2M3IUxE +xJtRmREOc5wGj1QupyheRDmHVi03vYVElOEMSyycw5KFNGHLD7ibSkNS/jQ6fbjpKdx2qcgw+BRx +gMYeNkh0IkFch4LoGHGLQYlE535YW6i4jRPpp2zDR+2zGp1iro2C6pSe3VkQw63d4k3jMdXH7Ojy +sP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTEW9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmOD +BCEIZ43ygknQW/2xzQ+DhNQ+IIX3Sj0rnP0qCglN6oH4EZw= +-----END CERTIFICATE----- + +certSIGN ROOT CA +================ +-----BEGIN CERTIFICATE----- +MIIDODCCAiCgAwIBAgIGIAYFFnACMA0GCSqGSIb3DQEBBQUAMDsxCzAJBgNVBAYTAlJPMREwDwYD +VQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBDQTAeFw0wNjA3MDQxNzIwMDRa +Fw0zMTA3MDQxNzIwMDRaMDsxCzAJBgNVBAYTAlJPMREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UE +CxMQY2VydFNJR04gUk9PVCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALczuX7I +JUqOtdu0KBuqV5Do0SLTZLrTk+jUrIZhQGpgV2hUhE28alQCBf/fm5oqrl0Hj0rDKH/v+yv6efHH +rfAQUySQi2bJqIirr1qjAOm+ukbuW3N7LBeCgV5iLKECZbO9xSsAfsT8AzNXDe3i+s5dRdY4zTW2 +ssHQnIFKquSyAVwdj1+ZxLGt24gh65AIgoDzMKND5pCCrlUoSe1b16kQOA7+j0xbm0bqQfWwCHTD +0IgztnzXdN/chNFDDnU5oSVAKOp4yw4sLjmdjItuFhwvJoIQ4uNllAoEwF73XVv4EOLQunpL+943 +AAAaWyjj0pxzPjKHmKHJUS/X3qwzs08CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8B +Af8EBAMCAcYwHQYDVR0OBBYEFOCMm9slSbPxfIbWskKHC9BroNnkMA0GCSqGSIb3DQEBBQUAA4IB +AQA+0hyJLjX8+HXd5n9liPRyTMks1zJO890ZeUe9jjtbkw9QSSQTaxQGcu8J06Gh40CEyecYMnQ8 +SG4Pn0vU9x7Tk4ZkVJdjclDVVc/6IJMCopvDI5NOFlV2oHB5bc0hH88vLbwZ44gx+FkagQnIl6Z0 +x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6IJd1hJyMctTEHBDa0GpC9oHRxUIlt +vBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNwi/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7Nz +TogVZ96edhBiIL5VaZVDADlN9u6wWk5JRFRYX0KD +-----END CERTIFICATE----- + +NetLock Arany (Class Gold) Főtanúsítvány +======================================== +-----BEGIN CERTIFICATE----- +MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G +A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610 +dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB +cmFueSAoQ2xhc3MgR29sZCkgRsWRdGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgx +MjA2MTUwODIxWjCBpzELMAkGA1UEBhMCSFUxETAPBgNVBAcMCEJ1ZGFwZXN0MRUwEwYDVQQKDAxO +ZXRMb2NrIEtmdC4xNzA1BgNVBAsMLlRhbsO6c8OtdHbDoW55a2lhZMOzayAoQ2VydGlmaWNhdGlv +biBTZXJ2aWNlcykxNTAzBgNVBAMMLE5ldExvY2sgQXJhbnkgKENsYXNzIEdvbGQpIEbFkXRhbsO6 +c8OtdHbDoW55MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxCRec75LbRTDofTjl5Bu +0jBFHjzuZ9lk4BqKf8owyoPjIMHj9DrTlF8afFttvzBPhCf2nx9JvMaZCpDyD/V/Q4Q3Y1GLeqVw +/HpYzY6b7cNGbIRwXdrzAZAj/E4wqX7hJ2Pn7WQ8oLjJM2P+FpD/sLj916jAwJRDC7bVWaaeVtAk +H3B5r9s5VA1lddkVQZQBr17s9o3x/61k/iCa11zr/qYfCGSji3ZVrR47KGAuhyXoqq8fxmRGILdw +fzzeSNuWU7c5d+Qa4scWhHaXWy+7GRWF+GmF9ZmnqfI0p6m2pgP8b4Y9VHx2BJtr+UBdADTHLpl1 +neWIA6pN+APSQnbAGwIDAKiLo0UwQzASBgNVHRMBAf8ECDAGAQH/AgEEMA4GA1UdDwEB/wQEAwIB +BjAdBgNVHQ4EFgQUzPpnk/C2uNClwB7zU/2MU9+D15YwDQYJKoZIhvcNAQELBQADggEBAKt/7hwW +qZw8UQCgwBEIBaeZ5m8BiFRhbvG5GK1Krf6BQCOUL/t1fC8oS2IkgYIL9WHxHG64YTjrgfpioTta +YtOUZcTh5m2C+C8lcLIhJsFyUR+MLMOEkMNaj7rP9KdlpeuY0fsFskZ1FSNqb4VjMIDw1Z4fKRzC +bLBQWV2QWzuoDTDPv31/zvGdg73JRm4gpvlhUbohL3u+pRVjodSVh/GeufOJ8z2FuLjbvrW5Kfna +NwUASZQDhETnv0Mxz3WLJdH0pmT1kvarBes96aULNmLazAZfNou2XjG4Kvte9nHfRCaexOYNkbQu +dZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E= +-----END CERTIFICATE----- + +SecureSign RootCA11 +=================== +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQGEwJKUDErMCkGA1UEChMi +SmFwYW4gQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcywgSW5jLjEcMBoGA1UEAxMTU2VjdXJlU2lnbiBS +b290Q0ExMTAeFw0wOTA0MDgwNDU2NDdaFw0yOTA0MDgwNDU2NDdaMFgxCzAJBgNVBAYTAkpQMSsw +KQYDVQQKEyJKYXBhbiBDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzLCBJbmMuMRwwGgYDVQQDExNTZWN1 +cmVTaWduIFJvb3RDQTExMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA/XeqpRyQBTvL +TJszi1oURaTnkBbR31fSIRCkF/3frNYfp+TbfPfs37gD2pRY/V1yfIw/XwFndBWW4wI8h9uuywGO +wvNmxoVF9ALGOrVisq/6nL+k5tSAMJjzDbaTj6nU2DbysPyKyiyhFTOVMdrAG/LuYpmGYz+/3ZMq +g6h2uRMft85OQoWPIucuGvKVCbIFtUROd6EgvanyTgp9UK31BQ1FT0Zx/Sg+U/sE2C3XZR1KG/rP +O7AxmjVuyIsG0wCR8pQIZUyxNAYAeoni8McDWc/V1uinMrPmmECGxc0nEovMe863ETxiYAcjPitA +bpSACW22s293bzUIUPsCh8U+iQIDAQABo0IwQDAdBgNVHQ4EFgQUW/hNT7KlhtQ60vFjmqC+CfZX +t94wDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAKCh +OBZmLqdWHyGcBvod7bkixTgm2E5P7KN/ed5GIaGHd48HCJqypMWvDzKYC3xmKbabfSVSSUOrTC4r +bnpwrxYO4wJs+0LmGJ1F2FXI6Dvd5+H0LgscNFxsWEr7jIhQX5Ucv+2rIrVls4W6ng+4reV6G4pQ +Oh29Dbx7VFALuUKvVaAYga1lme++5Jy/xIWrQbJUb9wlze144o4MjQlJ3WN7WmmWAiGovVJZ6X01 +y8hSyn+B/tlr0/cR7SXf+Of5pPpyl4RTDaXQMhhRdlkUbA/r7F+AjHVDg8OFmP9Mni0N5HeDk061 +lgeLKBObjBmNQSdJQO7e5iNEOdyhIta6A/I= +-----END CERTIFICATE----- + +Microsec e-Szigno Root CA 2009 +============================== +-----BEGIN CERTIFICATE----- +MIIECjCCAvKgAwIBAgIJAMJ+QwRORz8ZMA0GCSqGSIb3DQEBCwUAMIGCMQswCQYDVQQGEwJIVTER +MA8GA1UEBwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jv +c2VjIGUtU3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5o +dTAeFw0wOTA2MTYxMTMwMThaFw0yOTEyMzAxMTMwMThaMIGCMQswCQYDVQQGEwJIVTERMA8GA1UE +BwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jvc2VjIGUt +U3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5odTCCASIw +DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOn4j/NjrdqG2KfgQvvPkd6mJviZpWNwrZuuyjNA +fW2WbqEORO7hE52UQlKavXWFdCyoDh2Tthi3jCyoz/tccbna7P7ofo/kLx2yqHWH2Leh5TvPmUpG +0IMZfcChEhyVbUr02MelTTMuhTlAdX4UfIASmFDHQWe4oIBhVKZsTh/gnQ4H6cm6M+f+wFUoLAKA +pxn1ntxVUwOXewdI/5n7N4okxFnMUBBjjqqpGrCEGob5X7uxUG6k0QrM1XF+H6cbfPVTbiJfyyvm +1HxdrtbCxkzlBQHZ7Vf8wSN5/PrIJIOV87VqUQHQd9bpEqH5GoP7ghu5sJf0dgYzQ0mg/wu1+rUC +AwEAAaOBgDB+MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTLD8bf +QkPMPcu1SCOhGnqmKrs0aDAfBgNVHSMEGDAWgBTLD8bfQkPMPcu1SCOhGnqmKrs0aDAbBgNVHREE +FDASgRBpbmZvQGUtc3ppZ25vLmh1MA0GCSqGSIb3DQEBCwUAA4IBAQDJ0Q5eLtXMs3w+y/w9/w0o +lZMEyL/azXm4Q5DwpL7v8u8hmLzU1F0G9u5C7DBsoKqpyvGvivo/C3NqPuouQH4frlRheesuCDfX +I/OMn74dseGkddug4lQUsbocKaQY9hK6ohQU4zE1yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775 +tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c2Pm2G2JwCz02 +yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5tHMN1Rq41Bab2XD0h7lbwyYIi +LXpUq3DDfSJlgnCW +-----END CERTIFICATE----- + +GlobalSign Root CA - R3 +======================= +-----BEGIN CERTIFICATE----- +MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UECxMXR2xv +YmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh +bFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT +aWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln +bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWt +iHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsTgHeMCOFJ +0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmmKPZpO/bLyCiR5Z2KYVc3 +rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjl +OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2 +xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE +FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7 +lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8 +EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E +bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18 +YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r +kpeDMdmztcpHWD9f +-----END CERTIFICATE----- + +Autoridad de Certificacion Firmaprofesional CIF A62634068 +========================================================= +-----BEGIN CERTIFICATE----- +MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCRVMxQjBA +BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2 +MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEyMzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIw +QAYDVQQDDDlBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBB +NjI2MzQwNjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDD +Utd9thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQMcas9UX4P +B99jBVzpv5RvwSmCwLTaUbDBPLutN0pcyvFLNg4kq7/DhHf9qFD0sefGL9ItWY16Ck6WaVICqjaY +7Pz6FIMMNx/Jkjd/14Et5cS54D40/mf0PmbR0/RAz15iNA9wBj4gGFrO93IbJWyTdBSTo3OxDqqH +ECNZXyAFGUftaI6SEspd/NYrspI8IM/hX68gvqB2f3bl7BqGYTM+53u0P6APjqK5am+5hyZvQWyI +plD9amML9ZMWGxmPsu2bm8mQ9QEM3xk9Dz44I8kvjwzRAv4bVdZO0I08r0+k8/6vKtMFnXkIoctX +MbScyJCyZ/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirjaEbsX +LZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/TKI8xWVvTyQKmtFLK +bpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF6NkBiDkal4ZkQdU7hwxu+g/GvUgU +vzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVhOSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMBIGA1Ud +EwEB/wQIMAYBAf8CAQEwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRlzeurNR4APn7VdMActHNH +DhpkLzCBpgYDVR0gBIGeMIGbMIGYBgRVHSAAMIGPMC8GCCsGAQUFBwIBFiNodHRwOi8vd3d3LmZp +cm1hcHJvZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBvACAAZABlACAA +bABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBlAGwAbwBuAGEAIAAwADgAMAAx +ADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx +51tkljYyGOylMnfX40S2wBEqgLk9am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qk +R71kMrv2JYSiJ0L1ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaP +T481PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS3a/DTg4f +Jl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5kSeTy36LssUzAKh3ntLFl +osS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF3dvd6qJ2gHN99ZwExEWN57kci57q13XR +crHedUTnQn3iV2t93Jm8PYMo6oCTjcVMZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoR +saS8I8nkvof/uZS2+F0gStRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTD +KCOM/iczQ0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQBjLMi +6Et8Vcad+qMUu2WFbm5PEn4KPJ2V +-----END CERTIFICATE----- + +Izenpe.com +========== +-----BEGIN CERTIFICATE----- +MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4MQswCQYDVQQG +EwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wHhcNMDcxMjEz +MTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMu +QS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ +03rKDx6sp4boFmVqscIbRTJxldn+EFvMr+eleQGPicPK8lVx93e+d5TzcqQsRNiekpsUOqHnJJAK +ClaOxdgmlOHZSOEtPtoKct2jmRXagaKH9HtuJneJWK3W6wyyQXpzbm3benhB6QiIEn6HLmYRY2xU ++zydcsC8Lv/Ct90NduM61/e0aL6i9eOBbsFGb12N4E3GVFWJGjMxCrFXuaOKmMPsOzTFlUFpfnXC +PCDFYbpRR6AgkJOhkEvzTnyFRVSa0QUmQbC1TR0zvsQDyCV8wXDbO/QJLVQnSKwv4cSsPsjLkkxT +OTcj7NMB+eAJRE1NZMDhDVqHIrytG6P+JrUV86f8hBnp7KGItERphIPzidF0BqnMC9bC3ieFUCbK +F7jJeodWLBoBHmy+E60QrLUk9TiRodZL2vG70t5HtfG8gfZZa88ZU+mNFctKy6lvROUbQc/hhqfK +0GqfvEyNBjNaooXlkDWgYlwWTvDjovoDGrQscbNYLN57C9saD+veIR8GdwYDsMnvmfzAuU8Lhij+ +0rnq49qlw0dpEuDb8PYZi+17cNcC1u2HGCgsBCRMd+RIihrGO5rUD8r6ddIBQFqNeb+Lz0vPqhbB +leStTIo+F5HUsWLlguWABKQDfo2/2n+iD5dPDNMN+9fR5XJ+HMh3/1uaD7euBUbl8agW7EekFwID +AQABo4H2MIHzMIGwBgNVHREEgagwgaWBD2luZm9AaXplbnBlLmNvbaSBkTCBjjFHMEUGA1UECgw+ +SVpFTlBFIFMuQS4gLSBDSUYgQTAxMzM3MjYwLVJNZXJjLlZpdG9yaWEtR2FzdGVpeiBUMTA1NSBG +NjIgUzgxQzBBBgNVBAkMOkF2ZGEgZGVsIE1lZGl0ZXJyYW5lbyBFdG9yYmlkZWEgMTQgLSAwMTAx +MCBWaXRvcmlhLUdhc3RlaXowDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O +BBYEFB0cZQ6o8iV7tJHP5LGx5r1VdGwFMA0GCSqGSIb3DQEBCwUAA4ICAQB4pgwWSp9MiDrAyw6l +Fn2fuUhfGI8NYjb2zRlrrKvV9pF9rnHzP7MOeIWblaQnIUdCSnxIOvVFfLMMjlF4rJUT3sb9fbga +kEyrkgPH7UIBzg/YsfqikuFgba56awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8q +hT/AQKM6WfxZSzwoJNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Cs +g1lwLDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCTVyvehQP5 +aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGkLhObNA5me0mrZJfQRsN5 +nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC +ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo +Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z +WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw== +-----END CERTIFICATE----- + +Go Daddy Root Certificate Authority - G2 +======================================== +-----BEGIN CERTIFICATE----- +MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT +B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoTEUdvRGFkZHkuY29tLCBJbmMu +MTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5 +MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6 +b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8G +A1UEAxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKDE6bFIEMBO4Tx5oVJnyfq +9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD ++qK+ihVqf94Lw7YZFAXK6sOoBJQ7RnwyDfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutd +fMh8+7ArU6SSYmlRJQVhGkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMl +NAJWJwGRtDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEAAaNC +MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFDqahQcQZyi27/a9 +BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmXWWcDYfF+OwYxdS2hII5PZYe096ac +vNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r +5N9ss4UXnT3ZJE95kTXWXwTrgIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYV +N8Gb5DKj7Tjo2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO +LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI4uJEvlz36hz1 +-----END CERTIFICATE----- + +Starfield Root Certificate Authority - G2 +========================================= +-----BEGIN CERTIFICATE----- +MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT +B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s +b2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVsZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0 +eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAw +DgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQg +VGVjaG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZpY2F0ZSBB +dXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3twQP89o/8ArFv +W59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMgnLRJdzIpVv257IzdIvpy3Cdhl+72WoTs +bhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNk +N3mSwOxGXn/hbVNMYq/NHwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7Nf +ZTD4p7dNdloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0HZbU +JtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0GCSqGSIb3DQEBCwUAA4IBAQARWfol +TwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjUsHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx +4mcujJUDJi5DnUox9g61DLu34jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUw +F5okxBDgBPfg8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K +pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ +c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0 +-----END CERTIFICATE----- + +Starfield Services Root Certificate Authority - G2 +================================================== +-----BEGIN CERTIFICATE----- +MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT +B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s +b2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVsZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRl +IEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNV +BAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxT +dGFyZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2VydmljZXMg +Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC +AQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20pOsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2 +h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm28xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4Pa +hHQUw2eeBGg6345AWh1KTs9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLP +LJGmpufehRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk6mFB +rMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAwDwYDVR0TAQH/BAUw +AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMA0GCSqG +SIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMIbw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPP +E95Dz+I0swSdHynVv/heyNXBve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTy +xQGjhdByPq1zqwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd +iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn0q23KXB56jza +YyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCNsSi6 +-----END CERTIFICATE----- + +AffirmTrust Commercial +====================== +-----BEGIN CERTIFICATE----- +MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UEBhMCVVMxFDAS +BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMB4XDTEw +MDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly +bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEF +AAOCAQ8AMIIBCgKCAQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6Eqdb +DuKPHx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yrba0F8PrV +C8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPALMeIrJmqbTFeurCA+ukV6 +BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1yHp52UKqK39c/s4mT6NmgTWvRLpUHhww +MmWd5jyTXlBOeuM61G7MGvv50jeuJCqrVwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNV +HQ4EFgQUnZPGU4teyq8/nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AQYwDQYJKoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYGXUPG +hi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNjvbz4YYCanrHOQnDi +qX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivtZ8SOyUOyXGsViQK8YvxO8rUzqrJv +0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9gN53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0kh +sUlHRUe072o0EclNmsxZt9YCnlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8= +-----END CERTIFICATE----- + +AffirmTrust Networking +====================== +-----BEGIN CERTIFICATE----- +MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UEBhMCVVMxFDAS +BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMB4XDTEw +MDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly +bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEF +AAOCAQ8AMIIBCgKCAQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SE +Hi3yYJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbuakCNrmreI +dIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRLQESxG9fhwoXA3hA/Pe24 +/PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gb +h+0t+nvujArjqWaJGctB+d1ENmHP4ndGyH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNV +HQ4EFgQUBx/S55zawm6iQLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AQYwDQYJKoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfOtDIu +UFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzuQY0x2+c06lkh1QF6 +12S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZLgo/bNjR9eUJtGxUAArgFU2HdW23 +WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4uolu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9 +/ZFvgrG+CJPbFEfxojfHRZ48x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s= +-----END CERTIFICATE----- + +AffirmTrust Premium +=================== +-----BEGIN CERTIFICATE----- +MIIFRjCCAy6gAwIBAgIIbYwURrGmCu4wDQYJKoZIhvcNAQEMBQAwQTELMAkGA1UEBhMCVVMxFDAS +BgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMB4XDTEwMDEy +OTE0MTAzNloXDTQwMTIzMTE0MTAzNlowQTELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRy +dXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A +MIICCgKCAgEAxBLfqV/+Qd3d9Z+K4/as4Tx4mrzY8H96oDMq3I0gW64tb+eT2TZwamjPjlGjhVtn +BKAQJG9dKILBl1fYSCkTtuG+kU3fhQxTGJoeJKJPj/CihQvL9Cl/0qRY7iZNyaqoe5rZ+jjeRFcV +5fiMyNlI4g0WJx0eyIOFJbe6qlVBzAMiSy2RjYvmia9mx+n/K+k8rNrSs8PhaJyJ+HoAVt70VZVs ++7pk3WKL3wt3MutizCaam7uqYoNMtAZ6MMgpv+0GTZe5HMQxK9VfvFMSF5yZVylmd2EhMQcuJUmd +GPLu8ytxjLW6OQdJd/zvLpKQBY0tL3d770O/Nbua2Plzpyzy0FfuKE4mX4+QaAkvuPjcBukumj5R +p9EixAqnOEhss/n/fauGV+O61oV4d7pD6kh/9ti+I20ev9E2bFhc8e6kGVQa9QPSdubhjL08s9NI +S+LI+H+SqHZGnEJlPqQewQcDWkYtuJfzt9WyVSHvutxMAJf7FJUnM7/oQ0dG0giZFmA7mn7S5u04 +6uwBHjxIVkkJx0w3AJ6IDsBz4W9m6XJHMD4Q5QsDyZpCAGzFlH5hxIrff4IaC1nEWTJ3s7xgaVY5 +/bQGeyzWZDbZvUjthB9+pSKPKrhC9IK31FOQeE4tGv2Bb0TXOwF0lkLgAOIua+rF7nKsu7/+6qqo ++Nz2snmKtmcCAwEAAaNCMEAwHQYDVR0OBBYEFJ3AZ6YMItkm9UWrpmVSESfYRaxjMA8GA1UdEwEB +/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByv +MiPIs0laUZx2KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg +Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B8OWycvpEgjNC +6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQMKSOyARiqcTtNd56l+0OOF6S +L5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK ++4w1IX2COPKpVJEZNZOUbWo6xbLQu4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmV +BtWVyuEklut89pMFu+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFg +IxpHYoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8GKa1qF60 +g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaORtGdFNrHF+QFlozEJLUb +zxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6eKeC2uAloGRwYQw== +-----END CERTIFICATE----- + +AffirmTrust Premium ECC +======================= +-----BEGIN CERTIFICATE----- +MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMCVVMxFDASBgNV +BAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQcmVtaXVtIEVDQzAeFw0xMDAx +MjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJBgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1U +cnVzdDEgMB4GA1UEAwwXQWZmaXJtVHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQA +IgNiAAQNMF4bFZ0D0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQ +N8O9ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0GA1UdDgQW +BBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAK +BggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/VsaobgxCd05DhT1wV/GzTjxi+zygk8N53X +57hG8f2h4nECMEJZh0PUUd+60wkyWs6Iflc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKM +eQ== +-----END CERTIFICATE----- + +Certum Trusted Network CA +========================= +-----BEGIN CERTIFICATE----- +MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQK +ExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIy +MTIwNzM3WhcNMjkxMjMxMTIwNzM3WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBU +ZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5 +MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC +AQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rHUV+rpDKmYYe2bg+G0jAC +l/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88J +J7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVUBBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4 +fOQtf/WsX+sWn7Et0brMkUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0 +cvW0QM8xAcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNVHRMB +Af8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMCAQYw +DQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15ysHhE49wcrwn9I0j6vSrEuVUEtRCj +jSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfLI9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1 +mS1FhIrlQgnXdAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj +Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI +03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw= +-----END CERTIFICATE----- + +TWCA Root Certification Authority +================================= +-----BEGIN CERTIFICATE----- +MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ +VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh +dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG +EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB +IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK +AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx +QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC +oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP +4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r +y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB +BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG +9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC +mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW +QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY +T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny +Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw== +-----END CERTIFICATE----- + +Security Communication RootCA2 +============================== +-----BEGIN CERTIFICATE----- +MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UEChMc +U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMeU2VjdXJpdHkgQ29tbXVuaWNh +dGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoXDTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMC +SlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3Vy +aXR5IENvbW11bmljYXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB +ANAVOVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGrzbl+dp++ ++T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVMVAX3NuRFg3sUZdbcDE3R +3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQhNBqyjoGADdH5H5XTz+L62e4iKrFvlNV +spHEfbmwhRkGeC7bYRr6hfVKkaHnFtWOojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1K +EOtOghY6rCcMU/Gt1SSwawNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8 +QIH4D5csOPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEB +CwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpFcoJxDjrSzG+ntKEj +u/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXcokgfGT+Ok+vx+hfuzU7jBBJV1uXk +3fs+BXziHV7Gp7yXT2g69ekuCkO2r1dcYmh8t/2jioSgrGK+KwmHNPBqAbubKVY8/gA3zyNs8U6q +tnRGEmyR7jTV7JqR50S+kDFy1UkC9gLl9B/rfNmWVan/7Ir5mUf/NVoCqgTLiluHcSmRvaS0eg29 +mvVXIwAHIRc/SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03 +-----END CERTIFICATE----- + +Actalis Authentication Root CA +============================== +-----BEGIN CERTIFICATE----- +MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UEBhMCSVQxDjAM +BgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UE +AwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDky +MjExMjIwMlowazELMAkGA1UEBhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlz +IFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290 +IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNvUTufClrJ +wkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX4ay8IMKx4INRimlNAJZa +by/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9KK3giq0itFZljoZUj5NDKd45RnijMCO6 +zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1f +YVEiVRvjRuPjPdA1YprbrxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2 +oxgkg4YQ51Q+qDp2JE+BIcXjDwL4k5RHILv+1A7TaLndxHqEguNTVHnd25zS8gebLra8Pu2Fbe8l +EfKXGkJh90qX6IuxEAf6ZYGyojnP9zz/GPvG8VqLWeICrHuS0E4UT1lF9gxeKF+w6D9Fz8+vm2/7 +hNN3WpVvrJSEnu68wEqPSpP4RCHiMUVhUE4Q2OM1fEwZtN4Fv6MGn8i1zeQf1xcGDXqVdFUNaBr8 +EBtiZJ1t4JWgw5QHVw0U5r0F+7if5t+L4sbnfpb2U8WANFAoWPASUHEXMLrmeGO89LKtmyuy/uE5 +jF66CyCU3nuDuP/jVo23Eek7jPKxwV2dpAtMK9myGPW1n0sCAwEAAaNjMGEwHQYDVR0OBBYEFFLY +iDrIn3hm7YnzezhwlMkCAjbQMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUUtiIOsifeGbt +ifN7OHCUyQICNtAwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQALe3KHwGCmSUyI +WOYdiPcUZEim2FgKDk8TNd81HdTtBjHIgT5q1d07GjLukD0R0i70jsNjLiNmsGe+b7bAEzlgqqI0 +JZN1Ut6nna0Oh4lScWoWPBkdg/iaKWW+9D+a2fDzWochcYBNy+A4mz+7+uAwTc+G02UQGRjRlwKx +K3JCaKygvU5a2hi/a5iB0P2avl4VSM0RFbnAKVy06Ij3Pjaut2L9HmLecHgQHEhb2rykOLpn7VU+ +Xlff1ANATIGk0k9jpwlCCRT8AKnCgHNPLsBA2RF7SOp6AsDT6ygBJlh0wcBzIm2Tlf05fbsq4/aC +4yyXX04fkZT6/iyj2HYauE2yOE+b+h1IYHkm4vP9qdCa6HCPSXrW5b0KDtst842/6+OkfcvHlXHo +2qN8xcL4dJIEG4aspCJTQLas/kx2z/uUMsA1n3Y/buWQbqCmJqK4LL7RK4X9p2jIugErsWx0Hbhz +lefut8cl8ABMALJ+tguLHPPAUJ4lueAI3jZm/zel0btUZCzJJ7VLkn5l/9Mt4blOvH+kQSGQQXem +OR/qnuOf0GZvBeyqdn6/axag67XH/JJULysRJyU3eExRarDzzFhdFPFqSBX/wge2sY0PjlxQRrM9 +vwGYT7JZVEc+NHt4bVaTLnPqZih4zR0Uv6CPLy64Lo7yFIrM6bV8+2ydDKXhlg== +-----END CERTIFICATE----- + +Buypass Class 2 Root CA +======================= +-----BEGIN CERTIFICATE----- +MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU +QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMiBSb290IENBMB4X +DTEwMTAyNjA4MzgwM1oXDTQwMTAyNjA4MzgwM1owTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1 +eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDIgUm9vdCBDQTCCAiIw +DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANfHXvfBB9R3+0Mh9PT1aeTuMgHbo4Yf5FkNuud1 +g1Lr6hxhFUi7HQfKjK6w3Jad6sNgkoaCKHOcVgb/S2TwDCo3SbXlzwx87vFKu3MwZfPVL4O2fuPn +9Z6rYPnT8Z2SdIrkHJasW4DptfQxh6NR/Md+oW+OU3fUl8FVM5I+GC911K2GScuVr1QGbNgGE41b +/+EmGVnAJLqBcXmQRFBoJJRfuLMR8SlBYaNByyM21cHxMlAQTn/0hpPshNOOvEu/XAFOBz3cFIqU +CqTqc/sLUegTBxj6DvEr0VQVfTzh97QZQmdiXnfgolXsttlpF9U6r0TtSsWe5HonfOV116rLJeff +awrbD02TTqigzXsu8lkBarcNuAeBfos4GzjmCleZPe4h6KP1DBbdi+w0jpwqHAAVF41og9JwnxgI +zRFo1clrUs3ERo/ctfPYV3Me6ZQ5BL/T3jjetFPsaRyifsSP5BtwrfKi+fv3FmRmaZ9JUaLiFRhn +Bkp/1Wy1TbMz4GHrXb7pmA8y1x1LPC5aAVKRCfLf6o3YBkBjqhHk/sM3nhRSP/TizPJhk9H9Z2vX +Uq6/aKtAQ6BXNVN48FP4YUIHZMbXb5tMOA1jrGKvNouicwoN9SG9dKpN6nIDSdvHXx1iY8f93ZHs +M+71bbRuMGjeyNYmsHVee7QHIJihdjK4TWxPAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD +VR0OBBYEFMmAd+BikoL1RpzzuvdMw964o605MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF +AAOCAgEAU18h9bqwOlI5LJKwbADJ784g7wbylp7ppHR/ehb8t/W2+xUbP6umwHJdELFx7rxP462s +A20ucS6vxOOto70MEae0/0qyexAQH6dXQbLArvQsWdZHEIjzIVEpMMpghq9Gqx3tOluwlN5E40EI +osHsHdb9T7bWR9AUC8rmyrV7d35BH16Dx7aMOZawP5aBQW9gkOLo+fsicdl9sz1Gv7SEr5AcD48S +aq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYd +DnkM/crqJIByw5c/8nerQyIKx+u2DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWD +LfJ6v9r9jv6ly0UsH8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0 +oyLQI+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK75t98biGC +wWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h3PFaTWwyI0PurKju7koS +CTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPzY11aWOIv4x3kqdbQCtCev9eBCfHJxyYN +rJgWVqA= +-----END CERTIFICATE----- + +Buypass Class 3 Root CA +======================= +-----BEGIN CERTIFICATE----- +MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU +QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMyBSb290IENBMB4X +DTEwMTAyNjA4Mjg1OFoXDTQwMTAyNjA4Mjg1OFowTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1 +eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDMgUm9vdCBDQTCCAiIw +DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKXaCpUWUOOV8l6ddjEGMnqb8RB2uACatVI2zSRH +sJ8YZLya9vrVediQYkwiL944PdbgqOkcLNt4EemOaFEVcsfzM4fkoF0LXOBXByow9c3EN3coTRiR +5r/VUv1xLXA+58bEiuPwKAv0dpihi4dVsjoT/Lc+JzeOIuOoTyrvYLs9tznDDgFHmV0ST9tD+leh +7fmdvhFHJlsTmKtdFoqwNxxXnUX/iJY2v7vKB3tvh2PX0DJq1l1sDPGzbjniazEuOQAnFN44wOwZ +ZoYS6J1yFhNkUsepNxz9gjDthBgd9K5c/3ATAOux9TN6S9ZV+AWNS2mw9bMoNlwUxFFzTWsL8TQH +2xc519woe2v1n/MuwU8XKhDzzMro6/1rqy6any2CbgTUUgGTLT2G/H783+9CHaZr77kgxve9oKeV +/afmiSTYzIw0bOIjL9kSGiG5VZFvC5F5GQytQIgLcOJ60g7YaEi7ghM5EFjp2CoHxhLbWNvSO1UQ +RwUVZ2J+GGOmRj8JDlQyXr8NYnon74Do29lLBlo3WiXQCBJ31G8JUJc9yB3D34xFMFbG02SrZvPA +Xpacw8Tvw3xrizp5f7NJzz3iiZ+gMEuFuZyUJHmPfWupRWgPK9Dx2hzLabjKSWJtyNBjYt1gD1iq +j6G8BaVmos8bdrKEZLFMOVLAMLrwjEsCsLa3AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD +VR0OBBYEFEe4zf/lb+74suwvTg75JbCOPGvDMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF +AAOCAgEAACAjQTUEkMJAYmDv4jVM1z+s4jSQuKFvdvoWFqRINyzpkMLyPPgKn9iB5btb2iUspKdV +cSQy9sgL8rxq+JOssgfCX5/bzMiKqr5qb+FJEMwx14C7u8jYog5kV+qi9cKpMRXSIGrs/CIBKM+G +uIAeqcwRpTzyFrNHnfzSgCHEy9BHcEGhyoMZCCxt8l13nIoUE9Q2HJLw5QY33KbmkJs4j1xrG0aG +Q0JfPgEHU1RdZX33inOhmlRaHylDFCfChQ+1iHsaO5S3HWCntZznKWlXWpuTekMwGwPXYshApqr8 +ZORK15FTAaggiG6cX0S5y2CBNOxv033aSF/rtJC8LakcC6wc1aJoIIAE1vyxjy+7SjENSoYc6+I2 +KSb12tjE8nVhz36udmNKekBlk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz +6MkEkbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg413OEMXbug +UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe +eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi +Cp/HuZc= +-----END CERTIFICATE----- + +T-TeleSec GlobalRoot Class 3 +============================ +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM +IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU +cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx +MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz +dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD +ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN8ELg63iIVl6bmlQdTQyK +9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/RLyTPWGrTs0NvvAgJ1gORH8EGoel15YU +NpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZF +iP0Zf3WHHx+xGwpzJFu5ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W +0eDrXltMEnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGjQjBA +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1A/d2O2GCahKqGFPr +AyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOyWL6ukK2YJ5f+AbGwUgC4TeQbIXQb +fsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzT +ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h +P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml +e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw== +-----END CERTIFICATE----- + +D-TRUST Root Class 3 CA 2 2009 +============================== +-----BEGIN CERTIFICATE----- +MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQK +DAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTAe +Fw0wOTExMDUwODM1NThaFw0yOTExMDUwODM1NThaME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxE +LVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTCCASIw +DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANOySs96R+91myP6Oi/WUEWJNTrGa9v+2wBoqOAD +ER03UAifTUpolDWzU9GUY6cgVq/eUXjsKj3zSEhQPgrfRlWLJ23DEE0NkVJD2IfgXU42tSHKXzlA +BF9bfsyjxiupQB7ZNoTWSPOSHjRGICTBpFGOShrvUD9pXRl/RcPHAY9RySPocq60vFYJfxLLHLGv +KZAKyVXMD9O0Gu1HNVpK7ZxzBCHQqr0ME7UAyiZsxGsMlFqVlNpQmvH/pStmMaTJOKDfHR+4CS7z +p+hnUquVH+BGPtikw8paxTGA6Eian5Rp/hnd2HN8gcqW3o7tszIFZYQ05ub9VxC1X3a/L7AQDcUC +AwEAAaOCARowggEWMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFP3aFMSfMN4hvR5COfyrYyNJ +4PGEMA4GA1UdDwEB/wQEAwIBBjCB0wYDVR0fBIHLMIHIMIGAoH6gfIZ6bGRhcDovL2RpcmVjdG9y +eS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwUm9vdCUyMENsYXNzJTIwMyUyMENBJTIwMiUyMDIw +MDksTz1ELVRydXN0JTIwR21iSCxDPURFP2NlcnRpZmljYXRlcmV2b2NhdGlvbmxpc3QwQ6BBoD+G +PWh0dHA6Ly93d3cuZC10cnVzdC5uZXQvY3JsL2QtdHJ1c3Rfcm9vdF9jbGFzc18zX2NhXzJfMjAw +OS5jcmwwDQYJKoZIhvcNAQELBQADggEBAH+X2zDI36ScfSF6gHDOFBJpiBSVYEQBrLLpME+bUMJm +2H6NMLVwMeniacfzcNsgFYbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0 +o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4KzCUqNQT4YJEV +dT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8PIWmawomDeCTmGCufsYkl4ph +X5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3YJohw1+qRzT65ysCQblrGXnRl11z+o+I= +-----END CERTIFICATE----- + +D-TRUST Root Class 3 CA 2 EV 2009 +================================= +-----BEGIN CERTIFICATE----- +MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK +DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw +OTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUwNDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK +DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw +OTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfS +egpnljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM03TP1YtHh +zRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6ZqQTMFexgaDbtCHu39b+T +7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0NL2lRp75mpoo6Kr3HGrHhFPC+Oh25z1uxav60 +sUYgovseO3Dvk5h9jHOW8sXvhXCtKSb8HgQ+HKDYD8tSg2J87otTlZCpV6LqYQXY+U3EJ/pure35 +11H3a6UCAwEAAaOCASQwggEgMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNOUikxiEyoZLsyv +cop9NteaHNxnMA4GA1UdDwEB/wQEAwIBBjCB3QYDVR0fBIHVMIHSMIGHoIGEoIGBhn9sZGFwOi8v +ZGlyZWN0b3J5LmQtdHJ1c3QubmV0L0NOPUQtVFJVU1QlMjBSb290JTIwQ2xhc3MlMjAzJTIwQ0El +MjAyJTIwRVYlMjAyMDA5LE89RC1UcnVzdCUyMEdtYkgsQz1ERT9jZXJ0aWZpY2F0ZXJldm9jYXRp +b25saXN0MEagRKBChkBodHRwOi8vd3d3LmQtdHJ1c3QubmV0L2NybC9kLXRydXN0X3Jvb3RfY2xh +c3NfM19jYV8yX2V2XzIwMDkuY3JsMA0GCSqGSIb3DQEBCwUAA4IBAQA07XtaPKSUiO8aEXUHL7P+ +PPoeUSbrh/Yp3uDx1MYkCenBz1UbtDDZzhr+BlGmFaQt77JLvyAoJUnRpjZ3NOhk31KxEcdzes05 +nsKtjHEh8lprr988TlWvsoRlFIm5d8sqMb7Po23Pb0iUMkZv53GMoKaEGTcH8gNFCSuGdXzfX2lX +ANtu2KZyIktQ1HWYVt+3GP9DQ1CuekR78HlR10M9p9OB0/DJT7naxpeG0ILD5EJt/rDiZE4OJudA +NCa1CInXCGNjOCd1HjPqbqjdn5lPdE2BiYBL3ZqXKVwvvoFBuYz/6n1gBp7N1z3TLqMVvKjmJuVv +w9y4AyHqnxbxLFS1 +-----END CERTIFICATE----- + +CA Disig Root R2 +================ +-----BEGIN CERTIFICATE----- +MIIFaTCCA1GgAwIBAgIJAJK4iNuwisFjMA0GCSqGSIb3DQEBCwUAMFIxCzAJBgNVBAYTAlNLMRMw +EQYDVQQHEwpCcmF0aXNsYXZhMRMwEQYDVQQKEwpEaXNpZyBhLnMuMRkwFwYDVQQDExBDQSBEaXNp +ZyBSb290IFIyMB4XDTEyMDcxOTA5MTUzMFoXDTQyMDcxOTA5MTUzMFowUjELMAkGA1UEBhMCU0sx +EzARBgNVBAcTCkJyYXRpc2xhdmExEzARBgNVBAoTCkRpc2lnIGEucy4xGTAXBgNVBAMTEENBIERp +c2lnIFJvb3QgUjIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCio8QACdaFXS1tFPbC +w3OeNcJxVX6B+6tGUODBfEl45qt5WDza/3wcn9iXAng+a0EE6UG9vgMsRfYvZNSrXaNHPWSb6Wia +xswbP7q+sos0Ai6YVRn8jG+qX9pMzk0DIaPY0jSTVpbLTAwAFjxfGs3Ix2ymrdMxp7zo5eFm1tL7 +A7RBZckQrg4FY8aAamkw/dLukO8NJ9+flXP04SXabBbeQTg06ov80egEFGEtQX6sx3dOy1FU+16S +GBsEWmjGycT6txOgmLcRK7fWV8x8nhfRyyX+hk4kLlYMeE2eARKmK6cBZW58Yh2EhN/qwGu1pSqV +g8NTEQxzHQuyRpDRQjrOQG6Vrf/GlK1ul4SOfW+eioANSW1z4nuSHsPzwfPrLgVv2RvPN3YEyLRa +5Beny912H9AZdugsBbPWnDTYltxhh5EF5EQIM8HauQhl1K6yNg3ruji6DOWbnuuNZt2Zz9aJQfYE +koopKW1rOhzndX0CcQ7zwOe9yxndnWCywmZgtrEE7snmhrmaZkCo5xHtgUUDi/ZnWejBBhG93c+A +Ak9lQHhcR1DIm+YfgXvkRKhbhZri3lrVx/k6RGZL5DJUfORsnLMOPReisjQS1n6yqEm70XooQL6i +Fh/f5DcfEXP7kAplQ6INfPgGAVUzfbANuPT1rqVCV3w2EYx7XsQDnYx5nQIDAQABo0IwQDAPBgNV +HRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtZn4r7CU9eMg1gqtzk5WpC5u +Qu0wDQYJKoZIhvcNAQELBQADggIBACYGXnDnZTPIgm7ZnBc6G3pmsgH2eDtpXi/q/075KMOYKmFM +tCQSin1tERT3nLXK5ryeJ45MGcipvXrA1zYObYVybqjGom32+nNjf7xueQgcnYqfGopTpti72TVV +sRHFqQOzVju5hJMiXn7B9hJSi+osZ7z+Nkz1uM/Rs0mSO9MpDpkblvdhuDvEK7Z4bLQjb/D907Je +dR+Zlais9trhxTF7+9FGs9K8Z7RiVLoJ92Owk6Ka+elSLotgEqv89WBW7xBci8QaQtyDW2QOy7W8 +1k/BfDxujRNt+3vrMNDcTa/F1balTFtxyegxvug4BkihGuLq0t4SOVga/4AOgnXmt8kHbA7v/zjx +mHHEt38OFdAlab0inSvtBfZGR6ztwPDUO+Ls7pZbkBNOHlY667DvlruWIxG68kOGdGSVyCh13x01 +utI3gzhTODY7z2zp+WsO0PsE6E9312UBeIYMej4hYvF/Y3EMyZ9E26gnonW+boE+18DrG5gPcFw0 +sorMwIUY6256s/daoQe/qUKS82Ail+QUoQebTnbAjn39pCXHR+3/H3OszMOl6W8KjptlwlCFtaOg +UxLMVYdh84GuEEZhvUQhuMI9dM9+JDX6HAcOmz0iyu8xL4ysEr3vQCj8KWefshNPZiTEUxnpHikV +7+ZtsH8tZ/3zbBt1RqPlShfppNcL +-----END CERTIFICATE----- + +ACCVRAIZ1 +========= +-----BEGIN CERTIFICATE----- +MIIH0zCCBbugAwIBAgIIXsO3pkN/pOAwDQYJKoZIhvcNAQEFBQAwQjESMBAGA1UEAwwJQUNDVlJB +SVoxMRAwDgYDVQQLDAdQS0lBQ0NWMQ0wCwYDVQQKDARBQ0NWMQswCQYDVQQGEwJFUzAeFw0xMTA1 +MDUwOTM3MzdaFw0zMDEyMzEwOTM3MzdaMEIxEjAQBgNVBAMMCUFDQ1ZSQUlaMTEQMA4GA1UECwwH +UEtJQUNDVjENMAsGA1UECgwEQUNDVjELMAkGA1UEBhMCRVMwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQCbqau/YUqXry+XZpp0X9DZlv3P4uRm7x8fRzPCRKPfmt4ftVTdFXxpNRFvu8gM +jmoYHtiP2Ra8EEg2XPBjs5BaXCQ316PWywlxufEBcoSwfdtNgM3802/J+Nq2DoLSRYWoG2ioPej0 +RGy9ocLLA76MPhMAhN9KSMDjIgro6TenGEyxCQ0jVn8ETdkXhBilyNpAlHPrzg5XPAOBOp0KoVdD +aaxXbXmQeOW1tDvYvEyNKKGno6e6Ak4l0Squ7a4DIrhrIA8wKFSVf+DuzgpmndFALW4ir50awQUZ +0m/A8p/4e7MCQvtQqR0tkw8jq8bBD5L/0KIV9VMJcRz/RROE5iZe+OCIHAr8Fraocwa48GOEAqDG +WuzndN9wrqODJerWx5eHk6fGioozl2A3ED6XPm4pFdahD9GILBKfb6qkxkLrQaLjlUPTAYVtjrs7 +8yM2x/474KElB0iryYl0/wiPgL/AlmXz7uxLaL2diMMxs0Dx6M/2OLuc5NF/1OVYm3z61PMOm3WR +5LpSLhl+0fXNWhn8ugb2+1KoS5kE3fj5tItQo05iifCHJPqDQsGH+tUtKSpacXpkatcnYGMN285J +9Y0fkIkyF/hzQ7jSWpOGYdbhdQrqeWZ2iE9x6wQl1gpaepPluUsXQA+xtrn13k/c4LOsOxFwYIRK +Q26ZIMApcQrAZQIDAQABo4ICyzCCAscwfQYIKwYBBQUHAQEEcTBvMEwGCCsGAQUFBzAChkBodHRw +Oi8vd3d3LmFjY3YuZXMvZmlsZWFkbWluL0FyY2hpdm9zL2NlcnRpZmljYWRvcy9yYWl6YWNjdjEu +Y3J0MB8GCCsGAQUFBzABhhNodHRwOi8vb2NzcC5hY2N2LmVzMB0GA1UdDgQWBBTSh7Tj3zcnk1X2 +VuqB5TbMjB4/vTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNKHtOPfNyeTVfZW6oHlNsyM +Hj+9MIIBcwYDVR0gBIIBajCCAWYwggFiBgRVHSAAMIIBWDCCASIGCCsGAQUFBwICMIIBFB6CARAA +QQB1AHQAbwByAGkAZABhAGQAIABkAGUAIABDAGUAcgB0AGkAZgBpAGMAYQBjAGkA8wBuACAAUgBh +AO0AegAgAGQAZQAgAGwAYQAgAEEAQwBDAFYAIAAoAEEAZwBlAG4AYwBpAGEAIABkAGUAIABUAGUA +YwBuAG8AbABvAGcA7QBhACAAeQAgAEMAZQByAHQAaQBmAGkAYwBhAGMAaQDzAG4AIABFAGwAZQBj +AHQAcgDzAG4AaQBjAGEALAAgAEMASQBGACAAUQA0ADYAMAAxADEANQA2AEUAKQAuACAAQwBQAFMA +IABlAG4AIABoAHQAdABwADoALwAvAHcAdwB3AC4AYQBjAGMAdgAuAGUAczAwBggrBgEFBQcCARYk +aHR0cDovL3d3dy5hY2N2LmVzL2xlZ2lzbGFjaW9uX2MuaHRtMFUGA1UdHwROMEwwSqBIoEaGRGh0 +dHA6Ly93d3cuYWNjdi5lcy9maWxlYWRtaW4vQXJjaGl2b3MvY2VydGlmaWNhZG9zL3JhaXphY2N2 +MV9kZXIuY3JsMA4GA1UdDwEB/wQEAwIBBjAXBgNVHREEEDAOgQxhY2N2QGFjY3YuZXMwDQYJKoZI +hvcNAQEFBQADggIBAJcxAp/n/UNnSEQU5CmH7UwoZtCPNdpNYbdKl02125DgBS4OxnnQ8pdpD70E +R9m+27Up2pvZrqmZ1dM8MJP1jaGo/AaNRPTKFpV8M9xii6g3+CfYCS0b78gUJyCpZET/LtZ1qmxN +YEAZSUNUY9rizLpm5U9EelvZaoErQNV/+QEnWCzI7UiRfD+mAM/EKXMRNt6GGT6d7hmKG9Ww7Y49 +nCrADdg9ZuM8Db3VlFzi4qc1GwQA9j9ajepDvV+JHanBsMyZ4k0ACtrJJ1vnE5Bc5PUzolVt3OAJ +TS+xJlsndQAJxGJ3KQhfnlmstn6tn1QwIgPBHnFk/vk4CpYY3QIUrCPLBhwepH2NDd4nQeit2hW3 +sCPdK6jT2iWH7ehVRE2I9DZ+hJp4rPcOVkkO1jMl1oRQQmwgEh0q1b688nCBpHBgvgW1m54ERL5h +I6zppSSMEYCUWqKiuUnSwdzRp+0xESyeGabu4VXhwOrPDYTkF7eifKXeVSUG7szAh1xA2syVP1Xg +Nce4hL60Xc16gwFy7ofmXx2utYXGJt/mwZrpHgJHnyqobalbz+xFd3+YJ5oyXSrjhO7FmGYvliAd +3djDJ9ew+f7Zfc3Qn48LFFhRny+Lwzgt3uiP1o2HpPVWQxaZLPSkVrQ0uGE3ycJYgBugl6H8WY3p +EfbRD0tVNEYqi4Y7 +-----END CERTIFICATE----- + +TWCA Global Root CA +=================== +-----BEGIN CERTIFICATE----- +MIIFQTCCAymgAwIBAgICDL4wDQYJKoZIhvcNAQELBQAwUTELMAkGA1UEBhMCVFcxEjAQBgNVBAoT +CVRBSVdBTi1DQTEQMA4GA1UECxMHUm9vdCBDQTEcMBoGA1UEAxMTVFdDQSBHbG9iYWwgUm9vdCBD +QTAeFw0xMjA2MjcwNjI4MzNaFw0zMDEyMzExNTU5NTlaMFExCzAJBgNVBAYTAlRXMRIwEAYDVQQK +EwlUQUlXQU4tQ0ExEDAOBgNVBAsTB1Jvb3QgQ0ExHDAaBgNVBAMTE1RXQ0EgR2xvYmFsIFJvb3Qg +Q0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwBdvI64zEbooh745NnHEKH1Jw7W2C +nJfF10xORUnLQEK1EjRsGcJ0pDFfhQKX7EMzClPSnIyOt7h52yvVavKOZsTuKwEHktSz0ALfUPZV +r2YOy+BHYC8rMjk1Ujoog/h7FsYYuGLWRyWRzvAZEk2tY/XTP3VfKfChMBwqoJimFb3u/Rk28OKR +Q4/6ytYQJ0lM793B8YVwm8rqqFpD/G2Gb3PpN0Wp8DbHzIh1HrtsBv+baz4X7GGqcXzGHaL3SekV +tTzWoWH1EfcFbx39Eb7QMAfCKbAJTibc46KokWofwpFFiFzlmLhxpRUZyXx1EcxwdE8tmx2RRP1W +KKD+u4ZqyPpcC1jcxkt2yKsi2XMPpfRaAok/T54igu6idFMqPVMnaR1sjjIsZAAmY2E2TqNGtz99 +sy2sbZCilaLOz9qC5wc0GZbpuCGqKX6mOL6OKUohZnkfs8O1CWfe1tQHRvMq2uYiN2DLgbYPoA/p +yJV/v1WRBXrPPRXAb94JlAGD1zQbzECl8LibZ9WYkTunhHiVJqRaCPgrdLQABDzfuBSO6N+pjWxn +kjMdwLfS7JLIvgm/LCkFbwJrnu+8vyq8W8BQj0FwcYeyTbcEqYSjMq+u7msXi7Kx/mzhkIyIqJdI +zshNy/MGz19qCkKxHh53L46g5pIOBvwFItIm4TFRfTLcDwIDAQABoyMwITAOBgNVHQ8BAf8EBAMC +AQYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAXzSBdu+WHdXltdkCY4QWwa6g +cFGn90xHNcgL1yg9iXHZqjNB6hQbbCEAwGxCGX6faVsgQt+i0trEfJdLjbDorMjupWkEmQqSpqsn +LhpNgb+E1HAerUf+/UqdM+DyucRFCCEK2mlpc3INvjT+lIutwx4116KD7+U4x6WFH6vPNOw/KP4M +8VeGTslV9xzU2KV9Bnpv1d8Q34FOIWWxtuEXeZVFBs5fzNxGiWNoRI2T9GRwoD2dKAXDOXC4Ynsg +/eTb6QihuJ49CcdP+yz4k3ZB3lLg4VfSnQO8d57+nile98FRYB/e2guyLXW3Q0iT5/Z5xoRdgFlg +lPx4mI88k1HtQJAH32RjJMtOcQWh15QaiDLxInQirqWm2BJpTGCjAu4r7NRjkgtevi92a6O2JryP +A9gK8kxkRr05YuWW6zRjESjMlfGt7+/cgFhI6Uu46mWs6fyAtbXIRfmswZ/ZuepiiI7E8UuDEq3m +i4TWnsLrgxifarsbJGAzcMzs9zLzXNl5fe+epP7JI8Mk7hWSsT2RTyaGvWZzJBPqpK5jwa19hAM8 +EHiGG3njxPPyBJUgriOCxLM6AGK/5jYk4Ve6xx6QddVfP5VhK8E7zeWzaGHQRiapIVJpLesux+t3 +zqY6tQMzT3bR51xUAV3LePTJDL/PEo4XLSNolOer/qmyKwbQBM0= +-----END CERTIFICATE----- + +TeliaSonera Root CA v1 +====================== +-----BEGIN CERTIFICATE----- +MIIFODCCAyCgAwIBAgIRAJW+FqD3LkbxezmCcvqLzZYwDQYJKoZIhvcNAQEFBQAwNzEUMBIGA1UE +CgwLVGVsaWFTb25lcmExHzAdBgNVBAMMFlRlbGlhU29uZXJhIFJvb3QgQ0EgdjEwHhcNMDcxMDE4 +MTIwMDUwWhcNMzIxMDE4MTIwMDUwWjA3MRQwEgYDVQQKDAtUZWxpYVNvbmVyYTEfMB0GA1UEAwwW +VGVsaWFTb25lcmEgUm9vdCBDQSB2MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMK+ +6yfwIaPzaSZVfp3FVRaRXP3vIb9TgHot0pGMYzHw7CTww6XScnwQbfQ3t+XmfHnqjLWCi65ItqwA +3GV17CpNX8GH9SBlK4GoRz6JI5UwFpB/6FcHSOcZrr9FZ7E3GwYq/t75rH2D+1665I+XZ75Ljo1k +B1c4VWk0Nj0TSO9P4tNmHqTPGrdeNjPUtAa9GAH9d4RQAEX1jF3oI7x+/jXh7VB7qTCNGdMJjmhn +Xb88lxhTuylixcpecsHHltTbLaC0H2kD7OriUPEMPPCs81Mt8Bz17Ww5OXOAFshSsCPN4D7c3TxH +oLs1iuKYaIu+5b9y7tL6pe0S7fyYGKkmdtwoSxAgHNN/Fnct7W+A90m7UwW7XWjH1Mh1Fj+JWov3 +F0fUTPHSiXk+TT2YqGHeOh7S+F4D4MHJHIzTjU3TlTazN19jY5szFPAtJmtTfImMMsJu7D0hADnJ +oWjiUIMusDor8zagrC/kb2HCUQk5PotTubtn2txTuXZZNp1D5SDgPTJghSJRt8czu90VL6R4pgd7 +gUY2BIbdeTXHlSw7sKMXNeVzH7RcWe/a6hBle3rQf5+ztCo3O3CLm1u5K7fsslESl1MpWtTwEhDc +TwK7EpIvYtQ/aUN8Ddb8WHUBiJ1YFkveupD/RwGJBmr2X7KQarMCpgKIv7NHfirZ1fpoeDVNAgMB +AAGjPzA9MA8GA1UdEwEB/wQFMAMBAf8wCwYDVR0PBAQDAgEGMB0GA1UdDgQWBBTwj1k4ALP1j5qW +DNXr+nuqF+gTEjANBgkqhkiG9w0BAQUFAAOCAgEAvuRcYk4k9AwI//DTDGjkk0kiP0Qnb7tt3oNm +zqjMDfz1mgbldxSR651Be5kqhOX//CHBXfDkH1e3damhXwIm/9fH907eT/j3HEbAek9ALCI18Bmx +0GtnLLCo4MBANzX2hFxc469CeP6nyQ1Q6g2EdvZR74NTxnr/DlZJLo961gzmJ1TjTQpgcmLNkQfW +pb/ImWvtxBnmq0wROMVvMeJuScg/doAmAyYp4Db29iBT4xdwNBedY2gea+zDTYa4EzAvXUYNR0PV +G6pZDrlcjQZIrXSHX8f8MVRBE+LHIQ6e4B4N4cB7Q4WQxYpYxmUKeFfyxiMPAdkgS94P+5KFdSpc +c41teyWRyu5FrgZLAMzTsVlQ2jqIOylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOT +JsjrDNYmiLbAJM+7vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2 +qReWt88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcnHL/EVlP6 +Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVxSK236thZiNSQvxaz2ems +WWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY= +-----END CERTIFICATE----- + +T-TeleSec GlobalRoot Class 2 +============================ +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM +IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU +cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgx +MDAxMTA0MDE0WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz +dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD +ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQCqX9obX+hzkeXaXPSi5kfl82hVYAUdAqSzm1nzHoqvNK38DcLZ +SBnuaY/JIPwhqgcZ7bBcrGXHX+0CfHt8LRvWurmAwhiCFoT6ZrAIxlQjgeTNuUk/9k9uN0goOA/F +vudocP05l03Sx5iRUKrERLMjfTlH6VJi1hKTXrcxlkIF+3anHqP1wvzpesVsqXFP6st4vGCvx970 +2cu+fjOlbpSD8DT6IavqjnKgP6TeMFvvhk1qlVtDRKgQFRzlAVfFmPHmBiiRqiDFt1MmUUOyCxGV +WOHAD3bZwI18gfNycJ5v/hqO2V81xrJvNHy+SE/iWjnX2J14np+GPgNeGYtEotXHAgMBAAGjQjBA +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS/WSA2AHmgoCJrjNXy +YdK4LMuCSjANBgkqhkiG9w0BAQsFAAOCAQEAMQOiYQsfdOhyNsZt+U2e+iKo4YFWz827n+qrkRk4 +r6p8FU3ztqONpfSO9kSpp+ghla0+AGIWiPACuvxhI+YzmzB6azZie60EI4RYZeLbK4rnJVM3YlNf +vNoBYimipidx5joifsFvHZVwIEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR +3p1m0IvVVGb6g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN +9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlPBSeOE6Fuwg== +-----END CERTIFICATE----- + +Atos TrustedRoot 2011 +===================== +-----BEGIN CERTIFICATE----- +MIIDdzCCAl+gAwIBAgIIXDPLYixfszIwDQYJKoZIhvcNAQELBQAwPDEeMBwGA1UEAwwVQXRvcyBU +cnVzdGVkUm9vdCAyMDExMQ0wCwYDVQQKDARBdG9zMQswCQYDVQQGEwJERTAeFw0xMTA3MDcxNDU4 +MzBaFw0zMDEyMzEyMzU5NTlaMDwxHjAcBgNVBAMMFUF0b3MgVHJ1c3RlZFJvb3QgMjAxMTENMAsG +A1UECgwEQXRvczELMAkGA1UEBhMCREUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCV +hTuXbyo7LjvPpvMpNb7PGKw+qtn4TaA+Gke5vJrf8v7MPkfoepbCJI419KkM/IL9bcFyYie96mvr +54rMVD6QUM+A1JX76LWC1BTFtqlVJVfbsVD2sGBkWXppzwO3bw2+yj5vdHLqqjAqc2K+SZFhyBH+ +DgMq92og3AIVDV4VavzjgsG1xZ1kCWyjWZgHJ8cblithdHFsQ/H3NYkQ4J7sVaE3IqKHBAUsR320 +HLliKWYoyrfhk/WklAOZuXCFteZI6o1Q/NnezG8HDt0Lcp2AMBYHlT8oDv3FdU9T1nSatCQujgKR +z3bFmx5VdJx4IbHwLfELn8LVlhgf8FQieowHAgMBAAGjfTB7MB0GA1UdDgQWBBSnpQaxLKYJYO7R +l+lwrrw7GWzbITAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFKelBrEspglg7tGX6XCuvDsZ +bNshMBgGA1UdIAQRMA8wDQYLKwYBBAGwLQMEAQEwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB +CwUAA4IBAQAmdzTblEiGKkGdLD4GkGDEjKwLVLgfuXvTBznk+j57sj1O7Z8jvZfza1zv7v1Apt+h +k6EKhqzvINB5Ab149xnYJDE0BAGmuhWawyfc2E8PzBhj/5kPDpFrdRbhIfzYJsdHt6bPWHJxfrrh +TZVHO8mvbaG0weyJ9rQPOLXiZNwlz6bb65pcmaHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a9 +61qn8FYiqTxlVMYVqL2Gns2Dlmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G +3mB/ufNPRJLvKrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed +-----END CERTIFICATE----- + +QuoVadis Root CA 1 G3 +===================== +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIUeFhfLq0sGUvjNwc1NBMotZbUZZMwDQYJKoZIhvcNAQELBQAwSDELMAkG +A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv +b3QgQ0EgMSBHMzAeFw0xMjAxMTIxNzI3NDRaFw00MjAxMTIxNzI3NDRaMEgxCzAJBgNVBAYTAkJN +MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDEg +RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCgvlAQjunybEC0BJyFuTHK3C3kEakE +PBtVwedYMB0ktMPvhd6MLOHBPd+C5k+tR4ds7FtJwUrVu4/sh6x/gpqG7D0DmVIB0jWerNrwU8lm +PNSsAgHaJNM7qAJGr6Qc4/hzWHa39g6QDbXwz8z6+cZM5cOGMAqNF34168Xfuw6cwI2H44g4hWf6 +Pser4BOcBRiYz5P1sZK0/CPTz9XEJ0ngnjybCKOLXSoh4Pw5qlPafX7PGglTvF0FBM+hSo+LdoIN +ofjSxxR3W5A2B4GbPgb6Ul5jxaYA/qXpUhtStZI5cgMJYr2wYBZupt0lwgNm3fME0UDiTouG9G/l +g6AnhF4EwfWQvTA9xO+oabw4m6SkltFi2mnAAZauy8RRNOoMqv8hjlmPSlzkYZqn0ukqeI1RPToV +7qJZjqlc3sX5kCLliEVx3ZGZbHqfPT2YfF72vhZooF6uCyP8Wg+qInYtyaEQHeTTRCOQiJ/GKubX +9ZqzWB4vMIkIG1SitZgj7Ah3HJVdYdHLiZxfokqRmu8hqkkWCKi9YSgxyXSthfbZxbGL0eUQMk1f +iyA6PEkfM4VZDdvLCXVDaXP7a3F98N/ETH3Goy7IlXnLc6KOTk0k+17kBL5yG6YnLUlamXrXXAkg +t3+UuU/xDRxeiEIbEbfnkduebPRq34wGmAOtzCjvpUfzUwIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUo5fW816iEOGrRZ88F2Q87gFwnMwwDQYJKoZI +hvcNAQELBQADggIBABj6W3X8PnrHX3fHyt/PX8MSxEBd1DKquGrX1RUVRpgjpeaQWxiZTOOtQqOC +MTaIzen7xASWSIsBx40Bz1szBpZGZnQdT+3Btrm0DWHMY37XLneMlhwqI2hrhVd2cDMT/uFPpiN3 +GPoajOi9ZcnPP/TJF9zrx7zABC4tRi9pZsMbj/7sPtPKlL92CiUNqXsCHKnQO18LwIE6PWThv6ct +Tr1NxNgpxiIY0MWscgKCP6o6ojoilzHdCGPDdRS5YCgtW2jgFqlmgiNR9etT2DGbe+m3nUvriBbP ++V04ikkwj+3x6xn0dxoxGE1nVGwvb2X52z3sIexe9PSLymBlVNFxZPT5pqOBMzYzcfCkeF9OrYMh +3jRJjehZrJ3ydlo28hP0r+AJx2EqbPfgna67hkooby7utHnNkDPDs3b69fBsnQGQ+p6Q9pxyz0fa +wx/kNSBT8lTR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNjZgKAvQU6 +O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhpq1467HxpvMc7hU6eFbm0 +FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFtnh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOV +hMJKzRwuJIczYOXD +-----END CERTIFICATE----- + +QuoVadis Root CA 2 G3 +===================== +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQELBQAwSDELMAkG +A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv +b3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJaFw00MjAxMTIxODU5MzJaMEgxCzAJBgNVBAYTAkJN +MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDIg +RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQChriWyARjcV4g/Ruv5r+LrI3HimtFh +ZiFfqq8nUeVuGxbULX1QsFN3vXg6YOJkApt8hpvWGo6t/x8Vf9WVHhLL5hSEBMHfNrMWn4rjyduY +NM7YMxcoRvynyfDStNVNCXJJ+fKH46nafaF9a7I6JaltUkSs+L5u+9ymc5GQYaYDFCDy54ejiK2t +oIz/pgslUiXnFgHVy7g1gQyjO/Dh4fxaXc6AcW34Sas+O7q414AB+6XrW7PFXmAqMaCvN+ggOp+o +MiwMzAkd056OXbxMmO7FGmh77FOm6RQ1o9/NgJ8MSPsc9PG/Srj61YxxSscfrf5BmrODXfKEVu+l +V0POKa2Mq1W/xPtbAd0jIaFYAI7D0GoT7RPjEiuA3GfmlbLNHiJuKvhB1PLKFAeNilUSxmn1uIZo +L1NesNKqIcGY5jDjZ1XHm26sGahVpkUG0CM62+tlXSoREfA7T8pt9DTEceT/AFr2XK4jYIVz8eQQ +sSWu1ZK7E8EM4DnatDlXtas1qnIhO4M15zHfeiFuuDIIfR0ykRVKYnLP43ehvNURG3YBZwjgQQvD +6xVu+KQZ2aKrr+InUlYrAoosFCT5v0ICvybIxo/gbjh9Uy3l7ZizlWNof/k19N+IxWA1ksB8aRxh +lRbQ694Lrz4EEEVlWFA4r0jyWbYW8jwNkALGcC4BrTwV1wIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU7edvdlq/YOxJW8ald7tyFnGbxD0wDQYJKoZI +hvcNAQELBQADggIBAJHfgD9DCX5xwvfrs4iP4VGyvD11+ShdyLyZm3tdquXK4Qr36LLTn91nMX66 +AarHakE7kNQIXLJgapDwyM4DYvmL7ftuKtwGTTwpD4kWilhMSA/ohGHqPHKmd+RCroijQ1h5fq7K +pVMNqT1wvSAZYaRsOPxDMuHBR//47PERIjKWnML2W2mWeyAMQ0GaW/ZZGYjeVYg3UQt4XAoeo0L9 +x52ID8DyeAIkVJOviYeIyUqAHerQbj5hLja7NQ4nlv1mNDthcnPxFlxHBlRJAHpYErAK74X9sbgz +dWqTHBLmYF5vHX/JHyPLhGGfHoJE+V+tYlUkmlKY7VHnoX6XOuYvHxHaU4AshZ6rNRDbIl9qxV6X +U/IyAgkwo1jwDQHVcsaxfGl7w/U2Rcxhbl5MlMVerugOXou/983g7aEOGzPuVBj+D77vfoRrQ+Nw +mNtddbINWQeFFSM51vHfqSYP1kjHs6Yi9TM3WpVHn3u6GBVv/9YUZINJ0gpnIdsPNWNgKCLjsZWD +zYWm3S8P52dSbrsvhXz1SnPnxT7AvSESBT/8twNJAlvIJebiVDj1eYeMHVOyToV7BjjHLPj4sHKN +JeV3UvQDHEimUF+IIDBu8oJDqz2XhOdT+yHBTw8imoa4WSr2Rz0ZiC3oheGe7IUIarFsNMkd7Egr +O3jtZsSOeWmD3n+M +-----END CERTIFICATE----- + +QuoVadis Root CA 3 G3 +===================== +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIULvWbAiin23r/1aOp7r0DoM8Sah0wDQYJKoZIhvcNAQELBQAwSDELMAkG +A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv +b3QgQ0EgMyBHMzAeFw0xMjAxMTIyMDI2MzJaFw00MjAxMTIyMDI2MzJaMEgxCzAJBgNVBAYTAkJN +MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDMg +RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCzyw4QZ47qFJenMioKVjZ/aEzHs286 +IxSR/xl/pcqs7rN2nXrpixurazHb+gtTTK/FpRp5PIpM/6zfJd5O2YIyC0TeytuMrKNuFoM7pmRL +Mon7FhY4futD4tN0SsJiCnMK3UmzV9KwCoWdcTzeo8vAMvMBOSBDGzXRU7Ox7sWTaYI+FrUoRqHe +6okJ7UO4BUaKhvVZR74bbwEhELn9qdIoyhA5CcoTNs+cra1AdHkrAj80//ogaX3T7mH1urPnMNA3 +I4ZyYUUpSFlob3emLoG+B01vr87ERRORFHAGjx+f+IdpsQ7vw4kZ6+ocYfx6bIrc1gMLnia6Et3U +VDmrJqMz6nWB2i3ND0/kA9HvFZcba5DFApCTZgIhsUfei5pKgLlVj7WiL8DWM2fafsSntARE60f7 +5li59wzweyuxwHApw0BiLTtIadwjPEjrewl5qW3aqDCYz4ByA4imW0aucnl8CAMhZa634RylsSqi +Md5mBPfAdOhx3v89WcyWJhKLhZVXGqtrdQtEPREoPHtht+KPZ0/l7DxMYIBpVzgeAVuNVejH38DM +dyM0SXV89pgR6y3e7UEuFAUCf+D+IOs15xGsIs5XPd7JMG0QA4XN8f+MFrXBsj6IbGB/kE+V9/Yt +rQE5BwT6dYB9v0lQ7e/JxHwc64B+27bQ3RP+ydOc17KXqQIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUxhfQvKjqAkPyGwaZXSuQILnXnOQwDQYJKoZI +hvcNAQELBQADggIBADRh2Va1EodVTd2jNTFGu6QHcrxfYWLopfsLN7E8trP6KZ1/AvWkyaiTt3px +KGmPc+FSkNrVvjrlt3ZqVoAh313m6Tqe5T72omnHKgqwGEfcIHB9UqM+WXzBusnIFUBhynLWcKzS +t/Ac5IYp8M7vaGPQtSCKFWGafoaYtMnCdvvMujAWzKNhxnQT5WvvoxXqA/4Ti2Tk08HS6IT7SdEQ +TXlm66r99I0xHnAUrdzeZxNMgRVhvLfZkXdxGYFgu/BYpbWcC/ePIlUnwEsBbTuZDdQdm2NnL9Du +DcpmvJRPpq3t/O5jrFc/ZSXPsoaP0Aj/uHYUbt7lJ+yreLVTubY/6CD50qi+YUbKh4yE8/nxoGib +Ih6BJpsQBJFxwAYf3KDTuVan45gtf4Od34wrnDKOMpTwATwiKp9Dwi7DmDkHOHv8XgBCH/MyJnmD +hPbl8MFREsALHgQjDFSlTC9JxUrRtm5gDWv8a4uFJGS3iQ6rJUdbPM9+Sb3H6QrG2vd+DhcI00iX +0HGS8A85PjRqHH3Y8iKuu2n0M7SmSFXRDw4m6Oy2Cy2nhTXN/VnIn9HNPlopNLk9hM6xZdRZkZFW +dSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/ywaZWWDYWGWVjUTR939+J399roD1B0y2 +PpxxVJkES/1Y+Zj0 +-----END CERTIFICATE----- + +DigiCert Assured ID Root G2 +=========================== +-----BEGIN CERTIFICATE----- +MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw +IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgw +MTE1MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL +ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIw +ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSAn61UQbVH +35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4HteccbiJVMWWXvdMX0h5i89vq +bFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9HpEgjAALAcKxHad3A2m67OeYfcgnDmCXRw +VWmvo2ifv922ebPynXApVfSr/5Vh88lAbx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OP +YLfykqGxvYmJHzDNw6YuYjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+Rn +lTGNAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTO +w0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPIQW5pJ6d1Ee88hjZv +0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I0jJmwYrA8y8678Dj1JGG0VDjA9tz +d29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4GnilmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAW +hsI6yLETcDbYz+70CjTVW0z9B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0M +jomZmWzwPDCvON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo +IhNzbM8m9Yop5w== +-----END CERTIFICATE----- + +DigiCert Assured ID Root G3 +=========================== +-----BEGIN CERTIFICATE----- +MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV +UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYD +VQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1 +MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQ +BgcqhkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJfZn4f5dwb +RXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17QRSAPWXYQ1qAk8C3eNvJs +KTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgF +UaFNN6KDec6NHSrkhDAKBggqhkjOPQQDAwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5Fy +YZ5eEJJZVrmDxxDnOOlYJjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy +1vUhZscv6pZjamVFkpUBtA== +-----END CERTIFICATE----- + +DigiCert Global Root G2 +======================= +-----BEGIN CERTIFICATE----- +MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBhMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw +HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUx +MjAwMDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3 +dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkq +hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI2/Ou8jqJ +kTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx1x7e/dfgy5SDN67sH0NO +3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQq2EGnI/yuum06ZIya7XzV+hdG82MHauV +BJVJ8zUtluNJbd134/tJS7SsVQepj5WztCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyM +UNGPHgm+F6HmIcr9g+UQvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQAB +o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV5uNu +5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY1Yl9PMWLSn/pvtsr +F9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4NeF22d+mQrvHRAiGfzZ0JFrabA0U +WTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NGFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBH +QRFXGU7Aj64GxJUTFy8bJZ918rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/ +iyK5S9kJRaTepLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl +MrY= +-----END CERTIFICATE----- + +DigiCert Global Root G3 +======================= +-----BEGIN CERTIFICATE----- +MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQswCQYDVQQGEwJV +UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAwHgYD +VQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAw +MDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5k +aWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0C +AQYFK4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FGfp4tn+6O +YwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPOZ9wj/wMco+I+o0IwQDAP +BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNp +Yim8S8YwCgYIKoZIzj0EAwMDaAAwZQIxAK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y +3maTD/HMsQmP3Wyr+mt/oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34 +VOKa5Vt8sycX +-----END CERTIFICATE----- + +DigiCert Trusted Root G4 +======================== +-----BEGIN CERTIFICATE----- +MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSEw +HwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1 +MTIwMDAwWjBiMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0G +CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz7MKnJS7JIT3yithZwuEp +pz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS5F/WBTxSD1Ifxp4VpX6+n6lXFllVcq9o +k3DCsrp1mWpzMpTREEQQLt+C8weE5nQ7bXHiLQwb7iDVySAdYyktzuxeTsiT+CFhmzTrBcZe7Fsa +vOvJz82sNEBfsXpm7nfISKhmV1efVFiODCu3T6cw2Vbuyntd463JT17lNecxy9qTXtyOj4DatpGY +QJB5w3jHtrHEtWoYOAMQjdjUN6QuBX2I9YI+EJFwq1WCQTLX2wRzKm6RAXwhTNS8rhsDdV14Ztk6 +MUSaM0C/CNdaSaTC5qmgZ92kJ7yhTzm1EVgX9yRcRo9k98FpiHaYdj1ZXUJ2h4mXaXpI8OCiEhtm +mnTK3kse5w5jrubU75KSOp493ADkRSWJtppEGSt+wJS00mFt6zPZxd9LBADMfRyVw4/3IbKyEbe7 +f/LVjHAsQWCqsWMYRJUadmJ+9oCw++hkpjPRiQfhvbfmQ6QYuKZ3AeEPlAwhHbJUKSWJbOUOUlFH +dL4mrLZBdd56rF+NP8m800ERElvlEFDrMcXKchYiCd98THU/Y+whX8QgUWtvsauGi0/C1kVfnSD8 +oR7FwI+isX4KJpn15GkvmB0t9dmpsh3lGwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1Ud +DwEB/wQEAwIBhjAdBgNVHQ4EFgQU7NfjgtJxXWRM3y5nP+e6mK4cD08wDQYJKoZIhvcNAQEMBQAD +ggIBALth2X2pbL4XxJEbw6GiAI3jZGgPVs93rnD5/ZpKmbnJeFwMDF/k5hQpVgs2SV1EY+CtnJYY +ZhsjDT156W1r1lT40jzBQ0CuHVD1UvyQO7uYmWlrx8GnqGikJ9yd+SeuMIW59mdNOj6PWTkiU0Tr +yF0Dyu1Qen1iIQqAyHNm0aAFYF/opbSnr6j3bTWcfFqK1qI4mfN4i/RN0iAL3gTujJtHgXINwBQy +7zBZLq7gcfJW5GqXb5JQbZaNaHqasjYUegbyJLkJEVDXCLG4iXqEI2FCKeWjzaIgQdfRnGTZ6iah +ixTXTBmyUEFxPT9NcCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN +5r5N0XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie4u1Ki7wb +/UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mIr/OSmbaz5mEP0oUA51Aa +5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tK +G48BtieVU+i2iW1bvGjUI+iLUaJW+fCmgKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP +82Z+ +-----END CERTIFICATE----- + +COMODO RSA Certification Authority +================================== +-----BEGIN CERTIFICATE----- +MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCBhTELMAkGA1UE +BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG +A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwHhcNMTAwMTE5MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMC +R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE +ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCR6FSS0gpWsawNJN3Fz0Rn +dJkrN6N9I3AAcbxT38T6KhKPS38QVr2fcHK3YX/JSw8Xpz3jsARh7v8Rl8f0hj4K+j5c+ZPmNHrZ +FGvnnLOFoIJ6dq9xkNfs/Q36nGz637CC9BR++b7Epi9Pf5l/tfxnQ3K9DADWietrLNPtj5gcFKt+ +5eNu/Nio5JIk2kNrYrhV/erBvGy2i/MOjZrkm2xpmfh4SDBF1a3hDTxFYPwyllEnvGfDyi62a+pG +x8cgoLEfZd5ICLqkTqnyg0Y3hOvozIFIQ2dOciqbXL1MGyiKXCJ7tKuY2e7gUYPDCUZObT6Z+pUX +2nwzV0E8jVHtC7ZcryxjGt9XyD+86V3Em69FmeKjWiS0uqlWPc9vqv9JWL7wqP/0uK3pN/u6uPQL +OvnoQ0IeidiEyxPx2bvhiWC4jChWrBQdnArncevPDt09qZahSL0896+1DSJMwBGB7FY79tOi4lu3 +sgQiUpWAk2nojkxl8ZEDLXB0AuqLZxUpaVICu9ffUGpVRr+goyhhf3DQw6KqLCGqR84onAZFdr+C +GCe01a60y1Dma/RMhnEw6abfFobg2P9A3fvQQoh/ozM6LlweQRGBY84YcWsr7KaKtzFcOmpH4MN5 +WdYgGq/yapiqcrxXStJLnbsQ/LBMQeXtHT1eKJ2czL+zUdqnR+WEUwIDAQABo0IwQDAdBgNVHQ4E +FgQUu69+Aj36pvE8hI6t7jiY7NkyMtQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8w +DQYJKoZIhvcNAQEMBQADggIBAArx1UaEt65Ru2yyTUEUAJNMnMvlwFTPoCWOAvn9sKIN9SCYPBMt +rFaisNZ+EZLpLrqeLppysb0ZRGxhNaKatBYSaVqM4dc+pBroLwP0rmEdEBsqpIt6xf4FpuHA1sj+ +nq6PK7o9mfjYcwlYRm6mnPTXJ9OV2jeDchzTc+CiR5kDOF3VSXkAKRzH7JsgHAckaVd4sjn8OoSg +tZx8jb8uk2IntznaFxiuvTwJaP+EmzzV1gsD41eeFPfR60/IvYcjt7ZJQ3mFXLrrkguhxuhoqEwW +sRqZCuhTLJK7oQkYdQxlqHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiKboHGhfKp +pC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmckejkk9u+UJueBPSZI9FoJA +zMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yLS0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHq +ZJx64SIDqZxubw5lT2yHh17zbqD5daWbQOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk52 +7RH89elWsn2/x20Kk4yl0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7I +LaZRfyHBNVOFBkpdn627G190 +-----END CERTIFICATE----- + +USERTrust RSA Certification Authority +===================================== +-----BEGIN CERTIFICATE----- +MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCBiDELMAkGA1UE +BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK +ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh +dGlvbiBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UE +BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK +ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh +dGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCAEmUXNg7D2wiz +0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B3PHTsdZ7NygRK0faOca8Ohm0X6a9fZ2j +Y0K2dvKpOyuR+OJv0OwWIJAJPuLodMkYtJHUYmTbf6MG8YgYapAiPLz+E/CHFHv25B+O1ORRxhFn +RghRy4YUVD+8M/5+bJz/Fp0YvVGONaanZshyZ9shZrHUm3gDwFA66Mzw3LyeTP6vBZY1H1dat//O ++T23LLb2VN3I5xI6Ta5MirdcmrS3ID3KfyI0rn47aGYBROcBTkZTmzNg95S+UzeQc0PzMsNT79uq +/nROacdrjGCT3sTHDN/hMq7MkztReJVni+49Vv4M0GkPGw/zJSZrM233bkf6c0Plfg6lZrEpfDKE +Y1WJxA3Bk1QwGROs0303p+tdOmw1XNtB1xLaqUkL39iAigmTYo61Zs8liM2EuLE/pDkP2QKe6xJM +lXzzawWpXhaDzLhn4ugTncxbgtNMs+1b/97lc6wjOy0AvzVVdAlJ2ElYGn+SNuZRkg7zJn0cTRe8 +yexDJtC/QV9AqURE9JnnV4eeUB9XVKg+/XRjL7FQZQnmWEIuQxpMtPAlR1n6BB6T1CZGSlCBst6+ +eLf8ZxXhyVeEHg9j1uliutZfVS7qXMYoCAQlObgOK6nyTJccBz8NUvXt7y+CDwIDAQABo0IwQDAd +BgNVHQ4EFgQUU3m/WqorSs9UgOHYm8Cd8rIDZsswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF +MAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAFzUfA3P9wF9QZllDHPFUp/L+M+ZBn8b2kMVn54CVVeW +FPFSPCeHlCjtHzoBN6J2/FNQwISbxmtOuowhT6KOVWKR82kV2LyI48SqC/3vqOlLVSoGIG1VeCkZ +7l8wXEskEVX/JJpuXior7gtNn3/3ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQ +Eg9zKC7F4iRO/Fjs8PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM +8WcRiQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYzeSf7dNXGi +FSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZXHlKYC6SQK5MNyosycdi +yA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9c +J2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRBVXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGw +sAvgnEzDHNb842m1R0aBL6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gx +Q+6IHdfGjjxDah2nGN59PRbxYvnKkKj9 +-----END CERTIFICATE----- + +USERTrust ECC Certification Authority +===================================== +-----BEGIN CERTIFICATE----- +MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDELMAkGA1UEBhMC +VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU +aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMC +VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU +aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqfloI+d61SRvU8Za2EurxtW2 +0eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinngo4N+LZfQYcTxmdwlkWOrfzCjtHDix6Ez +nPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0GA1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNV +HQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBB +HU6+4WMBzzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbWRNZu +9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg= +-----END CERTIFICATE----- + +GlobalSign ECC Root CA - R5 +=========================== +-----BEGIN CERTIFICATE----- +MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEkMCIGA1UECxMb +R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD +EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb +R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD +EwpHbG9iYWxTaWduMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6 +SFkc8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8kehOvRnkmS +h5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd +BgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYIKoZIzj0EAwMDaAAwZQIxAOVpEslu28Yx +uglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7 +yFz9SO8NdCKoCOJuxUnOxwy8p2Fp8fc74SrL+SvzZpA3 +-----END CERTIFICATE----- + +IdenTrust Commercial Root CA 1 +============================== +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBKMQswCQYDVQQG +EwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBS +b290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQwMTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzES +MBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENB +IDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnUBneP5k91DNG8W9RYYKyqU+PZ4ld +hNlT3Qwo2dfw/66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU+ehcCuz/ +mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gpS0l4PJNgiCL8mdo2yMKi +1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D1bVoE/c40yiTcdCMbXTMTEl3EASX2MN0C +XZ/g1Ue9tOsbobtJSdifWwLziuQkkORiT0/Br4sOdBeo0XKIanoBScy0RnnGF7HamB4HWfp1IYVl +3ZBWzvurpWCdxJ35UrCLvYf5jysjCiN2O/cz4ckA82n5S6LgTrx+kzmEB/dEcH7+B1rlsazRGMzy +NeVJSQjKVsk9+w8YfYs7wRPCTY/JTw436R+hDmrfYi7LNQZReSzIJTj0+kuniVyc0uMNOYZKdHzV +WYfCP04MXFL0PfdSgvHqo6z9STQaKPNBiDoT7uje/5kdX7rL6B7yuVBgwDHTc+XvvqDtMwt0viAg +xGds8AgDelWAf0ZOlqf0Hj7h9tgJ4TNkK2PXMl6f+cB7D3hvl7yTmvmcEpB4eoCHFddydJxVdHix +uuFucAS6T6C6aMN7/zHwcz09lCqxC0EOoP5NiGVreTO01wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMC +AQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU7UQZwNPwBovupHu+QucmVMiONnYwDQYJKoZI +hvcNAQELBQADggIBAA2ukDL2pkt8RHYZYR4nKM1eVO8lvOMIkPkp165oCOGUAFjvLi5+U1KMtlwH +6oi6mYtQlNeCgN9hCQCTrQ0U5s7B8jeUeLBfnLOic7iPBZM4zY0+sLj7wM+x8uwtLRvM7Kqas6pg +ghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh93nAbowacYXVKV7cndJZ5t+qnt +ozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU3+wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmV +YjzlVYA211QC//G5Xc7UI2/YRYRKW2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUX +feu+h1sXIFRRk0pTAwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/ro +kTLql1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG4iZZRHUe +2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZmUlO+KWA2yUPHGNiiskz +Z2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7R +cGzM7vRX+Bi6hG6H +-----END CERTIFICATE----- + +IdenTrust Public Sector Root CA 1 +================================= +-----BEGIN CERTIFICATE----- +MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBNMQswCQYDVQQG +EwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3Rv +ciBSb290IENBIDEwHhcNMTQwMTE2MTc1MzMyWhcNMzQwMTE2MTc1MzMyWjBNMQswCQYDVQQGEwJV +UzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3RvciBS +b290IENBIDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2IpT8pEiv6EdrCvsnduTy +P4o7ekosMSqMjbCpwzFrqHd2hCa2rIFCDQjrVVi7evi8ZX3yoG2LqEfpYnYeEe4IFNGyRBb06tD6 +Hi9e28tzQa68ALBKK0CyrOE7S8ItneShm+waOh7wCLPQ5CQ1B5+ctMlSbdsHyo+1W/CD80/HLaXI +rcuVIKQxKFdYWuSNG5qrng0M8gozOSI5Cpcu81N3uURF/YTLNiCBWS2ab21ISGHKTN9T0a9SvESf +qy9rg3LvdYDaBjMbXcjaY8ZNzaxmMc3R3j6HEDbhuaR672BQssvKplbgN6+rNBM5Jeg5ZuSYeqoS +mJxZZoY+rfGwyj4GD3vwEUs3oERte8uojHH01bWRNszwFcYr3lEXsZdMUD2xlVl8BX0tIdUAvwFn +ol57plzy9yLxkA2T26pEUWbMfXYD62qoKjgZl3YNa4ph+bz27nb9cCvdKTz4Ch5bQhyLVi9VGxyh +LrXHFub4qjySjmm2AcG1hp2JDws4lFTo6tyePSW8Uybt1as5qsVATFSrsrTZ2fjXctscvG29ZV/v +iDUqZi/u9rNl8DONfJhBaUYPQxxp+pu10GFqzcpL2UyQRqsVWaFHVCkugyhfHMKiq3IXAAaOReyL +4jM9f9oZRORicsPfIsbyVtTdX5Vy7W1f90gDW/3FKqD2cyOEEBsB5wIDAQABo0IwQDAOBgNVHQ8B +Af8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU43HgntinQtnbcZFrlJPrw6PRFKMw +DQYJKoZIhvcNAQELBQADggIBAEf63QqwEZE4rU1d9+UOl1QZgkiHVIyqZJnYWv6IAcVYpZmxI1Qj +t2odIFflAWJBF9MJ23XLblSQdf4an4EKwt3X9wnQW3IV5B4Jaj0z8yGa5hV+rVHVDRDtfULAj+7A +mgjVQdZcDiFpboBhDhXAuM/FSRJSzL46zNQuOAXeNf0fb7iAaJg9TaDKQGXSc3z1i9kKlT/YPyNt +GtEqJBnZhbMX73huqVjRI9PHE+1yJX9dsXNw0H8GlwmEKYBhHfpe/3OsoOOJuBxxFcbeMX8S3OFt +m6/n6J91eEyrRjuazr8FGF1NFTwWmhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMx +NRF4eKLg6TCMf4DfWN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4 +Mhn5+bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJtshquDDI +ajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhAGaQdp/lLQzfcaFpPz+vC +ZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ +3Wl9af0AVqW3rLatt8o+Ae+c +-----END CERTIFICATE----- + +Entrust Root Certification Authority - G2 +========================================= +-----BEGIN CERTIFICATE----- +MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMCVVMxFjAUBgNV +BAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVy +bXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug +b25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIw +HhcNMDkwNzA3MTcyNTU0WhcNMzAxMjA3MTc1NTU0WjCBvjELMAkGA1UEBhMCVVMxFjAUBgNVBAoT +DUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMx +OTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25s +eTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIwggEi +MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6hLZy254Ma+KZ6TABp3bqMriVQRrJ2mFOWHLP +/vaCeb9zYQYKpSfYs1/TRU4cctZOMvJyig/3gxnQaoCAAEUesMfnmr8SVycco2gvCoe9amsOXmXz +HHfV1IWNcCG0szLni6LVhjkCsbjSR87kyUnEO6fe+1R9V77w6G7CebI6C1XiUJgWMhNcL3hWwcKU +s/Ja5CeanyTXxuzQmyWC48zCxEXFjJd6BmsqEZ+pCm5IO2/b1BEZQvePB7/1U1+cPvQXLOZprE4y +TGJ36rfo5bs0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP0jaWvYkxN4FisZDQSA/i2jZRjJKRx +AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ6 +0B7vfec7aVHUbI2fkBJmqzANBgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5Z +iXMRrEPR9RP/jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ +Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v1fN2D807iDgi +nWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4RnAuknZoh8/CbCzB428Hch0P+ +vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmHVHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xO +e4pIb4tF9g== +-----END CERTIFICATE----- + +Entrust Root Certification Authority - EC1 +========================================== +-----BEGIN CERTIFICATE----- +MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkGA1UEBhMCVVMx +FjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVn +YWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXpl +ZCB1c2Ugb25seTEzMDEGA1UEAxMqRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5 +IC0gRUMxMB4XDTEyMTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYw +FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2Fs +LXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhvcml6ZWQg +dXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAt +IEVDMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHy +AsWfoPZb1YsGGYZPUxBtByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef +9eNi1KlHBz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE +FLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMGF52OVCR98crlOZF7ZvHH3h +vxGU0QOIdeSNiaSKd0bebWHvAvX7td/M/k7//qnmpwIwW5nXhTcGtXsI/esni0qU+eH6p44mCOh8 +kmhtc9hvJqwhAriZtyZBWyVgrtBIGu4G +-----END CERTIFICATE----- + +CFCA EV ROOT +============ +-----BEGIN CERTIFICATE----- +MIIFjTCCA3WgAwIBAgIEGErM1jANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJDTjEwMC4GA1UE +CgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQDDAxDRkNB +IEVWIFJPT1QwHhcNMTIwODA4MDMwNzAxWhcNMjkxMjMxMDMwNzAxWjBWMQswCQYDVQQGEwJDTjEw +MC4GA1UECgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQD +DAxDRkNBIEVWIFJPT1QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXXWvNED8fBVnV +BU03sQ7smCuOFR36k0sXgiFxEFLXUWRwFsJVaU2OFW2fvwwbwuCjZ9YMrM8irq93VCpLTIpTUnrD +7i7es3ElweldPe6hL6P3KjzJIx1qqx2hp/Hz7KDVRM8Vz3IvHWOX6Jn5/ZOkVIBMUtRSqy5J35DN +uF++P96hyk0g1CXohClTt7GIH//62pCfCqktQT+x8Rgp7hZZLDRJGqgG16iI0gNyejLi6mhNbiyW +ZXvKWfry4t3uMCz7zEasxGPrb382KzRzEpR/38wmnvFyXVBlWY9ps4deMm/DGIq1lY+wejfeWkU7 +xzbh72fROdOXW3NiGUgthxwG+3SYIElz8AXSG7Ggo7cbcNOIabla1jj0Ytwli3i/+Oh+uFzJlU9f +py25IGvPa931DfSCt/SyZi4QKPaXWnuWFo8BGS1sbn85WAZkgwGDg8NNkt0yxoekN+kWzqotaK8K +gWU6cMGbrU1tVMoqLUuFG7OA5nBFDWteNfB/O7ic5ARwiRIlk9oKmSJgamNgTnYGmE69g60dWIol +hdLHZR4tjsbftsbhf4oEIRUpdPA+nJCdDC7xij5aqgwJHsfVPKPtl8MeNPo4+QgO48BdK4PRVmrJ +tqhUUy54Mmc9gn900PvhtgVguXDbjgv5E1hvcWAQUhC5wUEJ73IfZzF4/5YFjQIDAQABo2MwYTAf +BgNVHSMEGDAWgBTj/i39KNALtbq2osS/BqoFjJP7LzAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB +/wQEAwIBBjAdBgNVHQ4EFgQU4/4t/SjQC7W6tqLEvwaqBYyT+y8wDQYJKoZIhvcNAQELBQADggIB +ACXGumvrh8vegjmWPfBEp2uEcwPenStPuiB/vHiyz5ewG5zz13ku9Ui20vsXiObTej/tUxPQ4i9q +ecsAIyjmHjdXNYmEwnZPNDatZ8POQQaIxffu2Bq41gt/UP+TqhdLjOztUmCypAbqTuv0axn96/Ua +4CUqmtzHQTb3yHQFhDmVOdYLO6Qn+gjYXB74BGBSESgoA//vU2YApUo0FmZ8/Qmkrp5nGm9BC2sG +E5uPhnEFtC+NiWYzKXZUmhH4J/qyP5Hgzg0b8zAarb8iXRvTvyUFTeGSGn+ZnzxEk8rUQElsgIfX +BDrDMlI1Dlb4pd19xIsNER9Tyx6yF7Zod1rg1MvIB671Oi6ON7fQAUtDKXeMOZePglr4UeWJoBjn +aH9dCi77o0cOPaYjesYBx4/IXr9tgFa+iiS6M+qf4TIRnvHST4D2G0CvOJ4RUHlzEhLN5mydLIhy +PDCBBpEi6lmt2hkuIsKNuYyH4Ga8cyNfIWRjgEj1oDwYPZTISEEdQLpe/v5WOaHIz16eGWRGENoX +kbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+ZAAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3C +ekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su +-----END CERTIFICATE----- + +OISTE WISeKey Global Root GB CA +=============================== +-----BEGIN CERTIFICATE----- +MIIDtTCCAp2gAwIBAgIQdrEgUnTwhYdGs/gjGvbCwDANBgkqhkiG9w0BAQsFADBtMQswCQYDVQQG +EwJDSDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNl +ZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQiBDQTAeFw0xNDEyMDExNTAw +MzJaFw0zOTEyMDExNTEwMzFaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYD +VQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEds +b2JhbCBSb290IEdCIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Be3HEokKtaX +scriHvt9OO+Y9bI5mE4nuBFde9IllIiCFSZqGzG7qFshISvYD06fWvGxWuR51jIjK+FTzJlFXHtP +rby/h0oLS5daqPZI7H17Dc0hBt+eFf1Biki3IPShehtX1F1Q/7pn2COZH8g/497/b1t3sWtuuMlk +9+HKQUYOKXHQuSP8yYFfTvdv37+ErXNku7dCjmn21HYdfp2nuFeKUWdy19SouJVUQHMD9ur06/4o +Qnc/nSMbsrY9gBQHTC5P99UKFg29ZkM3fiNDecNAhvVMKdqOmq0NpQSHiB6F4+lT1ZvIiwNjeOvg +GUpuuy9rM2RYk61pv48b74JIxwIDAQABo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB +/zAdBgNVHQ4EFgQUNQ/INmNe4qPs+TtmFc5RUuORmj0wEAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZI +hvcNAQELBQADggEBAEBM+4eymYGQfp3FsLAmzYh7KzKNbrghcViXfa43FK8+5/ea4n32cZiZBKpD +dHij40lhPnOMTZTg+XHEthYOU3gf1qKHLwI5gSk8rxWYITD+KJAAjNHhy/peyP34EEY7onhCkRd0 +VQreUGdNZtGn//3ZwLWoo4rOZvUPQ82nK1d7Y0Zqqi5S2PTt4W2tKZB4SLrhI6qjiey1q5bAtEui +HZeeevJuQHHfaPFlTc58Bd9TZaml8LGXBHAVRgOY1NK/VLSgWH1Sb9pWJmLU2NuJMW8c8CLC02Ic +Nc1MaRVUGpCY3useX8p3x8uOPUNpnJpY0CQ73xtAln41rYHHTnG6iBM= +-----END CERTIFICATE----- + +SZAFIR ROOT CA2 +=============== +-----BEGIN CERTIFICATE----- +MIIDcjCCAlqgAwIBAgIUPopdB+xV0jLVt+O2XwHrLdzk1uQwDQYJKoZIhvcNAQELBQAwUTELMAkG +A1UEBhMCUEwxKDAmBgNVBAoMH0tyYWpvd2EgSXpiYSBSb3psaWN6ZW5pb3dhIFMuQS4xGDAWBgNV +BAMMD1NaQUZJUiBST09UIENBMjAeFw0xNTEwMTkwNzQzMzBaFw0zNTEwMTkwNzQzMzBaMFExCzAJ +BgNVBAYTAlBMMSgwJgYDVQQKDB9LcmFqb3dhIEl6YmEgUm96bGljemVuaW93YSBTLkEuMRgwFgYD +VQQDDA9TWkFGSVIgUk9PVCBDQTIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3vD5Q +qEvNQLXOYeeWyrSh2gwisPq1e3YAd4wLz32ohswmUeQgPYUM1ljj5/QqGJ3a0a4m7utT3PSQ1hNK +DJA8w/Ta0o4NkjrcsbH/ON7Dui1fgLkCvUqdGw+0w8LBZwPd3BucPbOw3gAeqDRHu5rr/gsUvTaE +2g0gv/pby6kWIK05YO4vdbbnl5z5Pv1+TW9NL++IDWr63fE9biCloBK0TXC5ztdyO4mTp4CEHCdJ +ckm1/zuVnsHMyAHs6A6KCpbns6aH5db5BSsNl0BwPLqsdVqc1U2dAgrSS5tmS0YHF2Wtn2yIANwi +ieDhZNRnvDF5YTy7ykHNXGoAyDw4jlivAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBQuFqlKGLXLzPVvUPMjX/hd56zwyDANBgkqhkiG9w0BAQsFAAOC +AQEAtXP4A9xZWx126aMqe5Aosk3AM0+qmrHUuOQn/6mWmc5G4G18TKI4pAZw8PRBEew/R40/cof5 +O/2kbytTAOD/OblqBw7rHRz2onKQy4I9EYKL0rufKq8h5mOGnXkZ7/e7DDWQw4rtTw/1zBLZpD67 +oPwglV9PJi8RI4NOdQcPv5vRtB3pEAT+ymCPoky4rc/hkA/NrgrHXXu3UNLUYfrVFdvXn4dRVOul +4+vJhaAlIDf7js4MNIThPIGyd05DpYhfhmehPea0XGG2Ptv+tyjFogeutcrKjSoS75ftwjCkySp6 ++/NNIxuZMzSgLvWpCz/UXeHPhJ/iGcJfitYgHuNztw== +-----END CERTIFICATE----- + +Certum Trusted Network CA 2 +=========================== +-----BEGIN CERTIFICATE----- +MIIF0jCCA7qgAwIBAgIQIdbQSk8lD8kyN/yqXhKN6TANBgkqhkiG9w0BAQ0FADCBgDELMAkGA1UE +BhMCUEwxIjAgBgNVBAoTGVVuaXpldG8gVGVjaG5vbG9naWVzIFMuQS4xJzAlBgNVBAsTHkNlcnR1 +bSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEkMCIGA1UEAxMbQ2VydHVtIFRydXN0ZWQgTmV0d29y +ayBDQSAyMCIYDzIwMTExMDA2MDgzOTU2WhgPMjA0NjEwMDYwODM5NTZaMIGAMQswCQYDVQQGEwJQ +TDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENl +cnRpZmljYXRpb24gQXV0aG9yaXR5MSQwIgYDVQQDExtDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENB +IDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC9+Xj45tWADGSdhhuWZGc/IjoedQF9 +7/tcZ4zJzFxrqZHmuULlIEub2pt7uZld2ZuAS9eEQCsn0+i6MLs+CRqnSZXvK0AkwpfHp+6bJe+o +CgCXhVqqndwpyeI1B+twTUrWwbNWuKFBOJvR+zF/j+Bf4bE/D44WSWDXBo0Y+aomEKsq09DRZ40b +Rr5HMNUuctHFY9rnY3lEfktjJImGLjQ/KUxSiyqnwOKRKIm5wFv5HdnnJ63/mgKXwcZQkpsCLL2p +uTRZCr+ESv/f/rOf69me4Jgj7KZrdxYq28ytOxykh9xGc14ZYmhFV+SQgkK7QtbwYeDBoz1mo130 +GO6IyY0XRSmZMnUCMe4pJshrAua1YkV/NxVaI2iJ1D7eTiew8EAMvE0Xy02isx7QBlrd9pPPV3WZ +9fqGGmd4s7+W/jTcvedSVuWz5XV710GRBdxdaeOVDUO5/IOWOZV7bIBaTxNyxtd9KXpEulKkKtVB +Rgkg/iKgtlswjbyJDNXXcPiHUv3a76xRLgezTv7QCdpw75j6VuZt27VXS9zlLCUVyJ4ueE742pye +hizKV/Ma5ciSixqClnrDvFASadgOWkaLOusm+iPJtrCBvkIApPjW/jAux9JG9uWOdf3yzLnQh1vM +BhBgu4M1t15n3kfsmUjxpKEV/q2MYo45VU85FrmxY53/twIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MB0GA1UdDgQWBBS2oVQ5AsOgP46KvPrU+Bym0ToO/TAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZI +hvcNAQENBQADggIBAHGlDs7k6b8/ONWJWsQCYftMxRQXLYtPU2sQF/xlhMcQSZDe28cmk4gmb3DW +Al45oPePq5a1pRNcgRRtDoGCERuKTsZPpd1iHkTfCVn0W3cLN+mLIMb4Ck4uWBzrM9DPhmDJ2vuA +L55MYIR4PSFk1vtBHxgP58l1cb29XN40hz5BsA72udY/CROWFC/emh1auVbONTqwX3BNXuMp8SMo +clm2q8KMZiYcdywmdjWLKKdpoPk79SPdhRB0yZADVpHnr7pH1BKXESLjokmUbOe3lEu6LaTaM4tM +pkT/WjzGHWTYtTHkpjx6qFcL2+1hGsvxznN3Y6SHb0xRONbkX8eftoEq5IVIeVheO/jbAoJnwTnb +w3RLPTYe+SmTiGhbqEQZIfCn6IENLOiTNrQ3ssqwGyZ6miUfmpqAnksqP/ujmv5zMnHCnsZy4Ypo +J/HkD7TETKVhk/iXEAcqMCWpuchxuO9ozC1+9eB+D4Kob7a6bINDd82Kkhehnlt4Fj1F4jNy3eFm +ypnTycUm/Q1oBEauttmbjL4ZvrHG8hnjXALKLNhvSgfZyTXaQHXyxKcZb55CEJh15pWLYLztxRLX +is7VmFxWlgPF7ncGNf/P5O4/E2Hu29othfDNrp2yGAlFw5Khchf8R7agCyzxxN5DaAhqXzvwdmP7 +zAYspsbiDrW5viSP +-----END CERTIFICATE----- + +Hellenic Academic and Research Institutions RootCA 2015 +======================================================= +-----BEGIN CERTIFICATE----- +MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcT +BkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0 +aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl +YXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIwMTUwHhcNMTUwNzA3MTAxMTIxWhcNNDAwNjMwMTAx +MTIxWjCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMg +QWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNV +BAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIw +MTUwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDC+Kk/G4n8PDwEXT2QNrCROnk8Zlrv +bTkBSRq0t89/TSNTt5AA4xMqKKYx8ZEA4yjsriFBzh/a/X0SWwGDD7mwX5nh8hKDgE0GPt+sr+eh +iGsxr/CL0BgzuNtFajT0AoAkKAoCFZVedioNmToUW/bLy1O8E00BiDeUJRtCvCLYjqOWXjrZMts+ +6PAQZe104S+nfK8nNLspfZu2zwnI5dMK/IhlZXQK3HMcXM1AsRzUtoSMTFDPaI6oWa7CJ06CojXd +FPQf/7J31Ycvqm59JCfnxssm5uX+Zwdj2EUN3TpZZTlYepKZcj2chF6IIbjV9Cz82XBST3i4vTwr +i5WY9bPRaM8gFH5MXF/ni+X1NYEZN9cRCLdmvtNKzoNXADrDgfgXy5I2XdGj2HUb4Ysn6npIQf1F +GQatJ5lOwXBH3bWfgVMS5bGMSF0xQxfjjMZ6Y5ZLKTBOhE5iGV48zpeQpX8B653g+IuJ3SWYPZK2 +fu/Z8VFRfS0myGlZYeCsargqNhEEelC9MoS+L9xy1dcdFkfkR2YgP/SWxa+OAXqlD3pk9Q0Yh9mu +iNX6hME6wGkoLfINaFGq46V3xqSQDqE3izEjR8EJCOtu93ib14L8hCCZSRm2Ekax+0VVFqmjZayc +Bw/qa9wfLgZy7IaIEuQt218FL+TwA9MmM+eAws1CoRc0CwIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUcRVnyMjJvXVdctA4GGqd83EkVAswDQYJKoZI +hvcNAQELBQADggIBAHW7bVRLqhBYRjTyYtcWNl0IXtVsyIe9tC5G8jH4fOpCtZMWVdyhDBKg2mF+ +D1hYc2Ryx+hFjtyp8iY/xnmMsVMIM4GwVhO+5lFc2JsKT0ucVlMC6U/2DWDqTUJV6HwbISHTGzrM +d/K4kPFox/la/vot9L/J9UUbzjgQKjeKeaO04wlshYaT/4mWJ3iBj2fjRnRUjtkNaeJK9E10A/+y +d+2VZ5fkscWrv2oj6NSU4kQoYsRL4vDY4ilrGnB+JGGTe08DMiUNRSQrlrRGar9KC/eaj8GsGsVn +82800vpzY4zvFrCopEYq+OsS7HK07/grfoxSwIuEVPkvPuNVqNxmsdnhX9izjFk0WaSrT2y7Hxjb +davYy5LNlDhhDgcGH0tGEPEVvo2FXDtKK4F5D7Rpn0lQl033DlZdwJVqwjbDG2jJ9SrcR5q+ss7F +Jej6A7na+RZukYT1HCjI/CbM1xyQVqdfbzoEvM14iQuODy+jqk+iGxI9FghAD/FGTNeqewjBCvVt +J94Cj8rDtSvK6evIIVM4pcw72Hc3MKJP2W/R8kCtQXoXxdZKNYm3QdV8hn9VTYNKpXMgwDqvkPGa +JI7ZjnHKe7iG2rKPmT4dEw0SEe7Uq/DpFXYC5ODfqiAeW2GFZECpkJcNrVPSWh2HagCXZWK0vm9q +p/UsQu0yrbYhnr68 +-----END CERTIFICATE----- + +Hellenic Academic and Research Institutions ECC RootCA 2015 +=========================================================== +-----BEGIN CERTIFICATE----- +MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0 +aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u +cyBDZXJ0LiBBdXRob3JpdHkxRDBCBgNVBAMTO0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJj +aCBJbnN0aXR1dGlvbnMgRUNDIFJvb3RDQSAyMDE1MB4XDTE1MDcwNzEwMzcxMloXDTQwMDYzMDEw +MzcxMlowgaoxCzAJBgNVBAYTAkdSMQ8wDQYDVQQHEwZBdGhlbnMxRDBCBgNVBAoTO0hlbGxlbmlj +IEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9yaXR5MUQwQgYD +VQQDEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25zIEVDQyBSb290 +Q0EgMjAxNTB2MBAGByqGSM49AgEGBSuBBAAiA2IABJKgQehLgoRc4vgxEZmGZE4JJS+dQS8KrjVP +dJWyUWRrjWvmP3CV8AVER6ZyOFB2lQJajq4onvktTpnvLEhvTCUp6NFxW98dwXU3tNf6e3pCnGoK +Vlp8aQuqgAkkbH7BRqNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O +BBYEFLQiC4KZJAEOnLvkDv2/+5cgk5kqMAoGCCqGSM49BAMCA2cAMGQCMGfOFmI4oqxiRaeplSTA +GiecMjvAwNW6qef4BENThe5SId6d9SWDPp5YSy/XZxMOIQIwBeF1Ad5o7SofTUwJCA3sS61kFyjn +dc5FZXIhF8siQQ6ME5g4mlRtm8rifOoCWCKR +-----END CERTIFICATE----- + +ISRG Root X1 +============ +-----BEGIN CERTIFICATE----- +MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAwTzELMAkGA1UE +BhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2VhcmNoIEdyb3VwMRUwEwYDVQQD +EwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQG +EwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMT +DElTUkcgUm9vdCBYMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54r +Vygch77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+0TM8ukj1 +3Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6UA5/TR5d8mUgjU+g4rk8K +b4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sWT8KOEUt+zwvo/7V3LvSye0rgTBIlDHCN +Aymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyHB5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ +4Q7e2RCOFvu396j3x+UCB5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf +1b0SHzUvKBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWnOlFu +hjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTnjh8BCNAw1FtxNrQH +usEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbwqHyGO0aoSCqI3Haadr8faqU9GY/r +OPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CIrU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4G +A1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY +9umbbjANBgkqhkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL +ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ3BebYhtF8GaV +0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KKNFtY2PwByVS5uCbMiogziUwt +hDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJw +TdwJx4nLCgdNbOhdjsnvzqvHu7UrTkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nx +e5AW0wdeRlN8NwdCjNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZA +JzVcoyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq4RgqsahD +YVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPAmRGunUHBcnWEvgJBQl9n +JEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57demyPxgcYxn/eR44/KJ4EBs+lVDR3veyJ +m+kXQ99b21/+jh5Xos1AnX5iItreGCc= +-----END CERTIFICATE----- + +AC RAIZ FNMT-RCM +================ +-----BEGIN CERTIFICATE----- +MIIFgzCCA2ugAwIBAgIPXZONMGc2yAYdGsdUhGkHMA0GCSqGSIb3DQEBCwUAMDsxCzAJBgNVBAYT +AkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJWiBGTk1ULVJDTTAeFw0wODEw +MjkxNTU5NTZaFw0zMDAxMDEwMDAwMDBaMDsxCzAJBgNVBAYTAkVTMREwDwYDVQQKDAhGTk1ULVJD +TTEZMBcGA1UECwwQQUMgUkFJWiBGTk1ULVJDTTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC +ggIBALpxgHpMhm5/yBNtwMZ9HACXjywMI7sQmkCpGreHiPibVmr75nuOi5KOpyVdWRHbNi63URcf +qQgfBBckWKo3Shjf5TnUV/3XwSyRAZHiItQDwFj8d0fsjz50Q7qsNI1NOHZnjrDIbzAzWHFctPVr +btQBULgTfmxKo0nRIBnuvMApGGWn3v7v3QqQIecaZ5JCEJhfTzC8PhxFtBDXaEAUwED653cXeuYL +j2VbPNmaUtu1vZ5Gzz3rkQUCwJaydkxNEJY7kvqcfw+Z374jNUUeAlz+taibmSXaXvMiwzn15Cou +08YfxGyqxRxqAQVKL9LFwag0Jl1mpdICIfkYtwb1TplvqKtMUejPUBjFd8g5CSxJkjKZqLsXF3mw +WsXmo8RZZUc1g16p6DULmbvkzSDGm0oGObVo/CK67lWMK07q87Hj/LaZmtVC+nFNCM+HHmpxffnT +tOmlcYF7wk5HlqX2doWjKI/pgG6BU6VtX7hI+cL5NqYuSf+4lsKMB7ObiFj86xsc3i1w4peSMKGJ +47xVqCfWS+2QrYv6YyVZLag13cqXM7zlzced0ezvXg5KkAYmY6252TUtB7p2ZSysV4999AeU14EC +ll2jB0nVetBX+RvnU0Z1qrB5QstocQjpYL05ac70r8NWQMetUqIJ5G+GR4of6ygnXYMgrwTJbFaa +i0b1AgMBAAGjgYMwgYAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE +FPd9xf3E6Jobd2Sn9R2gzL+HYJptMD4GA1UdIAQ3MDUwMwYEVR0gADArMCkGCCsGAQUFBwIBFh1o +dHRwOi8vd3d3LmNlcnQuZm5tdC5lcy9kcGNzLzANBgkqhkiG9w0BAQsFAAOCAgEAB5BK3/MjTvDD +nFFlm5wioooMhfNzKWtN/gHiqQxjAb8EZ6WdmF/9ARP67Jpi6Yb+tmLSbkyU+8B1RXxlDPiyN8+s +D8+Nb/kZ94/sHvJwnvDKuO+3/3Y3dlv2bojzr2IyIpMNOmqOFGYMLVN0V2Ue1bLdI4E7pWYjJ2cJ +j+F3qkPNZVEI7VFY/uY5+ctHhKQV8Xa7pO6kO8Rf77IzlhEYt8llvhjho6Tc+hj507wTmzl6NLrT +Qfv6MooqtyuGC2mDOL7Nii4LcK2NJpLuHvUBKwrZ1pebbuCoGRw6IYsMHkCtA+fdZn71uSANA+iW ++YJF1DngoABd15jmfZ5nc8OaKveri6E6FO80vFIOiZiaBECEHX5FaZNXzuvO+FB8TxxuBEOb+dY7 +Ixjp6o7RTUaN8Tvkasq6+yO3m/qZASlaWFot4/nUbQ4mrcFuNLwy+AwF+mWj2zs3gyLp1txyM/1d +8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B9kiABdcPUXmsEKvU7ANm +5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wokRqEIr9baRRmW1FMdW4R58MD3R++Lj8UG +rp1MYp3/RgT408m2ECVAdf4WqslKYIYvuu8wd+RU4riEmViAqhOLUTpPSPaLtrM= +-----END CERTIFICATE----- + +Amazon Root CA 1 +================ +-----BEGIN CERTIFICATE----- +MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsFADA5MQswCQYD +VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAxMB4XDTE1 +MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv +bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC +ggEBALJ4gHHKeNXjca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgH +FzZM9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qwIFAGbHrQ +gLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6VOujw5H5SNz/0egwLX0t +dHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L93FcXmn/6pUCyziKrlA4b9v7LWIbxcce +VOF34GfID5yHI9Y/QCB/IIDEgEw+OyQmjgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB +/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3 +DQEBCwUAA4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDIU5PM +CCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUsN+gDS63pYaACbvXy +8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vvo/ufQJVtMVT8QtPHRh8jrdkPSHCa +2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2 +xJNDd2ZhwLnoQdeXeGADbkpyrqXRfboQnoZsG4q5WTP468SQvvG5 +-----END CERTIFICATE----- + +Amazon Root CA 2 +================ +-----BEGIN CERTIFICATE----- +MIIFQTCCAymgAwIBAgITBmyf0pY1hp8KD+WGePhbJruKNzANBgkqhkiG9w0BAQwFADA5MQswCQYD +VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAyMB4XDTE1 +MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv +bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC +ggIBAK2Wny2cSkxKgXlRmeyKy2tgURO8TW0G/LAIjd0ZEGrHJgw12MBvIITplLGbhQPDW9tK6Mj4 +kHbZW0/jTOgGNk3Mmqw9DJArktQGGWCsN0R5hYGCrVo34A3MnaZMUnbqQ523BNFQ9lXg1dKmSYXp +N+nKfq5clU1Imj+uIFptiJXZNLhSGkOQsL9sBbm2eLfq0OQ6PBJTYv9K8nu+NQWpEjTj82R0Yiw9 +AElaKP4yRLuH3WUnAnE72kr3H9rN9yFVkE8P7K6C4Z9r2UXTu/Bfh+08LDmG2j/e7HJV63mjrdvd +fLC6HM783k81ds8P+HgfajZRRidhW+mez/CiVX18JYpvL7TFz4QuK/0NURBs+18bvBt+xa47mAEx +kv8LV/SasrlX6avvDXbR8O70zoan4G7ptGmh32n2M8ZpLpcTnqWHsFcQgTfJU7O7f/aS0ZzQGPSS +btqDT6ZjmUyl+17vIWR6IF9sZIUVyzfpYgwLKhbcAS4y2j5L9Z469hdAlO+ekQiG+r5jqFoz7Mt0 +Q5X5bGlSNscpb/xVA1wf+5+9R+vnSUeVC06JIglJ4PVhHvG/LopyboBZ/1c6+XUyo05f7O0oYtlN +c/LMgRdg7c3r3NunysV+Ar3yVAhU/bQtCSwXVEqY0VThUWcI0u1ufm8/0i2BWSlmy5A5lREedCf+ +3euvAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSw +DPBMMPQFWAJI/TPlUq9LhONmUjANBgkqhkiG9w0BAQwFAAOCAgEAqqiAjw54o+Ci1M3m9Zh6O+oA +A7CXDpO8Wqj2LIxyh6mx/H9z/WNxeKWHWc8w4Q0QshNabYL1auaAn6AFC2jkR2vHat+2/XcycuUY ++gn0oJMsXdKMdYV2ZZAMA3m3MSNjrXiDCYZohMr/+c8mmpJ5581LxedhpxfL86kSk5Nrp+gvU5LE +YFiwzAJRGFuFjWJZY7attN6a+yb3ACfAXVU3dJnJUH/jWS5E4ywl7uxMMne0nxrpS10gxdr9HIcW +xkPo1LsmmkVwXqkLN1PiRnsn/eBG8om3zEK2yygmbtmlyTrIQRNg91CMFa6ybRoVGld45pIq2WWQ +gj9sAq+uEjonljYE1x2igGOpm/HlurR8FLBOybEfdF849lHqm/osohHUqS0nGkWxr7JOcQ3AWEbW +aQbLU8uz/mtBzUF+fUwPfHJ5elnNXkoOrJupmHN5fLT0zLm4BwyydFy4x2+IoZCn9Kr5v2c69BoV +Yh63n749sSmvZ6ES8lgQGVMDMBu4Gon2nL2XA46jCfMdiyHxtN/kHNGfZQIG6lzWE7OE76KlXIx3 +KadowGuuQNKotOrN8I1LOJwZmhsoVLiJkO/KdYE+HvJkJMcYr07/R54H9jVlpNMKVv/1F2Rs76gi +JUmTtt8AF9pYfl3uxRuw0dFfIRDH+fO6AgonB8Xx1sfT4PsJYGw= +-----END CERTIFICATE----- + +Amazon Root CA 3 +================ +-----BEGIN CERTIFICATE----- +MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5MQswCQYDVQQG +EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAzMB4XDTE1MDUy +NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ +MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZB +f8ANm+gBG1bG8lKlui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjr +Zt6jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSrttvXBp43 +rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkrBqWTrBqYaGFy+uGh0Psc +eGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteMYyRIHN8wfdVoOw== +-----END CERTIFICATE----- + +Amazon Root CA 4 +================ +-----BEGIN CERTIFICATE----- +MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5MQswCQYDVQQG +EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSA0MB4XDTE1MDUy +NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ +MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgNDB2MBAGByqGSM49AgEGBSuBBAAiA2IABNKrijdPo1MN +/sGKe0uoe0ZLY7Bi9i0b2whxIdIA6GO9mif78DluXeo9pcmBqqNbIJhFXRbb/egQbeOc4OO9X4Ri +83BkM6DLJC9wuoihKqB1+IGuYgbEgds5bimwHvouXKNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV +HQ8BAf8EBAMCAYYwHQYDVR0OBBYEFNPsxzplbszh2naaVvuc84ZtV+WBMAoGCCqGSM49BAMDA2gA +MGUCMDqLIfG9fhGt0O9Yli/W651+kI0rz2ZVwyzjKKlwCkcO8DdZEv8tmZQoTipPNU0zWgIxAOp1 +AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA== +-----END CERTIFICATE----- + +TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1 +============================================= +-----BEGIN CERTIFICATE----- +MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIxGDAWBgNVBAcT +D0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxpbXNlbCB2ZSBUZWtub2xvamlr +IEFyYXN0aXJtYSBLdXJ1bXUgLSBUVUJJVEFLMS0wKwYDVQQLEyRLYW11IFNlcnRpZmlrYXN5b24g +TWVya2V6aSAtIEthbXUgU00xNjA0BgNVBAMTLVRVQklUQUsgS2FtdSBTTSBTU0wgS29rIFNlcnRp +ZmlrYXNpIC0gU3VydW0gMTAeFw0xMzExMjUwODI1NTVaFw00MzEwMjUwODI1NTVaMIHSMQswCQYD +VQQGEwJUUjEYMBYGA1UEBxMPR2ViemUgLSBLb2NhZWxpMUIwQAYDVQQKEzlUdXJraXllIEJpbGlt +c2VsIHZlIFRla25vbG9qaWsgQXJhc3Rpcm1hIEt1cnVtdSAtIFRVQklUQUsxLTArBgNVBAsTJEth +bXUgU2VydGlmaWthc3lvbiBNZXJrZXppIC0gS2FtdSBTTTE2MDQGA1UEAxMtVFVCSVRBSyBLYW11 +IFNNIFNTTCBLb2sgU2VydGlmaWthc2kgLSBTdXJ1bSAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A +MIIBCgKCAQEAr3UwM6q7a9OZLBI3hNmNe5eA027n/5tQlT6QlVZC1xl8JoSNkvoBHToP4mQ4t4y8 +6Ij5iySrLqP1N+RAjhgleYN1Hzv/bKjFxlb4tO2KRKOrbEz8HdDc72i9z+SqzvBV96I01INrN3wc +wv61A+xXzry0tcXtAA9TNypN9E8Mg/uGz8v+jE69h/mniyFXnHrfA2eJLJ2XYacQuFWQfw4tJzh0 +3+f92k4S400VIgLI4OD8D62K18lUUMw7D8oWgITQUVbDjlZ/iSIzL+aFCr2lqBs23tPcLG07xxO9 +WSMs5uWk99gL7eqQQESolbuT1dCANLZGeA4fAJNG4e7p+exPFwIDAQABo0IwQDAdBgNVHQ4EFgQU +ZT/HiobGPN08VFw1+DrtUgxHV8gwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJ +KoZIhvcNAQELBQADggEBACo/4fEyjq7hmFxLXs9rHmoJ0iKpEsdeV31zVmSAhHqT5Am5EM2fKifh +AHe+SMg1qIGf5LgsyX8OsNJLN13qudULXjS99HMpw+0mFZx+CFOKWI3QSyjfwbPfIPP54+M638yc +lNhOT8NrF7f3cuitZjO1JVOr4PhMqZ398g26rrnZqsZr+ZO7rqu4lzwDGrpDxpa5RXI4s6ehlj2R +e37AIVNMh+3yC1SVUZPVIqUNivGTDj5UDrDYyU7c8jEyVupk+eq1nRZmQnLzf9OxMUP8pI4X8W0j +q5Rm+K37DwhuJi1/FwcJsoz7UMCflo3Ptv0AnVoUmr8CRPXBwp8iXqIPoeM= +-----END CERTIFICATE----- + +GDCA TrustAUTH R5 ROOT +====================== +-----BEGIN CERTIFICATE----- +MIIFiDCCA3CgAwIBAgIIfQmX/vBH6nowDQYJKoZIhvcNAQELBQAwYjELMAkGA1UEBhMCQ04xMjAw +BgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZIENPLixMVEQuMR8wHQYDVQQD +DBZHRENBIFRydXN0QVVUSCBSNSBST09UMB4XDTE0MTEyNjA1MTMxNVoXDTQwMTIzMTE1NTk1OVow +YjELMAkGA1UEBhMCQ04xMjAwBgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZ +IENPLixMVEQuMR8wHQYDVQQDDBZHRENBIFRydXN0QVVUSCBSNSBST09UMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEA2aMW8Mh0dHeb7zMNOwZ+Vfy1YI92hhJCfVZmPoiC7XJjDp6L3TQs +AlFRwxn9WVSEyfFrs0yw6ehGXTjGoqcuEVe6ghWinI9tsJlKCvLriXBjTnnEt1u9ol2x8kECK62p +OqPseQrsXzrj/e+APK00mxqriCZ7VqKChh/rNYmDf1+uKU49tm7srsHwJ5uu4/Ts765/94Y9cnrr +pftZTqfrlYwiOXnhLQiPzLyRuEH3FMEjqcOtmkVEs7LXLM3GKeJQEK5cy4KOFxg2fZfmiJqwTTQJ +9Cy5WmYqsBebnh52nUpmMUHfP/vFBu8btn4aRjb3ZGM74zkYI+dndRTVdVeSN72+ahsmUPI2JgaQ +xXABZG12ZuGR224HwGGALrIuL4xwp9E7PLOR5G62xDtw8mySlwnNR30YwPO7ng/Wi64HtloPzgsM +R6flPri9fcebNaBhlzpBdRfMK5Z3KpIhHtmVdiBnaM8Nvd/WHwlqmuLMc3GkL30SgLdTMEZeS1SZ +D2fJpcjyIMGC7J0R38IC+xo70e0gmu9lZJIQDSri3nDxGGeCjGHeuLzRL5z7D9Ar7Rt2ueQ5Vfj4 +oR24qoAATILnsn8JuLwwoC8N9VKejveSswoAHQBUlwbgsQfZxw9cZX08bVlX5O2ljelAU58VS6Bx +9hoh49pwBiFYFIeFd3mqgnkCAwEAAaNCMEAwHQYDVR0OBBYEFOLJQJ9NzuiaoXzPDj9lxSmIahlR +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQDRSVfg +p8xoWLoBDysZzY2wYUWsEe1jUGn4H3++Fo/9nesLqjJHdtJnJO29fDMylyrHBYZmDRd9FBUb1Ov9 +H5r2XpdptxolpAqzkT9fNqyL7FeoPueBihhXOYV0GkLH6VsTX4/5COmSdI31R9KrO9b7eGZONn35 +6ZLpBN79SWP8bfsUcZNnL0dKt7n/HipzcEYwv1ryL3ml4Y0M2fmyYzeMN2WFcGpcWwlyua1jPLHd ++PwyvzeG5LuOmCd+uh8W4XAR8gPfJWIyJyYYMoSf/wA6E7qaTfRPuBRwIrHKK5DOKcFw9C+df/KQ +HtZa37dG/OaG+svgIHZ6uqbL9XzeYqWxi+7egmaKTjowHz+Ay60nugxe19CxVsp3cbK1daFQqUBD +F8Io2c9Si1vIY9RCPqAzekYu9wogRlR+ak8x8YF+QnQ4ZXMn7sZ8uI7XpTrXmKGcjBBV09tL7ECQ +8s1uV9JiDnxXk7Gnbc2dg7sq5+W2O3FYrf3RRbxake5TFW/TRQl1brqQXR4EzzffHqhmsYzmIGrv +/EhOdJhCrylvLmrH+33RZjEizIYAfmaDDEL0vTSSwxrqT8p+ck0LcIymSLumoRT2+1hEmRSuqguT +aaApJUqlyyvdimYHFngVV3Eb7PVHhPOeMTd61X8kreS8/f3MboPoDKi3QWwH3b08hpcv0g== +-----END CERTIFICATE----- + +SSL.com Root Certification Authority RSA +======================================== +-----BEGIN CERTIFICATE----- +MIIF3TCCA8WgAwIBAgIIeyyb0xaAMpkwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxDjAM +BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24x +MTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBSU0EwHhcNMTYw +MjEyMTczOTM5WhcNNDEwMjEyMTczOTM5WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx +EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NM +LmNvbSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IFJTQTCCAiIwDQYJKoZIhvcNAQEBBQAD +ggIPADCCAgoCggIBAPkP3aMrfcvQKv7sZ4Wm5y4bunfh4/WvpOz6Sl2RxFdHaxh3a3by/ZPkPQ/C +Fp4LZsNWlJ4Xg4XOVu/yFv0AYvUiCVToZRdOQbngT0aXqhvIuG5iXmmxX9sqAn78bMrzQdjt0Oj8 +P2FI7bADFB0QDksZ4LtO7IZl/zbzXmcCC52GVWH9ejjt/uIZALdvoVBidXQ8oPrIJZK0bnoix/ge +oeOy3ZExqysdBP+lSgQ36YWkMyv94tZVNHwZpEpox7Ko07fKoZOI68GXvIz5HdkihCR0xwQ9aqkp +k8zruFvh/l8lqjRYyMEjVJ0bmBHDOJx+PYZspQ9AhnwC9FwCTyjLrnGfDzrIM/4RJTXq/LrFYD3Z +fBjVsqnTdXgDciLKOsMf7yzlLqn6niy2UUb9rwPW6mBo6oUWNmuF6R7As93EJNyAKoFBbZQ+yODJ +gUEAnl6/f8UImKIYLEJAs/lvOCdLToD0PYFH4Ih86hzOtXVcUS4cK38acijnALXRdMbX5J+tB5O2 +UzU1/Dfkw/ZdFr4hc96SCvigY2q8lpJqPvi8ZVWb3vUNiSYE/CUapiVpy8JtynziWV+XrOvvLsi8 +1xtZPCvM8hnIk2snYxnP/Okm+Mpxm3+T/jRnhE6Z6/yzeAkzcLpmpnbtG3PrGqUNxCITIJRWCk4s +bE6x/c+cCbqiM+2HAgMBAAGjYzBhMB0GA1UdDgQWBBTdBAkHovV6fVJTEpKV7jiAJQ2mWTAPBgNV +HRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFN0ECQei9Xp9UlMSkpXuOIAlDaZZMA4GA1UdDwEB/wQE +AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAIBgRlCn7Jp0cHh5wYfGVcpNxJK1ok1iOMq8bs3AD/CUr +dIWQPXhq9LmLpZc7tRiRux6n+UBbkflVma8eEdBcHadm47GUBwwyOabqG7B52B2ccETjit3E+ZUf +ijhDPwGFpUenPUayvOUiaPd7nNgsPgohyC0zrL/FgZkxdMF1ccW+sfAjRfSda/wZY52jvATGGAsl +u1OJD7OAUN5F7kR/q5R4ZJjT9ijdh9hwZXT7DrkT66cPYakylszeu+1jTBi7qUD3oFRuIIhxdRjq +erQ0cuAjJ3dctpDqhiVAq+8zD8ufgr6iIPv2tS0a5sKFsXQP+8hlAqRSAUfdSSLBv9jra6x+3uxj +MxW3IwiPxg+NQVrdjsW5j+VFP3jbutIbQLH+cU0/4IGiul607BXgk90IH37hVZkLId6Tngr75qNJ +vTYw/ud3sqB1l7UtgYgXZSD32pAAn8lSzDLKNXz1PQ/YK9f1JmzJBjSWFupwWRoyeXkLtoh/D1JI +Pb9s2KJELtFOt3JY04kTlf5Eq/jXixtunLwsoFvVagCvXzfh1foQC5ichucmj87w7G6KVwuA406y +wKBjYZC6VWg3dGq2ktufoYYitmUnDuy2n0Jg5GfCtdpBC8TTi2EbvPofkSvXRAdeuims2cXp71NI +WuuA8ShYIc2wBlX7Jz9TkHCpBB5XJ7k= +-----END CERTIFICATE----- + +SSL.com Root Certification Authority ECC +======================================== +-----BEGIN CERTIFICATE----- +MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMCVVMxDjAMBgNV +BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xMTAv +BgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEy +MTgxNDAzWhcNNDEwMjEyMTgxNDAzWjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAO +BgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNv +bSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuBBAAiA2IA +BEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI7Z4INcgn64mMU1jrYor+ +8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPgCemB+vNH06NjMGEwHQYDVR0OBBYEFILR +hXMw5zUE044CkvvlpNHEIejNMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTT +jgKS++Wk0cQh6M0wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCW +e+0F+S8Tkdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+gA0z +5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl +-----END CERTIFICATE----- + +SSL.com EV Root Certification Authority RSA R2 +============================================== +-----BEGIN CERTIFICATE----- +MIIF6zCCA9OgAwIBAgIIVrYpzTS8ePYwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYTAlVTMQ4w +DAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9u +MTcwNQYDVQQDDC5TU0wuY29tIEVWIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIy +MB4XDTE3MDUzMTE4MTQzN1oXDTQyMDUzMDE4MTQzN1owgYIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQI +DAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMTcwNQYD +VQQDDC5TU0wuY29tIEVWIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIyMIICIjAN +BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjzZlQOHWTcDXtOlG2mvqM0fNTPl9fb69LT3w23jh +hqXZuglXaO1XPqDQCEGD5yhBJB/jchXQARr7XnAjssufOePPxU7Gkm0mxnu7s9onnQqG6YE3Bf7w +cXHswxzpY6IXFJ3vG2fThVUCAtZJycxa4bH3bzKfydQ7iEGonL3Lq9ttewkfokxykNorCPzPPFTO +Zw+oz12WGQvE43LrrdF9HSfvkusQv1vrO6/PgN3B0pYEW3p+pKk8OHakYo6gOV7qd89dAFmPZiw+ +B6KjBSYRaZfqhbcPlgtLyEDhULouisv3D5oi53+aNxPN8k0TayHRwMwi8qFG9kRpnMphNQcAb9Zh +CBHqurj26bNg5U257J8UZslXWNvNh2n4ioYSA0e/ZhN2rHd9NCSFg83XqpyQGp8hLH94t2S42Oim +9HizVcuE0jLEeK6jj2HdzghTreyI/BXkmg3mnxp3zkyPuBQVPWKchjgGAGYS5Fl2WlPAApiiECto +RHuOec4zSnaqW4EWG7WK2NAAe15itAnWhmMOpgWVSbooi4iTsjQc2KRVbrcc0N6ZVTsj9CLg+Slm +JuwgUHfbSguPvuUCYHBBXtSuUDkiFCbLsjtzdFVHB3mBOagwE0TlBIqulhMlQg+5U8Sb/M3kHN48 ++qvWBkofZ6aYMBzdLNvcGJVXZsb/XItW9XcCAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNV +HSMEGDAWgBT5YLvU49U09rj1BoAlp3PbRmmonjAdBgNVHQ4EFgQU+WC71OPVNPa49QaAJadz20Zp +qJ4wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQBWs47LCp1Jjr+kxJG7ZhcFUZh1 +++VQLHqe8RT6q9OKPv+RKY9ji9i0qVQBDb6Thi/5Sm3HXvVX+cpVHBK+Rw82xd9qt9t1wkclf7nx +Y/hoLVUE0fKNsKTPvDxeH3jnpaAgcLAExbf3cqfeIg29MyVGjGSSJuM+LmOW2puMPfgYCdcDzH2G +guDKBAdRUNf/ktUM79qGn5nX67evaOI5JpS6aLe/g9Pqemc9YmeuJeVy6OLk7K4S9ksrPJ/psEDz +OFSz/bdoyNrGj1E8svuR3Bznm53htw1yj+KkxKl4+esUrMZDBcJlOSgYAsOCsp0FvmXtll9ldDz7 +CTUue5wT/RsPXcdtgTpWD8w74a8CLyKsRspGPKAcTNZEtF4uXBVmCeEmKf7GUmG6sXP/wwyc5Wxq +lD8UykAWlYTzWamsX0xhk23RO8yilQwipmdnRC652dKKQbNmC1r7fSOl8hqw/96bg5Qu0T/fkreR +rwU7ZcegbLHNYhLDkBvjJc40vG93drEQw/cFGsDWr3RiSBd3kmmQYRzelYB0VI8YHMPzA9C/pEN1 +hlMYegouCRw2n5H9gooiS9EOUCXdywMMF8mDAAhONU2Ki+3wApRmLER/y5UnlhetCTCstnEXbosX +9hwJ1C07mKVx01QT2WDz9UtmT/rx7iASjbSsV7FFY6GsdqnC+w== +-----END CERTIFICATE----- + +SSL.com EV Root Certification Authority ECC +=========================================== +-----BEGIN CERTIFICATE----- +MIIClDCCAhqgAwIBAgIILCmcWxbtBZUwCgYIKoZIzj0EAwIwfzELMAkGA1UEBhMCVVMxDjAMBgNV +BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xNDAy +BgNVBAMMK1NTTC5jb20gRVYgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYw +MjEyMTgxNTIzWhcNNDEwMjEyMTgxNTIzWjB/MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx +EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjE0MDIGA1UEAwwrU1NM +LmNvbSBFViBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuB +BAAiA2IABKoSR5CYG/vvw0AHgyBO8TCCogbR8pKGYfL2IWjKAMTH6kMAVIbc/R/fALhBYlzccBYy +3h+Z1MzFB8gIH2EWB1E9fVwHU+M1OIzfzZ/ZLg1KthkuWnBaBu2+8KGwytAJKaNjMGEwHQYDVR0O +BBYEFFvKXuXe0oGqzagtZFG22XKbl+ZPMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUW8pe +5d7SgarNqC1kUbbZcpuX5k8wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2gAMGUCMQCK5kCJ +N+vp1RPZytRrJPOwPYdGWBrssd9v+1a6cGvHOMzosYxPD/fxZ3YOg9AeUY8CMD32IygmTMZgh5Mm +m7I1HrrW9zzRHM76JTymGoEVW/MSD2zuZYrJh6j5B+BimoxcSg== +-----END CERTIFICATE----- + +GlobalSign Root CA - R6 +======================= +-----BEGIN CERTIFICATE----- +MIIFgzCCA2ugAwIBAgIORea7A4Mzw4VlSOb/RVEwDQYJKoZIhvcNAQEMBQAwTDEgMB4GA1UECxMX +R2xvYmFsU2lnbiBSb290IENBIC0gUjYxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds +b2JhbFNpZ24wHhcNMTQxMjEwMDAwMDAwWhcNMzQxMjEwMDAwMDAwWjBMMSAwHgYDVQQLExdHbG9i +YWxTaWduIFJvb3QgQ0EgLSBSNjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFs +U2lnbjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJUH6HPKZvnsFMp7PPcNCPG0RQss +grRIxutbPK6DuEGSMxSkb3/pKszGsIhrxbaJ0cay/xTOURQh7ErdG1rG1ofuTToVBu1kZguSgMpE +3nOUTvOniX9PeGMIyBJQbUJmL025eShNUhqKGoC3GYEOfsSKvGRMIRxDaNc9PIrFsmbVkJq3MQbF +vuJtMgamHvm566qjuL++gmNQ0PAYid/kD3n16qIfKtJwLnvnvJO7bVPiSHyMEAc4/2ayd2F+4OqM +PKq0pPbzlUoSB239jLKJz9CgYXfIWHSw1CM69106yqLbnQneXUQtkPGBzVeS+n68UARjNN9rkxi+ +azayOeSsJDa38O+2HBNXk7besvjihbdzorg1qkXy4J02oW9UivFyVm4uiMVRQkQVlO6jxTiWm05O +WgtH8wY2SXcwvHE35absIQh1/OZhFj931dmRl4QKbNQCTXTAFO39OfuD8l4UoQSwC+n+7o/hbguy +CLNhZglqsQY6ZZZZwPA1/cnaKI0aEYdwgQqomnUdnjqGBQCe24DWJfncBZ4nWUx2OVvq+aWh2IMP +0f/fMBH5hc8zSPXKbWQULHpYT9NLCEnFlWQaYw55PfWzjMpYrZxCRXluDocZXFSxZba/jJvcE+kN +b7gu3GduyYsRtYQUigAZcIN5kZeR1BonvzceMgfYFGM8KEyvAgMBAAGjYzBhMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSubAWjkxPioufi1xzWx/B/yGdToDAfBgNV +HSMEGDAWgBSubAWjkxPioufi1xzWx/B/yGdToDANBgkqhkiG9w0BAQwFAAOCAgEAgyXt6NH9lVLN +nsAEoJFp5lzQhN7craJP6Ed41mWYqVuoPId8AorRbrcWc+ZfwFSY1XS+wc3iEZGtIxg93eFyRJa0 +lV7Ae46ZeBZDE1ZXs6KzO7V33EByrKPrmzU+sQghoefEQzd5Mr6155wsTLxDKZmOMNOsIeDjHfrY +BzN2VAAiKrlNIC5waNrlU/yDXNOd8v9EDERm8tLjvUYAGm0CuiVdjaExUd1URhxN25mW7xocBFym +Fe944Hn+Xds+qkxV/ZoVqW/hpvvfcDDpw+5CRu3CkwWJ+n1jez/QcYF8AOiYrg54NMMl+68KnyBr +3TsTjxKM4kEaSHpzoHdpx7Zcf4LIHv5YGygrqGytXm3ABdJ7t+uA/iU3/gKbaKxCXcPu9czc8FB1 +0jZpnOZ7BN9uBmm23goJSFmH63sUYHpkqmlD75HHTOwY3WzvUy2MmeFe8nI+z1TIvWfspA9MRf/T +uTAjB0yPEL+GltmZWrSZVxykzLsViVO6LAUP5MSeGbEYNNVMnbrt9x+vJJUEeKgDu+6B5dpffItK +oZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+t +JDfLRVpOoERIyNiwmcUVhAn21klJwGW45hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA= +-----END CERTIFICATE----- + +OISTE WISeKey Global Root GC CA +=============================== +-----BEGIN CERTIFICATE----- +MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQswCQYDVQQGEwJD +SDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEo +MCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRa +Fw00MjA1MDkwOTU4MzNaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQL +ExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh +bCBSb290IEdDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4nieUqjFqdr +VCTbUf/q9Akkwwsin8tqJ4KBDdLArzHkdIJuyiXZjHWd8dvQmqJLIX4Wp2OQ0jnUsYd4XxiWD1Ab +NTcPasbc2RNNpI6QN+a9WzGRo1QwUjAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd +BgNVHQ4EFgQUSIcUrOPDnpBgOtfKie7TrYy0UGYwEAYJKwYBBAGCNxUBBAMCAQAwCgYIKoZIzj0E +AwMDaAAwZQIwJsdpW9zV57LnyAyMjMPdeYwbY9XJUpROTYJKcx6ygISpJcBMWm1JKWB4E+J+SOtk +AjEA2zQgMgj/mkkCtojeFK9dbJlxjRo/i9fgojaGHAeCOnZT/cKi7e97sIBPWA9LUzm9 +-----END CERTIFICATE----- + +UCA Global G2 Root +================== +-----BEGIN CERTIFICATE----- +MIIFRjCCAy6gAwIBAgIQXd+x2lqj7V2+WmUgZQOQ7zANBgkqhkiG9w0BAQsFADA9MQswCQYDVQQG +EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxGzAZBgNVBAMMElVDQSBHbG9iYWwgRzIgUm9vdDAeFw0x +NjAzMTEwMDAwMDBaFw00MDEyMzEwMDAwMDBaMD0xCzAJBgNVBAYTAkNOMREwDwYDVQQKDAhVbmlU +cnVzdDEbMBkGA1UEAwwSVUNBIEdsb2JhbCBHMiBSb290MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A +MIICCgKCAgEAxeYrb3zvJgUno4Ek2m/LAfmZmqkywiKHYUGRO8vDaBsGxUypK8FnFyIdK+35KYmT +oni9kmugow2ifsqTs6bRjDXVdfkX9s9FxeV67HeToI8jrg4aA3++1NDtLnurRiNb/yzmVHqUwCoV +8MmNsHo7JOHXaOIxPAYzRrZUEaalLyJUKlgNAQLx+hVRZ2zA+te2G3/RVogvGjqNO7uCEeBHANBS +h6v7hn4PJGtAnTRnvI3HLYZveT6OqTwXS3+wmeOwcWDcC/Vkw85DvG1xudLeJ1uK6NjGruFZfc8o +LTW4lVYa8bJYS7cSN8h8s+1LgOGN+jIjtm+3SJUIsUROhYw6AlQgL9+/V087OpAh18EmNVQg7Mc/ +R+zvWr9LesGtOxdQXGLYD0tK3Cv6brxzks3sx1DoQZbXqX5t2Okdj4q1uViSukqSKwxW/YDrCPBe +KW4bHAyvj5OJrdu9o54hyokZ7N+1wxrrFv54NkzWbtA+FxyQF2smuvt6L78RHBgOLXMDj6DlNaBa +4kx1HXHhOThTeEDMg5PXCp6dW4+K5OXgSORIskfNTip1KnvyIvbJvgmRlld6iIis7nCs+dwp4wwc +OxJORNanTrAmyPPZGpeRaOrvjUYG0lZFWJo8DA+DuAUlwznPO6Q0ibd5Ei9Hxeepl2n8pndntd97 +8XplFeRhVmUCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O +BBYEFIHEjMz15DD/pQwIX4wVZyF0Ad/fMA0GCSqGSIb3DQEBCwUAA4ICAQATZSL1jiutROTL/7lo +5sOASD0Ee/ojL3rtNtqyzm325p7lX1iPyzcyochltq44PTUbPrw7tgTQvPlJ9Zv3hcU2tsu8+Mg5 +1eRfB70VVJd0ysrtT7q6ZHafgbiERUlMjW+i67HM0cOU2kTC5uLqGOiiHycFutfl1qnN3e92mI0A +Ds0b+gO3joBYDic/UvuUospeZcnWhNq5NXHzJsBPd+aBJ9J3O5oUb3n09tDh05S60FdRvScFDcH9 +yBIw7m+NESsIndTUv4BFFJqIRNow6rSn4+7vW4LVPtateJLbXDzz2K36uGt/xDYotgIVilQsnLAX +c47QN6MUPJiVAAwpBVueSUmxX8fjy88nZY41F7dXyDDZQVu5FLbowg+UMaeUmMxq67XhJ/UQqAHo +jhJi6IjMtX9Gl8CbEGY4GjZGXyJoPd/JxhMnq1MGrKI8hgZlb7F+sSlEmqO6SWkoaY/X5V+tBIZk +bxqgDMUIYs6Ao9Dz7GjevjPHF1t/gMRMTLGmhIrDO7gJzRSBuhjjVFc2/tsvfEehOjPI+Vg7RE+x +ygKJBJYoaMVLuCaJu9YzL1DV/pqJuhgyklTGW+Cd+V7lDSKb9triyCGyYiGqhkCyLmTTX8jjfhFn +RR8F/uOi77Oos/N9j/gMHyIfLXC0uAE0djAA5SN4p1bXUB+K+wb1whnw0A== +-----END CERTIFICATE----- + +UCA Extended Validation Root +============================ +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgIQT9Irj/VkyDOeTzRYZiNwYDANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQG +EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9u +IFJvb3QwHhcNMTUwMzEzMDAwMDAwWhcNMzgxMjMxMDAwMDAwWjBHMQswCQYDVQQGEwJDTjERMA8G +A1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9uIFJvb3QwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCpCQcoEwKwmeBkqh5DFnpzsZGgdT6o+uM4AHrs +iWogD4vFsJszA1qGxliG1cGFu0/GnEBNyr7uaZa4rYEwmnySBesFK5pI0Lh2PpbIILvSsPGP2KxF +Rv+qZ2C0d35qHzwaUnoEPQc8hQ2E0B92CvdqFN9y4zR8V05WAT558aopO2z6+I9tTcg1367r3CTu +eUWnhbYFiN6IXSV8l2RnCdm/WhUFhvMJHuxYMjMR83dksHYf5BA1FxvyDrFspCqjc/wJHx4yGVMR +59mzLC52LqGj3n5qiAno8geK+LLNEOfic0CTuwjRP+H8C5SzJe98ptfRr5//lpr1kXuYC3fUfugH +0mK1lTnj8/FtDw5lhIpjVMWAtuCeS31HJqcBCF3RiJ7XwzJE+oJKCmhUfzhTA8ykADNkUVkLo4KR +el7sFsLzKuZi2irbWWIQJUoqgQtHB0MGcIfS+pMRKXpITeuUx3BNr2fVUbGAIAEBtHoIppB/TuDv +B0GHr2qlXov7z1CymlSvw4m6WC31MJixNnI5fkkE/SmnTHnkBVfblLkWU41Gsx2VYVdWf6/wFlth +WG82UBEL2KwrlRYaDh8IzTY0ZRBiZtWAXxQgXy0MoHgKaNYs1+lvK9JKBZP8nm9rZ/+I8U6laUpS +NwXqxhaN0sSZ0YIrO7o1dfdRUVjzyAfd5LQDfwIDAQABo0IwQDAdBgNVHQ4EFgQU2XQ65DA9DfcS +3H5aBZ8eNJr34RQwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZIhvcNAQEL +BQADggIBADaNl8xCFWQpN5smLNb7rhVpLGsaGvdftvkHTFnq88nIua7Mui563MD1sC3AO6+fcAUR +ap8lTwEpcOPlDOHqWnzcSbvBHiqB9RZLcpHIojG5qtr8nR/zXUACE/xOHAbKsxSQVBcZEhrxH9cM +aVr2cXj0lH2RC47skFSOvG+hTKv8dGT9cZr4QQehzZHkPJrgmzI5c6sq1WnIeJEmMX3ixzDx/BR4 +dxIOE/TdFpS/S2d7cFOFyrC78zhNLJA5wA3CXWvp4uXViI3WLL+rG761KIcSF3Ru/H38j9CHJrAb ++7lsq+KePRXBOy5nAliRn+/4Qh8st2j1da3Ptfb/EX3C8CSlrdP6oDyp+l3cpaDvRKS+1ujl5BOW +F3sGPjLtx7dCvHaj2GU4Kzg1USEODm8uNBNA4StnDG1KQTAYI1oyVZnJF+A83vbsea0rWBmirSwi +GpWOvpaQXUJXxPkUAzUrHC1RVwinOt4/5Mi0A3PCwSaAuwtCH60NryZy2sy+s6ODWA2CxR9GUeOc +GMyNm43sSet1UNWMKFnKdDTajAshqx7qG+XH/RU+wBeq+yNuJkbL+vmxcmtpzyKEC2IPrNkZAJSi +djzULZrtBJ4tBmIQN1IchXIbJ+XMxjHsN+xjWZsLHXbMfjKaiJUINlK73nZfdklJrX+9ZSCyycEr +dhh2n1ax +-----END CERTIFICATE----- + +Certigna Root CA +================ +-----BEGIN CERTIFICATE----- +MIIGWzCCBEOgAwIBAgIRAMrpG4nxVQMNo+ZBbcTjpuEwDQYJKoZIhvcNAQELBQAwWjELMAkGA1UE +BhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczEcMBoGA1UECwwTMDAwMiA0ODE0NjMwODEwMDAzNjEZ +MBcGA1UEAwwQQ2VydGlnbmEgUm9vdCBDQTAeFw0xMzEwMDEwODMyMjdaFw0zMzEwMDEwODMyMjda +MFoxCzAJBgNVBAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxHDAaBgNVBAsMEzAwMDIgNDgxNDYz +MDgxMDAwMzYxGTAXBgNVBAMMEENlcnRpZ25hIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQDNGDllGlmx6mQWDoyUJJV8g9PFOSbcDO8WV43X2KyjQn+Cyu3NW9sOty3tRQgX +stmzy9YXUnIo245Onoq2C/mehJpNdt4iKVzSs9IGPjA5qXSjklYcoW9MCiBtnyN6tMbaLOQdLNyz +KNAT8kxOAkmhVECe5uUFoC2EyP+YbNDrihqECB63aCPuI9Vwzm1RaRDuoXrC0SIxwoKF0vJVdlB8 +JXrJhFwLrN1CTivngqIkicuQstDuI7pmTLtipPlTWmR7fJj6o0ieD5Wupxj0auwuA0Wv8HT4Ks16 +XdG+RCYyKfHx9WzMfgIhC59vpD++nVPiz32pLHxYGpfhPTc3GGYo0kDFUYqMwy3OU4gkWGQwFsWq +4NYKpkDfePb1BHxpE4S80dGnBs8B92jAqFe7OmGtBIyT46388NtEbVncSVmurJqZNjBBe3YzIoej +wpKGbvlw7q6Hh5UbxHq9MfPU0uWZ/75I7HX1eBYdpnDBfzwboZL7z8g81sWTCo/1VTp2lc5ZmIoJ +lXcymoO6LAQ6l73UL77XbJuiyn1tJslV1c/DeVIICZkHJC1kJWumIWmbat10TWuXekG9qxf5kBdI +jzb5LdXF2+6qhUVB+s06RbFo5jZMm5BX7CO5hwjCxAnxl4YqKE3idMDaxIzb3+KhF1nOJFl0Mdp/ +/TBt2dzhauH8XwIDAQABo4IBGjCCARYwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYw +HQYDVR0OBBYEFBiHVuBud+4kNTxOc5of1uHieX4rMB8GA1UdIwQYMBaAFBiHVuBud+4kNTxOc5of +1uHieX4rMEQGA1UdIAQ9MDswOQYEVR0gADAxMC8GCCsGAQUFBwIBFiNodHRwczovL3d3d3cuY2Vy +dGlnbmEuZnIvYXV0b3JpdGVzLzBtBgNVHR8EZjBkMC+gLaArhilodHRwOi8vY3JsLmNlcnRpZ25h +LmZyL2NlcnRpZ25hcm9vdGNhLmNybDAxoC+gLYYraHR0cDovL2NybC5kaGlteW90aXMuY29tL2Nl +cnRpZ25hcm9vdGNhLmNybDANBgkqhkiG9w0BAQsFAAOCAgEAlLieT/DjlQgi581oQfccVdV8AOIt +OoldaDgvUSILSo3L6btdPrtcPbEo/uRTVRPPoZAbAh1fZkYJMyjhDSSXcNMQH+pkV5a7XdrnxIxP +TGRGHVyH41neQtGbqH6mid2PHMkwgu07nM3A6RngatgCdTer9zQoKJHyBApPNeNgJgH60BGM+RFq +7q89w1DTj18zeTyGqHNFkIwgtnJzFyO+B2XleJINugHA64wcZr+shncBlA2c5uk5jR+mUYyZDDl3 +4bSb+hxnV29qao6pK0xXeXpXIs/NX2NGjVxZOob4Mkdio2cNGJHc+6Zr9UhhcyNZjgKnvETq9Emd +8VRY+WCv2hikLyhF3HqgiIZd8zvn/yk1gPxkQ5Tm4xxvvq0OKmOZK8l+hfZx6AYDlf7ej0gcWtSS +6Cvu5zHbugRqh5jnxV/vfaci9wHYTfmJ0A6aBVmknpjZbyvKcL5kwlWj9Omvw5Ip3IgWJJk8jSaY +tlu3zM63Nwf9JtmYhST/WSMDmu2dnajkXjjO11INb9I/bbEFa0nOipFGc/T2L/Coc3cOZayhjWZS +aX5LaAzHHjcng6WMxwLkFM1JAbBzs/3GkDpv0mztO+7skb6iQ12LAEpmJURw3kAP+HwV96LOPNde +E4yBFxgX0b3xdxA61GU5wSesVywlVP+i2k+KYTlerj1KjL0= +-----END CERTIFICATE----- + +emSign Root CA - G1 +=================== +-----BEGIN CERTIFICATE----- +MIIDlDCCAnygAwIBAgIKMfXkYgxsWO3W2DANBgkqhkiG9w0BAQsFADBnMQswCQYDVQQGEwJJTjET +MBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRl +ZDEcMBoGA1UEAxMTZW1TaWduIFJvb3QgQ0EgLSBHMTAeFw0xODAyMTgxODMwMDBaFw00MzAyMTgx +ODMwMDBaMGcxCzAJBgNVBAYTAklOMRMwEQYDVQQLEwplbVNpZ24gUEtJMSUwIwYDVQQKExxlTXVk +aHJhIFRlY2hub2xvZ2llcyBMaW1pdGVkMRwwGgYDVQQDExNlbVNpZ24gUm9vdCBDQSAtIEcxMIIB +IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk0u76WaK7p1b1TST0Bsew+eeuGQzf2N4aLTN +LnF115sgxk0pvLZoYIr3IZpWNVrzdr3YzZr/k1ZLpVkGoZM0Kd0WNHVO8oG0x5ZOrRkVUkr+PHB1 +cM2vK6sVmjM8qrOLqs1D/fXqcP/tzxE7lM5OMhbTI0Aqd7OvPAEsbO2ZLIvZTmmYsvePQbAyeGHW +DV/D+qJAkh1cF+ZwPjXnorfCYuKrpDhMtTk1b+oDafo6VGiFbdbyL0NVHpENDtjVaqSW0RM8LHhQ +6DqS0hdW5TUaQBw+jSztOd9C4INBdN+jzcKGYEho42kLVACL5HZpIQ15TjQIXhTCzLG3rdd8cIrH +hQIDAQABo0IwQDAdBgNVHQ4EFgQU++8Nhp6w492pufEhF38+/PB3KxowDgYDVR0PAQH/BAQDAgEG +MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFn/8oz1h31xPaOfG1vR2vjTnGs2 +vZupYeveFix0PZ7mddrXuqe8QhfnPZHr5X3dPpzxz5KsbEjMwiI/aTvFthUvozXGaCocV685743Q +NcMYDHsAVhzNixl03r4PEuDQqqE/AjSxcM6dGNYIAwlG7mDgfrbESQRRfXBgvKqy/3lyeqYdPV8q ++Mri/Tm3R7nrft8EI6/6nAYH6ftjk4BAtcZsCjEozgyfz7MjNYBBjWzEN3uBL4ChQEKF6dk4jeih +U80Bv2noWgbyRQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx +iN66zB+Afko= +-----END CERTIFICATE----- + +emSign ECC Root CA - G3 +======================= +-----BEGIN CERTIFICATE----- +MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQGEwJJTjETMBEG +A1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEg +MB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4 +MTgzMDAwWjBrMQswCQYDVQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11 +ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g +RzMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0WXTsuwYc +58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xySfvalY8L1X44uT6EYGQIr +MgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuBzhccLikenEhjQjAOBgNVHQ8BAf8EBAMC +AQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+D +CBeQyh+KTOgNG3qxrdWBCUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnvI+GDZjVGLVTv7 +jHvrZQnD+JbNR6iC8hZVdyR+EhCVBCyj +-----END CERTIFICATE----- + +emSign Root CA - C1 +=================== +-----BEGIN CERTIFICATE----- +MIIDczCCAlugAwIBAgILAK7PALrEzzL4Q7IwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCVVMx +EzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQDExNlbVNp +Z24gUm9vdCBDQSAtIEMxMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowVjELMAkGA1UE +BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQD +ExNlbVNpZ24gUm9vdCBDQSAtIEMxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+up +ufGZBczYKCFK83M0UYRWEPWgTywS4/oTmifQz/l5GnRfHXk5/Fv4cI7gklL35CX5VIPZHdPIWoU/ +Xse2B+4+wM6ar6xWQio5JXDWv7V7Nq2s9nPczdcdioOl+yuQFTdrHCZH3DspVpNqs8FqOp099cGX +OFgFixwR4+S0uF2FHYP+eF8LRWgYSKVGczQ7/g/IdrvHGPMF0Ybzhe3nudkyrVWIzqa2kbBPrH4V +I5b2P/AgNBbeCsbEBEV5f6f9vtKppa+cxSMq9zwhbL2vj07FOrLzNBL834AaSaTUqZX3noleooms +lMuoaJuvimUnzYnu3Yy1aylwQ6BpC+S5DwIDAQABo0IwQDAdBgNVHQ4EFgQU/qHgcB4qAzlSWkK+ +XJGFehiqTbUwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQAD +ggEBAMJKVvoVIXsoounlHfv4LcQ5lkFMOycsxGwYFYDGrK9HWS8mC+M2sO87/kOXSTKZEhVb3xEp +/6tT+LvBeA+snFOvV71ojD1pM/CjoCNjO2RnIkSt1XHLVip4kqNPEjE2NuLe/gDEo2APJ62gsIq1 +NnpSob0n9CAnYuhNlCQT5AoE6TyrLshDCUrGYQTlSTR+08TI9Q/Aqum6VF7zYytPT1DU/rl7mYw9 +wC68AivTxEDkigcxHpvOJpkT+xHqmiIMERnHXhuBUDDIlhJu58tBf5E7oke3VIAb3ADMmpDqw8NQ +BmIMMMAVSKeoWXzhriKi4gp6D/piq1JM4fHfyr6DDUI= +-----END CERTIFICATE----- + +emSign ECC Root CA - C3 +======================= +-----BEGIN CERTIFICATE----- +MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQGEwJVUzETMBEG +A1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMxIDAeBgNVBAMTF2VtU2lnbiBF +Q0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UE +BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQD +ExdlbVNpZ24gRUNDIFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd +6bciMK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4OjavtisIGJAnB9 +SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0OBBYEFPtaSNCAIEDyqOkA +B2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gA +MGUCMQC02C8Cif22TGK6Q04ThHK1rt0c3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwU +ZOR8loMRnLDRWmFLpg9J0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ== +-----END CERTIFICATE----- + +Hongkong Post Root CA 3 +======================= +-----BEGIN CERTIFICATE----- +MIIFzzCCA7egAwIBAgIUCBZfikyl7ADJk0DfxMauI7gcWqQwDQYJKoZIhvcNAQELBQAwbzELMAkG +A1UEBhMCSEsxEjAQBgNVBAgTCUhvbmcgS29uZzESMBAGA1UEBxMJSG9uZyBLb25nMRYwFAYDVQQK +Ew1Ib25na29uZyBQb3N0MSAwHgYDVQQDExdIb25na29uZyBQb3N0IFJvb3QgQ0EgMzAeFw0xNzA2 +MDMwMjI5NDZaFw00MjA2MDMwMjI5NDZaMG8xCzAJBgNVBAYTAkhLMRIwEAYDVQQIEwlIb25nIEtv +bmcxEjAQBgNVBAcTCUhvbmcgS29uZzEWMBQGA1UEChMNSG9uZ2tvbmcgUG9zdDEgMB4GA1UEAxMX +SG9uZ2tvbmcgUG9zdCBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCz +iNfqzg8gTr7m1gNt7ln8wlffKWihgw4+aMdoWJwcYEuJQwy51BWy7sFOdem1p+/l6TWZ5Mwc50tf +jTMwIDNT2aa71T4Tjukfh0mtUC1Qyhi+AViiE3CWu4mIVoBc+L0sPOFMV4i707mV78vH9toxdCim +5lSJ9UExyuUmGs2C4HDaOym71QP1mbpV9WTRYA6ziUm4ii8F0oRFKHyPaFASePwLtVPLwpgchKOe +sL4jpNrcyCse2m5FHomY2vkALgbpDDtw1VAliJnLzXNg99X/NWfFobxeq81KuEXryGgeDQ0URhLj +0mRiikKYvLTGCAj4/ahMZJx2Ab0vqWwzD9g/KLg8aQFChn5pwckGyuV6RmXpwtZQQS4/t+TtbNe/ +JgERohYpSms0BpDsE9K2+2p20jzt8NYt3eEV7KObLyzJPivkaTv/ciWxNoZbx39ri1UbSsUgYT2u +y1DhCDq+sI9jQVMwCFk8mB13umOResoQUGC/8Ne8lYePl8X+l2oBlKN8W4UdKjk60FSh0Tlxnf0h ++bV78OLgAo9uliQlLKAeLKjEiafv7ZkGL7YKTE/bosw3Gq9HhS2KX8Q0NEwA/RiTZxPRN+ZItIsG +xVd7GYYKecsAyVKvQv83j+GjHno9UKtjBucVtT+2RTeUN7F+8kjDf8V1/peNRY8apxpyKBpADwID +AQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAfBgNVHSMEGDAWgBQXnc0e +i9Y5K3DTXNSguB+wAPzFYTAdBgNVHQ4EFgQUF53NHovWOStw01zUoLgfsAD8xWEwDQYJKoZIhvcN +AQELBQADggIBAFbVe27mIgHSQpsY1Q7XZiNc4/6gx5LS6ZStS6LG7BJ8dNVI0lkUmcDrudHr9Egw +W62nV3OZqdPlt9EuWSRY3GguLmLYauRwCy0gUCCkMpXRAJi70/33MvJJrsZ64Ee+bs7Lo3I6LWld +y8joRTnU+kLBEUx3XZL7av9YROXrgZ6voJmtvqkBZss4HTzfQx/0TW60uhdG/H39h4F5ag0zD/ov ++BS5gLNdTaqX4fnkGMX41TiMJjz98iji7lpJiCzfeT2OnpA8vUFKOt1b9pq0zj8lMH8yfaIDlNDc +eqFS3m6TjRgm/VWsvY+b0s+v54Ysyx8Jb6NvqYTUc79NoXQbTiNg8swOqn+knEwlqLJmOzj/2ZQw +9nKEvmhVEA/GcywWaZMH/rFF7buiVWqw2rVKAiUnhde3t4ZEFolsgCs+l6mc1X5VTMbeRRAc6uk7 +nwNT7u56AQIWeNTowr5GdogTPyK7SBIdUgC0An4hGh6cJfTzPV4e0hz5sy229zdcxsshTrD3mUcY +hcErulWuBurQB7Lcq9CClnXO0lD+mefPL5/ndtFhKvshuzHQqp9HpLIiyhY6UFfEW0NnxWViA0kB +60PZ2Pierc+xYw5F9KBaLJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fq +dBb9HxEGmpv0 +-----END CERTIFICATE----- + +Entrust Root Certification Authority - G4 +========================================= +-----BEGIN CERTIFICATE----- +MIIGSzCCBDOgAwIBAgIRANm1Q3+vqTkPAAAAAFVlrVgwDQYJKoZIhvcNAQELBQAwgb4xCzAJBgNV +BAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3Qu +bmV0L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0gZm9yIGF1 +dGhvcml6ZWQgdXNlIG9ubHkxMjAwBgNVBAMTKUVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1 +dGhvcml0eSAtIEc0MB4XDTE1MDUyNzExMTExNloXDTM3MTIyNzExNDExNlowgb4xCzAJBgNVBAYT +AlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0 +L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhv +cml6ZWQgdXNlIG9ubHkxMjAwBgNVBAMTKUVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhv +cml0eSAtIEc0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsewsQu7i0TD/pZJH4i3D +umSXbcr3DbVZwbPLqGgZ2K+EbTBwXX7zLtJTmeH+H17ZSK9dE43b/2MzTdMAArzE+NEGCJR5WIoV +3imz/f3ET+iq4qA7ec2/a0My3dl0ELn39GjUu9CH1apLiipvKgS1sqbHoHrmSKvS0VnM1n4j5pds +8ELl3FFLFUHtSUrJ3hCX1nbB76W1NhSXNdh4IjVS70O92yfbYVaCNNzLiGAMC1rlLAHGVK/XqsEQ +e9IFWrhAnoanw5CGAlZSCXqc0ieCU0plUmr1POeo8pyvi73TDtTUXm6Hnmo9RR3RXRv06QqsYJn7 +ibT/mCzPfB3pAqoEmh643IhuJbNsZvc8kPNXwbMv9W3y+8qh+CmdRouzavbmZwe+LGcKKh9asj5X +xNMhIWNlUpEbsZmOeX7m640A2Vqq6nPopIICR5b+W45UYaPrL0swsIsjdXJ8ITzI9vF01Bx7owVV +7rtNOzK+mndmnqxpkCIHH2E6lr7lmk/MBTwoWdPBDFSoWWG9yHJM6Nyfh3+9nEg2XpWjDrk4JFX8 +dWbrAuMINClKxuMrLzOg2qOGpRKX/YAr2hRC45K9PvJdXmd0LhyIRyk0X+IyqJwlN4y6mACXi0mW +Hv0liqzc2thddG5msP9E36EYxr5ILzeUePiVSj9/E15dWf10hkNjc0kCAwEAAaNCMEAwDwYDVR0T +AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJ84xFYjwznooHFs6FRM5Og6sb9n +MA0GCSqGSIb3DQEBCwUAA4ICAQAS5UKme4sPDORGpbZgQIeMJX6tuGguW8ZAdjwD+MlZ9POrYs4Q +jbRaZIxowLByQzTSGwv2LFPSypBLhmb8qoMi9IsabyZIrHZ3CL/FmFz0Jomee8O5ZDIBf9PD3Vht +7LGrhFV0d4QEJ1JrhkzO3bll/9bGXp+aEJlLdWr+aumXIOTkdnrG0CSqkM0gkLpHZPt/B7NTeLUK +YvJzQ85BK4FqLoUWlFPUa19yIqtRLULVAJyZv967lDtX/Zr1hstWO1uIAeV8KEsD+UmDfLJ/fOPt +jqF/YFOOVZ1QNBIPt5d7bIdKROf1beyAN/BYGW5KaHbwH5Lk6rWS02FREAutp9lfx1/cH6NcjKF+ +m7ee01ZvZl4HliDtC3T7Zk6LERXpgUl+b7DUUH8i119lAg2m9IUe2K4GS0qn0jFmwvjO5QimpAKW +RGhXxNUzzxkvFMSUHHuk2fCfDrGA4tGeEWSpiBE6doLlYsKA2KSD7ZPvfC+QsDJMlhVoSFLUmQjA +JOgc47OlIQ6SwJAfzyBfyjs4x7dtOvPmRLgOMWuIjnDrnBdSqEGULoe256YSxXXfW8AKbnuk5F6G ++TaU33fD6Q3AOfF5u0aOq0NZJ7cguyPpVkAh7DE9ZapD8j3fcEThuk0mEDuYn/PIjhs4ViFqUZPT +kcpG2om3PVODLAgfi49T3f+sHw== +-----END CERTIFICATE----- + +Microsoft ECC Root Certificate Authority 2017 +============================================= +-----BEGIN CERTIFICATE----- +MIICWTCCAd+gAwIBAgIQZvI9r4fei7FK6gxXMQHC7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV +UzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNyb3NvZnQgRUND +IFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwHhcNMTkxMjE4MjMwNjQ1WhcNNDIwNzE4 +MjMxNjA0WjBlMQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYw +NAYDVQQDEy1NaWNyb3NvZnQgRUNDIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwdjAQ +BgcqhkjOPQIBBgUrgQQAIgNiAATUvD0CQnVBEyPNgASGAlEvaqiBYgtlzPbKnR5vSmZRogPZnZH6 +thaxjG7efM3beaYvzrvOcS/lpaso7GMEZpn4+vKTEAXhgShC48Zo9OYbhGBKia/teQ87zvH2RPUB +eMCjVDBSMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTIy5lycFIM ++Oa+sgRXKSrPQhDtNTAQBgkrBgEEAYI3FQEEAwIBADAKBggqhkjOPQQDAwNoADBlAjBY8k3qDPlf +Xu5gKcs68tvWMoQZP3zVL8KxzJOuULsJMsbG7X7JNpQS5GiFBqIb0C8CMQCZ6Ra0DvpWSNSkMBaR +eNtUjGUBiudQZsIxtzm6uBoiB078a1QWIP8rtedMDE2mT3M= +-----END CERTIFICATE----- + +Microsoft RSA Root Certificate Authority 2017 +============================================= +-----BEGIN CERTIFICATE----- +MIIFqDCCA5CgAwIBAgIQHtOXCV/YtLNHcB6qvn9FszANBgkqhkiG9w0BAQwFADBlMQswCQYDVQQG +EwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNyb3NvZnQg +UlNBIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwHhcNMTkxMjE4MjI1MTIyWhcNNDIw +NzE4MjMwMDIzWjBlMQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9u +MTYwNAYDVQQDEy1NaWNyb3NvZnQgUlNBIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcw +ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKW76UM4wplZEWCpW9R2LBifOZNt9GkMml +7Xhqb0eRaPgnZ1AzHaGm++DlQ6OEAlcBXZxIQIJTELy/xztokLaCLeX0ZdDMbRnMlfl7rEqUrQ7e +S0MdhweSE5CAg2Q1OQT85elss7YfUJQ4ZVBcF0a5toW1HLUX6NZFndiyJrDKxHBKrmCk3bPZ7Pw7 +1VdyvD/IybLeS2v4I2wDwAW9lcfNcztmgGTjGqwu+UcF8ga2m3P1eDNbx6H7JyqhtJqRjJHTOoI+ +dkC0zVJhUXAoP8XFWvLJjEm7FFtNyP9nTUwSlq31/niol4fX/V4ggNyhSyL71Imtus5Hl0dVe49F +yGcohJUcaDDv70ngNXtk55iwlNpNhTs+VcQor1fznhPbRiefHqJeRIOkpcrVE7NLP8TjwuaGYaRS +MLl6IE9vDzhTyzMMEyuP1pq9KsgtsRx9S1HKR9FIJ3Jdh+vVReZIZZ2vUpC6W6IYZVcSn2i51BVr +lMRpIpj0M+Dt+VGOQVDJNE92kKz8OMHY4Xu54+OU4UZpyw4KUGsTuqwPN1q3ErWQgR5WrlcihtnJ +0tHXUeOrO8ZV/R4O03QK0dqq6mm4lyiPSMQH+FJDOvTKVTUssKZqwJz58oHhEmrARdlns87/I6KJ +ClTUFLkqqNfs+avNJVgyeY+QW5g5xAgGwax/Dj0ApQIDAQABo1QwUjAOBgNVHQ8BAf8EBAMCAYYw +DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUCctZf4aycI8awznjwNnpv7tNsiMwEAYJKwYBBAGC +NxUBBAMCAQAwDQYJKoZIhvcNAQEMBQADggIBAKyvPl3CEZaJjqPnktaXFbgToqZCLgLNFgVZJ8og +6Lq46BrsTaiXVq5lQ7GPAJtSzVXNUzltYkyLDVt8LkS/gxCP81OCgMNPOsduET/m4xaRhPtthH80 +dK2Jp86519efhGSSvpWhrQlTM93uCupKUY5vVau6tZRGrox/2KJQJWVggEbbMwSubLWYdFQl3JPk ++ONVFT24bcMKpBLBaYVu32TxU5nhSnUgnZUP5NbcA/FZGOhHibJXWpS2qdgXKxdJ5XbLwVaZOjex +/2kskZGT4d9Mozd2TaGf+G0eHdP67Pv0RR0Tbc/3WeUiJ3IrhvNXuzDtJE3cfVa7o7P4NHmJweDy +AmH3pvwPuxwXC65B2Xy9J6P9LjrRk5Sxcx0ki69bIImtt2dmefU6xqaWM/5TkshGsRGRxpl/j8nW +ZjEgQRCHLQzWwa80mMpkg/sTV9HB8Dx6jKXB/ZUhoHHBk2dxEuqPiAppGWSZI1b7rCoucL5mxAyE +7+WL85MB+GqQk2dLsmijtWKP6T+MejteD+eMuMZ87zf9dOLITzNy4ZQ5bb0Sr74MTnB8G2+NszKT +c0QWbej09+CVgI+WXTik9KveCjCHk9hNAHFiRSdLOkKEW39lt2c0Ui2cFmuqqNh7o0JMcccMyj6D +5KbvtwEwXlGjefVwaaZBRA+GsCyRxj3qrg+E +-----END CERTIFICATE----- + +e-Szigno Root CA 2017 +===================== +-----BEGIN CERTIFICATE----- +MIICQDCCAeWgAwIBAgIMAVRI7yH9l1kN9QQKMAoGCCqGSM49BAMCMHExCzAJBgNVBAYTAkhVMREw +DwYDVQQHDAhCdWRhcGVzdDEWMBQGA1UECgwNTWljcm9zZWMgTHRkLjEXMBUGA1UEYQwOVkFUSFUt +MjM1ODQ0OTcxHjAcBgNVBAMMFWUtU3ppZ25vIFJvb3QgQ0EgMjAxNzAeFw0xNzA4MjIxMjA3MDZa +Fw00MjA4MjIxMjA3MDZaMHExCzAJBgNVBAYTAkhVMREwDwYDVQQHDAhCdWRhcGVzdDEWMBQGA1UE +CgwNTWljcm9zZWMgTHRkLjEXMBUGA1UEYQwOVkFUSFUtMjM1ODQ0OTcxHjAcBgNVBAMMFWUtU3pp +Z25vIFJvb3QgQ0EgMjAxNzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJbcPYrYsHtvxie+RJCx +s1YVe45DJH0ahFnuY2iyxl6H0BVIHqiQrb1TotreOpCmYF9oMrWGQd+HWyx7xf58etqjYzBhMA8G +A1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSHERUI0arBeAyxr87GyZDv +vzAEwDAfBgNVHSMEGDAWgBSHERUI0arBeAyxr87GyZDvvzAEwDAKBggqhkjOPQQDAgNJADBGAiEA +tVfd14pVCzbhhkT61NlojbjcI4qKDdQvfepz7L9NbKgCIQDLpbQS+ue16M9+k/zzNY9vTlp8tLxO +svxyqltZ+efcMQ== +-----END CERTIFICATE----- + +certSIGN Root CA G2 +=================== +-----BEGIN CERTIFICATE----- +MIIFRzCCAy+gAwIBAgIJEQA0tk7GNi02MA0GCSqGSIb3DQEBCwUAMEExCzAJBgNVBAYTAlJPMRQw +EgYDVQQKEwtDRVJUU0lHTiBTQTEcMBoGA1UECxMTY2VydFNJR04gUk9PVCBDQSBHMjAeFw0xNzAy +MDYwOTI3MzVaFw00MjAyMDYwOTI3MzVaMEExCzAJBgNVBAYTAlJPMRQwEgYDVQQKEwtDRVJUU0lH +TiBTQTEcMBoGA1UECxMTY2VydFNJR04gUk9PVCBDQSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIP +ADCCAgoCggIBAMDFdRmRfUR0dIf+DjuW3NgBFszuY5HnC2/OOwppGnzC46+CjobXXo9X69MhWf05 +N0IwvlDqtg+piNguLWkh59E3GE59kdUWX2tbAMI5Qw02hVK5U2UPHULlj88F0+7cDBrZuIt4Imfk +abBoxTzkbFpG583H+u/E7Eu9aqSs/cwoUe+StCmrqzWaTOTECMYmzPhpn+Sc8CnTXPnGFiWeI8Mg +wT0PPzhAsP6CRDiqWhqKa2NYOLQV07YRaXseVO6MGiKscpc/I1mbySKEwQdPzH/iV8oScLumZfNp +dWO9lfsbl83kqK/20U6o2YpxJM02PbyWxPFsqa7lzw1uKA2wDrXKUXt4FMMgL3/7FFXhEZn91Qqh +ngLjYl/rNUssuHLoPj1PrCy7Lobio3aP5ZMqz6WryFyNSwb/EkaseMsUBzXgqd+L6a8VTxaJW732 +jcZZroiFDsGJ6x9nxUWO/203Nit4ZoORUSs9/1F3dmKh7Gc+PoGD4FapUB8fepmrY7+EF3fxDTvf +95xhszWYijqy7DwaNz9+j5LP2RIUZNoQAhVB/0/E6xyjyfqZ90bp4RjZsbgyLcsUDFDYg2WD7rlc +z8sFWkz6GZdr1l0T08JcVLwyc6B49fFtHsufpaafItzRUZ6CeWRgKRM+o/1Pcmqr4tTluCRVLERL +iohEnMqE0yo7AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1Ud +DgQWBBSCIS1mxteg4BXrzkwJd8RgnlRuAzANBgkqhkiG9w0BAQsFAAOCAgEAYN4auOfyYILVAzOB +ywaK8SJJ6ejqkX/GM15oGQOGO0MBzwdw5AgeZYWR5hEit/UCI46uuR59H35s5r0l1ZUa8gWmr4UC +b6741jH/JclKyMeKqdmfS0mbEVeZkkMR3rYzpMzXjWR91M08KCy0mpbqTfXERMQlqiCA2ClV9+BB +/AYm/7k29UMUA2Z44RGx2iBfRgB4ACGlHgAoYXhvqAEBj500mv/0OJD7uNGzcgbJceaBxXntC6Z5 +8hMLnPddDnskk7RI24Zf3lCGeOdA5jGokHZwYa+cNywRtYK3qq4kNFtyDGkNzVmf9nGvnAvRCjj5 +BiKDUyUM/FHE5r7iOZULJK2v0ZXkltd0ZGtxTgI8qoXzIKNDOXZbbFD+mpwUHmUUihW9o4JFWklW +atKcsWMy5WHgUyIOpwpJ6st+H6jiYoD2EEVSmAYY3qXNL3+q1Ok+CHLsIwMCPKaq2LxndD0UF/tU +Sxfj03k9bWtJySgOLnRQvwzZRjoQhsmnP+mg7H/rpXdYaXHmgwo38oZJar55CJD2AhZkPuXaTH4M +NMn5X7azKFGnpyuqSfqNZSlO42sTp5SjLVFteAxEy9/eCG/Oo2Sr05WE1LlSVHJ7liXMvGnjSG4N +0MedJ5qq+BOS3R7fY581qRY27Iy4g/Q9iY/NtBde17MXQRBdJ3NghVdJIgc= +-----END CERTIFICATE----- + +Trustwave Global Certification Authority +======================================== +-----BEGIN CERTIFICATE----- +MIIF2jCCA8KgAwIBAgIMBfcOhtpJ80Y1LrqyMA0GCSqGSIb3DQEBCwUAMIGIMQswCQYDVQQGEwJV +UzERMA8GA1UECAwISWxsaW5vaXMxEDAOBgNVBAcMB0NoaWNhZ28xITAfBgNVBAoMGFRydXN0d2F2 +ZSBIb2xkaW5ncywgSW5jLjExMC8GA1UEAwwoVHJ1c3R3YXZlIEdsb2JhbCBDZXJ0aWZpY2F0aW9u +IEF1dGhvcml0eTAeFw0xNzA4MjMxOTM0MTJaFw00MjA4MjMxOTM0MTJaMIGIMQswCQYDVQQGEwJV +UzERMA8GA1UECAwISWxsaW5vaXMxEDAOBgNVBAcMB0NoaWNhZ28xITAfBgNVBAoMGFRydXN0d2F2 +ZSBIb2xkaW5ncywgSW5jLjExMC8GA1UEAwwoVHJ1c3R3YXZlIEdsb2JhbCBDZXJ0aWZpY2F0aW9u +IEF1dGhvcml0eTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALldUShLPDeS0YLOvR29 +zd24q88KPuFd5dyqCblXAj7mY2Hf8g+CY66j96xz0XznswuvCAAJWX/NKSqIk4cXGIDtiLK0thAf +LdZfVaITXdHG6wZWiYj+rDKd/VzDBcdu7oaJuogDnXIhhpCujwOl3J+IKMujkkkP7NAP4m1ET4Bq +stTnoApTAbqOl5F2brz81Ws25kCI1nsvXwXoLG0R8+eyvpJETNKXpP7ScoFDB5zpET71ixpZfR9o +WN0EACyW80OzfpgZdNmcc9kYvkHHNHnZ9GLCQ7mzJ7Aiy/k9UscwR7PJPrhq4ufogXBeQotPJqX+ +OsIgbrv4Fo7NDKm0G2x2EOFYeUY+VM6AqFcJNykbmROPDMjWLBz7BegIlT1lRtzuzWniTY+HKE40 +Cz7PFNm73bZQmq131BnW2hqIyE4bJ3XYsgjxroMwuREOzYfwhI0Vcnyh78zyiGG69Gm7DIwLdVcE +uE4qFC49DxweMqZiNu5m4iK4BUBjECLzMx10coos9TkpoNPnG4CELcU9402x/RpvumUHO1jsQkUm ++9jaJXLE9gCxInm943xZYkqcBW89zubWR2OZxiRvchLIrH+QtAuRcOi35hYQcRfO3gZPSEF9NUqj +ifLJS3tBEW1ntwiYTOURGa5CgNz7kAXU+FDKvuStx8KU1xad5hePrzb7AgMBAAGjQjBAMA8GA1Ud +EwEB/wQFMAMBAf8wHQYDVR0OBBYEFJngGWcNYtt2s9o9uFvo/ULSMQ6HMA4GA1UdDwEB/wQEAwIB +BjANBgkqhkiG9w0BAQsFAAOCAgEAmHNw4rDT7TnsTGDZqRKGFx6W0OhUKDtkLSGm+J1WE2pIPU/H +PinbbViDVD2HfSMF1OQc3Og4ZYbFdada2zUFvXfeuyk3QAUHw5RSn8pk3fEbK9xGChACMf1KaA0H +ZJDmHvUqoai7PF35owgLEQzxPy0QlG/+4jSHg9bP5Rs1bdID4bANqKCqRieCNqcVtgimQlRXtpla +4gt5kNdXElE1GYhBaCXUNxeEFfsBctyV3lImIJgm4nb1J2/6ADtKYdkNy1GTKv0WBpanI5ojSP5R +vbbEsLFUzt5sQa0WZ37b/TjNuThOssFgy50X31ieemKyJo90lZvkWx3SD92YHJtZuSPTMaCm/zjd +zyBP6VhWOmfD0faZmZ26NraAL4hHT4a/RDqA5Dccprrql5gR0IRiR2Qequ5AvzSxnI9O4fKSTx+O +856X3vOmeWqJcU9LJxdI/uz0UA9PSX3MReO9ekDFQdxhVicGaeVyQYHTtgGJoC86cnn+OjC/QezH +Yj6RS8fZMXZC+fc8Y+wmjHMMfRod6qh8h6jCJ3zhM0EPz8/8AKAigJ5Kp28AsEFFtyLKaEjFQqKu +3R3y4G5OBVixwJAWKqQ9EEC+j2Jjg6mcgn0tAumDMHzLJ8n9HmYAsC7TIS+OMxZsmO0QqAfWzJPP +29FpHOTKyeC2nOnOcXHebD8WpHk= +-----END CERTIFICATE----- + +Trustwave Global ECC P256 Certification Authority +================================================= +-----BEGIN CERTIFICATE----- +MIICYDCCAgegAwIBAgIMDWpfCD8oXD5Rld9dMAoGCCqGSM49BAMCMIGRMQswCQYDVQQGEwJVUzER +MA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBI +b2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDI1NiBDZXJ0aWZp +Y2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MjMxOTM1MTBaFw00MjA4MjMxOTM1MTBaMIGRMQswCQYD +VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRy +dXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDI1 +NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABH77bOYj +43MyCMpg5lOcunSNGLB4kFKA3TjASh3RqMyTpJcGOMoNFWLGjgEqZZ2q3zSRLoHB5DOSMcT9CTqm +P62jQzBBMA8GA1UdEwEB/wQFMAMBAf8wDwYDVR0PAQH/BAUDAwcGADAdBgNVHQ4EFgQUo0EGrJBt +0UrrdaVKEJmzsaGLSvcwCgYIKoZIzj0EAwIDRwAwRAIgB+ZU2g6gWrKuEZ+Hxbb/ad4lvvigtwjz +RM4q3wghDDcCIC0mA6AFvWvR9lz4ZcyGbbOcNEhjhAnFjXca4syc4XR7 +-----END CERTIFICATE----- + +Trustwave Global ECC P384 Certification Authority +================================================= +-----BEGIN CERTIFICATE----- +MIICnTCCAiSgAwIBAgIMCL2Fl2yZJ6SAaEc7MAoGCCqGSM49BAMDMIGRMQswCQYDVQQGEwJVUzER +MA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBI +b2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDM4NCBDZXJ0aWZp +Y2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MjMxOTM2NDNaFw00MjA4MjMxOTM2NDNaMIGRMQswCQYD +VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRy +dXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDM4 +NCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTB2MBAGByqGSM49AgEGBSuBBAAiA2IABGvaDXU1CDFH +Ba5FmVXxERMuSvgQMSOjfoPTfygIOiYaOs+Xgh+AtycJj9GOMMQKmw6sWASr9zZ9lCOkmwqKi6vr +/TklZvFe/oyujUF5nQlgziip04pt89ZF1PKYhDhloKNDMEEwDwYDVR0TAQH/BAUwAwEB/zAPBgNV +HQ8BAf8EBQMDBwYAMB0GA1UdDgQWBBRVqYSJ0sEyvRjLbKYHTsjnnb6CkDAKBggqhkjOPQQDAwNn +ADBkAjA3AZKXRRJ+oPM+rRk6ct30UJMDEr5E0k9BpIycnR+j9sKS50gU/k6bpZFXrsY3crsCMGcl +CrEMXu6pY5Jv5ZAL/mYiykf9ijH3g/56vxC+GCsej/YpHpRZ744hN8tRmKVuSw== +-----END CERTIFICATE----- + +NAVER Global Root Certification Authority +========================================= +-----BEGIN CERTIFICATE----- +MIIFojCCA4qgAwIBAgIUAZQwHqIL3fXFMyqxQ0Rx+NZQTQ0wDQYJKoZIhvcNAQEMBQAwaTELMAkG +A1UEBhMCS1IxJjAkBgNVBAoMHU5BVkVSIEJVU0lORVNTIFBMQVRGT1JNIENvcnAuMTIwMAYDVQQD +DClOQVZFUiBHbG9iYWwgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MTgwODU4 +NDJaFw0zNzA4MTgyMzU5NTlaMGkxCzAJBgNVBAYTAktSMSYwJAYDVQQKDB1OQVZFUiBCVVNJTkVT +UyBQTEFURk9STSBDb3JwLjEyMDAGA1UEAwwpTkFWRVIgR2xvYmFsIFJvb3QgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC21PGTXLVAiQqrDZBb +UGOukJR0F0Vy1ntlWilLp1agS7gvQnXp2XskWjFlqxcX0TM62RHcQDaH38dq6SZeWYp34+hInDEW ++j6RscrJo+KfziFTowI2MMtSAuXaMl3Dxeb57hHHi8lEHoSTGEq0n+USZGnQJoViAbbJAh2+g1G7 +XNr4rRVqmfeSVPc0W+m/6imBEtRTkZazkVrd/pBzKPswRrXKCAfHcXLJZtM0l/aM9BhK4dA9WkW2 +aacp+yPOiNgSnABIqKYPszuSjXEOdMWLyEz59JuOuDxp7W87UC9Y7cSw0BwbagzivESq2M0UXZR4 +Yb8ObtoqvC8MC3GmsxY/nOb5zJ9TNeIDoKAYv7vxvvTWjIcNQvcGufFt7QSUqP620wbGQGHfnZ3z +VHbOUzoBppJB7ASjjw2i1QnK1sua8e9DXcCrpUHPXFNwcMmIpi3Ua2FzUCaGYQ5fG8Ir4ozVu53B +A0K6lNpfqbDKzE0K70dpAy8i+/Eozr9dUGWokG2zdLAIx6yo0es+nPxdGoMuK8u180SdOqcXYZai +cdNwlhVNt0xz7hlcxVs+Qf6sdWA7G2POAN3aCJBitOUt7kinaxeZVL6HSuOpXgRM6xBtVNbv8ejy +YhbLgGvtPe31HzClrkvJE+2KAQHJuFFYwGY6sWZLxNUxAmLpdIQM201GLQIDAQABo0IwQDAdBgNV +HQ4EFgQU0p+I36HNLL3s9TsBAZMzJ7LrYEswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMB +Af8wDQYJKoZIhvcNAQEMBQADggIBADLKgLOdPVQG3dLSLvCkASELZ0jKbY7gyKoNqo0hV4/GPnrK +21HUUrPUloSlWGB/5QuOH/XcChWB5Tu2tyIvCZwTFrFsDDUIbatjcu3cvuzHV+YwIHHW1xDBE1UB +jCpD5EHxzzp6U5LOogMFDTjfArsQLtk70pt6wKGm+LUx5vR1yblTmXVHIloUFcd4G7ad6Qz4G3bx +hYTeodoS76TiEJd6eN4MUZeoIUCLhr0N8F5OSza7OyAfikJW4Qsav3vQIkMsRIz75Sq0bBwcupTg +E34h5prCy8VCZLQelHsIJchxzIdFV4XTnyliIoNRlwAYl3dqmJLJfGBs32x9SuRwTMKeuB330DTH +D8z7p/8Dvq1wkNoL3chtl1+afwkyQf3NosxabUzyqkn+Zvjp2DXrDige7kgvOtB5CTh8piKCk5XQ +A76+AqAF3SAi428diDRgxuYKuQl1C/AH6GmWNcf7I4GOODm4RStDeKLRLBT/DShycpWbXgnbiUSY +qqFJu3FS8r/2/yehNq+4tneI3TqkbZs0kNwUXTC/t+sX5Ie3cdCh13cV1ELX8vMxmV2b3RZtP+oG +I/hGoiLtk/bdmuYqh7GYVPEi92tF4+KOdh2ajcQGjTa3FPOdVGm3jjzVpG2Tgbet9r1ke8LJaDmg +kpzNNIaRkPpkUZ3+/uul9XXeifdy +-----END CERTIFICATE----- + +AC RAIZ FNMT-RCM SERVIDORES SEGUROS +=================================== +-----BEGIN CERTIFICATE----- +MIICbjCCAfOgAwIBAgIQYvYybOXE42hcG2LdnC6dlTAKBggqhkjOPQQDAzB4MQswCQYDVQQGEwJF +UzERMA8GA1UECgwIRk5NVC1SQ00xDjAMBgNVBAsMBUNlcmVzMRgwFgYDVQRhDA9WQVRFUy1RMjgy +NjAwNEoxLDAqBgNVBAMMI0FDIFJBSVogRk5NVC1SQ00gU0VSVklET1JFUyBTRUdVUk9TMB4XDTE4 +MTIyMDA5MzczM1oXDTQzMTIyMDA5MzczM1oweDELMAkGA1UEBhMCRVMxETAPBgNVBAoMCEZOTVQt +UkNNMQ4wDAYDVQQLDAVDZXJlczEYMBYGA1UEYQwPVkFURVMtUTI4MjYwMDRKMSwwKgYDVQQDDCNB +QyBSQUlaIEZOTVQtUkNNIFNFUlZJRE9SRVMgU0VHVVJPUzB2MBAGByqGSM49AgEGBSuBBAAiA2IA +BPa6V1PIyqvfNkpSIeSX0oNnnvBlUdBeh8dHsVnyV0ebAAKTRBdp20LHsbI6GA60XYyzZl2hNPk2 +LEnb80b8s0RpRBNm/dfF/a82Tc4DTQdxz69qBdKiQ1oKUm8BA06Oi6NCMEAwDwYDVR0TAQH/BAUw +AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFAG5L++/EYZg8k/QQW6rcx/n0m5JMAoGCCqG +SM49BAMDA2kAMGYCMQCuSuMrQMN0EfKVrRYj3k4MGuZdpSRea0R7/DjiT8ucRRcRTBQnJlU5dUoD +zBOQn5ICMQD6SmxgiHPz7riYYqnOK8LZiqZwMR2vsJRM60/G49HzYqc8/5MuB1xJAWdpEgJyv+c= +-----END CERTIFICATE----- + +GlobalSign Root R46 +=================== +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgISEdK7udcjGJ5AXwqdLdDfJWfRMA0GCSqGSIb3DQEBDAUAMEYxCzAJBgNV +BAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRwwGgYDVQQDExNHbG9iYWxTaWduIFJv +b3QgUjQ2MB4XDTE5MDMyMDAwMDAwMFoXDTQ2MDMyMDAwMDAwMFowRjELMAkGA1UEBhMCQkUxGTAX +BgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExHDAaBgNVBAMTE0dsb2JhbFNpZ24gUm9vdCBSNDYwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCsrHQy6LNl5brtQyYdpokNRbopiLKkHWPd08Es +CVeJOaFV6Wc0dwxu5FUdUiXSE2te4R2pt32JMl8Nnp8semNgQB+msLZ4j5lUlghYruQGvGIFAha/ +r6gjA7aUD7xubMLL1aa7DOn2wQL7Id5m3RerdELv8HQvJfTqa1VbkNud316HCkD7rRlr+/fKYIje +2sGP1q7Vf9Q8g+7XFkyDRTNrJ9CG0Bwta/OrffGFqfUo0q3v84RLHIf8E6M6cqJaESvWJ3En7YEt +bWaBkoe0G1h6zD8K+kZPTXhc+CtI4wSEy132tGqzZfxCnlEmIyDLPRT5ge1lFgBPGmSXZgjPjHvj +K8Cd+RTyG/FWaha/LIWFzXg4mutCagI0GIMXTpRW+LaCtfOW3T3zvn8gdz57GSNrLNRyc0NXfeD4 +12lPFzYE+cCQYDdF3uYM2HSNrpyibXRdQr4G9dlkbgIQrImwTDsHTUB+JMWKmIJ5jqSngiCNI/on +ccnfxkF0oE32kRbcRoxfKWMxWXEM2G/CtjJ9++ZdU6Z+Ffy7dXxd7Pj2Fxzsx2sZy/N78CsHpdls +eVR2bJ0cpm4O6XkMqCNqo98bMDGfsVR7/mrLZqrcZdCinkqaByFrgY/bxFn63iLABJzjqls2k+g9 +vXqhnQt2sQvHnf3PmKgGwvgqo6GDoLclcqUC4wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAYYwDwYD +VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA1yrc4GHqMywptWU4jaWSf8FmSwwDQYJKoZIhvcNAQEM +BQADggIBAHx47PYCLLtbfpIrXTncvtgdokIzTfnvpCo7RGkerNlFo048p9gkUbJUHJNOxO97k4Vg +JuoJSOD1u8fpaNK7ajFxzHmuEajwmf3lH7wvqMxX63bEIaZHU1VNaL8FpO7XJqti2kM3S+LGteWy +gxk6x9PbTZ4IevPuzz5i+6zoYMzRx6Fcg0XERczzF2sUyQQCPtIkpnnpHs6i58FZFZ8d4kuaPp92 +CC1r2LpXFNqD6v6MVenQTqnMdzGxRBF6XLE+0xRFFRhiJBPSy03OXIPBNvIQtQ6IbbjhVp+J3pZm +OUdkLG5NrmJ7v2B0GbhWrJKsFjLtrWhV/pi60zTe9Mlhww6G9kuEYO4Ne7UyWHmRVSyBQ7N0H3qq +JZ4d16GLuc1CLgSkZoNNiTW2bKg2SnkheCLQQrzRQDGQob4Ez8pn7fXwgNNgyYMqIgXQBztSvwye +qiv5u+YfjyW6hY0XHgL+XVAEV8/+LbzvXMAaq7afJMbfc2hIkCwU9D9SGuTSyxTDYWnP4vkYxboz +nxSjBF25cfe1lNj2M8FawTSLfJvdkzrnE6JwYZ+vj+vYxXX4M2bUdGc6N3ec592kD3ZDZopD8p/7 +DEJ4Y9HiD2971KE9dJeFt0g5QdYg/NA6s/rob8SKunE3vouXsXgxT7PntgMTzlSdriVZzH81Xwj3 +QEUxeCp6 +-----END CERTIFICATE----- + +GlobalSign Root E46 +=================== +-----BEGIN CERTIFICATE----- +MIICCzCCAZGgAwIBAgISEdK7ujNu1LzmJGjFDYQdmOhDMAoGCCqGSM49BAMDMEYxCzAJBgNVBAYT +AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRwwGgYDVQQDExNHbG9iYWxTaWduIFJvb3Qg +RTQ2MB4XDTE5MDMyMDAwMDAwMFoXDTQ2MDMyMDAwMDAwMFowRjELMAkGA1UEBhMCQkUxGTAXBgNV +BAoTEEdsb2JhbFNpZ24gbnYtc2ExHDAaBgNVBAMTE0dsb2JhbFNpZ24gUm9vdCBFNDYwdjAQBgcq +hkjOPQIBBgUrgQQAIgNiAAScDrHPt+ieUnd1NPqlRqetMhkytAepJ8qUuwzSChDH2omwlwxwEwkB +jtjqR+q+soArzfwoDdusvKSGN+1wCAB16pMLey5SnCNoIwZD7JIvU4Tb+0cUB+hflGddyXqBPCCj +QjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQxCpCPtsad0kRL +gLWi5h+xEk8blTAKBggqhkjOPQQDAwNoADBlAjEA31SQ7Zvvi5QCkxeCmb6zniz2C5GMn0oUsfZk +vLtoURMMA/cVi4RguYv/Uo7njLwcAjA8+RHUjE7AwWHCFUyqqx0LMV87HOIAl0Qx5v5zli/altP+ +CAezNIm8BZ/3Hobui3A= +-----END CERTIFICATE----- + +GLOBALTRUST 2020 +================ +-----BEGIN CERTIFICATE----- +MIIFgjCCA2qgAwIBAgILWku9WvtPilv6ZeUwDQYJKoZIhvcNAQELBQAwTTELMAkGA1UEBhMCQVQx +IzAhBgNVBAoTGmUtY29tbWVyY2UgbW9uaXRvcmluZyBHbWJIMRkwFwYDVQQDExBHTE9CQUxUUlVT +VCAyMDIwMB4XDTIwMDIxMDAwMDAwMFoXDTQwMDYxMDAwMDAwMFowTTELMAkGA1UEBhMCQVQxIzAh +BgNVBAoTGmUtY29tbWVyY2UgbW9uaXRvcmluZyBHbWJIMRkwFwYDVQQDExBHTE9CQUxUUlVTVCAy +MDIwMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAri5WrRsc7/aVj6B3GyvTY4+ETUWi +D59bRatZe1E0+eyLinjF3WuvvcTfk0Uev5E4C64OFudBc/jbu9G4UeDLgztzOG53ig9ZYybNpyrO +VPu44sB8R85gfD+yc/LAGbaKkoc1DZAoouQVBGM+uq/ufF7MpotQsjj3QWPKzv9pj2gOlTblzLmM +CcpL3TGQlsjMH/1WljTbjhzqLL6FLmPdqqmV0/0plRPwyJiT2S0WR5ARg6I6IqIoV6Lr/sCMKKCm +fecqQjuCgGOlYx8ZzHyyZqjC0203b+J+BlHZRYQfEs4kUmSFC0iAToexIiIwquuuvuAC4EDosEKA +A1GqtH6qRNdDYfOiaxaJSaSjpCuKAsR49GiKweR6NrFvG5Ybd0mN1MkGco/PU+PcF4UgStyYJ9OR +JitHHmkHr96i5OTUawuzXnzUJIBHKWk7buis/UDr2O1xcSvy6Fgd60GXIsUf1DnQJ4+H4xj04KlG +DfV0OoIu0G4skaMxXDtG6nsEEFZegB31pWXogvziB4xiRfUg3kZwhqG8k9MedKZssCz3AwyIDMvU +clOGvGBG85hqwvG/Q/lwIHfKN0F5VVJjjVsSn8VoxIidrPIwq7ejMZdnrY8XD2zHc+0klGvIg5rQ +mjdJBKuxFshsSUktq6HQjJLyQUp5ISXbY9e2nKd+Qmn7OmMCAwEAAaNjMGEwDwYDVR0TAQH/BAUw +AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFNwuH9FhN3nkq9XVsxJxaD1qaJwiMB8GA1Ud +IwQYMBaAFNwuH9FhN3nkq9XVsxJxaD1qaJwiMA0GCSqGSIb3DQEBCwUAA4ICAQCR8EICaEDuw2jA +VC/f7GLDw56KoDEoqoOOpFaWEhCGVrqXctJUMHytGdUdaG/7FELYjQ7ztdGl4wJCXtzoRlgHNQIw +4Lx0SsFDKv/bGtCwr2zD/cuz9X9tAy5ZVp0tLTWMstZDFyySCstd6IwPS3BD0IL/qMy/pJTAvoe9 +iuOTe8aPmxadJ2W8esVCgmxcB9CpwYhgROmYhRZf+I/KARDOJcP5YBugxZfD0yyIMaK9MOzQ0MAS +8cE54+X1+NZK3TTN+2/BT+MAi1bikvcoskJ3ciNnxz8RFbLEAwW+uxF7Cr+obuf/WEPPm2eggAe2 +HcqtbepBEX4tdJP7wry+UUTF72glJ4DjyKDUEuzZpTcdN3y0kcra1LGWge9oXHYQSa9+pTeAsRxS +vTOBTI/53WXZFM2KJVj04sWDpQmQ1GwUY7VA3+vA/MRYfg0UFodUJ25W5HCEuGwyEn6CMUO+1918 +oa2u1qsgEu8KwxCMSZY13At1XrFP1U80DhEgB3VDRemjEdqso5nCtnkn4rnvyOL2NSl6dPrFf4IF +YqYK6miyeUcGbvJXqBUzxvd4Sj1Ce2t+/vdG6tHrju+IaFvowdlxfv1k7/9nR4hYJS8+hge9+6jl +gqispdNpQ80xiEmEU5LAsTkbOYMBMMTyqfrQA71yN2BWHzZ8vTmR9W0Nv3vXkg== +-----END CERTIFICATE----- + +ANF Secure Server Root CA +========================= +-----BEGIN CERTIFICATE----- +MIIF7zCCA9egAwIBAgIIDdPjvGz5a7EwDQYJKoZIhvcNAQELBQAwgYQxEjAQBgNVBAUTCUc2MzI4 +NzUxMDELMAkGA1UEBhMCRVMxJzAlBgNVBAoTHkFORiBBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lv +bjEUMBIGA1UECxMLQU5GIENBIFJhaXoxIjAgBgNVBAMTGUFORiBTZWN1cmUgU2VydmVyIFJvb3Qg +Q0EwHhcNMTkwOTA0MTAwMDM4WhcNMzkwODMwMTAwMDM4WjCBhDESMBAGA1UEBRMJRzYzMjg3NTEw +MQswCQYDVQQGEwJFUzEnMCUGA1UEChMeQU5GIEF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uMRQw +EgYDVQQLEwtBTkYgQ0EgUmFpejEiMCAGA1UEAxMZQU5GIFNlY3VyZSBTZXJ2ZXIgUm9vdCBDQTCC +AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANvrayvmZFSVgpCjcqQZAZ2cC4Ffc0m6p6zz +BE57lgvsEeBbphzOG9INgxwruJ4dfkUyYA8H6XdYfp9qyGFOtibBTI3/TO80sh9l2Ll49a2pcbnv +T1gdpd50IJeh7WhM3pIXS7yr/2WanvtH2Vdy8wmhrnZEE26cLUQ5vPnHO6RYPUG9tMJJo8gN0pcv +B2VSAKduyK9o7PQUlrZXH1bDOZ8rbeTzPvY1ZNoMHKGESy9LS+IsJJ1tk0DrtSOOMspvRdOoiXse +zx76W0OLzc2oD2rKDF65nkeP8Nm2CgtYZRczuSPkdxl9y0oukntPLxB3sY0vaJxizOBQ+OyRp1RM +VwnVdmPF6GUe7m1qzwmd+nxPrWAI/VaZDxUse6mAq4xhj0oHdkLePfTdsiQzW7i1o0TJrH93PB0j +7IKppuLIBkwC/qxcmZkLLxCKpvR/1Yd0DVlJRfbwcVw5Kda/SiOL9V8BY9KHcyi1Swr1+KuCLH5z +JTIdC2MKF4EA/7Z2Xue0sUDKIbvVgFHlSFJnLNJhiQcND85Cd8BEc5xEUKDbEAotlRyBr+Qc5RQe +8TZBAQIvfXOn3kLMTOmJDVb3n5HUA8ZsyY/b2BzgQJhdZpmYgG4t/wHFzstGH6wCxkPmrqKEPMVO +Hj1tyRRM4y5Bu8o5vzY8KhmqQYdOpc5LMnndkEl/AgMBAAGjYzBhMB8GA1UdIwQYMBaAFJxf0Gxj +o1+TypOYCK2Mh6UsXME3MB0GA1UdDgQWBBScX9BsY6Nfk8qTmAitjIelLFzBNzAOBgNVHQ8BAf8E +BAMCAYYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEATh65isagmD9uw2nAalxJ +UqzLK114OMHVVISfk/CHGT0sZonrDUL8zPB1hT+L9IBdeeUXZ701guLyPI59WzbLWoAAKfLOKyzx +j6ptBZNscsdW699QIyjlRRA96Gejrw5VD5AJYu9LWaL2U/HANeQvwSS9eS9OICI7/RogsKQOLHDt +dD+4E5UGUcjohybKpFtqFiGS3XNgnhAY3jyB6ugYw3yJ8otQPr0R4hUDqDZ9MwFsSBXXiJCZBMXM +5gf0vPSQ7RPi6ovDj6MzD8EpTBNO2hVWcXNyglD2mjN8orGoGjR0ZVzO0eurU+AagNjqOknkJjCb +5RyKqKkVMoaZkgoQI1YS4PbOTOK7vtuNknMBZi9iPrJyJ0U27U1W45eZ/zo1PqVUSlJZS2Db7v54 +EX9K3BR5YLZrZAPbFYPhor72I5dQ8AkzNqdxliXzuUJ92zg/LFis6ELhDtjTO0wugumDLmsx2d1H +hk9tl5EuT+IocTUW0fJz/iUrB0ckYyfI+PbZa/wSMVYIwFNCr5zQM378BvAxRAMU8Vjq8moNqRGy +g77FGr8H6lnco4g175x2MjxNBiLOFeXdntiP2t7SxDnlF4HPOEfrf4htWRvfn0IUrn7PqLBmZdo3 +r5+qPeoott7VMVgWglvquxl1AnMaykgaIZOQCo6ThKd9OyMYkomgjaw= +-----END CERTIFICATE----- + +Certum EC-384 CA +================ +-----BEGIN CERTIFICATE----- +MIICZTCCAeugAwIBAgIQeI8nXIESUiClBNAt3bpz9DAKBggqhkjOPQQDAzB0MQswCQYDVQQGEwJQ +TDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2Vy +dGlmaWNhdGlvbiBBdXRob3JpdHkxGTAXBgNVBAMTEENlcnR1bSBFQy0zODQgQ0EwHhcNMTgwMzI2 +MDcyNDU0WhcNNDMwMzI2MDcyNDU0WjB0MQswCQYDVQQGEwJQTDEhMB8GA1UEChMYQXNzZWNvIERh +dGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkx +GTAXBgNVBAMTEENlcnR1bSBFQy0zODQgQ0EwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAATEKI6rGFtq +vm5kN2PkzeyrOvfMobgOgknXhimfoZTy42B4mIF4Bk3y7JoOV2CDn7TmFy8as10CW4kjPMIRBSqn +iBMY81CE1700LCeJVf/OTOffph8oxPBUw7l8t1Ot68KjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD +VR0OBBYEFI0GZnQkdjrzife81r1HfS+8EF9LMA4GA1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNo +ADBlAjADVS2m5hjEfO/JUG7BJw+ch69u1RsIGL2SKcHvlJF40jocVYli5RsJHrpka/F2tNQCMQC0 +QoSZ/6vnnvuRlydd3LBbMHHOXjgaatkl5+r3YZJW+OraNsKHZZYuciUvf9/DE8k= +-----END CERTIFICATE----- + +Certum Trusted Root CA +====================== +-----BEGIN CERTIFICATE----- +MIIFwDCCA6igAwIBAgIQHr9ZULjJgDdMBvfrVU+17TANBgkqhkiG9w0BAQ0FADB6MQswCQYDVQQG +EwJQTDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0g +Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkxHzAdBgNVBAMTFkNlcnR1bSBUcnVzdGVkIFJvb3QgQ0Ew +HhcNMTgwMzE2MTIxMDEzWhcNNDMwMzE2MTIxMDEzWjB6MQswCQYDVQQGEwJQTDEhMB8GA1UEChMY +QXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkxHzAdBgNVBAMTFkNlcnR1bSBUcnVzdGVkIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEB +AQUAA4ICDwAwggIKAoICAQDRLY67tzbqbTeRn06TpwXkKQMlzhyC93yZn0EGze2jusDbCSzBfN8p +fktlL5On1AFrAygYo9idBcEq2EXxkd7fO9CAAozPOA/qp1x4EaTByIVcJdPTsuclzxFUl6s1wB52 +HO8AU5853BSlLCIls3Jy/I2z5T4IHhQqNwuIPMqw9MjCoa68wb4pZ1Xi/K1ZXP69VyywkI3C7Te2 +fJmItdUDmj0VDT06qKhF8JVOJVkdzZhpu9PMMsmN74H+rX2Ju7pgE8pllWeg8xn2A1bUatMn4qGt +g/BKEiJ3HAVz4hlxQsDsdUaakFjgao4rpUYwBI4Zshfjvqm6f1bxJAPXsiEodg42MEx51UGamqi4 +NboMOvJEGyCI98Ul1z3G4z5D3Yf+xOr1Uz5MZf87Sst4WmsXXw3Hw09Omiqi7VdNIuJGmj8PkTQk +fVXjjJU30xrwCSss0smNtA0Aq2cpKNgB9RkEth2+dv5yXMSFytKAQd8FqKPVhJBPC/PgP5sZ0jeJ +P/J7UhyM9uH3PAeXjA6iWYEMspA90+NZRu0PqafegGtaqge2Gcu8V/OXIXoMsSt0Puvap2ctTMSY +njYJdmZm/Bo/6khUHL4wvYBQv3y1zgD2DGHZ5yQD4OMBgQ692IU0iL2yNqh7XAjlRICMb/gv1SHK +HRzQ+8S1h9E6Tsd2tTVItQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSM+xx1 +vALTn04uSNn5YFSqxLNP+jAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQENBQADggIBAEii1QAL +LtA/vBzVtVRJHlpr9OTy4EA34MwUe7nJ+jW1dReTagVphZzNTxl4WxmB82M+w85bj/UvXgF2Ez8s +ALnNllI5SW0ETsXpD4YN4fqzX4IS8TrOZgYkNCvozMrnadyHncI013nR03e4qllY/p0m+jiGPp2K +h2RX5Rc64vmNueMzeMGQ2Ljdt4NR5MTMI9UGfOZR0800McD2RrsLrfw9EAUqO0qRJe6M1ISHgCq8 +CYyqOhNf6DR5UMEQGfnTKB7U0VEwKbOukGfWHwpjscWpxkIxYxeU72nLL/qMFH3EQxiJ2fAyQOaA +4kZf5ePBAFmo+eggvIksDkc0C+pXwlM2/KfUrzHN/gLldfq5Jwn58/U7yn2fqSLLiMmq0Uc9Nneo +WWRrJ8/vJ8HjJLWG965+Mk2weWjROeiQWMODvA8s1pfrzgzhIMfatz7DP78v3DSk+yshzWePS/Tj +6tQ/50+6uaWTRRxmHyH6ZF5v4HaUMst19W7l9o/HuKTMqJZ9ZPskWkoDbGs4xugDQ5r3V7mzKWmT +OPQD8rv7gmsHINFSH5pkAnuYZttcTVoP0ISVoDwUQwbKytu4QTbaakRnh6+v40URFWkIsr4WOZck +bxJF0WddCajJFdr60qZfE2Efv4WstK2tBZQIgx51F9NxO5NQI1mg7TyRVJ12AMXDuDjb +-----END CERTIFICATE----- + +TunTrust Root CA +================ +-----BEGIN CERTIFICATE----- +MIIFszCCA5ugAwIBAgIUEwLV4kBMkkaGFmddtLu7sms+/BMwDQYJKoZIhvcNAQELBQAwYTELMAkG +A1UEBhMCVE4xNzA1BgNVBAoMLkFnZW5jZSBOYXRpb25hbGUgZGUgQ2VydGlmaWNhdGlvbiBFbGVj +dHJvbmlxdWUxGTAXBgNVBAMMEFR1blRydXN0IFJvb3QgQ0EwHhcNMTkwNDI2MDg1NzU2WhcNNDQw +NDI2MDg1NzU2WjBhMQswCQYDVQQGEwJUTjE3MDUGA1UECgwuQWdlbmNlIE5hdGlvbmFsZSBkZSBD +ZXJ0aWZpY2F0aW9uIEVsZWN0cm9uaXF1ZTEZMBcGA1UEAwwQVHVuVHJ1c3QgUm9vdCBDQTCCAiIw +DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMPN0/y9BFPdDCA61YguBUtB9YOCfvdZn56eY+hz +2vYGqU8ftPkLHzmMmiDQfgbU7DTZhrx1W4eI8NLZ1KMKsmwb60ksPqxd2JQDoOw05TDENX37Jk0b +bjBU2PWARZw5rZzJJQRNmpA+TkBuimvNKWfGzC3gdOgFVwpIUPp6Q9p+7FuaDmJ2/uqdHYVy7BG7 +NegfJ7/Boce7SBbdVtfMTqDhuazb1YMZGoXRlJfXyqNlC/M4+QKu3fZnz8k/9YosRxqZbwUN/dAd +gjH8KcwAWJeRTIAAHDOFli/LQcKLEITDCSSJH7UP2dl3RxiSlGBcx5kDPP73lad9UKGAwqmDrViW +VSHbhlnUr8a83YFuB9tgYv7sEG7aaAH0gxupPqJbI9dkxt/con3YS7qC0lH4Zr8GRuR5KiY2eY8f +Tpkdso8MDhz/yV3A/ZAQprE38806JG60hZC/gLkMjNWb1sjxVj8agIl6qeIbMlEsPvLfe/ZdeikZ +juXIvTZxi11Mwh0/rViizz1wTaZQmCXcI/m4WEEIcb9PuISgjwBUFfyRbVinljvrS5YnzWuioYas +DXxU5mZMZl+QviGaAkYt5IPCgLnPSz7ofzwB7I9ezX/SKEIBlYrilz0QIX32nRzFNKHsLA4KUiwS +VXAkPcvCFDVDXSdOvsC9qnyW5/yeYa1E0wCXAgMBAAGjYzBhMB0GA1UdDgQWBBQGmpsfU33x9aTI +04Y+oXNZtPdEITAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFAaamx9TffH1pMjThj6hc1m0 +90QhMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAqgVutt0Vyb+zxiD2BkewhpMl +0425yAA/l/VSJ4hxyXT968pk21vvHl26v9Hr7lxpuhbI87mP0zYuQEkHDVneixCwSQXi/5E/S7fd +Ao74gShczNxtr18UnH1YeA32gAm56Q6XKRm4t+v4FstVEuTGfbvE7Pi1HE4+Z7/FXxttbUcoqgRY +YdZ2vyJ/0Adqp2RT8JeNnYA/u8EH22Wv5psymsNUk8QcCMNE+3tjEUPRahphanltkE8pjkcFwRJp +adbGNjHh/PqAulxPxOu3Mqz4dWEX1xAZufHSCe96Qp1bWgvUxpVOKs7/B9dPfhgGiPEZtdmYu65x +xBzndFlY7wyJz4sfdZMaBBSSSFCp61cpABbjNhzI+L/wM9VBD8TMPN3pM0MBkRArHtG5Xc0yGYuP +jCB31yLEQtyEFpslbei0VXF/sHyz03FJuc9SpAQ/3D2gu68zngowYI7bnV2UqL1g52KAdoGDDIzM +MEZJ4gzSqK/rYXHv5yJiqfdcZGyfFoxnNidF9Ql7v/YQCvGwjVRDjAS6oz/v4jXH+XTgbzRB0L9z +ZVcg+ZtnemZoJE6AZb0QmQZZ8mWvuMZHu/2QeItBcy6vVR/cO5JyboTT0GFMDcx2V+IthSIVNg3r +AZ3r2OvEhJn7wAzMMujjd9qDRIueVSjAi1jTkD5OGwDxFa2DK5o= +-----END CERTIFICATE----- + +HARICA TLS RSA Root CA 2021 +=========================== +-----BEGIN CERTIFICATE----- +MIIFpDCCA4ygAwIBAgIQOcqTHO9D88aOk8f0ZIk4fjANBgkqhkiG9w0BAQsFADBsMQswCQYDVQQG +EwJHUjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u +cyBDQTEkMCIGA1UEAwwbSEFSSUNBIFRMUyBSU0EgUm9vdCBDQSAyMDIxMB4XDTIxMDIxOTEwNTUz +OFoXDTQ1MDIxMzEwNTUzN1owbDELMAkGA1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRl +bWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ0ExJDAiBgNVBAMMG0hBUklDQSBUTFMgUlNB +IFJvb3QgQ0EgMjAyMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAIvC569lmwVnlskN +JLnQDmT8zuIkGCyEf3dRywQRNrhe7Wlxp57kJQmXZ8FHws+RFjZiPTgE4VGC/6zStGndLuwRo0Xu +a2s7TL+MjaQenRG56Tj5eg4MmOIjHdFOY9TnuEFE+2uva9of08WRiFukiZLRgeaMOVig1mlDqa2Y +Ulhu2wr7a89o+uOkXjpFc5gH6l8Cct4MpbOfrqkdtx2z/IpZ525yZa31MJQjB/OCFks1mJxTuy/K +5FrZx40d/JiZ+yykgmvwKh+OC19xXFyuQnspiYHLA6OZyoieC0AJQTPb5lh6/a6ZcMBaD9YThnEv +dmn8kN3bLW7R8pv1GmuebxWMevBLKKAiOIAkbDakO/IwkfN4E8/BPzWr8R0RI7VDIp4BkrcYAuUR +0YLbFQDMYTfBKnya4dC6s1BG7oKsnTH4+yPiAwBIcKMJJnkVU2DzOFytOOqBAGMUuTNe3QvboEUH +GjMJ+E20pwKmafTCWQWIZYVWrkvL4N48fS0ayOn7H6NhStYqE613TBoYm5EPWNgGVMWX+Ko/IIqm +haZ39qb8HOLubpQzKoNQhArlT4b4UEV4AIHrW2jjJo3Me1xR9BQsQL4aYB16cmEdH2MtiKrOokWQ +CPxrvrNQKlr9qEgYRtaQQJKQCoReaDH46+0N0x3GfZkYVVYnZS6NRcUk7M7jAgMBAAGjQjBAMA8G +A1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFApII6ZgpJIKM+qTW8VX6iVNvRLuMA4GA1UdDwEB/wQE +AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAPpBIqm5iFSVmewzVjIuJndftTgfvnNAUX15QvWiWkKQU +EapobQk1OUAJ2vQJLDSle1mESSmXdMgHHkdt8s4cUCbjnj1AUz/3f5Z2EMVGpdAgS1D0NTsY9FVq +QRtHBmg8uwkIYtlfVUKqrFOFrJVWNlar5AWMxajaH6NpvVMPxP/cyuN+8kyIhkdGGvMA9YCRotxD +QpSbIPDRzbLrLFPCU3hKTwSUQZqPJzLB5UkZv/HywouoCjkxKLR9YjYsTewfM7Z+d21+UPCfDtcR +j88YxeMn/ibvBZ3PzzfF0HvaO7AWhAw6k9a+F9sPPg4ZeAnHqQJyIkv3N3a6dcSFA1pj1bF1BcK5 +vZStjBWZp5N99sXzqnTPBIWUmAD04vnKJGW/4GKvyMX6ssmeVkjaef2WdhW+o45WxLM0/L5H9MG0 +qPzVMIho7suuyWPEdr6sOBjhXlzPrjoiUevRi7PzKzMHVIf6tLITe7pTBGIBnfHAT+7hOtSLIBD6 +Alfm78ELt5BGnBkpjNxvoEppaZS3JGWg/6w/zgH7IS79aPib8qXPMThcFarmlwDB31qlpzmq6YR/ +PFGoOtmUW4y/Twhx5duoXNTSpv4Ao8YWxw/ogM4cKGR0GQjTQuPOAF1/sdwTsOEFy9EgqoZ0njnn +kf3/W9b3raYvAwtt41dU63ZTGI0RmLo= +-----END CERTIFICATE----- + +HARICA TLS ECC Root CA 2021 +=========================== +-----BEGIN CERTIFICATE----- +MIICVDCCAdugAwIBAgIQZ3SdjXfYO2rbIvT/WeK/zjAKBggqhkjOPQQDAzBsMQswCQYDVQQGEwJH +UjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9ucyBD +QTEkMCIGA1UEAwwbSEFSSUNBIFRMUyBFQ0MgUm9vdCBDQSAyMDIxMB4XDTIxMDIxOTExMDExMFoX +DTQ1MDIxMzExMDEwOVowbDELMAkGA1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRlbWlj +IGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ0ExJDAiBgNVBAMMG0hBUklDQSBUTFMgRUNDIFJv +b3QgQ0EgMjAyMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABDgI/rGgltJ6rK9JOtDA4MM7KKrxcm1l +AEeIhPyaJmuqS7psBAqIXhfyVYf8MLA04jRYVxqEU+kw2anylnTDUR9YSTHMmE5gEYd103KUkE+b +ECUqqHgtvpBBWJAVcqeht6NCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUyRtTgRL+BNUW +0aq8mm+3oJUZbsowDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2cAMGQCMBHervjcToiwqfAi +rcJRQO9gcS3ujwLEXQNwSaSS6sUUiHCm0w2wqsosQJz76YJumgIwK0eaB8bRwoF8yguWGEEbo/Qw +CZ61IygNnxS2PFOiTAZpffpskcYqSUXm7LcT4Tps +-----END CERTIFICATE----- + +Autoridad de Certificacion Firmaprofesional CIF A62634068 +========================================================= +-----BEGIN CERTIFICATE----- +MIIGFDCCA/ygAwIBAgIIG3Dp0v+ubHEwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UEBhMCRVMxQjBA +BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2 +MjYzNDA2ODAeFw0xNDA5MjMxNTIyMDdaFw0zNjA1MDUxNTIyMDdaMFExCzAJBgNVBAYTAkVTMUIw +QAYDVQQDDDlBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBB +NjI2MzQwNjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDD +Utd9thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQMcas9UX4P +B99jBVzpv5RvwSmCwLTaUbDBPLutN0pcyvFLNg4kq7/DhHf9qFD0sefGL9ItWY16Ck6WaVICqjaY +7Pz6FIMMNx/Jkjd/14Et5cS54D40/mf0PmbR0/RAz15iNA9wBj4gGFrO93IbJWyTdBSTo3OxDqqH +ECNZXyAFGUftaI6SEspd/NYrspI8IM/hX68gvqB2f3bl7BqGYTM+53u0P6APjqK5am+5hyZvQWyI +plD9amML9ZMWGxmPsu2bm8mQ9QEM3xk9Dz44I8kvjwzRAv4bVdZO0I08r0+k8/6vKtMFnXkIoctX +MbScyJCyZ/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirjaEbsX +LZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/TKI8xWVvTyQKmtFLK +bpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF6NkBiDkal4ZkQdU7hwxu+g/GvUgU +vzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVhOSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMB0GA1Ud +DgQWBBRlzeurNR4APn7VdMActHNHDhpkLzASBgNVHRMBAf8ECDAGAQH/AgEBMIGmBgNVHSAEgZ4w +gZswgZgGBFUdIAAwgY8wLwYIKwYBBQUHAgEWI2h0dHA6Ly93d3cuZmlybWFwcm9mZXNpb25hbC5j +b20vY3BzMFwGCCsGAQUFBwICMFAeTgBQAGEAcwBlAG8AIABkAGUAIABsAGEAIABCAG8AbgBhAG4A +bwB2AGEAIAA0ADcAIABCAGEAcgBjAGUAbABvAG4AYQAgADAAOAAwADEANzAOBgNVHQ8BAf8EBAMC +AQYwDQYJKoZIhvcNAQELBQADggIBAHSHKAIrdx9miWTtj3QuRhy7qPj4Cx2Dtjqn6EWKB7fgPiDL +4QjbEwj4KKE1soCzC1HA01aajTNFSa9J8OA9B3pFE1r/yJfY0xgsfZb43aJlQ3CTkBW6kN/oGbDb +LIpgD7dvlAceHabJhfa9NPhAeGIQcDq+fUs5gakQ1JZBu/hfHAsdCPKxsIl68veg4MSPi3i1O1il +I45PVf42O+AMt8oqMEEgtIDNrvx2ZnOorm7hfNoD6JQg5iKj0B+QXSBTFCZX2lSX3xZEEAEeiGaP +cjiT3SC3NL7X8e5jjkd5KAb881lFJWAiMxujX6i6KtoaPc1A6ozuBRWV1aUsIC+nmCjuRfzxuIgA +LI9C2lHVnOUTaHFFQ4ueCyE8S1wF3BqfmI7avSKecs2tCsvMo2ebKHTEm9caPARYpoKdrcd7b/+A +lun4jWq9GJAd/0kakFI3ky88Al2CdgtR5xbHV/g4+afNmyJU72OwFW1TZQNKXkqgsqeOSQBZONXH +9IBk9W6VULgRfhVwOEqwf9DEMnDAGf/JOC0ULGb0QkTmVXYbgBVX/8Cnp6o5qtjTcNAuuuuUavpf +NIbnYrX9ivAwhZTJryQCL2/W3Wf+47BVTwSYT6RBVuKT0Gro1vP7ZeDOdcQxWQzugsgMYDNKGbqE +ZycPvEJdvSRUDewdcAZfpLz6IHxV +-----END CERTIFICATE----- + +vTrus ECC Root CA +================= +-----BEGIN CERTIFICATE----- +MIICDzCCAZWgAwIBAgIUbmq8WapTvpg5Z6LSa6Q75m0c1towCgYIKoZIzj0EAwMwRzELMAkGA1UE +BhMCQ04xHDAaBgNVBAoTE2lUcnVzQ2hpbmEgQ28uLEx0ZC4xGjAYBgNVBAMTEXZUcnVzIEVDQyBS +b290IENBMB4XDTE4MDczMTA3MjY0NFoXDTQzMDczMTA3MjY0NFowRzELMAkGA1UEBhMCQ04xHDAa +BgNVBAoTE2lUcnVzQ2hpbmEgQ28uLEx0ZC4xGjAYBgNVBAMTEXZUcnVzIEVDQyBSb290IENBMHYw +EAYHKoZIzj0CAQYFK4EEACIDYgAEZVBKrox5lkqqHAjDo6LN/llWQXf9JpRCux3NCNtzslt188+c +ToL0v/hhJoVs1oVbcnDS/dtitN9Ti72xRFhiQgnH+n9bEOf+QP3A2MMrMudwpremIFUde4BdS49n +TPEQo0IwQDAdBgNVHQ4EFgQUmDnNvtiyjPeyq+GtJK97fKHbH88wDwYDVR0TAQH/BAUwAwEB/zAO +BgNVHQ8BAf8EBAMCAQYwCgYIKoZIzj0EAwMDaAAwZQIwV53dVvHH4+m4SVBrm2nDb+zDfSXkV5UT +QJtS0zvzQBm8JsctBp61ezaf9SXUY2sAAjEA6dPGnlaaKsyh2j/IZivTWJwghfqrkYpwcBE4YGQL +YgmRWAD5Tfs0aNoJrSEGGJTO +-----END CERTIFICATE----- + +vTrus Root CA +============= +-----BEGIN CERTIFICATE----- +MIIFVjCCAz6gAwIBAgIUQ+NxE9izWRRdt86M/TX9b7wFjUUwDQYJKoZIhvcNAQELBQAwQzELMAkG +A1UEBhMCQ04xHDAaBgNVBAoTE2lUcnVzQ2hpbmEgQ28uLEx0ZC4xFjAUBgNVBAMTDXZUcnVzIFJv +b3QgQ0EwHhcNMTgwNzMxMDcyNDA1WhcNNDMwNzMxMDcyNDA1WjBDMQswCQYDVQQGEwJDTjEcMBoG +A1UEChMTaVRydXNDaGluYSBDby4sTHRkLjEWMBQGA1UEAxMNdlRydXMgUm9vdCBDQTCCAiIwDQYJ +KoZIhvcNAQEBBQADggIPADCCAgoCggIBAL1VfGHTuB0EYgWgrmy3cLRB6ksDXhA/kFocizuwZots +SKYcIrrVQJLuM7IjWcmOvFjai57QGfIvWcaMY1q6n6MLsLOaXLoRuBLpDLvPbmyAhykUAyyNJJrI +ZIO1aqwTLDPxn9wsYTwaP3BVm60AUn/PBLn+NvqcwBauYv6WTEN+VRS+GrPSbcKvdmaVayqwlHeF +XgQPYh1jdfdr58tbmnDsPmcF8P4HCIDPKNsFxhQnL4Z98Cfe/+Z+M0jnCx5Y0ScrUw5XSmXX+6KA +YPxMvDVTAWqXcoKv8R1w6Jz1717CbMdHflqUhSZNO7rrTOiwCcJlwp2dCZtOtZcFrPUGoPc2BX70 +kLJrxLT5ZOrpGgrIDajtJ8nU57O5q4IikCc9Kuh8kO+8T/3iCiSn3mUkpF3qwHYw03dQ+A0Em5Q2 +AXPKBlim0zvc+gRGE1WKyURHuFE5Gi7oNOJ5y1lKCn+8pu8fA2dqWSslYpPZUxlmPCdiKYZNpGvu +/9ROutW04o5IWgAZCfEF2c6Rsffr6TlP9m8EQ5pV9T4FFL2/s1m02I4zhKOQUqqzApVg+QxMaPnu +1RcN+HFXtSXkKe5lXa/R7jwXC1pDxaWG6iSe4gUH3DRCEpHWOXSuTEGC2/KmSNGzm/MzqvOmwMVO +9fSddmPmAsYiS8GVP1BkLFTltvA8Kc9XAgMBAAGjQjBAMB0GA1UdDgQWBBRUYnBj8XWEQ1iO0RYg +scasGrz2iTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOC +AgEAKbqSSaet8PFww+SX8J+pJdVrnjT+5hpk9jprUrIQeBqfTNqK2uwcN1LgQkv7bHbKJAs5EhWd +nxEt/Hlk3ODg9d3gV8mlsnZwUKT+twpw1aA08XXXTUm6EdGz2OyC/+sOxL9kLX1jbhd47F18iMjr +jld22VkE+rxSH0Ws8HqA7Oxvdq6R2xCOBNyS36D25q5J08FsEhvMKar5CKXiNxTKsbhm7xqC5PD4 +8acWabfbqWE8n/Uxy+QARsIvdLGx14HuqCaVvIivTDUHKgLKeBRtRytAVunLKmChZwOgzoy8sHJn +xDHO2zTlJQNgJXtxmOTAGytfdELSS8VZCAeHvsXDf+eW2eHcKJfWjwXj9ZtOyh1QRwVTsMo554Wg +icEFOwE30z9J4nfrI8iIZjs9OXYhRvHsXyO466JmdXTBQPfYaJqT4i2pLr0cox7IdMakLXogqzu4 +sEb9b91fUlV1YvCXoHzXOP0l382gmxDPi7g4Xl7FtKYCNqEeXxzP4padKar9mK5S4fNBUvupLnKW +nyfjqnN9+BojZns7q2WwMgFLFT49ok8MKzWixtlnEjUwzXYuFrOZnk1PTi07NEPhmg4NpGaXutIc +SkwsKouLgU9xGqndXHt7CMUADTdA43x7VF8vhV929vensBxXVsFy6K2ir40zSbofitzmdHxghm+H +l3s= +-----END CERTIFICATE----- + +ISRG Root X2 +============ +-----BEGIN CERTIFICATE----- +MIICGzCCAaGgAwIBAgIQQdKd0XLq7qeAwSxs6S+HUjAKBggqhkjOPQQDAzBPMQswCQYDVQQGEwJV +UzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElT +UkcgUm9vdCBYMjAeFw0yMDA5MDQwMDAwMDBaFw00MDA5MTcxNjAwMDBaME8xCzAJBgNVBAYTAlVT +MSkwJwYDVQQKEyBJbnRlcm5ldCBTZWN1cml0eSBSZXNlYXJjaCBHcm91cDEVMBMGA1UEAxMMSVNS +RyBSb290IFgyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEzZvVn4CDCuwJSvMWSj5cz3es3mcFDR0H +ttwW+1qLFNvicWDEukWVEYmO6gbf9yoWHKS5xcUy4APgHoIYOIvXRdgKam7mAHf7AlF9ItgKbppb +d9/w+kHsOdx1ymgHDB/qo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNV +HQ4EFgQUfEKWrt5LSDv6kviejM9ti6lyN5UwCgYIKoZIzj0EAwMDaAAwZQIwe3lORlCEwkSHRhtF +cP9Ymd70/aTSVaYgLXTWNLxBo1BfASdWtL4ndQavEi51mI38AjEAi/V3bNTIZargCyzuFJ0nN6T5 +U6VR5CmD1/iQMVtCnwr1/q4AaOeMSQ+2b1tbFfLn +-----END CERTIFICATE----- + +HiPKI Root CA - G1 +================== +-----BEGIN CERTIFICATE----- +MIIFajCCA1KgAwIBAgIQLd2szmKXlKFD6LDNdmpeYDANBgkqhkiG9w0BAQsFADBPMQswCQYDVQQG +EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xGzAZBgNVBAMMEkhpUEtJ +IFJvb3QgQ0EgLSBHMTAeFw0xOTAyMjIwOTQ2MDRaFw0zNzEyMzExNTU5NTlaME8xCzAJBgNVBAYT +AlRXMSMwIQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEbMBkGA1UEAwwSSGlQS0kg +Um9vdCBDQSAtIEcxMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA9B5/UnMyDHPkvRN0 +o9QwqNCuS9i233VHZvR85zkEHmpwINJaR3JnVfSl6J3VHiGh8Ge6zCFovkRTv4354twvVcg3Px+k +wJyz5HdcoEb+d/oaoDjq7Zpy3iu9lFc6uux55199QmQ5eiY29yTw1S+6lZgRZq2XNdZ1AYDgr/SE +YYwNHl98h5ZeQa/rh+r4XfEuiAU+TCK72h8q3VJGZDnzQs7ZngyzsHeXZJzA9KMuH5UHsBffMNsA +GJZMoYFL3QRtU6M9/Aes1MU3guvklQgZKILSQjqj2FPseYlgSGDIcpJQ3AOPgz+yQlda22rpEZfd +hSi8MEyr48KxRURHH+CKFgeW0iEPU8DtqX7UTuybCeyvQqww1r/REEXgphaypcXTT3OUM3ECoWqj +1jOXTyFjHluP2cFeRXF3D4FdXyGarYPM+l7WjSNfGz1BryB1ZlpK9p/7qxj3ccC2HTHsOyDry+K4 +9a6SsvfhhEvyovKTmiKe0xRvNlS9H15ZFblzqMF8b3ti6RZsR1pl8w4Rm0bZ/W3c1pzAtH2lsN0/ +Vm+h+fbkEkj9Bn8SV7apI09bA8PgcSojt/ewsTu8mL3WmKgMa/aOEmem8rJY5AIJEzypuxC00jBF +8ez3ABHfZfjcK0NVvxaXxA/VLGGEqnKG/uY6fsI/fe78LxQ+5oXdUG+3Se0CAwEAAaNCMEAwDwYD +VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU8ncX+l6o/vY9cdVouslGDDjYr7AwDgYDVR0PAQH/BAQD +AgGGMA0GCSqGSIb3DQEBCwUAA4ICAQBQUfB13HAE4/+qddRxosuej6ip0691x1TPOhwEmSKsxBHi +7zNKpiMdDg1H2DfHb680f0+BazVP6XKlMeJ45/dOlBhbQH3PayFUhuaVevvGyuqcSE5XCV0vrPSl +tJczWNWseanMX/mF+lLFjfiRFOs6DRfQUsJ748JzjkZ4Bjgs6FzaZsT0pPBWGTMpWmWSBUdGSquE +wx4noR8RkpkndZMPvDY7l1ePJlsMu5wP1G4wB9TcXzZoZjmDlicmisjEOf6aIW/Vcobpf2Lll07Q +JNBAsNB1CI69aO4I1258EHBGG3zgiLKecoaZAeO/n0kZtCW+VmWuF2PlHt/o/0elv+EmBYTksMCv +5wiZqAxeJoBF1PhoL5aPruJKHJwWDBNvOIf2u8g0X5IDUXlwpt/L9ZlNec1OvFefQ05rLisY+Gpz +jLrFNe85akEez3GoorKGB1s6yeHvP2UEgEcyRHCVTjFnanRbEEV16rCf0OY1/k6fi8wrkkVbbiVg +hUbN0aqwdmaTd5a+g744tiROJgvM7XpWGuDpWsZkrUx6AEhEL7lAuxM+vhV4nYWBSipX3tUZQ9rb +yltHhoMLP7YNdnhzeSJesYAfz77RP1YQmCuVh6EfnWQUYDksswBVLuT1sw5XxJFBAJw/6KXf6vb/ +yPCtbVKoF6ubYfwSUTXkJf2vqmqGOQ== +-----END CERTIFICATE----- + +GlobalSign ECC Root CA - R4 +=========================== +-----BEGIN CERTIFICATE----- +MIIB3DCCAYOgAwIBAgINAgPlfvU/k/2lCSGypjAKBggqhkjOPQQDAjBQMSQwIgYDVQQLExtHbG9i +YWxTaWduIEVDQyBSb290IENBIC0gUjQxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds +b2JhbFNpZ24wHhcNMTIxMTEzMDAwMDAwWhcNMzgwMTE5MDMxNDA3WjBQMSQwIgYDVQQLExtHbG9i +YWxTaWduIEVDQyBSb290IENBIC0gUjQxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds +b2JhbFNpZ24wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAS4xnnTj2wlDp8uORkcA6SumuU5BwkW +ymOxuYb4ilfBV85C+nOh92VC/x7BALJucw7/xyHlGKSq2XE/qNS5zowdo0IwQDAOBgNVHQ8BAf8E +BAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUVLB7rUW44kB/+wpu+74zyTyjhNUwCgYI +KoZIzj0EAwIDRwAwRAIgIk90crlgr/HmnKAWBVBfw147bmF0774BxL4YSFlhgjICICadVGNA3jdg +UM/I2O2dgq43mLyjj0xMqTQrbO/7lZsm +-----END CERTIFICATE----- + +GTS Root R1 +=========== +-----BEGIN CERTIFICATE----- +MIIFVzCCAz+gAwIBAgINAgPlk28xsBNJiGuiFzANBgkqhkiG9w0BAQwFADBHMQswCQYDVQQGEwJV +UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg +UjEwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE +ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjEwggIiMA0G +CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2EQKLHuOhd5s73L+UPreVp0A8of2C+X0yBoJx9vaM +f/vo27xqLpeXo4xL+Sv2sfnOhB2x+cWX3u+58qPpvBKJXqeqUqv4IyfLpLGcY9vXmX7wCl7raKb0 +xlpHDU0QM+NOsROjyBhsS+z8CZDfnWQpJSMHobTSPS5g4M/SCYe7zUjwTcLCeoiKu7rPWRnWr4+w +B7CeMfGCwcDfLqZtbBkOtdh+JhpFAz2weaSUKK0PfyblqAj+lug8aJRT7oM6iCsVlgmy4HqMLnXW +nOunVmSPlk9orj2XwoSPwLxAwAtcvfaHszVsrBhQf4TgTM2S0yDpM7xSma8ytSmzJSq0SPly4cpk +9+aCEI3oncKKiPo4Zor8Y/kB+Xj9e1x3+naH+uzfsQ55lVe0vSbv1gHR6xYKu44LtcXFilWr06zq +kUspzBmkMiVOKvFlRNACzqrOSbTqn3yDsEB750Orp2yjj32JgfpMpf/VjsPOS+C12LOORc92wO1A +K/1TD7Cn1TsNsYqiA94xrcx36m97PtbfkSIS5r762DL8EGMUUXLeXdYWk70paDPvOmbsB4om3xPX +V2V4J95eSRQAogB/mqghtqmxlbCluQ0WEdrHbEg8QOB+DVrNVjzRlwW5y0vtOUucxD/SVRNuJLDW +cfr0wbrM7Rv1/oFB2ACYPTrIrnqYNxgFlQIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0T +AQH/BAUwAwEB/zAdBgNVHQ4EFgQU5K8rJnEaK0gnhS9SZizv8IkTcT4wDQYJKoZIhvcNAQEMBQAD +ggIBAJ+qQibbC5u+/x6Wki4+omVKapi6Ist9wTrYggoGxval3sBOh2Z5ofmmWJyq+bXmYOfg6LEe +QkEzCzc9zolwFcq1JKjPa7XSQCGYzyI0zzvFIoTgxQ6KfF2I5DUkzps+GlQebtuyh6f88/qBVRRi +ClmpIgUxPoLW7ttXNLwzldMXG+gnoot7TiYaelpkttGsN/H9oPM47HLwEXWdyzRSjeZ2axfG34ar +J45JK3VmgRAhpuo+9K4l/3wV3s6MJT/KYnAK9y8JZgfIPxz88NtFMN9iiMG1D53Dn0reWVlHxYci +NuaCp+0KueIHoI17eko8cdLiA6EfMgfdG+RCzgwARWGAtQsgWSl4vflVy2PFPEz0tv/bal8xa5me +LMFrUKTX5hgUvYU/Z6tGn6D/Qqc6f1zLXbBwHSs09dR2CQzreExZBfMzQsNhFRAbd03OIozUhfJF +fbdT6u9AWpQKXCBfTkBdYiJ23//OYb2MI3jSNwLgjt7RETeJ9r/tSQdirpLsQBqvFAnZ0E6yove+ +7u7Y/9waLd64NnHi/Hm3lCXRSHNboTXns5lndcEZOitHTtNCjv0xyBZm2tIMPNuzjsmhDYAPexZ3 +FL//2wmUspO8IFgV6dtxQ/PeEMMA3KgqlbbC1j+Qa3bbbP6MvPJwNQzcmRk13NfIRmPVNnGuV/u3 +gm3c +-----END CERTIFICATE----- + +GTS Root R2 +=========== +-----BEGIN CERTIFICATE----- +MIIFVzCCAz+gAwIBAgINAgPlrsWNBCUaqxElqjANBgkqhkiG9w0BAQwFADBHMQswCQYDVQQGEwJV +UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg +UjIwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE +ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjIwggIiMA0G +CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDO3v2m++zsFDQ8BwZabFn3GTXd98GdVarTzTukk3Lv +CvptnfbwhYBboUhSnznFt+4orO/LdmgUud+tAWyZH8QiHZ/+cnfgLFuv5AS/T3KgGjSY6Dlo7JUl +e3ah5mm5hRm9iYz+re026nO8/4Piy33B0s5Ks40FnotJk9/BW9BuXvAuMC6C/Pq8tBcKSOWIm8Wb +a96wyrQD8Nr0kLhlZPdcTK3ofmZemde4wj7I0BOdre7kRXuJVfeKH2JShBKzwkCX44ofR5GmdFrS ++LFjKBC4swm4VndAoiaYecb+3yXuPuWgf9RhD1FLPD+M2uFwdNjCaKH5wQzpoeJ/u1U8dgbuak7M +kogwTZq9TwtImoS1mKPV+3PBV2HdKFZ1E66HjucMUQkQdYhMvI35ezzUIkgfKtzra7tEscszcTJG +r61K8YzodDqs5xoic4DSMPclQsciOzsSrZYuxsN2B6ogtzVJV+mSSeh2FnIxZyuWfoqjx5RWIr9q +S34BIbIjMt/kmkRtWVtd9QCgHJvGeJeNkP+byKq0rxFROV7Z+2et1VsRnTKaG73VululycslaVNV +J1zgyjbLiGH7HrfQy+4W+9OmTN6SpdTi3/UGVN4unUu0kzCqgc7dGtxRcw1PcOnlthYhGXmy5okL +dWTK1au8CcEYof/UVKGFPP0UJAOyh9OktwIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0T +AQH/BAUwAwEB/zAdBgNVHQ4EFgQUu//KjiOfT5nK2+JopqUVJxce2Q4wDQYJKoZIhvcNAQEMBQAD +ggIBAB/Kzt3HvqGf2SdMC9wXmBFqiN495nFWcrKeGk6c1SuYJF2ba3uwM4IJvd8lRuqYnrYb/oM8 +0mJhwQTtzuDFycgTE1XnqGOtjHsB/ncw4c5omwX4Eu55MaBBRTUoCnGkJE+M3DyCB19m3H0Q/gxh +swWV7uGugQ+o+MePTagjAiZrHYNSVc61LwDKgEDg4XSsYPWHgJ2uNmSRXbBoGOqKYcl3qJfEycel +/FVL8/B/uWU9J2jQzGv6U53hkRrJXRqWbTKH7QMgyALOWr7Z6v2yTcQvG99fevX4i8buMTolUVVn +jWQye+mew4K6Ki3pHrTgSAai/GevHyICc/sgCq+dVEuhzf9gR7A/Xe8bVr2XIZYtCtFenTgCR2y5 +9PYjJbigapordwj6xLEokCZYCDzifqrXPW+6MYgKBesntaFJ7qBFVHvmJ2WZICGoo7z7GJa7Um8M +7YNRTOlZ4iBgxcJlkoKM8xAfDoqXvneCbT+PHV28SSe9zE8P4c52hgQjxcCMElv924SgJPFI/2R8 +0L5cFtHvma3AH/vLrrw4IgYmZNralw4/KBVEqE8AyvCazM90arQ+POuV7LXTWtiBmelDGDfrs7vR +WGJB82bSj6p4lVQgw1oudCvV0b4YacCs1aTPObpRhANl6WLAYv7YTVWW4tAR+kg0Eeye7QUd5MjW +HYbL +-----END CERTIFICATE----- + +GTS Root R3 +=========== +-----BEGIN CERTIFICATE----- +MIICCTCCAY6gAwIBAgINAgPluILrIPglJ209ZjAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJVUzEi +MCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjMw +HhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZ +R29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjMwdjAQBgcqhkjO +PQIBBgUrgQQAIgNiAAQfTzOHMymKoYTey8chWEGJ6ladK0uFxh1MJ7x/JlFyb+Kf1qPKzEUURout +736GjOyxfi//qXGdGIRFBEFVbivqJn+7kAHjSxm65FSWRQmx1WyRRK2EE46ajA2ADDL24CejQjBA +MA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTB8Sa6oC2uhYHP0/Eq +Er24Cmf9vDAKBggqhkjOPQQDAwNpADBmAjEA9uEglRR7VKOQFhG/hMjqb2sXnh5GmCCbn9MN2azT +L818+FsuVbu/3ZL3pAzcMeGiAjEA/JdmZuVDFhOD3cffL74UOO0BzrEXGhF16b0DjyZ+hOXJYKaV +11RZt+cRLInUue4X +-----END CERTIFICATE----- + +GTS Root R4 +=========== +-----BEGIN CERTIFICATE----- +MIICCTCCAY6gAwIBAgINAgPlwGjvYxqccpBQUjAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJVUzEi +MCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQw +HhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZ +R29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcqhkjO +PQIBBgUrgQQAIgNiAATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa6zzu +hXyiQHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvRHYqjQjBA +MA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSATNbrdP9JNqPV2Py1 +PsVq8JQdjDAKBggqhkjOPQQDAwNpADBmAjEA6ED/g94D9J+uHXqnLrmvT/aDHQ4thQEd0dlq7A/C +r8deVl5c1RxYIigL9zC2L7F8AjEA8GE8p/SgguMh1YQdc4acLa/KNJvxn7kjNuK8YAOdgLOaVsjh +4rsUecrNIdSUtUlD +-----END CERTIFICATE----- + +Telia Root CA v2 +================ +-----BEGIN CERTIFICATE----- +MIIFdDCCA1ygAwIBAgIPAWdfJ9b+euPkrL4JWwWeMA0GCSqGSIb3DQEBCwUAMEQxCzAJBgNVBAYT +AkZJMRowGAYDVQQKDBFUZWxpYSBGaW5sYW5kIE95ajEZMBcGA1UEAwwQVGVsaWEgUm9vdCBDQSB2 +MjAeFw0xODExMjkxMTU1NTRaFw00MzExMjkxMTU1NTRaMEQxCzAJBgNVBAYTAkZJMRowGAYDVQQK +DBFUZWxpYSBGaW5sYW5kIE95ajEZMBcGA1UEAwwQVGVsaWEgUm9vdCBDQSB2MjCCAiIwDQYJKoZI +hvcNAQEBBQADggIPADCCAgoCggIBALLQPwe84nvQa5n44ndp586dpAO8gm2h/oFlH0wnrI4AuhZ7 +6zBqAMCzdGh+sq/H1WKzej9Qyow2RCRj0jbpDIX2Q3bVTKFgcmfiKDOlyzG4OiIjNLh9vVYiQJ3q +9HsDrWj8soFPmNB06o3lfc1jw6P23pLCWBnglrvFxKk9pXSW/q/5iaq9lRdU2HhE8Qx3FZLgmEKn +pNaqIJLNwaCzlrI6hEKNfdWV5Nbb6WLEWLN5xYzTNTODn3WhUidhOPFZPY5Q4L15POdslv5e2QJl +tI5c0BE0312/UqeBAMN/mUWZFdUXyApT7GPzmX3MaRKGwhfwAZ6/hLzRUssbkmbOpFPlob/E2wnW +5olWK8jjfN7j/4nlNW4o6GwLI1GpJQXrSPjdscr6bAhR77cYbETKJuFzxokGgeWKrLDiKca5JLNr +RBH0pUPCTEPlcDaMtjNXepUugqD0XBCzYYP2AgWGLnwtbNwDRm41k9V6lS/eINhbfpSQBGq6WT0E +BXWdN6IOLj3rwaRSg/7Qa9RmjtzG6RJOHSpXqhC8fF6CfaamyfItufUXJ63RDolUK5X6wK0dmBR4 +M0KGCqlztft0DbcbMBnEWg4cJ7faGND/isgFuvGqHKI3t+ZIpEYslOqodmJHixBTB0hXbOKSTbau +BcvcwUpej6w9GU7C7WB1K9vBykLVAgMBAAGjYzBhMB8GA1UdIwQYMBaAFHKs5DN5qkWH9v2sHZ7W +xy+G2CQ5MB0GA1UdDgQWBBRyrOQzeapFh/b9rB2e1scvhtgkOTAOBgNVHQ8BAf8EBAMCAQYwDwYD +VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAoDtZpwmUPjaE0n4vOaWWl/oRrfxn83EJ +8rKJhGdEr7nv7ZbsnGTbMjBvZ5qsfl+yqwE2foH65IRe0qw24GtixX1LDoJt0nZi0f6X+J8wfBj5 +tFJ3gh1229MdqfDBmgC9bXXYfef6xzijnHDoRnkDry5023X4blMMA8iZGok1GTzTyVR8qPAs5m4H +eW9q4ebqkYJpCh3DflminmtGFZhb069GHWLIzoBSSRE/yQQSwxN8PzuKlts8oB4KtItUsiRnDe+C +y748fdHif64W1lZYudogsYMVoe+KTTJvQS8TUoKU1xrBeKJR3Stwbbca+few4GeXVtt8YVMJAygC +QMez2P2ccGrGKMOF6eLtGpOg3kuYooQ+BXcBlj37tCAPnHICehIv1aO6UXivKitEZU61/Qrowc15 +h2Er3oBXRb9n8ZuRXqWk7FlIEA04x7D6w0RtBPV4UBySllva9bguulvP5fBqnUsvWHMtTy3EHD70 +sz+rFQ47GUGKpMFXEmZxTPpT41frYpUJnlTd0cI8Vzy9OK2YZLe4A5pTVmBds9hCG1xLEooc6+t9 +xnppxyd/pPiL8uSUZodL6ZQHCRJ5irLrdATczvREWeAWysUsWNc8e89ihmpQfTU2Zqf7N+cox9jQ +raVplI/owd8k+BsHMYeB2F326CjYSlKArBPuUBQemMc= +-----END CERTIFICATE----- + +D-TRUST BR Root CA 1 2020 +========================= +-----BEGIN CERTIFICATE----- +MIIC2zCCAmCgAwIBAgIQfMmPK4TX3+oPyWWa00tNljAKBggqhkjOPQQDAzBIMQswCQYDVQQGEwJE +RTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRSVVNUIEJSIFJvb3QgQ0EgMSAy +MDIwMB4XDTIwMDIxMTA5NDUwMFoXDTM1MDIxMTA5NDQ1OVowSDELMAkGA1UEBhMCREUxFTATBgNV +BAoTDEQtVHJ1c3QgR21iSDEiMCAGA1UEAxMZRC1UUlVTVCBCUiBSb290IENBIDEgMjAyMDB2MBAG +ByqGSM49AgEGBSuBBAAiA2IABMbLxyjR+4T1mu9CFCDhQ2tuda38KwOE1HaTJddZO0Flax7mNCq7 +dPYSzuht56vkPE4/RAiLzRZxy7+SmfSk1zxQVFKQhYN4lGdnoxwJGT11NIXe7WB9xwy0QVK5buXu +QqOCAQ0wggEJMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFHOREKv/VbNafAkl1bK6CKBrqx9t +MA4GA1UdDwEB/wQEAwIBBjCBxgYDVR0fBIG+MIG7MD6gPKA6hjhodHRwOi8vY3JsLmQtdHJ1c3Qu +bmV0L2NybC9kLXRydXN0X2JyX3Jvb3RfY2FfMV8yMDIwLmNybDB5oHegdYZzbGRhcDovL2RpcmVj +dG9yeS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwQlIlMjBSb290JTIwQ0ElMjAxJTIwMjAyMCxP +PUQtVHJ1c3QlMjBHbWJILEM9REU/Y2VydGlmaWNhdGVyZXZvY2F0aW9ubGlzdDAKBggqhkjOPQQD +AwNpADBmAjEAlJAtE/rhY/hhY+ithXhUkZy4kzg+GkHaQBZTQgjKL47xPoFWwKrY7RjEsK70Pvom +AjEA8yjixtsrmfu3Ubgko6SUeho/5jbiA1czijDLgsfWFBHVdWNbFJWcHwHP2NVypw87 +-----END CERTIFICATE----- + +D-TRUST EV Root CA 1 2020 +========================= +-----BEGIN CERTIFICATE----- +MIIC2zCCAmCgAwIBAgIQXwJB13qHfEwDo6yWjfv/0DAKBggqhkjOPQQDAzBIMQswCQYDVQQGEwJE +RTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRSVVNUIEVWIFJvb3QgQ0EgMSAy +MDIwMB4XDTIwMDIxMTEwMDAwMFoXDTM1MDIxMTA5NTk1OVowSDELMAkGA1UEBhMCREUxFTATBgNV +BAoTDEQtVHJ1c3QgR21iSDEiMCAGA1UEAxMZRC1UUlVTVCBFViBSb290IENBIDEgMjAyMDB2MBAG +ByqGSM49AgEGBSuBBAAiA2IABPEL3YZDIBnfl4XoIkqbz52Yv7QFJsnL46bSj8WeeHsxiamJrSc8 +ZRCC/N/DnU7wMyPE0jL1HLDfMxddxfCxivnvubcUyilKwg+pf3VlSSowZ/Rk99Yad9rDwpdhQntJ +raOCAQ0wggEJMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFH8QARY3OqQo5FD4pPfsazK2/umL +MA4GA1UdDwEB/wQEAwIBBjCBxgYDVR0fBIG+MIG7MD6gPKA6hjhodHRwOi8vY3JsLmQtdHJ1c3Qu +bmV0L2NybC9kLXRydXN0X2V2X3Jvb3RfY2FfMV8yMDIwLmNybDB5oHegdYZzbGRhcDovL2RpcmVj +dG9yeS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwRVYlMjBSb290JTIwQ0ElMjAxJTIwMjAyMCxP +PUQtVHJ1c3QlMjBHbWJILEM9REU/Y2VydGlmaWNhdGVyZXZvY2F0aW9ubGlzdDAKBggqhkjOPQQD +AwNpADBmAjEAyjzGKnXCXnViOTYAYFqLwZOZzNnbQTs7h5kXO9XMT8oi96CAy/m0sRtW9XLS/BnR +AjEAkfcwkz8QRitxpNA7RJvAKQIFskF3UfN5Wp6OFKBOQtJbgfM0agPnIjhQW+0ZT0MW +-----END CERTIFICATE----- + +DigiCert TLS ECC P384 Root G5 +============================= +-----BEGIN CERTIFICATE----- +MIICGTCCAZ+gAwIBAgIQCeCTZaz32ci5PhwLBCou8zAKBggqhkjOPQQDAzBOMQswCQYDVQQGEwJV +UzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJjAkBgNVBAMTHURpZ2lDZXJ0IFRMUyBFQ0MgUDM4 +NCBSb290IEc1MB4XDTIxMDExNTAwMDAwMFoXDTQ2MDExNDIzNTk1OVowTjELMAkGA1UEBhMCVVMx +FzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMuMSYwJAYDVQQDEx1EaWdpQ2VydCBUTFMgRUNDIFAzODQg +Um9vdCBHNTB2MBAGByqGSM49AgEGBSuBBAAiA2IABMFEoc8Rl1Ca3iOCNQfN0MsYndLxf3c1Tzvd +lHJS7cI7+Oz6e2tYIOyZrsn8aLN1udsJ7MgT9U7GCh1mMEy7H0cKPGEQQil8pQgO4CLp0zVozptj +n4S1mU1YoI71VOeVyaNCMEAwHQYDVR0OBBYEFMFRRVBZqz7nLFr6ICISB4CIfBFqMA4GA1UdDwEB +/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gAMGUCMQCJao1H5+z8blUD2Wds +Jk6Dxv3J+ysTvLd6jLRl0mlpYxNjOyZQLgGheQaRnUi/wr4CMEfDFXuxoJGZSZOoPHzoRgaLLPIx +AJSdYsiJvRmEFOml+wG4DXZDjC5Ty3zfDBeWUA== +-----END CERTIFICATE----- + +DigiCert TLS RSA4096 Root G5 +============================ +-----BEGIN CERTIFICATE----- +MIIFZjCCA06gAwIBAgIQCPm0eKj6ftpqMzeJ3nzPijANBgkqhkiG9w0BAQwFADBNMQswCQYDVQQG +EwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJTAjBgNVBAMTHERpZ2lDZXJ0IFRMUyBSU0E0 +MDk2IFJvb3QgRzUwHhcNMjEwMTE1MDAwMDAwWhcNNDYwMTE0MjM1OTU5WjBNMQswCQYDVQQGEwJV +UzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJTAjBgNVBAMTHERpZ2lDZXJ0IFRMUyBSU0E0MDk2 +IFJvb3QgRzUwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCz0PTJeRGd/fxmgefM1eS8 +7IE+ajWOLrfn3q/5B03PMJ3qCQuZvWxX2hhKuHisOjmopkisLnLlvevxGs3npAOpPxG02C+JFvuU +AT27L/gTBaF4HI4o4EXgg/RZG5Wzrn4DReW+wkL+7vI8toUTmDKdFqgpwgscONyfMXdcvyej/Ces +tyu9dJsXLfKB2l2w4SMXPohKEiPQ6s+d3gMXsUJKoBZMpG2T6T867jp8nVid9E6P/DsjyG244gXa +zOvswzH016cpVIDPRFtMbzCe88zdH5RDnU1/cHAN1DrRN/BsnZvAFJNY781BOHW8EwOVfH/jXOnV +DdXifBBiqmvwPXbzP6PosMH976pXTayGpxi0KcEsDr9kvimM2AItzVwv8n/vFfQMFawKsPHTDU9q +TXeXAaDxZre3zu/O7Oyldcqs4+Fj97ihBMi8ez9dLRYiVu1ISf6nL3kwJZu6ay0/nTvEF+cdLvvy +z6b84xQslpghjLSR6Rlgg/IwKwZzUNWYOwbpx4oMYIwo+FKbbuH2TbsGJJvXKyY//SovcfXWJL5/ +MZ4PbeiPT02jP/816t9JXkGPhvnxd3lLG7SjXi/7RgLQZhNeXoVPzthwiHvOAbWWl9fNff2C+MIk +wcoBOU+NosEUQB+cZtUMCUbW8tDRSHZWOkPLtgoRObqME2wGtZ7P6wIDAQABo0IwQDAdBgNVHQ4E +FgQUUTMc7TZArxfTJc1paPKvTiM+s0EwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8w +DQYJKoZIhvcNAQEMBQADggIBAGCmr1tfV9qJ20tQqcQjNSH/0GEwhJG3PxDPJY7Jv0Y02cEhJhxw +GXIeo8mH/qlDZJY6yFMECrZBu8RHANmfGBg7sg7zNOok992vIGCukihfNudd5N7HPNtQOa27PShN +lnx2xlv0wdsUpasZYgcYQF+Xkdycx6u1UQ3maVNVzDl92sURVXLFO4uJ+DQtpBflF+aZfTCIITfN +MBc9uPK8qHWgQ9w+iUuQrm0D4ByjoJYJu32jtyoQREtGBzRj7TG5BO6jm5qu5jF49OokYTurWGT/ +u4cnYiWB39yhL/btp/96j1EuMPikAdKFOV8BmZZvWltwGUb+hmA+rYAQCd05JS9Yf7vSdPD3Rh9G +OUrYU9DzLjtxpdRv/PNn5AeP3SYZ4Y1b+qOTEZvpyDrDVWiakuFSdjjo4bq9+0/V77PnSIMx8IIh +47a+p6tv75/fTM8BuGJqIz3nCU2AG3swpMPdB380vqQmsvZB6Akd4yCYqjdP//fx4ilwMUc/dNAU +FvohigLVigmUdy7yWSiLfFCSCmZ4OIN1xLVaqBHG5cGdZlXPU8Sv13WFqUITVuwhd4GTWgzqltlJ +yqEI8pc7bZsEGCREjnwB8twl2F6GmrE52/WRMmrRpnCKovfepEWFJqgejF0pW8hL2JpqA15w8oVP +bEtoL8pU9ozaMv7Da4M/OMZ+ +-----END CERTIFICATE----- + +Certainly Root R1 +================= +-----BEGIN CERTIFICATE----- +MIIFRzCCAy+gAwIBAgIRAI4P+UuQcWhlM1T01EQ5t+AwDQYJKoZIhvcNAQELBQAwPTELMAkGA1UE +BhMCVVMxEjAQBgNVBAoTCUNlcnRhaW5seTEaMBgGA1UEAxMRQ2VydGFpbmx5IFJvb3QgUjEwHhcN +MjEwNDAxMDAwMDAwWhcNNDYwNDAxMDAwMDAwWjA9MQswCQYDVQQGEwJVUzESMBAGA1UEChMJQ2Vy +dGFpbmx5MRowGAYDVQQDExFDZXJ0YWlubHkgUm9vdCBSMTCCAiIwDQYJKoZIhvcNAQEBBQADggIP +ADCCAgoCggIBANA21B/q3avk0bbm+yLA3RMNansiExyXPGhjZjKcA7WNpIGD2ngwEc/csiu+kr+O +5MQTvqRoTNoCaBZ0vrLdBORrKt03H2As2/X3oXyVtwxwhi7xOu9S98zTm/mLvg7fMbedaFySpvXl +8wo0tf97ouSHocavFwDvA5HtqRxOcT3Si2yJ9HiG5mpJoM610rCrm/b01C7jcvk2xusVtyWMOvwl +DbMicyF0yEqWYZL1LwsYpfSt4u5BvQF5+paMjRcCMLT5r3gajLQ2EBAHBXDQ9DGQilHFhiZ5shGI +XsXwClTNSaa/ApzSRKft43jvRl5tcdF5cBxGX1HpyTfcX35pe0HfNEXgO4T0oYoKNp43zGJS4YkN +KPl6I7ENPT2a/Z2B7yyQwHtETrtJ4A5KVpK8y7XdeReJkd5hiXSSqOMyhb5OhaRLWcsrxXiOcVTQ +AjeZjOVJ6uBUcqQRBi8LjMFbvrWhsFNunLhgkR9Za/kt9JQKl7XsxXYDVBtlUrpMklZRNaBA2Cnb +rlJ2Oy0wQJuK0EJWtLeIAaSHO1OWzaMWj/Nmqhexx2DgwUMFDO6bW2BvBlyHWyf5QBGenDPBt+U1 +VwV/J84XIIwc/PH72jEpSe31C4SnT8H2TsIonPru4K8H+zMReiFPCyEQtkA6qyI6BJyLm4SGcprS +p6XEtHWRqSsjAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud +DgQWBBTgqj8ljZ9EXME66C6ud0yEPmcM9DANBgkqhkiG9w0BAQsFAAOCAgEAuVevuBLaV4OPaAsz +HQNTVfSVcOQrPbA56/qJYv331hgELyE03fFo8NWWWt7CgKPBjcZq91l3rhVkz1t5BXdm6ozTaw3d +8VkswTOlMIAVRQdFGjEitpIAq5lNOo93r6kiyi9jyhXWx8bwPWz8HA2YEGGeEaIi1wrykXprOQ4v +MMM2SZ/g6Q8CRFA3lFV96p/2O7qUpUzpvD5RtOjKkjZUbVwlKNrdrRT90+7iIgXr0PK3aBLXWopB +GsaSpVo7Y0VPv+E6dyIvXL9G+VoDhRNCX8reU9ditaY1BMJH/5n9hN9czulegChB8n3nHpDYT3Y+ +gjwN/KUD+nsa2UUeYNrEjvn8K8l7lcUq/6qJ34IxD3L/DCfXCh5WAFAeDJDBlrXYFIW7pw0WwfgH +JBu6haEaBQmAupVjyTrsJZ9/nbqkRxWbRHDxakvWOF5D8xh+UG7pWijmZeZ3Gzr9Hb4DJqPb1OG7 +fpYnKx3upPvaJVQTA945xsMfTZDsjxtK0hzthZU4UHlG1sGQUDGpXJpuHfUzVounmdLyyCwzk5Iw +x06MZTMQZBf9JBeW0Y3COmor6xOLRPIh80oat3df1+2IpHLlOR+Vnb5nwXARPbv0+Em34yaXOp/S +X3z7wJl8OSngex2/DaeP0ik0biQVy96QXr8axGbqwua6OV+KmalBWQewLK8= +-----END CERTIFICATE----- + +Certainly Root E1 +================= +-----BEGIN CERTIFICATE----- +MIIB9zCCAX2gAwIBAgIQBiUzsUcDMydc+Y2aub/M+DAKBggqhkjOPQQDAzA9MQswCQYDVQQGEwJV +UzESMBAGA1UEChMJQ2VydGFpbmx5MRowGAYDVQQDExFDZXJ0YWlubHkgUm9vdCBFMTAeFw0yMTA0 +MDEwMDAwMDBaFw00NjA0MDEwMDAwMDBaMD0xCzAJBgNVBAYTAlVTMRIwEAYDVQQKEwlDZXJ0YWlu +bHkxGjAYBgNVBAMTEUNlcnRhaW5seSBSb290IEUxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE3m/4 +fxzf7flHh4axpMCK+IKXgOqPyEpeKn2IaKcBYhSRJHpcnqMXfYqGITQYUBsQ3tA3SybHGWCA6TS9 +YBk2QNYphwk8kXr2vBMj3VlOBF7PyAIcGFPBMdjaIOlEjeR2o0IwQDAOBgNVHQ8BAf8EBAMCAQYw +DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU8ygYy2R17ikq6+2uI1g4hevIIgcwCgYIKoZIzj0E +AwMDaAAwZQIxALGOWiDDshliTd6wT99u0nCK8Z9+aozmut6Dacpps6kFtZaSF4fC0urQe87YQVt8 +rgIwRt7qy12a7DLCZRawTDBcMPPaTnOGBtjOiQRINzf43TNRnXCve1XYAS59BWQOhriR +-----END CERTIFICATE----- + +Security Communication RootCA3 +============================== +-----BEGIN CERTIFICATE----- +MIIFfzCCA2egAwIBAgIJAOF8N0D9G/5nMA0GCSqGSIb3DQEBDAUAMF0xCzAJBgNVBAYTAkpQMSUw +IwYDVQQKExxTRUNPTSBUcnVzdCBTeXN0ZW1zIENPLixMVEQuMScwJQYDVQQDEx5TZWN1cml0eSBD +b21tdW5pY2F0aW9uIFJvb3RDQTMwHhcNMTYwNjE2MDYxNzE2WhcNMzgwMTE4MDYxNzE2WjBdMQsw +CQYDVQQGEwJKUDElMCMGA1UEChMcU0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UE +AxMeU2VjdXJpdHkgQ29tbXVuaWNhdGlvbiBSb290Q0EzMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A +MIICCgKCAgEA48lySfcw3gl8qUCBWNO0Ot26YQ+TUG5pPDXC7ltzkBtnTCHsXzW7OT4rCmDvu20r +hvtxosis5FaU+cmvsXLUIKx00rgVrVH+hXShuRD+BYD5UpOzQD11EKzAlrenfna84xtSGc4RHwsE +NPXY9Wk8d/Nk9A2qhd7gCVAEF5aEt8iKvE1y/By7z/MGTfmfZPd+pmaGNXHIEYBMwXFAWB6+oHP2 +/D5Q4eAvJj1+XCO1eXDe+uDRpdYMQXF79+qMHIjH7Iv10S9VlkZ8WjtYO/u62C21Jdp6Ts9EriGm +npjKIG58u4iFW/vAEGK78vknR+/RiTlDxN/e4UG/VHMgly1s2vPUB6PmudhvrvyMGS7TZ2crldtY +XLVqAvO4g160a75BflcJdURQVc1aEWEhCmHCqYj9E7wtiS/NYeCVvsq1e+F7NGcLH7YMx3weGVPK +p7FKFSBWFHA9K4IsD50VHUeAR/94mQ4xr28+j+2GaR57GIgUssL8gjMunEst+3A7caoreyYn8xrC +3PsXuKHqy6C0rtOUfnrQq8PsOC0RLoi/1D+tEjtCrI8Cbn3M0V9hvqG8OmpI6iZVIhZdXw3/JzOf +GAN0iltSIEdrRU0id4xVJ/CvHozJgyJUt5rQT9nO/NkuHJYosQLTA70lUhw0Zk8jq/R3gpYd0Vcw +CBEF/VfR2ccCAwEAAaNCMEAwHQYDVR0OBBYEFGQUfPxYchamCik0FW8qy7z8r6irMA4GA1UdDwEB +/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBDAUAA4ICAQDcAiMI4u8hOscNtybS +YpOnpSNyByCCYN8Y11StaSWSntkUz5m5UoHPrmyKO1o5yGwBQ8IibQLwYs1OY0PAFNr0Y/Dq9HHu +Tofjcan0yVflLl8cebsjqodEV+m9NU1Bu0soo5iyG9kLFwfl9+qd9XbXv8S2gVj/yP9kaWJ5rW4O +H3/uHWnlt3Jxs/6lATWUVCvAUm2PVcTJ0rjLyjQIUYWg9by0F1jqClx6vWPGOi//lkkZhOpn2ASx +YfQAW0q3nHE3GYV5v4GwxxMOdnE+OoAGrgYWp421wsTL/0ClXI2lyTrtcoHKXJg80jQDdwj98ClZ +XSEIx2C/pHF7uNkegr4Jr2VvKKu/S7XuPghHJ6APbw+LP6yVGPO5DtxnVW5inkYO0QR4ynKudtml ++LLfiAlhi+8kTtFZP1rUPcmTPCtk9YENFpb3ksP+MW/oKjJ0DvRMmEoYDjBU1cXrvMUVnuiZIesn +KwkK2/HmcBhWuwzkvvnoEKQTkrgc4NtnHVMDpCKn3F2SEDzq//wbEBrD2NCcnWXL0CsnMQMeNuE9 +dnUM/0Umud1RvCPHX9jYhxBAEg09ODfnRDwYwFMJZI//1ZqmfHAuc1Uh6N//g7kdPjIe1qZ9LPFm +6Vwdp6POXiUyK+OVrCoHzrQoeIY8LaadTdJ0MN1kURXbg4NR16/9M51NZg== +-----END CERTIFICATE----- + +Security Communication ECC RootCA1 +================================== +-----BEGIN CERTIFICATE----- +MIICODCCAb6gAwIBAgIJANZdm7N4gS7rMAoGCCqGSM49BAMDMGExCzAJBgNVBAYTAkpQMSUwIwYD +VQQKExxTRUNPTSBUcnVzdCBTeXN0ZW1zIENPLixMVEQuMSswKQYDVQQDEyJTZWN1cml0eSBDb21t +dW5pY2F0aW9uIEVDQyBSb290Q0ExMB4XDTE2MDYxNjA1MTUyOFoXDTM4MDExODA1MTUyOFowYTEL +MAkGA1UEBhMCSlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xKzApBgNV +BAMTIlNlY3VyaXR5IENvbW11bmljYXRpb24gRUNDIFJvb3RDQTEwdjAQBgcqhkjOPQIBBgUrgQQA +IgNiAASkpW9gAwPDvTH00xecK4R1rOX9PVdu12O/5gSJko6BnOPpR27KkBLIE+CnnfdldB9sELLo +5OnvbYUymUSxXv3MdhDYW72ixvnWQuRXdtyQwjWpS4g8EkdtXP9JTxpKULGjQjBAMB0GA1UdDgQW +BBSGHOf+LaVKiwj+KBH6vqNm+GBZLzAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAK +BggqhkjOPQQDAwNoADBlAjAVXUI9/Lbu9zuxNuie9sRGKEkz0FhDKmMpzE2xtHqiuQ04pV1IKv3L +snNdo4gIxwwCMQDAqy0Obe0YottT6SXbVQjgUMzfRGEWgqtJsLKB7HOHeLRMsmIbEvoWTSVLY70e +N9k= +-----END CERTIFICATE----- + +BJCA Global Root CA1 +==================== +-----BEGIN CERTIFICATE----- +MIIFdDCCA1ygAwIBAgIQVW9l47TZkGobCdFsPsBsIDANBgkqhkiG9w0BAQsFADBUMQswCQYDVQQG +EwJDTjEmMCQGA1UECgwdQkVJSklORyBDRVJUSUZJQ0FURSBBVVRIT1JJVFkxHTAbBgNVBAMMFEJK +Q0EgR2xvYmFsIFJvb3QgQ0ExMB4XDTE5MTIxOTAzMTYxN1oXDTQ0MTIxMjAzMTYxN1owVDELMAkG +A1UEBhMCQ04xJjAkBgNVBAoMHUJFSUpJTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZMR0wGwYDVQQD +DBRCSkNBIEdsb2JhbCBSb290IENBMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAPFm +CL3ZxRVhy4QEQaVpN3cdwbB7+sN3SJATcmTRuHyQNZ0YeYjjlwE8R4HyDqKYDZ4/N+AZspDyRhyS +sTphzvq3Rp4Dhtczbu33RYx2N95ulpH3134rhxfVizXuhJFyV9xgw8O558dnJCNPYwpj9mZ9S1Wn +P3hkSWkSl+BMDdMJoDIwOvqfwPKcxRIqLhy1BDPapDgRat7GGPZHOiJBhyL8xIkoVNiMpTAK+BcW +yqw3/XmnkRd4OJmtWO2y3syJfQOcs4ll5+M7sSKGjwZteAf9kRJ/sGsciQ35uMt0WwfCyPQ10WRj +eulumijWML3mG90Vr4TqnMfK9Q7q8l0ph49pczm+LiRvRSGsxdRpJQaDrXpIhRMsDQa4bHlW/KNn +MoH1V6XKV0Jp6VwkYe/iMBhORJhVb3rCk9gZtt58R4oRTklH2yiUAguUSiz5EtBP6DF+bHq/pj+b +OT0CFqMYs2esWz8sgytnOYFcuX6U1WTdno9uruh8W7TXakdI136z1C2OVnZOz2nxbkRs1CTqjSSh +GL+9V/6pmTW12xB3uD1IutbB5/EjPtffhZ0nPNRAvQoMvfXnjSXWgXSHRtQpdaJCbPdzied9v3pK +H9MiyRVVz99vfFXQpIsHETdfg6YmV6YBW37+WGgHqel62bno/1Afq8K0wM7o6v0PvY1NuLxxAgMB +AAGjQjBAMB0GA1UdDgQWBBTF7+3M2I0hxkjk49cULqcWk+WYATAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAUoKsITQfI/Ki2Pm4rzc2IInRNwPWaZ+4 +YRC6ojGYWUfo0Q0lHhVBDOAqVdVXUsv45Mdpox1NcQJeXyFFYEhcCY5JEMEE3KliawLwQ8hOnThJ +dMkycFRtwUf8jrQ2ntScvd0g1lPJGKm1Vrl2i5VnZu69mP6u775u+2D2/VnGKhs/I0qUJDAnyIm8 +60Qkmss9vk/Ves6OF8tiwdneHg56/0OGNFK8YT88X7vZdrRTvJez/opMEi4r89fO4aL/3Xtw+zuh +TaRjAv04l5U/BXCga99igUOLtFkNSoxUnMW7gZ/NfaXvCyUeOiDbHPwfmGcCCtRzRBPbUYQaVQNW +4AB+dAb/OMRyHdOoP2gxXdMJxy6MW2Pg6Nwe0uxhHvLe5e/2mXZgLR6UcnHGCyoyx5JO1UbXHfmp +GQrI+pXObSOYqgs4rZpWDW+N8TEAiMEXnM0ZNjX+VVOg4DwzX5Ze4jLp3zO7Bkqp2IRzznfSxqxx +4VyjHQy7Ct9f4qNx2No3WqB4K/TUfet27fJhcKVlmtOJNBir+3I+17Q9eVzYH6Eze9mCUAyTF6ps +3MKCuwJXNq+YJyo5UOGwifUll35HaBC07HPKs5fRJNz2YqAo07WjuGS3iGJCz51TzZm+ZGiPTx4S +SPfSKcOYKMryMguTjClPPGAyzQWWYezyr/6zcCwupvI= +-----END CERTIFICATE----- + +BJCA Global Root CA2 +==================== +-----BEGIN CERTIFICATE----- +MIICJTCCAaugAwIBAgIQLBcIfWQqwP6FGFkGz7RK6zAKBggqhkjOPQQDAzBUMQswCQYDVQQGEwJD +TjEmMCQGA1UECgwdQkVJSklORyBDRVJUSUZJQ0FURSBBVVRIT1JJVFkxHTAbBgNVBAMMFEJKQ0Eg +R2xvYmFsIFJvb3QgQ0EyMB4XDTE5MTIxOTAzMTgyMVoXDTQ0MTIxMjAzMTgyMVowVDELMAkGA1UE +BhMCQ04xJjAkBgNVBAoMHUJFSUpJTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZMR0wGwYDVQQDDBRC +SkNBIEdsb2JhbCBSb290IENBMjB2MBAGByqGSM49AgEGBSuBBAAiA2IABJ3LgJGNU2e1uVCxA/jl +SR9BIgmwUVJY1is0j8USRhTFiy8shP8sbqjV8QnjAyEUxEM9fMEsxEtqSs3ph+B99iK++kpRuDCK +/eHeGBIK9ke35xe/J4rUQUyWPGCWwf0VHKNCMEAwHQYDVR0OBBYEFNJKsVF/BvDRgh9Obl+rg/xI +1LCRMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2gAMGUCMBq8 +W9f+qdJUDkpd0m2xQNz0Q9XSSpkZElaA94M04TVOSG0ED1cxMDAtsaqdAzjbBgIxAMvMh1PLet8g +UXOQwKhbYdDFUDn9hf7B43j4ptZLvZuHjw/l1lOWqzzIQNph91Oj9w== +-----END CERTIFICATE----- + +Sectigo Public Server Authentication Root E46 +============================================= +-----BEGIN CERTIFICATE----- +MIICOjCCAcGgAwIBAgIQQvLM2htpN0RfFf51KBC49DAKBggqhkjOPQQDAzBfMQswCQYDVQQGEwJH +QjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0aWdvIFB1YmxpYyBTZXJ2 +ZXIgQXV0aGVudGljYXRpb24gUm9vdCBFNDYwHhcNMjEwMzIyMDAwMDAwWhcNNDYwMzIxMjM1OTU5 +WjBfMQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0 +aWdvIFB1YmxpYyBTZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBFNDYwdjAQBgcqhkjOPQIBBgUr +gQQAIgNiAAR2+pmpbiDt+dd34wc7qNs9Xzjoq1WmVk/WSOrsfy2qw7LFeeyZYX8QeccCWvkEN/U0 +NSt3zn8gj1KjAIns1aeibVvjS5KToID1AZTc8GgHHs3u/iVStSBDHBv+6xnOQ6OjQjBAMB0GA1Ud +DgQWBBTRItpMWfFLXyY4qp3W7usNw/upYTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB +/zAKBggqhkjOPQQDAwNnADBkAjAn7qRaqCG76UeXlImldCBteU/IvZNeWBj7LRoAasm4PdCkT0RH +lAFWovgzJQxC36oCMB3q4S6ILuH5px0CMk7yn2xVdOOurvulGu7t0vzCAxHrRVxgED1cf5kDW21U +SAGKcw== +-----END CERTIFICATE----- + +Sectigo Public Server Authentication Root R46 +============================================= +-----BEGIN CERTIFICATE----- +MIIFijCCA3KgAwIBAgIQdY39i658BwD6qSWn4cetFDANBgkqhkiG9w0BAQwFADBfMQswCQYDVQQG +EwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0aWdvIFB1YmxpYyBT +ZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBSNDYwHhcNMjEwMzIyMDAwMDAwWhcNNDYwMzIxMjM1 +OTU5WjBfMQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1T +ZWN0aWdvIFB1YmxpYyBTZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBSNDYwggIiMA0GCSqGSIb3 +DQEBAQUAA4ICDwAwggIKAoICAQCTvtU2UnXYASOgHEdCSe5jtrch/cSV1UgrJnwUUxDaef0rty2k +1Cz66jLdScK5vQ9IPXtamFSvnl0xdE8H/FAh3aTPaE8bEmNtJZlMKpnzSDBh+oF8HqcIStw+Kxwf +GExxqjWMrfhu6DtK2eWUAtaJhBOqbchPM8xQljeSM9xfiOefVNlI8JhD1mb9nxc4Q8UBUQvX4yMP +FF1bFOdLvt30yNoDN9HWOaEhUTCDsG3XME6WW5HwcCSrv0WBZEMNvSE6Lzzpng3LILVCJ8zab5vu +ZDCQOc2TZYEhMbUjUDM3IuM47fgxMMxF/mL50V0yeUKH32rMVhlATc6qu/m1dkmU8Sf4kaWD5Qaz +Yw6A3OASVYCmO2a0OYctyPDQ0RTp5A1NDvZdV3LFOxxHVp3i1fuBYYzMTYCQNFu31xR13NgESJ/A +wSiItOkcyqex8Va3e0lMWeUgFaiEAin6OJRpmkkGj80feRQXEgyDet4fsZfu+Zd4KKTIRJLpfSYF +plhym3kT2BFfrsU4YjRosoYwjviQYZ4ybPUHNs2iTG7sijbt8uaZFURww3y8nDnAtOFr94MlI1fZ +EoDlSfB1D++N6xybVCi0ITz8fAr/73trdf+LHaAZBav6+CuBQug4urv7qv094PPK306Xlynt8xhW +6aWWrL3DkJiy4Pmi1KZHQ3xtzwIDAQABo0IwQDAdBgNVHQ4EFgQUVnNYZJX5khqwEioEYnmhQBWI +IUkwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAC9c +mTz8Bl6MlC5w6tIyMY208FHVvArzZJ8HXtXBc2hkeqK5Duj5XYUtqDdFqij0lgVQYKlJfp/imTYp +E0RHap1VIDzYm/EDMrraQKFz6oOht0SmDpkBm+S8f74TlH7Kph52gDY9hAaLMyZlbcp+nv4fjFg4 +exqDsQ+8FxG75gbMY/qB8oFM2gsQa6H61SilzwZAFv97fRheORKkU55+MkIQpiGRqRxOF3yEvJ+M +0ejf5lG5Nkc/kLnHvALcWxxPDkjBJYOcCj+esQMzEhonrPcibCTRAUH4WAP+JWgiH5paPHxsnnVI +84HxZmduTILA7rpXDhjvLpr3Etiga+kFpaHpaPi8TD8SHkXoUsCjvxInebnMMTzD9joiFgOgyY9m +pFuiTdaBJQbpdqQACj7LzTWb4OE4y2BThihCQRxEV+ioratF4yUQvNs+ZUH7G6aXD+u5dHn5Hrwd +Vw1Hr8Mvn4dGp+smWg9WY7ViYG4A++MnESLn/pmPNPW56MORcr3Ywx65LvKRRFHQV80MNNVIIb/b +E/FmJUNS0nAiNs2fxBx1IK1jcmMGDw4nztJqDby1ORrp0XZ60Vzk50lJLVU3aPAaOpg+VBeHVOmm +J1CJeyAvP/+/oYtKR5j/K3tJPsMpRmAYQqszKbrAKbkTidOIijlBO8n9pu0f9GBj39ItVQGL +-----END CERTIFICATE----- + +SSL.com TLS RSA Root CA 2022 +============================ +-----BEGIN CERTIFICATE----- +MIIFiTCCA3GgAwIBAgIQb77arXO9CEDii02+1PdbkTANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQG +EwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQDDBxTU0wuY29tIFRMUyBSU0Eg +Um9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzQyMloXDTQ2MDgxOTE2MzQyMVowTjELMAkGA1UEBhMC +VVMxGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgUlNBIFJv +b3QgQ0EgMjAyMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANCkCXJPQIgSYT41I57u +9nTPL3tYPc48DRAokC+X94xI2KDYJbFMsBFMF3NQ0CJKY7uB0ylu1bUJPiYYf7ISf5OYt6/wNr/y +7hienDtSxUcZXXTzZGbVXcdotL8bHAajvI9AI7YexoS9UcQbOcGV0insS657Lb85/bRi3pZ7Qcac +oOAGcvvwB5cJOYF0r/c0WRFXCsJbwST0MXMwgsadugL3PnxEX4MN8/HdIGkWCVDi1FW24IBydm5M +R7d1VVm0U3TZlMZBrViKMWYPHqIbKUBOL9975hYsLfy/7PO0+r4Y9ptJ1O4Fbtk085zx7AGL0SDG +D6C1vBdOSHtRwvzpXGk3R2azaPgVKPC506QVzFpPulJwoxJF3ca6TvvC0PeoUidtbnm1jPx7jMEW +TO6Af77wdr5BUxIzrlo4QqvXDz5BjXYHMtWrifZOZ9mxQnUjbvPNQrL8VfVThxc7wDNY8VLS+YCk +8OjwO4s4zKTGkH8PnP2L0aPP2oOnaclQNtVcBdIKQXTbYxE3waWglksejBYSd66UNHsef8JmAOSq +g+qKkK3ONkRN0VHpvB/zagX9wHQfJRlAUW7qglFA35u5CCoGAtUjHBPW6dvbxrB6y3snm/vg1UYk +7RBLY0ulBY+6uB0rpvqR4pJSvezrZ5dtmi2fgTIFZzL7SAg/2SW4BCUvAgMBAAGjYzBhMA8GA1Ud +EwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAU+y437uOEeicuzRk1sTN8/9REQrkwHQYDVR0OBBYEFPsu +N+7jhHonLs0ZNbEzfP/UREK5MA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAjYlt +hEUY8U+zoO9opMAdrDC8Z2awms22qyIZZtM7QbUQnRC6cm4pJCAcAZli05bg4vsMQtfhWsSWTVTN +j8pDU/0quOr4ZcoBwq1gaAafORpR2eCNJvkLTqVTJXojpBzOCBvfR4iyrT7gJ4eLSYwfqUdYe5by +iB0YrrPRpgqU+tvT5TgKa3kSM/tKWTcWQA673vWJDPFs0/dRa1419dvAJuoSc06pkZCmF8NsLzjU +o3KUQyxi4U5cMj29TH0ZR6LDSeeWP4+a0zvkEdiLA9z2tmBVGKaBUfPhqBVq6+AL8BQx1rmMRTqo +ENjwuSfr98t67wVylrXEj5ZzxOhWc5y8aVFjvO9nHEMaX3cZHxj4HCUp+UmZKbaSPaKDN7Egkaib +MOlqbLQjk2UEqxHzDh1TJElTHaE/nUiSEeJ9DU/1172iWD54nR4fK/4huxoTtrEoZP2wAgDHbICi +vRZQIA9ygV/MlP+7mea6kMvq+cYMwq7FGc4zoWtcu358NFcXrfA/rs3qr5nsLFR+jM4uElZI7xc7 +P0peYNLcdDa8pUNjyw9bowJWCZ4kLOGGgYz+qxcs+sjiMho6/4UIyYOf8kpIEFR3N+2ivEC+5BB0 +9+Rbu7nzifmPQdjH5FCQNYA+HLhNkNPU98OwoX6EyneSMSy4kLGCenROmxMmtNVQZlR4rmA= +-----END CERTIFICATE----- + +SSL.com TLS ECC Root CA 2022 +============================ +-----BEGIN CERTIFICATE----- +MIICOjCCAcCgAwIBAgIQFAP1q/s3ixdAW+JDsqXRxDAKBggqhkjOPQQDAzBOMQswCQYDVQQGEwJV +UzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQDDBxTU0wuY29tIFRMUyBFQ0MgUm9v +dCBDQSAyMDIyMB4XDTIyMDgyNTE2MzM0OFoXDTQ2MDgxOTE2MzM0N1owTjELMAkGA1UEBhMCVVMx +GDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgRUNDIFJvb3Qg +Q0EgMjAyMjB2MBAGByqGSM49AgEGBSuBBAAiA2IABEUpNXP6wrgjzhR9qLFNoFs27iosU8NgCTWy +JGYmacCzldZdkkAZDsalE3D07xJRKF3nzL35PIXBz5SQySvOkkJYWWf9lCcQZIxPBLFNSeR7T5v1 +5wj4A4j3p8OSSxlUgaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBSJjy+j6CugFFR7 +81a4Jl9nOAuc0DAdBgNVHQ4EFgQUiY8vo+groBRUe/NWuCZfZzgLnNAwDgYDVR0PAQH/BAQDAgGG +MAoGCCqGSM49BAMDA2gAMGUCMFXjIlbp15IkWE8elDIPDAI2wv2sdDJO4fscgIijzPvX6yv/N33w +7deedWo1dlJF4AIxAMeNb0Igj762TVntd00pxCAgRWSGOlDGxK0tk/UYfXLtqc/ErFc2KAhl3zx5 +Zn6g6g== +-----END CERTIFICATE----- + +Atos TrustedRoot Root CA ECC TLS 2021 +===================================== +-----BEGIN CERTIFICATE----- +MIICFTCCAZugAwIBAgIQPZg7pmY9kGP3fiZXOATvADAKBggqhkjOPQQDAzBMMS4wLAYDVQQDDCVB +dG9zIFRydXN0ZWRSb290IFJvb3QgQ0EgRUNDIFRMUyAyMDIxMQ0wCwYDVQQKDARBdG9zMQswCQYD +VQQGEwJERTAeFw0yMTA0MjIwOTI2MjNaFw00MTA0MTcwOTI2MjJaMEwxLjAsBgNVBAMMJUF0b3Mg +VHJ1c3RlZFJvb3QgUm9vdCBDQSBFQ0MgVExTIDIwMjExDTALBgNVBAoMBEF0b3MxCzAJBgNVBAYT +AkRFMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEloZYKDcKZ9Cg3iQZGeHkBQcfl+3oZIK59sRxUM6K +DP/XtXa7oWyTbIOiaG6l2b4siJVBzV3dscqDY4PMwL502eCdpO5KTlbgmClBk1IQ1SQ4AjJn8ZQS +b+/Xxd4u/RmAo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR2KCXWfeBmmnoJsmo7jjPX +NtNPojAOBgNVHQ8BAf8EBAMCAYYwCgYIKoZIzj0EAwMDaAAwZQIwW5kp85wxtolrbNa9d+F851F+ +uDrNozZffPc8dz7kUK2o59JZDCaOMDtuCCrCp1rIAjEAmeMM56PDr9NJLkaCI2ZdyQAUEv049OGY +a3cpetskz2VAv9LcjBHo9H1/IISpQuQo +-----END CERTIFICATE----- + +Atos TrustedRoot Root CA RSA TLS 2021 +===================================== +-----BEGIN CERTIFICATE----- +MIIFZDCCA0ygAwIBAgIQU9XP5hmTC/srBRLYwiqipDANBgkqhkiG9w0BAQwFADBMMS4wLAYDVQQD +DCVBdG9zIFRydXN0ZWRSb290IFJvb3QgQ0EgUlNBIFRMUyAyMDIxMQ0wCwYDVQQKDARBdG9zMQsw +CQYDVQQGEwJERTAeFw0yMTA0MjIwOTIxMTBaFw00MTA0MTcwOTIxMDlaMEwxLjAsBgNVBAMMJUF0 +b3MgVHJ1c3RlZFJvb3QgUm9vdCBDQSBSU0EgVExTIDIwMjExDTALBgNVBAoMBEF0b3MxCzAJBgNV +BAYTAkRFMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtoAOxHm9BYx9sKOdTSJNy/BB +l01Z4NH+VoyX8te9j2y3I49f1cTYQcvyAh5x5en2XssIKl4w8i1mx4QbZFc4nXUtVsYvYe+W/CBG +vevUez8/fEc4BKkbqlLfEzfTFRVOvV98r61jx3ncCHvVoOX3W3WsgFWZkmGbzSoXfduP9LVq6hdK +ZChmFSlsAvFr1bqjM9xaZ6cF4r9lthawEO3NUDPJcFDsGY6wx/J0W2tExn2WuZgIWWbeKQGb9Cpt +0xU6kGpn8bRrZtkh68rZYnxGEFzedUlnnkL5/nWpo63/dgpnQOPF943HhZpZnmKaau1Fh5hnstVK +PNe0OwANwI8f4UDErmwh3El+fsqyjW22v5MvoVw+j8rtgI5Y4dtXz4U2OLJxpAmMkokIiEjxQGMY +sluMWuPD0xeqqxmjLBvk1cbiZnrXghmmOxYsL3GHX0WelXOTwkKBIROW1527k2gV+p2kHYzygeBY +Br3JtuP2iV2J+axEoctr+hbxx1A9JNr3w+SH1VbxT5Aw+kUJWdo0zuATHAR8ANSbhqRAvNncTFd+ +rrcztl524WWLZt+NyteYr842mIycg5kDcPOvdO3GDjbnvezBc6eUWsuSZIKmAMFwoW4sKeFYV+xa +fJlrJaSQOoD0IJ2azsct+bJLKZWD6TWNp0lIpw9MGZHQ9b8Q4HECAwEAAaNCMEAwDwYDVR0TAQH/ +BAUwAwEB/zAdBgNVHQ4EFgQUdEmZ0f+0emhFdcN+tNzMzjkz2ggwDgYDVR0PAQH/BAQDAgGGMA0G +CSqGSIb3DQEBDAUAA4ICAQAjQ1MkYlxt/T7Cz1UAbMVWiLkO3TriJQ2VSpfKgInuKs1l+NsW4AmS +4BjHeJi78+xCUvuppILXTdiK/ORO/auQxDh1MoSf/7OwKwIzNsAQkG8dnK/haZPso0UvFJ/1TCpl +Q3IM98P4lYsU84UgYt1UU90s3BiVaU+DR3BAM1h3Egyi61IxHkzJqM7F78PRreBrAwA0JrRUITWX +AdxfG/F851X6LWh3e9NpzNMOa7pNdkTWwhWaJuywxfW70Xp0wmzNxbVe9kzmWy2B27O3Opee7c9G +slA9hGCZcbUztVdF5kJHdWoOsAgMrr3e97sPWD2PAzHoPYJQyi9eDF20l74gNAf0xBLh7tew2Vkt +afcxBPTy+av5EzH4AXcOPUIjJsyacmdRIXrMPIWo6iFqO9taPKU0nprALN+AnCng33eU0aKAQv9q +TFsR0PXNor6uzFFcw9VUewyu1rkGd4Di7wcaaMxZUa1+XGdrudviB0JbuAEFWDlN5LuYo7Ey7Nmj +1m+UI/87tyll5gfp77YZ6ufCOB0yiJA8EytuzO+rdwY0d4RPcuSBhPm5dDTedk+SKlOxJTnbPP/l +PqYO5Wue/9vsL3SD3460s6neFE3/MaNFcyT6lSnMEpcEoji2jbDwN/zIIX8/syQbPYtuzE2wFg2W +HYMfRsCbvUOZ58SWLs5fyQ== +-----END CERTIFICATE----- diff --git a/vendor/composer/ca-bundle/src/CaBundle.php b/vendor/composer/ca-bundle/src/CaBundle.php new file mode 100644 index 000000000..d99c00f69 --- /dev/null +++ b/vendor/composer/ca-bundle/src/CaBundle.php @@ -0,0 +1,431 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\CaBundle; + +use Psr\Log\LoggerInterface; +use Symfony\Component\Process\PhpProcess; + +/** + * @author Chris Smith + * @author Jordi Boggiano + */ +class CaBundle +{ + /** @var string|null */ + private static $caPath; + /** @var array */ + private static $caFileValidity = array(); + /** @var bool|null */ + private static $useOpensslParse; + + /** + * Returns the system CA bundle path, or a path to the bundled one + * + * This method was adapted from Sslurp. + * https://github.com/EvanDotPro/Sslurp + * + * (c) Evan Coury + * + * For the full copyright and license information, please see below: + * + * Copyright (c) 2013, Evan Coury + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * @param LoggerInterface $logger optional logger for information about which CA files were loaded + * @return string path to a CA bundle file or directory + */ + public static function getSystemCaRootBundlePath(LoggerInterface $logger = null) + { + if (self::$caPath !== null) { + return self::$caPath; + } + $caBundlePaths = array(); + + // If SSL_CERT_FILE env variable points to a valid certificate/bundle, use that. + // This mimics how OpenSSL uses the SSL_CERT_FILE env variable. + $caBundlePaths[] = self::getEnvVariable('SSL_CERT_FILE'); + + // If SSL_CERT_DIR env variable points to a valid certificate/bundle, use that. + // This mimics how OpenSSL uses the SSL_CERT_FILE env variable. + $caBundlePaths[] = self::getEnvVariable('SSL_CERT_DIR'); + + $caBundlePaths[] = ini_get('openssl.cafile'); + $caBundlePaths[] = ini_get('openssl.capath'); + + $otherLocations = array( + '/etc/pki/tls/certs/ca-bundle.crt', // Fedora, RHEL, CentOS (ca-certificates package) + '/etc/ssl/certs/ca-certificates.crt', // Debian, Ubuntu, Gentoo, Arch Linux (ca-certificates package) + '/etc/ssl/ca-bundle.pem', // SUSE, openSUSE (ca-certificates package) + '/usr/local/share/certs/ca-root-nss.crt', // FreeBSD (ca_root_nss_package) + '/usr/ssl/certs/ca-bundle.crt', // Cygwin + '/opt/local/share/curl/curl-ca-bundle.crt', // OS X macports, curl-ca-bundle package + '/usr/local/share/curl/curl-ca-bundle.crt', // Default cURL CA bunde path (without --with-ca-bundle option) + '/usr/share/ssl/certs/ca-bundle.crt', // Really old RedHat? + '/etc/ssl/cert.pem', // OpenBSD + '/usr/local/etc/ssl/cert.pem', // FreeBSD 10.x + '/usr/local/etc/openssl/cert.pem', // OS X homebrew, openssl package + '/usr/local/etc/openssl@1.1/cert.pem', // OS X homebrew, openssl@1.1 package + ); + + foreach($otherLocations as $location) { + $otherLocations[] = dirname($location); + } + + $caBundlePaths = array_merge($caBundlePaths, $otherLocations); + + foreach ($caBundlePaths as $caBundle) { + if ($caBundle && self::caFileUsable($caBundle, $logger)) { + return self::$caPath = $caBundle; + } + + if ($caBundle && self::caDirUsable($caBundle, $logger)) { + return self::$caPath = $caBundle; + } + } + + return self::$caPath = static::getBundledCaBundlePath(); // Bundled CA file, last resort + } + + /** + * Returns the path to the bundled CA file + * + * In case you don't want to trust the user or the system, you can use this directly + * + * @return string path to a CA bundle file + */ + public static function getBundledCaBundlePath() + { + $caBundleFile = __DIR__.'/../res/cacert.pem'; + + // cURL does not understand 'phar://' paths + // see https://github.com/composer/ca-bundle/issues/10 + if (0 === strpos($caBundleFile, 'phar://')) { + $tempCaBundleFile = tempnam(sys_get_temp_dir(), 'openssl-ca-bundle-'); + if (false === $tempCaBundleFile) { + throw new \RuntimeException('Could not create a temporary file to store the bundled CA file'); + } + + file_put_contents( + $tempCaBundleFile, + file_get_contents($caBundleFile) + ); + + register_shutdown_function(function() use ($tempCaBundleFile) { + @unlink($tempCaBundleFile); + }); + + $caBundleFile = $tempCaBundleFile; + } + + return $caBundleFile; + } + + /** + * Validates a CA file using opensl_x509_parse only if it is safe to use + * + * @param string $filename + * @param LoggerInterface $logger optional logger for information about which CA files were loaded + * + * @return bool + */ + public static function validateCaFile($filename, LoggerInterface $logger = null) + { + static $warned = false; + + if (isset(self::$caFileValidity[$filename])) { + return self::$caFileValidity[$filename]; + } + + $contents = file_get_contents($filename); + + // assume the CA is valid if php is vulnerable to + // https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html + if (!static::isOpensslParseSafe()) { + if (!$warned && $logger) { + $logger->warning(sprintf( + 'Your version of PHP, %s, is affected by CVE-2013-6420 and cannot safely perform certificate validation, we strongly suggest you upgrade.', + PHP_VERSION + )); + $warned = true; + } + + $isValid = !empty($contents); + } elseif (is_string($contents) && strlen($contents) > 0) { + $contents = preg_replace("/^(\\-+(?:BEGIN|END))\\s+TRUSTED\\s+(CERTIFICATE\\-+)\$/m", '$1 $2', $contents); + if (null === $contents) { + // regex extraction failed + $isValid = false; + } else { + $isValid = (bool) openssl_x509_parse($contents); + } + } else { + $isValid = false; + } + + if ($logger) { + $logger->debug('Checked CA file '.realpath($filename).': '.($isValid ? 'valid' : 'invalid')); + } + + return self::$caFileValidity[$filename] = $isValid; + } + + /** + * Test if it is safe to use the PHP function openssl_x509_parse(). + * + * This checks if OpenSSL extensions is vulnerable to remote code execution + * via the exploit documented as CVE-2013-6420. + * + * @return bool + */ + public static function isOpensslParseSafe() + { + if (null !== self::$useOpensslParse) { + return self::$useOpensslParse; + } + + if (PHP_VERSION_ID >= 50600) { + return self::$useOpensslParse = true; + } + + // Vulnerable: + // PHP 5.3.0 - PHP 5.3.27 + // PHP 5.4.0 - PHP 5.4.22 + // PHP 5.5.0 - PHP 5.5.6 + if ( + (PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328) + || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423) + || PHP_VERSION_ID >= 50507 + ) { + // This version of PHP has the fix for CVE-2013-6420 applied. + return self::$useOpensslParse = true; + } + + if (defined('PHP_WINDOWS_VERSION_BUILD')) { + // Windows is probably insecure in this case. + return self::$useOpensslParse = false; + } + + $compareDistroVersionPrefix = function ($prefix, $fixedVersion) { + $regex = '{^'.preg_quote($prefix).'([0-9]+)$}'; + + if (preg_match($regex, PHP_VERSION, $m)) { + return ((int) $m[1]) >= $fixedVersion; + } + + return false; + }; + + // Hard coded list of PHP distributions with the fix backported. + if ( + $compareDistroVersionPrefix('5.3.3-7+squeeze', 18) // Debian 6 (Squeeze) + || $compareDistroVersionPrefix('5.4.4-14+deb7u', 7) // Debian 7 (Wheezy) + || $compareDistroVersionPrefix('5.3.10-1ubuntu3.', 9) // Ubuntu 12.04 (Precise) + ) { + return self::$useOpensslParse = true; + } + + // Symfony Process component is missing so we assume it is unsafe at this point + if (!class_exists('Symfony\Component\Process\PhpProcess')) { + return self::$useOpensslParse = false; + } + + // This is where things get crazy, because distros backport security + // fixes the chances are on NIX systems the fix has been applied but + // it's not possible to verify that from the PHP version. + // + // To verify exec a new PHP process and run the issue testcase with + // known safe input that replicates the bug. + + // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415 + // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593 + $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K'; + $script = <<<'EOT' + +error_reporting(-1); +$info = openssl_x509_parse(base64_decode('%s')); +var_dump(PHP_VERSION, $info['issuer']['emailAddress'], $info['validFrom_time_t']); + +EOT; + $script = '<'."?php\n".sprintf($script, $cert); + + try { + $process = new PhpProcess($script); + $process->mustRun(); + } catch (\Exception $e) { + // In the case of any exceptions just accept it is not possible to + // determine the safety of openssl_x509_parse and bail out. + return self::$useOpensslParse = false; + } + + $output = preg_split('{\r?\n}', trim($process->getOutput())); + $errorOutput = trim($process->getErrorOutput()); + + if ( + is_array($output) + && count($output) === 3 + && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION) + && $output[1] === 'string(27) "stefan.esser@sektioneins.de"' + && $output[2] === 'int(-1)' + && preg_match('{openssl_x509_parse\(\): illegal (?:ASN1 data type for|length in) timestamp in - on line \d+}', $errorOutput) + ) { + // This PHP has the fix backported probably by a distro security team. + return self::$useOpensslParse = true; + } + + return self::$useOpensslParse = false; + } + + /** + * Resets the static caches + * @return void + */ + public static function reset() + { + self::$caFileValidity = array(); + self::$caPath = null; + self::$useOpensslParse = null; + } + + /** + * @param string $name + * @return string|false + */ + private static function getEnvVariable($name) + { + if (isset($_SERVER[$name])) { + return (string) $_SERVER[$name]; + } + + if (PHP_SAPI === 'cli' && ($value = getenv($name)) !== false && $value !== null) { + return (string) $value; + } + + return false; + } + + /** + * @param string|false $certFile + * @param LoggerInterface|null $logger + * @return bool + */ + private static function caFileUsable($certFile, LoggerInterface $logger = null) + { + return $certFile + && static::isFile($certFile, $logger) + && static::isReadable($certFile, $logger) + && static::validateCaFile($certFile, $logger); + } + + /** + * @param string|false $certDir + * @param LoggerInterface|null $logger + * @return bool + */ + private static function caDirUsable($certDir, LoggerInterface $logger = null) + { + return $certDir + && static::isDir($certDir, $logger) + && static::isReadable($certDir, $logger) + && static::glob($certDir . '/*', $logger); + } + + /** + * @param string $certFile + * @param LoggerInterface|null $logger + * @return bool + */ + private static function isFile($certFile, LoggerInterface $logger = null) + { + $isFile = @is_file($certFile); + if (!$isFile && $logger) { + $logger->debug(sprintf('Checked CA file %s does not exist or it is not a file.', $certFile)); + } + + return $isFile; + } + + /** + * @param string $certDir + * @param LoggerInterface|null $logger + * @return bool + */ + private static function isDir($certDir, LoggerInterface $logger = null) + { + $isDir = @is_dir($certDir); + if (!$isDir && $logger) { + $logger->debug(sprintf('Checked directory %s does not exist or it is not a directory.', $certDir)); + } + + return $isDir; + } + + /** + * @param string $certFileOrDir + * @param LoggerInterface|null $logger + * @return bool + */ + private static function isReadable($certFileOrDir, LoggerInterface $logger = null) + { + $isReadable = @is_readable($certFileOrDir); + if (!$isReadable && $logger) { + $logger->debug(sprintf('Checked file or directory %s is not readable.', $certFileOrDir)); + } + + return $isReadable; + } + + /** + * @param string $pattern + * @param LoggerInterface|null $logger + * @return bool + */ + private static function glob($pattern, LoggerInterface $logger = null) + { + $certs = glob($pattern); + if ($certs === false) { + if ($logger) { + $logger->debug(sprintf("An error occurred while trying to find certificates for pattern: %s", $pattern)); + } + return false; + } + + if (count($certs) === 0) { + if ($logger) { + $logger->debug(sprintf("No CA files found for pattern: %s", $pattern)); + } + return false; + } + + return true; + } +} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json new file mode 100644 index 000000000..4a5ee2dcf --- /dev/null +++ b/vendor/composer/installed.json @@ -0,0 +1,1166 @@ +{ + "packages": [ + { + "name": "brick/math", + "version": "0.11.0", + "version_normalized": "0.11.0.0", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478", + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "5.0.0" + }, + "time": "2023-01-15T23:15:59+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "brick", + "math" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.11.0" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "install-path": "../brick/math" + }, + { + "name": "buckaroo/sdk", + "version": "1.8.1", + "version_normalized": "1.8.1.0", + "source": { + "type": "git", + "url": "https://github.com/buckaroo-it/BuckarooSDK_PHP.git", + "reference": "2760da82ae038337f736e842133ed532d43cf92f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/buckaroo-it/BuckarooSDK_PHP/zipball/2760da82ae038337f736e842133ed532d43cf92f", + "reference": "2760da82ae038337f736e842133ed532d43cf92f", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.3", + "ext-fileinfo": "*", + "ext-json": "*", + "ext-pcre": "*", + "guzzlehttp/guzzle": "^7.0", + "monolog/monolog": "^2.2|^3", + "php": ">=7.4|^8.0", + "ramsey/uuid": "^3.9.7|^4" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.13", + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "3.*", + "symfony/var-dumper": "^5.4.9", + "vlucas/phpdotenv": "^5.4" + }, + "time": "2023-10-24T11:04:13+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Buckaroo\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Buckaroo", + "email": "support@buckaroo.nl", + "homepage": "https://www.buckaroo.nl", + "role": "Developer" + } + ], + "description": "Buckaroo payment SDK", + "support": { + "issues": "https://github.com/buckaroo-it/BuckarooSDK_PHP/issues", + "source": "https://github.com/buckaroo-it/BuckarooSDK_PHP/tree/1.8.1" + }, + "install-path": "../buckaroo/sdk" + }, + { + "name": "composer/ca-bundle", + "version": "1.3.7", + "version_normalized": "1.3.7.0", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "76e46335014860eec1aa5a724799a00a2e47cc85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/76e46335014860eec1aa5a724799a00a2e47cc85", + "reference": "76e46335014860eec1aa5a724799a00a2e47cc85", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.55", + "psr/log": "^1.0", + "symfony/phpunit-bridge": "^4.2 || ^5", + "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0 || ^6.0" + }, + "time": "2023-08-30T09:31:38+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues", + "source": "https://github.com/composer/ca-bundle/tree/1.3.7" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "install-path": "./ca-bundle" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.8.0", + "version_normalized": "7.8.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9", + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0.1", + "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "ext-curl": "*", + "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "time": "2023-08-27T10:20:53+00:00", + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.8.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "install-path": "../guzzlehttp/guzzle" + }, + { + "name": "guzzlehttp/promises", + "version": "2.0.1", + "version_normalized": "2.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "111166291a0f8130081195ac4556a5587d7f1b5d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d", + "reference": "111166291a0f8130081195ac4556a5587d7f1b5d", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "time": "2023-08-03T15:11:55+00:00", + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "install-path": "../guzzlehttp/promises" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.6.1", + "version_normalized": "2.6.1.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727", + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "time": "2023-08-27T10:13:57+00:00", + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.6.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "install-path": "../guzzlehttp/psr7" + }, + { + "name": "monolog/monolog", + "version": "3.5.0", + "version_normalized": "3.5.0.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c915e2634718dbc8a4a15c61b0e62e7a44e14448", + "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.4", + "phpunit/phpunit": "^10.1", + "predis/predis": "^1.1 || ^2", + "ruflin/elastica": "^7", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "time": "2023-10-27T15:32:31+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/3.5.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "install-path": "../monolog/monolog" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "version_normalized": "1.0.3.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2023-09-23T14:17:50+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "install-path": "../psr/http-client" + }, + { + "name": "psr/http-factory", + "version": "1.0.2", + "version_normalized": "1.0.2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "e616d01114759c4c489f93b099585439f795fe35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2023-04-10T20:10:41+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + }, + "install-path": "../psr/http-factory" + }, + { + "name": "psr/http-message", + "version": "2.0", + "version_normalized": "2.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "time": "2023-04-04T09:54:51+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "install-path": "../psr/http-message" + }, + { + "name": "psr/log", + "version": "3.0.0", + "version_normalized": "3.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "time": "2021-07-14T16:46:02+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.0" + }, + "install-path": "../psr/log" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "version_normalized": "3.0.3.0", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "time": "2019-03-08T08:55:37+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "install-path": "../ralouphie/getallheaders" + }, + { + "name": "ramsey/collection", + "version": "2.0.0", + "version_normalized": "2.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.28.3", + "fakerphp/faker": "^1.21", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^1.0", + "mockery/mockery": "^1.5", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpcsstandards/phpcsutils": "^1.0.0-rc1", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18.4", + "ramsey/coding-standard": "^2.0.3", + "ramsey/conventional-commits": "^1.3", + "vimeo/psalm": "^5.4" + }, + "time": "2022-12-31T21:50:55+00:00", + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "install-path": "../ramsey/collection" + }, + { + "name": "ramsey/uuid", + "version": "4.7.4", + "version_normalized": "4.7.4.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "60a4c63ab724854332900504274f6150ff26d286" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/60a4c63ab724854332900504274f6150ff26d286", + "reference": "60a4c63ab724854332900504274f6150ff26d286", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "time": "2023-04-15T23:01:58+00:00", + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.7.4" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "install-path": "../ramsey/uuid" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.3.0", + "version_normalized": "3.3.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "time": "2023-05-23T14:45:45+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "install-path": "../symfony/deprecation-contracts" + } + ], + "dev": true, + "dev-package-names": [] +} diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php new file mode 100644 index 000000000..3eb7c07df --- /dev/null +++ b/vendor/composer/installed.php @@ -0,0 +1,188 @@ + array( + 'name' => 'buckaroo/prestashop', + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, + 'type' => 'prestashop-module', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev' => true, + ), + 'versions' => array( + 'brick/math' => array( + 'pretty_version' => '0.11.0', + 'version' => '0.11.0.0', + 'reference' => '0ad82ce168c82ba30d1c01ec86116ab52f589478', + 'type' => 'library', + 'install_path' => __DIR__ . '/../brick/math', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'buckaroo/prestashop' => array( + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => NULL, + 'type' => 'prestashop-module', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'buckaroo/sdk' => array( + 'pretty_version' => '1.8.1', + 'version' => '1.8.1.0', + 'reference' => '2760da82ae038337f736e842133ed532d43cf92f', + 'type' => 'library', + 'install_path' => __DIR__ . '/../buckaroo/sdk', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'composer/ca-bundle' => array( + 'pretty_version' => '1.3.7', + 'version' => '1.3.7.0', + 'reference' => '76e46335014860eec1aa5a724799a00a2e47cc85', + 'type' => 'library', + 'install_path' => __DIR__ . '/./ca-bundle', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'guzzlehttp/guzzle' => array( + 'pretty_version' => '7.8.0', + 'version' => '7.8.0.0', + 'reference' => '1110f66a6530a40fe7aea0378fe608ee2b2248f9', + 'type' => 'library', + 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'guzzlehttp/promises' => array( + 'pretty_version' => '2.0.1', + 'version' => '2.0.1.0', + 'reference' => '111166291a0f8130081195ac4556a5587d7f1b5d', + 'type' => 'library', + 'install_path' => __DIR__ . '/../guzzlehttp/promises', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'guzzlehttp/psr7' => array( + 'pretty_version' => '2.6.1', + 'version' => '2.6.1.0', + 'reference' => 'be45764272e8873c72dbe3d2edcfdfcc3bc9f727', + 'type' => 'library', + 'install_path' => __DIR__ . '/../guzzlehttp/psr7', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'monolog/monolog' => array( + 'pretty_version' => '3.5.0', + 'version' => '3.5.0.0', + 'reference' => 'c915e2634718dbc8a4a15c61b0e62e7a44e14448', + 'type' => 'library', + 'install_path' => __DIR__ . '/../monolog/monolog', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-client' => array( + 'pretty_version' => '1.0.3', + 'version' => '1.0.3.0', + 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-client', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-client-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'psr/http-factory' => array( + 'pretty_version' => '1.0.2', + 'version' => '1.0.2.0', + 'reference' => 'e616d01114759c4c489f93b099585439f795fe35', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-factory', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-factory-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'psr/http-message' => array( + 'pretty_version' => '2.0', + 'version' => '2.0.0.0', + 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-message', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-message-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'psr/log' => array( + 'pretty_version' => '3.0.0', + 'version' => '3.0.0.0', + 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/log', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/log-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '3.0.0', + ), + ), + 'ralouphie/getallheaders' => array( + 'pretty_version' => '3.0.3', + 'version' => '3.0.3.0', + 'reference' => '120b605dfeb996808c31b6477290a714d356e822', + 'type' => 'library', + 'install_path' => __DIR__ . '/../ralouphie/getallheaders', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'ramsey/collection' => array( + 'pretty_version' => '2.0.0', + 'version' => '2.0.0.0', + 'reference' => 'a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5', + 'type' => 'library', + 'install_path' => __DIR__ . '/../ramsey/collection', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'ramsey/uuid' => array( + 'pretty_version' => '4.7.4', + 'version' => '4.7.4.0', + 'reference' => '60a4c63ab724854332900504274f6150ff26d286', + 'type' => 'library', + 'install_path' => __DIR__ . '/../ramsey/uuid', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'rhumsaa/uuid' => array( + 'dev_requirement' => false, + 'replaced' => array( + 0 => '4.7.4', + ), + ), + 'symfony/deprecation-contracts' => array( + 'pretty_version' => 'v3.3.0', + 'version' => '3.3.0.0', + 'reference' => '7c3aff79d10325257a001fcf92d991f24fc967cf', + 'type' => 'library', + 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', + 'aliases' => array(), + 'dev_requirement' => false, + ), + ), +); diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php new file mode 100644 index 000000000..4c3a5d68f --- /dev/null +++ b/vendor/composer/platform_check.php @@ -0,0 +1,26 @@ += 80100)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + } + } + trigger_error( + 'Composer detected issues in your platform: ' . implode(' ', $issues), + E_USER_ERROR + ); +} diff --git a/vendor/composer/tmp-136bec0972acc7dde59eb1184f0ab6ba.zip b/vendor/composer/tmp-136bec0972acc7dde59eb1184f0ab6ba.zip new file mode 100644 index 000000000..db0bbe537 Binary files /dev/null and b/vendor/composer/tmp-136bec0972acc7dde59eb1184f0ab6ba.zip differ diff --git a/vendor/composer/tmp-14ad4aab49137fed3dbfb26f8393f0ce.zip b/vendor/composer/tmp-14ad4aab49137fed3dbfb26f8393f0ce.zip new file mode 100644 index 000000000..a15873bf4 Binary files /dev/null and b/vendor/composer/tmp-14ad4aab49137fed3dbfb26f8393f0ce.zip differ diff --git a/vendor/composer/tmp-2fca0842eea36d4014d9c8940be87998.zip b/vendor/composer/tmp-2fca0842eea36d4014d9c8940be87998.zip new file mode 100644 index 000000000..16b65b968 Binary files /dev/null and b/vendor/composer/tmp-2fca0842eea36d4014d9c8940be87998.zip differ diff --git a/vendor/composer/tmp-4365b20398c8ef58a6b84dae2741f01b.zip b/vendor/composer/tmp-4365b20398c8ef58a6b84dae2741f01b.zip new file mode 100644 index 000000000..f8d538263 Binary files /dev/null and b/vendor/composer/tmp-4365b20398c8ef58a6b84dae2741f01b.zip differ diff --git a/vendor/composer/tmp-6c30a5fb1defa6c5963fb34bcf041b00.zip b/vendor/composer/tmp-6c30a5fb1defa6c5963fb34bcf041b00.zip new file mode 100644 index 000000000..0bfe2a1c9 Binary files /dev/null and b/vendor/composer/tmp-6c30a5fb1defa6c5963fb34bcf041b00.zip differ diff --git a/vendor/composer/tmp-7562754069dccc9941d94f5780f7647b.zip b/vendor/composer/tmp-7562754069dccc9941d94f5780f7647b.zip new file mode 100644 index 000000000..94d6dc021 Binary files /dev/null and b/vendor/composer/tmp-7562754069dccc9941d94f5780f7647b.zip differ diff --git a/vendor/composer/tmp-7a9700e0483875768ff5ff924c391775.zip b/vendor/composer/tmp-7a9700e0483875768ff5ff924c391775.zip new file mode 100644 index 000000000..c5eed17fa Binary files /dev/null and b/vendor/composer/tmp-7a9700e0483875768ff5ff924c391775.zip differ diff --git a/vendor/composer/tmp-7d04ad7413d3316a8ed20525ca58e1ab.zip b/vendor/composer/tmp-7d04ad7413d3316a8ed20525ca58e1ab.zip new file mode 100644 index 000000000..729dc79f0 Binary files /dev/null and b/vendor/composer/tmp-7d04ad7413d3316a8ed20525ca58e1ab.zip differ diff --git a/vendor/composer/tmp-a0bb99dc1dba037d21c6ba0f90a7d745.zip b/vendor/composer/tmp-a0bb99dc1dba037d21c6ba0f90a7d745.zip new file mode 100644 index 000000000..1e2aba0ed Binary files /dev/null and b/vendor/composer/tmp-a0bb99dc1dba037d21c6ba0f90a7d745.zip differ diff --git a/vendor/composer/tmp-af988497b63ce13317d7661308f1c60e.zip b/vendor/composer/tmp-af988497b63ce13317d7661308f1c60e.zip new file mode 100644 index 000000000..e9b4590ac Binary files /dev/null and b/vendor/composer/tmp-af988497b63ce13317d7661308f1c60e.zip differ diff --git a/vendor/composer/tmp-b81e206e6bb72922033f1ef0de75651e.zip b/vendor/composer/tmp-b81e206e6bb72922033f1ef0de75651e.zip new file mode 100644 index 000000000..e972a1409 Binary files /dev/null and b/vendor/composer/tmp-b81e206e6bb72922033f1ef0de75651e.zip differ diff --git a/vendor/composer/tmp-da7853fe4b7ab7cdd76e63f21824f195.zip b/vendor/composer/tmp-da7853fe4b7ab7cdd76e63f21824f195.zip new file mode 100644 index 000000000..e651dca7a Binary files /dev/null and b/vendor/composer/tmp-da7853fe4b7ab7cdd76e63f21824f195.zip differ diff --git a/vendor/composer/tmp-ec5661735dae2505f5ed0eeebffd891f.zip b/vendor/composer/tmp-ec5661735dae2505f5ed0eeebffd891f.zip new file mode 100644 index 000000000..742bcff25 Binary files /dev/null and b/vendor/composer/tmp-ec5661735dae2505f5ed0eeebffd891f.zip differ diff --git a/vendor/composer/tmp-fc5850406a3a7b041b39db6585d05dd7.zip b/vendor/composer/tmp-fc5850406a3a7b041b39db6585d05dd7.zip new file mode 100644 index 000000000..114b047fb Binary files /dev/null and b/vendor/composer/tmp-fc5850406a3a7b041b39db6585d05dd7.zip differ diff --git a/vendor/composer/tmp-ffc3a0b5a42c935aca117cb366bd8a55.zip b/vendor/composer/tmp-ffc3a0b5a42c935aca117cb366bd8a55.zip new file mode 100644 index 000000000..a56cd1db4 Binary files /dev/null and b/vendor/composer/tmp-ffc3a0b5a42c935aca117cb366bd8a55.zip differ diff --git a/vendor/guzzlehttp/guzzle/CHANGELOG.md b/vendor/guzzlehttp/guzzle/CHANGELOG.md new file mode 100644 index 000000000..990b86c9e --- /dev/null +++ b/vendor/guzzlehttp/guzzle/CHANGELOG.md @@ -0,0 +1,1624 @@ +# Change Log + +Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version. + + +## 7.8.0 - 2023-08-27 + +### Added + +- Support for PHP 8.3 +- Added automatic closing of handles on `CurlFactory` object destruction + + +## 7.7.1 - 2023-08-27 + +### Changed + +- Remove the need for `AllowDynamicProperties` in `CurlMultiHandler` + + +## 7.7.0 - 2023-05-21 + +### Added + +- Support `guzzlehttp/promises` v2 + + +## 7.6.1 - 2023-05-15 + +### Fixed + +- Fix `SetCookie::fromString` MaxAge deprecation warning and skip invalid MaxAge values + + +## 7.6.0 - 2023-05-14 + +### Added + +- Support for setting the minimum TLS version in a unified way +- Apply on request the version set in options parameters + + +## 7.5.2 - 2023-05-14 + +### Fixed + +- Fixed set cookie constructor validation +- Fixed handling of files with `'0'` body + +### Changed + +- Corrected docs and default connect timeout value to 300 seconds + + +## 7.5.1 - 2023-04-17 + +### Fixed + +- Fixed `NO_PROXY` settings so that setting the `proxy` option to `no` overrides the env variable + +### Changed + +- Adjusted `guzzlehttp/psr7` version constraint to `^1.9.1 || ^2.4.5` + + +## 7.5.0 - 2022-08-28 + +### Added + +- Support PHP 8.2 +- Add request to delay closure params + + +## 7.4.5 - 2022-06-20 + +### Fixed + +* Fix change in port should be considered a change in origin +* Fix `CURLOPT_HTTPAUTH` option not cleared on change of origin + + +## 7.4.4 - 2022-06-09 + +### Fixed + +* Fix failure to strip Authorization header on HTTP downgrade +* Fix failure to strip the Cookie header on change in host or HTTP downgrade + + +## 7.4.3 - 2022-05-25 + +### Fixed + +* Fix cross-domain cookie leakage + + +## 7.4.2 - 2022-03-20 + +### Fixed + +- Remove curl auth on cross-domain redirects to align with the Authorization HTTP header +- Reject non-HTTP schemes in StreamHandler +- Set a default ssl.peer_name context in StreamHandler to allow `force_ip_resolve` + + +## 7.4.1 - 2021-12-06 + +### Changed + +- Replaced implicit URI to string coercion [#2946](https://github.com/guzzle/guzzle/pull/2946) +- Allow `symfony/deprecation-contracts` version 3 [#2961](https://github.com/guzzle/guzzle/pull/2961) + +### Fixed + +- Only close curl handle if it's done [#2950](https://github.com/guzzle/guzzle/pull/2950) + + +## 7.4.0 - 2021-10-18 + +### Added + +- Support PHP 8.1 [#2929](https://github.com/guzzle/guzzle/pull/2929), [#2939](https://github.com/guzzle/guzzle/pull/2939) +- Support `psr/log` version 2 and 3 [#2943](https://github.com/guzzle/guzzle/pull/2943) + +### Fixed + +- Make sure we always call `restore_error_handler()` [#2915](https://github.com/guzzle/guzzle/pull/2915) +- Fix progress parameter type compatibility between the cURL and stream handlers [#2936](https://github.com/guzzle/guzzle/pull/2936) +- Throw `InvalidArgumentException` when an incorrect `headers` array is provided [#2916](https://github.com/guzzle/guzzle/pull/2916), [#2942](https://github.com/guzzle/guzzle/pull/2942) + +### Changed + +- Be more strict with types [#2914](https://github.com/guzzle/guzzle/pull/2914), [#2917](https://github.com/guzzle/guzzle/pull/2917), [#2919](https://github.com/guzzle/guzzle/pull/2919), [#2945](https://github.com/guzzle/guzzle/pull/2945) + + +## 7.3.0 - 2021-03-23 + +### Added + +- Support for DER and P12 certificates [#2413](https://github.com/guzzle/guzzle/pull/2413) +- Support the cURL (http://) scheme for StreamHandler proxies [#2850](https://github.com/guzzle/guzzle/pull/2850) +- Support for `guzzlehttp/psr7:^2.0` [#2878](https://github.com/guzzle/guzzle/pull/2878) + +### Fixed + +- Handle exceptions on invalid header consistently between PHP versions and handlers [#2872](https://github.com/guzzle/guzzle/pull/2872) + + +## 7.2.0 - 2020-10-10 + +### Added + +- Support for PHP 8 [#2712](https://github.com/guzzle/guzzle/pull/2712), [#2715](https://github.com/guzzle/guzzle/pull/2715), [#2789](https://github.com/guzzle/guzzle/pull/2789) +- Support passing a body summarizer to the http errors middleware [#2795](https://github.com/guzzle/guzzle/pull/2795) + +### Fixed + +- Handle exceptions during response creation [#2591](https://github.com/guzzle/guzzle/pull/2591) +- Fix CURLOPT_ENCODING not to be overwritten [#2595](https://github.com/guzzle/guzzle/pull/2595) +- Make sure the Request always has a body object [#2804](https://github.com/guzzle/guzzle/pull/2804) + +### Changed + +- The `TooManyRedirectsException` has a response [#2660](https://github.com/guzzle/guzzle/pull/2660) +- Avoid "functions" from dependencies [#2712](https://github.com/guzzle/guzzle/pull/2712) + +### Deprecated + +- Using environment variable GUZZLE_CURL_SELECT_TIMEOUT [#2786](https://github.com/guzzle/guzzle/pull/2786) + + +## 7.1.1 - 2020-09-30 + +### Fixed + +- Incorrect EOF detection for response body streams on Windows. + +### Changed + +- We dont connect curl `sink` on HEAD requests. +- Removed some PHP 5 workarounds + + +## 7.1.0 - 2020-09-22 + +### Added + +- `GuzzleHttp\MessageFormatterInterface` + +### Fixed + +- Fixed issue that caused cookies with no value not to be stored. +- On redirects, we allow all safe methods like GET, HEAD and OPTIONS. +- Fixed logging on empty responses. +- Make sure MessageFormatter::format returns string + +### Deprecated + +- All functions in `GuzzleHttp` has been deprecated. Use static methods on `Utils` instead. +- `ClientInterface::getConfig()` +- `Client::getConfig()` +- `Client::__call()` +- `Utils::defaultCaBundle()` +- `CurlFactory::LOW_CURL_VERSION_NUMBER` + + +## 7.0.1 - 2020-06-27 + +* Fix multiply defined functions fatal error [#2699](https://github.com/guzzle/guzzle/pull/2699) + + +## 7.0.0 - 2020-06-27 + +No changes since 7.0.0-rc1. + + +## 7.0.0-rc1 - 2020-06-15 + +### Changed + +* Use error level for logging errors in Middleware [#2629](https://github.com/guzzle/guzzle/pull/2629) +* Disabled IDN support by default and require ext-intl to use it [#2675](https://github.com/guzzle/guzzle/pull/2675) + + +## 7.0.0-beta2 - 2020-05-25 + +### Added + +* Using `Utils` class instead of functions in the `GuzzleHttp` namespace. [#2546](https://github.com/guzzle/guzzle/pull/2546) +* `ClientInterface::MAJOR_VERSION` [#2583](https://github.com/guzzle/guzzle/pull/2583) + +### Changed + +* Avoid the `getenv` function when unsafe [#2531](https://github.com/guzzle/guzzle/pull/2531) +* Added real client methods [#2529](https://github.com/guzzle/guzzle/pull/2529) +* Avoid functions due to global install conflicts [#2546](https://github.com/guzzle/guzzle/pull/2546) +* Use Symfony intl-idn polyfill [#2550](https://github.com/guzzle/guzzle/pull/2550) +* Adding methods for HTTP verbs like `Client::get()`, `Client::head()`, `Client::patch()` etc [#2529](https://github.com/guzzle/guzzle/pull/2529) +* `ConnectException` extends `TransferException` [#2541](https://github.com/guzzle/guzzle/pull/2541) +* Updated the default User Agent to "GuzzleHttp/7" [#2654](https://github.com/guzzle/guzzle/pull/2654) + +### Fixed + +* Various intl icu issues [#2626](https://github.com/guzzle/guzzle/pull/2626) + +### Removed + +* Pool option `pool_size` [#2528](https://github.com/guzzle/guzzle/pull/2528) + + +## 7.0.0-beta1 - 2019-12-30 + +The diff might look very big but 95% of Guzzle users will be able to upgrade without modification. +Please see [the upgrade document](UPGRADING.md) that describes all BC breaking changes. + +### Added + +* Implement PSR-18 and dropped PHP 5 support [#2421](https://github.com/guzzle/guzzle/pull/2421) [#2474](https://github.com/guzzle/guzzle/pull/2474) +* PHP 7 types [#2442](https://github.com/guzzle/guzzle/pull/2442) [#2449](https://github.com/guzzle/guzzle/pull/2449) [#2466](https://github.com/guzzle/guzzle/pull/2466) [#2497](https://github.com/guzzle/guzzle/pull/2497) [#2499](https://github.com/guzzle/guzzle/pull/2499) +* IDN support for redirects [2424](https://github.com/guzzle/guzzle/pull/2424) + +### Changed + +* Dont allow passing null as third argument to `BadResponseException::__construct()` [#2427](https://github.com/guzzle/guzzle/pull/2427) +* Use SAPI constant instead of method call [#2450](https://github.com/guzzle/guzzle/pull/2450) +* Use native function invocation [#2444](https://github.com/guzzle/guzzle/pull/2444) +* Better defaults for PHP installations with old ICU lib [2454](https://github.com/guzzle/guzzle/pull/2454) +* Added visibility to all constants [#2462](https://github.com/guzzle/guzzle/pull/2462) +* Dont allow passing `null` as URI to `Client::request()` and `Client::requestAsync()` [#2461](https://github.com/guzzle/guzzle/pull/2461) +* Widen the exception argument to throwable [#2495](https://github.com/guzzle/guzzle/pull/2495) + +### Fixed + +* Logging when Promise rejected with a string [#2311](https://github.com/guzzle/guzzle/pull/2311) + +### Removed + +* Class `SeekException` [#2162](https://github.com/guzzle/guzzle/pull/2162) +* `RequestException::getResponseBodySummary()` [#2425](https://github.com/guzzle/guzzle/pull/2425) +* `CookieJar::getCookieValue()` [#2433](https://github.com/guzzle/guzzle/pull/2433) +* `uri_template()` and `UriTemplate` [#2440](https://github.com/guzzle/guzzle/pull/2440) +* Request options `save_to` and `exceptions` [#2464](https://github.com/guzzle/guzzle/pull/2464) + + +## 6.5.2 - 2019-12-23 + +* idn_to_ascii() fix for old PHP versions [#2489](https://github.com/guzzle/guzzle/pull/2489) + + +## 6.5.1 - 2019-12-21 + +* Better defaults for PHP installations with old ICU lib [#2454](https://github.com/guzzle/guzzle/pull/2454) +* IDN support for redirects [#2424](https://github.com/guzzle/guzzle/pull/2424) + + +## 6.5.0 - 2019-12-07 + +* Improvement: Added support for reset internal queue in MockHandler. [#2143](https://github.com/guzzle/guzzle/pull/2143) +* Improvement: Added support to pass arbitrary options to `curl_multi_init`. [#2287](https://github.com/guzzle/guzzle/pull/2287) +* Fix: Gracefully handle passing `null` to the `header` option. [#2132](https://github.com/guzzle/guzzle/pull/2132) +* Fix: `RetryMiddleware` did not do exponential delay between retires due unit mismatch. [#2132](https://github.com/guzzle/guzzle/pull/2132) +* Fix: Prevent undefined offset when using array for ssl_key options. [#2348](https://github.com/guzzle/guzzle/pull/2348) +* Deprecated `ClientInterface::VERSION` + + +## 6.4.1 - 2019-10-23 + +* No `guzzle.phar` was created in 6.4.0 due expired API token. This release will fix that +* Added `parent::__construct()` to `FileCookieJar` and `SessionCookieJar` + + +## 6.4.0 - 2019-10-23 + +* Improvement: Improved error messages when using curl < 7.21.2 [#2108](https://github.com/guzzle/guzzle/pull/2108) +* Fix: Test if response is readable before returning a summary in `RequestException::getResponseBodySummary()` [#2081](https://github.com/guzzle/guzzle/pull/2081) +* Fix: Add support for GUZZLE_CURL_SELECT_TIMEOUT environment variable [#2161](https://github.com/guzzle/guzzle/pull/2161) +* Improvement: Added `GuzzleHttp\Exception\InvalidArgumentException` [#2163](https://github.com/guzzle/guzzle/pull/2163) +* Improvement: Added `GuzzleHttp\_current_time()` to use `hrtime()` if that function exists. [#2242](https://github.com/guzzle/guzzle/pull/2242) +* Improvement: Added curl's `appconnect_time` in `TransferStats` [#2284](https://github.com/guzzle/guzzle/pull/2284) +* Improvement: Make GuzzleException extend Throwable wherever it's available [#2273](https://github.com/guzzle/guzzle/pull/2273) +* Fix: Prevent concurrent writes to file when saving `CookieJar` [#2335](https://github.com/guzzle/guzzle/pull/2335) +* Improvement: Update `MockHandler` so we can test transfer time [#2362](https://github.com/guzzle/guzzle/pull/2362) + + +## 6.3.3 - 2018-04-22 + +* Fix: Default headers when decode_content is specified + + +## 6.3.2 - 2018-03-26 + +* Fix: Release process + + +## 6.3.1 - 2018-03-26 + +* Bug fix: Parsing 0 epoch expiry times in cookies [#2014](https://github.com/guzzle/guzzle/pull/2014) +* Improvement: Better ConnectException detection [#2012](https://github.com/guzzle/guzzle/pull/2012) +* Bug fix: Malformed domain that contains a "/" [#1999](https://github.com/guzzle/guzzle/pull/1999) +* Bug fix: Undefined offset when a cookie has no first key-value pair [#1998](https://github.com/guzzle/guzzle/pull/1998) +* Improvement: Support PHPUnit 6 [#1953](https://github.com/guzzle/guzzle/pull/1953) +* Bug fix: Support empty headers [#1915](https://github.com/guzzle/guzzle/pull/1915) +* Bug fix: Ignore case during header modifications [#1916](https://github.com/guzzle/guzzle/pull/1916) + ++ Minor code cleanups, documentation fixes and clarifications. + + +## 6.3.0 - 2017-06-22 + +* Feature: force IP resolution (ipv4 or ipv6) [#1608](https://github.com/guzzle/guzzle/pull/1608), [#1659](https://github.com/guzzle/guzzle/pull/1659) +* Improvement: Don't include summary in exception message when body is empty [#1621](https://github.com/guzzle/guzzle/pull/1621) +* Improvement: Handle `on_headers` option in MockHandler [#1580](https://github.com/guzzle/guzzle/pull/1580) +* Improvement: Added SUSE Linux CA path [#1609](https://github.com/guzzle/guzzle/issues/1609) +* Improvement: Use class reference for getting the name of the class instead of using hardcoded strings [#1641](https://github.com/guzzle/guzzle/pull/1641) +* Feature: Added `read_timeout` option [#1611](https://github.com/guzzle/guzzle/pull/1611) +* Bug fix: PHP 7.x fixes [#1685](https://github.com/guzzle/guzzle/pull/1685), [#1686](https://github.com/guzzle/guzzle/pull/1686), [#1811](https://github.com/guzzle/guzzle/pull/1811) +* Deprecation: BadResponseException instantiation without a response [#1642](https://github.com/guzzle/guzzle/pull/1642) +* Feature: Added NTLM auth [#1569](https://github.com/guzzle/guzzle/pull/1569) +* Feature: Track redirect HTTP status codes [#1711](https://github.com/guzzle/guzzle/pull/1711) +* Improvement: Check handler type during construction [#1745](https://github.com/guzzle/guzzle/pull/1745) +* Improvement: Always include the Content-Length if there's a body [#1721](https://github.com/guzzle/guzzle/pull/1721) +* Feature: Added convenience method to access a cookie by name [#1318](https://github.com/guzzle/guzzle/pull/1318) +* Bug fix: Fill `CURLOPT_CAPATH` and `CURLOPT_CAINFO` properly [#1684](https://github.com/guzzle/guzzle/pull/1684) +* Improvement: Use `\GuzzleHttp\Promise\rejection_for` function instead of object init [#1827](https://github.com/guzzle/guzzle/pull/1827) + ++ Minor code cleanups, documentation fixes and clarifications. + + +## 6.2.3 - 2017-02-28 + +* Fix deprecations with guzzle/psr7 version 1.4 + + +## 6.2.2 - 2016-10-08 + +* Allow to pass nullable Response to delay callable +* Only add scheme when host is present +* Fix drain case where content-length is the literal string zero +* Obfuscate in-URL credentials in exceptions + + +## 6.2.1 - 2016-07-18 + +* Address HTTP_PROXY security vulnerability, CVE-2016-5385: + https://httpoxy.org/ +* Fixing timeout bug with StreamHandler: + https://github.com/guzzle/guzzle/pull/1488 +* Only read up to `Content-Length` in PHP StreamHandler to avoid timeouts when + a server does not honor `Connection: close`. +* Ignore URI fragment when sending requests. + + +## 6.2.0 - 2016-03-21 + +* Feature: added `GuzzleHttp\json_encode` and `GuzzleHttp\json_decode`. + https://github.com/guzzle/guzzle/pull/1389 +* Bug fix: Fix sleep calculation when waiting for delayed requests. + https://github.com/guzzle/guzzle/pull/1324 +* Feature: More flexible history containers. + https://github.com/guzzle/guzzle/pull/1373 +* Bug fix: defer sink stream opening in StreamHandler. + https://github.com/guzzle/guzzle/pull/1377 +* Bug fix: do not attempt to escape cookie values. + https://github.com/guzzle/guzzle/pull/1406 +* Feature: report original content encoding and length on decoded responses. + https://github.com/guzzle/guzzle/pull/1409 +* Bug fix: rewind seekable request bodies before dispatching to cURL. + https://github.com/guzzle/guzzle/pull/1422 +* Bug fix: provide an empty string to `http_build_query` for HHVM workaround. + https://github.com/guzzle/guzzle/pull/1367 + + +## 6.1.1 - 2015-11-22 + +* Bug fix: Proxy::wrapSync() now correctly proxies to the appropriate handler + https://github.com/guzzle/guzzle/commit/911bcbc8b434adce64e223a6d1d14e9a8f63e4e4 +* Feature: HandlerStack is now more generic. + https://github.com/guzzle/guzzle/commit/f2102941331cda544745eedd97fc8fd46e1ee33e +* Bug fix: setting verify to false in the StreamHandler now disables peer + verification. https://github.com/guzzle/guzzle/issues/1256 +* Feature: Middleware now uses an exception factory, including more error + context. https://github.com/guzzle/guzzle/pull/1282 +* Feature: better support for disabled functions. + https://github.com/guzzle/guzzle/pull/1287 +* Bug fix: fixed regression where MockHandler was not using `sink`. + https://github.com/guzzle/guzzle/pull/1292 + + +## 6.1.0 - 2015-09-08 + +* Feature: Added the `on_stats` request option to provide access to transfer + statistics for requests. https://github.com/guzzle/guzzle/pull/1202 +* Feature: Added the ability to persist session cookies in CookieJars. + https://github.com/guzzle/guzzle/pull/1195 +* Feature: Some compatibility updates for Google APP Engine + https://github.com/guzzle/guzzle/pull/1216 +* Feature: Added support for NO_PROXY to prevent the use of a proxy based on + a simple set of rules. https://github.com/guzzle/guzzle/pull/1197 +* Feature: Cookies can now contain square brackets. + https://github.com/guzzle/guzzle/pull/1237 +* Bug fix: Now correctly parsing `=` inside of quotes in Cookies. + https://github.com/guzzle/guzzle/pull/1232 +* Bug fix: Cusotm cURL options now correctly override curl options of the + same name. https://github.com/guzzle/guzzle/pull/1221 +* Bug fix: Content-Type header is now added when using an explicitly provided + multipart body. https://github.com/guzzle/guzzle/pull/1218 +* Bug fix: Now ignoring Set-Cookie headers that have no name. +* Bug fix: Reason phrase is no longer cast to an int in some cases in the + cURL handler. https://github.com/guzzle/guzzle/pull/1187 +* Bug fix: Remove the Authorization header when redirecting if the Host + header changes. https://github.com/guzzle/guzzle/pull/1207 +* Bug fix: Cookie path matching fixes + https://github.com/guzzle/guzzle/issues/1129 +* Bug fix: Fixing the cURL `body_as_string` setting + https://github.com/guzzle/guzzle/pull/1201 +* Bug fix: quotes are no longer stripped when parsing cookies. + https://github.com/guzzle/guzzle/issues/1172 +* Bug fix: `form_params` and `query` now always uses the `&` separator. + https://github.com/guzzle/guzzle/pull/1163 +* Bug fix: Adding a Content-Length to PHP stream wrapper requests if not set. + https://github.com/guzzle/guzzle/pull/1189 + + +## 6.0.2 - 2015-07-04 + +* Fixed a memory leak in the curl handlers in which references to callbacks + were not being removed by `curl_reset`. +* Cookies are now extracted properly before redirects. +* Cookies now allow more character ranges. +* Decoded Content-Encoding responses are now modified to correctly reflect + their state if the encoding was automatically removed by a handler. This + means that the `Content-Encoding` header may be removed an the + `Content-Length` modified to reflect the message size after removing the + encoding. +* Added a more explicit error message when trying to use `form_params` and + `multipart` in the same request. +* Several fixes for HHVM support. +* Functions are now conditionally required using an additional level of + indirection to help with global Composer installations. + + +## 6.0.1 - 2015-05-27 + +* Fixed a bug with serializing the `query` request option where the `&` + separator was missing. +* Added a better error message for when `body` is provided as an array. Please + use `form_params` or `multipart` instead. +* Various doc fixes. + + +## 6.0.0 - 2015-05-26 + +* See the UPGRADING.md document for more information. +* Added `multipart` and `form_params` request options. +* Added `synchronous` request option. +* Added the `on_headers` request option. +* Fixed `expect` handling. +* No longer adding default middlewares in the client ctor. These need to be + present on the provided handler in order to work. +* Requests are no longer initiated when sending async requests with the + CurlMultiHandler. This prevents unexpected recursion from requests completing + while ticking the cURL loop. +* Removed the semantics of setting `default` to `true`. This is no longer + required now that the cURL loop is not ticked for async requests. +* Added request and response logging middleware. +* No longer allowing self signed certificates when using the StreamHandler. +* Ensuring that `sink` is valid if saving to a file. +* Request exceptions now include a "handler context" which provides handler + specific contextual information. +* Added `GuzzleHttp\RequestOptions` to allow request options to be applied + using constants. +* `$maxHandles` has been removed from CurlMultiHandler. +* `MultipartPostBody` is now part of the `guzzlehttp/psr7` package. + + +## 5.3.0 - 2015-05-19 + +* Mock now supports `save_to` +* Marked `AbstractRequestEvent::getTransaction()` as public. +* Fixed a bug in which multiple headers using different casing would overwrite + previous headers in the associative array. +* Added `Utils::getDefaultHandler()` +* Marked `GuzzleHttp\Client::getDefaultUserAgent` as deprecated. +* URL scheme is now always lowercased. + + +## 6.0.0-beta.1 + +* Requires PHP >= 5.5 +* Updated to use PSR-7 + * Requires immutable messages, which basically means an event based system + owned by a request instance is no longer possible. + * Utilizing the [Guzzle PSR-7 package](https://github.com/guzzle/psr7). + * Removed the dependency on `guzzlehttp/streams`. These stream abstractions + are available in the `guzzlehttp/psr7` package under the `GuzzleHttp\Psr7` + namespace. +* Added middleware and handler system + * Replaced the Guzzle event and subscriber system with a middleware system. + * No longer depends on RingPHP, but rather places the HTTP handlers directly + in Guzzle, operating on PSR-7 messages. + * Retry logic is now encapsulated in `GuzzleHttp\Middleware::retry`, which + means the `guzzlehttp/retry-subscriber` is now obsolete. + * Mocking responses is now handled using `GuzzleHttp\Handler\MockHandler`. +* Asynchronous responses + * No longer supports the `future` request option to send an async request. + Instead, use one of the `*Async` methods of a client (e.g., `requestAsync`, + `getAsync`, etc.). + * Utilizing `GuzzleHttp\Promise` instead of React's promise library to avoid + recursion required by chaining and forwarding react promises. See + https://github.com/guzzle/promises + * Added `requestAsync` and `sendAsync` to send request asynchronously. + * Added magic methods for `getAsync()`, `postAsync()`, etc. to send requests + asynchronously. +* Request options + * POST and form updates + * Added the `form_fields` and `form_files` request options. + * Removed the `GuzzleHttp\Post` namespace. + * The `body` request option no longer accepts an array for POST requests. + * The `exceptions` request option has been deprecated in favor of the + `http_errors` request options. + * The `save_to` request option has been deprecated in favor of `sink` request + option. +* Clients no longer accept an array of URI template string and variables for + URI variables. You will need to expand URI templates before passing them + into a client constructor or request method. +* Client methods `get()`, `post()`, `put()`, `patch()`, `options()`, etc. are + now magic methods that will send synchronous requests. +* Replaced `Utils.php` with plain functions in `functions.php`. +* Removed `GuzzleHttp\Collection`. +* Removed `GuzzleHttp\BatchResults`. Batched pool results are now returned as + an array. +* Removed `GuzzleHttp\Query`. Query string handling is now handled using an + associative array passed into the `query` request option. The query string + is serialized using PHP's `http_build_query`. If you need more control, you + can pass the query string in as a string. +* `GuzzleHttp\QueryParser` has been replaced with the + `GuzzleHttp\Psr7\parse_query`. + + +## 5.2.0 - 2015-01-27 + +* Added `AppliesHeadersInterface` to make applying headers to a request based + on the body more generic and not specific to `PostBodyInterface`. +* Reduced the number of stack frames needed to send requests. +* Nested futures are now resolved in the client rather than the RequestFsm +* Finishing state transitions is now handled in the RequestFsm rather than the + RingBridge. +* Added a guard in the Pool class to not use recursion for request retries. + + +## 5.1.0 - 2014-12-19 + +* Pool class no longer uses recursion when a request is intercepted. +* The size of a Pool can now be dynamically adjusted using a callback. + See https://github.com/guzzle/guzzle/pull/943. +* Setting a request option to `null` when creating a request with a client will + ensure that the option is not set. This allows you to overwrite default + request options on a per-request basis. + See https://github.com/guzzle/guzzle/pull/937. +* Added the ability to limit which protocols are allowed for redirects by + specifying a `protocols` array in the `allow_redirects` request option. +* Nested futures due to retries are now resolved when waiting for synchronous + responses. See https://github.com/guzzle/guzzle/pull/947. +* `"0"` is now an allowed URI path. See + https://github.com/guzzle/guzzle/pull/935. +* `Query` no longer typehints on the `$query` argument in the constructor, + allowing for strings and arrays. +* Exceptions thrown in the `end` event are now correctly wrapped with Guzzle + specific exceptions if necessary. + + +## 5.0.3 - 2014-11-03 + +This change updates query strings so that they are treated as un-encoded values +by default where the value represents an un-encoded value to send over the +wire. A Query object then encodes the value before sending over the wire. This +means that even value query string values (e.g., ":") are url encoded. This +makes the Query class match PHP's http_build_query function. However, if you +want to send requests over the wire using valid query string characters that do +not need to be encoded, then you can provide a string to Url::setQuery() and +pass true as the second argument to specify that the query string is a raw +string that should not be parsed or encoded (unless a call to getQuery() is +subsequently made, forcing the query-string to be converted into a Query +object). + + +## 5.0.2 - 2014-10-30 + +* Added a trailing `\r\n` to multipart/form-data payloads. See + https://github.com/guzzle/guzzle/pull/871 +* Added a `GuzzleHttp\Pool::send()` convenience method to match the docs. +* Status codes are now returned as integers. See + https://github.com/guzzle/guzzle/issues/881 +* No longer overwriting an existing `application/x-www-form-urlencoded` header + when sending POST requests, allowing for customized headers. See + https://github.com/guzzle/guzzle/issues/877 +* Improved path URL serialization. + + * No longer double percent-encoding characters in the path or query string if + they are already encoded. + * Now properly encoding the supplied path to a URL object, instead of only + encoding ' ' and '?'. + * Note: This has been changed in 5.0.3 to now encode query string values by + default unless the `rawString` argument is provided when setting the query + string on a URL: Now allowing many more characters to be present in the + query string without being percent encoded. See https://tools.ietf.org/html/rfc3986#appendix-A + + +## 5.0.1 - 2014-10-16 + +Bugfix release. + +* Fixed an issue where connection errors still returned response object in + error and end events event though the response is unusable. This has been + corrected so that a response is not returned in the `getResponse` method of + these events if the response did not complete. https://github.com/guzzle/guzzle/issues/867 +* Fixed an issue where transfer statistics were not being populated in the + RingBridge. https://github.com/guzzle/guzzle/issues/866 + + +## 5.0.0 - 2014-10-12 + +Adding support for non-blocking responses and some minor API cleanup. + +### New Features + +* Added support for non-blocking responses based on `guzzlehttp/guzzle-ring`. +* Added a public API for creating a default HTTP adapter. +* Updated the redirect plugin to be non-blocking so that redirects are sent + concurrently. Other plugins like this can now be updated to be non-blocking. +* Added a "progress" event so that you can get upload and download progress + events. +* Added `GuzzleHttp\Pool` which implements FutureInterface and transfers + requests concurrently using a capped pool size as efficiently as possible. +* Added `hasListeners()` to EmitterInterface. +* Removed `GuzzleHttp\ClientInterface::sendAll` and marked + `GuzzleHttp\Client::sendAll` as deprecated (it's still there, just not the + recommended way). + +### Breaking changes + +The breaking changes in this release are relatively minor. The biggest thing to +look out for is that request and response objects no longer implement fluent +interfaces. + +* Removed the fluent interfaces (i.e., `return $this`) from requests, + responses, `GuzzleHttp\Collection`, `GuzzleHttp\Url`, + `GuzzleHttp\Query`, `GuzzleHttp\Post\PostBody`, and + `GuzzleHttp\Cookie\SetCookie`. This blog post provides a good outline of + why I did this: https://ocramius.github.io/blog/fluent-interfaces-are-evil/. + This also makes the Guzzle message interfaces compatible with the current + PSR-7 message proposal. +* Removed "functions.php", so that Guzzle is truly PSR-4 compliant. Except + for the HTTP request functions from function.php, these functions are now + implemented in `GuzzleHttp\Utils` using camelCase. `GuzzleHttp\json_decode` + moved to `GuzzleHttp\Utils::jsonDecode`. `GuzzleHttp\get_path` moved to + `GuzzleHttp\Utils::getPath`. `GuzzleHttp\set_path` moved to + `GuzzleHttp\Utils::setPath`. `GuzzleHttp\batch` should now be + `GuzzleHttp\Pool::batch`, which returns an `objectStorage`. Using functions.php + caused problems for many users: they aren't PSR-4 compliant, require an + explicit include, and needed an if-guard to ensure that the functions are not + declared multiple times. +* Rewrote adapter layer. + * Removing all classes from `GuzzleHttp\Adapter`, these are now + implemented as callables that are stored in `GuzzleHttp\Ring\Client`. + * Removed the concept of "parallel adapters". Sending requests serially or + concurrently is now handled using a single adapter. + * Moved `GuzzleHttp\Adapter\Transaction` to `GuzzleHttp\Transaction`. The + Transaction object now exposes the request, response, and client as public + properties. The getters and setters have been removed. +* Removed the "headers" event. This event was only useful for changing the + body a response once the headers of the response were known. You can implement + a similar behavior in a number of ways. One example might be to use a + FnStream that has access to the transaction being sent. For example, when the + first byte is written, you could check if the response headers match your + expectations, and if so, change the actual stream body that is being + written to. +* Removed the `asArray` parameter from + `GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header + value as an array, then use the newly added `getHeaderAsArray()` method of + `MessageInterface`. This change makes the Guzzle interfaces compatible with + the PSR-7 interfaces. +* `GuzzleHttp\Message\MessageFactory` no longer allows subclasses to add + custom request options using double-dispatch (this was an implementation + detail). Instead, you should now provide an associative array to the + constructor which is a mapping of the request option name mapping to a + function that applies the option value to a request. +* Removed the concept of "throwImmediately" from exceptions and error events. + This control mechanism was used to stop a transfer of concurrent requests + from completing. This can now be handled by throwing the exception or by + cancelling a pool of requests or each outstanding future request individually. +* Updated to "GuzzleHttp\Streams" 3.0. + * `GuzzleHttp\Stream\StreamInterface::getContents()` no longer accepts a + `maxLen` parameter. This update makes the Guzzle streams project + compatible with the current PSR-7 proposal. + * `GuzzleHttp\Stream\Stream::__construct`, + `GuzzleHttp\Stream\Stream::factory`, and + `GuzzleHttp\Stream\Utils::create` no longer accept a size in the second + argument. They now accept an associative array of options, including the + "size" key and "metadata" key which can be used to provide custom metadata. + + +## 4.2.2 - 2014-09-08 + +* Fixed a memory leak in the CurlAdapter when reusing cURL handles. +* No longer using `request_fulluri` in stream adapter proxies. +* Relative redirects are now based on the last response, not the first response. + +## 4.2.1 - 2014-08-19 + +* Ensuring that the StreamAdapter does not always add a Content-Type header +* Adding automated github releases with a phar and zip + +## 4.2.0 - 2014-08-17 + +* Now merging in default options using a case-insensitive comparison. + Closes https://github.com/guzzle/guzzle/issues/767 +* Added the ability to automatically decode `Content-Encoding` response bodies + using the `decode_content` request option. This is set to `true` by default + to decode the response body if it comes over the wire with a + `Content-Encoding`. Set this value to `false` to disable decoding the + response content, and pass a string to provide a request `Accept-Encoding` + header and turn on automatic response decoding. This feature now allows you + to pass an `Accept-Encoding` header in the headers of a request but still + disable automatic response decoding. + Closes https://github.com/guzzle/guzzle/issues/764 +* Added the ability to throw an exception immediately when transferring + requests in parallel. Closes https://github.com/guzzle/guzzle/issues/760 +* Updating guzzlehttp/streams dependency to ~2.1 +* No longer utilizing the now deprecated namespaced methods from the stream + package. + +## 4.1.8 - 2014-08-14 + +* Fixed an issue in the CurlFactory that caused setting the `stream=false` + request option to throw an exception. + See: https://github.com/guzzle/guzzle/issues/769 +* TransactionIterator now calls rewind on the inner iterator. + See: https://github.com/guzzle/guzzle/pull/765 +* You can now set the `Content-Type` header to `multipart/form-data` + when creating POST requests to force multipart bodies. + See https://github.com/guzzle/guzzle/issues/768 + +## 4.1.7 - 2014-08-07 + +* Fixed an error in the HistoryPlugin that caused the same request and response + to be logged multiple times when an HTTP protocol error occurs. +* Ensuring that cURL does not add a default Content-Type when no Content-Type + has been supplied by the user. This prevents the adapter layer from modifying + the request that is sent over the wire after any listeners may have already + put the request in a desired state (e.g., signed the request). +* Throwing an exception when you attempt to send requests that have the + "stream" set to true in parallel using the MultiAdapter. +* Only calling curl_multi_select when there are active cURL handles. This was + previously changed and caused performance problems on some systems due to PHP + always selecting until the maximum select timeout. +* Fixed a bug where multipart/form-data POST fields were not correctly + aggregated (e.g., values with "&"). + +## 4.1.6 - 2014-08-03 + +* Added helper methods to make it easier to represent messages as strings, + including getting the start line and getting headers as a string. + +## 4.1.5 - 2014-08-02 + +* Automatically retrying cURL "Connection died, retrying a fresh connect" + errors when possible. +* cURL implementation cleanup +* Allowing multiple event subscriber listeners to be registered per event by + passing an array of arrays of listener configuration. + +## 4.1.4 - 2014-07-22 + +* Fixed a bug that caused multi-part POST requests with more than one field to + serialize incorrectly. +* Paths can now be set to "0" +* `ResponseInterface::xml` now accepts a `libxml_options` option and added a + missing default argument that was required when parsing XML response bodies. +* A `save_to` stream is now created lazily, which means that files are not + created on disk unless a request succeeds. + +## 4.1.3 - 2014-07-15 + +* Various fixes to multipart/form-data POST uploads +* Wrapping function.php in an if-statement to ensure Guzzle can be used + globally and in a Composer install +* Fixed an issue with generating and merging in events to an event array +* POST headers are only applied before sending a request to allow you to change + the query aggregator used before uploading +* Added much more robust query string parsing +* Fixed various parsing and normalization issues with URLs +* Fixing an issue where multi-valued headers were not being utilized correctly + in the StreamAdapter + +## 4.1.2 - 2014-06-18 + +* Added support for sending payloads with GET requests + +## 4.1.1 - 2014-06-08 + +* Fixed an issue related to using custom message factory options in subclasses +* Fixed an issue with nested form fields in a multi-part POST +* Fixed an issue with using the `json` request option for POST requests +* Added `ToArrayInterface` to `GuzzleHttp\Cookie\CookieJar` + +## 4.1.0 - 2014-05-27 + +* Added a `json` request option to easily serialize JSON payloads. +* Added a `GuzzleHttp\json_decode()` wrapper to safely parse JSON. +* Added `setPort()` and `getPort()` to `GuzzleHttp\Message\RequestInterface`. +* Added the ability to provide an emitter to a client in the client constructor. +* Added the ability to persist a cookie session using $_SESSION. +* Added a trait that can be used to add event listeners to an iterator. +* Removed request method constants from RequestInterface. +* Fixed warning when invalid request start-lines are received. +* Updated MessageFactory to work with custom request option methods. +* Updated cacert bundle to latest build. + +4.0.2 (2014-04-16) +------------------ + +* Proxy requests using the StreamAdapter now properly use request_fulluri (#632) +* Added the ability to set scalars as POST fields (#628) + +## 4.0.1 - 2014-04-04 + +* The HTTP status code of a response is now set as the exception code of + RequestException objects. +* 303 redirects will now correctly switch from POST to GET requests. +* The default parallel adapter of a client now correctly uses the MultiAdapter. +* HasDataTrait now initializes the internal data array as an empty array so + that the toArray() method always returns an array. + +## 4.0.0 - 2014-03-29 + +* For information on changes and upgrading, see: + https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 +* Added `GuzzleHttp\batch()` as a convenience function for sending requests in + parallel without needing to write asynchronous code. +* Restructured how events are added to `GuzzleHttp\ClientInterface::sendAll()`. + You can now pass a callable or an array of associative arrays where each + associative array contains the "fn", "priority", and "once" keys. + +## 4.0.0.rc-2 - 2014-03-25 + +* Removed `getConfig()` and `setConfig()` from clients to avoid confusion + around whether things like base_url, message_factory, etc. should be able to + be retrieved or modified. +* Added `getDefaultOption()` and `setDefaultOption()` to ClientInterface +* functions.php functions were renamed using snake_case to match PHP idioms +* Added support for `HTTP_PROXY`, `HTTPS_PROXY`, and + `GUZZLE_CURL_SELECT_TIMEOUT` environment variables +* Added the ability to specify custom `sendAll()` event priorities +* Added the ability to specify custom stream context options to the stream + adapter. +* Added a functions.php function for `get_path()` and `set_path()` +* CurlAdapter and MultiAdapter now use a callable to generate curl resources +* MockAdapter now properly reads a body and emits a `headers` event +* Updated Url class to check if a scheme and host are set before adding ":" + and "//". This allows empty Url (e.g., "") to be serialized as "". +* Parsing invalid XML no longer emits warnings +* Curl classes now properly throw AdapterExceptions +* Various performance optimizations +* Streams are created with the faster `Stream\create()` function +* Marked deprecation_proxy() as internal +* Test server is now a collection of static methods on a class + +## 4.0.0-rc.1 - 2014-03-15 + +* See https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 + +## 3.8.1 - 2014-01-28 + +* Bug: Always using GET requests when redirecting from a 303 response +* Bug: CURLOPT_SSL_VERIFYHOST is now correctly set to false when setting `$certificateAuthority` to false in + `Guzzle\Http\ClientInterface::setSslVerification()` +* Bug: RedirectPlugin now uses strict RFC 3986 compliance when combining a base URL with a relative URL +* Bug: The body of a request can now be set to `"0"` +* Sending PHP stream requests no longer forces `HTTP/1.0` +* Adding more information to ExceptionCollection exceptions so that users have more context, including a stack trace of + each sub-exception +* Updated the `$ref` attribute in service descriptions to merge over any existing parameters of a schema (rather than + clobbering everything). +* Merging URLs will now use the query string object from the relative URL (thus allowing custom query aggregators) +* Query strings are now parsed in a way that they do no convert empty keys with no value to have a dangling `=`. + For example `foo&bar=baz` is now correctly parsed and recognized as `foo&bar=baz` rather than `foo=&bar=baz`. +* Now properly escaping the regular expression delimiter when matching Cookie domains. +* Network access is now disabled when loading XML documents + +## 3.8.0 - 2013-12-05 + +* Added the ability to define a POST name for a file +* JSON response parsing now properly walks additionalProperties +* cURL error code 18 is now retried automatically in the BackoffPlugin +* Fixed a cURL error when URLs contain fragments +* Fixed an issue in the BackoffPlugin retry event where it was trying to access all exceptions as if they were + CurlExceptions +* CURLOPT_PROGRESS function fix for PHP 5.5 (69fcc1e) +* Added the ability for Guzzle to work with older versions of cURL that do not support `CURLOPT_TIMEOUT_MS` +* Fixed a bug that was encountered when parsing empty header parameters +* UriTemplate now has a `setRegex()` method to match the docs +* The `debug` request parameter now checks if it is truthy rather than if it exists +* Setting the `debug` request parameter to true shows verbose cURL output instead of using the LogPlugin +* Added the ability to combine URLs using strict RFC 3986 compliance +* Command objects can now return the validation errors encountered by the command +* Various fixes to cache revalidation (#437 and 29797e5) +* Various fixes to the AsyncPlugin +* Cleaned up build scripts + +## 3.7.4 - 2013-10-02 + +* Bug fix: 0 is now an allowed value in a description parameter that has a default value (#430) +* Bug fix: SchemaFormatter now returns an integer when formatting to a Unix timestamp + (see https://github.com/aws/aws-sdk-php/issues/147) +* Bug fix: Cleaned up and fixed URL dot segment removal to properly resolve internal dots +* Minimum PHP version is now properly specified as 5.3.3 (up from 5.3.2) (#420) +* Updated the bundled cacert.pem (#419) +* OauthPlugin now supports adding authentication to headers or query string (#425) + +## 3.7.3 - 2013-09-08 + +* Added the ability to get the exception associated with a request/command when using `MultiTransferException` and + `CommandTransferException`. +* Setting `additionalParameters` of a response to false is now honored when parsing responses with a service description +* Schemas are only injected into response models when explicitly configured. +* No longer guessing Content-Type based on the path of a request. Content-Type is now only guessed based on the path of + an EntityBody. +* Bug fix: ChunkedIterator can now properly chunk a \Traversable as well as an \Iterator. +* Bug fix: FilterIterator now relies on `\Iterator` instead of `\Traversable`. +* Bug fix: Gracefully handling malformed responses in RequestMediator::writeResponseBody() +* Bug fix: Replaced call to canCache with canCacheRequest in the CallbackCanCacheStrategy of the CachePlugin +* Bug fix: Visiting XML attributes first before visiting XML children when serializing requests +* Bug fix: Properly parsing headers that contain commas contained in quotes +* Bug fix: mimetype guessing based on a filename is now case-insensitive + +## 3.7.2 - 2013-08-02 + +* Bug fix: Properly URL encoding paths when using the PHP-only version of the UriTemplate expander + See https://github.com/guzzle/guzzle/issues/371 +* Bug fix: Cookie domains are now matched correctly according to RFC 6265 + See https://github.com/guzzle/guzzle/issues/377 +* Bug fix: GET parameters are now used when calculating an OAuth signature +* Bug fix: Fixed an issue with cache revalidation where the If-None-Match header was being double quoted +* `Guzzle\Common\AbstractHasDispatcher::dispatch()` now returns the event that was dispatched +* `Guzzle\Http\QueryString::factory()` now guesses the most appropriate query aggregator to used based on the input. + See https://github.com/guzzle/guzzle/issues/379 +* Added a way to add custom domain objects to service description parsing using the `operation.parse_class` event. See + https://github.com/guzzle/guzzle/pull/380 +* cURL multi cleanup and optimizations + +## 3.7.1 - 2013-07-05 + +* Bug fix: Setting default options on a client now works +* Bug fix: Setting options on HEAD requests now works. See #352 +* Bug fix: Moving stream factory before send event to before building the stream. See #353 +* Bug fix: Cookies no longer match on IP addresses per RFC 6265 +* Bug fix: Correctly parsing header parameters that are in `<>` and quotes +* Added `cert` and `ssl_key` as request options +* `Host` header can now diverge from the host part of a URL if the header is set manually +* `Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor` was rewritten to change from using SimpleXML to XMLWriter +* OAuth parameters are only added via the plugin if they aren't already set +* Exceptions are now thrown when a URL cannot be parsed +* Returning `false` if `Guzzle\Http\EntityBody::getContentMd5()` fails +* Not setting a `Content-MD5` on a command if calculating the Content-MD5 fails via the CommandContentMd5Plugin + +## 3.7.0 - 2013-06-10 + +* See UPGRADING.md for more information on how to upgrade. +* Requests now support the ability to specify an array of $options when creating a request to more easily modify a + request. You can pass a 'request.options' configuration setting to a client to apply default request options to + every request created by a client (e.g. default query string variables, headers, curl options, etc.). +* Added a static facade class that allows you to use Guzzle with static methods and mount the class to `\Guzzle`. + See `Guzzle\Http\StaticClient::mount`. +* Added `command.request_options` to `Guzzle\Service\Command\AbstractCommand` to pass request options to requests + created by a command (e.g. custom headers, query string variables, timeout settings, etc.). +* Stream size in `Guzzle\Stream\PhpStreamRequestFactory` will now be set if Content-Length is returned in the + headers of a response +* Added `Guzzle\Common\Collection::setPath($path, $value)` to set a value into an array using a nested key + (e.g. `$collection->setPath('foo/baz/bar', 'test'); echo $collection['foo']['bar']['bar'];`) +* ServiceBuilders now support storing and retrieving arbitrary data +* CachePlugin can now purge all resources for a given URI +* CachePlugin can automatically purge matching cached items when a non-idempotent request is sent to a resource +* CachePlugin now uses the Vary header to determine if a resource is a cache hit +* `Guzzle\Http\Message\Response` now implements `\Serializable` +* Added `Guzzle\Cache\CacheAdapterFactory::fromCache()` to more easily create cache adapters +* `Guzzle\Service\ClientInterface::execute()` now accepts an array, single command, or Traversable +* Fixed a bug in `Guzzle\Http\Message\Header\Link::addLink()` +* Better handling of calculating the size of a stream in `Guzzle\Stream\Stream` using fstat() and caching the size +* `Guzzle\Common\Exception\ExceptionCollection` now creates a more readable exception message +* Fixing BC break: Added back the MonologLogAdapter implementation rather than extending from PsrLog so that older + Symfony users can still use the old version of Monolog. +* Fixing BC break: Added the implementation back in for `Guzzle\Http\Message\AbstractMessage::getTokenizedHeader()`. + Now triggering an E_USER_DEPRECATED warning when used. Use `$message->getHeader()->parseParams()`. +* Several performance improvements to `Guzzle\Common\Collection` +* Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: + createRequest, head, delete, put, patch, post, options, prepareRequest +* Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` +* Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` +* Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to + `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a + resource, string, or EntityBody into the $options parameter to specify the download location of the response. +* Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a + default `array()` +* Added `Guzzle\Stream\StreamInterface::isRepeatable` +* Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use + $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or + $client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))`. +* Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use $client->getConfig()->getPath('request.options/headers')`. +* Removed `Guzzle\Http\ClientInterface::expandTemplate()` +* Removed `Guzzle\Http\ClientInterface::setRequestFactory()` +* Removed `Guzzle\Http\ClientInterface::getCurlMulti()` +* Removed `Guzzle\Http\Message\RequestInterface::canCache` +* Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect` +* Removed `Guzzle\Http\Message\RequestInterface::isRedirect` +* Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. +* You can now enable E_USER_DEPRECATED warnings to see if you are using a deprecated method by setting + `Guzzle\Common\Version::$emitWarnings` to true. +* Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use + `$request->getResponseBody()->isRepeatable()` instead. +* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use + `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use + `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +* Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. +* Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. +* Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated +* Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. + These will work through Guzzle 4.0 +* Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use [request.options][params]. +* Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. +* Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use $client->getConfig()->getPath('request.options/headers')`. +* Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. +* Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. +* Marked `Guzzle\Common\Collection::inject()` as deprecated. +* Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest');` +* CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a + CacheStorageInterface. These two objects and interface will be removed in a future version. +* Always setting X-cache headers on cached responses +* Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin +* `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface + $request, Response $response);` +* `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` +* `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` +* Added `CacheStorageInterface::purge($url)` +* `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin + $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, + CanCacheStrategyInterface $canCache = null)` +* Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` + +## 3.6.0 - 2013-05-29 + +* ServiceDescription now implements ToArrayInterface +* Added command.hidden_params to blacklist certain headers from being treated as additionalParameters +* Guzzle can now correctly parse incomplete URLs +* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. +* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution +* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). +* Specific header implementations can be created for complex headers. When a message creates a header, it uses a + HeaderFactory which can map specific headers to specific header classes. There is now a Link header and + CacheControl header implementation. +* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate +* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() +* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in + Guzzle\Http\Curl\RequestMediator +* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. +* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface +* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() +* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() +* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). +* All response header helper functions return a string rather than mixing Header objects and strings inconsistently +* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle + directly via interfaces +* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist + but are a no-op until removed. +* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a + `Guzzle\Service\Command\ArrayCommandInterface`. +* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response + on a request while the request is still being transferred +* The ability to case-insensitively search for header values +* Guzzle\Http\Message\Header::hasExactHeader +* Guzzle\Http\Message\Header::raw. Use getAll() +* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object + instead. +* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess +* Added the ability to cast Model objects to a string to view debug information. + +## 3.5.0 - 2013-05-13 + +* Bug: Fixed a regression so that request responses are parsed only once per oncomplete event rather than multiple times +* Bug: Better cleanup of one-time events across the board (when an event is meant to fire once, it will now remove + itself from the EventDispatcher) +* Bug: `Guzzle\Log\MessageFormatter` now properly writes "total_time" and "connect_time" values +* Bug: Cloning an EntityEnclosingRequest now clones the EntityBody too +* Bug: Fixed an undefined index error when parsing nested JSON responses with a sentAs parameter that reference a + non-existent key +* Bug: All __call() method arguments are now required (helps with mocking frameworks) +* Deprecating Response::getRequest() and now using a shallow clone of a request object to remove a circular reference + to help with refcount based garbage collection of resources created by sending a request +* Deprecating ZF1 cache and log adapters. These will be removed in the next major version. +* Deprecating `Response::getPreviousResponse()` (method signature still exists, but it's deprecated). Use the + HistoryPlugin for a history. +* Added a `responseBody` alias for the `response_body` location +* Refactored internals to no longer rely on Response::getRequest() +* HistoryPlugin can now be cast to a string +* HistoryPlugin now logs transactions rather than requests and responses to more accurately keep track of the requests + and responses that are sent over the wire +* Added `getEffectiveUrl()` and `getRedirectCount()` to Response objects + +## 3.4.3 - 2013-04-30 + +* Bug fix: Fixing bug introduced in 3.4.2 where redirect responses are duplicated on the final redirected response +* Added a check to re-extract the temp cacert bundle from the phar before sending each request + +## 3.4.2 - 2013-04-29 + +* Bug fix: Stream objects now work correctly with "a" and "a+" modes +* Bug fix: Removing `Transfer-Encoding: chunked` header when a Content-Length is present +* Bug fix: AsyncPlugin no longer forces HEAD requests +* Bug fix: DateTime timezones are now properly handled when using the service description schema formatter +* Bug fix: CachePlugin now properly handles stale-if-error directives when a request to the origin server fails +* Setting a response on a request will write to the custom request body from the response body if one is specified +* LogPlugin now writes to php://output when STDERR is undefined +* Added the ability to set multiple POST files for the same key in a single call +* application/x-www-form-urlencoded POSTs now use the utf-8 charset by default +* Added the ability to queue CurlExceptions to the MockPlugin +* Cleaned up how manual responses are queued on requests (removed "queued_response" and now using request.before_send) +* Configuration loading now allows remote files + +## 3.4.1 - 2013-04-16 + +* Large refactoring to how CurlMulti handles work. There is now a proxy that sits in front of a pool of CurlMulti + handles. This greatly simplifies the implementation, fixes a couple bugs, and provides a small performance boost. +* Exceptions are now properly grouped when sending requests in parallel +* Redirects are now properly aggregated when a multi transaction fails +* Redirects now set the response on the original object even in the event of a failure +* Bug fix: Model names are now properly set even when using $refs +* Added support for PHP 5.5's CurlFile to prevent warnings with the deprecated @ syntax +* Added support for oauth_callback in OAuth signatures +* Added support for oauth_verifier in OAuth signatures +* Added support to attempt to retrieve a command first literally, then ucfirst, the with inflection + +## 3.4.0 - 2013-04-11 + +* Bug fix: URLs are now resolved correctly based on https://tools.ietf.org/html/rfc3986#section-5.2. #289 +* Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289 +* Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263 +* Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264. +* Bug fix: Added `number` type to service descriptions. +* Bug fix: empty parameters are removed from an OAuth signature +* Bug fix: Revalidating a cache entry prefers the Last-Modified over the Date header +* Bug fix: Fixed "array to string" error when validating a union of types in a service description +* Bug fix: Removed code that attempted to determine the size of a stream when data is written to the stream +* Bug fix: Not including an `oauth_token` if the value is null in the OauthPlugin. +* Bug fix: Now correctly aggregating successful requests and failed requests in CurlMulti when a redirect occurs. +* The new default CURLOPT_TIMEOUT setting has been increased to 150 seconds so that Guzzle works on poor connections. +* Added a feature to EntityEnclosingRequest::setBody() that will automatically set the Content-Type of the request if + the Content-Type can be determined based on the entity body or the path of the request. +* Added the ability to overwrite configuration settings in a client when grabbing a throwaway client from a builder. +* Added support for a PSR-3 LogAdapter. +* Added a `command.after_prepare` event +* Added `oauth_callback` parameter to the OauthPlugin +* Added the ability to create a custom stream class when using a stream factory +* Added a CachingEntityBody decorator +* Added support for `additionalParameters` in service descriptions to define how custom parameters are serialized. +* The bundled SSL certificate is now provided in the phar file and extracted when running Guzzle from a phar. +* You can now send any EntityEnclosingRequest with POST fields or POST files and cURL will handle creating bodies +* POST requests using a custom entity body are now treated exactly like PUT requests but with a custom cURL method. This + means that the redirect behavior of POST requests with custom bodies will not be the same as POST requests that use + POST fields or files (the latter is only used when emulating a form POST in the browser). +* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest + +## 3.3.1 - 2013-03-10 + +* Added the ability to create PHP streaming responses from HTTP requests +* Bug fix: Running any filters when parsing response headers with service descriptions +* Bug fix: OauthPlugin fixes to allow for multi-dimensional array signing, and sorting parameters before signing +* Bug fix: Removed the adding of default empty arrays and false Booleans to responses in order to be consistent across + response location visitors. +* Bug fix: Removed the possibility of creating configuration files with circular dependencies +* RequestFactory::create() now uses the key of a POST file when setting the POST file name +* Added xmlAllowEmpty to serialize an XML body even if no XML specific parameters are set + +## 3.3.0 - 2013-03-03 + +* A large number of performance optimizations have been made +* Bug fix: Added 'wb' as a valid write mode for streams +* Bug fix: `Guzzle\Http\Message\Response::json()` now allows scalar values to be returned +* Bug fix: Fixed bug in `Guzzle\Http\Message\Response` where wrapping quotes were stripped from `getEtag()` +* BC: Removed `Guzzle\Http\Utils` class +* BC: Setting a service description on a client will no longer modify the client's command factories. +* BC: Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using + the 'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' +* BC: `Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getSteamType()` are no longer converted to + lowercase +* Operation parameter objects are now lazy loaded internally +* Added ErrorResponsePlugin that can throw errors for responses defined in service description operations' errorResponses +* Added support for instantiating responseType=class responseClass classes. Classes must implement + `Guzzle\Service\Command\ResponseClassInterface` +* Added support for additionalProperties for top-level parameters in responseType=model responseClasses. These + additional properties also support locations and can be used to parse JSON responses where the outermost part of the + JSON is an array +* Added support for nested renaming of JSON models (rename sentAs to name) +* CachePlugin + * Added support for stale-if-error so that the CachePlugin can now serve stale content from the cache on error + * Debug headers can now added to cached response in the CachePlugin + +## 3.2.0 - 2013-02-14 + +* CurlMulti is no longer reused globally. A new multi object is created per-client. This helps to isolate clients. +* URLs with no path no longer contain a "/" by default +* Guzzle\Http\QueryString does no longer manages the leading "?". This is now handled in Guzzle\Http\Url. +* BadResponseException no longer includes the full request and response message +* Adding setData() to Guzzle\Service\Description\ServiceDescriptionInterface +* Adding getResponseBody() to Guzzle\Http\Message\RequestInterface +* Various updates to classes to use ServiceDescriptionInterface type hints rather than ServiceDescription +* Header values can now be normalized into distinct values when multiple headers are combined with a comma separated list +* xmlEncoding can now be customized for the XML declaration of a XML service description operation +* Guzzle\Http\QueryString now uses Guzzle\Http\QueryAggregator\QueryAggregatorInterface objects to add custom value + aggregation and no longer uses callbacks +* The URL encoding implementation of Guzzle\Http\QueryString can now be customized +* Bug fix: Filters were not always invoked for array service description parameters +* Bug fix: Redirects now use a target response body rather than a temporary response body +* Bug fix: The default exponential backoff BackoffPlugin was not giving when the request threshold was exceeded +* Bug fix: Guzzle now takes the first found value when grabbing Cache-Control directives + +## 3.1.2 - 2013-01-27 + +* Refactored how operation responses are parsed. Visitors now include a before() method responsible for parsing the + response body. For example, the XmlVisitor now parses the XML response into an array in the before() method. +* Fixed an issue where cURL would not automatically decompress responses when the Accept-Encoding header was sent +* CURLOPT_SSL_VERIFYHOST is never set to 1 because it is deprecated (see 5e0ff2ef20f839e19d1eeb298f90ba3598784444) +* Fixed a bug where redirect responses were not chained correctly using getPreviousResponse() +* Setting default headers on a client after setting the user-agent will not erase the user-agent setting + +## 3.1.1 - 2013-01-20 + +* Adding wildcard support to Guzzle\Common\Collection::getPath() +* Adding alias support to ServiceBuilder configs +* Adding Guzzle\Service\Resource\CompositeResourceIteratorFactory and cleaning up factory interface + +## 3.1.0 - 2013-01-12 + +* BC: CurlException now extends from RequestException rather than BadResponseException +* BC: Renamed Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCache() to canCacheRequest() and added CanCacheResponse() +* Added getData to ServiceDescriptionInterface +* Added context array to RequestInterface::setState() +* Bug: Removing hard dependency on the BackoffPlugin from Guzzle\Http +* Bug: Adding required content-type when JSON request visitor adds JSON to a command +* Bug: Fixing the serialization of a service description with custom data +* Made it easier to deal with exceptions thrown when transferring commands or requests in parallel by providing + an array of successful and failed responses +* Moved getPath from Guzzle\Service\Resource\Model to Guzzle\Common\Collection +* Added Guzzle\Http\IoEmittingEntityBody +* Moved command filtration from validators to location visitors +* Added `extends` attributes to service description parameters +* Added getModels to ServiceDescriptionInterface + +## 3.0.7 - 2012-12-19 + +* Fixing phar detection when forcing a cacert to system if null or true +* Allowing filename to be passed to `Guzzle\Http\Message\Request::setResponseBody()` +* Cleaning up `Guzzle\Common\Collection::inject` method +* Adding a response_body location to service descriptions + +## 3.0.6 - 2012-12-09 + +* CurlMulti performance improvements +* Adding setErrorResponses() to Operation +* composer.json tweaks + +## 3.0.5 - 2012-11-18 + +* Bug: Fixing an infinite recursion bug caused from revalidating with the CachePlugin +* Bug: Response body can now be a string containing "0" +* Bug: Using Guzzle inside of a phar uses system by default but now allows for a custom cacert +* Bug: QueryString::fromString now properly parses query string parameters that contain equal signs +* Added support for XML attributes in service description responses +* DefaultRequestSerializer now supports array URI parameter values for URI template expansion +* Added better mimetype guessing to requests and post files + +## 3.0.4 - 2012-11-11 + +* Bug: Fixed a bug when adding multiple cookies to a request to use the correct glue value +* Bug: Cookies can now be added that have a name, domain, or value set to "0" +* Bug: Using the system cacert bundle when using the Phar +* Added json and xml methods to Response to make it easier to parse JSON and XML response data into data structures +* Enhanced cookie jar de-duplication +* Added the ability to enable strict cookie jars that throw exceptions when invalid cookies are added +* Added setStream to StreamInterface to actually make it possible to implement custom rewind behavior for entity bodies +* Added the ability to create any sort of hash for a stream rather than just an MD5 hash + +## 3.0.3 - 2012-11-04 + +* Implementing redirects in PHP rather than cURL +* Added PECL URI template extension and using as default parser if available +* Bug: Fixed Content-Length parsing of Response factory +* Adding rewind() method to entity bodies and streams. Allows for custom rewinding of non-repeatable streams. +* Adding ToArrayInterface throughout library +* Fixing OauthPlugin to create unique nonce values per request + +## 3.0.2 - 2012-10-25 + +* Magic methods are enabled by default on clients +* Magic methods return the result of a command +* Service clients no longer require a base_url option in the factory +* Bug: Fixed an issue with URI templates where null template variables were being expanded + +## 3.0.1 - 2012-10-22 + +* Models can now be used like regular collection objects by calling filter, map, etc. +* Models no longer require a Parameter structure or initial data in the constructor +* Added a custom AppendIterator to get around a PHP bug with the `\AppendIterator` + +## 3.0.0 - 2012-10-15 + +* Rewrote service description format to be based on Swagger + * Now based on JSON schema + * Added nested input structures and nested response models + * Support for JSON and XML input and output models + * Renamed `commands` to `operations` + * Removed dot class notation + * Removed custom types +* Broke the project into smaller top-level namespaces to be more component friendly +* Removed support for XML configs and descriptions. Use arrays or JSON files. +* Removed the Validation component and Inspector +* Moved all cookie code to Guzzle\Plugin\Cookie +* Magic methods on a Guzzle\Service\Client now return the command un-executed. +* Calling getResult() or getResponse() on a command will lazily execute the command if needed. +* Now shipping with cURL's CA certs and using it by default +* Added previousResponse() method to response objects +* No longer sending Accept and Accept-Encoding headers on every request +* Only sending an Expect header by default when a payload is greater than 1MB +* Added/moved client options: + * curl.blacklist to curl.option.blacklist + * Added ssl.certificate_authority +* Added a Guzzle\Iterator component +* Moved plugins from Guzzle\Http\Plugin to Guzzle\Plugin +* Added a more robust backoff retry strategy (replaced the ExponentialBackoffPlugin) +* Added a more robust caching plugin +* Added setBody to response objects +* Updating LogPlugin to use a more flexible MessageFormatter +* Added a completely revamped build process +* Cleaning up Collection class and removing default values from the get method +* Fixed ZF2 cache adapters + +## 2.8.8 - 2012-10-15 + +* Bug: Fixed a cookie issue that caused dot prefixed domains to not match where popular browsers did + +## 2.8.7 - 2012-09-30 + +* Bug: Fixed config file aliases for JSON includes +* Bug: Fixed cookie bug on a request object by using CookieParser to parse cookies on requests +* Bug: Removing the path to a file when sending a Content-Disposition header on a POST upload +* Bug: Hardening request and response parsing to account for missing parts +* Bug: Fixed PEAR packaging +* Bug: Fixed Request::getInfo +* Bug: Fixed cases where CURLM_CALL_MULTI_PERFORM return codes were causing curl transactions to fail +* Adding the ability for the namespace Iterator factory to look in multiple directories +* Added more getters/setters/removers from service descriptions +* Added the ability to remove POST fields from OAuth signatures +* OAuth plugin now supports 2-legged OAuth + +## 2.8.6 - 2012-09-05 + +* Added the ability to modify and build service descriptions +* Added the use of visitors to apply parameters to locations in service descriptions using the dynamic command +* Added a `json` parameter location +* Now allowing dot notation for classes in the CacheAdapterFactory +* Using the union of two arrays rather than an array_merge when extending service builder services and service params +* Ensuring that a service is a string before doing strpos() checks on it when substituting services for references + in service builder config files. +* Services defined in two different config files that include one another will by default replace the previously + defined service, but you can now create services that extend themselves and merge their settings over the previous +* The JsonLoader now supports aliasing filenames with different filenames. This allows you to alias something like + '_default' with a default JSON configuration file. + +## 2.8.5 - 2012-08-29 + +* Bug: Suppressed empty arrays from URI templates +* Bug: Added the missing $options argument from ServiceDescription::factory to enable caching +* Added support for HTTP responses that do not contain a reason phrase in the start-line +* AbstractCommand commands are now invokable +* Added a way to get the data used when signing an Oauth request before a request is sent + +## 2.8.4 - 2012-08-15 + +* Bug: Custom delay time calculations are no longer ignored in the ExponentialBackoffPlugin +* Added the ability to transfer entity bodies as a string rather than streamed. This gets around curl error 65. Set `body_as_string` in a request's curl options to enable. +* Added a StreamInterface, EntityBodyInterface, and added ftell() to Guzzle\Common\Stream +* Added an AbstractEntityBodyDecorator and a ReadLimitEntityBody decorator to transfer only a subset of a decorated stream +* Stream and EntityBody objects will now return the file position to the previous position after a read required operation (e.g. getContentMd5()) +* Added additional response status codes +* Removed SSL information from the default User-Agent header +* DELETE requests can now send an entity body +* Added an EventDispatcher to the ExponentialBackoffPlugin and added an ExponentialBackoffLogger to log backoff retries +* Added the ability of the MockPlugin to consume mocked request bodies +* LogPlugin now exposes request and response objects in the extras array + +## 2.8.3 - 2012-07-30 + +* Bug: Fixed a case where empty POST requests were sent as GET requests +* Bug: Fixed a bug in ExponentialBackoffPlugin that caused fatal errors when retrying an EntityEnclosingRequest that does not have a body +* Bug: Setting the response body of a request to null after completing a request, not when setting the state of a request to new +* Added multiple inheritance to service description commands +* Added an ApiCommandInterface and added `getParamNames()` and `hasParam()` +* Removed the default 2mb size cutoff from the Md5ValidatorPlugin so that it now defaults to validating everything +* Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles + +## 2.8.2 - 2012-07-24 + +* Bug: Query string values set to 0 are no longer dropped from the query string +* Bug: A Collection object is no longer created each time a call is made to `Guzzle\Service\Command\AbstractCommand::getRequestHeaders()` +* Bug: `+` is now treated as an encoded space when parsing query strings +* QueryString and Collection performance improvements +* Allowing dot notation for class paths in filters attribute of a service descriptions + +## 2.8.1 - 2012-07-16 + +* Loosening Event Dispatcher dependency +* POST redirects can now be customized using CURLOPT_POSTREDIR + +## 2.8.0 - 2012-07-15 + +* BC: Guzzle\Http\Query + * Query strings with empty variables will always show an equal sign unless the variable is set to QueryString::BLANK (e.g. ?acl= vs ?acl) + * Changed isEncodingValues() and isEncodingFields() to isUrlEncoding() + * Changed setEncodeValues(bool) and setEncodeFields(bool) to useUrlEncoding(bool) + * Changed the aggregation functions of QueryString to be static methods + * Can now use fromString() with querystrings that have a leading ? +* cURL configuration values can be specified in service descriptions using `curl.` prefixed parameters +* Content-Length is set to 0 before emitting the request.before_send event when sending an empty request body +* Cookies are no longer URL decoded by default +* Bug: URI template variables set to null are no longer expanded + +## 2.7.2 - 2012-07-02 + +* BC: Moving things to get ready for subtree splits. Moving Inflection into Common. Moving Guzzle\Http\Parser to Guzzle\Parser. +* BC: Removing Guzzle\Common\Batch\Batch::count() and replacing it with isEmpty() +* CachePlugin now allows for a custom request parameter function to check if a request can be cached +* Bug fix: CachePlugin now only caches GET and HEAD requests by default +* Bug fix: Using header glue when transferring headers over the wire +* Allowing deeply nested arrays for composite variables in URI templates +* Batch divisors can now return iterators or arrays + +## 2.7.1 - 2012-06-26 + +* Minor patch to update version number in UA string +* Updating build process + +## 2.7.0 - 2012-06-25 + +* BC: Inflection classes moved to Guzzle\Inflection. No longer static methods. Can now inject custom inflectors into classes. +* BC: Removed magic setX methods from commands +* BC: Magic methods mapped to service description commands are now inflected in the command factory rather than the client __call() method +* Verbose cURL options are no longer enabled by default. Set curl.debug to true on a client to enable. +* Bug: Now allowing colons in a response start-line (e.g. HTTP/1.1 503 Service Unavailable: Back-end server is at capacity) +* Guzzle\Service\Resource\ResourceIteratorApplyBatched now internally uses the Guzzle\Common\Batch namespace +* Added Guzzle\Service\Plugin namespace and a PluginCollectionPlugin +* Added the ability to set POST fields and files in a service description +* Guzzle\Http\EntityBody::factory() now accepts objects with a __toString() method +* Adding a command.before_prepare event to clients +* Added BatchClosureTransfer and BatchClosureDivisor +* BatchTransferException now includes references to the batch divisor and transfer strategies +* Fixed some tests so that they pass more reliably +* Added Guzzle\Common\Log\ArrayLogAdapter + +## 2.6.6 - 2012-06-10 + +* BC: Removing Guzzle\Http\Plugin\BatchQueuePlugin +* BC: Removing Guzzle\Service\Command\CommandSet +* Adding generic batching system (replaces the batch queue plugin and command set) +* Updating ZF cache and log adapters and now using ZF's composer repository +* Bug: Setting the name of each ApiParam when creating through an ApiCommand +* Adding result_type, result_doc, deprecated, and doc_url to service descriptions +* Bug: Changed the default cookie header casing back to 'Cookie' + +## 2.6.5 - 2012-06-03 + +* BC: Renaming Guzzle\Http\Message\RequestInterface::getResourceUri() to getResource() +* BC: Removing unused AUTH_BASIC and AUTH_DIGEST constants from +* BC: Guzzle\Http\Cookie is now used to manage Set-Cookie data, not Cookie data +* BC: Renaming methods in the CookieJarInterface +* Moving almost all cookie logic out of the CookiePlugin and into the Cookie or CookieJar implementations +* Making the default glue for HTTP headers ';' instead of ',' +* Adding a removeValue to Guzzle\Http\Message\Header +* Adding getCookies() to request interface. +* Making it easier to add event subscribers to HasDispatcherInterface classes. Can now directly call addSubscriber() + +## 2.6.4 - 2012-05-30 + +* BC: Cleaning up how POST files are stored in EntityEnclosingRequest objects. Adding PostFile class. +* BC: Moving ApiCommand specific functionality from the Inspector and on to the ApiCommand +* Bug: Fixing magic method command calls on clients +* Bug: Email constraint only validates strings +* Bug: Aggregate POST fields when POST files are present in curl handle +* Bug: Fixing default User-Agent header +* Bug: Only appending or prepending parameters in commands if they are specified +* Bug: Not requiring response reason phrases or status codes to match a predefined list of codes +* Allowing the use of dot notation for class namespaces when using instance_of constraint +* Added any_match validation constraint +* Added an AsyncPlugin +* Passing request object to the calculateWait method of the ExponentialBackoffPlugin +* Allowing the result of a command object to be changed +* Parsing location and type sub values when instantiating a service description rather than over and over at runtime + +## 2.6.3 - 2012-05-23 + +* [BC] Guzzle\Common\FromConfigInterface no longer requires any config options. +* [BC] Refactoring how POST files are stored on an EntityEnclosingRequest. They are now separate from POST fields. +* You can now use an array of data when creating PUT request bodies in the request factory. +* Removing the requirement that HTTPS requests needed a Cache-Control: public directive to be cacheable. +* [Http] Adding support for Content-Type in multipart POST uploads per upload +* [Http] Added support for uploading multiple files using the same name (foo[0], foo[1]) +* Adding more POST data operations for easier manipulation of POST data. +* You can now set empty POST fields. +* The body of a request is only shown on EntityEnclosingRequest objects that do not use POST files. +* Split the Guzzle\Service\Inspector::validateConfig method into two methods. One to initialize when a command is created, and one to validate. +* CS updates + +## 2.6.2 - 2012-05-19 + +* [Http] Better handling of nested scope requests in CurlMulti. Requests are now always prepares in the send() method rather than the addRequest() method. + +## 2.6.1 - 2012-05-19 + +* [BC] Removing 'path' support in service descriptions. Use 'uri'. +* [BC] Guzzle\Service\Inspector::parseDocBlock is now protected. Adding getApiParamsForClass() with cache. +* [BC] Removing Guzzle\Common\NullObject. Use https://github.com/mtdowling/NullObject if you need it. +* [BC] Removing Guzzle\Common\XmlElement. +* All commands, both dynamic and concrete, have ApiCommand objects. +* Adding a fix for CurlMulti so that if all of the connections encounter some sort of curl error, then the loop exits. +* Adding checks to EntityEnclosingRequest so that empty POST files and fields are ignored. +* Making the method signature of Guzzle\Service\Builder\ServiceBuilder::factory more flexible. + +## 2.6.0 - 2012-05-15 + +* [BC] Moving Guzzle\Service\Builder to Guzzle\Service\Builder\ServiceBuilder +* [BC] Executing a Command returns the result of the command rather than the command +* [BC] Moving all HTTP parsing logic to Guzzle\Http\Parsers. Allows for faster C implementations if needed. +* [BC] Changing the Guzzle\Http\Message\Response::setProtocol() method to accept a protocol and version in separate args. +* [BC] Moving ResourceIterator* to Guzzle\Service\Resource +* [BC] Completely refactored ResourceIterators to iterate over a cloned command object +* [BC] Moved Guzzle\Http\UriTemplate to Guzzle\Http\Parser\UriTemplate\UriTemplate +* [BC] Guzzle\Guzzle is now deprecated +* Moving Guzzle\Common\Guzzle::inject to Guzzle\Common\Collection::inject +* Adding Guzzle\Version class to give version information about Guzzle +* Adding Guzzle\Http\Utils class to provide getDefaultUserAgent() and getHttpDate() +* Adding Guzzle\Curl\CurlVersion to manage caching curl_version() data +* ServiceDescription and ServiceBuilder are now cacheable using similar configs +* Changing the format of XML and JSON service builder configs. Backwards compatible. +* Cleaned up Cookie parsing +* Trimming the default Guzzle User-Agent header +* Adding a setOnComplete() method to Commands that is called when a command completes +* Keeping track of requests that were mocked in the MockPlugin +* Fixed a caching bug in the CacheAdapterFactory +* Inspector objects can be injected into a Command object +* Refactoring a lot of code and tests to be case insensitive when dealing with headers +* Adding Guzzle\Http\Message\HeaderComparison for easy comparison of HTTP headers using a DSL +* Adding the ability to set global option overrides to service builder configs +* Adding the ability to include other service builder config files from within XML and JSON files +* Moving the parseQuery method out of Url and on to QueryString::fromString() as a static factory method. + +## 2.5.0 - 2012-05-08 + +* Major performance improvements +* [BC] Simplifying Guzzle\Common\Collection. Please check to see if you are using features that are now deprecated. +* [BC] Using a custom validation system that allows a flyweight implementation for much faster validation. No longer using Symfony2 Validation component. +* [BC] No longer supporting "{{ }}" for injecting into command or UriTemplates. Use "{}" +* Added the ability to passed parameters to all requests created by a client +* Added callback functionality to the ExponentialBackoffPlugin +* Using microtime in ExponentialBackoffPlugin to allow more granular backoff strategies. +* Rewinding request stream bodies when retrying requests +* Exception is thrown when JSON response body cannot be decoded +* Added configurable magic method calls to clients and commands. This is off by default. +* Fixed a defect that added a hash to every parsed URL part +* Fixed duplicate none generation for OauthPlugin. +* Emitting an event each time a client is generated by a ServiceBuilder +* Using an ApiParams object instead of a Collection for parameters of an ApiCommand +* cache.* request parameters should be renamed to params.cache.* +* Added the ability to set arbitrary curl options on requests (disable_wire, progress, etc.). See CurlHandle. +* Added the ability to disable type validation of service descriptions +* ServiceDescriptions and ServiceBuilders are now Serializable diff --git a/vendor/guzzlehttp/guzzle/LICENSE b/vendor/guzzlehttp/guzzle/LICENSE new file mode 100644 index 000000000..fd2375d88 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/LICENSE @@ -0,0 +1,27 @@ +The MIT License (MIT) + +Copyright (c) 2011 Michael Dowling +Copyright (c) 2012 Jeremy Lindblom +Copyright (c) 2014 Graham Campbell +Copyright (c) 2015 Márk Sági-Kazár +Copyright (c) 2015 Tobias Schultze +Copyright (c) 2016 Tobias Nyholm +Copyright (c) 2016 George Mponos + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/guzzlehttp/guzzle/README.md b/vendor/guzzlehttp/guzzle/README.md new file mode 100644 index 000000000..0786462b3 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/README.md @@ -0,0 +1,94 @@ +![Guzzle](.github/logo.png?raw=true) + +# Guzzle, PHP HTTP client + +[![Latest Version](https://img.shields.io/github/release/guzzle/guzzle.svg?style=flat-square)](https://github.com/guzzle/guzzle/releases) +[![Build Status](https://img.shields.io/github/workflow/status/guzzle/guzzle/CI?label=ci%20build&style=flat-square)](https://github.com/guzzle/guzzle/actions?query=workflow%3ACI) +[![Total Downloads](https://img.shields.io/packagist/dt/guzzlehttp/guzzle.svg?style=flat-square)](https://packagist.org/packages/guzzlehttp/guzzle) + +Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and +trivial to integrate with web services. + +- Simple interface for building query strings, POST requests, streaming large + uploads, streaming large downloads, using HTTP cookies, uploading JSON data, + etc... +- Can send both synchronous and asynchronous requests using the same interface. +- Uses PSR-7 interfaces for requests, responses, and streams. This allows you + to utilize other PSR-7 compatible libraries with Guzzle. +- Supports PSR-18 allowing interoperability between other PSR-18 HTTP Clients. +- Abstracts away the underlying HTTP transport, allowing you to write + environment and transport agnostic code; i.e., no hard dependency on cURL, + PHP streams, sockets, or non-blocking event loops. +- Middleware system allows you to augment and compose client behavior. + +```php +$client = new \GuzzleHttp\Client(); +$response = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle'); + +echo $response->getStatusCode(); // 200 +echo $response->getHeaderLine('content-type'); // 'application/json; charset=utf8' +echo $response->getBody(); // '{"id": 1420053, "name": "guzzle", ...}' + +// Send an asynchronous request. +$request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org'); +$promise = $client->sendAsync($request)->then(function ($response) { + echo 'I completed! ' . $response->getBody(); +}); + +$promise->wait(); +``` + +## Help and docs + +We use GitHub issues only to discuss bugs and new features. For support please refer to: + +- [Documentation](https://docs.guzzlephp.org) +- [Stack Overflow](https://stackoverflow.com/questions/tagged/guzzle) +- [#guzzle](https://app.slack.com/client/T0D2S9JCT/CE6UAAKL4) channel on [PHP-HTTP Slack](https://slack.httplug.io/) +- [Gitter](https://gitter.im/guzzle/guzzle) + + +## Installing Guzzle + +The recommended way to install Guzzle is through +[Composer](https://getcomposer.org/). + +```bash +composer require guzzlehttp/guzzle +``` + + +## Version Guidance + +| Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version | +|---------|---------------------|---------------------|--------------|---------------------|---------------------|-------|--------------| +| 3.x | EOL | `guzzle/guzzle` | `Guzzle` | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >=5.3.3,<7.0 | +| 4.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A | No | >=5.4,<7.0 | +| 5.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >=5.4,<7.4 | +| 6.x | Security fixes only | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >=5.5,<8.0 | +| 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8.3 | + +[guzzle-3-repo]: https://github.com/guzzle/guzzle3 +[guzzle-4-repo]: https://github.com/guzzle/guzzle/tree/4.x +[guzzle-5-repo]: https://github.com/guzzle/guzzle/tree/5.3 +[guzzle-6-repo]: https://github.com/guzzle/guzzle/tree/6.5 +[guzzle-7-repo]: https://github.com/guzzle/guzzle +[guzzle-3-docs]: https://guzzle3.readthedocs.io/ +[guzzle-5-docs]: https://docs.guzzlephp.org/en/5.3/ +[guzzle-6-docs]: https://docs.guzzlephp.org/en/6.5/ +[guzzle-7-docs]: https://docs.guzzlephp.org/en/latest/ + + +## Security + +If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/guzzle/security/policy) for more information. + +## License + +Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. + +## For Enterprise + +Available as part of the Tidelift Subscription + +The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-guzzle?utm_source=packagist-guzzlehttp-guzzle&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/vendor/guzzlehttp/guzzle/UPGRADING.md b/vendor/guzzlehttp/guzzle/UPGRADING.md new file mode 100644 index 000000000..8fa0afb5d --- /dev/null +++ b/vendor/guzzlehttp/guzzle/UPGRADING.md @@ -0,0 +1,1253 @@ +Guzzle Upgrade Guide +==================== + +6.0 to 7.0 +---------- + +In order to take advantage of the new features of PHP, Guzzle dropped the support +of PHP 5. The minimum supported PHP version is now PHP 7.2. Type hints and return +types for functions and methods have been added wherever possible. + +Please make sure: +- You are calling a function or a method with the correct type. +- If you extend a class of Guzzle; update all signatures on methods you override. + +#### Other backwards compatibility breaking changes + +- Class `GuzzleHttp\UriTemplate` is removed. +- Class `GuzzleHttp\Exception\SeekException` is removed. +- Classes `GuzzleHttp\Exception\BadResponseException`, `GuzzleHttp\Exception\ClientException`, + `GuzzleHttp\Exception\ServerException` can no longer be initialized with an empty + Response as argument. +- Class `GuzzleHttp\Exception\ConnectException` now extends `GuzzleHttp\Exception\TransferException` + instead of `GuzzleHttp\Exception\RequestException`. +- Function `GuzzleHttp\Exception\ConnectException::getResponse()` is removed. +- Function `GuzzleHttp\Exception\ConnectException::hasResponse()` is removed. +- Constant `GuzzleHttp\ClientInterface::VERSION` is removed. Added `GuzzleHttp\ClientInterface::MAJOR_VERSION` instead. +- Function `GuzzleHttp\Exception\RequestException::getResponseBodySummary` is removed. + Use `\GuzzleHttp\Psr7\get_message_body_summary` as an alternative. +- Function `GuzzleHttp\Cookie\CookieJar::getCookieValue` is removed. +- Request option `exceptions` is removed. Please use `http_errors`. +- Request option `save_to` is removed. Please use `sink`. +- Pool option `pool_size` is removed. Please use `concurrency`. +- We now look for environment variables in the `$_SERVER` super global, due to thread safety issues with `getenv`. We continue to fallback to `getenv` in CLI environments, for maximum compatibility. +- The `get`, `head`, `put`, `post`, `patch`, `delete`, `getAsync`, `headAsync`, `putAsync`, `postAsync`, `patchAsync`, and `deleteAsync` methods are now implemented as genuine methods on `GuzzleHttp\Client`, with strong typing. The original `__call` implementation remains unchanged for now, for maximum backwards compatibility, but won't be invoked under normal operation. +- The `log` middleware will log the errors with level `error` instead of `notice` +- Support for international domain names (IDN) is now disabled by default, and enabling it requires installing ext-intl, linked against a modern version of the C library (ICU 4.6 or higher). + +#### Native functions calls + +All internal native functions calls of Guzzle are now prefixed with a slash. This +change makes it impossible for method overloading by other libraries or applications. +Example: + +```php +// Before: +curl_version(); + +// After: +\curl_version(); +``` + +For the full diff you can check [here](https://github.com/guzzle/guzzle/compare/6.5.4..master). + +5.0 to 6.0 +---------- + +Guzzle now uses [PSR-7](https://www.php-fig.org/psr/psr-7/) for HTTP messages. +Due to the fact that these messages are immutable, this prompted a refactoring +of Guzzle to use a middleware based system rather than an event system. Any +HTTP message interaction (e.g., `GuzzleHttp\Message\Request`) need to be +updated to work with the new immutable PSR-7 request and response objects. Any +event listeners or subscribers need to be updated to become middleware +functions that wrap handlers (or are injected into a +`GuzzleHttp\HandlerStack`). + +- Removed `GuzzleHttp\BatchResults` +- Removed `GuzzleHttp\Collection` +- Removed `GuzzleHttp\HasDataTrait` +- Removed `GuzzleHttp\ToArrayInterface` +- The `guzzlehttp/streams` dependency has been removed. Stream functionality + is now present in the `GuzzleHttp\Psr7` namespace provided by the + `guzzlehttp/psr7` package. +- Guzzle no longer uses ReactPHP promises and now uses the + `guzzlehttp/promises` library. We use a custom promise library for three + significant reasons: + 1. React promises (at the time of writing this) are recursive. Promise + chaining and promise resolution will eventually blow the stack. Guzzle + promises are not recursive as they use a sort of trampolining technique. + Note: there has been movement in the React project to modify promises to + no longer utilize recursion. + 2. Guzzle needs to have the ability to synchronously block on a promise to + wait for a result. Guzzle promises allows this functionality (and does + not require the use of recursion). + 3. Because we need to be able to wait on a result, doing so using React + promises requires wrapping react promises with RingPHP futures. This + overhead is no longer needed, reducing stack sizes, reducing complexity, + and improving performance. +- `GuzzleHttp\Mimetypes` has been moved to a function in + `GuzzleHttp\Psr7\mimetype_from_extension` and + `GuzzleHttp\Psr7\mimetype_from_filename`. +- `GuzzleHttp\Query` and `GuzzleHttp\QueryParser` have been removed. Query + strings must now be passed into request objects as strings, or provided to + the `query` request option when creating requests with clients. The `query` + option uses PHP's `http_build_query` to convert an array to a string. If you + need a different serialization technique, you will need to pass the query + string in as a string. There are a couple helper functions that will make + working with query strings easier: `GuzzleHttp\Psr7\parse_query` and + `GuzzleHttp\Psr7\build_query`. +- Guzzle no longer has a dependency on RingPHP. Due to the use of a middleware + system based on PSR-7, using RingPHP and it's middleware system as well adds + more complexity than the benefits it provides. All HTTP handlers that were + present in RingPHP have been modified to work directly with PSR-7 messages + and placed in the `GuzzleHttp\Handler` namespace. This significantly reduces + complexity in Guzzle, removes a dependency, and improves performance. RingPHP + will be maintained for Guzzle 5 support, but will no longer be a part of + Guzzle 6. +- As Guzzle now uses a middleware based systems the event system and RingPHP + integration has been removed. Note: while the event system has been removed, + it is possible to add your own type of event system that is powered by the + middleware system. + - Removed the `Event` namespace. + - Removed the `Subscriber` namespace. + - Removed `Transaction` class + - Removed `RequestFsm` + - Removed `RingBridge` + - `GuzzleHttp\Subscriber\Cookie` is now provided by + `GuzzleHttp\Middleware::cookies` + - `GuzzleHttp\Subscriber\HttpError` is now provided by + `GuzzleHttp\Middleware::httpError` + - `GuzzleHttp\Subscriber\History` is now provided by + `GuzzleHttp\Middleware::history` + - `GuzzleHttp\Subscriber\Mock` is now provided by + `GuzzleHttp\Handler\MockHandler` + - `GuzzleHttp\Subscriber\Prepare` is now provided by + `GuzzleHttp\PrepareBodyMiddleware` + - `GuzzleHttp\Subscriber\Redirect` is now provided by + `GuzzleHttp\RedirectMiddleware` +- Guzzle now uses `Psr\Http\Message\UriInterface` (implements in + `GuzzleHttp\Psr7\Uri`) for URI support. `GuzzleHttp\Url` is now gone. +- Static functions in `GuzzleHttp\Utils` have been moved to namespaced + functions under the `GuzzleHttp` namespace. This requires either a Composer + based autoloader or you to include functions.php. +- `GuzzleHttp\ClientInterface::getDefaultOption` has been renamed to + `GuzzleHttp\ClientInterface::getConfig`. +- `GuzzleHttp\ClientInterface::setDefaultOption` has been removed. +- The `json` and `xml` methods of response objects has been removed. With the + migration to strictly adhering to PSR-7 as the interface for Guzzle messages, + adding methods to message interfaces would actually require Guzzle messages + to extend from PSR-7 messages rather then work with them directly. + +## Migrating to middleware + +The change to PSR-7 unfortunately required significant refactoring to Guzzle +due to the fact that PSR-7 messages are immutable. Guzzle 5 relied on an event +system from plugins. The event system relied on mutability of HTTP messages and +side effects in order to work. With immutable messages, you have to change your +workflow to become more about either returning a value (e.g., functional +middlewares) or setting a value on an object. Guzzle v6 has chosen the +functional middleware approach. + +Instead of using the event system to listen for things like the `before` event, +you now create a stack based middleware function that intercepts a request on +the way in and the promise of the response on the way out. This is a much +simpler and more predictable approach than the event system and works nicely +with PSR-7 middleware. Due to the use of promises, the middleware system is +also asynchronous. + +v5: + +```php +use GuzzleHttp\Event\BeforeEvent; +$client = new GuzzleHttp\Client(); +// Get the emitter and listen to the before event. +$client->getEmitter()->on('before', function (BeforeEvent $e) { + // Guzzle v5 events relied on mutation + $e->getRequest()->setHeader('X-Foo', 'Bar'); +}); +``` + +v6: + +In v6, you can modify the request before it is sent using the `mapRequest` +middleware. The idiomatic way in v6 to modify the request/response lifecycle is +to setup a handler middleware stack up front and inject the handler into a +client. + +```php +use GuzzleHttp\Middleware; +// Create a handler stack that has all of the default middlewares attached +$handler = GuzzleHttp\HandlerStack::create(); +// Push the handler onto the handler stack +$handler->push(Middleware::mapRequest(function (RequestInterface $request) { + // Notice that we have to return a request object + return $request->withHeader('X-Foo', 'Bar'); +})); +// Inject the handler into the client +$client = new GuzzleHttp\Client(['handler' => $handler]); +``` + +## POST Requests + +This version added the [`form_params`](http://guzzle.readthedocs.org/en/latest/request-options.html#form_params) +and `multipart` request options. `form_params` is an associative array of +strings or array of strings and is used to serialize an +`application/x-www-form-urlencoded` POST request. The +[`multipart`](http://guzzle.readthedocs.org/en/latest/request-options.html#multipart) +option is now used to send a multipart/form-data POST request. + +`GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add +POST files to a multipart/form-data request. + +The `body` option no longer accepts an array to send POST requests. Please use +`multipart` or `form_params` instead. + +The `base_url` option has been renamed to `base_uri`. + +4.x to 5.0 +---------- + +## Rewritten Adapter Layer + +Guzzle now uses [RingPHP](http://ringphp.readthedocs.org/en/latest) to send +HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor +is still supported, but it has now been renamed to `handler`. Instead of +passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP +`callable` that follows the RingPHP specification. + +## Removed Fluent Interfaces + +[Fluent interfaces were removed](https://ocramius.github.io/blog/fluent-interfaces-are-evil/) +from the following classes: + +- `GuzzleHttp\Collection` +- `GuzzleHttp\Url` +- `GuzzleHttp\Query` +- `GuzzleHttp\Post\PostBody` +- `GuzzleHttp\Cookie\SetCookie` + +## Removed functions.php + +Removed "functions.php", so that Guzzle is truly PSR-4 compliant. The following +functions can be used as replacements. + +- `GuzzleHttp\json_decode` -> `GuzzleHttp\Utils::jsonDecode` +- `GuzzleHttp\get_path` -> `GuzzleHttp\Utils::getPath` +- `GuzzleHttp\Utils::setPath` -> `GuzzleHttp\set_path` +- `GuzzleHttp\Pool::batch` -> `GuzzleHttp\batch`. This function is, however, + deprecated in favor of using `GuzzleHttp\Pool::batch()`. + +The "procedural" global client has been removed with no replacement (e.g., +`GuzzleHttp\get()`, `GuzzleHttp\post()`, etc.). Use a `GuzzleHttp\Client` +object as a replacement. + +## `throwImmediately` has been removed + +The concept of "throwImmediately" has been removed from exceptions and error +events. This control mechanism was used to stop a transfer of concurrent +requests from completing. This can now be handled by throwing the exception or +by cancelling a pool of requests or each outstanding future request +individually. + +## headers event has been removed + +Removed the "headers" event. This event was only useful for changing the +body a response once the headers of the response were known. You can implement +a similar behavior in a number of ways. One example might be to use a +FnStream that has access to the transaction being sent. For example, when the +first byte is written, you could check if the response headers match your +expectations, and if so, change the actual stream body that is being +written to. + +## Updates to HTTP Messages + +Removed the `asArray` parameter from +`GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header +value as an array, then use the newly added `getHeaderAsArray()` method of +`MessageInterface`. This change makes the Guzzle interfaces compatible with +the PSR-7 interfaces. + +3.x to 4.0 +---------- + +## Overarching changes: + +- Now requires PHP 5.4 or greater. +- No longer requires cURL to send requests. +- Guzzle no longer wraps every exception it throws. Only exceptions that are + recoverable are now wrapped by Guzzle. +- Various namespaces have been removed or renamed. +- No longer requiring the Symfony EventDispatcher. A custom event dispatcher + based on the Symfony EventDispatcher is + now utilized in `GuzzleHttp\Event\EmitterInterface` (resulting in significant + speed and functionality improvements). + +Changes per Guzzle 3.x namespace are described below. + +## Batch + +The `Guzzle\Batch` namespace has been removed. This is best left to +third-parties to implement on top of Guzzle's core HTTP library. + +## Cache + +The `Guzzle\Cache` namespace has been removed. (Todo: No suitable replacement +has been implemented yet, but hoping to utilize a PSR cache interface). + +## Common + +- Removed all of the wrapped exceptions. It's better to use the standard PHP + library for unrecoverable exceptions. +- `FromConfigInterface` has been removed. +- `Guzzle\Common\Version` has been removed. The VERSION constant can be found + at `GuzzleHttp\ClientInterface::VERSION`. + +### Collection + +- `getAll` has been removed. Use `toArray` to convert a collection to an array. +- `inject` has been removed. +- `keySearch` has been removed. +- `getPath` no longer supports wildcard expressions. Use something better like + JMESPath for this. +- `setPath` now supports appending to an existing array via the `[]` notation. + +### Events + +Guzzle no longer requires Symfony's EventDispatcher component. Guzzle now uses +`GuzzleHttp\Event\Emitter`. + +- `Symfony\Component\EventDispatcher\EventDispatcherInterface` is replaced by + `GuzzleHttp\Event\EmitterInterface`. +- `Symfony\Component\EventDispatcher\EventDispatcher` is replaced by + `GuzzleHttp\Event\Emitter`. +- `Symfony\Component\EventDispatcher\Event` is replaced by + `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in + `GuzzleHttp\Event\EventInterface`. +- `AbstractHasDispatcher` has moved to a trait, `HasEmitterTrait`, and + `HasDispatcherInterface` has moved to `HasEmitterInterface`. Retrieving the + event emitter of a request, client, etc. now uses the `getEmitter` method + rather than the `getDispatcher` method. + +#### Emitter + +- Use the `once()` method to add a listener that automatically removes itself + the first time it is invoked. +- Use the `listeners()` method to retrieve a list of event listeners rather than + the `getListeners()` method. +- Use `emit()` instead of `dispatch()` to emit an event from an emitter. +- Use `attach()` instead of `addSubscriber()` and `detach()` instead of + `removeSubscriber()`. + +```php +$mock = new Mock(); +// 3.x +$request->getEventDispatcher()->addSubscriber($mock); +$request->getEventDispatcher()->removeSubscriber($mock); +// 4.x +$request->getEmitter()->attach($mock); +$request->getEmitter()->detach($mock); +``` + +Use the `on()` method to add a listener rather than the `addListener()` method. + +```php +// 3.x +$request->getEventDispatcher()->addListener('foo', function (Event $event) { /* ... */ } ); +// 4.x +$request->getEmitter()->on('foo', function (Event $event, $name) { /* ... */ } ); +``` + +## Http + +### General changes + +- The cacert.pem certificate has been moved to `src/cacert.pem`. +- Added the concept of adapters that are used to transfer requests over the + wire. +- Simplified the event system. +- Sending requests in parallel is still possible, but batching is no longer a + concept of the HTTP layer. Instead, you must use the `complete` and `error` + events to asynchronously manage parallel request transfers. +- `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`. +- `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`. +- QueryAggregators have been rewritten so that they are simply callable + functions. +- `GuzzleHttp\StaticClient` has been removed. Use the functions provided in + `functions.php` for an easy to use static client instance. +- Exceptions in `GuzzleHttp\Exception` have been updated to all extend from + `GuzzleHttp\Exception\TransferException`. + +### Client + +Calling methods like `get()`, `post()`, `head()`, etc. no longer create and +return a request, but rather creates a request, sends the request, and returns +the response. + +```php +// 3.0 +$request = $client->get('/'); +$response = $request->send(); + +// 4.0 +$response = $client->get('/'); + +// or, to mirror the previous behavior +$request = $client->createRequest('GET', '/'); +$response = $client->send($request); +``` + +`GuzzleHttp\ClientInterface` has changed. + +- The `send` method no longer accepts more than one request. Use `sendAll` to + send multiple requests in parallel. +- `setUserAgent()` has been removed. Use a default request option instead. You + could, for example, do something like: + `$client->setConfig('defaults/headers/User-Agent', 'Foo/Bar ' . $client::getDefaultUserAgent())`. +- `setSslVerification()` has been removed. Use default request options instead, + like `$client->setConfig('defaults/verify', true)`. + +`GuzzleHttp\Client` has changed. + +- The constructor now accepts only an associative array. You can include a + `base_url` string or array to use a URI template as the base URL of a client. + You can also specify a `defaults` key that is an associative array of default + request options. You can pass an `adapter` to use a custom adapter, + `batch_adapter` to use a custom adapter for sending requests in parallel, or + a `message_factory` to change the factory used to create HTTP requests and + responses. +- The client no longer emits a `client.create_request` event. +- Creating requests with a client no longer automatically utilize a URI + template. You must pass an array into a creational method (e.g., + `createRequest`, `get`, `put`, etc.) in order to expand a URI template. + +### Messages + +Messages no longer have references to their counterparts (i.e., a request no +longer has a reference to it's response, and a response no loger has a +reference to its request). This association is now managed through a +`GuzzleHttp\Adapter\TransactionInterface` object. You can get references to +these transaction objects using request events that are emitted over the +lifecycle of a request. + +#### Requests with a body + +- `GuzzleHttp\Message\EntityEnclosingRequest` and + `GuzzleHttp\Message\EntityEnclosingRequestInterface` have been removed. The + separation between requests that contain a body and requests that do not + contain a body has been removed, and now `GuzzleHttp\Message\RequestInterface` + handles both use cases. +- Any method that previously accepts a `GuzzleHttp\Response` object now accept a + `GuzzleHttp\Message\ResponseInterface`. +- `GuzzleHttp\Message\RequestFactoryInterface` has been renamed to + `GuzzleHttp\Message\MessageFactoryInterface`. This interface is used to create + both requests and responses and is implemented in + `GuzzleHttp\Message\MessageFactory`. +- POST field and file methods have been removed from the request object. You + must now use the methods made available to `GuzzleHttp\Post\PostBodyInterface` + to control the format of a POST body. Requests that are created using a + standard `GuzzleHttp\Message\MessageFactoryInterface` will automatically use + a `GuzzleHttp\Post\PostBody` body if the body was passed as an array or if + the method is POST and no body is provided. + +```php +$request = $client->createRequest('POST', '/'); +$request->getBody()->setField('foo', 'bar'); +$request->getBody()->addFile(new PostFile('file_key', fopen('/path/to/content', 'r'))); +``` + +#### Headers + +- `GuzzleHttp\Message\Header` has been removed. Header values are now simply + represented by an array of values or as a string. Header values are returned + as a string by default when retrieving a header value from a message. You can + pass an optional argument of `true` to retrieve a header value as an array + of strings instead of a single concatenated string. +- `GuzzleHttp\PostFile` and `GuzzleHttp\PostFileInterface` have been moved to + `GuzzleHttp\Post`. This interface has been simplified and now allows the + addition of arbitrary headers. +- Custom headers like `GuzzleHttp\Message\Header\Link` have been removed. Most + of the custom headers are now handled separately in specific + subscribers/plugins, and `GuzzleHttp\Message\HeaderValues::parseParams()` has + been updated to properly handle headers that contain parameters (like the + `Link` header). + +#### Responses + +- `GuzzleHttp\Message\Response::getInfo()` and + `GuzzleHttp\Message\Response::setInfo()` have been removed. Use the event + system to retrieve this type of information. +- `GuzzleHttp\Message\Response::getRawHeaders()` has been removed. +- `GuzzleHttp\Message\Response::getMessage()` has been removed. +- `GuzzleHttp\Message\Response::calculateAge()` and other cache specific + methods have moved to the CacheSubscriber. +- Header specific helper functions like `getContentMd5()` have been removed. + Just use `getHeader('Content-MD5')` instead. +- `GuzzleHttp\Message\Response::setRequest()` and + `GuzzleHttp\Message\Response::getRequest()` have been removed. Use the event + system to work with request and response objects as a transaction. +- `GuzzleHttp\Message\Response::getRedirectCount()` has been removed. Use the + Redirect subscriber instead. +- `GuzzleHttp\Message\Response::isSuccessful()` and other related methods have + been removed. Use `getStatusCode()` instead. + +#### Streaming responses + +Streaming requests can now be created by a client directly, returning a +`GuzzleHttp\Message\ResponseInterface` object that contains a body stream +referencing an open PHP HTTP stream. + +```php +// 3.0 +use Guzzle\Stream\PhpStreamRequestFactory; +$request = $client->get('/'); +$factory = new PhpStreamRequestFactory(); +$stream = $factory->fromRequest($request); +$data = $stream->read(1024); + +// 4.0 +$response = $client->get('/', ['stream' => true]); +// Read some data off of the stream in the response body +$data = $response->getBody()->read(1024); +``` + +#### Redirects + +The `configureRedirects()` method has been removed in favor of a +`allow_redirects` request option. + +```php +// Standard redirects with a default of a max of 5 redirects +$request = $client->createRequest('GET', '/', ['allow_redirects' => true]); + +// Strict redirects with a custom number of redirects +$request = $client->createRequest('GET', '/', [ + 'allow_redirects' => ['max' => 5, 'strict' => true] +]); +``` + +#### EntityBody + +EntityBody interfaces and classes have been removed or moved to +`GuzzleHttp\Stream`. All classes and interfaces that once required +`GuzzleHttp\EntityBodyInterface` now require +`GuzzleHttp\Stream\StreamInterface`. Creating a new body for a request no +longer uses `GuzzleHttp\EntityBody::factory` but now uses +`GuzzleHttp\Stream\Stream::factory` or even better: +`GuzzleHttp\Stream\create()`. + +- `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface` +- `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream` +- `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream` +- `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream` +- `Guzzle\Http\IoEmittyinEntityBody` has been removed. + +#### Request lifecycle events + +Requests previously submitted a large number of requests. The number of events +emitted over the lifecycle of a request has been significantly reduced to make +it easier to understand how to extend the behavior of a request. All events +emitted during the lifecycle of a request now emit a custom +`GuzzleHttp\Event\EventInterface` object that contains context providing +methods and a way in which to modify the transaction at that specific point in +time (e.g., intercept the request and set a response on the transaction). + +- `request.before_send` has been renamed to `before` and now emits a + `GuzzleHttp\Event\BeforeEvent` +- `request.complete` has been renamed to `complete` and now emits a + `GuzzleHttp\Event\CompleteEvent`. +- `request.sent` has been removed. Use `complete`. +- `request.success` has been removed. Use `complete`. +- `error` is now an event that emits a `GuzzleHttp\Event\ErrorEvent`. +- `request.exception` has been removed. Use `error`. +- `request.receive.status_line` has been removed. +- `curl.callback.progress` has been removed. Use a custom `StreamInterface` to + maintain a status update. +- `curl.callback.write` has been removed. Use a custom `StreamInterface` to + intercept writes. +- `curl.callback.read` has been removed. Use a custom `StreamInterface` to + intercept reads. + +`headers` is a new event that is emitted after the response headers of a +request have been received before the body of the response is downloaded. This +event emits a `GuzzleHttp\Event\HeadersEvent`. + +You can intercept a request and inject a response using the `intercept()` event +of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and +`GuzzleHttp\Event\ErrorEvent` event. + +See: http://docs.guzzlephp.org/en/latest/events.html + +## Inflection + +The `Guzzle\Inflection` namespace has been removed. This is not a core concern +of Guzzle. + +## Iterator + +The `Guzzle\Iterator` namespace has been removed. + +- `Guzzle\Iterator\AppendIterator`, `Guzzle\Iterator\ChunkedIterator`, and + `Guzzle\Iterator\MethodProxyIterator` are nice, but not a core requirement of + Guzzle itself. +- `Guzzle\Iterator\FilterIterator` is no longer needed because an equivalent + class is shipped with PHP 5.4. +- `Guzzle\Iterator\MapIterator` is not really needed when using PHP 5.5 because + it's easier to just wrap an iterator in a generator that maps values. + +For a replacement of these iterators, see https://github.com/nikic/iter + +## Log + +The LogPlugin has moved to https://github.com/guzzle/log-subscriber. The +`Guzzle\Log` namespace has been removed. Guzzle now relies on +`Psr\Log\LoggerInterface` for all logging. The MessageFormatter class has been +moved to `GuzzleHttp\Subscriber\Log\Formatter`. + +## Parser + +The `Guzzle\Parser` namespace has been removed. This was previously used to +make it possible to plug in custom parsers for cookies, messages, URI +templates, and URLs; however, this level of complexity is not needed in Guzzle +so it has been removed. + +- Cookie: Cookie parsing logic has been moved to + `GuzzleHttp\Cookie\SetCookie::fromString`. +- Message: Message parsing logic for both requests and responses has been moved + to `GuzzleHttp\Message\MessageFactory::fromMessage`. Message parsing is only + used in debugging or deserializing messages, so it doesn't make sense for + Guzzle as a library to add this level of complexity to parsing messages. +- UriTemplate: URI template parsing has been moved to + `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL + URI template library if it is installed. +- Url: URL parsing is now performed in `GuzzleHttp\Url::fromString` (previously + it was `Guzzle\Http\Url::factory()`). If custom URL parsing is necessary, + then developers are free to subclass `GuzzleHttp\Url`. + +## Plugin + +The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`. +Several plugins are shipping with the core Guzzle library under this namespace. + +- `GuzzleHttp\Subscriber\Cookie`: Replaces the old CookiePlugin. Cookie jar + code has moved to `GuzzleHttp\Cookie`. +- `GuzzleHttp\Subscriber\History`: Replaces the old HistoryPlugin. +- `GuzzleHttp\Subscriber\HttpError`: Throws errors when a bad HTTP response is + received. +- `GuzzleHttp\Subscriber\Mock`: Replaces the old MockPlugin. +- `GuzzleHttp\Subscriber\Prepare`: Prepares the body of a request just before + sending. This subscriber is attached to all requests by default. +- `GuzzleHttp\Subscriber\Redirect`: Replaces the RedirectPlugin. + +The following plugins have been removed (third-parties are free to re-implement +these if needed): + +- `GuzzleHttp\Plugin\Async` has been removed. +- `GuzzleHttp\Plugin\CurlAuth` has been removed. +- `GuzzleHttp\Plugin\ErrorResponse\ErrorResponsePlugin` has been removed. This + functionality should instead be implemented with event listeners that occur + after normal response parsing occurs in the guzzle/command package. + +The following plugins are not part of the core Guzzle package, but are provided +in separate repositories: + +- `Guzzle\Http\Plugin\BackoffPlugin` has been rewritten to be much simpler + to build custom retry policies using simple functions rather than various + chained classes. See: https://github.com/guzzle/retry-subscriber +- `Guzzle\Http\Plugin\Cache\CachePlugin` has moved to + https://github.com/guzzle/cache-subscriber +- `Guzzle\Http\Plugin\Log\LogPlugin` has moved to + https://github.com/guzzle/log-subscriber +- `Guzzle\Http\Plugin\Md5\Md5Plugin` has moved to + https://github.com/guzzle/message-integrity-subscriber +- `Guzzle\Http\Plugin\Mock\MockPlugin` has moved to + `GuzzleHttp\Subscriber\MockSubscriber`. +- `Guzzle\Http\Plugin\Oauth\OauthPlugin` has moved to + https://github.com/guzzle/oauth-subscriber + +## Service + +The service description layer of Guzzle has moved into two separate packages: + +- http://github.com/guzzle/command Provides a high level abstraction over web + services by representing web service operations using commands. +- http://github.com/guzzle/guzzle-services Provides an implementation of + guzzle/command that provides request serialization and response parsing using + Guzzle service descriptions. + +## Stream + +Stream have moved to a separate package available at +https://github.com/guzzle/streams. + +`Guzzle\Stream\StreamInterface` has been given a large update to cleanly take +on the responsibilities of `Guzzle\Http\EntityBody` and +`Guzzle\Http\EntityBodyInterface` now that they have been removed. The number +of methods implemented by the `StreamInterface` has been drastically reduced to +allow developers to more easily extend and decorate stream behavior. + +## Removed methods from StreamInterface + +- `getStream` and `setStream` have been removed to better encapsulate streams. +- `getMetadata` and `setMetadata` have been removed in favor of + `GuzzleHttp\Stream\MetadataStreamInterface`. +- `getWrapper`, `getWrapperData`, `getStreamType`, and `getUri` have all been + removed. This data is accessible when + using streams that implement `GuzzleHttp\Stream\MetadataStreamInterface`. +- `rewind` has been removed. Use `seek(0)` for a similar behavior. + +## Renamed methods + +- `detachStream` has been renamed to `detach`. +- `feof` has been renamed to `eof`. +- `ftell` has been renamed to `tell`. +- `readLine` has moved from an instance method to a static class method of + `GuzzleHttp\Stream\Stream`. + +## Metadata streams + +`GuzzleHttp\Stream\MetadataStreamInterface` has been added to denote streams +that contain additional metadata accessible via `getMetadata()`. +`GuzzleHttp\Stream\StreamInterface::getMetadata` and +`GuzzleHttp\Stream\StreamInterface::setMetadata` have been removed. + +## StreamRequestFactory + +The entire concept of the StreamRequestFactory has been removed. The way this +was used in Guzzle 3 broke the actual interface of sending streaming requests +(instead of getting back a Response, you got a StreamInterface). Streaming +PHP requests are now implemented through the `GuzzleHttp\Adapter\StreamAdapter`. + +3.6 to 3.7 +---------- + +### Deprecations + +- You can now enable E_USER_DEPRECATED warnings to see if you are using any deprecated methods.: + +```php +\Guzzle\Common\Version::$emitWarnings = true; +``` + +The following APIs and options have been marked as deprecated: + +- Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->getResponseBody()->isRepeatable()` instead. +- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. +- Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. +- Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. +- Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated +- Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. +- Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. +- Marked `Guzzle\Common\Collection::inject()` as deprecated. +- Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use + `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` or + `$client->setDefaultOption('auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` + +3.7 introduces `request.options` as a parameter for a client configuration and as an optional argument to all creational +request methods. When paired with a client's configuration settings, these options allow you to specify default settings +for various aspects of a request. Because these options make other previous configuration options redundant, several +configuration options and methods of a client and AbstractCommand have been deprecated. + +- Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption('headers')`. +- Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption('headers/{header_name}', 'value')`. +- Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('params/{param_name}', 'value')` +- Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. These will work through Guzzle 4.0 + + $command = $client->getCommand('foo', array( + 'command.headers' => array('Test' => '123'), + 'command.response_body' => '/path/to/file' + )); + + // Should be changed to: + + $command = $client->getCommand('foo', array( + 'command.request_options' => array( + 'headers' => array('Test' => '123'), + 'save_as' => '/path/to/file' + ) + )); + +### Interface changes + +Additions and changes (you will need to update any implementations or subclasses you may have created): + +- Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: + createRequest, head, delete, put, patch, post, options, prepareRequest +- Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` +- Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` +- Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to + `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a + resource, string, or EntityBody into the $options parameter to specify the download location of the response. +- Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a + default `array()` +- Added `Guzzle\Stream\StreamInterface::isRepeatable` +- Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. + +The following methods were removed from interfaces. All of these methods are still available in the concrete classes +that implement them, but you should update your code to use alternative methods: + +- Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use + `$client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or + `$client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))` or + `$client->setDefaultOption('headers/{header_name}', 'value')`. or + `$client->setDefaultOption('headers', array('header_name' => 'value'))`. +- Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('request.options/headers')`. +- Removed `Guzzle\Http\ClientInterface::expandTemplate()`. This is an implementation detail. +- Removed `Guzzle\Http\ClientInterface::setRequestFactory()`. This is an implementation detail. +- Removed `Guzzle\Http\ClientInterface::getCurlMulti()`. This is a very specific implementation detail. +- Removed `Guzzle\Http\Message\RequestInterface::canCache`. Use the CachePlugin. +- Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`. Use the HistoryPlugin. +- Removed `Guzzle\Http\Message\RequestInterface::isRedirect`. Use the HistoryPlugin. + +### Cache plugin breaking changes + +- CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a + CacheStorageInterface. These two objects and interface will be removed in a future version. +- Always setting X-cache headers on cached responses +- Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin +- `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface + $request, Response $response);` +- `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` +- `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` +- Added `CacheStorageInterface::purge($url)` +- `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin + $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, + CanCacheStrategyInterface $canCache = null)` +- Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` + +3.5 to 3.6 +---------- + +* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. +* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution +* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). + For example, setHeader() first removes the header using unset on a HeaderCollection and then calls addHeader(). + Keeping the Host header and URL host in sync is now handled by overriding the addHeader method in Request. +* Specific header implementations can be created for complex headers. When a message creates a header, it uses a + HeaderFactory which can map specific headers to specific header classes. There is now a Link header and + CacheControl header implementation. +* Moved getLinks() from Response to just be used on a Link header object. + +If you previously relied on Guzzle\Http\Message\Header::raw(), then you will need to update your code to use the +HeaderInterface (e.g. toArray(), getAll(), etc.). + +### Interface changes + +* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate +* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() +* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in + Guzzle\Http\Curl\RequestMediator +* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. +* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface +* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() + +### Removed deprecated functions + +* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() +* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). + +### Deprecations + +* The ability to case-insensitively search for header values +* Guzzle\Http\Message\Header::hasExactHeader +* Guzzle\Http\Message\Header::raw. Use getAll() +* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object + instead. + +### Other changes + +* All response header helper functions return a string rather than mixing Header objects and strings inconsistently +* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle + directly via interfaces +* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist + but are a no-op until removed. +* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a + `Guzzle\Service\Command\ArrayCommandInterface`. +* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response + on a request while the request is still being transferred +* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess + +3.3 to 3.4 +---------- + +Base URLs of a client now follow the rules of https://tools.ietf.org/html/rfc3986#section-5.2.2 when merging URLs. + +3.2 to 3.3 +---------- + +### Response::getEtag() quote stripping removed + +`Guzzle\Http\Message\Response::getEtag()` no longer strips quotes around the ETag response header + +### Removed `Guzzle\Http\Utils` + +The `Guzzle\Http\Utils` class was removed. This class was only used for testing. + +### Stream wrapper and type + +`Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getStreamType()` are no longer converted to lowercase. + +### curl.emit_io became emit_io + +Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using the +'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' + +3.1 to 3.2 +---------- + +### CurlMulti is no longer reused globally + +Before 3.2, the same CurlMulti object was reused globally for each client. This can cause issue where plugins added +to a single client can pollute requests dispatched from other clients. + +If you still wish to reuse the same CurlMulti object with each client, then you can add a listener to the +ServiceBuilder's `service_builder.create_client` event to inject a custom CurlMulti object into each client as it is +created. + +```php +$multi = new Guzzle\Http\Curl\CurlMulti(); +$builder = Guzzle\Service\Builder\ServiceBuilder::factory('/path/to/config.json'); +$builder->addListener('service_builder.create_client', function ($event) use ($multi) { + $event['client']->setCurlMulti($multi); +} +}); +``` + +### No default path + +URLs no longer have a default path value of '/' if no path was specified. + +Before: + +```php +$request = $client->get('http://www.foo.com'); +echo $request->getUrl(); +// >> http://www.foo.com/ +``` + +After: + +```php +$request = $client->get('http://www.foo.com'); +echo $request->getUrl(); +// >> http://www.foo.com +``` + +### Less verbose BadResponseException + +The exception message for `Guzzle\Http\Exception\BadResponseException` no longer contains the full HTTP request and +response information. You can, however, get access to the request and response object by calling `getRequest()` or +`getResponse()` on the exception object. + +### Query parameter aggregation + +Multi-valued query parameters are no longer aggregated using a callback function. `Guzzle\Http\Query` now has a +setAggregator() method that accepts a `Guzzle\Http\QueryAggregator\QueryAggregatorInterface` object. This object is +responsible for handling the aggregation of multi-valued query string variables into a flattened hash. + +2.8 to 3.x +---------- + +### Guzzle\Service\Inspector + +Change `\Guzzle\Service\Inspector::fromConfig` to `\Guzzle\Common\Collection::fromConfig` + +**Before** + +```php +use Guzzle\Service\Inspector; + +class YourClient extends \Guzzle\Service\Client +{ + public static function factory($config = array()) + { + $default = array(); + $required = array('base_url', 'username', 'api_key'); + $config = Inspector::fromConfig($config, $default, $required); + + $client = new self( + $config->get('base_url'), + $config->get('username'), + $config->get('api_key') + ); + $client->setConfig($config); + + $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); + + return $client; + } +``` + +**After** + +```php +use Guzzle\Common\Collection; + +class YourClient extends \Guzzle\Service\Client +{ + public static function factory($config = array()) + { + $default = array(); + $required = array('base_url', 'username', 'api_key'); + $config = Collection::fromConfig($config, $default, $required); + + $client = new self( + $config->get('base_url'), + $config->get('username'), + $config->get('api_key') + ); + $client->setConfig($config); + + $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); + + return $client; + } +``` + +### Convert XML Service Descriptions to JSON + +**Before** + +```xml + + + + + + Get a list of groups + + + Uses a search query to get a list of groups + + + + Create a group + + + + + Delete a group by ID + + + + + + + Update a group + + + + + + +``` + +**After** + +```json +{ + "name": "Zendesk REST API v2", + "apiVersion": "2012-12-31", + "description":"Provides access to Zendesk views, groups, tickets, ticket fields, and users", + "operations": { + "list_groups": { + "httpMethod":"GET", + "uri": "groups.json", + "summary": "Get a list of groups" + }, + "search_groups":{ + "httpMethod":"GET", + "uri": "search.json?query=\"{query} type:group\"", + "summary": "Uses a search query to get a list of groups", + "parameters":{ + "query":{ + "location": "uri", + "description":"Zendesk Search Query", + "type": "string", + "required": true + } + } + }, + "create_group": { + "httpMethod":"POST", + "uri": "groups.json", + "summary": "Create a group", + "parameters":{ + "data": { + "type": "array", + "location": "body", + "description":"Group JSON", + "filters": "json_encode", + "required": true + }, + "Content-Type":{ + "type": "string", + "location":"header", + "static": "application/json" + } + } + }, + "delete_group": { + "httpMethod":"DELETE", + "uri": "groups/{id}.json", + "summary": "Delete a group", + "parameters":{ + "id":{ + "location": "uri", + "description":"Group to delete by ID", + "type": "integer", + "required": true + } + } + }, + "get_group": { + "httpMethod":"GET", + "uri": "groups/{id}.json", + "summary": "Get a ticket", + "parameters":{ + "id":{ + "location": "uri", + "description":"Group to get by ID", + "type": "integer", + "required": true + } + } + }, + "update_group": { + "httpMethod":"PUT", + "uri": "groups/{id}.json", + "summary": "Update a group", + "parameters":{ + "id": { + "location": "uri", + "description":"Group to update by ID", + "type": "integer", + "required": true + }, + "data": { + "type": "array", + "location": "body", + "description":"Group JSON", + "filters": "json_encode", + "required": true + }, + "Content-Type":{ + "type": "string", + "location":"header", + "static": "application/json" + } + } + } +} +``` + +### Guzzle\Service\Description\ServiceDescription + +Commands are now called Operations + +**Before** + +```php +use Guzzle\Service\Description\ServiceDescription; + +$sd = new ServiceDescription(); +$sd->getCommands(); // @returns ApiCommandInterface[] +$sd->hasCommand($name); +$sd->getCommand($name); // @returns ApiCommandInterface|null +$sd->addCommand($command); // @param ApiCommandInterface $command +``` + +**After** + +```php +use Guzzle\Service\Description\ServiceDescription; + +$sd = new ServiceDescription(); +$sd->getOperations(); // @returns OperationInterface[] +$sd->hasOperation($name); +$sd->getOperation($name); // @returns OperationInterface|null +$sd->addOperation($operation); // @param OperationInterface $operation +``` + +### Guzzle\Common\Inflection\Inflector + +Namespace is now `Guzzle\Inflection\Inflector` + +### Guzzle\Http\Plugin + +Namespace is now `Guzzle\Plugin`. Many other changes occur within this namespace and are detailed in their own sections below. + +### Guzzle\Http\Plugin\LogPlugin and Guzzle\Common\Log + +Now `Guzzle\Plugin\Log\LogPlugin` and `Guzzle\Log` respectively. + +**Before** + +```php +use Guzzle\Common\Log\ClosureLogAdapter; +use Guzzle\Http\Plugin\LogPlugin; + +/** @var \Guzzle\Http\Client */ +$client; + +// $verbosity is an integer indicating desired message verbosity level +$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $verbosity = LogPlugin::LOG_VERBOSE); +``` + +**After** + +```php +use Guzzle\Log\ClosureLogAdapter; +use Guzzle\Log\MessageFormatter; +use Guzzle\Plugin\Log\LogPlugin; + +/** @var \Guzzle\Http\Client */ +$client; + +// $format is a string indicating desired message format -- @see MessageFormatter +$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $format = MessageFormatter::DEBUG_FORMAT); +``` + +### Guzzle\Http\Plugin\CurlAuthPlugin + +Now `Guzzle\Plugin\CurlAuth\CurlAuthPlugin`. + +### Guzzle\Http\Plugin\ExponentialBackoffPlugin + +Now `Guzzle\Plugin\Backoff\BackoffPlugin`, and other changes. + +**Before** + +```php +use Guzzle\Http\Plugin\ExponentialBackoffPlugin; + +$backoffPlugin = new ExponentialBackoffPlugin($maxRetries, array_merge( + ExponentialBackoffPlugin::getDefaultFailureCodes(), array(429) + )); + +$client->addSubscriber($backoffPlugin); +``` + +**After** + +```php +use Guzzle\Plugin\Backoff\BackoffPlugin; +use Guzzle\Plugin\Backoff\HttpBackoffStrategy; + +// Use convenient factory method instead -- see implementation for ideas of what +// you can do with chaining backoff strategies +$backoffPlugin = BackoffPlugin::getExponentialBackoff($maxRetries, array_merge( + HttpBackoffStrategy::getDefaultFailureCodes(), array(429) + )); +$client->addSubscriber($backoffPlugin); +``` + +### Known Issues + +#### [BUG] Accept-Encoding header behavior changed unintentionally. + +(See #217) (Fixed in 09daeb8c666fb44499a0646d655a8ae36456575e) + +In version 2.8 setting the `Accept-Encoding` header would set the CURLOPT_ENCODING option, which permitted cURL to +properly handle gzip/deflate compressed responses from the server. In versions affected by this bug this does not happen. +See issue #217 for a workaround, or use a version containing the fix. diff --git a/vendor/guzzlehttp/guzzle/composer.json b/vendor/guzzlehttp/guzzle/composer.json new file mode 100644 index 000000000..72defd614 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/composer.json @@ -0,0 +1,103 @@ +{ + "name": "guzzlehttp/guzzle", + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "framework", + "http", + "rest", + "web service", + "curl", + "client", + "HTTP client", + "PSR-7", + "PSR-18" + ], + "license": "MIT", + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "require": { + "php": "^7.2.5 || ^8.0", + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0.1", + "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "ext-curl": "*", + "bamarni/composer-bin-plugin": "^1.8.1", + "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "config": { + "allow-plugins": { + "bamarni/composer-bin-plugin": true + }, + "preferred-install": "dist", + "sort-packages": true + }, + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "autoload-dev": { + "psr-4": { + "GuzzleHttp\\Tests\\": "tests/" + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/BodySummarizer.php b/vendor/guzzlehttp/guzzle/src/BodySummarizer.php new file mode 100644 index 000000000..6eca94ef9 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/BodySummarizer.php @@ -0,0 +1,28 @@ +truncateAt = $truncateAt; + } + + /** + * Returns a summarized message body. + */ + public function summarize(MessageInterface $message): ?string + { + return $this->truncateAt === null + ? \GuzzleHttp\Psr7\Message::bodySummary($message) + : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php b/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php new file mode 100644 index 000000000..3e02e036e --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/BodySummarizerInterface.php @@ -0,0 +1,13 @@ + 'http://www.foo.com/1.0/', + * 'timeout' => 0, + * 'allow_redirects' => false, + * 'proxy' => '192.168.16.1:10' + * ]); + * + * Client configuration settings include the following options: + * + * - handler: (callable) Function that transfers HTTP requests over the + * wire. The function is called with a Psr7\Http\Message\RequestInterface + * and array of transfer options, and must return a + * GuzzleHttp\Promise\PromiseInterface that is fulfilled with a + * Psr7\Http\Message\ResponseInterface on success. + * If no handler is provided, a default handler will be created + * that enables all of the request options below by attaching all of the + * default middleware to the handler. + * - base_uri: (string|UriInterface) Base URI of the client that is merged + * into relative URIs. Can be a string or instance of UriInterface. + * - **: any request option + * + * @param array $config Client configuration settings. + * + * @see \GuzzleHttp\RequestOptions for a list of available request options. + */ + public function __construct(array $config = []) + { + if (!isset($config['handler'])) { + $config['handler'] = HandlerStack::create(); + } elseif (!\is_callable($config['handler'])) { + throw new InvalidArgumentException('handler must be a callable'); + } + + // Convert the base_uri to a UriInterface + if (isset($config['base_uri'])) { + $config['base_uri'] = Psr7\Utils::uriFor($config['base_uri']); + } + + $this->configureDefaults($config); + } + + /** + * @param string $method + * @param array $args + * + * @return PromiseInterface|ResponseInterface + * + * @deprecated Client::__call will be removed in guzzlehttp/guzzle:8.0. + */ + public function __call($method, $args) + { + if (\count($args) < 1) { + throw new InvalidArgumentException('Magic request methods require a URI and optional options array'); + } + + $uri = $args[0]; + $opts = $args[1] ?? []; + + return \substr($method, -5) === 'Async' + ? $this->requestAsync(\substr($method, 0, -5), $uri, $opts) + : $this->request($method, $uri, $opts); + } + + /** + * Asynchronously send an HTTP request. + * + * @param array $options Request options to apply to the given + * request and to the transfer. See \GuzzleHttp\RequestOptions. + */ + public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface + { + // Merge the base URI into the request URI if needed. + $options = $this->prepareDefaults($options); + + return $this->transfer( + $request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), + $options + ); + } + + /** + * Send an HTTP request. + * + * @param array $options Request options to apply to the given + * request and to the transfer. See \GuzzleHttp\RequestOptions. + * + * @throws GuzzleException + */ + public function send(RequestInterface $request, array $options = []): ResponseInterface + { + $options[RequestOptions::SYNCHRONOUS] = true; + + return $this->sendAsync($request, $options)->wait(); + } + + /** + * The HttpClient PSR (PSR-18) specify this method. + * + * {@inheritDoc} + */ + public function sendRequest(RequestInterface $request): ResponseInterface + { + $options[RequestOptions::SYNCHRONOUS] = true; + $options[RequestOptions::ALLOW_REDIRECTS] = false; + $options[RequestOptions::HTTP_ERRORS] = false; + + return $this->sendAsync($request, $options)->wait(); + } + + /** + * Create and send an asynchronous HTTP request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string $method HTTP method + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions. + */ + public function requestAsync(string $method, $uri = '', array $options = []): PromiseInterface + { + $options = $this->prepareDefaults($options); + // Remove request modifying parameter because it can be done up-front. + $headers = $options['headers'] ?? []; + $body = $options['body'] ?? null; + $version = $options['version'] ?? '1.1'; + // Merge the URI into the base URI. + $uri = $this->buildUri(Psr7\Utils::uriFor($uri), $options); + if (\is_array($body)) { + throw $this->invalidBody(); + } + $request = new Psr7\Request($method, $uri, $headers, $body, $version); + // Remove the option so that they are not doubly-applied. + unset($options['headers'], $options['body'], $options['version']); + + return $this->transfer($request, $options); + } + + /** + * Create and send an HTTP request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string $method HTTP method. + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions. + * + * @throws GuzzleException + */ + public function request(string $method, $uri = '', array $options = []): ResponseInterface + { + $options[RequestOptions::SYNCHRONOUS] = true; + + return $this->requestAsync($method, $uri, $options)->wait(); + } + + /** + * Get a client configuration option. + * + * These options include default request options of the client, a "handler" + * (if utilized by the concrete client), and a "base_uri" if utilized by + * the concrete client. + * + * @param string|null $option The config option to retrieve. + * + * @return mixed + * + * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0. + */ + public function getConfig(string $option = null) + { + return $option === null + ? $this->config + : ($this->config[$option] ?? null); + } + + private function buildUri(UriInterface $uri, array $config): UriInterface + { + if (isset($config['base_uri'])) { + $uri = Psr7\UriResolver::resolve(Psr7\Utils::uriFor($config['base_uri']), $uri); + } + + if (isset($config['idn_conversion']) && ($config['idn_conversion'] !== false)) { + $idnOptions = ($config['idn_conversion'] === true) ? \IDNA_DEFAULT : $config['idn_conversion']; + $uri = Utils::idnUriConvert($uri, $idnOptions); + } + + return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri; + } + + /** + * Configures the default options for a client. + */ + private function configureDefaults(array $config): void + { + $defaults = [ + 'allow_redirects' => RedirectMiddleware::$defaultSettings, + 'http_errors' => true, + 'decode_content' => true, + 'verify' => true, + 'cookies' => false, + 'idn_conversion' => false, + ]; + + // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set. + + // We can only trust the HTTP_PROXY environment variable in a CLI + // process due to the fact that PHP has no reliable mechanism to + // get environment variables that start with "HTTP_". + if (\PHP_SAPI === 'cli' && ($proxy = Utils::getenv('HTTP_PROXY'))) { + $defaults['proxy']['http'] = $proxy; + } + + if ($proxy = Utils::getenv('HTTPS_PROXY')) { + $defaults['proxy']['https'] = $proxy; + } + + if ($noProxy = Utils::getenv('NO_PROXY')) { + $cleanedNoProxy = \str_replace(' ', '', $noProxy); + $defaults['proxy']['no'] = \explode(',', $cleanedNoProxy); + } + + $this->config = $config + $defaults; + + if (!empty($config['cookies']) && $config['cookies'] === true) { + $this->config['cookies'] = new CookieJar(); + } + + // Add the default user-agent header. + if (!isset($this->config['headers'])) { + $this->config['headers'] = ['User-Agent' => Utils::defaultUserAgent()]; + } else { + // Add the User-Agent header if one was not already set. + foreach (\array_keys($this->config['headers']) as $name) { + if (\strtolower($name) === 'user-agent') { + return; + } + } + $this->config['headers']['User-Agent'] = Utils::defaultUserAgent(); + } + } + + /** + * Merges default options into the array. + * + * @param array $options Options to modify by reference + */ + private function prepareDefaults(array $options): array + { + $defaults = $this->config; + + if (!empty($defaults['headers'])) { + // Default headers are only added if they are not present. + $defaults['_conditional'] = $defaults['headers']; + unset($defaults['headers']); + } + + // Special handling for headers is required as they are added as + // conditional headers and as headers passed to a request ctor. + if (\array_key_exists('headers', $options)) { + // Allows default headers to be unset. + if ($options['headers'] === null) { + $defaults['_conditional'] = []; + unset($options['headers']); + } elseif (!\is_array($options['headers'])) { + throw new InvalidArgumentException('headers must be an array'); + } + } + + // Shallow merge defaults underneath options. + $result = $options + $defaults; + + // Remove null values. + foreach ($result as $k => $v) { + if ($v === null) { + unset($result[$k]); + } + } + + return $result; + } + + /** + * Transfers the given request and applies request options. + * + * The URI of the request is not modified and the request options are used + * as-is without merging in default options. + * + * @param array $options See \GuzzleHttp\RequestOptions. + */ + private function transfer(RequestInterface $request, array $options): PromiseInterface + { + $request = $this->applyOptions($request, $options); + /** @var HandlerStack $handler */ + $handler = $options['handler']; + + try { + return P\Create::promiseFor($handler($request, $options)); + } catch (\Exception $e) { + return P\Create::rejectionFor($e); + } + } + + /** + * Applies the array of request options to a request. + */ + private function applyOptions(RequestInterface $request, array &$options): RequestInterface + { + $modify = [ + 'set_headers' => [], + ]; + + if (isset($options['headers'])) { + if (array_keys($options['headers']) === range(0, count($options['headers']) - 1)) { + throw new InvalidArgumentException('The headers array must have header name as keys.'); + } + $modify['set_headers'] = $options['headers']; + unset($options['headers']); + } + + if (isset($options['form_params'])) { + if (isset($options['multipart'])) { + throw new InvalidArgumentException('You cannot use ' + .'form_params and multipart at the same time. Use the ' + .'form_params option if you want to send application/' + .'x-www-form-urlencoded requests, and the multipart ' + .'option to send multipart/form-data requests.'); + } + $options['body'] = \http_build_query($options['form_params'], '', '&'); + unset($options['form_params']); + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); + $options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded'; + } + + if (isset($options['multipart'])) { + $options['body'] = new Psr7\MultipartStream($options['multipart']); + unset($options['multipart']); + } + + if (isset($options['json'])) { + $options['body'] = Utils::jsonEncode($options['json']); + unset($options['json']); + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); + $options['_conditional']['Content-Type'] = 'application/json'; + } + + if (!empty($options['decode_content']) + && $options['decode_content'] !== true + ) { + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Accept-Encoding'], $options['_conditional']); + $modify['set_headers']['Accept-Encoding'] = $options['decode_content']; + } + + if (isset($options['body'])) { + if (\is_array($options['body'])) { + throw $this->invalidBody(); + } + $modify['body'] = Psr7\Utils::streamFor($options['body']); + unset($options['body']); + } + + if (!empty($options['auth']) && \is_array($options['auth'])) { + $value = $options['auth']; + $type = isset($value[2]) ? \strtolower($value[2]) : 'basic'; + switch ($type) { + case 'basic': + // Ensure that we don't have the header in different case and set the new value. + $modify['set_headers'] = Psr7\Utils::caselessRemove(['Authorization'], $modify['set_headers']); + $modify['set_headers']['Authorization'] = 'Basic ' + .\base64_encode("$value[0]:$value[1]"); + break; + case 'digest': + // @todo: Do not rely on curl + $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_DIGEST; + $options['curl'][\CURLOPT_USERPWD] = "$value[0]:$value[1]"; + break; + case 'ntlm': + $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_NTLM; + $options['curl'][\CURLOPT_USERPWD] = "$value[0]:$value[1]"; + break; + } + } + + if (isset($options['query'])) { + $value = $options['query']; + if (\is_array($value)) { + $value = \http_build_query($value, '', '&', \PHP_QUERY_RFC3986); + } + if (!\is_string($value)) { + throw new InvalidArgumentException('query must be a string or array'); + } + $modify['query'] = $value; + unset($options['query']); + } + + // Ensure that sink is not an invalid value. + if (isset($options['sink'])) { + // TODO: Add more sink validation? + if (\is_bool($options['sink'])) { + throw new InvalidArgumentException('sink must not be a boolean'); + } + } + + if (isset($options['version'])) { + $modify['version'] = $options['version']; + } + + $request = Psr7\Utils::modifyRequest($request, $modify); + if ($request->getBody() instanceof Psr7\MultipartStream) { + // Use a multipart/form-data POST if a Content-Type is not set. + // Ensure that we don't have the header in different case and set the new value. + $options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']); + $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' + .$request->getBody()->getBoundary(); + } + + // Merge in conditional headers if they are not present. + if (isset($options['_conditional'])) { + // Build up the changes so it's in a single clone of the message. + $modify = []; + foreach ($options['_conditional'] as $k => $v) { + if (!$request->hasHeader($k)) { + $modify['set_headers'][$k] = $v; + } + } + $request = Psr7\Utils::modifyRequest($request, $modify); + // Don't pass this internal value along to middleware/handlers. + unset($options['_conditional']); + } + + return $request; + } + + /** + * Return an InvalidArgumentException with pre-set message. + */ + private function invalidBody(): InvalidArgumentException + { + return new InvalidArgumentException('Passing in the "body" request ' + .'option as an array to send a request is not supported. ' + .'Please use the "form_params" request option to send a ' + .'application/x-www-form-urlencoded request, or the "multipart" ' + .'request option to send a multipart/form-data request.'); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/vendor/guzzlehttp/guzzle/src/ClientInterface.php new file mode 100644 index 000000000..1788e16ab --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/ClientInterface.php @@ -0,0 +1,84 @@ +request('GET', $uri, $options); + } + + /** + * Create and send an HTTP HEAD request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function head($uri, array $options = []): ResponseInterface + { + return $this->request('HEAD', $uri, $options); + } + + /** + * Create and send an HTTP PUT request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function put($uri, array $options = []): ResponseInterface + { + return $this->request('PUT', $uri, $options); + } + + /** + * Create and send an HTTP POST request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function post($uri, array $options = []): ResponseInterface + { + return $this->request('POST', $uri, $options); + } + + /** + * Create and send an HTTP PATCH request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function patch($uri, array $options = []): ResponseInterface + { + return $this->request('PATCH', $uri, $options); + } + + /** + * Create and send an HTTP DELETE request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + * + * @throws GuzzleException + */ + public function delete($uri, array $options = []): ResponseInterface + { + return $this->request('DELETE', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string $method HTTP method + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + abstract public function requestAsync(string $method, $uri, array $options = []): PromiseInterface; + + /** + * Create and send an asynchronous HTTP GET request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function getAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('GET', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP HEAD request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function headAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('HEAD', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP PUT request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function putAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('PUT', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP POST request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function postAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('POST', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP PATCH request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function patchAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('PATCH', $uri, $options); + } + + /** + * Create and send an asynchronous HTTP DELETE request. + * + * Use an absolute path to override the base path of the client, or a + * relative path to append to the base path of the client. The URL can + * contain the query string as well. Use an array to provide a URL + * template and additional variables to use in the URL template expansion. + * + * @param string|UriInterface $uri URI object or string. + * @param array $options Request options to apply. + */ + public function deleteAsync($uri, array $options = []): PromiseInterface + { + return $this->requestAsync('DELETE', $uri, $options); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php b/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php new file mode 100644 index 000000000..fa2b10a8c --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php @@ -0,0 +1,307 @@ +strictMode = $strictMode; + + foreach ($cookieArray as $cookie) { + if (!($cookie instanceof SetCookie)) { + $cookie = new SetCookie($cookie); + } + $this->setCookie($cookie); + } + } + + /** + * Create a new Cookie jar from an associative array and domain. + * + * @param array $cookies Cookies to create the jar from + * @param string $domain Domain to set the cookies to + */ + public static function fromArray(array $cookies, string $domain): self + { + $cookieJar = new self(); + foreach ($cookies as $name => $value) { + $cookieJar->setCookie(new SetCookie([ + 'Domain' => $domain, + 'Name' => $name, + 'Value' => $value, + 'Discard' => true, + ])); + } + + return $cookieJar; + } + + /** + * Evaluate if this cookie should be persisted to storage + * that survives between requests. + * + * @param SetCookie $cookie Being evaluated. + * @param bool $allowSessionCookies If we should persist session cookies + */ + public static function shouldPersist(SetCookie $cookie, bool $allowSessionCookies = false): bool + { + if ($cookie->getExpires() || $allowSessionCookies) { + if (!$cookie->getDiscard()) { + return true; + } + } + + return false; + } + + /** + * Finds and returns the cookie based on the name + * + * @param string $name cookie name to search for + * + * @return SetCookie|null cookie that was found or null if not found + */ + public function getCookieByName(string $name): ?SetCookie + { + foreach ($this->cookies as $cookie) { + if ($cookie->getName() !== null && \strcasecmp($cookie->getName(), $name) === 0) { + return $cookie; + } + } + + return null; + } + + public function toArray(): array + { + return \array_map(static function (SetCookie $cookie): array { + return $cookie->toArray(); + }, $this->getIterator()->getArrayCopy()); + } + + public function clear(string $domain = null, string $path = null, string $name = null): void + { + if (!$domain) { + $this->cookies = []; + + return; + } elseif (!$path) { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie) use ($domain): bool { + return !$cookie->matchesDomain($domain); + } + ); + } elseif (!$name) { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie) use ($path, $domain): bool { + return !($cookie->matchesPath($path) + && $cookie->matchesDomain($domain)); + } + ); + } else { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie) use ($path, $domain, $name) { + return !($cookie->getName() == $name + && $cookie->matchesPath($path) + && $cookie->matchesDomain($domain)); + } + ); + } + } + + public function clearSessionCookies(): void + { + $this->cookies = \array_filter( + $this->cookies, + static function (SetCookie $cookie): bool { + return !$cookie->getDiscard() && $cookie->getExpires(); + } + ); + } + + public function setCookie(SetCookie $cookie): bool + { + // If the name string is empty (but not 0), ignore the set-cookie + // string entirely. + $name = $cookie->getName(); + if (!$name && $name !== '0') { + return false; + } + + // Only allow cookies with set and valid domain, name, value + $result = $cookie->validate(); + if ($result !== true) { + if ($this->strictMode) { + throw new \RuntimeException('Invalid cookie: '.$result); + } + $this->removeCookieIfEmpty($cookie); + + return false; + } + + // Resolve conflicts with previously set cookies + foreach ($this->cookies as $i => $c) { + // Two cookies are identical, when their path, and domain are + // identical. + if ($c->getPath() != $cookie->getPath() + || $c->getDomain() != $cookie->getDomain() + || $c->getName() != $cookie->getName() + ) { + continue; + } + + // The previously set cookie is a discard cookie and this one is + // not so allow the new cookie to be set + if (!$cookie->getDiscard() && $c->getDiscard()) { + unset($this->cookies[$i]); + continue; + } + + // If the new cookie's expiration is further into the future, then + // replace the old cookie + if ($cookie->getExpires() > $c->getExpires()) { + unset($this->cookies[$i]); + continue; + } + + // If the value has changed, we better change it + if ($cookie->getValue() !== $c->getValue()) { + unset($this->cookies[$i]); + continue; + } + + // The cookie exists, so no need to continue + return false; + } + + $this->cookies[] = $cookie; + + return true; + } + + public function count(): int + { + return \count($this->cookies); + } + + /** + * @return \ArrayIterator + */ + public function getIterator(): \ArrayIterator + { + return new \ArrayIterator(\array_values($this->cookies)); + } + + public function extractCookies(RequestInterface $request, ResponseInterface $response): void + { + if ($cookieHeader = $response->getHeader('Set-Cookie')) { + foreach ($cookieHeader as $cookie) { + $sc = SetCookie::fromString($cookie); + if (!$sc->getDomain()) { + $sc->setDomain($request->getUri()->getHost()); + } + if (0 !== \strpos($sc->getPath(), '/')) { + $sc->setPath($this->getCookiePathFromRequest($request)); + } + if (!$sc->matchesDomain($request->getUri()->getHost())) { + continue; + } + // Note: At this point `$sc->getDomain()` being a public suffix should + // be rejected, but we don't want to pull in the full PSL dependency. + $this->setCookie($sc); + } + } + } + + /** + * Computes cookie path following RFC 6265 section 5.1.4 + * + * @see https://tools.ietf.org/html/rfc6265#section-5.1.4 + */ + private function getCookiePathFromRequest(RequestInterface $request): string + { + $uriPath = $request->getUri()->getPath(); + if ('' === $uriPath) { + return '/'; + } + if (0 !== \strpos($uriPath, '/')) { + return '/'; + } + if ('/' === $uriPath) { + return '/'; + } + $lastSlashPos = \strrpos($uriPath, '/'); + if (0 === $lastSlashPos || false === $lastSlashPos) { + return '/'; + } + + return \substr($uriPath, 0, $lastSlashPos); + } + + public function withCookieHeader(RequestInterface $request): RequestInterface + { + $values = []; + $uri = $request->getUri(); + $scheme = $uri->getScheme(); + $host = $uri->getHost(); + $path = $uri->getPath() ?: '/'; + + foreach ($this->cookies as $cookie) { + if ($cookie->matchesPath($path) + && $cookie->matchesDomain($host) + && !$cookie->isExpired() + && (!$cookie->getSecure() || $scheme === 'https') + ) { + $values[] = $cookie->getName().'=' + .$cookie->getValue(); + } + } + + return $values + ? $request->withHeader('Cookie', \implode('; ', $values)) + : $request; + } + + /** + * If a cookie already exists and the server asks to set it again with a + * null value, the cookie must be deleted. + */ + private function removeCookieIfEmpty(SetCookie $cookie): void + { + $cookieValue = $cookie->getValue(); + if ($cookieValue === null || $cookieValue === '') { + $this->clear( + $cookie->getDomain(), + $cookie->getPath(), + $cookie->getName() + ); + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php new file mode 100644 index 000000000..8c55cc6f7 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php @@ -0,0 +1,80 @@ + + */ +interface CookieJarInterface extends \Countable, \IteratorAggregate +{ + /** + * Create a request with added cookie headers. + * + * If no matching cookies are found in the cookie jar, then no Cookie + * header is added to the request and the same request is returned. + * + * @param RequestInterface $request Request object to modify. + * + * @return RequestInterface returns the modified request. + */ + public function withCookieHeader(RequestInterface $request): RequestInterface; + + /** + * Extract cookies from an HTTP response and store them in the CookieJar. + * + * @param RequestInterface $request Request that was sent + * @param ResponseInterface $response Response that was received + */ + public function extractCookies(RequestInterface $request, ResponseInterface $response): void; + + /** + * Sets a cookie in the cookie jar. + * + * @param SetCookie $cookie Cookie to set. + * + * @return bool Returns true on success or false on failure + */ + public function setCookie(SetCookie $cookie): bool; + + /** + * Remove cookies currently held in the cookie jar. + * + * Invoking this method without arguments will empty the whole cookie jar. + * If given a $domain argument only cookies belonging to that domain will + * be removed. If given a $domain and $path argument, cookies belonging to + * the specified path within that domain are removed. If given all three + * arguments, then the cookie with the specified name, path and domain is + * removed. + * + * @param string|null $domain Clears cookies matching a domain + * @param string|null $path Clears cookies matching a domain and path + * @param string|null $name Clears cookies matching a domain, path, and name + */ + public function clear(string $domain = null, string $path = null, string $name = null): void; + + /** + * Discard all sessions cookies. + * + * Removes cookies that don't have an expire field or a have a discard + * field set to true. To be called when the user agent shuts down according + * to RFC 2965. + */ + public function clearSessionCookies(): void; + + /** + * Converts the cookie jar to an array. + */ + public function toArray(): array; +} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php b/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php new file mode 100644 index 000000000..290236d54 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php @@ -0,0 +1,101 @@ +filename = $cookieFile; + $this->storeSessionCookies = $storeSessionCookies; + + if (\file_exists($cookieFile)) { + $this->load($cookieFile); + } + } + + /** + * Saves the file when shutting down + */ + public function __destruct() + { + $this->save($this->filename); + } + + /** + * Saves the cookies to a file. + * + * @param string $filename File to save + * + * @throws \RuntimeException if the file cannot be found or created + */ + public function save(string $filename): void + { + $json = []; + /** @var SetCookie $cookie */ + foreach ($this as $cookie) { + if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { + $json[] = $cookie->toArray(); + } + } + + $jsonStr = Utils::jsonEncode($json); + if (false === \file_put_contents($filename, $jsonStr, \LOCK_EX)) { + throw new \RuntimeException("Unable to save file {$filename}"); + } + } + + /** + * Load cookies from a JSON formatted file. + * + * Old cookies are kept unless overwritten by newly loaded ones. + * + * @param string $filename Cookie file to load. + * + * @throws \RuntimeException if the file cannot be loaded. + */ + public function load(string $filename): void + { + $json = \file_get_contents($filename); + if (false === $json) { + throw new \RuntimeException("Unable to load file {$filename}"); + } + if ($json === '') { + return; + } + + $data = Utils::jsonDecode($json, true); + if (\is_array($data)) { + foreach ($data as $cookie) { + $this->setCookie(new SetCookie($cookie)); + } + } elseif (\is_scalar($data) && !empty($data)) { + throw new \RuntimeException("Invalid cookie file: {$filename}"); + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php b/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php new file mode 100644 index 000000000..cb3e67c6a --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php @@ -0,0 +1,77 @@ +sessionKey = $sessionKey; + $this->storeSessionCookies = $storeSessionCookies; + $this->load(); + } + + /** + * Saves cookies to session when shutting down + */ + public function __destruct() + { + $this->save(); + } + + /** + * Save cookies to the client session + */ + public function save(): void + { + $json = []; + /** @var SetCookie $cookie */ + foreach ($this as $cookie) { + if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { + $json[] = $cookie->toArray(); + } + } + + $_SESSION[$this->sessionKey] = \json_encode($json); + } + + /** + * Load the contents of the client session into the data array + */ + protected function load(): void + { + if (!isset($_SESSION[$this->sessionKey])) { + return; + } + $data = \json_decode($_SESSION[$this->sessionKey], true); + if (\is_array($data)) { + foreach ($data as $cookie) { + $this->setCookie(new SetCookie($cookie)); + } + } elseif (\strlen($data)) { + throw new \RuntimeException('Invalid cookie data'); + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php b/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php new file mode 100644 index 000000000..d74915bed --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php @@ -0,0 +1,488 @@ + null, + 'Value' => null, + 'Domain' => null, + 'Path' => '/', + 'Max-Age' => null, + 'Expires' => null, + 'Secure' => false, + 'Discard' => false, + 'HttpOnly' => false, + ]; + + /** + * @var array Cookie data + */ + private $data; + + /** + * Create a new SetCookie object from a string. + * + * @param string $cookie Set-Cookie header string + */ + public static function fromString(string $cookie): self + { + // Create the default return array + $data = self::$defaults; + // Explode the cookie string using a series of semicolons + $pieces = \array_filter(\array_map('trim', \explode(';', $cookie))); + // The name of the cookie (first kvp) must exist and include an equal sign. + if (!isset($pieces[0]) || \strpos($pieces[0], '=') === false) { + return new self($data); + } + + // Add the cookie pieces into the parsed data array + foreach ($pieces as $part) { + $cookieParts = \explode('=', $part, 2); + $key = \trim($cookieParts[0]); + $value = isset($cookieParts[1]) + ? \trim($cookieParts[1], " \n\r\t\0\x0B") + : true; + + // Only check for non-cookies when cookies have been found + if (!isset($data['Name'])) { + $data['Name'] = $key; + $data['Value'] = $value; + } else { + foreach (\array_keys(self::$defaults) as $search) { + if (!\strcasecmp($search, $key)) { + if ($search === 'Max-Age') { + if (is_numeric($value)) { + $data[$search] = (int) $value; + } + } else { + $data[$search] = $value; + } + continue 2; + } + } + $data[$key] = $value; + } + } + + return new self($data); + } + + /** + * @param array $data Array of cookie data provided by a Cookie parser + */ + public function __construct(array $data = []) + { + $this->data = self::$defaults; + + if (isset($data['Name'])) { + $this->setName($data['Name']); + } + + if (isset($data['Value'])) { + $this->setValue($data['Value']); + } + + if (isset($data['Domain'])) { + $this->setDomain($data['Domain']); + } + + if (isset($data['Path'])) { + $this->setPath($data['Path']); + } + + if (isset($data['Max-Age'])) { + $this->setMaxAge($data['Max-Age']); + } + + if (isset($data['Expires'])) { + $this->setExpires($data['Expires']); + } + + if (isset($data['Secure'])) { + $this->setSecure($data['Secure']); + } + + if (isset($data['Discard'])) { + $this->setDiscard($data['Discard']); + } + + if (isset($data['HttpOnly'])) { + $this->setHttpOnly($data['HttpOnly']); + } + + // Set the remaining values that don't have extra validation logic + foreach (array_diff(array_keys($data), array_keys(self::$defaults)) as $key) { + $this->data[$key] = $data[$key]; + } + + // Extract the Expires value and turn it into a UNIX timestamp if needed + if (!$this->getExpires() && $this->getMaxAge()) { + // Calculate the Expires date + $this->setExpires(\time() + $this->getMaxAge()); + } elseif (null !== ($expires = $this->getExpires()) && !\is_numeric($expires)) { + $this->setExpires($expires); + } + } + + public function __toString() + { + $str = $this->data['Name'].'='.($this->data['Value'] ?? '').'; '; + foreach ($this->data as $k => $v) { + if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== false) { + if ($k === 'Expires') { + $str .= 'Expires='.\gmdate('D, d M Y H:i:s \G\M\T', $v).'; '; + } else { + $str .= ($v === true ? $k : "{$k}={$v}").'; '; + } + } + } + + return \rtrim($str, '; '); + } + + public function toArray(): array + { + return $this->data; + } + + /** + * Get the cookie name. + * + * @return string + */ + public function getName() + { + return $this->data['Name']; + } + + /** + * Set the cookie name. + * + * @param string $name Cookie name + */ + public function setName($name): void + { + if (!is_string($name)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Name'] = (string) $name; + } + + /** + * Get the cookie value. + * + * @return string|null + */ + public function getValue() + { + return $this->data['Value']; + } + + /** + * Set the cookie value. + * + * @param string $value Cookie value + */ + public function setValue($value): void + { + if (!is_string($value)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Value'] = (string) $value; + } + + /** + * Get the domain. + * + * @return string|null + */ + public function getDomain() + { + return $this->data['Domain']; + } + + /** + * Set the domain of the cookie. + * + * @param string|null $domain + */ + public function setDomain($domain): void + { + if (!is_string($domain) && null !== $domain) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Domain'] = null === $domain ? null : (string) $domain; + } + + /** + * Get the path. + * + * @return string + */ + public function getPath() + { + return $this->data['Path']; + } + + /** + * Set the path of the cookie. + * + * @param string $path Path of the cookie + */ + public function setPath($path): void + { + if (!is_string($path)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Path'] = (string) $path; + } + + /** + * Maximum lifetime of the cookie in seconds. + * + * @return int|null + */ + public function getMaxAge() + { + return null === $this->data['Max-Age'] ? null : (int) $this->data['Max-Age']; + } + + /** + * Set the max-age of the cookie. + * + * @param int|null $maxAge Max age of the cookie in seconds + */ + public function setMaxAge($maxAge): void + { + if (!is_int($maxAge) && null !== $maxAge) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Max-Age'] = $maxAge === null ? null : (int) $maxAge; + } + + /** + * The UNIX timestamp when the cookie Expires. + * + * @return string|int|null + */ + public function getExpires() + { + return $this->data['Expires']; + } + + /** + * Set the unix timestamp for which the cookie will expire. + * + * @param int|string|null $timestamp Unix timestamp or any English textual datetime description. + */ + public function setExpires($timestamp): void + { + if (!is_int($timestamp) && !is_string($timestamp) && null !== $timestamp) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int, string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Expires'] = null === $timestamp ? null : (\is_numeric($timestamp) ? (int) $timestamp : \strtotime((string) $timestamp)); + } + + /** + * Get whether or not this is a secure cookie. + * + * @return bool + */ + public function getSecure() + { + return $this->data['Secure']; + } + + /** + * Set whether or not the cookie is secure. + * + * @param bool $secure Set to true or false if secure + */ + public function setSecure($secure): void + { + if (!is_bool($secure)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Secure'] = (bool) $secure; + } + + /** + * Get whether or not this is a session cookie. + * + * @return bool|null + */ + public function getDiscard() + { + return $this->data['Discard']; + } + + /** + * Set whether or not this is a session cookie. + * + * @param bool $discard Set to true or false if this is a session cookie + */ + public function setDiscard($discard): void + { + if (!is_bool($discard)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['Discard'] = (bool) $discard; + } + + /** + * Get whether or not this is an HTTP only cookie. + * + * @return bool + */ + public function getHttpOnly() + { + return $this->data['HttpOnly']; + } + + /** + * Set whether or not this is an HTTP only cookie. + * + * @param bool $httpOnly Set to true or false if this is HTTP only + */ + public function setHttpOnly($httpOnly): void + { + if (!is_bool($httpOnly)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->data['HttpOnly'] = (bool) $httpOnly; + } + + /** + * Check if the cookie matches a path value. + * + * A request-path path-matches a given cookie-path if at least one of + * the following conditions holds: + * + * - The cookie-path and the request-path are identical. + * - The cookie-path is a prefix of the request-path, and the last + * character of the cookie-path is %x2F ("/"). + * - The cookie-path is a prefix of the request-path, and the first + * character of the request-path that is not included in the cookie- + * path is a %x2F ("/") character. + * + * @param string $requestPath Path to check against + */ + public function matchesPath(string $requestPath): bool + { + $cookiePath = $this->getPath(); + + // Match on exact matches or when path is the default empty "/" + if ($cookiePath === '/' || $cookiePath == $requestPath) { + return true; + } + + // Ensure that the cookie-path is a prefix of the request path. + if (0 !== \strpos($requestPath, $cookiePath)) { + return false; + } + + // Match if the last character of the cookie-path is "/" + if (\substr($cookiePath, -1, 1) === '/') { + return true; + } + + // Match if the first character not included in cookie path is "/" + return \substr($requestPath, \strlen($cookiePath), 1) === '/'; + } + + /** + * Check if the cookie matches a domain value. + * + * @param string $domain Domain to check against + */ + public function matchesDomain(string $domain): bool + { + $cookieDomain = $this->getDomain(); + if (null === $cookieDomain) { + return true; + } + + // Remove the leading '.' as per spec in RFC 6265. + // https://tools.ietf.org/html/rfc6265#section-5.2.3 + $cookieDomain = \ltrim(\strtolower($cookieDomain), '.'); + + $domain = \strtolower($domain); + + // Domain not set or exact match. + if ('' === $cookieDomain || $domain === $cookieDomain) { + return true; + } + + // Matching the subdomain according to RFC 6265. + // https://tools.ietf.org/html/rfc6265#section-5.1.3 + if (\filter_var($domain, \FILTER_VALIDATE_IP)) { + return false; + } + + return (bool) \preg_match('/\.'.\preg_quote($cookieDomain, '/').'$/', $domain); + } + + /** + * Check if the cookie is expired. + */ + public function isExpired(): bool + { + return $this->getExpires() !== null && \time() > $this->getExpires(); + } + + /** + * Check if the cookie is valid according to RFC 6265. + * + * @return bool|string Returns true if valid or an error message if invalid + */ + public function validate() + { + $name = $this->getName(); + if ($name === '') { + return 'The cookie name must not be empty'; + } + + // Check if any of the invalid characters are present in the cookie name + if (\preg_match( + '/[\x00-\x20\x22\x28-\x29\x2c\x2f\x3a-\x40\x5c\x7b\x7d\x7f]/', + $name + )) { + return 'Cookie name must not contain invalid characters: ASCII ' + .'Control characters (0-31;127), space, tab and the ' + .'following characters: ()<>@,;:\"/?={}'; + } + + // Value must not be null. 0 and empty string are valid. Empty strings + // are technically against RFC 6265, but known to happen in the wild. + $value = $this->getValue(); + if ($value === null) { + return 'The cookie value must not be empty'; + } + + // Domains must not be empty, but can be 0. "0" is not a valid internet + // domain, but may be used as server name in a private network. + $domain = $this->getDomain(); + if ($domain === null || $domain === '') { + return 'The cookie domain must not be empty'; + } + + return true; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php new file mode 100644 index 000000000..a80956c9d --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php @@ -0,0 +1,39 @@ +request = $request; + $this->handlerContext = $handlerContext; + } + + /** + * Get the request that caused the exception + */ + public function getRequest(): RequestInterface + { + return $this->request; + } + + /** + * Get contextual information about the error from the underlying handler. + * + * The contents of this array will vary depending on which handler you are + * using. It may also be just an empty array. Relying on this data will + * couple you to a specific handler, but can give more debug information + * when needed. + */ + public function getHandlerContext(): array + { + return $this->handlerContext; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php b/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php new file mode 100644 index 000000000..fa3ed6998 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php @@ -0,0 +1,9 @@ +getStatusCode() : 0; + parent::__construct($message, $code, $previous); + $this->request = $request; + $this->response = $response; + $this->handlerContext = $handlerContext; + } + + /** + * Wrap non-RequestExceptions with a RequestException + */ + public static function wrapException(RequestInterface $request, \Throwable $e): RequestException + { + return $e instanceof RequestException ? $e : new RequestException($e->getMessage(), $request, null, $e); + } + + /** + * Factory method to create a new exception with a normalized error message + * + * @param RequestInterface $request Request sent + * @param ResponseInterface $response Response received + * @param \Throwable|null $previous Previous exception + * @param array $handlerContext Optional handler context + * @param BodySummarizerInterface|null $bodySummarizer Optional body summarizer + */ + public static function create( + RequestInterface $request, + ResponseInterface $response = null, + \Throwable $previous = null, + array $handlerContext = [], + BodySummarizerInterface $bodySummarizer = null + ): self { + if (!$response) { + return new self( + 'Error completing request', + $request, + null, + $previous, + $handlerContext + ); + } + + $level = (int) \floor($response->getStatusCode() / 100); + if ($level === 4) { + $label = 'Client error'; + $className = ClientException::class; + } elseif ($level === 5) { + $label = 'Server error'; + $className = ServerException::class; + } else { + $label = 'Unsuccessful request'; + $className = __CLASS__; + } + + $uri = $request->getUri(); + $uri = static::obfuscateUri($uri); + + // Client Error: `GET /` resulted in a `404 Not Found` response: + // ... (truncated) + $message = \sprintf( + '%s: `%s %s` resulted in a `%s %s` response', + $label, + $request->getMethod(), + $uri->__toString(), + $response->getStatusCode(), + $response->getReasonPhrase() + ); + + $summary = ($bodySummarizer ?? new BodySummarizer())->summarize($response); + + if ($summary !== null) { + $message .= ":\n{$summary}\n"; + } + + return new $className($message, $request, $response, $previous, $handlerContext); + } + + /** + * Obfuscates URI if there is a username and a password present + */ + private static function obfuscateUri(UriInterface $uri): UriInterface + { + $userInfo = $uri->getUserInfo(); + + if (false !== ($pos = \strpos($userInfo, ':'))) { + return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***'); + } + + return $uri; + } + + /** + * Get the request that caused the exception + */ + public function getRequest(): RequestInterface + { + return $this->request; + } + + /** + * Get the associated response + */ + public function getResponse(): ?ResponseInterface + { + return $this->response; + } + + /** + * Check if a response was received + */ + public function hasResponse(): bool + { + return $this->response !== null; + } + + /** + * Get contextual information about the error from the underlying handler. + * + * The contents of this array will vary depending on which handler you are + * using. It may also be just an empty array. Relying on this data will + * couple you to a specific handler, but can give more debug information + * when needed. + */ + public function getHandlerContext(): array + { + return $this->handlerContext; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php b/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php new file mode 100644 index 000000000..8055e067c --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php @@ -0,0 +1,10 @@ +maxHandles = $maxHandles; + } + + public function create(RequestInterface $request, array $options): EasyHandle + { + if (isset($options['curl']['body_as_string'])) { + $options['_body_as_string'] = $options['curl']['body_as_string']; + unset($options['curl']['body_as_string']); + } + + $easy = new EasyHandle(); + $easy->request = $request; + $easy->options = $options; + $conf = $this->getDefaultConf($easy); + $this->applyMethod($easy, $conf); + $this->applyHandlerOptions($easy, $conf); + $this->applyHeaders($easy, $conf); + unset($conf['_headers']); + + // Add handler options from the request configuration options + if (isset($options['curl'])) { + $conf = \array_replace($conf, $options['curl']); + } + + $conf[\CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy); + $easy->handle = $this->handles ? \array_pop($this->handles) : \curl_init(); + curl_setopt_array($easy->handle, $conf); + + return $easy; + } + + public function release(EasyHandle $easy): void + { + $resource = $easy->handle; + unset($easy->handle); + + if (\count($this->handles) >= $this->maxHandles) { + \curl_close($resource); + } else { + // Remove all callback functions as they can hold onto references + // and are not cleaned up by curl_reset. Using curl_setopt_array + // does not work for some reason, so removing each one + // individually. + \curl_setopt($resource, \CURLOPT_HEADERFUNCTION, null); + \curl_setopt($resource, \CURLOPT_READFUNCTION, null); + \curl_setopt($resource, \CURLOPT_WRITEFUNCTION, null); + \curl_setopt($resource, \CURLOPT_PROGRESSFUNCTION, null); + \curl_reset($resource); + $this->handles[] = $resource; + } + } + + /** + * Completes a cURL transaction, either returning a response promise or a + * rejected promise. + * + * @param callable(RequestInterface, array): PromiseInterface $handler + * @param CurlFactoryInterface $factory Dictates how the handle is released + */ + public static function finish(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface + { + if (isset($easy->options['on_stats'])) { + self::invokeStats($easy); + } + + if (!$easy->response || $easy->errno) { + return self::finishError($handler, $easy, $factory); + } + + // Return the response if it is present and there is no error. + $factory->release($easy); + + // Rewind the body of the response if possible. + $body = $easy->response->getBody(); + if ($body->isSeekable()) { + $body->rewind(); + } + + return new FulfilledPromise($easy->response); + } + + private static function invokeStats(EasyHandle $easy): void + { + $curlStats = \curl_getinfo($easy->handle); + $curlStats['appconnect_time'] = \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME); + $stats = new TransferStats( + $easy->request, + $easy->response, + $curlStats['total_time'], + $easy->errno, + $curlStats + ); + ($easy->options['on_stats'])($stats); + } + + /** + * @param callable(RequestInterface, array): PromiseInterface $handler + */ + private static function finishError(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface + { + // Get error information and release the handle to the factory. + $ctx = [ + 'errno' => $easy->errno, + 'error' => \curl_error($easy->handle), + 'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME), + ] + \curl_getinfo($easy->handle); + $ctx[self::CURL_VERSION_STR] = \curl_version()['version']; + $factory->release($easy); + + // Retry when nothing is present or when curl failed to rewind. + if (empty($easy->options['_err_message']) && (!$easy->errno || $easy->errno == 65)) { + return self::retryFailedRewind($handler, $easy, $ctx); + } + + return self::createRejection($easy, $ctx); + } + + private static function createRejection(EasyHandle $easy, array $ctx): PromiseInterface + { + static $connectionErrors = [ + \CURLE_OPERATION_TIMEOUTED => true, + \CURLE_COULDNT_RESOLVE_HOST => true, + \CURLE_COULDNT_CONNECT => true, + \CURLE_SSL_CONNECT_ERROR => true, + \CURLE_GOT_NOTHING => true, + ]; + + if ($easy->createResponseException) { + return P\Create::rejectionFor( + new RequestException( + 'An error was encountered while creating the response', + $easy->request, + $easy->response, + $easy->createResponseException, + $ctx + ) + ); + } + + // If an exception was encountered during the onHeaders event, then + // return a rejected promise that wraps that exception. + if ($easy->onHeadersException) { + return P\Create::rejectionFor( + new RequestException( + 'An error was encountered during the on_headers event', + $easy->request, + $easy->response, + $easy->onHeadersException, + $ctx + ) + ); + } + + $message = \sprintf( + 'cURL error %s: %s (%s)', + $ctx['errno'], + $ctx['error'], + 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html' + ); + $uriString = (string) $easy->request->getUri(); + if ($uriString !== '' && false === \strpos($ctx['error'], $uriString)) { + $message .= \sprintf(' for %s', $uriString); + } + + // Create a connection exception if it was a specific error code. + $error = isset($connectionErrors[$easy->errno]) + ? new ConnectException($message, $easy->request, null, $ctx) + : new RequestException($message, $easy->request, $easy->response, null, $ctx); + + return P\Create::rejectionFor($error); + } + + /** + * @return array + */ + private function getDefaultConf(EasyHandle $easy): array + { + $conf = [ + '_headers' => $easy->request->getHeaders(), + \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), + \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), + \CURLOPT_RETURNTRANSFER => false, + \CURLOPT_HEADER => false, + \CURLOPT_CONNECTTIMEOUT => 300, + ]; + + if (\defined('CURLOPT_PROTOCOLS')) { + $conf[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS; + } + + $version = $easy->request->getProtocolVersion(); + if ($version == 1.1) { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; + } elseif ($version == 2.0) { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0; + } else { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0; + } + + return $conf; + } + + private function applyMethod(EasyHandle $easy, array &$conf): void + { + $body = $easy->request->getBody(); + $size = $body->getSize(); + + if ($size === null || $size > 0) { + $this->applyBody($easy->request, $easy->options, $conf); + + return; + } + + $method = $easy->request->getMethod(); + if ($method === 'PUT' || $method === 'POST') { + // See https://tools.ietf.org/html/rfc7230#section-3.3.2 + if (!$easy->request->hasHeader('Content-Length')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; + } + } elseif ($method === 'HEAD') { + $conf[\CURLOPT_NOBODY] = true; + unset( + $conf[\CURLOPT_WRITEFUNCTION], + $conf[\CURLOPT_READFUNCTION], + $conf[\CURLOPT_FILE], + $conf[\CURLOPT_INFILE] + ); + } + } + + private function applyBody(RequestInterface $request, array $options, array &$conf): void + { + $size = $request->hasHeader('Content-Length') + ? (int) $request->getHeaderLine('Content-Length') + : null; + + // Send the body as a string if the size is less than 1MB OR if the + // [curl][body_as_string] request value is set. + if (($size !== null && $size < 1000000) || !empty($options['_body_as_string'])) { + $conf[\CURLOPT_POSTFIELDS] = (string) $request->getBody(); + // Don't duplicate the Content-Length header + $this->removeHeader('Content-Length', $conf); + $this->removeHeader('Transfer-Encoding', $conf); + } else { + $conf[\CURLOPT_UPLOAD] = true; + if ($size !== null) { + $conf[\CURLOPT_INFILESIZE] = $size; + $this->removeHeader('Content-Length', $conf); + } + $body = $request->getBody(); + if ($body->isSeekable()) { + $body->rewind(); + } + $conf[\CURLOPT_READFUNCTION] = static function ($ch, $fd, $length) use ($body) { + return $body->read($length); + }; + } + + // If the Expect header is not present, prevent curl from adding it + if (!$request->hasHeader('Expect')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Expect:'; + } + + // cURL sometimes adds a content-type by default. Prevent this. + if (!$request->hasHeader('Content-Type')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Content-Type:'; + } + } + + private function applyHeaders(EasyHandle $easy, array &$conf): void + { + foreach ($conf['_headers'] as $name => $values) { + foreach ($values as $value) { + $value = (string) $value; + if ($value === '') { + // cURL requires a special format for empty headers. + // See https://github.com/guzzle/guzzle/issues/1882 for more details. + $conf[\CURLOPT_HTTPHEADER][] = "$name;"; + } else { + $conf[\CURLOPT_HTTPHEADER][] = "$name: $value"; + } + } + } + + // Remove the Accept header if one was not set + if (!$easy->request->hasHeader('Accept')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Accept:'; + } + } + + /** + * Remove a header from the options array. + * + * @param string $name Case-insensitive header to remove + * @param array $options Array of options to modify + */ + private function removeHeader(string $name, array &$options): void + { + foreach (\array_keys($options['_headers']) as $key) { + if (!\strcasecmp($key, $name)) { + unset($options['_headers'][$key]); + + return; + } + } + } + + private function applyHandlerOptions(EasyHandle $easy, array &$conf): void + { + $options = $easy->options; + if (isset($options['verify'])) { + if ($options['verify'] === false) { + unset($conf[\CURLOPT_CAINFO]); + $conf[\CURLOPT_SSL_VERIFYHOST] = 0; + $conf[\CURLOPT_SSL_VERIFYPEER] = false; + } else { + $conf[\CURLOPT_SSL_VERIFYHOST] = 2; + $conf[\CURLOPT_SSL_VERIFYPEER] = true; + if (\is_string($options['verify'])) { + // Throw an error if the file/folder/link path is not valid or doesn't exist. + if (!\file_exists($options['verify'])) { + throw new \InvalidArgumentException("SSL CA bundle not found: {$options['verify']}"); + } + // If it's a directory or a link to a directory use CURLOPT_CAPATH. + // If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO. + if ( + \is_dir($options['verify']) + || ( + \is_link($options['verify']) === true + && ($verifyLink = \readlink($options['verify'])) !== false + && \is_dir($verifyLink) + ) + ) { + $conf[\CURLOPT_CAPATH] = $options['verify']; + } else { + $conf[\CURLOPT_CAINFO] = $options['verify']; + } + } + } + } + + if (!isset($options['curl'][\CURLOPT_ENCODING]) && !empty($options['decode_content'])) { + $accept = $easy->request->getHeaderLine('Accept-Encoding'); + if ($accept) { + $conf[\CURLOPT_ENCODING] = $accept; + } else { + // The empty string enables all available decoders and implicitly + // sets a matching 'Accept-Encoding' header. + $conf[\CURLOPT_ENCODING] = ''; + // But as the user did not specify any acceptable encodings we need + // to overwrite this implicit header with an empty one. + $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; + } + } + + if (!isset($options['sink'])) { + // Use a default temp stream if no sink was set. + $options['sink'] = \GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'w+'); + } + $sink = $options['sink']; + if (!\is_string($sink)) { + $sink = \GuzzleHttp\Psr7\Utils::streamFor($sink); + } elseif (!\is_dir(\dirname($sink))) { + // Ensure that the directory exists before failing in curl. + throw new \RuntimeException(\sprintf('Directory %s does not exist for sink value of %s', \dirname($sink), $sink)); + } else { + $sink = new LazyOpenStream($sink, 'w+'); + } + $easy->sink = $sink; + $conf[\CURLOPT_WRITEFUNCTION] = static function ($ch, $write) use ($sink): int { + return $sink->write($write); + }; + + $timeoutRequiresNoSignal = false; + if (isset($options['timeout'])) { + $timeoutRequiresNoSignal |= $options['timeout'] < 1; + $conf[\CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; + } + + // CURL default value is CURL_IPRESOLVE_WHATEVER + if (isset($options['force_ip_resolve'])) { + if ('v4' === $options['force_ip_resolve']) { + $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V4; + } elseif ('v6' === $options['force_ip_resolve']) { + $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V6; + } + } + + if (isset($options['connect_timeout'])) { + $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; + $conf[\CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; + } + + if ($timeoutRequiresNoSignal && \strtoupper(\substr(\PHP_OS, 0, 3)) !== 'WIN') { + $conf[\CURLOPT_NOSIGNAL] = true; + } + + if (isset($options['proxy'])) { + if (!\is_array($options['proxy'])) { + $conf[\CURLOPT_PROXY] = $options['proxy']; + } else { + $scheme = $easy->request->getUri()->getScheme(); + if (isset($options['proxy'][$scheme])) { + $host = $easy->request->getUri()->getHost(); + if (isset($options['proxy']['no']) && Utils::isHostInNoProxy($host, $options['proxy']['no'])) { + unset($conf[\CURLOPT_PROXY]); + } else { + $conf[\CURLOPT_PROXY] = $options['proxy'][$scheme]; + } + } + } + } + + if (isset($options['crypto_method'])) { + if (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) { + if (!defined('CURL_SSLVERSION_TLSv1_0')) { + throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.0 not supported by your version of cURL'); + } + $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_0; + } elseif (\STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method']) { + if (!defined('CURL_SSLVERSION_TLSv1_1')) { + throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.1 not supported by your version of cURL'); + } + $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_1; + } elseif (\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) { + if (!defined('CURL_SSLVERSION_TLSv1_2')) { + throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL'); + } + $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; + } elseif (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { + if (!defined('CURL_SSLVERSION_TLSv1_3')) { + throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); + } + $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3; + } else { + throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); + } + } + + if (isset($options['cert'])) { + $cert = $options['cert']; + if (\is_array($cert)) { + $conf[\CURLOPT_SSLCERTPASSWD] = $cert[1]; + $cert = $cert[0]; + } + if (!\file_exists($cert)) { + throw new \InvalidArgumentException("SSL certificate not found: {$cert}"); + } + // OpenSSL (versions 0.9.3 and later) also support "P12" for PKCS#12-encoded files. + // see https://curl.se/libcurl/c/CURLOPT_SSLCERTTYPE.html + $ext = pathinfo($cert, \PATHINFO_EXTENSION); + if (preg_match('#^(der|p12)$#i', $ext)) { + $conf[\CURLOPT_SSLCERTTYPE] = strtoupper($ext); + } + $conf[\CURLOPT_SSLCERT] = $cert; + } + + if (isset($options['ssl_key'])) { + if (\is_array($options['ssl_key'])) { + if (\count($options['ssl_key']) === 2) { + [$sslKey, $conf[\CURLOPT_SSLKEYPASSWD]] = $options['ssl_key']; + } else { + [$sslKey] = $options['ssl_key']; + } + } + + $sslKey = $sslKey ?? $options['ssl_key']; + + if (!\file_exists($sslKey)) { + throw new \InvalidArgumentException("SSL private key not found: {$sslKey}"); + } + $conf[\CURLOPT_SSLKEY] = $sslKey; + } + + if (isset($options['progress'])) { + $progress = $options['progress']; + if (!\is_callable($progress)) { + throw new \InvalidArgumentException('progress client option must be callable'); + } + $conf[\CURLOPT_NOPROGRESS] = false; + $conf[\CURLOPT_PROGRESSFUNCTION] = static function ($resource, int $downloadSize, int $downloaded, int $uploadSize, int $uploaded) use ($progress) { + $progress($downloadSize, $downloaded, $uploadSize, $uploaded); + }; + } + + if (!empty($options['debug'])) { + $conf[\CURLOPT_STDERR] = Utils::debugResource($options['debug']); + $conf[\CURLOPT_VERBOSE] = true; + } + } + + /** + * This function ensures that a response was set on a transaction. If one + * was not set, then the request is retried if possible. This error + * typically means you are sending a payload, curl encountered a + * "Connection died, retrying a fresh connect" error, tried to rewind the + * stream, and then encountered a "necessary data rewind wasn't possible" + * error, causing the request to be sent through curl_multi_info_read() + * without an error status. + * + * @param callable(RequestInterface, array): PromiseInterface $handler + */ + private static function retryFailedRewind(callable $handler, EasyHandle $easy, array $ctx): PromiseInterface + { + try { + // Only rewind if the body has been read from. + $body = $easy->request->getBody(); + if ($body->tell() > 0) { + $body->rewind(); + } + } catch (\RuntimeException $e) { + $ctx['error'] = 'The connection unexpectedly failed without ' + .'providing an error. The request would have been retried, ' + .'but attempting to rewind the request body failed. ' + .'Exception: '.$e; + + return self::createRejection($easy, $ctx); + } + + // Retry no more than 3 times before giving up. + if (!isset($easy->options['_curl_retries'])) { + $easy->options['_curl_retries'] = 1; + } elseif ($easy->options['_curl_retries'] == 2) { + $ctx['error'] = 'The cURL request was retried 3 times ' + .'and did not succeed. The most likely reason for the failure ' + .'is that cURL was unable to rewind the body of the request ' + .'and subsequent retries resulted in the same error. Turn on ' + .'the debug option to see what went wrong. See ' + .'https://bugs.php.net/bug.php?id=47204 for more information.'; + + return self::createRejection($easy, $ctx); + } else { + ++$easy->options['_curl_retries']; + } + + return $handler($easy->request, $easy->options); + } + + private function createHeaderFn(EasyHandle $easy): callable + { + if (isset($easy->options['on_headers'])) { + $onHeaders = $easy->options['on_headers']; + + if (!\is_callable($onHeaders)) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + } else { + $onHeaders = null; + } + + return static function ($ch, $h) use ( + $onHeaders, + $easy, + &$startingResponse + ) { + $value = \trim($h); + if ($value === '') { + $startingResponse = true; + try { + $easy->createResponse(); + } catch (\Exception $e) { + $easy->createResponseException = $e; + + return -1; + } + if ($onHeaders !== null) { + try { + $onHeaders($easy->response); + } catch (\Exception $e) { + // Associate the exception with the handle and trigger + // a curl header write error by returning 0. + $easy->onHeadersException = $e; + + return -1; + } + } + } elseif ($startingResponse) { + $startingResponse = false; + $easy->headers = [$value]; + } else { + $easy->headers[] = $value; + } + + return \strlen($h); + }; + } + + public function __destruct() + { + foreach ($this->handles as $id => $handle) { + \curl_close($handle); + unset($this->handles[$id]); + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php b/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php new file mode 100644 index 000000000..fe57ed5d5 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php @@ -0,0 +1,25 @@ +factory = $options['handle_factory'] + ?? new CurlFactory(3); + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + if (isset($options['delay'])) { + \usleep($options['delay'] * 1000); + } + + $easy = $this->factory->create($request, $options); + \curl_exec($easy->handle); + $easy->errno = \curl_errno($easy->handle); + + return CurlFactory::finish($this, $easy, $this->factory); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php new file mode 100644 index 000000000..a64e1821a --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php @@ -0,0 +1,267 @@ + An array of delay times, indexed by handle id in `addRequest`. + * + * @see CurlMultiHandler::addRequest + */ + private $delays = []; + + /** + * @var array An associative array of CURLMOPT_* options and corresponding values for curl_multi_setopt() + */ + private $options = []; + + /** @var resource|\CurlMultiHandle */ + private $_mh; + + /** + * This handler accepts the following options: + * + * - handle_factory: An optional factory used to create curl handles + * - select_timeout: Optional timeout (in seconds) to block before timing + * out while selecting curl handles. Defaults to 1 second. + * - options: An associative array of CURLMOPT_* options and + * corresponding values for curl_multi_setopt() + */ + public function __construct(array $options = []) + { + $this->factory = $options['handle_factory'] ?? new CurlFactory(50); + + if (isset($options['select_timeout'])) { + $this->selectTimeout = $options['select_timeout']; + } elseif ($selectTimeout = Utils::getenv('GUZZLE_CURL_SELECT_TIMEOUT')) { + @trigger_error('Since guzzlehttp/guzzle 7.2.0: Using environment variable GUZZLE_CURL_SELECT_TIMEOUT is deprecated. Use option "select_timeout" instead.', \E_USER_DEPRECATED); + $this->selectTimeout = (int) $selectTimeout; + } else { + $this->selectTimeout = 1; + } + + $this->options = $options['options'] ?? []; + + // unsetting the property forces the first access to go through + // __get(). + unset($this->_mh); + } + + /** + * @param string $name + * + * @return resource|\CurlMultiHandle + * + * @throws \BadMethodCallException when another field as `_mh` will be gotten + * @throws \RuntimeException when curl can not initialize a multi handle + */ + public function __get($name) + { + if ($name !== '_mh') { + throw new \BadMethodCallException("Can not get other property as '_mh'."); + } + + $multiHandle = \curl_multi_init(); + + if (false === $multiHandle) { + throw new \RuntimeException('Can not initialize curl multi handle.'); + } + + $this->_mh = $multiHandle; + + foreach ($this->options as $option => $value) { + // A warning is raised in case of a wrong option. + curl_multi_setopt($this->_mh, $option, $value); + } + + return $this->_mh; + } + + public function __destruct() + { + if (isset($this->_mh)) { + \curl_multi_close($this->_mh); + unset($this->_mh); + } + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + $easy = $this->factory->create($request, $options); + $id = (int) $easy->handle; + + $promise = new Promise( + [$this, 'execute'], + function () use ($id) { + return $this->cancel($id); + } + ); + + $this->addRequest(['easy' => $easy, 'deferred' => $promise]); + + return $promise; + } + + /** + * Ticks the curl event loop. + */ + public function tick(): void + { + // Add any delayed handles if needed. + if ($this->delays) { + $currentTime = Utils::currentTime(); + foreach ($this->delays as $id => $delay) { + if ($currentTime >= $delay) { + unset($this->delays[$id]); + \curl_multi_add_handle( + $this->_mh, + $this->handles[$id]['easy']->handle + ); + } + } + } + + // Step through the task queue which may add additional requests. + P\Utils::queue()->run(); + + if ($this->active && \curl_multi_select($this->_mh, $this->selectTimeout) === -1) { + // Perform a usleep if a select returns -1. + // See: https://bugs.php.net/bug.php?id=61141 + \usleep(250); + } + + while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { + } + + $this->processMessages(); + } + + /** + * Runs until all outstanding connections have completed. + */ + public function execute(): void + { + $queue = P\Utils::queue(); + + while ($this->handles || !$queue->isEmpty()) { + // If there are no transfers, then sleep for the next delay + if (!$this->active && $this->delays) { + \usleep($this->timeToNext()); + } + $this->tick(); + } + } + + private function addRequest(array $entry): void + { + $easy = $entry['easy']; + $id = (int) $easy->handle; + $this->handles[$id] = $entry; + if (empty($easy->options['delay'])) { + \curl_multi_add_handle($this->_mh, $easy->handle); + } else { + $this->delays[$id] = Utils::currentTime() + ($easy->options['delay'] / 1000); + } + } + + /** + * Cancels a handle from sending and removes references to it. + * + * @param int $id Handle ID to cancel and remove. + * + * @return bool True on success, false on failure. + */ + private function cancel($id): bool + { + if (!is_int($id)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an integer to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + // Cannot cancel if it has been processed. + if (!isset($this->handles[$id])) { + return false; + } + + $handle = $this->handles[$id]['easy']->handle; + unset($this->delays[$id], $this->handles[$id]); + \curl_multi_remove_handle($this->_mh, $handle); + \curl_close($handle); + + return true; + } + + private function processMessages(): void + { + while ($done = \curl_multi_info_read($this->_mh)) { + if ($done['msg'] !== \CURLMSG_DONE) { + // if it's not done, then it would be premature to remove the handle. ref https://github.com/guzzle/guzzle/pull/2892#issuecomment-945150216 + continue; + } + $id = (int) $done['handle']; + \curl_multi_remove_handle($this->_mh, $done['handle']); + + if (!isset($this->handles[$id])) { + // Probably was cancelled. + continue; + } + + $entry = $this->handles[$id]; + unset($this->handles[$id], $this->delays[$id]); + $entry['easy']->errno = $done['result']; + $entry['deferred']->resolve( + CurlFactory::finish($this, $entry['easy'], $this->factory) + ); + } + } + + private function timeToNext(): int + { + $currentTime = Utils::currentTime(); + $nextTime = \PHP_INT_MAX; + foreach ($this->delays as $time) { + if ($time < $nextTime) { + $nextTime = $time; + } + } + + return ((int) \max(0, $nextTime - $currentTime)) * 1000000; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php new file mode 100644 index 000000000..1bc39f4b4 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php @@ -0,0 +1,112 @@ +headers); + + $normalizedKeys = Utils::normalizeHeaderKeys($headers); + + if (!empty($this->options['decode_content']) && isset($normalizedKeys['content-encoding'])) { + $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; + unset($headers[$normalizedKeys['content-encoding']]); + if (isset($normalizedKeys['content-length'])) { + $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; + + $bodyLength = (int) $this->sink->getSize(); + if ($bodyLength) { + $headers[$normalizedKeys['content-length']] = $bodyLength; + } else { + unset($headers[$normalizedKeys['content-length']]); + } + } + } + + // Attach a response to the easy handle with the parsed headers. + $this->response = new Response( + $status, + $headers, + $this->sink, + $ver, + $reason + ); + } + + /** + * @param string $name + * + * @return void + * + * @throws \BadMethodCallException + */ + public function __get($name) + { + $msg = $name === 'handle' ? 'The EasyHandle has been released' : 'Invalid property: '.$name; + throw new \BadMethodCallException($msg); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php b/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php new file mode 100644 index 000000000..5554b8fa9 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php @@ -0,0 +1,42 @@ +|null $queue The parameters to be passed to the append function, as an indexed array. + * @param callable|null $onFulfilled Callback to invoke when the return value is fulfilled. + * @param callable|null $onRejected Callback to invoke when the return value is rejected. + */ + public function __construct(array $queue = null, callable $onFulfilled = null, callable $onRejected = null) + { + $this->onFulfilled = $onFulfilled; + $this->onRejected = $onRejected; + + if ($queue) { + // array_values included for BC + $this->append(...array_values($queue)); + } + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + if (!$this->queue) { + throw new \OutOfBoundsException('Mock queue is empty'); + } + + if (isset($options['delay']) && \is_numeric($options['delay'])) { + \usleep((int) $options['delay'] * 1000); + } + + $this->lastRequest = $request; + $this->lastOptions = $options; + $response = \array_shift($this->queue); + + if (isset($options['on_headers'])) { + if (!\is_callable($options['on_headers'])) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + try { + $options['on_headers']($response); + } catch (\Exception $e) { + $msg = 'An error was encountered during the on_headers event'; + $response = new RequestException($msg, $request, $response, $e); + } + } + + if (\is_callable($response)) { + $response = $response($request, $options); + } + + $response = $response instanceof \Throwable + ? P\Create::rejectionFor($response) + : P\Create::promiseFor($response); + + return $response->then( + function (?ResponseInterface $value) use ($request, $options) { + $this->invokeStats($request, $options, $value); + if ($this->onFulfilled) { + ($this->onFulfilled)($value); + } + + if ($value !== null && isset($options['sink'])) { + $contents = (string) $value->getBody(); + $sink = $options['sink']; + + if (\is_resource($sink)) { + \fwrite($sink, $contents); + } elseif (\is_string($sink)) { + \file_put_contents($sink, $contents); + } elseif ($sink instanceof StreamInterface) { + $sink->write($contents); + } + } + + return $value; + }, + function ($reason) use ($request, $options) { + $this->invokeStats($request, $options, null, $reason); + if ($this->onRejected) { + ($this->onRejected)($reason); + } + + return P\Create::rejectionFor($reason); + } + ); + } + + /** + * Adds one or more variadic requests, exceptions, callables, or promises + * to the queue. + * + * @param mixed ...$values + */ + public function append(...$values): void + { + foreach ($values as $value) { + if ($value instanceof ResponseInterface + || $value instanceof \Throwable + || $value instanceof PromiseInterface + || \is_callable($value) + ) { + $this->queue[] = $value; + } else { + throw new \TypeError('Expected a Response, Promise, Throwable or callable. Found '.Utils::describeType($value)); + } + } + } + + /** + * Get the last received request. + */ + public function getLastRequest(): ?RequestInterface + { + return $this->lastRequest; + } + + /** + * Get the last received request options. + */ + public function getLastOptions(): array + { + return $this->lastOptions; + } + + /** + * Returns the number of remaining items in the queue. + */ + public function count(): int + { + return \count($this->queue); + } + + public function reset(): void + { + $this->queue = []; + } + + /** + * @param mixed $reason Promise or reason. + */ + private function invokeStats( + RequestInterface $request, + array $options, + ResponseInterface $response = null, + $reason = null + ): void { + if (isset($options['on_stats'])) { + $transferTime = $options['transfer_time'] ?? 0; + $stats = new TransferStats($request, $response, $transferTime, $reason); + ($options['on_stats'])($stats); + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php b/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php new file mode 100644 index 000000000..f045b526c --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php @@ -0,0 +1,51 @@ +withoutHeader('Expect'); + + // Append a content-length header if body size is zero to match + // cURL's behavior. + if (0 === $request->getBody()->getSize()) { + $request = $request->withHeader('Content-Length', '0'); + } + + return $this->createResponse( + $request, + $options, + $this->createStream($request, $options), + $startTime + ); + } catch (\InvalidArgumentException $e) { + throw $e; + } catch (\Exception $e) { + // Determine if the error was a networking error. + $message = $e->getMessage(); + // This list can probably get more comprehensive. + if (false !== \strpos($message, 'getaddrinfo') // DNS lookup failed + || false !== \strpos($message, 'Connection refused') + || false !== \strpos($message, "couldn't connect to host") // error on HHVM + || false !== \strpos($message, 'connection attempt failed') + ) { + $e = new ConnectException($e->getMessage(), $request, $e); + } else { + $e = RequestException::wrapException($request, $e); + } + $this->invokeStats($options, $request, $startTime, null, $e); + + return P\Create::rejectionFor($e); + } + } + + private function invokeStats( + array $options, + RequestInterface $request, + ?float $startTime, + ResponseInterface $response = null, + \Throwable $error = null + ): void { + if (isset($options['on_stats'])) { + $stats = new TransferStats($request, $response, Utils::currentTime() - $startTime, $error, []); + ($options['on_stats'])($stats); + } + } + + /** + * @param resource $stream + */ + private function createResponse(RequestInterface $request, array $options, $stream, ?float $startTime): PromiseInterface + { + $hdrs = $this->lastHeaders; + $this->lastHeaders = []; + + try { + [$ver, $status, $reason, $headers] = HeaderProcessor::parseHeaders($hdrs); + } catch (\Exception $e) { + return P\Create::rejectionFor( + new RequestException('An error was encountered while creating the response', $request, null, $e) + ); + } + + [$stream, $headers] = $this->checkDecode($options, $headers, $stream); + $stream = Psr7\Utils::streamFor($stream); + $sink = $stream; + + if (\strcasecmp('HEAD', $request->getMethod())) { + $sink = $this->createSink($stream, $options); + } + + try { + $response = new Psr7\Response($status, $headers, $sink, $ver, $reason); + } catch (\Exception $e) { + return P\Create::rejectionFor( + new RequestException('An error was encountered while creating the response', $request, null, $e) + ); + } + + if (isset($options['on_headers'])) { + try { + $options['on_headers']($response); + } catch (\Exception $e) { + return P\Create::rejectionFor( + new RequestException('An error was encountered during the on_headers event', $request, $response, $e) + ); + } + } + + // Do not drain when the request is a HEAD request because they have + // no body. + if ($sink !== $stream) { + $this->drain($stream, $sink, $response->getHeaderLine('Content-Length')); + } + + $this->invokeStats($options, $request, $startTime, $response, null); + + return new FulfilledPromise($response); + } + + private function createSink(StreamInterface $stream, array $options): StreamInterface + { + if (!empty($options['stream'])) { + return $stream; + } + + $sink = $options['sink'] ?? Psr7\Utils::tryFopen('php://temp', 'r+'); + + return \is_string($sink) ? new Psr7\LazyOpenStream($sink, 'w+') : Psr7\Utils::streamFor($sink); + } + + /** + * @param resource $stream + */ + private function checkDecode(array $options, array $headers, $stream): array + { + // Automatically decode responses when instructed. + if (!empty($options['decode_content'])) { + $normalizedKeys = Utils::normalizeHeaderKeys($headers); + if (isset($normalizedKeys['content-encoding'])) { + $encoding = $headers[$normalizedKeys['content-encoding']]; + if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') { + $stream = new Psr7\InflateStream(Psr7\Utils::streamFor($stream)); + $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; + + // Remove content-encoding header + unset($headers[$normalizedKeys['content-encoding']]); + + // Fix content-length header + if (isset($normalizedKeys['content-length'])) { + $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; + $length = (int) $stream->getSize(); + if ($length === 0) { + unset($headers[$normalizedKeys['content-length']]); + } else { + $headers[$normalizedKeys['content-length']] = [$length]; + } + } + } + } + } + + return [$stream, $headers]; + } + + /** + * Drains the source stream into the "sink" client option. + * + * @param string $contentLength Header specifying the amount of + * data to read. + * + * @throws \RuntimeException when the sink option is invalid. + */ + private function drain(StreamInterface $source, StreamInterface $sink, string $contentLength): StreamInterface + { + // If a content-length header is provided, then stop reading once + // that number of bytes has been read. This can prevent infinitely + // reading from a stream when dealing with servers that do not honor + // Connection: Close headers. + Psr7\Utils::copyToStream( + $source, + $sink, + (\strlen($contentLength) > 0 && (int) $contentLength > 0) ? (int) $contentLength : -1 + ); + + $sink->seek(0); + $source->close(); + + return $sink; + } + + /** + * Create a resource and check to ensure it was created successfully + * + * @param callable $callback Callable that returns stream resource + * + * @return resource + * + * @throws \RuntimeException on error + */ + private function createResource(callable $callback) + { + $errors = []; + \set_error_handler(static function ($_, $msg, $file, $line) use (&$errors): bool { + $errors[] = [ + 'message' => $msg, + 'file' => $file, + 'line' => $line, + ]; + + return true; + }); + + try { + $resource = $callback(); + } finally { + \restore_error_handler(); + } + + if (!$resource) { + $message = 'Error creating resource: '; + foreach ($errors as $err) { + foreach ($err as $key => $value) { + $message .= "[$key] $value".\PHP_EOL; + } + } + throw new \RuntimeException(\trim($message)); + } + + return $resource; + } + + /** + * @return resource + */ + private function createStream(RequestInterface $request, array $options) + { + static $methods; + if (!$methods) { + $methods = \array_flip(\get_class_methods(__CLASS__)); + } + + if (!\in_array($request->getUri()->getScheme(), ['http', 'https'])) { + throw new RequestException(\sprintf("The scheme '%s' is not supported.", $request->getUri()->getScheme()), $request); + } + + // HTTP/1.1 streams using the PHP stream wrapper require a + // Connection: close header + if ($request->getProtocolVersion() == '1.1' + && !$request->hasHeader('Connection') + ) { + $request = $request->withHeader('Connection', 'close'); + } + + // Ensure SSL is verified by default + if (!isset($options['verify'])) { + $options['verify'] = true; + } + + $params = []; + $context = $this->getDefaultContext($request); + + if (isset($options['on_headers']) && !\is_callable($options['on_headers'])) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + + if (!empty($options)) { + foreach ($options as $key => $value) { + $method = "add_{$key}"; + if (isset($methods[$method])) { + $this->{$method}($request, $context, $value, $params); + } + } + } + + if (isset($options['stream_context'])) { + if (!\is_array($options['stream_context'])) { + throw new \InvalidArgumentException('stream_context must be an array'); + } + $context = \array_replace_recursive($context, $options['stream_context']); + } + + // Microsoft NTLM authentication only supported with curl handler + if (isset($options['auth'][2]) && 'ntlm' === $options['auth'][2]) { + throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler'); + } + + $uri = $this->resolveHost($request, $options); + + $contextResource = $this->createResource( + static function () use ($context, $params) { + return \stream_context_create($context, $params); + } + ); + + return $this->createResource( + function () use ($uri, &$http_response_header, $contextResource, $context, $options, $request) { + $resource = @\fopen((string) $uri, 'r', false, $contextResource); + $this->lastHeaders = $http_response_header ?? []; + + if (false === $resource) { + throw new ConnectException(sprintf('Connection refused for URI %s', $uri), $request, null, $context); + } + + if (isset($options['read_timeout'])) { + $readTimeout = $options['read_timeout']; + $sec = (int) $readTimeout; + $usec = ($readTimeout - $sec) * 100000; + \stream_set_timeout($resource, $sec, $usec); + } + + return $resource; + } + ); + } + + private function resolveHost(RequestInterface $request, array $options): UriInterface + { + $uri = $request->getUri(); + + if (isset($options['force_ip_resolve']) && !\filter_var($uri->getHost(), \FILTER_VALIDATE_IP)) { + if ('v4' === $options['force_ip_resolve']) { + $records = \dns_get_record($uri->getHost(), \DNS_A); + if (false === $records || !isset($records[0]['ip'])) { + throw new ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); + } + + return $uri->withHost($records[0]['ip']); + } + if ('v6' === $options['force_ip_resolve']) { + $records = \dns_get_record($uri->getHost(), \DNS_AAAA); + if (false === $records || !isset($records[0]['ipv6'])) { + throw new ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); + } + + return $uri->withHost('['.$records[0]['ipv6'].']'); + } + } + + return $uri; + } + + private function getDefaultContext(RequestInterface $request): array + { + $headers = ''; + foreach ($request->getHeaders() as $name => $value) { + foreach ($value as $val) { + $headers .= "$name: $val\r\n"; + } + } + + $context = [ + 'http' => [ + 'method' => $request->getMethod(), + 'header' => $headers, + 'protocol_version' => $request->getProtocolVersion(), + 'ignore_errors' => true, + 'follow_location' => 0, + ], + 'ssl' => [ + 'peer_name' => $request->getUri()->getHost(), + ], + ]; + + $body = (string) $request->getBody(); + + if ('' !== $body) { + $context['http']['content'] = $body; + // Prevent the HTTP handler from adding a Content-Type header. + if (!$request->hasHeader('Content-Type')) { + $context['http']['header'] .= "Content-Type:\r\n"; + } + } + + $context['http']['header'] = \rtrim($context['http']['header']); + + return $context; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_proxy(RequestInterface $request, array &$options, $value, array &$params): void + { + $uri = null; + + if (!\is_array($value)) { + $uri = $value; + } else { + $scheme = $request->getUri()->getScheme(); + if (isset($value[$scheme])) { + if (!isset($value['no']) || !Utils::isHostInNoProxy($request->getUri()->getHost(), $value['no'])) { + $uri = $value[$scheme]; + } + } + } + + if (!$uri) { + return; + } + + $parsed = $this->parse_proxy($uri); + $options['http']['proxy'] = $parsed['proxy']; + + if ($parsed['auth']) { + if (!isset($options['http']['header'])) { + $options['http']['header'] = []; + } + $options['http']['header'] .= "\r\nProxy-Authorization: {$parsed['auth']}"; + } + } + + /** + * Parses the given proxy URL to make it compatible with the format PHP's stream context expects. + */ + private function parse_proxy(string $url): array + { + $parsed = \parse_url($url); + + if ($parsed !== false && isset($parsed['scheme']) && $parsed['scheme'] === 'http') { + if (isset($parsed['host']) && isset($parsed['port'])) { + $auth = null; + if (isset($parsed['user']) && isset($parsed['pass'])) { + $auth = \base64_encode("{$parsed['user']}:{$parsed['pass']}"); + } + + return [ + 'proxy' => "tcp://{$parsed['host']}:{$parsed['port']}", + 'auth' => $auth ? "Basic {$auth}" : null, + ]; + } + } + + // Return proxy as-is. + return [ + 'proxy' => $url, + 'auth' => null, + ]; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_timeout(RequestInterface $request, array &$options, $value, array &$params): void + { + if ($value > 0) { + $options['http']['timeout'] = $value; + } + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_crypto_method(RequestInterface $request, array &$options, $value, array &$params): void + { + if ( + $value === \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT + || $value === \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT + || $value === \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT + || (defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && $value === \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT) + ) { + $options['http']['crypto_method'] = $value; + + return; + } + + throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_verify(RequestInterface $request, array &$options, $value, array &$params): void + { + if ($value === false) { + $options['ssl']['verify_peer'] = false; + $options['ssl']['verify_peer_name'] = false; + + return; + } + + if (\is_string($value)) { + $options['ssl']['cafile'] = $value; + if (!\file_exists($value)) { + throw new \RuntimeException("SSL CA bundle not found: $value"); + } + } elseif ($value !== true) { + throw new \InvalidArgumentException('Invalid verify request option'); + } + + $options['ssl']['verify_peer'] = true; + $options['ssl']['verify_peer_name'] = true; + $options['ssl']['allow_self_signed'] = false; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_cert(RequestInterface $request, array &$options, $value, array &$params): void + { + if (\is_array($value)) { + $options['ssl']['passphrase'] = $value[1]; + $value = $value[0]; + } + + if (!\file_exists($value)) { + throw new \RuntimeException("SSL certificate not found: {$value}"); + } + + $options['ssl']['local_cert'] = $value; + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_progress(RequestInterface $request, array &$options, $value, array &$params): void + { + self::addNotification( + $params, + static function ($code, $a, $b, $c, $transferred, $total) use ($value) { + if ($code == \STREAM_NOTIFY_PROGRESS) { + // The upload progress cannot be determined. Use 0 for cURL compatibility: + // https://curl.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html + $value($total, $transferred, 0, 0); + } + } + ); + } + + /** + * @param mixed $value as passed via Request transfer options. + */ + private function add_debug(RequestInterface $request, array &$options, $value, array &$params): void + { + if ($value === false) { + return; + } + + static $map = [ + \STREAM_NOTIFY_CONNECT => 'CONNECT', + \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', + \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', + \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', + \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', + \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', + \STREAM_NOTIFY_PROGRESS => 'PROGRESS', + \STREAM_NOTIFY_FAILURE => 'FAILURE', + \STREAM_NOTIFY_COMPLETED => 'COMPLETED', + \STREAM_NOTIFY_RESOLVE => 'RESOLVE', + ]; + static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max']; + + $value = Utils::debugResource($value); + $ident = $request->getMethod().' '.$request->getUri()->withFragment(''); + self::addNotification( + $params, + static function (int $code, ...$passed) use ($ident, $value, $map, $args): void { + \fprintf($value, '<%s> [%s] ', $ident, $map[$code]); + foreach (\array_filter($passed) as $i => $v) { + \fwrite($value, $args[$i].': "'.$v.'" '); + } + \fwrite($value, "\n"); + } + ); + } + + private static function addNotification(array &$params, callable $notify): void + { + // Wrap the existing function if needed. + if (!isset($params['notification'])) { + $params['notification'] = $notify; + } else { + $params['notification'] = self::callArray([ + $params['notification'], + $notify, + ]); + } + } + + private static function callArray(array $functions): callable + { + return static function (...$args) use ($functions) { + foreach ($functions as $fn) { + $fn(...$args); + } + }; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/HandlerStack.php b/vendor/guzzlehttp/guzzle/src/HandlerStack.php new file mode 100644 index 000000000..6cb12f07a --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/HandlerStack.php @@ -0,0 +1,275 @@ +push(Middleware::httpErrors(), 'http_errors'); + $stack->push(Middleware::redirect(), 'allow_redirects'); + $stack->push(Middleware::cookies(), 'cookies'); + $stack->push(Middleware::prepareBody(), 'prepare_body'); + + return $stack; + } + + /** + * @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler. + */ + public function __construct(callable $handler = null) + { + $this->handler = $handler; + } + + /** + * Invokes the handler stack as a composed handler + * + * @return ResponseInterface|PromiseInterface + */ + public function __invoke(RequestInterface $request, array $options) + { + $handler = $this->resolve(); + + return $handler($request, $options); + } + + /** + * Dumps a string representation of the stack. + * + * @return string + */ + public function __toString() + { + $depth = 0; + $stack = []; + + if ($this->handler !== null) { + $stack[] = '0) Handler: '.$this->debugCallable($this->handler); + } + + $result = ''; + foreach (\array_reverse($this->stack) as $tuple) { + ++$depth; + $str = "{$depth}) Name: '{$tuple[1]}', "; + $str .= 'Function: '.$this->debugCallable($tuple[0]); + $result = "> {$str}\n{$result}"; + $stack[] = $str; + } + + foreach (\array_keys($stack) as $k) { + $result .= "< {$stack[$k]}\n"; + } + + return $result; + } + + /** + * Set the HTTP handler that actually returns a promise. + * + * @param callable(RequestInterface, array): PromiseInterface $handler Accepts a request and array of options and + * returns a Promise. + */ + public function setHandler(callable $handler): void + { + $this->handler = $handler; + $this->cached = null; + } + + /** + * Returns true if the builder has a handler. + */ + public function hasHandler(): bool + { + return $this->handler !== null; + } + + /** + * Unshift a middleware to the bottom of the stack. + * + * @param callable(callable): callable $middleware Middleware function + * @param string $name Name to register for this middleware. + */ + public function unshift(callable $middleware, string $name = null): void + { + \array_unshift($this->stack, [$middleware, $name]); + $this->cached = null; + } + + /** + * Push a middleware to the top of the stack. + * + * @param callable(callable): callable $middleware Middleware function + * @param string $name Name to register for this middleware. + */ + public function push(callable $middleware, string $name = ''): void + { + $this->stack[] = [$middleware, $name]; + $this->cached = null; + } + + /** + * Add a middleware before another middleware by name. + * + * @param string $findName Middleware to find + * @param callable(callable): callable $middleware Middleware function + * @param string $withName Name to register for this middleware. + */ + public function before(string $findName, callable $middleware, string $withName = ''): void + { + $this->splice($findName, $withName, $middleware, true); + } + + /** + * Add a middleware after another middleware by name. + * + * @param string $findName Middleware to find + * @param callable(callable): callable $middleware Middleware function + * @param string $withName Name to register for this middleware. + */ + public function after(string $findName, callable $middleware, string $withName = ''): void + { + $this->splice($findName, $withName, $middleware, false); + } + + /** + * Remove a middleware by instance or name from the stack. + * + * @param callable|string $remove Middleware to remove by instance or name. + */ + public function remove($remove): void + { + if (!is_string($remove) && !is_callable($remove)) { + trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a callable or string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__); + } + + $this->cached = null; + $idx = \is_callable($remove) ? 0 : 1; + $this->stack = \array_values(\array_filter( + $this->stack, + static function ($tuple) use ($idx, $remove) { + return $tuple[$idx] !== $remove; + } + )); + } + + /** + * Compose the middleware and handler into a single callable function. + * + * @return callable(RequestInterface, array): PromiseInterface + */ + public function resolve(): callable + { + if ($this->cached === null) { + if (($prev = $this->handler) === null) { + throw new \LogicException('No handler has been specified'); + } + + foreach (\array_reverse($this->stack) as $fn) { + /** @var callable(RequestInterface, array): PromiseInterface $prev */ + $prev = $fn[0]($prev); + } + + $this->cached = $prev; + } + + return $this->cached; + } + + private function findByName(string $name): int + { + foreach ($this->stack as $k => $v) { + if ($v[1] === $name) { + return $k; + } + } + + throw new \InvalidArgumentException("Middleware not found: $name"); + } + + /** + * Splices a function into the middleware list at a specific position. + */ + private function splice(string $findName, string $withName, callable $middleware, bool $before): void + { + $this->cached = null; + $idx = $this->findByName($findName); + $tuple = [$middleware, $withName]; + + if ($before) { + if ($idx === 0) { + \array_unshift($this->stack, $tuple); + } else { + $replacement = [$tuple, $this->stack[$idx]]; + \array_splice($this->stack, $idx, 1, $replacement); + } + } elseif ($idx === \count($this->stack) - 1) { + $this->stack[] = $tuple; + } else { + $replacement = [$this->stack[$idx], $tuple]; + \array_splice($this->stack, $idx, 1, $replacement); + } + } + + /** + * Provides a debug string for a given callable. + * + * @param callable|string $fn Function to write as a string. + */ + private function debugCallable($fn): string + { + if (\is_string($fn)) { + return "callable({$fn})"; + } + + if (\is_array($fn)) { + return \is_string($fn[0]) + ? "callable({$fn[0]}::{$fn[1]})" + : "callable(['".\get_class($fn[0])."', '{$fn[1]}'])"; + } + + /** @var object $fn */ + return 'callable('.\spl_object_hash($fn).')'; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/MessageFormatter.php b/vendor/guzzlehttp/guzzle/src/MessageFormatter.php new file mode 100644 index 000000000..04e9eb37a --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/MessageFormatter.php @@ -0,0 +1,199 @@ +>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"; + public const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'; + + /** + * @var string Template used to format log messages + */ + private $template; + + /** + * @param string $template Log message template + */ + public function __construct(?string $template = self::CLF) + { + $this->template = $template ?: self::CLF; + } + + /** + * Returns a formatted message string. + * + * @param RequestInterface $request Request that was sent + * @param ResponseInterface|null $response Response that was received + * @param \Throwable|null $error Exception that was received + */ + public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null): string + { + $cache = []; + + /** @var string */ + return \preg_replace_callback( + '/{\s*([A-Za-z_\-\.0-9]+)\s*}/', + function (array $matches) use ($request, $response, $error, &$cache) { + if (isset($cache[$matches[1]])) { + return $cache[$matches[1]]; + } + + $result = ''; + switch ($matches[1]) { + case 'request': + $result = Psr7\Message::toString($request); + break; + case 'response': + $result = $response ? Psr7\Message::toString($response) : ''; + break; + case 'req_headers': + $result = \trim($request->getMethod() + .' '.$request->getRequestTarget()) + .' HTTP/'.$request->getProtocolVersion()."\r\n" + .$this->headers($request); + break; + case 'res_headers': + $result = $response ? + \sprintf( + 'HTTP/%s %d %s', + $response->getProtocolVersion(), + $response->getStatusCode(), + $response->getReasonPhrase() + )."\r\n".$this->headers($response) + : 'NULL'; + break; + case 'req_body': + $result = $request->getBody()->__toString(); + break; + case 'res_body': + if (!$response instanceof ResponseInterface) { + $result = 'NULL'; + break; + } + + $body = $response->getBody(); + + if (!$body->isSeekable()) { + $result = 'RESPONSE_NOT_LOGGEABLE'; + break; + } + + $result = $response->getBody()->__toString(); + break; + case 'ts': + case 'date_iso_8601': + $result = \gmdate('c'); + break; + case 'date_common_log': + $result = \date('d/M/Y:H:i:s O'); + break; + case 'method': + $result = $request->getMethod(); + break; + case 'version': + $result = $request->getProtocolVersion(); + break; + case 'uri': + case 'url': + $result = $request->getUri()->__toString(); + break; + case 'target': + $result = $request->getRequestTarget(); + break; + case 'req_version': + $result = $request->getProtocolVersion(); + break; + case 'res_version': + $result = $response + ? $response->getProtocolVersion() + : 'NULL'; + break; + case 'host': + $result = $request->getHeaderLine('Host'); + break; + case 'hostname': + $result = \gethostname(); + break; + case 'code': + $result = $response ? $response->getStatusCode() : 'NULL'; + break; + case 'phrase': + $result = $response ? $response->getReasonPhrase() : 'NULL'; + break; + case 'error': + $result = $error ? $error->getMessage() : 'NULL'; + break; + default: + // handle prefixed dynamic headers + if (\strpos($matches[1], 'req_header_') === 0) { + $result = $request->getHeaderLine(\substr($matches[1], 11)); + } elseif (\strpos($matches[1], 'res_header_') === 0) { + $result = $response + ? $response->getHeaderLine(\substr($matches[1], 11)) + : 'NULL'; + } + } + + $cache[$matches[1]] = $result; + + return $result; + }, + $this->template + ); + } + + /** + * Get headers from message as string + */ + private function headers(MessageInterface $message): string + { + $result = ''; + foreach ($message->getHeaders() as $name => $values) { + $result .= $name.': '.\implode(', ', $values)."\r\n"; + } + + return \trim($result); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php b/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php new file mode 100644 index 000000000..47934614a --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php @@ -0,0 +1,18 @@ +withCookieHeader($request); + + return $handler($request, $options) + ->then( + static function (ResponseInterface $response) use ($cookieJar, $request): ResponseInterface { + $cookieJar->extractCookies($request, $response); + + return $response; + } + ); + }; + }; + } + + /** + * Middleware that throws exceptions for 4xx or 5xx responses when the + * "http_errors" request option is set to true. + * + * @param BodySummarizerInterface|null $bodySummarizer The body summarizer to use in exception messages. + * + * @return callable(callable): callable Returns a function that accepts the next handler. + */ + public static function httpErrors(BodySummarizerInterface $bodySummarizer = null): callable + { + return static function (callable $handler) use ($bodySummarizer): callable { + return static function ($request, array $options) use ($handler, $bodySummarizer) { + if (empty($options['http_errors'])) { + return $handler($request, $options); + } + + return $handler($request, $options)->then( + static function (ResponseInterface $response) use ($request, $bodySummarizer) { + $code = $response->getStatusCode(); + if ($code < 400) { + return $response; + } + throw RequestException::create($request, $response, null, [], $bodySummarizer); + } + ); + }; + }; + } + + /** + * Middleware that pushes history data to an ArrayAccess container. + * + * @param array|\ArrayAccess $container Container to hold the history (by reference). + * + * @return callable(callable): callable Returns a function that accepts the next handler. + * + * @throws \InvalidArgumentException if container is not an array or ArrayAccess. + */ + public static function history(&$container): callable + { + if (!\is_array($container) && !$container instanceof \ArrayAccess) { + throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess'); + } + + return static function (callable $handler) use (&$container): callable { + return static function (RequestInterface $request, array $options) use ($handler, &$container) { + return $handler($request, $options)->then( + static function ($value) use ($request, &$container, $options) { + $container[] = [ + 'request' => $request, + 'response' => $value, + 'error' => null, + 'options' => $options, + ]; + + return $value; + }, + static function ($reason) use ($request, &$container, $options) { + $container[] = [ + 'request' => $request, + 'response' => null, + 'error' => $reason, + 'options' => $options, + ]; + + return P\Create::rejectionFor($reason); + } + ); + }; + }; + } + + /** + * Middleware that invokes a callback before and after sending a request. + * + * The provided listener cannot modify or alter the response. It simply + * "taps" into the chain to be notified before returning the promise. The + * before listener accepts a request and options array, and the after + * listener accepts a request, options array, and response promise. + * + * @param callable $before Function to invoke before forwarding the request. + * @param callable $after Function invoked after forwarding. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function tap(callable $before = null, callable $after = null): callable + { + return static function (callable $handler) use ($before, $after): callable { + return static function (RequestInterface $request, array $options) use ($handler, $before, $after) { + if ($before) { + $before($request, $options); + } + $response = $handler($request, $options); + if ($after) { + $after($request, $options, $response); + } + + return $response; + }; + }; + } + + /** + * Middleware that handles request redirects. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function redirect(): callable + { + return static function (callable $handler): RedirectMiddleware { + return new RedirectMiddleware($handler); + }; + } + + /** + * Middleware that retries requests based on the boolean result of + * invoking the provided "decider" function. + * + * If no delay function is provided, a simple implementation of exponential + * backoff will be utilized. + * + * @param callable $decider Function that accepts the number of retries, + * a request, [response], and [exception] and + * returns true if the request is to be retried. + * @param callable $delay Function that accepts the number of retries and + * returns the number of milliseconds to delay. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function retry(callable $decider, callable $delay = null): callable + { + return static function (callable $handler) use ($decider, $delay): RetryMiddleware { + return new RetryMiddleware($decider, $handler, $delay); + }; + } + + /** + * Middleware that logs requests, responses, and errors using a message + * formatter. + * + * @phpstan-param \Psr\Log\LogLevel::* $logLevel Level at which to log requests. + * + * @param LoggerInterface $logger Logs messages. + * @param MessageFormatterInterface|MessageFormatter $formatter Formatter used to create message strings. + * @param string $logLevel Level at which to log requests. + * + * @return callable Returns a function that accepts the next handler. + */ + public static function log(LoggerInterface $logger, $formatter, string $logLevel = 'info'): callable + { + // To be compatible with Guzzle 7.1.x we need to allow users to pass a MessageFormatter + if (!$formatter instanceof MessageFormatter && !$formatter instanceof MessageFormatterInterface) { + throw new \LogicException(sprintf('Argument 2 to %s::log() must be of type %s', self::class, MessageFormatterInterface::class)); + } + + return static function (callable $handler) use ($logger, $formatter, $logLevel): callable { + return static function (RequestInterface $request, array $options = []) use ($handler, $logger, $formatter, $logLevel) { + return $handler($request, $options)->then( + static function ($response) use ($logger, $request, $formatter, $logLevel): ResponseInterface { + $message = $formatter->format($request, $response); + $logger->log($logLevel, $message); + + return $response; + }, + static function ($reason) use ($logger, $request, $formatter): PromiseInterface { + $response = $reason instanceof RequestException ? $reason->getResponse() : null; + $message = $formatter->format($request, $response, P\Create::exceptionFor($reason)); + $logger->error($message); + + return P\Create::rejectionFor($reason); + } + ); + }; + }; + } + + /** + * This middleware adds a default content-type if possible, a default + * content-length or transfer-encoding header, and the expect header. + */ + public static function prepareBody(): callable + { + return static function (callable $handler): PrepareBodyMiddleware { + return new PrepareBodyMiddleware($handler); + }; + } + + /** + * Middleware that applies a map function to the request before passing to + * the next handler. + * + * @param callable $fn Function that accepts a RequestInterface and returns + * a RequestInterface. + */ + public static function mapRequest(callable $fn): callable + { + return static function (callable $handler) use ($fn): callable { + return static function (RequestInterface $request, array $options) use ($handler, $fn) { + return $handler($fn($request), $options); + }; + }; + } + + /** + * Middleware that applies a map function to the resolved promise's + * response. + * + * @param callable $fn Function that accepts a ResponseInterface and + * returns a ResponseInterface. + */ + public static function mapResponse(callable $fn): callable + { + return static function (callable $handler) use ($fn): callable { + return static function (RequestInterface $request, array $options) use ($handler, $fn) { + return $handler($request, $options)->then($fn); + }; + }; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Pool.php b/vendor/guzzlehttp/guzzle/src/Pool.php new file mode 100644 index 000000000..6277c61fb --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Pool.php @@ -0,0 +1,125 @@ + $rfn) { + if ($rfn instanceof RequestInterface) { + yield $key => $client->sendAsync($rfn, $opts); + } elseif (\is_callable($rfn)) { + yield $key => $rfn($opts); + } else { + throw new \InvalidArgumentException('Each value yielded by the iterator must be a Psr7\Http\Message\RequestInterface or a callable that returns a promise that fulfills with a Psr7\Message\Http\ResponseInterface object.'); + } + } + }; + + $this->each = new EachPromise($requests(), $config); + } + + /** + * Get promise + */ + public function promise(): PromiseInterface + { + return $this->each->promise(); + } + + /** + * Sends multiple requests concurrently and returns an array of responses + * and exceptions that uses the same ordering as the provided requests. + * + * IMPORTANT: This method keeps every request and response in memory, and + * as such, is NOT recommended when sending a large number or an + * indeterminate number of requests concurrently. + * + * @param ClientInterface $client Client used to send the requests + * @param array|\Iterator $requests Requests to send concurrently. + * @param array $options Passes through the options available in + * {@see \GuzzleHttp\Pool::__construct} + * + * @return array Returns an array containing the response or an exception + * in the same order that the requests were sent. + * + * @throws \InvalidArgumentException if the event format is incorrect. + */ + public static function batch(ClientInterface $client, $requests, array $options = []): array + { + $res = []; + self::cmpCallback($options, 'fulfilled', $res); + self::cmpCallback($options, 'rejected', $res); + $pool = new static($client, $requests, $options); + $pool->promise()->wait(); + \ksort($res); + + return $res; + } + + /** + * Execute callback(s) + */ + private static function cmpCallback(array &$options, string $name, array &$results): void + { + if (!isset($options[$name])) { + $options[$name] = static function ($v, $k) use (&$results) { + $results[$k] = $v; + }; + } else { + $currentFn = $options[$name]; + $options[$name] = static function ($v, $k) use (&$results, $currentFn) { + $currentFn($v, $k); + $results[$k] = $v; + }; + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php new file mode 100644 index 000000000..0a8de8128 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php @@ -0,0 +1,105 @@ +nextHandler = $nextHandler; + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + $fn = $this->nextHandler; + + // Don't do anything if the request has no body. + if ($request->getBody()->getSize() === 0) { + return $fn($request, $options); + } + + $modify = []; + + // Add a default content-type if possible. + if (!$request->hasHeader('Content-Type')) { + if ($uri = $request->getBody()->getMetadata('uri')) { + if (is_string($uri) && $type = Psr7\MimeType::fromFilename($uri)) { + $modify['set_headers']['Content-Type'] = $type; + } + } + } + + // Add a default content-length or transfer-encoding header. + if (!$request->hasHeader('Content-Length') + && !$request->hasHeader('Transfer-Encoding') + ) { + $size = $request->getBody()->getSize(); + if ($size !== null) { + $modify['set_headers']['Content-Length'] = $size; + } else { + $modify['set_headers']['Transfer-Encoding'] = 'chunked'; + } + } + + // Add the expect header if needed. + $this->addExpectHeader($request, $options, $modify); + + return $fn(Psr7\Utils::modifyRequest($request, $modify), $options); + } + + /** + * Add expect header + */ + private function addExpectHeader(RequestInterface $request, array $options, array &$modify): void + { + // Determine if the Expect header should be used + if ($request->hasHeader('Expect')) { + return; + } + + $expect = $options['expect'] ?? null; + + // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0 + if ($expect === false || $request->getProtocolVersion() < 1.1) { + return; + } + + // The expect header is unconditionally enabled + if ($expect === true) { + $modify['set_headers']['Expect'] = '100-Continue'; + + return; + } + + // By default, send the expect header when the payload is > 1mb + if ($expect === null) { + $expect = 1048576; + } + + // Always add if the body cannot be rewound, the size cannot be + // determined, or the size is greater than the cutoff threshold + $body = $request->getBody(); + $size = $body->getSize(); + + if ($size === null || $size >= (int) $expect || !$body->isSeekable()) { + $modify['set_headers']['Expect'] = '100-Continue'; + } + } +} diff --git a/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php b/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php new file mode 100644 index 000000000..7aa21a623 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php @@ -0,0 +1,228 @@ + 5, + 'protocols' => ['http', 'https'], + 'strict' => false, + 'referer' => false, + 'track_redirects' => false, + ]; + + /** + * @var callable(RequestInterface, array): PromiseInterface + */ + private $nextHandler; + + /** + * @param callable(RequestInterface, array): PromiseInterface $nextHandler Next handler to invoke. + */ + public function __construct(callable $nextHandler) + { + $this->nextHandler = $nextHandler; + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + $fn = $this->nextHandler; + + if (empty($options['allow_redirects'])) { + return $fn($request, $options); + } + + if ($options['allow_redirects'] === true) { + $options['allow_redirects'] = self::$defaultSettings; + } elseif (!\is_array($options['allow_redirects'])) { + throw new \InvalidArgumentException('allow_redirects must be true, false, or array'); + } else { + // Merge the default settings with the provided settings + $options['allow_redirects'] += self::$defaultSettings; + } + + if (empty($options['allow_redirects']['max'])) { + return $fn($request, $options); + } + + return $fn($request, $options) + ->then(function (ResponseInterface $response) use ($request, $options) { + return $this->checkRedirect($request, $options, $response); + }); + } + + /** + * @return ResponseInterface|PromiseInterface + */ + public function checkRedirect(RequestInterface $request, array $options, ResponseInterface $response) + { + if (\strpos((string) $response->getStatusCode(), '3') !== 0 + || !$response->hasHeader('Location') + ) { + return $response; + } + + $this->guardMax($request, $response, $options); + $nextRequest = $this->modifyRequest($request, $options, $response); + + // If authorization is handled by curl, unset it if URI is cross-origin. + if (Psr7\UriComparator::isCrossOrigin($request->getUri(), $nextRequest->getUri()) && defined('\CURLOPT_HTTPAUTH')) { + unset( + $options['curl'][\CURLOPT_HTTPAUTH], + $options['curl'][\CURLOPT_USERPWD] + ); + } + + if (isset($options['allow_redirects']['on_redirect'])) { + ($options['allow_redirects']['on_redirect'])( + $request, + $response, + $nextRequest->getUri() + ); + } + + $promise = $this($nextRequest, $options); + + // Add headers to be able to track history of redirects. + if (!empty($options['allow_redirects']['track_redirects'])) { + return $this->withTracking( + $promise, + (string) $nextRequest->getUri(), + $response->getStatusCode() + ); + } + + return $promise; + } + + /** + * Enable tracking on promise. + */ + private function withTracking(PromiseInterface $promise, string $uri, int $statusCode): PromiseInterface + { + return $promise->then( + static function (ResponseInterface $response) use ($uri, $statusCode) { + // Note that we are pushing to the front of the list as this + // would be an earlier response than what is currently present + // in the history header. + $historyHeader = $response->getHeader(self::HISTORY_HEADER); + $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER); + \array_unshift($historyHeader, $uri); + \array_unshift($statusHeader, (string) $statusCode); + + return $response->withHeader(self::HISTORY_HEADER, $historyHeader) + ->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader); + } + ); + } + + /** + * Check for too many redirects. + * + * @throws TooManyRedirectsException Too many redirects. + */ + private function guardMax(RequestInterface $request, ResponseInterface $response, array &$options): void + { + $current = $options['__redirect_count'] + ?? 0; + $options['__redirect_count'] = $current + 1; + $max = $options['allow_redirects']['max']; + + if ($options['__redirect_count'] > $max) { + throw new TooManyRedirectsException("Will not follow more than {$max} redirects", $request, $response); + } + } + + public function modifyRequest(RequestInterface $request, array $options, ResponseInterface $response): RequestInterface + { + // Request modifications to apply. + $modify = []; + $protocols = $options['allow_redirects']['protocols']; + + // Use a GET request if this is an entity enclosing request and we are + // not forcing RFC compliance, but rather emulating what all browsers + // would do. + $statusCode = $response->getStatusCode(); + if ($statusCode == 303 + || ($statusCode <= 302 && !$options['allow_redirects']['strict']) + ) { + $safeMethods = ['GET', 'HEAD', 'OPTIONS']; + $requestMethod = $request->getMethod(); + + $modify['method'] = in_array($requestMethod, $safeMethods) ? $requestMethod : 'GET'; + $modify['body'] = ''; + } + + $uri = self::redirectUri($request, $response, $protocols); + if (isset($options['idn_conversion']) && ($options['idn_conversion'] !== false)) { + $idnOptions = ($options['idn_conversion'] === true) ? \IDNA_DEFAULT : $options['idn_conversion']; + $uri = Utils::idnUriConvert($uri, $idnOptions); + } + + $modify['uri'] = $uri; + Psr7\Message::rewindBody($request); + + // Add the Referer header if it is told to do so and only + // add the header if we are not redirecting from https to http. + if ($options['allow_redirects']['referer'] + && $modify['uri']->getScheme() === $request->getUri()->getScheme() + ) { + $uri = $request->getUri()->withUserInfo(''); + $modify['set_headers']['Referer'] = (string) $uri; + } else { + $modify['remove_headers'][] = 'Referer'; + } + + // Remove Authorization and Cookie headers if URI is cross-origin. + if (Psr7\UriComparator::isCrossOrigin($request->getUri(), $modify['uri'])) { + $modify['remove_headers'][] = 'Authorization'; + $modify['remove_headers'][] = 'Cookie'; + } + + return Psr7\Utils::modifyRequest($request, $modify); + } + + /** + * Set the appropriate URL on the request based on the location header. + */ + private static function redirectUri( + RequestInterface $request, + ResponseInterface $response, + array $protocols + ): UriInterface { + $location = Psr7\UriResolver::resolve( + $request->getUri(), + new Psr7\Uri($response->getHeaderLine('Location')) + ); + + // Ensure that the redirect URI is allowed based on the protocols. + if (!\in_array($location->getScheme(), $protocols)) { + throw new BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response); + } + + return $location; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/RequestOptions.php b/vendor/guzzlehttp/guzzle/src/RequestOptions.php new file mode 100644 index 000000000..bf3b02b6b --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/RequestOptions.php @@ -0,0 +1,276 @@ +decider = $decider; + $this->nextHandler = $nextHandler; + $this->delay = $delay ?: __CLASS__.'::exponentialDelay'; + } + + /** + * Default exponential backoff delay function. + * + * @return int milliseconds. + */ + public static function exponentialDelay(int $retries): int + { + return (int) 2 ** ($retries - 1) * 1000; + } + + public function __invoke(RequestInterface $request, array $options): PromiseInterface + { + if (!isset($options['retries'])) { + $options['retries'] = 0; + } + + $fn = $this->nextHandler; + + return $fn($request, $options) + ->then( + $this->onFulfilled($request, $options), + $this->onRejected($request, $options) + ); + } + + /** + * Execute fulfilled closure + */ + private function onFulfilled(RequestInterface $request, array $options): callable + { + return function ($value) use ($request, $options) { + if (!($this->decider)( + $options['retries'], + $request, + $value, + null + )) { + return $value; + } + + return $this->doRetry($request, $options, $value); + }; + } + + /** + * Execute rejected closure + */ + private function onRejected(RequestInterface $req, array $options): callable + { + return function ($reason) use ($req, $options) { + if (!($this->decider)( + $options['retries'], + $req, + null, + $reason + )) { + return P\Create::rejectionFor($reason); + } + + return $this->doRetry($req, $options); + }; + } + + private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface + { + $options['delay'] = ($this->delay)(++$options['retries'], $response, $request); + + return $this($request, $options); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/TransferStats.php b/vendor/guzzlehttp/guzzle/src/TransferStats.php new file mode 100644 index 000000000..2ce9e38f2 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/TransferStats.php @@ -0,0 +1,133 @@ +request = $request; + $this->response = $response; + $this->transferTime = $transferTime; + $this->handlerErrorData = $handlerErrorData; + $this->handlerStats = $handlerStats; + } + + public function getRequest(): RequestInterface + { + return $this->request; + } + + /** + * Returns the response that was received (if any). + */ + public function getResponse(): ?ResponseInterface + { + return $this->response; + } + + /** + * Returns true if a response was received. + */ + public function hasResponse(): bool + { + return $this->response !== null; + } + + /** + * Gets handler specific error data. + * + * This might be an exception, a integer representing an error code, or + * anything else. Relying on this value assumes that you know what handler + * you are using. + * + * @return mixed + */ + public function getHandlerErrorData() + { + return $this->handlerErrorData; + } + + /** + * Get the effective URI the request was sent to. + */ + public function getEffectiveUri(): UriInterface + { + return $this->request->getUri(); + } + + /** + * Get the estimated time the request was being transferred by the handler. + * + * @return float|null Time in seconds. + */ + public function getTransferTime(): ?float + { + return $this->transferTime; + } + + /** + * Gets an array of all of the handler specific transfer data. + */ + public function getHandlerStats(): array + { + return $this->handlerStats; + } + + /** + * Get a specific handler statistic from the handler by name. + * + * @param string $stat Handler specific transfer stat to retrieve. + * + * @return mixed|null + */ + public function getHandlerStat(string $stat) + { + return $this->handlerStats[$stat] ?? null; + } +} diff --git a/vendor/guzzlehttp/guzzle/src/Utils.php b/vendor/guzzlehttp/guzzle/src/Utils.php new file mode 100644 index 000000000..fcf571d6b --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/Utils.php @@ -0,0 +1,385 @@ +getHost()) { + $asciiHost = self::idnToAsci($uri->getHost(), $options, $info); + if ($asciiHost === false) { + $errorBitSet = $info['errors'] ?? 0; + + $errorConstants = array_filter(array_keys(get_defined_constants()), static function (string $name): bool { + return substr($name, 0, 11) === 'IDNA_ERROR_'; + }); + + $errors = []; + foreach ($errorConstants as $errorConstant) { + if ($errorBitSet & constant($errorConstant)) { + $errors[] = $errorConstant; + } + } + + $errorMessage = 'IDN conversion failed'; + if ($errors) { + $errorMessage .= ' (errors: '.implode(', ', $errors).')'; + } + + throw new InvalidArgumentException($errorMessage); + } + if ($uri->getHost() !== $asciiHost) { + // Replace URI only if the ASCII version is different + $uri = $uri->withHost($asciiHost); + } + } + + return $uri; + } + + /** + * @internal + */ + public static function getenv(string $name): ?string + { + if (isset($_SERVER[$name])) { + return (string) $_SERVER[$name]; + } + + if (\PHP_SAPI === 'cli' && ($value = \getenv($name)) !== false && $value !== null) { + return (string) $value; + } + + return null; + } + + /** + * @return string|false + */ + private static function idnToAsci(string $domain, int $options, ?array &$info = []) + { + if (\function_exists('idn_to_ascii') && \defined('INTL_IDNA_VARIANT_UTS46')) { + return \idn_to_ascii($domain, $options, \INTL_IDNA_VARIANT_UTS46, $info); + } + + throw new \Error('ext-idn or symfony/polyfill-intl-idn not loaded or too old'); + } +} diff --git a/vendor/guzzlehttp/guzzle/src/functions.php b/vendor/guzzlehttp/guzzle/src/functions.php new file mode 100644 index 000000000..5edc66ab1 --- /dev/null +++ b/vendor/guzzlehttp/guzzle/src/functions.php @@ -0,0 +1,167 @@ + +Copyright (c) 2015 Graham Campbell +Copyright (c) 2017 Tobias Schultze +Copyright (c) 2020 Tobias Nyholm + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/guzzlehttp/promises/README.md b/vendor/guzzlehttp/promises/README.md new file mode 100644 index 000000000..a32d3d29c --- /dev/null +++ b/vendor/guzzlehttp/promises/README.md @@ -0,0 +1,559 @@ +# Guzzle Promises + +[Promises/A+](https://promisesaplus.com/) implementation that handles promise +chaining and resolution iteratively, allowing for "infinite" promise chaining +while keeping the stack size constant. Read [this blog post](https://blog.domenic.me/youre-missing-the-point-of-promises/) +for a general introduction to promises. + +- [Features](#features) +- [Quick start](#quick-start) +- [Synchronous wait](#synchronous-wait) +- [Cancellation](#cancellation) +- [API](#api) + - [Promise](#promise) + - [FulfilledPromise](#fulfilledpromise) + - [RejectedPromise](#rejectedpromise) +- [Promise interop](#promise-interop) +- [Implementation notes](#implementation-notes) + + +## Features + +- [Promises/A+](https://promisesaplus.com/) implementation. +- Promise resolution and chaining is handled iteratively, allowing for + "infinite" promise chaining. +- Promises have a synchronous `wait` method. +- Promises can be cancelled. +- Works with any object that has a `then` function. +- C# style async/await coroutine promises using + `GuzzleHttp\Promise\Coroutine::of()`. + + +## Installation + +```shell +composer require guzzlehttp/promises +``` + + +## Version Guidance + +| Version | Status | PHP Version | +|---------|------------------------|--------------| +| 1.x | Bug and security fixes | >=5.5,<8.3 | +| 2.x | Latest | >=7.2.5,<8.4 | + + +## Quick Start + +A *promise* represents the eventual result of an asynchronous operation. The +primary way of interacting with a promise is through its `then` method, which +registers callbacks to receive either a promise's eventual value or the reason +why the promise cannot be fulfilled. + +### Callbacks + +Callbacks are registered with the `then` method by providing an optional +`$onFulfilled` followed by an optional `$onRejected` function. + + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise->then( + // $onFulfilled + function ($value) { + echo 'The promise was fulfilled.'; + }, + // $onRejected + function ($reason) { + echo 'The promise was rejected.'; + } +); +``` + +*Resolving* a promise means that you either fulfill a promise with a *value* or +reject a promise with a *reason*. Resolving a promise triggers callbacks +registered with the promise's `then` method. These callbacks are triggered +only once and in the order in which they were added. + +### Resolving a Promise + +Promises are fulfilled using the `resolve($value)` method. Resolving a promise +with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger +all of the onFulfilled callbacks (resolving a promise with a rejected promise +will reject the promise and trigger the `$onRejected` callbacks). + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise + ->then(function ($value) { + // Return a value and don't break the chain + return "Hello, " . $value; + }) + // This then is executed after the first then and receives the value + // returned from the first then. + ->then(function ($value) { + echo $value; + }); + +// Resolving the promise triggers the $onFulfilled callbacks and outputs +// "Hello, reader." +$promise->resolve('reader.'); +``` + +### Promise Forwarding + +Promises can be chained one after the other. Each then in the chain is a new +promise. The return value of a promise is what's forwarded to the next +promise in the chain. Returning a promise in a `then` callback will cause the +subsequent promises in the chain to only be fulfilled when the returned promise +has been fulfilled. The next promise in the chain will be invoked with the +resolved value of the promise. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$nextPromise = new Promise(); + +$promise + ->then(function ($value) use ($nextPromise) { + echo $value; + return $nextPromise; + }) + ->then(function ($value) { + echo $value; + }); + +// Triggers the first callback and outputs "A" +$promise->resolve('A'); +// Triggers the second callback and outputs "B" +$nextPromise->resolve('B'); +``` + +### Promise Rejection + +When a promise is rejected, the `$onRejected` callbacks are invoked with the +rejection reason. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise->then(null, function ($reason) { + echo $reason; +}); + +$promise->reject('Error!'); +// Outputs "Error!" +``` + +### Rejection Forwarding + +If an exception is thrown in an `$onRejected` callback, subsequent +`$onRejected` callbacks are invoked with the thrown exception as the reason. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise->then(null, function ($reason) { + throw new Exception($reason); +})->then(null, function ($reason) { + assert($reason->getMessage() === 'Error!'); +}); + +$promise->reject('Error!'); +``` + +You can also forward a rejection down the promise chain by returning a +`GuzzleHttp\Promise\RejectedPromise` in either an `$onFulfilled` or +`$onRejected` callback. + +```php +use GuzzleHttp\Promise\Promise; +use GuzzleHttp\Promise\RejectedPromise; + +$promise = new Promise(); +$promise->then(null, function ($reason) { + return new RejectedPromise($reason); +})->then(null, function ($reason) { + assert($reason === 'Error!'); +}); + +$promise->reject('Error!'); +``` + +If an exception is not thrown in a `$onRejected` callback and the callback +does not return a rejected promise, downstream `$onFulfilled` callbacks are +invoked using the value returned from the `$onRejected` callback. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise(); +$promise + ->then(null, function ($reason) { + return "It's ok"; + }) + ->then(function ($value) { + assert($value === "It's ok"); + }); + +$promise->reject('Error!'); +``` + + +## Synchronous Wait + +You can synchronously force promises to complete using a promise's `wait` +method. When creating a promise, you can provide a wait function that is used +to synchronously force a promise to complete. When a wait function is invoked +it is expected to deliver a value to the promise or reject the promise. If the +wait function does not deliver a value, then an exception is thrown. The wait +function provided to a promise constructor is invoked when the `wait` function +of the promise is called. + +```php +$promise = new Promise(function () use (&$promise) { + $promise->resolve('foo'); +}); + +// Calling wait will return the value of the promise. +echo $promise->wait(); // outputs "foo" +``` + +If an exception is encountered while invoking the wait function of a promise, +the promise is rejected with the exception and the exception is thrown. + +```php +$promise = new Promise(function () use (&$promise) { + throw new Exception('foo'); +}); + +$promise->wait(); // throws the exception. +``` + +Calling `wait` on a promise that has been fulfilled will not trigger the wait +function. It will simply return the previously resolved value. + +```php +$promise = new Promise(function () { die('this is not called!'); }); +$promise->resolve('foo'); +echo $promise->wait(); // outputs "foo" +``` + +Calling `wait` on a promise that has been rejected will throw an exception. If +the rejection reason is an instance of `\Exception` the reason is thrown. +Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason +can be obtained by calling the `getReason` method of the exception. + +```php +$promise = new Promise(); +$promise->reject('foo'); +$promise->wait(); +``` + +> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo' + +### Unwrapping a Promise + +When synchronously waiting on a promise, you are joining the state of the +promise into the current state of execution (i.e., return the value of the +promise if it was fulfilled or throw an exception if it was rejected). This is +called "unwrapping" the promise. Waiting on a promise will by default unwrap +the promise state. + +You can force a promise to resolve and *not* unwrap the state of the promise +by passing `false` to the first argument of the `wait` function: + +```php +$promise = new Promise(); +$promise->reject('foo'); +// This will not throw an exception. It simply ensures the promise has +// been resolved. +$promise->wait(false); +``` + +When unwrapping a promise, the resolved value of the promise will be waited +upon until the unwrapped value is not a promise. This means that if you resolve +promise A with a promise B and unwrap promise A, the value returned by the +wait function will be the value delivered to promise B. + +**Note**: when you do not unwrap the promise, no value is returned. + + +## Cancellation + +You can cancel a promise that has not yet been fulfilled using the `cancel()` +method of a promise. When creating a promise you can provide an optional +cancel function that when invoked cancels the action of computing a resolution +of the promise. + + +## API + +### Promise + +When creating a promise object, you can provide an optional `$waitFn` and +`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is +expected to resolve the promise. `$cancelFn` is a function with no arguments +that is expected to cancel the computation of a promise. It is invoked when the +`cancel()` method of a promise is called. + +```php +use GuzzleHttp\Promise\Promise; + +$promise = new Promise( + function () use (&$promise) { + $promise->resolve('waited'); + }, + function () { + // do something that will cancel the promise computation (e.g., close + // a socket, cancel a database query, etc...) + } +); + +assert('waited' === $promise->wait()); +``` + +A promise has the following methods: + +- `then(callable $onFulfilled, callable $onRejected) : PromiseInterface` + + Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler. + +- `otherwise(callable $onRejected) : PromiseInterface` + + Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled. + +- `wait($unwrap = true) : mixed` + + Synchronously waits on the promise to complete. + + `$unwrap` controls whether or not the value of the promise is returned for a + fulfilled promise or if an exception is thrown if the promise is rejected. + This is set to `true` by default. + +- `cancel()` + + Attempts to cancel the promise if possible. The promise being cancelled and + the parent most ancestor that has not yet been resolved will also be + cancelled. Any promises waiting on the cancelled promise to resolve will also + be cancelled. + +- `getState() : string` + + Returns the state of the promise. One of `pending`, `fulfilled`, or + `rejected`. + +- `resolve($value)` + + Fulfills the promise with the given `$value`. + +- `reject($reason)` + + Rejects the promise with the given `$reason`. + + +### FulfilledPromise + +A fulfilled promise can be created to represent a promise that has been +fulfilled. + +```php +use GuzzleHttp\Promise\FulfilledPromise; + +$promise = new FulfilledPromise('value'); + +// Fulfilled callbacks are immediately invoked. +$promise->then(function ($value) { + echo $value; +}); +``` + + +### RejectedPromise + +A rejected promise can be created to represent a promise that has been +rejected. + +```php +use GuzzleHttp\Promise\RejectedPromise; + +$promise = new RejectedPromise('Error'); + +// Rejected callbacks are immediately invoked. +$promise->then(null, function ($reason) { + echo $reason; +}); +``` + + +## Promise Interoperability + +This library works with foreign promises that have a `then` method. This means +you can use Guzzle promises with [React promises](https://github.com/reactphp/promise) +for example. When a foreign promise is returned inside of a then method +callback, promise resolution will occur recursively. + +```php +// Create a React promise +$deferred = new React\Promise\Deferred(); +$reactPromise = $deferred->promise(); + +// Create a Guzzle promise that is fulfilled with a React promise. +$guzzlePromise = new GuzzleHttp\Promise\Promise(); +$guzzlePromise->then(function ($value) use ($reactPromise) { + // Do something something with the value... + // Return the React promise + return $reactPromise; +}); +``` + +Please note that wait and cancel chaining is no longer possible when forwarding +a foreign promise. You will need to wrap a third-party promise with a Guzzle +promise in order to utilize wait and cancel functions with foreign promises. + + +### Event Loop Integration + +In order to keep the stack size constant, Guzzle promises are resolved +asynchronously using a task queue. When waiting on promises synchronously, the +task queue will be automatically run to ensure that the blocking promise and +any forwarded promises are resolved. When using promises asynchronously in an +event loop, you will need to run the task queue on each tick of the loop. If +you do not run the task queue, then promises will not be resolved. + +You can run the task queue using the `run()` method of the global task queue +instance. + +```php +// Get the global task queue +$queue = GuzzleHttp\Promise\Utils::queue(); +$queue->run(); +``` + +For example, you could use Guzzle promises with React using a periodic timer: + +```php +$loop = React\EventLoop\Factory::create(); +$loop->addPeriodicTimer(0, [$queue, 'run']); +``` + + +## Implementation Notes + +### Promise Resolution and Chaining is Handled Iteratively + +By shuffling pending handlers from one owner to another, promises are +resolved iteratively, allowing for "infinite" then chaining. + +```php +then(function ($v) { + // The stack size remains constant (a good thing) + echo xdebug_get_stack_depth() . ', '; + return $v + 1; + }); +} + +$parent->resolve(0); +var_dump($p->wait()); // int(1000) + +``` + +When a promise is fulfilled or rejected with a non-promise value, the promise +then takes ownership of the handlers of each child promise and delivers values +down the chain without using recursion. + +When a promise is resolved with another promise, the original promise transfers +all of its pending handlers to the new promise. When the new promise is +eventually resolved, all of the pending handlers are delivered the forwarded +value. + +### A Promise is the Deferred + +Some promise libraries implement promises using a deferred object to represent +a computation and a promise object to represent the delivery of the result of +the computation. This is a nice separation of computation and delivery because +consumers of the promise cannot modify the value that will be eventually +delivered. + +One side effect of being able to implement promise resolution and chaining +iteratively is that you need to be able for one promise to reach into the state +of another promise to shuffle around ownership of handlers. In order to achieve +this without making the handlers of a promise publicly mutable, a promise is +also the deferred value, allowing promises of the same parent class to reach +into and modify the private properties of promises of the same type. While this +does allow consumers of the value to modify the resolution or rejection of the +deferred, it is a small price to pay for keeping the stack size constant. + +```php +$promise = new Promise(); +$promise->then(function ($value) { echo $value; }); +// The promise is the deferred value, so you can deliver a value to it. +$promise->resolve('foo'); +// prints "foo" +``` + + +## Upgrading from Function API + +A static API was first introduced in 1.4.0, in order to mitigate problems with +functions conflicting between global and local copies of the package. The +function API was removed in 2.0.0. A migration table has been provided here for +your convenience: + +| Original Function | Replacement Method | +|----------------|----------------| +| `queue` | `Utils::queue` | +| `task` | `Utils::task` | +| `promise_for` | `Create::promiseFor` | +| `rejection_for` | `Create::rejectionFor` | +| `exception_for` | `Create::exceptionFor` | +| `iter_for` | `Create::iterFor` | +| `inspect` | `Utils::inspect` | +| `inspect_all` | `Utils::inspectAll` | +| `unwrap` | `Utils::unwrap` | +| `all` | `Utils::all` | +| `some` | `Utils::some` | +| `any` | `Utils::any` | +| `settle` | `Utils::settle` | +| `each` | `Each::of` | +| `each_limit` | `Each::ofLimit` | +| `each_limit_all` | `Each::ofLimitAll` | +| `!is_fulfilled` | `Is::pending` | +| `is_fulfilled` | `Is::fulfilled` | +| `is_rejected` | `Is::rejected` | +| `is_settled` | `Is::settled` | +| `coroutine` | `Coroutine::of` | + + +## Security + +If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information. + + +## License + +Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. + + +## For Enterprise + +Available as part of the Tidelift Subscription + +The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-promises?utm_source=packagist-guzzlehttp-promises&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/vendor/guzzlehttp/promises/composer.json b/vendor/guzzlehttp/promises/composer.json new file mode 100644 index 000000000..fc1989ec1 --- /dev/null +++ b/vendor/guzzlehttp/promises/composer.json @@ -0,0 +1,58 @@ +{ + "name": "guzzlehttp/promises", + "description": "Guzzle promises library", + "keywords": ["promise"], + "license": "MIT", + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "GuzzleHttp\\Promise\\Tests\\": "tests/" + } + }, + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "config": { + "allow-plugins": { + "bamarni/composer-bin-plugin": true + }, + "preferred-install": "dist", + "sort-packages": true + } +} diff --git a/vendor/guzzlehttp/promises/src/AggregateException.php b/vendor/guzzlehttp/promises/src/AggregateException.php new file mode 100644 index 000000000..40ffdbcf1 --- /dev/null +++ b/vendor/guzzlehttp/promises/src/AggregateException.php @@ -0,0 +1,19 @@ +then(function ($v) { echo $v; }); + * + * @param callable $generatorFn Generator function to wrap into a promise. + * + * @return Promise + * + * @see https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration + */ +final class Coroutine implements PromiseInterface +{ + /** + * @var PromiseInterface|null + */ + private $currentPromise; + + /** + * @var Generator + */ + private $generator; + + /** + * @var Promise + */ + private $result; + + public function __construct(callable $generatorFn) + { + $this->generator = $generatorFn(); + $this->result = new Promise(function (): void { + while (isset($this->currentPromise)) { + $this->currentPromise->wait(); + } + }); + try { + $this->nextCoroutine($this->generator->current()); + } catch (Throwable $throwable) { + $this->result->reject($throwable); + } + } + + /** + * Create a new coroutine. + */ + public static function of(callable $generatorFn): self + { + return new self($generatorFn); + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ): PromiseInterface { + return $this->result->then($onFulfilled, $onRejected); + } + + public function otherwise(callable $onRejected): PromiseInterface + { + return $this->result->otherwise($onRejected); + } + + public function wait(bool $unwrap = true) + { + return $this->result->wait($unwrap); + } + + public function getState(): string + { + return $this->result->getState(); + } + + public function resolve($value): void + { + $this->result->resolve($value); + } + + public function reject($reason): void + { + $this->result->reject($reason); + } + + public function cancel(): void + { + $this->currentPromise->cancel(); + $this->result->cancel(); + } + + private function nextCoroutine($yielded): void + { + $this->currentPromise = Create::promiseFor($yielded) + ->then([$this, '_handleSuccess'], [$this, '_handleFailure']); + } + + /** + * @internal + */ + public function _handleSuccess($value): void + { + unset($this->currentPromise); + try { + $next = $this->generator->send($value); + if ($this->generator->valid()) { + $this->nextCoroutine($next); + } else { + $this->result->resolve($value); + } + } catch (Throwable $throwable) { + $this->result->reject($throwable); + } + } + + /** + * @internal + */ + public function _handleFailure($reason): void + { + unset($this->currentPromise); + try { + $nextYield = $this->generator->throw(Create::exceptionFor($reason)); + // The throw was caught, so keep iterating on the coroutine + $this->nextCoroutine($nextYield); + } catch (Throwable $throwable) { + $this->result->reject($throwable); + } + } +} diff --git a/vendor/guzzlehttp/promises/src/Create.php b/vendor/guzzlehttp/promises/src/Create.php new file mode 100644 index 000000000..9d3fc4a1e --- /dev/null +++ b/vendor/guzzlehttp/promises/src/Create.php @@ -0,0 +1,79 @@ +then([$promise, 'resolve'], [$promise, 'reject']); + + return $promise; + } + + return new FulfilledPromise($value); + } + + /** + * Creates a rejected promise for a reason if the reason is not a promise. + * If the provided reason is a promise, then it is returned as-is. + * + * @param mixed $reason Promise or reason. + */ + public static function rejectionFor($reason): PromiseInterface + { + if ($reason instanceof PromiseInterface) { + return $reason; + } + + return new RejectedPromise($reason); + } + + /** + * Create an exception for a rejected promise value. + * + * @param mixed $reason + */ + public static function exceptionFor($reason): \Throwable + { + if ($reason instanceof \Throwable) { + return $reason; + } + + return new RejectionException($reason); + } + + /** + * Returns an iterator for the given value. + * + * @param mixed $value + */ + public static function iterFor($value): \Iterator + { + if ($value instanceof \Iterator) { + return $value; + } + + if (is_array($value)) { + return new \ArrayIterator($value); + } + + return new \ArrayIterator([$value]); + } +} diff --git a/vendor/guzzlehttp/promises/src/Each.php b/vendor/guzzlehttp/promises/src/Each.php new file mode 100644 index 000000000..1a7aa0fb6 --- /dev/null +++ b/vendor/guzzlehttp/promises/src/Each.php @@ -0,0 +1,86 @@ + $onFulfilled, + 'rejected' => $onRejected, + ]))->promise(); + } + + /** + * Like of, but only allows a certain number of outstanding promises at any + * given time. + * + * $concurrency may be an integer or a function that accepts the number of + * pending promises and returns a numeric concurrency limit value to allow + * for dynamic a concurrency size. + * + * @param mixed $iterable + * @param int|callable $concurrency + * @param callable $onFulfilled + * @param callable $onRejected + */ + public static function ofLimit( + $iterable, + $concurrency, + callable $onFulfilled = null, + callable $onRejected = null + ): PromiseInterface { + return (new EachPromise($iterable, [ + 'fulfilled' => $onFulfilled, + 'rejected' => $onRejected, + 'concurrency' => $concurrency, + ]))->promise(); + } + + /** + * Like limit, but ensures that no promise in the given $iterable argument + * is rejected. If any promise is rejected, then the aggregate promise is + * rejected with the encountered rejection. + * + * @param mixed $iterable + * @param int|callable $concurrency + * @param callable $onFulfilled + */ + public static function ofLimitAll( + $iterable, + $concurrency, + callable $onFulfilled = null + ): PromiseInterface { + return self::ofLimit( + $iterable, + $concurrency, + $onFulfilled, + function ($reason, $idx, PromiseInterface $aggregate): void { + $aggregate->reject($reason); + } + ); + } +} diff --git a/vendor/guzzlehttp/promises/src/EachPromise.php b/vendor/guzzlehttp/promises/src/EachPromise.php new file mode 100644 index 000000000..28dd9793a --- /dev/null +++ b/vendor/guzzlehttp/promises/src/EachPromise.php @@ -0,0 +1,250 @@ +iterable = Create::iterFor($iterable); + + if (isset($config['concurrency'])) { + $this->concurrency = $config['concurrency']; + } + + if (isset($config['fulfilled'])) { + $this->onFulfilled = $config['fulfilled']; + } + + if (isset($config['rejected'])) { + $this->onRejected = $config['rejected']; + } + } + + /** @psalm-suppress InvalidNullableReturnType */ + public function promise(): PromiseInterface + { + if ($this->aggregate) { + return $this->aggregate; + } + + try { + $this->createPromise(); + /** @psalm-assert Promise $this->aggregate */ + $this->iterable->rewind(); + $this->refillPending(); + } catch (\Throwable $e) { + $this->aggregate->reject($e); + } + + /** + * @psalm-suppress NullableReturnStatement + */ + return $this->aggregate; + } + + private function createPromise(): void + { + $this->mutex = false; + $this->aggregate = new Promise(function (): void { + if ($this->checkIfFinished()) { + return; + } + reset($this->pending); + // Consume a potentially fluctuating list of promises while + // ensuring that indexes are maintained (precluding array_shift). + while ($promise = current($this->pending)) { + next($this->pending); + $promise->wait(); + if (Is::settled($this->aggregate)) { + return; + } + } + }); + + // Clear the references when the promise is resolved. + $clearFn = function (): void { + $this->iterable = $this->concurrency = $this->pending = null; + $this->onFulfilled = $this->onRejected = null; + $this->nextPendingIndex = 0; + }; + + $this->aggregate->then($clearFn, $clearFn); + } + + private function refillPending(): void + { + if (!$this->concurrency) { + // Add all pending promises. + while ($this->addPending() && $this->advanceIterator()) { + } + + return; + } + + // Add only up to N pending promises. + $concurrency = is_callable($this->concurrency) + ? call_user_func($this->concurrency, count($this->pending)) + : $this->concurrency; + $concurrency = max($concurrency - count($this->pending), 0); + // Concurrency may be set to 0 to disallow new promises. + if (!$concurrency) { + return; + } + // Add the first pending promise. + $this->addPending(); + // Note this is special handling for concurrency=1 so that we do + // not advance the iterator after adding the first promise. This + // helps work around issues with generators that might not have the + // next value to yield until promise callbacks are called. + while (--$concurrency + && $this->advanceIterator() + && $this->addPending()) { + } + } + + private function addPending(): bool + { + if (!$this->iterable || !$this->iterable->valid()) { + return false; + } + + $promise = Create::promiseFor($this->iterable->current()); + $key = $this->iterable->key(); + + // Iterable keys may not be unique, so we use a counter to + // guarantee uniqueness + $idx = $this->nextPendingIndex++; + + $this->pending[$idx] = $promise->then( + function ($value) use ($idx, $key): void { + if ($this->onFulfilled) { + call_user_func( + $this->onFulfilled, + $value, + $key, + $this->aggregate + ); + } + $this->step($idx); + }, + function ($reason) use ($idx, $key): void { + if ($this->onRejected) { + call_user_func( + $this->onRejected, + $reason, + $key, + $this->aggregate + ); + } + $this->step($idx); + } + ); + + return true; + } + + private function advanceIterator(): bool + { + // Place a lock on the iterator so that we ensure to not recurse, + // preventing fatal generator errors. + if ($this->mutex) { + return false; + } + + $this->mutex = true; + + try { + $this->iterable->next(); + $this->mutex = false; + + return true; + } catch (\Throwable $e) { + $this->aggregate->reject($e); + $this->mutex = false; + + return false; + } + } + + private function step(int $idx): void + { + // If the promise was already resolved, then ignore this step. + if (Is::settled($this->aggregate)) { + return; + } + + unset($this->pending[$idx]); + + // Only refill pending promises if we are not locked, preventing the + // EachPromise to recursively invoke the provided iterator, which + // cause a fatal error: "Cannot resume an already running generator" + if ($this->advanceIterator() && !$this->checkIfFinished()) { + // Add more pending promises if possible. + $this->refillPending(); + } + } + + private function checkIfFinished(): bool + { + if (!$this->pending && !$this->iterable->valid()) { + // Resolve the promise if there's nothing left to do. + $this->aggregate->resolve(null); + + return true; + } + + return false; + } +} diff --git a/vendor/guzzlehttp/promises/src/FulfilledPromise.php b/vendor/guzzlehttp/promises/src/FulfilledPromise.php new file mode 100644 index 000000000..ab7129659 --- /dev/null +++ b/vendor/guzzlehttp/promises/src/FulfilledPromise.php @@ -0,0 +1,89 @@ +value = $value; + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ): PromiseInterface { + // Return itself if there is no onFulfilled function. + if (!$onFulfilled) { + return $this; + } + + $queue = Utils::queue(); + $p = new Promise([$queue, 'run']); + $value = $this->value; + $queue->add(static function () use ($p, $value, $onFulfilled): void { + if (Is::pending($p)) { + try { + $p->resolve($onFulfilled($value)); + } catch (\Throwable $e) { + $p->reject($e); + } + } + }); + + return $p; + } + + public function otherwise(callable $onRejected): PromiseInterface + { + return $this->then(null, $onRejected); + } + + public function wait(bool $unwrap = true) + { + return $unwrap ? $this->value : null; + } + + public function getState(): string + { + return self::FULFILLED; + } + + public function resolve($value): void + { + if ($value !== $this->value) { + throw new \LogicException('Cannot resolve a fulfilled promise'); + } + } + + public function reject($reason): void + { + throw new \LogicException('Cannot reject a fulfilled promise'); + } + + public function cancel(): void + { + // pass + } +} diff --git a/vendor/guzzlehttp/promises/src/Is.php b/vendor/guzzlehttp/promises/src/Is.php new file mode 100644 index 000000000..f3f050384 --- /dev/null +++ b/vendor/guzzlehttp/promises/src/Is.php @@ -0,0 +1,40 @@ +getState() === PromiseInterface::PENDING; + } + + /** + * Returns true if a promise is fulfilled or rejected. + */ + public static function settled(PromiseInterface $promise): bool + { + return $promise->getState() !== PromiseInterface::PENDING; + } + + /** + * Returns true if a promise is fulfilled. + */ + public static function fulfilled(PromiseInterface $promise): bool + { + return $promise->getState() === PromiseInterface::FULFILLED; + } + + /** + * Returns true if a promise is rejected. + */ + public static function rejected(PromiseInterface $promise): bool + { + return $promise->getState() === PromiseInterface::REJECTED; + } +} diff --git a/vendor/guzzlehttp/promises/src/Promise.php b/vendor/guzzlehttp/promises/src/Promise.php new file mode 100644 index 000000000..1b07bdc9a --- /dev/null +++ b/vendor/guzzlehttp/promises/src/Promise.php @@ -0,0 +1,281 @@ +waitFn = $waitFn; + $this->cancelFn = $cancelFn; + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ): PromiseInterface { + if ($this->state === self::PENDING) { + $p = new Promise(null, [$this, 'cancel']); + $this->handlers[] = [$p, $onFulfilled, $onRejected]; + $p->waitList = $this->waitList; + $p->waitList[] = $this; + + return $p; + } + + // Return a fulfilled promise and immediately invoke any callbacks. + if ($this->state === self::FULFILLED) { + $promise = Create::promiseFor($this->result); + + return $onFulfilled ? $promise->then($onFulfilled) : $promise; + } + + // It's either cancelled or rejected, so return a rejected promise + // and immediately invoke any callbacks. + $rejection = Create::rejectionFor($this->result); + + return $onRejected ? $rejection->then(null, $onRejected) : $rejection; + } + + public function otherwise(callable $onRejected): PromiseInterface + { + return $this->then(null, $onRejected); + } + + public function wait(bool $unwrap = true) + { + $this->waitIfPending(); + + if ($this->result instanceof PromiseInterface) { + return $this->result->wait($unwrap); + } + if ($unwrap) { + if ($this->state === self::FULFILLED) { + return $this->result; + } + // It's rejected so "unwrap" and throw an exception. + throw Create::exceptionFor($this->result); + } + } + + public function getState(): string + { + return $this->state; + } + + public function cancel(): void + { + if ($this->state !== self::PENDING) { + return; + } + + $this->waitFn = $this->waitList = null; + + if ($this->cancelFn) { + $fn = $this->cancelFn; + $this->cancelFn = null; + try { + $fn(); + } catch (\Throwable $e) { + $this->reject($e); + } + } + + // Reject the promise only if it wasn't rejected in a then callback. + /** @psalm-suppress RedundantCondition */ + if ($this->state === self::PENDING) { + $this->reject(new CancellationException('Promise has been cancelled')); + } + } + + public function resolve($value): void + { + $this->settle(self::FULFILLED, $value); + } + + public function reject($reason): void + { + $this->settle(self::REJECTED, $reason); + } + + private function settle(string $state, $value): void + { + if ($this->state !== self::PENDING) { + // Ignore calls with the same resolution. + if ($state === $this->state && $value === $this->result) { + return; + } + throw $this->state === $state + ? new \LogicException("The promise is already {$state}.") + : new \LogicException("Cannot change a {$this->state} promise to {$state}"); + } + + if ($value === $this) { + throw new \LogicException('Cannot fulfill or reject a promise with itself'); + } + + // Clear out the state of the promise but stash the handlers. + $this->state = $state; + $this->result = $value; + $handlers = $this->handlers; + $this->handlers = null; + $this->waitList = $this->waitFn = null; + $this->cancelFn = null; + + if (!$handlers) { + return; + } + + // If the value was not a settled promise or a thenable, then resolve + // it in the task queue using the correct ID. + if (!is_object($value) || !method_exists($value, 'then')) { + $id = $state === self::FULFILLED ? 1 : 2; + // It's a success, so resolve the handlers in the queue. + Utils::queue()->add(static function () use ($id, $value, $handlers): void { + foreach ($handlers as $handler) { + self::callHandler($id, $value, $handler); + } + }); + } elseif ($value instanceof Promise && Is::pending($value)) { + // We can just merge our handlers onto the next promise. + $value->handlers = array_merge($value->handlers, $handlers); + } else { + // Resolve the handlers when the forwarded promise is resolved. + $value->then( + static function ($value) use ($handlers): void { + foreach ($handlers as $handler) { + self::callHandler(1, $value, $handler); + } + }, + static function ($reason) use ($handlers): void { + foreach ($handlers as $handler) { + self::callHandler(2, $reason, $handler); + } + } + ); + } + } + + /** + * Call a stack of handlers using a specific callback index and value. + * + * @param int $index 1 (resolve) or 2 (reject). + * @param mixed $value Value to pass to the callback. + * @param array $handler Array of handler data (promise and callbacks). + */ + private static function callHandler(int $index, $value, array $handler): void + { + /** @var PromiseInterface $promise */ + $promise = $handler[0]; + + // The promise may have been cancelled or resolved before placing + // this thunk in the queue. + if (Is::settled($promise)) { + return; + } + + try { + if (isset($handler[$index])) { + /* + * If $f throws an exception, then $handler will be in the exception + * stack trace. Since $handler contains a reference to the callable + * itself we get a circular reference. We clear the $handler + * here to avoid that memory leak. + */ + $f = $handler[$index]; + unset($handler); + $promise->resolve($f($value)); + } elseif ($index === 1) { + // Forward resolution values as-is. + $promise->resolve($value); + } else { + // Forward rejections down the chain. + $promise->reject($value); + } + } catch (\Throwable $reason) { + $promise->reject($reason); + } + } + + private function waitIfPending(): void + { + if ($this->state !== self::PENDING) { + return; + } elseif ($this->waitFn) { + $this->invokeWaitFn(); + } elseif ($this->waitList) { + $this->invokeWaitList(); + } else { + // If there's no wait function, then reject the promise. + $this->reject('Cannot wait on a promise that has ' + .'no internal wait function. You must provide a wait ' + .'function when constructing the promise to be able to ' + .'wait on a promise.'); + } + + Utils::queue()->run(); + + /** @psalm-suppress RedundantCondition */ + if ($this->state === self::PENDING) { + $this->reject('Invoking the wait callback did not resolve the promise'); + } + } + + private function invokeWaitFn(): void + { + try { + $wfn = $this->waitFn; + $this->waitFn = null; + $wfn(true); + } catch (\Throwable $reason) { + if ($this->state === self::PENDING) { + // The promise has not been resolved yet, so reject the promise + // with the exception. + $this->reject($reason); + } else { + // The promise was already resolved, so there's a problem in + // the application. + throw $reason; + } + } + } + + private function invokeWaitList(): void + { + $waitList = $this->waitList; + $this->waitList = null; + + foreach ($waitList as $result) { + do { + $result->waitIfPending(); + $result = $result->result; + } while ($result instanceof Promise); + + if ($result instanceof PromiseInterface) { + $result->wait(false); + } + } + } +} diff --git a/vendor/guzzlehttp/promises/src/PromiseInterface.php b/vendor/guzzlehttp/promises/src/PromiseInterface.php new file mode 100644 index 000000000..2824802bb --- /dev/null +++ b/vendor/guzzlehttp/promises/src/PromiseInterface.php @@ -0,0 +1,91 @@ +reason = $reason; + } + + public function then( + callable $onFulfilled = null, + callable $onRejected = null + ): PromiseInterface { + // If there's no onRejected callback then just return self. + if (!$onRejected) { + return $this; + } + + $queue = Utils::queue(); + $reason = $this->reason; + $p = new Promise([$queue, 'run']); + $queue->add(static function () use ($p, $reason, $onRejected): void { + if (Is::pending($p)) { + try { + // Return a resolved promise if onRejected does not throw. + $p->resolve($onRejected($reason)); + } catch (\Throwable $e) { + // onRejected threw, so return a rejected promise. + $p->reject($e); + } + } + }); + + return $p; + } + + public function otherwise(callable $onRejected): PromiseInterface + { + return $this->then(null, $onRejected); + } + + public function wait(bool $unwrap = true) + { + if ($unwrap) { + throw Create::exceptionFor($this->reason); + } + + return null; + } + + public function getState(): string + { + return self::REJECTED; + } + + public function resolve($value): void + { + throw new \LogicException('Cannot resolve a rejected promise'); + } + + public function reject($reason): void + { + if ($reason !== $this->reason) { + throw new \LogicException('Cannot reject a rejected promise'); + } + } + + public function cancel(): void + { + // pass + } +} diff --git a/vendor/guzzlehttp/promises/src/RejectionException.php b/vendor/guzzlehttp/promises/src/RejectionException.php new file mode 100644 index 000000000..47dca8624 --- /dev/null +++ b/vendor/guzzlehttp/promises/src/RejectionException.php @@ -0,0 +1,49 @@ +reason = $reason; + + $message = 'The promise was rejected'; + + if ($description) { + $message .= ' with reason: '.$description; + } elseif (is_string($reason) + || (is_object($reason) && method_exists($reason, '__toString')) + ) { + $message .= ' with reason: '.$this->reason; + } elseif ($reason instanceof \JsonSerializable) { + $message .= ' with reason: '.json_encode($this->reason, JSON_PRETTY_PRINT); + } + + parent::__construct($message); + } + + /** + * Returns the rejection reason. + * + * @return mixed + */ + public function getReason() + { + return $this->reason; + } +} diff --git a/vendor/guzzlehttp/promises/src/TaskQueue.php b/vendor/guzzlehttp/promises/src/TaskQueue.php new file mode 100644 index 000000000..503e0b2da --- /dev/null +++ b/vendor/guzzlehttp/promises/src/TaskQueue.php @@ -0,0 +1,71 @@ +run(); + * + * @final + */ +class TaskQueue implements TaskQueueInterface +{ + private $enableShutdown = true; + private $queue = []; + + public function __construct(bool $withShutdown = true) + { + if ($withShutdown) { + register_shutdown_function(function (): void { + if ($this->enableShutdown) { + // Only run the tasks if an E_ERROR didn't occur. + $err = error_get_last(); + if (!$err || ($err['type'] ^ E_ERROR)) { + $this->run(); + } + } + }); + } + } + + public function isEmpty(): bool + { + return !$this->queue; + } + + public function add(callable $task): void + { + $this->queue[] = $task; + } + + public function run(): void + { + while ($task = array_shift($this->queue)) { + /** @var callable $task */ + $task(); + } + } + + /** + * The task queue will be run and exhausted by default when the process + * exits IFF the exit is not the result of a PHP E_ERROR error. + * + * You can disable running the automatic shutdown of the queue by calling + * this function. If you disable the task queue shutdown process, then you + * MUST either run the task queue (as a result of running your event loop + * or manually using the run() method) or wait on each outstanding promise. + * + * Note: This shutdown will occur before any destructors are triggered. + */ + public function disableShutdown(): void + { + $this->enableShutdown = false; + } +} diff --git a/vendor/guzzlehttp/promises/src/TaskQueueInterface.php b/vendor/guzzlehttp/promises/src/TaskQueueInterface.php new file mode 100644 index 000000000..34c561a48 --- /dev/null +++ b/vendor/guzzlehttp/promises/src/TaskQueueInterface.php @@ -0,0 +1,24 @@ + + * while ($eventLoop->isRunning()) { + * GuzzleHttp\Promise\Utils::queue()->run(); + * } + * + * + * @param TaskQueueInterface|null $assign Optionally specify a new queue instance. + */ + public static function queue(TaskQueueInterface $assign = null): TaskQueueInterface + { + static $queue; + + if ($assign) { + $queue = $assign; + } elseif (!$queue) { + $queue = new TaskQueue(); + } + + return $queue; + } + + /** + * Adds a function to run in the task queue when it is next `run()` and + * returns a promise that is fulfilled or rejected with the result. + * + * @param callable $task Task function to run. + */ + public static function task(callable $task): PromiseInterface + { + $queue = self::queue(); + $promise = new Promise([$queue, 'run']); + $queue->add(function () use ($task, $promise): void { + try { + if (Is::pending($promise)) { + $promise->resolve($task()); + } + } catch (\Throwable $e) { + $promise->reject($e); + } + }); + + return $promise; + } + + /** + * Synchronously waits on a promise to resolve and returns an inspection + * state array. + * + * Returns a state associative array containing a "state" key mapping to a + * valid promise state. If the state of the promise is "fulfilled", the + * array will contain a "value" key mapping to the fulfilled value of the + * promise. If the promise is rejected, the array will contain a "reason" + * key mapping to the rejection reason of the promise. + * + * @param PromiseInterface $promise Promise or value. + */ + public static function inspect(PromiseInterface $promise): array + { + try { + return [ + 'state' => PromiseInterface::FULFILLED, + 'value' => $promise->wait(), + ]; + } catch (RejectionException $e) { + return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()]; + } catch (\Throwable $e) { + return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; + } + } + + /** + * Waits on all of the provided promises, but does not unwrap rejected + * promises as thrown exception. + * + * Returns an array of inspection state arrays. + * + * @see inspect for the inspection state array format. + * + * @param PromiseInterface[] $promises Traversable of promises to wait upon. + */ + public static function inspectAll($promises): array + { + $results = []; + foreach ($promises as $key => $promise) { + $results[$key] = self::inspect($promise); + } + + return $results; + } + + /** + * Waits on all of the provided promises and returns the fulfilled values. + * + * Returns an array that contains the value of each promise (in the same + * order the promises were provided). An exception is thrown if any of the + * promises are rejected. + * + * @param iterable $promises Iterable of PromiseInterface objects to wait on. + * + * @throws \Throwable on error + */ + public static function unwrap($promises): array + { + $results = []; + foreach ($promises as $key => $promise) { + $results[$key] = $promise->wait(); + } + + return $results; + } + + /** + * Given an array of promises, return a promise that is fulfilled when all + * the items in the array are fulfilled. + * + * The promise's fulfillment value is an array with fulfillment values at + * respective positions to the original array. If any promise in the array + * rejects, the returned promise is rejected with the rejection reason. + * + * @param mixed $promises Promises or values. + * @param bool $recursive If true, resolves new promises that might have been added to the stack during its own resolution. + */ + public static function all($promises, bool $recursive = false): PromiseInterface + { + $results = []; + $promise = Each::of( + $promises, + function ($value, $idx) use (&$results): void { + $results[$idx] = $value; + }, + function ($reason, $idx, Promise $aggregate): void { + $aggregate->reject($reason); + } + )->then(function () use (&$results) { + ksort($results); + + return $results; + }); + + if (true === $recursive) { + $promise = $promise->then(function ($results) use ($recursive, &$promises) { + foreach ($promises as $promise) { + if (Is::pending($promise)) { + return self::all($promises, $recursive); + } + } + + return $results; + }); + } + + return $promise; + } + + /** + * Initiate a competitive race between multiple promises or values (values + * will become immediately fulfilled promises). + * + * When count amount of promises have been fulfilled, the returned promise + * is fulfilled with an array that contains the fulfillment values of the + * winners in order of resolution. + * + * This promise is rejected with a {@see AggregateException} if the number + * of fulfilled promises is less than the desired $count. + * + * @param int $count Total number of promises. + * @param mixed $promises Promises or values. + */ + public static function some(int $count, $promises): PromiseInterface + { + $results = []; + $rejections = []; + + return Each::of( + $promises, + function ($value, $idx, PromiseInterface $p) use (&$results, $count): void { + if (Is::settled($p)) { + return; + } + $results[$idx] = $value; + if (count($results) >= $count) { + $p->resolve(null); + } + }, + function ($reason) use (&$rejections): void { + $rejections[] = $reason; + } + )->then( + function () use (&$results, &$rejections, $count) { + if (count($results) !== $count) { + throw new AggregateException( + 'Not enough promises to fulfill count', + $rejections + ); + } + ksort($results); + + return array_values($results); + } + ); + } + + /** + * Like some(), with 1 as count. However, if the promise fulfills, the + * fulfillment value is not an array of 1 but the value directly. + * + * @param mixed $promises Promises or values. + */ + public static function any($promises): PromiseInterface + { + return self::some(1, $promises)->then(function ($values) { + return $values[0]; + }); + } + + /** + * Returns a promise that is fulfilled when all of the provided promises have + * been fulfilled or rejected. + * + * The returned promise is fulfilled with an array of inspection state arrays. + * + * @see inspect for the inspection state array format. + * + * @param mixed $promises Promises or values. + */ + public static function settle($promises): PromiseInterface + { + $results = []; + + return Each::of( + $promises, + function ($value, $idx) use (&$results): void { + $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value]; + }, + function ($reason, $idx) use (&$results): void { + $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason]; + } + )->then(function () use (&$results) { + ksort($results); + + return $results; + }); + } +} diff --git a/vendor/guzzlehttp/psr7/CHANGELOG.md b/vendor/guzzlehttp/psr7/CHANGELOG.md new file mode 100644 index 000000000..d897feedd --- /dev/null +++ b/vendor/guzzlehttp/psr7/CHANGELOG.md @@ -0,0 +1,437 @@ +# Change Log + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## 2.6.1 - 2023-08-27 + +### Fixed + +- Properly handle the fact that PHP transforms numeric strings in array keys to ints + +## 2.6.0 - 2023-08-03 + +### Changed + +- Updated the mime type map to add some new entries, fix a couple of invalid entries, and remove an invalid entry +- Fallback to `application/octet-stream` if we are unable to guess the content type for a multipart file upload + +## 2.5.1 - 2023-08-03 + +### Fixed + +- Corrected mime type for `.acc` files to `audio/aac` + +### Changed + +- PHP 8.3 support + +## 2.5.0 - 2023-04-17 + +### Changed + +- Adjusted `psr/http-message` version constraint to `^1.1 || ^2.0` + +## 2.4.5 - 2023-04-17 + +### Fixed + +- Prevent possible warnings on unset variables in `ServerRequest::normalizeNestedFileSpec` +- Fixed `Message::bodySummary` when `preg_match` fails +- Fixed header validation issue + +## 2.4.4 - 2023-03-09 + +### Changed + +- Removed the need for `AllowDynamicProperties` in `LazyOpenStream` + +## 2.4.3 - 2022-10-26 + +### Changed + +- Replaced `sha1(uniqid())` by `bin2hex(random_bytes(20))` + +## 2.4.2 - 2022-10-25 + +### Fixed + +- Fixed erroneous behaviour when combining host and relative path + +## 2.4.1 - 2022-08-28 + +### Fixed + +- Rewind body before reading in `Message::bodySummary` + +## 2.4.0 - 2022-06-20 + +### Added + +- Added provisional PHP 8.2 support +- Added `UriComparator::isCrossOrigin` method + +## 2.3.0 - 2022-06-09 + +### Fixed + +- Added `Header::splitList` method +- Added `Utils::tryGetContents` method +- Improved `Stream::getContents` method +- Updated mimetype mappings + +## 2.2.2 - 2022-06-08 + +### Fixed + +- Fix `Message::parseRequestUri` for numeric headers +- Re-wrap exceptions thrown in `fread` into runtime exceptions +- Throw an exception when multipart options is misformatted + +## 2.2.1 - 2022-03-20 + +### Fixed + +- Correct header value validation + +## 2.2.0 - 2022-03-20 + +### Added + +- A more compressive list of mime types +- Add JsonSerializable to Uri +- Missing return types + +### Fixed + +- Bug MultipartStream no `uri` metadata +- Bug MultipartStream with filename for `data://` streams +- Fixed new line handling in MultipartStream +- Reduced RAM usage when copying streams +- Updated parsing in `Header::normalize()` + +## 2.1.1 - 2022-03-20 + +### Fixed + +- Validate header values properly + +## 2.1.0 - 2021-10-06 + +### Changed + +- Attempting to create a `Uri` object from a malformed URI will no longer throw a generic + `InvalidArgumentException`, but rather a `MalformedUriException`, which inherits from the former + for backwards compatibility. Callers relying on the exception being thrown to detect invalid + URIs should catch the new exception. + +### Fixed + +- Return `null` in caching stream size if remote size is `null` + +## 2.0.0 - 2021-06-30 + +Identical to the RC release. + +## 2.0.0@RC-1 - 2021-04-29 + +### Fixed + +- Handle possibly unset `url` in `stream_get_meta_data` + +## 2.0.0@beta-1 - 2021-03-21 + +### Added + +- PSR-17 factories +- Made classes final +- PHP7 type hints + +### Changed + +- When building a query string, booleans are represented as 1 and 0. + +### Removed + +- PHP < 7.2 support +- All functions in the `GuzzleHttp\Psr7` namespace + +## 1.8.1 - 2021-03-21 + +### Fixed + +- Issue parsing IPv6 URLs +- Issue modifying ServerRequest lost all its attributes + +## 1.8.0 - 2021-03-21 + +### Added + +- Locale independent URL parsing +- Most classes got a `@final` annotation to prepare for 2.0 + +### Fixed + +- Issue when creating stream from `php://input` and curl-ext is not installed +- Broken `Utils::tryFopen()` on PHP 8 + +## 1.7.0 - 2020-09-30 + +### Added + +- Replaced functions by static methods + +### Fixed + +- Converting a non-seekable stream to a string +- Handle multiple Set-Cookie correctly +- Ignore array keys in header values when merging +- Allow multibyte characters to be parsed in `Message:bodySummary()` + +### Changed + +- Restored partial HHVM 3 support + + +## [1.6.1] - 2019-07-02 + +### Fixed + +- Accept null and bool header values again + + +## [1.6.0] - 2019-06-30 + +### Added + +- Allowed version `^3.0` of `ralouphie/getallheaders` dependency (#244) +- Added MIME type for WEBP image format (#246) +- Added more validation of values according to PSR-7 and RFC standards, e.g. status code range (#250, #272) + +### Changed + +- Tests don't pass with HHVM 4.0, so HHVM support got dropped. Other libraries like composer have done the same. (#262) +- Accept port number 0 to be valid (#270) + +### Fixed + +- Fixed subsequent reads from `php://input` in ServerRequest (#247) +- Fixed readable/writable detection for certain stream modes (#248) +- Fixed encoding of special characters in the `userInfo` component of an URI (#253) + + +## [1.5.2] - 2018-12-04 + +### Fixed + +- Check body size when getting the message summary + + +## [1.5.1] - 2018-12-04 + +### Fixed + +- Get the summary of a body only if it is readable + + +## [1.5.0] - 2018-12-03 + +### Added + +- Response first-line to response string exception (fixes #145) +- A test for #129 behavior +- `get_message_body_summary` function in order to get the message summary +- `3gp` and `mkv` mime types + +### Changed + +- Clarify exception message when stream is detached + +### Deprecated + +- Deprecated parsing folded header lines as per RFC 7230 + +### Fixed + +- Fix `AppendStream::detach` to not close streams +- `InflateStream` preserves `isSeekable` attribute of the underlying stream +- `ServerRequest::getUriFromGlobals` to support URLs in query parameters + + +Several other fixes and improvements. + + +## [1.4.2] - 2017-03-20 + +### Fixed + +- Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing + calls to `trigger_error` when deprecated methods are invoked. + + +## [1.4.1] - 2017-02-27 + +### Added + +- Rriggering of silenced deprecation warnings. + +### Fixed + +- Reverted BC break by reintroducing behavior to automagically fix a URI with a + relative path and an authority by adding a leading slash to the path. It's only + deprecated now. + + +## [1.4.0] - 2017-02-21 + +### Added + +- Added common URI utility methods based on RFC 3986 (see documentation in the readme): + - `Uri::isDefaultPort` + - `Uri::isAbsolute` + - `Uri::isNetworkPathReference` + - `Uri::isAbsolutePathReference` + - `Uri::isRelativePathReference` + - `Uri::isSameDocumentReference` + - `Uri::composeComponents` + - `UriNormalizer::normalize` + - `UriNormalizer::isEquivalent` + - `UriResolver::relativize` + +### Changed + +- Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form. +- Allow `parse_response` to parse a response without delimiting space and reason. +- Ensure each URI modification results in a valid URI according to PSR-7 discussions. + Invalid modifications will throw an exception instead of returning a wrong URI or + doing some magic. + - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception + because the path of a URI with an authority must start with a slash "/" or be empty + - `(new Uri())->withScheme('http')` will return `'http://localhost'` + +### Deprecated + +- `Uri::resolve` in favor of `UriResolver::resolve` +- `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments` + +### Fixed + +- `Stream::read` when length parameter <= 0. +- `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory. +- `ServerRequest::getUriFromGlobals` when `Host` header contains port. +- Compatibility of URIs with `file` scheme and empty host. + + +## [1.3.1] - 2016-06-25 + +### Fixed + +- `Uri::__toString` for network path references, e.g. `//example.org`. +- Missing lowercase normalization for host. +- Handling of URI components in case they are `'0'` in a lot of places, + e.g. as a user info password. +- `Uri::withAddedHeader` to correctly merge headers with different case. +- Trimming of header values in `Uri::withAddedHeader`. Header values may + be surrounded by whitespace which should be ignored according to RFC 7230 + Section 3.2.4. This does not apply to header names. +- `Uri::withAddedHeader` with an array of header values. +- `Uri::resolve` when base path has no slash and handling of fragment. +- Handling of encoding in `Uri::with(out)QueryValue` so one can pass the + key/value both in encoded as well as decoded form to those methods. This is + consistent with withPath, withQuery etc. +- `ServerRequest::withoutAttribute` when attribute value is null. + + +## [1.3.0] - 2016-04-13 + +### Added + +- Remaining interfaces needed for full PSR7 compatibility + (ServerRequestInterface, UploadedFileInterface, etc.). +- Support for stream_for from scalars. + +### Changed + +- Can now extend Uri. + +### Fixed +- A bug in validating request methods by making it more permissive. + + +## [1.2.3] - 2016-02-18 + +### Fixed + +- Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote + streams, which can sometimes return fewer bytes than requested with `fread`. +- Handling of gzipped responses with FNAME headers. + + +## [1.2.2] - 2016-01-22 + +### Added + +- Support for URIs without any authority. +- Support for HTTP 451 'Unavailable For Legal Reasons.' +- Support for using '0' as a filename. +- Support for including non-standard ports in Host headers. + + +## [1.2.1] - 2015-11-02 + +### Changes + +- Now supporting negative offsets when seeking to SEEK_END. + + +## [1.2.0] - 2015-08-15 + +### Changed + +- Body as `"0"` is now properly added to a response. +- Now allowing forward seeking in CachingStream. +- Now properly parsing HTTP requests that contain proxy targets in + `parse_request`. +- functions.php is now conditionally required. +- user-info is no longer dropped when resolving URIs. + + +## [1.1.0] - 2015-06-24 + +### Changed + +- URIs can now be relative. +- `multipart/form-data` headers are now overridden case-insensitively. +- URI paths no longer encode the following characters because they are allowed + in URIs: "(", ")", "*", "!", "'" +- A port is no longer added to a URI when the scheme is missing and no port is + present. + + +## 1.0.0 - 2015-05-19 + +Initial release. + +Currently unsupported: + +- `Psr\Http\Message\ServerRequestInterface` +- `Psr\Http\Message\UploadedFileInterface` + + + +[1.6.0]: https://github.com/guzzle/psr7/compare/1.5.2...1.6.0 +[1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2 +[1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1 +[1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0 +[1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2 +[1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1 +[1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0 +[1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1 +[1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0 +[1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3 +[1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2 +[1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1 +[1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0 +[1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0 diff --git a/vendor/guzzlehttp/psr7/LICENSE b/vendor/guzzlehttp/psr7/LICENSE new file mode 100644 index 000000000..51c7ec81c --- /dev/null +++ b/vendor/guzzlehttp/psr7/LICENSE @@ -0,0 +1,26 @@ +The MIT License (MIT) + +Copyright (c) 2015 Michael Dowling +Copyright (c) 2015 Márk Sági-Kazár +Copyright (c) 2015 Graham Campbell +Copyright (c) 2016 Tobias Schultze +Copyright (c) 2016 George Mponos +Copyright (c) 2018 Tobias Nyholm + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/guzzlehttp/psr7/README.md b/vendor/guzzlehttp/psr7/README.md new file mode 100644 index 000000000..a64ec9046 --- /dev/null +++ b/vendor/guzzlehttp/psr7/README.md @@ -0,0 +1,880 @@ +# PSR-7 Message Implementation + +This repository contains a full [PSR-7](https://www.php-fig.org/psr/psr-7/) +message implementation, several stream decorators, and some helpful +functionality like query string parsing. + +![CI](https://github.com/guzzle/psr7/workflows/CI/badge.svg) +![Static analysis](https://github.com/guzzle/psr7/workflows/Static%20analysis/badge.svg) + + +## Features + +This package comes with a number of stream implementations and stream +decorators. + + +## Installation + +```shell +composer require guzzlehttp/psr7 +``` + +## Version Guidance + +| Version | Status | PHP Version | +|---------|---------------------|--------------| +| 1.x | Security fixes only | >=5.4,<8.1 | +| 2.x | Latest | >=7.2.5,<8.4 | + + +## AppendStream + +`GuzzleHttp\Psr7\AppendStream` + +Reads from multiple streams, one after the other. + +```php +use GuzzleHttp\Psr7; + +$a = Psr7\Utils::streamFor('abc, '); +$b = Psr7\Utils::streamFor('123.'); +$composed = new Psr7\AppendStream([$a, $b]); + +$composed->addStream(Psr7\Utils::streamFor(' Above all listen to me')); + +echo $composed; // abc, 123. Above all listen to me. +``` + + +## BufferStream + +`GuzzleHttp\Psr7\BufferStream` + +Provides a buffer stream that can be written to fill a buffer, and read +from to remove bytes from the buffer. + +This stream returns a "hwm" metadata value that tells upstream consumers +what the configured high water mark of the stream is, or the maximum +preferred size of the buffer. + +```php +use GuzzleHttp\Psr7; + +// When more than 1024 bytes are in the buffer, it will begin returning +// false to writes. This is an indication that writers should slow down. +$buffer = new Psr7\BufferStream(1024); +``` + + +## CachingStream + +The CachingStream is used to allow seeking over previously read bytes on +non-seekable streams. This can be useful when transferring a non-seekable +entity body fails due to needing to rewind the stream (for example, resulting +from a redirect). Data that is read from the remote stream will be buffered in +a PHP temp stream so that previously read bytes are cached first in memory, +then on disk. + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor(fopen('http://www.google.com', 'r')); +$stream = new Psr7\CachingStream($original); + +$stream->read(1024); +echo $stream->tell(); +// 1024 + +$stream->seek(0); +echo $stream->tell(); +// 0 +``` + + +## DroppingStream + +`GuzzleHttp\Psr7\DroppingStream` + +Stream decorator that begins dropping data once the size of the underlying +stream becomes too full. + +```php +use GuzzleHttp\Psr7; + +// Create an empty stream +$stream = Psr7\Utils::streamFor(); + +// Start dropping data when the stream has more than 10 bytes +$dropping = new Psr7\DroppingStream($stream, 10); + +$dropping->write('01234567890123456789'); +echo $stream; // 0123456789 +``` + + +## FnStream + +`GuzzleHttp\Psr7\FnStream` + +Compose stream implementations based on a hash of functions. + +Allows for easy testing and extension of a provided stream without needing +to create a concrete class for a simple extension point. + +```php + +use GuzzleHttp\Psr7; + +$stream = Psr7\Utils::streamFor('hi'); +$fnStream = Psr7\FnStream::decorate($stream, [ + 'rewind' => function () use ($stream) { + echo 'About to rewind - '; + $stream->rewind(); + echo 'rewound!'; + } +]); + +$fnStream->rewind(); +// Outputs: About to rewind - rewound! +``` + + +## InflateStream + +`GuzzleHttp\Psr7\InflateStream` + +Uses PHP's zlib.inflate filter to inflate zlib (HTTP deflate, RFC1950) or gzipped (RFC1952) content. + +This stream decorator converts the provided stream to a PHP stream resource, +then appends the zlib.inflate filter. The stream is then converted back +to a Guzzle stream resource to be used as a Guzzle stream. + + +## LazyOpenStream + +`GuzzleHttp\Psr7\LazyOpenStream` + +Lazily reads or writes to a file that is opened only after an IO operation +take place on the stream. + +```php +use GuzzleHttp\Psr7; + +$stream = new Psr7\LazyOpenStream('/path/to/file', 'r'); +// The file has not yet been opened... + +echo $stream->read(10); +// The file is opened and read from only when needed. +``` + + +## LimitStream + +`GuzzleHttp\Psr7\LimitStream` + +LimitStream can be used to read a subset or slice of an existing stream object. +This can be useful for breaking a large file into smaller pieces to be sent in +chunks (e.g. Amazon S3's multipart upload API). + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor(fopen('/tmp/test.txt', 'r+')); +echo $original->getSize(); +// >>> 1048576 + +// Limit the size of the body to 1024 bytes and start reading from byte 2048 +$stream = new Psr7\LimitStream($original, 1024, 2048); +echo $stream->getSize(); +// >>> 1024 +echo $stream->tell(); +// >>> 0 +``` + + +## MultipartStream + +`GuzzleHttp\Psr7\MultipartStream` + +Stream that when read returns bytes for a streaming multipart or +multipart/form-data stream. + + +## NoSeekStream + +`GuzzleHttp\Psr7\NoSeekStream` + +NoSeekStream wraps a stream and does not allow seeking. + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor('foo'); +$noSeek = new Psr7\NoSeekStream($original); + +echo $noSeek->read(3); +// foo +var_export($noSeek->isSeekable()); +// false +$noSeek->seek(0); +var_export($noSeek->read(3)); +// NULL +``` + + +## PumpStream + +`GuzzleHttp\Psr7\PumpStream` + +Provides a read only stream that pumps data from a PHP callable. + +When invoking the provided callable, the PumpStream will pass the amount of +data requested to read to the callable. The callable can choose to ignore +this value and return fewer or more bytes than requested. Any extra data +returned by the provided callable is buffered internally until drained using +the read() function of the PumpStream. The provided callable MUST return +false when there is no more data to read. + + +## Implementing stream decorators + +Creating a stream decorator is very easy thanks to the +`GuzzleHttp\Psr7\StreamDecoratorTrait`. This trait provides methods that +implement `Psr\Http\Message\StreamInterface` by proxying to an underlying +stream. Just `use` the `StreamDecoratorTrait` and implement your custom +methods. + +For example, let's say we wanted to call a specific function each time the last +byte is read from a stream. This could be implemented by overriding the +`read()` method. + +```php +use Psr\Http\Message\StreamInterface; +use GuzzleHttp\Psr7\StreamDecoratorTrait; + +class EofCallbackStream implements StreamInterface +{ + use StreamDecoratorTrait; + + private $callback; + + private $stream; + + public function __construct(StreamInterface $stream, callable $cb) + { + $this->stream = $stream; + $this->callback = $cb; + } + + public function read($length) + { + $result = $this->stream->read($length); + + // Invoke the callback when EOF is hit. + if ($this->eof()) { + call_user_func($this->callback); + } + + return $result; + } +} +``` + +This decorator could be added to any existing stream and used like so: + +```php +use GuzzleHttp\Psr7; + +$original = Psr7\Utils::streamFor('foo'); + +$eofStream = new EofCallbackStream($original, function () { + echo 'EOF!'; +}); + +$eofStream->read(2); +$eofStream->read(1); +// echoes "EOF!" +$eofStream->seek(0); +$eofStream->read(3); +// echoes "EOF!" +``` + + +## PHP StreamWrapper + +You can use the `GuzzleHttp\Psr7\StreamWrapper` class if you need to use a +PSR-7 stream as a PHP stream resource. + +Use the `GuzzleHttp\Psr7\StreamWrapper::getResource()` method to create a PHP +stream from a PSR-7 stream. + +```php +use GuzzleHttp\Psr7\StreamWrapper; + +$stream = GuzzleHttp\Psr7\Utils::streamFor('hello!'); +$resource = StreamWrapper::getResource($stream); +echo fread($resource, 6); // outputs hello! +``` + + +# Static API + +There are various static methods available under the `GuzzleHttp\Psr7` namespace. + + +## `GuzzleHttp\Psr7\Message::toString` + +`public static function toString(MessageInterface $message): string` + +Returns the string representation of an HTTP message. + +```php +$request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com'); +echo GuzzleHttp\Psr7\Message::toString($request); +``` + + +## `GuzzleHttp\Psr7\Message::bodySummary` + +`public static function bodySummary(MessageInterface $message, int $truncateAt = 120): string|null` + +Get a short summary of the message body. + +Will return `null` if the response is not printable. + + +## `GuzzleHttp\Psr7\Message::rewindBody` + +`public static function rewindBody(MessageInterface $message): void` + +Attempts to rewind a message body and throws an exception on failure. + +The body of the message will only be rewound if a call to `tell()` +returns a value other than `0`. + + +## `GuzzleHttp\Psr7\Message::parseMessage` + +`public static function parseMessage(string $message): array` + +Parses an HTTP message into an associative array. + +The array contains the "start-line" key containing the start line of +the message, "headers" key containing an associative array of header +array values, and a "body" key containing the body of the message. + + +## `GuzzleHttp\Psr7\Message::parseRequestUri` + +`public static function parseRequestUri(string $path, array $headers): string` + +Constructs a URI for an HTTP request message. + + +## `GuzzleHttp\Psr7\Message::parseRequest` + +`public static function parseRequest(string $message): Request` + +Parses a request message string into a request object. + + +## `GuzzleHttp\Psr7\Message::parseResponse` + +`public static function parseResponse(string $message): Response` + +Parses a response message string into a response object. + + +## `GuzzleHttp\Psr7\Header::parse` + +`public static function parse(string|array $header): array` + +Parse an array of header values containing ";" separated data into an +array of associative arrays representing the header key value pair data +of the header. When a parameter does not contain a value, but just +contains a key, this function will inject a key with a '' string value. + + +## `GuzzleHttp\Psr7\Header::splitList` + +`public static function splitList(string|string[] $header): string[]` + +Splits a HTTP header defined to contain a comma-separated list into +each individual value: + +``` +$knownEtags = Header::splitList($request->getHeader('if-none-match')); +``` + +Example headers include `accept`, `cache-control` and `if-none-match`. + + +## `GuzzleHttp\Psr7\Header::normalize` (deprecated) + +`public static function normalize(string|array $header): array` + +`Header::normalize()` is deprecated in favor of [`Header::splitList()`](README.md#guzzlehttppsr7headersplitlist) +which performs the same operation with a cleaned up API and improved +documentation. + +Converts an array of header values that may contain comma separated +headers into an array of headers with no comma separated values. + + +## `GuzzleHttp\Psr7\Query::parse` + +`public static function parse(string $str, int|bool $urlEncoding = true): array` + +Parse a query string into an associative array. + +If multiple values are found for the same key, the value of that key +value pair will become an array. This function does not parse nested +PHP style arrays into an associative array (e.g., `foo[a]=1&foo[b]=2` +will be parsed into `['foo[a]' => '1', 'foo[b]' => '2'])`. + + +## `GuzzleHttp\Psr7\Query::build` + +`public static function build(array $params, int|false $encoding = PHP_QUERY_RFC3986): string` + +Build a query string from an array of key value pairs. + +This function can use the return value of `parse()` to build a query +string. This function does not modify the provided keys when an array is +encountered (like `http_build_query()` would). + + +## `GuzzleHttp\Psr7\Utils::caselessRemove` + +`public static function caselessRemove(iterable $keys, $keys, array $data): array` + +Remove the items given by the keys, case insensitively from the data. + + +## `GuzzleHttp\Psr7\Utils::copyToStream` + +`public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = -1): void` + +Copy the contents of a stream into another stream until the given number +of bytes have been read. + + +## `GuzzleHttp\Psr7\Utils::copyToString` + +`public static function copyToString(StreamInterface $stream, int $maxLen = -1): string` + +Copy the contents of a stream into a string until the given number of +bytes have been read. + + +## `GuzzleHttp\Psr7\Utils::hash` + +`public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string` + +Calculate a hash of a stream. + +This method reads the entire stream to calculate a rolling hash, based on +PHP's `hash_init` functions. + + +## `GuzzleHttp\Psr7\Utils::modifyRequest` + +`public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface` + +Clone and modify a request with the given changes. + +This method is useful for reducing the number of clones needed to mutate +a message. + +- method: (string) Changes the HTTP method. +- set_headers: (array) Sets the given headers. +- remove_headers: (array) Remove the given headers. +- body: (mixed) Sets the given body. +- uri: (UriInterface) Set the URI. +- query: (string) Set the query string value of the URI. +- version: (string) Set the protocol version. + + +## `GuzzleHttp\Psr7\Utils::readLine` + +`public static function readLine(StreamInterface $stream, int $maxLength = null): string` + +Read a line from the stream up to the maximum allowed buffer length. + + +## `GuzzleHttp\Psr7\Utils::streamFor` + +`public static function streamFor(resource|string|null|int|float|bool|StreamInterface|callable|\Iterator $resource = '', array $options = []): StreamInterface` + +Create a new stream based on the input type. + +Options is an associative array that can contain the following keys: + +- metadata: Array of custom metadata. +- size: Size of the stream. + +This method accepts the following `$resource` types: + +- `Psr\Http\Message\StreamInterface`: Returns the value as-is. +- `string`: Creates a stream object that uses the given string as the contents. +- `resource`: Creates a stream object that wraps the given PHP stream resource. +- `Iterator`: If the provided value implements `Iterator`, then a read-only + stream object will be created that wraps the given iterable. Each time the + stream is read from, data from the iterator will fill a buffer and will be + continuously called until the buffer is equal to the requested read size. + Subsequent read calls will first read from the buffer and then call `next` + on the underlying iterator until it is exhausted. +- `object` with `__toString()`: If the object has the `__toString()` method, + the object will be cast to a string and then a stream will be returned that + uses the string value. +- `NULL`: When `null` is passed, an empty stream object is returned. +- `callable` When a callable is passed, a read-only stream object will be + created that invokes the given callable. The callable is invoked with the + number of suggested bytes to read. The callable can return any number of + bytes, but MUST return `false` when there is no more data to return. The + stream object that wraps the callable will invoke the callable until the + number of requested bytes are available. Any additional bytes will be + buffered and used in subsequent reads. + +```php +$stream = GuzzleHttp\Psr7\Utils::streamFor('foo'); +$stream = GuzzleHttp\Psr7\Utils::streamFor(fopen('/path/to/file', 'r')); + +$generator = function ($bytes) { + for ($i = 0; $i < $bytes; $i++) { + yield ' '; + } +} + +$stream = GuzzleHttp\Psr7\Utils::streamFor($generator(100)); +``` + + +## `GuzzleHttp\Psr7\Utils::tryFopen` + +`public static function tryFopen(string $filename, string $mode): resource` + +Safely opens a PHP stream resource using a filename. + +When fopen fails, PHP normally raises a warning. This function adds an +error handler that checks for errors and throws an exception instead. + + +## `GuzzleHttp\Psr7\Utils::tryGetContents` + +`public static function tryGetContents(resource $stream): string` + +Safely gets the contents of a given stream. + +When stream_get_contents fails, PHP normally raises a warning. This +function adds an error handler that checks for errors and throws an +exception instead. + + +## `GuzzleHttp\Psr7\Utils::uriFor` + +`public static function uriFor(string|UriInterface $uri): UriInterface` + +Returns a UriInterface for the given value. + +This function accepts a string or UriInterface and returns a +UriInterface for the given value. If the value is already a +UriInterface, it is returned as-is. + + +## `GuzzleHttp\Psr7\MimeType::fromFilename` + +`public static function fromFilename(string $filename): string|null` + +Determines the mimetype of a file by looking at its extension. + + +## `GuzzleHttp\Psr7\MimeType::fromExtension` + +`public static function fromExtension(string $extension): string|null` + +Maps a file extensions to a mimetype. + + +## Upgrading from Function API + +The static API was first introduced in 1.7.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API was removed in 2.0.0. A migration table has been provided here for your convenience: + +| Original Function | Replacement Method | +|----------------|----------------| +| `str` | `Message::toString` | +| `uri_for` | `Utils::uriFor` | +| `stream_for` | `Utils::streamFor` | +| `parse_header` | `Header::parse` | +| `normalize_header` | `Header::normalize` | +| `modify_request` | `Utils::modifyRequest` | +| `rewind_body` | `Message::rewindBody` | +| `try_fopen` | `Utils::tryFopen` | +| `copy_to_string` | `Utils::copyToString` | +| `copy_to_stream` | `Utils::copyToStream` | +| `hash` | `Utils::hash` | +| `readline` | `Utils::readLine` | +| `parse_request` | `Message::parseRequest` | +| `parse_response` | `Message::parseResponse` | +| `parse_query` | `Query::parse` | +| `build_query` | `Query::build` | +| `mimetype_from_filename` | `MimeType::fromFilename` | +| `mimetype_from_extension` | `MimeType::fromExtension` | +| `_parse_message` | `Message::parseMessage` | +| `_parse_request_uri` | `Message::parseRequestUri` | +| `get_message_body_summary` | `Message::bodySummary` | +| `_caseless_remove` | `Utils::caselessRemove` | + + +# Additional URI Methods + +Aside from the standard `Psr\Http\Message\UriInterface` implementation in form of the `GuzzleHttp\Psr7\Uri` class, +this library also provides additional functionality when working with URIs as static methods. + +## URI Types + +An instance of `Psr\Http\Message\UriInterface` can either be an absolute URI or a relative reference. +An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI, +the base URI. Relative references can be divided into several forms according to +[RFC 3986 Section 4.2](https://tools.ietf.org/html/rfc3986#section-4.2): + +- network-path references, e.g. `//example.com/path` +- absolute-path references, e.g. `/path` +- relative-path references, e.g. `subpath` + +The following methods can be used to identify the type of the URI. + +### `GuzzleHttp\Psr7\Uri::isAbsolute` + +`public static function isAbsolute(UriInterface $uri): bool` + +Whether the URI is absolute, i.e. it has a scheme. + +### `GuzzleHttp\Psr7\Uri::isNetworkPathReference` + +`public static function isNetworkPathReference(UriInterface $uri): bool` + +Whether the URI is a network-path reference. A relative reference that begins with two slash characters is +termed an network-path reference. + +### `GuzzleHttp\Psr7\Uri::isAbsolutePathReference` + +`public static function isAbsolutePathReference(UriInterface $uri): bool` + +Whether the URI is a absolute-path reference. A relative reference that begins with a single slash character is +termed an absolute-path reference. + +### `GuzzleHttp\Psr7\Uri::isRelativePathReference` + +`public static function isRelativePathReference(UriInterface $uri): bool` + +Whether the URI is a relative-path reference. A relative reference that does not begin with a slash character is +termed a relative-path reference. + +### `GuzzleHttp\Psr7\Uri::isSameDocumentReference` + +`public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool` + +Whether the URI is a same-document reference. A same-document reference refers to a URI that is, aside from its +fragment component, identical to the base URI. When no base URI is given, only an empty URI reference +(apart from its fragment) is considered a same-document reference. + +## URI Components + +Additional methods to work with URI components. + +### `GuzzleHttp\Psr7\Uri::isDefaultPort` + +`public static function isDefaultPort(UriInterface $uri): bool` + +Whether the URI has the default port of the current scheme. `Psr\Http\Message\UriInterface::getPort` may return null +or the standard port. This method can be used independently of the implementation. + +### `GuzzleHttp\Psr7\Uri::composeComponents` + +`public static function composeComponents($scheme, $authority, $path, $query, $fragment): string` + +Composes a URI reference string from its various components according to +[RFC 3986 Section 5.3](https://tools.ietf.org/html/rfc3986#section-5.3). Usually this method does not need to be called +manually but instead is used indirectly via `Psr\Http\Message\UriInterface::__toString`. + +### `GuzzleHttp\Psr7\Uri::fromParts` + +`public static function fromParts(array $parts): UriInterface` + +Creates a URI from a hash of [`parse_url`](https://www.php.net/manual/en/function.parse-url.php) components. + + +### `GuzzleHttp\Psr7\Uri::withQueryValue` + +`public static function withQueryValue(UriInterface $uri, $key, $value): UriInterface` + +Creates a new URI with a specific query string value. Any existing query string values that exactly match the +provided key are removed and replaced with the given key value pair. A value of null will set the query string +key without a value, e.g. "key" instead of "key=value". + +### `GuzzleHttp\Psr7\Uri::withQueryValues` + +`public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface` + +Creates a new URI with multiple query string values. It has the same behavior as `withQueryValue()` but for an +associative array of key => value. + +### `GuzzleHttp\Psr7\Uri::withoutQueryValue` + +`public static function withoutQueryValue(UriInterface $uri, $key): UriInterface` + +Creates a new URI with a specific query string value removed. Any existing query string values that exactly match the +provided key are removed. + +## Cross-Origin Detection + +`GuzzleHttp\Psr7\UriComparator` provides methods to determine if a modified URL should be considered cross-origin. + +### `GuzzleHttp\Psr7\UriComparator::isCrossOrigin` + +`public static function isCrossOrigin(UriInterface $original, UriInterface $modified): bool` + +Determines if a modified URL should be considered cross-origin with respect to an original URL. + +## Reference Resolution + +`GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base URI according +to [RFC 3986 Section 5](https://tools.ietf.org/html/rfc3986#section-5). This is for example also what web browsers +do when resolving a link in a website based on the current request URI. + +### `GuzzleHttp\Psr7\UriResolver::resolve` + +`public static function resolve(UriInterface $base, UriInterface $rel): UriInterface` + +Converts the relative URI into a new URI that is resolved against the base URI. + +### `GuzzleHttp\Psr7\UriResolver::removeDotSegments` + +`public static function removeDotSegments(string $path): string` + +Removes dot segments from a path and returns the new path according to +[RFC 3986 Section 5.2.4](https://tools.ietf.org/html/rfc3986#section-5.2.4). + +### `GuzzleHttp\Psr7\UriResolver::relativize` + +`public static function relativize(UriInterface $base, UriInterface $target): UriInterface` + +Returns the target URI as a relative reference from the base URI. This method is the counterpart to resolve(): + +```php +(string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) +``` + +One use-case is to use the current request URI as base URI and then generate relative links in your documents +to reduce the document size or offer self-contained downloadable document archives. + +```php +$base = new Uri('http://example.com/a/b/'); +echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. +echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. +echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. +echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. +``` + +## Normalization and Comparison + +`GuzzleHttp\Psr7\UriNormalizer` provides methods to normalize and compare URIs according to +[RFC 3986 Section 6](https://tools.ietf.org/html/rfc3986#section-6). + +### `GuzzleHttp\Psr7\UriNormalizer::normalize` + +`public static function normalize(UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS): UriInterface` + +Returns a normalized URI. The scheme and host component are already normalized to lowercase per PSR-7 UriInterface. +This methods adds additional normalizations that can be configured with the `$flags` parameter which is a bitmask +of normalizations to apply. The following normalizations are available: + +- `UriNormalizer::PRESERVING_NORMALIZATIONS` + + Default normalizations which only include the ones that preserve semantics. + +- `UriNormalizer::CAPITALIZE_PERCENT_ENCODING` + + All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized. + + Example: `http://example.org/a%c2%b1b` → `http://example.org/a%C2%B1b` + +- `UriNormalizer::DECODE_UNRESERVED_CHARACTERS` + + Decodes percent-encoded octets of unreserved characters. For consistency, percent-encoded octets in the ranges of + ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should + not be created by URI producers and, when found in a URI, should be decoded to their corresponding unreserved + characters by URI normalizers. + + Example: `http://example.org/%7Eusern%61me/` → `http://example.org/~username/` + +- `UriNormalizer::CONVERT_EMPTY_PATH` + + Converts the empty path to "/" for http and https URIs. + + Example: `http://example.org` → `http://example.org/` + +- `UriNormalizer::REMOVE_DEFAULT_HOST` + + Removes the default host of the given URI scheme from the URI. Only the "file" scheme defines the default host + "localhost". All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile` are equivalent according to + RFC 3986. + + Example: `file://localhost/myfile` → `file:///myfile` + +- `UriNormalizer::REMOVE_DEFAULT_PORT` + + Removes the default port of the given URI scheme from the URI. + + Example: `http://example.org:80/` → `http://example.org/` + +- `UriNormalizer::REMOVE_DOT_SEGMENTS` + + Removes unnecessary dot-segments. Dot-segments in relative-path references are not removed as it would + change the semantics of the URI reference. + + Example: `http://example.org/../a/b/../c/./d.html` → `http://example.org/a/c/d.html` + +- `UriNormalizer::REMOVE_DUPLICATE_SLASHES` + + Paths which include two or more adjacent slashes are converted to one. Webservers usually ignore duplicate slashes + and treat those URIs equivalent. But in theory those URIs do not need to be equivalent. So this normalization + may change the semantics. Encoded slashes (%2F) are not removed. + + Example: `http://example.org//foo///bar.html` → `http://example.org/foo/bar.html` + +- `UriNormalizer::SORT_QUERY_PARAMETERS` + + Sort query parameters with their values in alphabetical order. However, the order of parameters in a URI may be + significant (this is not defined by the standard). So this normalization is not safe and may change the semantics + of the URI. + + Example: `?lang=en&article=fred` → `?article=fred&lang=en` + +### `GuzzleHttp\Psr7\UriNormalizer::isEquivalent` + +`public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS): bool` + +Whether two URIs can be considered equivalent. Both URIs are normalized automatically before comparison with the given +`$normalizations` bitmask. The method also accepts relative URI references and returns true when they are equivalent. +This of course assumes they will be resolved against the same base URI. If this is not the case, determination of +equivalence or difference of relative references does not mean anything. + + +## Security + +If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/psr7/security/policy) for more information. + + +## License + +Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. + + +## For Enterprise + +Available as part of the Tidelift Subscription + +The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-psr7?utm_source=packagist-guzzlehttp-psr7&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/vendor/guzzlehttp/psr7/composer.json b/vendor/guzzlehttp/psr7/composer.json new file mode 100644 index 000000000..d51dd622e --- /dev/null +++ b/vendor/guzzlehttp/psr7/composer.json @@ -0,0 +1,93 @@ +{ + "name": "guzzlehttp/psr7", + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "request", + "response", + "message", + "stream", + "http", + "uri", + "url", + "psr-7" + ], + "license": "MIT", + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "GuzzleHttp\\Tests\\Psr7\\": "tests/" + } + }, + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "config": { + "allow-plugins": { + "bamarni/composer-bin-plugin": true + }, + "preferred-install": "dist", + "sort-packages": true + } +} diff --git a/vendor/guzzlehttp/psr7/src/AppendStream.php b/vendor/guzzlehttp/psr7/src/AppendStream.php new file mode 100644 index 000000000..ee8f37882 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/AppendStream.php @@ -0,0 +1,248 @@ +addStream($stream); + } + } + + public function __toString(): string + { + try { + $this->rewind(); + + return $this->getContents(); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + + return ''; + } + } + + /** + * Add a stream to the AppendStream + * + * @param StreamInterface $stream Stream to append. Must be readable. + * + * @throws \InvalidArgumentException if the stream is not readable + */ + public function addStream(StreamInterface $stream): void + { + if (!$stream->isReadable()) { + throw new \InvalidArgumentException('Each stream must be readable'); + } + + // The stream is only seekable if all streams are seekable + if (!$stream->isSeekable()) { + $this->seekable = false; + } + + $this->streams[] = $stream; + } + + public function getContents(): string + { + return Utils::copyToString($this); + } + + /** + * Closes each attached stream. + */ + public function close(): void + { + $this->pos = $this->current = 0; + $this->seekable = true; + + foreach ($this->streams as $stream) { + $stream->close(); + } + + $this->streams = []; + } + + /** + * Detaches each attached stream. + * + * Returns null as it's not clear which underlying stream resource to return. + */ + public function detach() + { + $this->pos = $this->current = 0; + $this->seekable = true; + + foreach ($this->streams as $stream) { + $stream->detach(); + } + + $this->streams = []; + + return null; + } + + public function tell(): int + { + return $this->pos; + } + + /** + * Tries to calculate the size by adding the size of each stream. + * + * If any of the streams do not return a valid number, then the size of the + * append stream cannot be determined and null is returned. + */ + public function getSize(): ?int + { + $size = 0; + + foreach ($this->streams as $stream) { + $s = $stream->getSize(); + if ($s === null) { + return null; + } + $size += $s; + } + + return $size; + } + + public function eof(): bool + { + return !$this->streams + || ($this->current >= count($this->streams) - 1 + && $this->streams[$this->current]->eof()); + } + + public function rewind(): void + { + $this->seek(0); + } + + /** + * Attempts to seek to the given position. Only supports SEEK_SET. + */ + public function seek($offset, $whence = SEEK_SET): void + { + if (!$this->seekable) { + throw new \RuntimeException('This AppendStream is not seekable'); + } elseif ($whence !== SEEK_SET) { + throw new \RuntimeException('The AppendStream can only seek with SEEK_SET'); + } + + $this->pos = $this->current = 0; + + // Rewind each stream + foreach ($this->streams as $i => $stream) { + try { + $stream->rewind(); + } catch (\Exception $e) { + throw new \RuntimeException('Unable to seek stream ' + .$i.' of the AppendStream', 0, $e); + } + } + + // Seek to the actual position by reading from each stream + while ($this->pos < $offset && !$this->eof()) { + $result = $this->read(min(8096, $offset - $this->pos)); + if ($result === '') { + break; + } + } + } + + /** + * Reads from all of the appended streams until the length is met or EOF. + */ + public function read($length): string + { + $buffer = ''; + $total = count($this->streams) - 1; + $remaining = $length; + $progressToNext = false; + + while ($remaining > 0) { + // Progress to the next stream if needed. + if ($progressToNext || $this->streams[$this->current]->eof()) { + $progressToNext = false; + if ($this->current === $total) { + break; + } + ++$this->current; + } + + $result = $this->streams[$this->current]->read($remaining); + + if ($result === '') { + $progressToNext = true; + continue; + } + + $buffer .= $result; + $remaining = $length - strlen($buffer); + } + + $this->pos += strlen($buffer); + + return $buffer; + } + + public function isReadable(): bool + { + return true; + } + + public function isWritable(): bool + { + return false; + } + + public function isSeekable(): bool + { + return $this->seekable; + } + + public function write($string): int + { + throw new \RuntimeException('Cannot write to an AppendStream'); + } + + /** + * @return mixed + */ + public function getMetadata($key = null) + { + return $key ? null : []; + } +} diff --git a/vendor/guzzlehttp/psr7/src/BufferStream.php b/vendor/guzzlehttp/psr7/src/BufferStream.php new file mode 100644 index 000000000..2b0eb77be --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/BufferStream.php @@ -0,0 +1,147 @@ +hwm = $hwm; + } + + public function __toString(): string + { + return $this->getContents(); + } + + public function getContents(): string + { + $buffer = $this->buffer; + $this->buffer = ''; + + return $buffer; + } + + public function close(): void + { + $this->buffer = ''; + } + + public function detach() + { + $this->close(); + + return null; + } + + public function getSize(): ?int + { + return strlen($this->buffer); + } + + public function isReadable(): bool + { + return true; + } + + public function isWritable(): bool + { + return true; + } + + public function isSeekable(): bool + { + return false; + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + throw new \RuntimeException('Cannot seek a BufferStream'); + } + + public function eof(): bool + { + return strlen($this->buffer) === 0; + } + + public function tell(): int + { + throw new \RuntimeException('Cannot determine the position of a BufferStream'); + } + + /** + * Reads data from the buffer. + */ + public function read($length): string + { + $currentLength = strlen($this->buffer); + + if ($length >= $currentLength) { + // No need to slice the buffer because we don't have enough data. + $result = $this->buffer; + $this->buffer = ''; + } else { + // Slice up the result to provide a subset of the buffer. + $result = substr($this->buffer, 0, $length); + $this->buffer = substr($this->buffer, $length); + } + + return $result; + } + + /** + * Writes data to the buffer. + */ + public function write($string): int + { + $this->buffer .= $string; + + if (strlen($this->buffer) >= $this->hwm) { + return 0; + } + + return strlen($string); + } + + /** + * @return mixed + */ + public function getMetadata($key = null) + { + if ($key === 'hwm') { + return $this->hwm; + } + + return $key ? null : []; + } +} diff --git a/vendor/guzzlehttp/psr7/src/CachingStream.php b/vendor/guzzlehttp/psr7/src/CachingStream.php new file mode 100644 index 000000000..f34722cff --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/CachingStream.php @@ -0,0 +1,153 @@ +remoteStream = $stream; + $this->stream = $target ?: new Stream(Utils::tryFopen('php://temp', 'r+')); + } + + public function getSize(): ?int + { + $remoteSize = $this->remoteStream->getSize(); + + if (null === $remoteSize) { + return null; + } + + return max($this->stream->getSize(), $remoteSize); + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + if ($whence === SEEK_SET) { + $byte = $offset; + } elseif ($whence === SEEK_CUR) { + $byte = $offset + $this->tell(); + } elseif ($whence === SEEK_END) { + $size = $this->remoteStream->getSize(); + if ($size === null) { + $size = $this->cacheEntireStream(); + } + $byte = $size + $offset; + } else { + throw new \InvalidArgumentException('Invalid whence'); + } + + $diff = $byte - $this->stream->getSize(); + + if ($diff > 0) { + // Read the remoteStream until we have read in at least the amount + // of bytes requested, or we reach the end of the file. + while ($diff > 0 && !$this->remoteStream->eof()) { + $this->read($diff); + $diff = $byte - $this->stream->getSize(); + } + } else { + // We can just do a normal seek since we've already seen this byte. + $this->stream->seek($byte); + } + } + + public function read($length): string + { + // Perform a regular read on any previously read data from the buffer + $data = $this->stream->read($length); + $remaining = $length - strlen($data); + + // More data was requested so read from the remote stream + if ($remaining) { + // If data was written to the buffer in a position that would have + // been filled from the remote stream, then we must skip bytes on + // the remote stream to emulate overwriting bytes from that + // position. This mimics the behavior of other PHP stream wrappers. + $remoteData = $this->remoteStream->read( + $remaining + $this->skipReadBytes + ); + + if ($this->skipReadBytes) { + $len = strlen($remoteData); + $remoteData = substr($remoteData, $this->skipReadBytes); + $this->skipReadBytes = max(0, $this->skipReadBytes - $len); + } + + $data .= $remoteData; + $this->stream->write($remoteData); + } + + return $data; + } + + public function write($string): int + { + // When appending to the end of the currently read stream, you'll want + // to skip bytes from being read from the remote stream to emulate + // other stream wrappers. Basically replacing bytes of data of a fixed + // length. + $overflow = (strlen($string) + $this->tell()) - $this->remoteStream->tell(); + if ($overflow > 0) { + $this->skipReadBytes += $overflow; + } + + return $this->stream->write($string); + } + + public function eof(): bool + { + return $this->stream->eof() && $this->remoteStream->eof(); + } + + /** + * Close both the remote stream and buffer stream + */ + public function close(): void + { + $this->remoteStream->close(); + $this->stream->close(); + } + + private function cacheEntireStream(): int + { + $target = new FnStream(['write' => 'strlen']); + Utils::copyToStream($this, $target); + + return $this->tell(); + } +} diff --git a/vendor/guzzlehttp/psr7/src/DroppingStream.php b/vendor/guzzlehttp/psr7/src/DroppingStream.php new file mode 100644 index 000000000..6e3d209d0 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/DroppingStream.php @@ -0,0 +1,49 @@ +stream = $stream; + $this->maxLength = $maxLength; + } + + public function write($string): int + { + $diff = $this->maxLength - $this->stream->getSize(); + + // Begin returning 0 when the underlying stream is too large. + if ($diff <= 0) { + return 0; + } + + // Write the stream or a subset of the stream if needed. + if (strlen($string) < $diff) { + return $this->stream->write($string); + } + + return $this->stream->write(substr($string, 0, $diff)); + } +} diff --git a/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php b/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php new file mode 100644 index 000000000..3a084779a --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php @@ -0,0 +1,14 @@ + */ + private $methods; + + /** + * @param array $methods Hash of method name to a callable. + */ + public function __construct(array $methods) + { + $this->methods = $methods; + + // Create the functions on the class + foreach ($methods as $name => $fn) { + $this->{'_fn_'.$name} = $fn; + } + } + + /** + * Lazily determine which methods are not implemented. + * + * @throws \BadMethodCallException + */ + public function __get(string $name): void + { + throw new \BadMethodCallException(str_replace('_fn_', '', $name) + .'() is not implemented in the FnStream'); + } + + /** + * The close method is called on the underlying stream only if possible. + */ + public function __destruct() + { + if (isset($this->_fn_close)) { + call_user_func($this->_fn_close); + } + } + + /** + * An unserialize would allow the __destruct to run when the unserialized value goes out of scope. + * + * @throws \LogicException + */ + public function __wakeup(): void + { + throw new \LogicException('FnStream should never be unserialized'); + } + + /** + * Adds custom functionality to an underlying stream by intercepting + * specific method calls. + * + * @param StreamInterface $stream Stream to decorate + * @param array $methods Hash of method name to a closure + * + * @return FnStream + */ + public static function decorate(StreamInterface $stream, array $methods) + { + // If any of the required methods were not provided, then simply + // proxy to the decorated stream. + foreach (array_diff(self::SLOTS, array_keys($methods)) as $diff) { + /** @var callable $callable */ + $callable = [$stream, $diff]; + $methods[$diff] = $callable; + } + + return new self($methods); + } + + public function __toString(): string + { + try { + return call_user_func($this->_fn___toString); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + + return ''; + } + } + + public function close(): void + { + call_user_func($this->_fn_close); + } + + public function detach() + { + return call_user_func($this->_fn_detach); + } + + public function getSize(): ?int + { + return call_user_func($this->_fn_getSize); + } + + public function tell(): int + { + return call_user_func($this->_fn_tell); + } + + public function eof(): bool + { + return call_user_func($this->_fn_eof); + } + + public function isSeekable(): bool + { + return call_user_func($this->_fn_isSeekable); + } + + public function rewind(): void + { + call_user_func($this->_fn_rewind); + } + + public function seek($offset, $whence = SEEK_SET): void + { + call_user_func($this->_fn_seek, $offset, $whence); + } + + public function isWritable(): bool + { + return call_user_func($this->_fn_isWritable); + } + + public function write($string): int + { + return call_user_func($this->_fn_write, $string); + } + + public function isReadable(): bool + { + return call_user_func($this->_fn_isReadable); + } + + public function read($length): string + { + return call_user_func($this->_fn_read, $length); + } + + public function getContents(): string + { + return call_user_func($this->_fn_getContents); + } + + /** + * @return mixed + */ + public function getMetadata($key = null) + { + return call_user_func($this->_fn_getMetadata, $key); + } +} diff --git a/vendor/guzzlehttp/psr7/src/Header.php b/vendor/guzzlehttp/psr7/src/Header.php new file mode 100644 index 000000000..6e38e0031 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Header.php @@ -0,0 +1,134 @@ +]+>|[^=]+/', $kvp, $matches)) { + $m = $matches[0]; + if (isset($m[1])) { + $part[trim($m[0], $trimmed)] = trim($m[1], $trimmed); + } else { + $part[] = trim($m[0], $trimmed); + } + } + } + if ($part) { + $params[] = $part; + } + } + } + + return $params; + } + + /** + * Converts an array of header values that may contain comma separated + * headers into an array of headers with no comma separated values. + * + * @param string|array $header Header to normalize. + * + * @deprecated Use self::splitList() instead. + */ + public static function normalize($header): array + { + $result = []; + foreach ((array) $header as $value) { + foreach (self::splitList($value) as $parsed) { + $result[] = $parsed; + } + } + + return $result; + } + + /** + * Splits a HTTP header defined to contain a comma-separated list into + * each individual value. Empty values will be removed. + * + * Example headers include 'accept', 'cache-control' and 'if-none-match'. + * + * This method must not be used to parse headers that are not defined as + * a list, such as 'user-agent' or 'set-cookie'. + * + * @param string|string[] $values Header value as returned by MessageInterface::getHeader() + * + * @return string[] + */ + public static function splitList($values): array + { + if (!\is_array($values)) { + $values = [$values]; + } + + $result = []; + foreach ($values as $value) { + if (!\is_string($value)) { + throw new \TypeError('$header must either be a string or an array containing strings.'); + } + + $v = ''; + $isQuoted = false; + $isEscaped = false; + for ($i = 0, $max = \strlen($value); $i < $max; ++$i) { + if ($isEscaped) { + $v .= $value[$i]; + $isEscaped = false; + + continue; + } + + if (!$isQuoted && $value[$i] === ',') { + $v = \trim($v); + if ($v !== '') { + $result[] = $v; + } + + $v = ''; + continue; + } + + if ($isQuoted && $value[$i] === '\\') { + $isEscaped = true; + $v .= $value[$i]; + + continue; + } + if ($value[$i] === '"') { + $isQuoted = !$isQuoted; + $v .= $value[$i]; + + continue; + } + + $v .= $value[$i]; + } + + $v = \trim($v); + if ($v !== '') { + $result[] = $v; + } + } + + return $result; + } +} diff --git a/vendor/guzzlehttp/psr7/src/HttpFactory.php b/vendor/guzzlehttp/psr7/src/HttpFactory.php new file mode 100644 index 000000000..73d17e337 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/HttpFactory.php @@ -0,0 +1,94 @@ +getSize(); + } + + return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType); + } + + public function createStream(string $content = ''): StreamInterface + { + return Utils::streamFor($content); + } + + public function createStreamFromFile(string $file, string $mode = 'r'): StreamInterface + { + try { + $resource = Utils::tryFopen($file, $mode); + } catch (\RuntimeException $e) { + if ('' === $mode || false === \in_array($mode[0], ['r', 'w', 'a', 'x', 'c'], true)) { + throw new \InvalidArgumentException(sprintf('Invalid file opening mode "%s"', $mode), 0, $e); + } + + throw $e; + } + + return Utils::streamFor($resource); + } + + public function createStreamFromResource($resource): StreamInterface + { + return Utils::streamFor($resource); + } + + public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface + { + if (empty($method)) { + if (!empty($serverParams['REQUEST_METHOD'])) { + $method = $serverParams['REQUEST_METHOD']; + } else { + throw new \InvalidArgumentException('Cannot determine HTTP method'); + } + } + + return new ServerRequest($method, $uri, [], null, '1.1', $serverParams); + } + + public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface + { + return new Response($code, [], null, '1.1', $reasonPhrase); + } + + public function createRequest(string $method, $uri): RequestInterface + { + return new Request($method, $uri); + } + + public function createUri(string $uri = ''): UriInterface + { + return new Uri($uri); + } +} diff --git a/vendor/guzzlehttp/psr7/src/InflateStream.php b/vendor/guzzlehttp/psr7/src/InflateStream.php new file mode 100644 index 000000000..599b55da3 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/InflateStream.php @@ -0,0 +1,37 @@ + 15 + 32]); + $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource)); + } +} diff --git a/vendor/guzzlehttp/psr7/src/LazyOpenStream.php b/vendor/guzzlehttp/psr7/src/LazyOpenStream.php new file mode 100644 index 000000000..f6c84904e --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/LazyOpenStream.php @@ -0,0 +1,49 @@ +filename = $filename; + $this->mode = $mode; + + // unsetting the property forces the first access to go through + // __get(). + unset($this->stream); + } + + /** + * Creates the underlying stream lazily when required. + */ + protected function createStream(): StreamInterface + { + return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode)); + } +} diff --git a/vendor/guzzlehttp/psr7/src/LimitStream.php b/vendor/guzzlehttp/psr7/src/LimitStream.php new file mode 100644 index 000000000..fb2232557 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/LimitStream.php @@ -0,0 +1,157 @@ +stream = $stream; + $this->setLimit($limit); + $this->setOffset($offset); + } + + public function eof(): bool + { + // Always return true if the underlying stream is EOF + if ($this->stream->eof()) { + return true; + } + + // No limit and the underlying stream is not at EOF + if ($this->limit === -1) { + return false; + } + + return $this->stream->tell() >= $this->offset + $this->limit; + } + + /** + * Returns the size of the limited subset of data + */ + public function getSize(): ?int + { + if (null === ($length = $this->stream->getSize())) { + return null; + } elseif ($this->limit === -1) { + return $length - $this->offset; + } else { + return min($this->limit, $length - $this->offset); + } + } + + /** + * Allow for a bounded seek on the read limited stream + */ + public function seek($offset, $whence = SEEK_SET): void + { + if ($whence !== SEEK_SET || $offset < 0) { + throw new \RuntimeException(sprintf( + 'Cannot seek to offset %s with whence %s', + $offset, + $whence + )); + } + + $offset += $this->offset; + + if ($this->limit !== -1) { + if ($offset > $this->offset + $this->limit) { + $offset = $this->offset + $this->limit; + } + } + + $this->stream->seek($offset); + } + + /** + * Give a relative tell() + */ + public function tell(): int + { + return $this->stream->tell() - $this->offset; + } + + /** + * Set the offset to start limiting from + * + * @param int $offset Offset to seek to and begin byte limiting from + * + * @throws \RuntimeException if the stream cannot be seeked. + */ + public function setOffset(int $offset): void + { + $current = $this->stream->tell(); + + if ($current !== $offset) { + // If the stream cannot seek to the offset position, then read to it + if ($this->stream->isSeekable()) { + $this->stream->seek($offset); + } elseif ($current > $offset) { + throw new \RuntimeException("Could not seek to stream offset $offset"); + } else { + $this->stream->read($offset - $current); + } + } + + $this->offset = $offset; + } + + /** + * Set the limit of bytes that the decorator allows to be read from the + * stream. + * + * @param int $limit Number of bytes to allow to be read from the stream. + * Use -1 for no limit. + */ + public function setLimit(int $limit): void + { + $this->limit = $limit; + } + + public function read($length): string + { + if ($this->limit === -1) { + return $this->stream->read($length); + } + + // Check if the current position is less than the total allowed + // bytes + original offset + $remaining = ($this->offset + $this->limit) - $this->stream->tell(); + if ($remaining > 0) { + // Only return the amount of requested data, ensuring that the byte + // limit is not exceeded + return $this->stream->read(min($remaining, $length)); + } + + return ''; + } +} diff --git a/vendor/guzzlehttp/psr7/src/Message.php b/vendor/guzzlehttp/psr7/src/Message.php new file mode 100644 index 000000000..6e6c3e51b --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Message.php @@ -0,0 +1,246 @@ +getMethod().' ' + .$message->getRequestTarget()) + .' HTTP/'.$message->getProtocolVersion(); + if (!$message->hasHeader('host')) { + $msg .= "\r\nHost: ".$message->getUri()->getHost(); + } + } elseif ($message instanceof ResponseInterface) { + $msg = 'HTTP/'.$message->getProtocolVersion().' ' + .$message->getStatusCode().' ' + .$message->getReasonPhrase(); + } else { + throw new \InvalidArgumentException('Unknown message type'); + } + + foreach ($message->getHeaders() as $name => $values) { + if (is_string($name) && strtolower($name) === 'set-cookie') { + foreach ($values as $value) { + $msg .= "\r\n{$name}: ".$value; + } + } else { + $msg .= "\r\n{$name}: ".implode(', ', $values); + } + } + + return "{$msg}\r\n\r\n".$message->getBody(); + } + + /** + * Get a short summary of the message body. + * + * Will return `null` if the response is not printable. + * + * @param MessageInterface $message The message to get the body summary + * @param int $truncateAt The maximum allowed size of the summary + */ + public static function bodySummary(MessageInterface $message, int $truncateAt = 120): ?string + { + $body = $message->getBody(); + + if (!$body->isSeekable() || !$body->isReadable()) { + return null; + } + + $size = $body->getSize(); + + if ($size === 0) { + return null; + } + + $body->rewind(); + $summary = $body->read($truncateAt); + $body->rewind(); + + if ($size > $truncateAt) { + $summary .= ' (truncated...)'; + } + + // Matches any printable character, including unicode characters: + // letters, marks, numbers, punctuation, spacing, and separators. + if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/u', $summary) !== 0) { + return null; + } + + return $summary; + } + + /** + * Attempts to rewind a message body and throws an exception on failure. + * + * The body of the message will only be rewound if a call to `tell()` + * returns a value other than `0`. + * + * @param MessageInterface $message Message to rewind + * + * @throws \RuntimeException + */ + public static function rewindBody(MessageInterface $message): void + { + $body = $message->getBody(); + + if ($body->tell()) { + $body->rewind(); + } + } + + /** + * Parses an HTTP message into an associative array. + * + * The array contains the "start-line" key containing the start line of + * the message, "headers" key containing an associative array of header + * array values, and a "body" key containing the body of the message. + * + * @param string $message HTTP request or response to parse. + */ + public static function parseMessage(string $message): array + { + if (!$message) { + throw new \InvalidArgumentException('Invalid message'); + } + + $message = ltrim($message, "\r\n"); + + $messageParts = preg_split("/\r?\n\r?\n/", $message, 2); + + if ($messageParts === false || count($messageParts) !== 2) { + throw new \InvalidArgumentException('Invalid message: Missing header delimiter'); + } + + [$rawHeaders, $body] = $messageParts; + $rawHeaders .= "\r\n"; // Put back the delimiter we split previously + $headerParts = preg_split("/\r?\n/", $rawHeaders, 2); + + if ($headerParts === false || count($headerParts) !== 2) { + throw new \InvalidArgumentException('Invalid message: Missing status line'); + } + + [$startLine, $rawHeaders] = $headerParts; + + if (preg_match("/(?:^HTTP\/|^[A-Z]+ \S+ HTTP\/)(\d+(?:\.\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { + // Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0 + $rawHeaders = preg_replace(Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); + } + + /** @var array[] $headerLines */ + $count = preg_match_all(Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, PREG_SET_ORDER); + + // If these aren't the same, then one line didn't match and there's an invalid header. + if ($count !== substr_count($rawHeaders, "\n")) { + // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4 + if (preg_match(Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { + throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); + } + + throw new \InvalidArgumentException('Invalid header syntax'); + } + + $headers = []; + + foreach ($headerLines as $headerLine) { + $headers[$headerLine[1]][] = $headerLine[2]; + } + + return [ + 'start-line' => $startLine, + 'headers' => $headers, + 'body' => $body, + ]; + } + + /** + * Constructs a URI for an HTTP request message. + * + * @param string $path Path from the start-line + * @param array $headers Array of headers (each value an array). + */ + public static function parseRequestUri(string $path, array $headers): string + { + $hostKey = array_filter(array_keys($headers), function ($k) { + // Numeric array keys are converted to int by PHP. + $k = (string) $k; + + return strtolower($k) === 'host'; + }); + + // If no host is found, then a full URI cannot be constructed. + if (!$hostKey) { + return $path; + } + + $host = $headers[reset($hostKey)][0]; + $scheme = substr($host, -4) === ':443' ? 'https' : 'http'; + + return $scheme.'://'.$host.'/'.ltrim($path, '/'); + } + + /** + * Parses a request message string into a request object. + * + * @param string $message Request message string. + */ + public static function parseRequest(string $message): RequestInterface + { + $data = self::parseMessage($message); + $matches = []; + if (!preg_match('/^[\S]+\s+([a-zA-Z]+:\/\/|\/).*/', $data['start-line'], $matches)) { + throw new \InvalidArgumentException('Invalid request string'); + } + $parts = explode(' ', $data['start-line'], 3); + $version = isset($parts[2]) ? explode('/', $parts[2])[1] : '1.1'; + + $request = new Request( + $parts[0], + $matches[1] === '/' ? self::parseRequestUri($parts[1], $data['headers']) : $parts[1], + $data['headers'], + $data['body'], + $version + ); + + return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); + } + + /** + * Parses a response message string into a response object. + * + * @param string $message Response message string. + */ + public static function parseResponse(string $message): ResponseInterface + { + $data = self::parseMessage($message); + // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space + // between status-code and reason-phrase is required. But browsers accept + // responses without space and reason as well. + if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { + throw new \InvalidArgumentException('Invalid response string: '.$data['start-line']); + } + $parts = explode(' ', $data['start-line'], 3); + + return new Response( + (int) $parts[1], + $data['headers'], + $data['body'], + explode('/', $parts[0])[1], + $parts[2] ?? null + ); + } +} diff --git a/vendor/guzzlehttp/psr7/src/MessageTrait.php b/vendor/guzzlehttp/psr7/src/MessageTrait.php new file mode 100644 index 000000000..e05ebea88 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/MessageTrait.php @@ -0,0 +1,265 @@ + array of values */ + private $headers = []; + + /** @var string[] Map of lowercase header name => original name at registration */ + private $headerNames = []; + + /** @var string */ + private $protocol = '1.1'; + + /** @var StreamInterface|null */ + private $stream; + + public function getProtocolVersion(): string + { + return $this->protocol; + } + + public function withProtocolVersion($version): MessageInterface + { + if ($this->protocol === $version) { + return $this; + } + + $new = clone $this; + $new->protocol = $version; + + return $new; + } + + public function getHeaders(): array + { + return $this->headers; + } + + public function hasHeader($header): bool + { + return isset($this->headerNames[strtolower($header)]); + } + + public function getHeader($header): array + { + $header = strtolower($header); + + if (!isset($this->headerNames[$header])) { + return []; + } + + $header = $this->headerNames[$header]; + + return $this->headers[$header]; + } + + public function getHeaderLine($header): string + { + return implode(', ', $this->getHeader($header)); + } + + public function withHeader($header, $value): MessageInterface + { + $this->assertHeader($header); + $value = $this->normalizeHeaderValue($value); + $normalized = strtolower($header); + + $new = clone $this; + if (isset($new->headerNames[$normalized])) { + unset($new->headers[$new->headerNames[$normalized]]); + } + $new->headerNames[$normalized] = $header; + $new->headers[$header] = $value; + + return $new; + } + + public function withAddedHeader($header, $value): MessageInterface + { + $this->assertHeader($header); + $value = $this->normalizeHeaderValue($value); + $normalized = strtolower($header); + + $new = clone $this; + if (isset($new->headerNames[$normalized])) { + $header = $this->headerNames[$normalized]; + $new->headers[$header] = array_merge($this->headers[$header], $value); + } else { + $new->headerNames[$normalized] = $header; + $new->headers[$header] = $value; + } + + return $new; + } + + public function withoutHeader($header): MessageInterface + { + $normalized = strtolower($header); + + if (!isset($this->headerNames[$normalized])) { + return $this; + } + + $header = $this->headerNames[$normalized]; + + $new = clone $this; + unset($new->headers[$header], $new->headerNames[$normalized]); + + return $new; + } + + public function getBody(): StreamInterface + { + if (!$this->stream) { + $this->stream = Utils::streamFor(''); + } + + return $this->stream; + } + + public function withBody(StreamInterface $body): MessageInterface + { + if ($body === $this->stream) { + return $this; + } + + $new = clone $this; + $new->stream = $body; + + return $new; + } + + /** + * @param array $headers + */ + private function setHeaders(array $headers): void + { + $this->headerNames = $this->headers = []; + foreach ($headers as $header => $value) { + // Numeric array keys are converted to int by PHP. + $header = (string) $header; + + $this->assertHeader($header); + $value = $this->normalizeHeaderValue($value); + $normalized = strtolower($header); + if (isset($this->headerNames[$normalized])) { + $header = $this->headerNames[$normalized]; + $this->headers[$header] = array_merge($this->headers[$header], $value); + } else { + $this->headerNames[$normalized] = $header; + $this->headers[$header] = $value; + } + } + } + + /** + * @param mixed $value + * + * @return string[] + */ + private function normalizeHeaderValue($value): array + { + if (!is_array($value)) { + return $this->trimAndValidateHeaderValues([$value]); + } + + if (count($value) === 0) { + throw new \InvalidArgumentException('Header value can not be an empty array.'); + } + + return $this->trimAndValidateHeaderValues($value); + } + + /** + * Trims whitespace from the header values. + * + * Spaces and tabs ought to be excluded by parsers when extracting the field value from a header field. + * + * header-field = field-name ":" OWS field-value OWS + * OWS = *( SP / HTAB ) + * + * @param mixed[] $values Header values + * + * @return string[] Trimmed header values + * + * @see https://tools.ietf.org/html/rfc7230#section-3.2.4 + */ + private function trimAndValidateHeaderValues(array $values): array + { + return array_map(function ($value) { + if (!is_scalar($value) && null !== $value) { + throw new \InvalidArgumentException(sprintf( + 'Header value must be scalar or null but %s provided.', + is_object($value) ? get_class($value) : gettype($value) + )); + } + + $trimmed = trim((string) $value, " \t"); + $this->assertValue($trimmed); + + return $trimmed; + }, array_values($values)); + } + + /** + * @see https://tools.ietf.org/html/rfc7230#section-3.2 + * + * @param mixed $header + */ + private function assertHeader($header): void + { + if (!is_string($header)) { + throw new \InvalidArgumentException(sprintf( + 'Header name must be a string but %s provided.', + is_object($header) ? get_class($header) : gettype($header) + )); + } + + if (!preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $header)) { + throw new \InvalidArgumentException( + sprintf('"%s" is not valid header name.', $header) + ); + } + } + + /** + * @see https://tools.ietf.org/html/rfc7230#section-3.2 + * + * field-value = *( field-content / obs-fold ) + * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] + * field-vchar = VCHAR / obs-text + * VCHAR = %x21-7E + * obs-text = %x80-FF + * obs-fold = CRLF 1*( SP / HTAB ) + */ + private function assertValue(string $value): void + { + // The regular expression intentionally does not support the obs-fold production, because as + // per RFC 7230#3.2.4: + // + // A sender MUST NOT generate a message that includes + // line folding (i.e., that has any field-value that contains a match to + // the obs-fold rule) unless the message is intended for packaging + // within the message/http media type. + // + // Clients must not send a request with line folding and a server sending folded headers is + // likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting + // folding is not likely to break any legitimate use case. + if (!preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/D', $value)) { + throw new \InvalidArgumentException( + sprintf('"%s" is not valid header value.', $value) + ); + } + } +} diff --git a/vendor/guzzlehttp/psr7/src/MimeType.php b/vendor/guzzlehttp/psr7/src/MimeType.php new file mode 100644 index 000000000..b131bdbe7 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/MimeType.php @@ -0,0 +1,1259 @@ + 'application/vnd.1000minds.decision-model+xml', + '3dml' => 'text/vnd.in3d.3dml', + '3ds' => 'image/x-3ds', + '3g2' => 'video/3gpp2', + '3gp' => 'video/3gp', + '3gpp' => 'video/3gpp', + '3mf' => 'model/3mf', + '7z' => 'application/x-7z-compressed', + '7zip' => 'application/x-7z-compressed', + '123' => 'application/vnd.lotus-1-2-3', + 'aab' => 'application/x-authorware-bin', + 'aac' => 'audio/aac', + 'aam' => 'application/x-authorware-map', + 'aas' => 'application/x-authorware-seg', + 'abw' => 'application/x-abiword', + 'ac' => 'application/vnd.nokia.n-gage.ac+xml', + 'ac3' => 'audio/ac3', + 'acc' => 'application/vnd.americandynamics.acc', + 'ace' => 'application/x-ace-compressed', + 'acu' => 'application/vnd.acucobol', + 'acutc' => 'application/vnd.acucorp', + 'adp' => 'audio/adpcm', + 'adts' => 'audio/aac', + 'aep' => 'application/vnd.audiograph', + 'afm' => 'application/x-font-type1', + 'afp' => 'application/vnd.ibm.modcap', + 'age' => 'application/vnd.age', + 'ahead' => 'application/vnd.ahead.space', + 'ai' => 'application/pdf', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/x-aiff', + 'air' => 'application/vnd.adobe.air-application-installer-package+zip', + 'ait' => 'application/vnd.dvb.ait', + 'ami' => 'application/vnd.amiga.ami', + 'aml' => 'application/automationml-aml+xml', + 'amlx' => 'application/automationml-amlx+zip', + 'amr' => 'audio/amr', + 'apk' => 'application/vnd.android.package-archive', + 'apng' => 'image/apng', + 'appcache' => 'text/cache-manifest', + 'appinstaller' => 'application/appinstaller', + 'application' => 'application/x-ms-application', + 'appx' => 'application/appx', + 'appxbundle' => 'application/appxbundle', + 'apr' => 'application/vnd.lotus-approach', + 'arc' => 'application/x-freearc', + 'arj' => 'application/x-arj', + 'asc' => 'application/pgp-signature', + 'asf' => 'video/x-ms-asf', + 'asm' => 'text/x-asm', + 'aso' => 'application/vnd.accpac.simply.aso', + 'asx' => 'video/x-ms-asf', + 'atc' => 'application/vnd.acucorp', + 'atom' => 'application/atom+xml', + 'atomcat' => 'application/atomcat+xml', + 'atomdeleted' => 'application/atomdeleted+xml', + 'atomsvc' => 'application/atomsvc+xml', + 'atx' => 'application/vnd.antix.game-component', + 'au' => 'audio/x-au', + 'avci' => 'image/avci', + 'avcs' => 'image/avcs', + 'avi' => 'video/x-msvideo', + 'avif' => 'image/avif', + 'aw' => 'application/applixware', + 'azf' => 'application/vnd.airzip.filesecure.azf', + 'azs' => 'application/vnd.airzip.filesecure.azs', + 'azv' => 'image/vnd.airzip.accelerator.azv', + 'azw' => 'application/vnd.amazon.ebook', + 'b16' => 'image/vnd.pco.b16', + 'bat' => 'application/x-msdownload', + 'bcpio' => 'application/x-bcpio', + 'bdf' => 'application/x-font-bdf', + 'bdm' => 'application/vnd.syncml.dm+wbxml', + 'bdoc' => 'application/x-bdoc', + 'bed' => 'application/vnd.realvnc.bed', + 'bh2' => 'application/vnd.fujitsu.oasysprs', + 'bin' => 'application/octet-stream', + 'blb' => 'application/x-blorb', + 'blorb' => 'application/x-blorb', + 'bmi' => 'application/vnd.bmi', + 'bmml' => 'application/vnd.balsamiq.bmml+xml', + 'bmp' => 'image/bmp', + 'book' => 'application/vnd.framemaker', + 'box' => 'application/vnd.previewsystems.box', + 'boz' => 'application/x-bzip2', + 'bpk' => 'application/octet-stream', + 'bpmn' => 'application/octet-stream', + 'bsp' => 'model/vnd.valve.source.compiled-map', + 'btf' => 'image/prs.btif', + 'btif' => 'image/prs.btif', + 'buffer' => 'application/octet-stream', + 'bz' => 'application/x-bzip', + 'bz2' => 'application/x-bzip2', + 'c' => 'text/x-c', + 'c4d' => 'application/vnd.clonk.c4group', + 'c4f' => 'application/vnd.clonk.c4group', + 'c4g' => 'application/vnd.clonk.c4group', + 'c4p' => 'application/vnd.clonk.c4group', + 'c4u' => 'application/vnd.clonk.c4group', + 'c11amc' => 'application/vnd.cluetrust.cartomobile-config', + 'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg', + 'cab' => 'application/vnd.ms-cab-compressed', + 'caf' => 'audio/x-caf', + 'cap' => 'application/vnd.tcpdump.pcap', + 'car' => 'application/vnd.curl.car', + 'cat' => 'application/vnd.ms-pki.seccat', + 'cb7' => 'application/x-cbr', + 'cba' => 'application/x-cbr', + 'cbr' => 'application/x-cbr', + 'cbt' => 'application/x-cbr', + 'cbz' => 'application/x-cbr', + 'cc' => 'text/x-c', + 'cco' => 'application/x-cocoa', + 'cct' => 'application/x-director', + 'ccxml' => 'application/ccxml+xml', + 'cdbcmsg' => 'application/vnd.contact.cmsg', + 'cdf' => 'application/x-netcdf', + 'cdfx' => 'application/cdfx+xml', + 'cdkey' => 'application/vnd.mediastation.cdkey', + 'cdmia' => 'application/cdmi-capability', + 'cdmic' => 'application/cdmi-container', + 'cdmid' => 'application/cdmi-domain', + 'cdmio' => 'application/cdmi-object', + 'cdmiq' => 'application/cdmi-queue', + 'cdr' => 'application/cdr', + 'cdx' => 'chemical/x-cdx', + 'cdxml' => 'application/vnd.chemdraw+xml', + 'cdy' => 'application/vnd.cinderella', + 'cer' => 'application/pkix-cert', + 'cfs' => 'application/x-cfs-compressed', + 'cgm' => 'image/cgm', + 'chat' => 'application/x-chat', + 'chm' => 'application/vnd.ms-htmlhelp', + 'chrt' => 'application/vnd.kde.kchart', + 'cif' => 'chemical/x-cif', + 'cii' => 'application/vnd.anser-web-certificate-issue-initiation', + 'cil' => 'application/vnd.ms-artgalry', + 'cjs' => 'application/node', + 'cla' => 'application/vnd.claymore', + 'class' => 'application/octet-stream', + 'cld' => 'model/vnd.cld', + 'clkk' => 'application/vnd.crick.clicker.keyboard', + 'clkp' => 'application/vnd.crick.clicker.palette', + 'clkt' => 'application/vnd.crick.clicker.template', + 'clkw' => 'application/vnd.crick.clicker.wordbank', + 'clkx' => 'application/vnd.crick.clicker', + 'clp' => 'application/x-msclip', + 'cmc' => 'application/vnd.cosmocaller', + 'cmdf' => 'chemical/x-cmdf', + 'cml' => 'chemical/x-cml', + 'cmp' => 'application/vnd.yellowriver-custom-menu', + 'cmx' => 'image/x-cmx', + 'cod' => 'application/vnd.rim.cod', + 'coffee' => 'text/coffeescript', + 'com' => 'application/x-msdownload', + 'conf' => 'text/plain', + 'cpio' => 'application/x-cpio', + 'cpl' => 'application/cpl+xml', + 'cpp' => 'text/x-c', + 'cpt' => 'application/mac-compactpro', + 'crd' => 'application/x-mscardfile', + 'crl' => 'application/pkix-crl', + 'crt' => 'application/x-x509-ca-cert', + 'crx' => 'application/x-chrome-extension', + 'cryptonote' => 'application/vnd.rig.cryptonote', + 'csh' => 'application/x-csh', + 'csl' => 'application/vnd.citationstyles.style+xml', + 'csml' => 'chemical/x-csml', + 'csp' => 'application/vnd.commonspace', + 'csr' => 'application/octet-stream', + 'css' => 'text/css', + 'cst' => 'application/x-director', + 'csv' => 'text/csv', + 'cu' => 'application/cu-seeme', + 'curl' => 'text/vnd.curl', + 'cwl' => 'application/cwl', + 'cww' => 'application/prs.cww', + 'cxt' => 'application/x-director', + 'cxx' => 'text/x-c', + 'dae' => 'model/vnd.collada+xml', + 'daf' => 'application/vnd.mobius.daf', + 'dart' => 'application/vnd.dart', + 'dataless' => 'application/vnd.fdsn.seed', + 'davmount' => 'application/davmount+xml', + 'dbf' => 'application/vnd.dbf', + 'dbk' => 'application/docbook+xml', + 'dcr' => 'application/x-director', + 'dcurl' => 'text/vnd.curl.dcurl', + 'dd2' => 'application/vnd.oma.dd2+xml', + 'ddd' => 'application/vnd.fujixerox.ddd', + 'ddf' => 'application/vnd.syncml.dmddf+xml', + 'dds' => 'image/vnd.ms-dds', + 'deb' => 'application/x-debian-package', + 'def' => 'text/plain', + 'deploy' => 'application/octet-stream', + 'der' => 'application/x-x509-ca-cert', + 'dfac' => 'application/vnd.dreamfactory', + 'dgc' => 'application/x-dgc-compressed', + 'dib' => 'image/bmp', + 'dic' => 'text/x-c', + 'dir' => 'application/x-director', + 'dis' => 'application/vnd.mobius.dis', + 'disposition-notification' => 'message/disposition-notification', + 'dist' => 'application/octet-stream', + 'distz' => 'application/octet-stream', + 'djv' => 'image/vnd.djvu', + 'djvu' => 'image/vnd.djvu', + 'dll' => 'application/octet-stream', + 'dmg' => 'application/x-apple-diskimage', + 'dmn' => 'application/octet-stream', + 'dmp' => 'application/vnd.tcpdump.pcap', + 'dms' => 'application/octet-stream', + 'dna' => 'application/vnd.dna', + 'doc' => 'application/msword', + 'docm' => 'application/vnd.ms-word.template.macroEnabled.12', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'dot' => 'application/msword', + 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', + 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'dp' => 'application/vnd.osgi.dp', + 'dpg' => 'application/vnd.dpgraph', + 'dpx' => 'image/dpx', + 'dra' => 'audio/vnd.dra', + 'drle' => 'image/dicom-rle', + 'dsc' => 'text/prs.lines.tag', + 'dssc' => 'application/dssc+der', + 'dtb' => 'application/x-dtbook+xml', + 'dtd' => 'application/xml-dtd', + 'dts' => 'audio/vnd.dts', + 'dtshd' => 'audio/vnd.dts.hd', + 'dump' => 'application/octet-stream', + 'dvb' => 'video/vnd.dvb.file', + 'dvi' => 'application/x-dvi', + 'dwd' => 'application/atsc-dwd+xml', + 'dwf' => 'model/vnd.dwf', + 'dwg' => 'image/vnd.dwg', + 'dxf' => 'image/vnd.dxf', + 'dxp' => 'application/vnd.spotfire.dxp', + 'dxr' => 'application/x-director', + 'ear' => 'application/java-archive', + 'ecelp4800' => 'audio/vnd.nuera.ecelp4800', + 'ecelp7470' => 'audio/vnd.nuera.ecelp7470', + 'ecelp9600' => 'audio/vnd.nuera.ecelp9600', + 'ecma' => 'application/ecmascript', + 'edm' => 'application/vnd.novadigm.edm', + 'edx' => 'application/vnd.novadigm.edx', + 'efif' => 'application/vnd.picsel', + 'ei6' => 'application/vnd.pg.osasli', + 'elc' => 'application/octet-stream', + 'emf' => 'image/emf', + 'eml' => 'message/rfc822', + 'emma' => 'application/emma+xml', + 'emotionml' => 'application/emotionml+xml', + 'emz' => 'application/x-msmetafile', + 'eol' => 'audio/vnd.digital-winds', + 'eot' => 'application/vnd.ms-fontobject', + 'eps' => 'application/postscript', + 'epub' => 'application/epub+zip', + 'es3' => 'application/vnd.eszigno3+xml', + 'esa' => 'application/vnd.osgi.subsystem', + 'esf' => 'application/vnd.epson.esf', + 'et3' => 'application/vnd.eszigno3+xml', + 'etx' => 'text/x-setext', + 'eva' => 'application/x-eva', + 'evy' => 'application/x-envoy', + 'exe' => 'application/octet-stream', + 'exi' => 'application/exi', + 'exp' => 'application/express', + 'exr' => 'image/aces', + 'ext' => 'application/vnd.novadigm.ext', + 'ez' => 'application/andrew-inset', + 'ez2' => 'application/vnd.ezpix-album', + 'ez3' => 'application/vnd.ezpix-package', + 'f' => 'text/x-fortran', + 'f4v' => 'video/mp4', + 'f77' => 'text/x-fortran', + 'f90' => 'text/x-fortran', + 'fbs' => 'image/vnd.fastbidsheet', + 'fcdt' => 'application/vnd.adobe.formscentral.fcdt', + 'fcs' => 'application/vnd.isac.fcs', + 'fdf' => 'application/vnd.fdf', + 'fdt' => 'application/fdt+xml', + 'fe_launch' => 'application/vnd.denovo.fcselayout-link', + 'fg5' => 'application/vnd.fujitsu.oasysgp', + 'fgd' => 'application/x-director', + 'fh' => 'image/x-freehand', + 'fh4' => 'image/x-freehand', + 'fh5' => 'image/x-freehand', + 'fh7' => 'image/x-freehand', + 'fhc' => 'image/x-freehand', + 'fig' => 'application/x-xfig', + 'fits' => 'image/fits', + 'flac' => 'audio/x-flac', + 'fli' => 'video/x-fli', + 'flo' => 'application/vnd.micrografx.flo', + 'flv' => 'video/x-flv', + 'flw' => 'application/vnd.kde.kivio', + 'flx' => 'text/vnd.fmi.flexstor', + 'fly' => 'text/vnd.fly', + 'fm' => 'application/vnd.framemaker', + 'fnc' => 'application/vnd.frogans.fnc', + 'fo' => 'application/vnd.software602.filler.form+xml', + 'for' => 'text/x-fortran', + 'fpx' => 'image/vnd.fpx', + 'frame' => 'application/vnd.framemaker', + 'fsc' => 'application/vnd.fsc.weblaunch', + 'fst' => 'image/vnd.fst', + 'ftc' => 'application/vnd.fluxtime.clip', + 'fti' => 'application/vnd.anser-web-funds-transfer-initiation', + 'fvt' => 'video/vnd.fvt', + 'fxp' => 'application/vnd.adobe.fxp', + 'fxpl' => 'application/vnd.adobe.fxp', + 'fzs' => 'application/vnd.fuzzysheet', + 'g2w' => 'application/vnd.geoplan', + 'g3' => 'image/g3fax', + 'g3w' => 'application/vnd.geospace', + 'gac' => 'application/vnd.groove-account', + 'gam' => 'application/x-tads', + 'gbr' => 'application/rpki-ghostbusters', + 'gca' => 'application/x-gca-compressed', + 'gdl' => 'model/vnd.gdl', + 'gdoc' => 'application/vnd.google-apps.document', + 'ged' => 'text/vnd.familysearch.gedcom', + 'geo' => 'application/vnd.dynageo', + 'geojson' => 'application/geo+json', + 'gex' => 'application/vnd.geometry-explorer', + 'ggb' => 'application/vnd.geogebra.file', + 'ggt' => 'application/vnd.geogebra.tool', + 'ghf' => 'application/vnd.groove-help', + 'gif' => 'image/gif', + 'gim' => 'application/vnd.groove-identity-message', + 'glb' => 'model/gltf-binary', + 'gltf' => 'model/gltf+json', + 'gml' => 'application/gml+xml', + 'gmx' => 'application/vnd.gmx', + 'gnumeric' => 'application/x-gnumeric', + 'gpg' => 'application/gpg-keys', + 'gph' => 'application/vnd.flographit', + 'gpx' => 'application/gpx+xml', + 'gqf' => 'application/vnd.grafeq', + 'gqs' => 'application/vnd.grafeq', + 'gram' => 'application/srgs', + 'gramps' => 'application/x-gramps-xml', + 'gre' => 'application/vnd.geometry-explorer', + 'grv' => 'application/vnd.groove-injector', + 'grxml' => 'application/srgs+xml', + 'gsf' => 'application/x-font-ghostscript', + 'gsheet' => 'application/vnd.google-apps.spreadsheet', + 'gslides' => 'application/vnd.google-apps.presentation', + 'gtar' => 'application/x-gtar', + 'gtm' => 'application/vnd.groove-tool-message', + 'gtw' => 'model/vnd.gtw', + 'gv' => 'text/vnd.graphviz', + 'gxf' => 'application/gxf', + 'gxt' => 'application/vnd.geonext', + 'gz' => 'application/gzip', + 'gzip' => 'application/gzip', + 'h' => 'text/x-c', + 'h261' => 'video/h261', + 'h263' => 'video/h263', + 'h264' => 'video/h264', + 'hal' => 'application/vnd.hal+xml', + 'hbci' => 'application/vnd.hbci', + 'hbs' => 'text/x-handlebars-template', + 'hdd' => 'application/x-virtualbox-hdd', + 'hdf' => 'application/x-hdf', + 'heic' => 'image/heic', + 'heics' => 'image/heic-sequence', + 'heif' => 'image/heif', + 'heifs' => 'image/heif-sequence', + 'hej2' => 'image/hej2k', + 'held' => 'application/atsc-held+xml', + 'hh' => 'text/x-c', + 'hjson' => 'application/hjson', + 'hlp' => 'application/winhlp', + 'hpgl' => 'application/vnd.hp-hpgl', + 'hpid' => 'application/vnd.hp-hpid', + 'hps' => 'application/vnd.hp-hps', + 'hqx' => 'application/mac-binhex40', + 'hsj2' => 'image/hsj2', + 'htc' => 'text/x-component', + 'htke' => 'application/vnd.kenameaapp', + 'htm' => 'text/html', + 'html' => 'text/html', + 'hvd' => 'application/vnd.yamaha.hv-dic', + 'hvp' => 'application/vnd.yamaha.hv-voice', + 'hvs' => 'application/vnd.yamaha.hv-script', + 'i2g' => 'application/vnd.intergeo', + 'icc' => 'application/vnd.iccprofile', + 'ice' => 'x-conference/x-cooltalk', + 'icm' => 'application/vnd.iccprofile', + 'ico' => 'image/x-icon', + 'ics' => 'text/calendar', + 'ief' => 'image/ief', + 'ifb' => 'text/calendar', + 'ifm' => 'application/vnd.shana.informed.formdata', + 'iges' => 'model/iges', + 'igl' => 'application/vnd.igloader', + 'igm' => 'application/vnd.insors.igm', + 'igs' => 'model/iges', + 'igx' => 'application/vnd.micrografx.igx', + 'iif' => 'application/vnd.shana.informed.interchange', + 'img' => 'application/octet-stream', + 'imp' => 'application/vnd.accpac.simply.imp', + 'ims' => 'application/vnd.ms-ims', + 'in' => 'text/plain', + 'ini' => 'text/plain', + 'ink' => 'application/inkml+xml', + 'inkml' => 'application/inkml+xml', + 'install' => 'application/x-install-instructions', + 'iota' => 'application/vnd.astraea-software.iota', + 'ipfix' => 'application/ipfix', + 'ipk' => 'application/vnd.shana.informed.package', + 'irm' => 'application/vnd.ibm.rights-management', + 'irp' => 'application/vnd.irepository.package+xml', + 'iso' => 'application/x-iso9660-image', + 'itp' => 'application/vnd.shana.informed.formtemplate', + 'its' => 'application/its+xml', + 'ivp' => 'application/vnd.immervision-ivp', + 'ivu' => 'application/vnd.immervision-ivu', + 'jad' => 'text/vnd.sun.j2me.app-descriptor', + 'jade' => 'text/jade', + 'jam' => 'application/vnd.jam', + 'jar' => 'application/java-archive', + 'jardiff' => 'application/x-java-archive-diff', + 'java' => 'text/x-java-source', + 'jhc' => 'image/jphc', + 'jisp' => 'application/vnd.jisp', + 'jls' => 'image/jls', + 'jlt' => 'application/vnd.hp-jlyt', + 'jng' => 'image/x-jng', + 'jnlp' => 'application/x-java-jnlp-file', + 'joda' => 'application/vnd.joost.joda-archive', + 'jp2' => 'image/jp2', + 'jpe' => 'image/jpeg', + 'jpeg' => 'image/jpeg', + 'jpf' => 'image/jpx', + 'jpg' => 'image/jpeg', + 'jpg2' => 'image/jp2', + 'jpgm' => 'video/jpm', + 'jpgv' => 'video/jpeg', + 'jph' => 'image/jph', + 'jpm' => 'video/jpm', + 'jpx' => 'image/jpx', + 'js' => 'application/javascript', + 'json' => 'application/json', + 'json5' => 'application/json5', + 'jsonld' => 'application/ld+json', + 'jsonml' => 'application/jsonml+json', + 'jsx' => 'text/jsx', + 'jt' => 'model/jt', + 'jxr' => 'image/jxr', + 'jxra' => 'image/jxra', + 'jxrs' => 'image/jxrs', + 'jxs' => 'image/jxs', + 'jxsc' => 'image/jxsc', + 'jxsi' => 'image/jxsi', + 'jxss' => 'image/jxss', + 'kar' => 'audio/midi', + 'karbon' => 'application/vnd.kde.karbon', + 'kdb' => 'application/octet-stream', + 'kdbx' => 'application/x-keepass2', + 'key' => 'application/x-iwork-keynote-sffkey', + 'kfo' => 'application/vnd.kde.kformula', + 'kia' => 'application/vnd.kidspiration', + 'kml' => 'application/vnd.google-earth.kml+xml', + 'kmz' => 'application/vnd.google-earth.kmz', + 'kne' => 'application/vnd.kinar', + 'knp' => 'application/vnd.kinar', + 'kon' => 'application/vnd.kde.kontour', + 'kpr' => 'application/vnd.kde.kpresenter', + 'kpt' => 'application/vnd.kde.kpresenter', + 'kpxx' => 'application/vnd.ds-keypoint', + 'ksp' => 'application/vnd.kde.kspread', + 'ktr' => 'application/vnd.kahootz', + 'ktx' => 'image/ktx', + 'ktx2' => 'image/ktx2', + 'ktz' => 'application/vnd.kahootz', + 'kwd' => 'application/vnd.kde.kword', + 'kwt' => 'application/vnd.kde.kword', + 'lasxml' => 'application/vnd.las.las+xml', + 'latex' => 'application/x-latex', + 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop', + 'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml', + 'les' => 'application/vnd.hhe.lesson-player', + 'less' => 'text/less', + 'lgr' => 'application/lgr+xml', + 'lha' => 'application/octet-stream', + 'link66' => 'application/vnd.route66.link66+xml', + 'list' => 'text/plain', + 'list3820' => 'application/vnd.ibm.modcap', + 'listafp' => 'application/vnd.ibm.modcap', + 'litcoffee' => 'text/coffeescript', + 'lnk' => 'application/x-ms-shortcut', + 'log' => 'text/plain', + 'lostxml' => 'application/lost+xml', + 'lrf' => 'application/octet-stream', + 'lrm' => 'application/vnd.ms-lrm', + 'ltf' => 'application/vnd.frogans.ltf', + 'lua' => 'text/x-lua', + 'luac' => 'application/x-lua-bytecode', + 'lvp' => 'audio/vnd.lucent.voice', + 'lwp' => 'application/vnd.lotus-wordpro', + 'lzh' => 'application/octet-stream', + 'm1v' => 'video/mpeg', + 'm2a' => 'audio/mpeg', + 'm2v' => 'video/mpeg', + 'm3a' => 'audio/mpeg', + 'm3u' => 'text/plain', + 'm3u8' => 'application/vnd.apple.mpegurl', + 'm4a' => 'audio/x-m4a', + 'm4p' => 'application/mp4', + 'm4s' => 'video/iso.segment', + 'm4u' => 'application/vnd.mpegurl', + 'm4v' => 'video/x-m4v', + 'm13' => 'application/x-msmediaview', + 'm14' => 'application/x-msmediaview', + 'm21' => 'application/mp21', + 'ma' => 'application/mathematica', + 'mads' => 'application/mads+xml', + 'maei' => 'application/mmt-aei+xml', + 'mag' => 'application/vnd.ecowin.chart', + 'maker' => 'application/vnd.framemaker', + 'man' => 'text/troff', + 'manifest' => 'text/cache-manifest', + 'map' => 'application/json', + 'mar' => 'application/octet-stream', + 'markdown' => 'text/markdown', + 'mathml' => 'application/mathml+xml', + 'mb' => 'application/mathematica', + 'mbk' => 'application/vnd.mobius.mbk', + 'mbox' => 'application/mbox', + 'mc1' => 'application/vnd.medcalcdata', + 'mcd' => 'application/vnd.mcd', + 'mcurl' => 'text/vnd.curl.mcurl', + 'md' => 'text/markdown', + 'mdb' => 'application/x-msaccess', + 'mdi' => 'image/vnd.ms-modi', + 'mdx' => 'text/mdx', + 'me' => 'text/troff', + 'mesh' => 'model/mesh', + 'meta4' => 'application/metalink4+xml', + 'metalink' => 'application/metalink+xml', + 'mets' => 'application/mets+xml', + 'mfm' => 'application/vnd.mfmp', + 'mft' => 'application/rpki-manifest', + 'mgp' => 'application/vnd.osgeo.mapguide.package', + 'mgz' => 'application/vnd.proteus.magazine', + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mie' => 'application/x-mie', + 'mif' => 'application/vnd.mif', + 'mime' => 'message/rfc822', + 'mj2' => 'video/mj2', + 'mjp2' => 'video/mj2', + 'mjs' => 'text/javascript', + 'mk3d' => 'video/x-matroska', + 'mka' => 'audio/x-matroska', + 'mkd' => 'text/x-markdown', + 'mks' => 'video/x-matroska', + 'mkv' => 'video/x-matroska', + 'mlp' => 'application/vnd.dolby.mlp', + 'mmd' => 'application/vnd.chipnuts.karaoke-mmd', + 'mmf' => 'application/vnd.smaf', + 'mml' => 'text/mathml', + 'mmr' => 'image/vnd.fujixerox.edmics-mmr', + 'mng' => 'video/x-mng', + 'mny' => 'application/x-msmoney', + 'mobi' => 'application/x-mobipocket-ebook', + 'mods' => 'application/mods+xml', + 'mov' => 'video/quicktime', + 'movie' => 'video/x-sgi-movie', + 'mp2' => 'audio/mpeg', + 'mp2a' => 'audio/mpeg', + 'mp3' => 'audio/mpeg', + 'mp4' => 'video/mp4', + 'mp4a' => 'audio/mp4', + 'mp4s' => 'application/mp4', + 'mp4v' => 'video/mp4', + 'mp21' => 'application/mp21', + 'mpc' => 'application/vnd.mophun.certificate', + 'mpd' => 'application/dash+xml', + 'mpe' => 'video/mpeg', + 'mpeg' => 'video/mpeg', + 'mpf' => 'application/media-policy-dataset+xml', + 'mpg' => 'video/mpeg', + 'mpg4' => 'video/mp4', + 'mpga' => 'audio/mpeg', + 'mpkg' => 'application/vnd.apple.installer+xml', + 'mpm' => 'application/vnd.blueice.multipass', + 'mpn' => 'application/vnd.mophun.application', + 'mpp' => 'application/vnd.ms-project', + 'mpt' => 'application/vnd.ms-project', + 'mpy' => 'application/vnd.ibm.minipay', + 'mqy' => 'application/vnd.mobius.mqy', + 'mrc' => 'application/marc', + 'mrcx' => 'application/marcxml+xml', + 'ms' => 'text/troff', + 'mscml' => 'application/mediaservercontrol+xml', + 'mseed' => 'application/vnd.fdsn.mseed', + 'mseq' => 'application/vnd.mseq', + 'msf' => 'application/vnd.epson.msf', + 'msg' => 'application/vnd.ms-outlook', + 'msh' => 'model/mesh', + 'msi' => 'application/x-msdownload', + 'msix' => 'application/msix', + 'msixbundle' => 'application/msixbundle', + 'msl' => 'application/vnd.mobius.msl', + 'msm' => 'application/octet-stream', + 'msp' => 'application/octet-stream', + 'msty' => 'application/vnd.muvee.style', + 'mtl' => 'model/mtl', + 'mts' => 'model/vnd.mts', + 'mus' => 'application/vnd.musician', + 'musd' => 'application/mmt-usd+xml', + 'musicxml' => 'application/vnd.recordare.musicxml+xml', + 'mvb' => 'application/x-msmediaview', + 'mvt' => 'application/vnd.mapbox-vector-tile', + 'mwf' => 'application/vnd.mfer', + 'mxf' => 'application/mxf', + 'mxl' => 'application/vnd.recordare.musicxml', + 'mxmf' => 'audio/mobile-xmf', + 'mxml' => 'application/xv+xml', + 'mxs' => 'application/vnd.triscape.mxs', + 'mxu' => 'video/vnd.mpegurl', + 'n-gage' => 'application/vnd.nokia.n-gage.symbian.install', + 'n3' => 'text/n3', + 'nb' => 'application/mathematica', + 'nbp' => 'application/vnd.wolfram.player', + 'nc' => 'application/x-netcdf', + 'ncx' => 'application/x-dtbncx+xml', + 'nfo' => 'text/x-nfo', + 'ngdat' => 'application/vnd.nokia.n-gage.data', + 'nitf' => 'application/vnd.nitf', + 'nlu' => 'application/vnd.neurolanguage.nlu', + 'nml' => 'application/vnd.enliven', + 'nnd' => 'application/vnd.noblenet-directory', + 'nns' => 'application/vnd.noblenet-sealer', + 'nnw' => 'application/vnd.noblenet-web', + 'npx' => 'image/vnd.net-fpx', + 'nq' => 'application/n-quads', + 'nsc' => 'application/x-conference', + 'nsf' => 'application/vnd.lotus-notes', + 'nt' => 'application/n-triples', + 'ntf' => 'application/vnd.nitf', + 'numbers' => 'application/x-iwork-numbers-sffnumbers', + 'nzb' => 'application/x-nzb', + 'oa2' => 'application/vnd.fujitsu.oasys2', + 'oa3' => 'application/vnd.fujitsu.oasys3', + 'oas' => 'application/vnd.fujitsu.oasys', + 'obd' => 'application/x-msbinder', + 'obgx' => 'application/vnd.openblox.game+xml', + 'obj' => 'model/obj', + 'oda' => 'application/oda', + 'odb' => 'application/vnd.oasis.opendocument.database', + 'odc' => 'application/vnd.oasis.opendocument.chart', + 'odf' => 'application/vnd.oasis.opendocument.formula', + 'odft' => 'application/vnd.oasis.opendocument.formula-template', + 'odg' => 'application/vnd.oasis.opendocument.graphics', + 'odi' => 'application/vnd.oasis.opendocument.image', + 'odm' => 'application/vnd.oasis.opendocument.text-master', + 'odp' => 'application/vnd.oasis.opendocument.presentation', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'odt' => 'application/vnd.oasis.opendocument.text', + 'oga' => 'audio/ogg', + 'ogex' => 'model/vnd.opengex', + 'ogg' => 'audio/ogg', + 'ogv' => 'video/ogg', + 'ogx' => 'application/ogg', + 'omdoc' => 'application/omdoc+xml', + 'onepkg' => 'application/onenote', + 'onetmp' => 'application/onenote', + 'onetoc' => 'application/onenote', + 'onetoc2' => 'application/onenote', + 'opf' => 'application/oebps-package+xml', + 'opml' => 'text/x-opml', + 'oprc' => 'application/vnd.palm', + 'opus' => 'audio/ogg', + 'org' => 'text/x-org', + 'osf' => 'application/vnd.yamaha.openscoreformat', + 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml', + 'osm' => 'application/vnd.openstreetmap.data+xml', + 'otc' => 'application/vnd.oasis.opendocument.chart-template', + 'otf' => 'font/otf', + 'otg' => 'application/vnd.oasis.opendocument.graphics-template', + 'oth' => 'application/vnd.oasis.opendocument.text-web', + 'oti' => 'application/vnd.oasis.opendocument.image-template', + 'otp' => 'application/vnd.oasis.opendocument.presentation-template', + 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', + 'ott' => 'application/vnd.oasis.opendocument.text-template', + 'ova' => 'application/x-virtualbox-ova', + 'ovf' => 'application/x-virtualbox-ovf', + 'owl' => 'application/rdf+xml', + 'oxps' => 'application/oxps', + 'oxt' => 'application/vnd.openofficeorg.extension', + 'p' => 'text/x-pascal', + 'p7a' => 'application/x-pkcs7-signature', + 'p7b' => 'application/x-pkcs7-certificates', + 'p7c' => 'application/pkcs7-mime', + 'p7m' => 'application/pkcs7-mime', + 'p7r' => 'application/x-pkcs7-certreqresp', + 'p7s' => 'application/pkcs7-signature', + 'p8' => 'application/pkcs8', + 'p10' => 'application/x-pkcs10', + 'p12' => 'application/x-pkcs12', + 'pac' => 'application/x-ns-proxy-autoconfig', + 'pages' => 'application/x-iwork-pages-sffpages', + 'pas' => 'text/x-pascal', + 'paw' => 'application/vnd.pawaafile', + 'pbd' => 'application/vnd.powerbuilder6', + 'pbm' => 'image/x-portable-bitmap', + 'pcap' => 'application/vnd.tcpdump.pcap', + 'pcf' => 'application/x-font-pcf', + 'pcl' => 'application/vnd.hp-pcl', + 'pclxl' => 'application/vnd.hp-pclxl', + 'pct' => 'image/x-pict', + 'pcurl' => 'application/vnd.curl.pcurl', + 'pcx' => 'image/x-pcx', + 'pdb' => 'application/x-pilot', + 'pde' => 'text/x-processing', + 'pdf' => 'application/pdf', + 'pem' => 'application/x-x509-user-cert', + 'pfa' => 'application/x-font-type1', + 'pfb' => 'application/x-font-type1', + 'pfm' => 'application/x-font-type1', + 'pfr' => 'application/font-tdpfr', + 'pfx' => 'application/x-pkcs12', + 'pgm' => 'image/x-portable-graymap', + 'pgn' => 'application/x-chess-pgn', + 'pgp' => 'application/pgp', + 'phar' => 'application/octet-stream', + 'php' => 'application/x-httpd-php', + 'php3' => 'application/x-httpd-php', + 'php4' => 'application/x-httpd-php', + 'phps' => 'application/x-httpd-php-source', + 'phtml' => 'application/x-httpd-php', + 'pic' => 'image/x-pict', + 'pkg' => 'application/octet-stream', + 'pki' => 'application/pkixcmp', + 'pkipath' => 'application/pkix-pkipath', + 'pkpass' => 'application/vnd.apple.pkpass', + 'pl' => 'application/x-perl', + 'plb' => 'application/vnd.3gpp.pic-bw-large', + 'plc' => 'application/vnd.mobius.plc', + 'plf' => 'application/vnd.pocketlearn', + 'pls' => 'application/pls+xml', + 'pm' => 'application/x-perl', + 'pml' => 'application/vnd.ctc-posml', + 'png' => 'image/png', + 'pnm' => 'image/x-portable-anymap', + 'portpkg' => 'application/vnd.macports.portpkg', + 'pot' => 'application/vnd.ms-powerpoint', + 'potm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', + 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', + 'ppa' => 'application/vnd.ms-powerpoint', + 'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12', + 'ppd' => 'application/vnd.cups-ppd', + 'ppm' => 'image/x-portable-pixmap', + 'pps' => 'application/vnd.ms-powerpoint', + 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', + 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', + 'ppt' => 'application/powerpoint', + 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', + 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'pqa' => 'application/vnd.palm', + 'prc' => 'model/prc', + 'pre' => 'application/vnd.lotus-freelance', + 'prf' => 'application/pics-rules', + 'provx' => 'application/provenance+xml', + 'ps' => 'application/postscript', + 'psb' => 'application/vnd.3gpp.pic-bw-small', + 'psd' => 'application/x-photoshop', + 'psf' => 'application/x-font-linux-psf', + 'pskcxml' => 'application/pskc+xml', + 'pti' => 'image/prs.pti', + 'ptid' => 'application/vnd.pvi.ptid1', + 'pub' => 'application/x-mspublisher', + 'pvb' => 'application/vnd.3gpp.pic-bw-var', + 'pwn' => 'application/vnd.3m.post-it-notes', + 'pya' => 'audio/vnd.ms-playready.media.pya', + 'pyo' => 'model/vnd.pytha.pyox', + 'pyox' => 'model/vnd.pytha.pyox', + 'pyv' => 'video/vnd.ms-playready.media.pyv', + 'qam' => 'application/vnd.epson.quickanime', + 'qbo' => 'application/vnd.intu.qbo', + 'qfx' => 'application/vnd.intu.qfx', + 'qps' => 'application/vnd.publishare-delta-tree', + 'qt' => 'video/quicktime', + 'qwd' => 'application/vnd.quark.quarkxpress', + 'qwt' => 'application/vnd.quark.quarkxpress', + 'qxb' => 'application/vnd.quark.quarkxpress', + 'qxd' => 'application/vnd.quark.quarkxpress', + 'qxl' => 'application/vnd.quark.quarkxpress', + 'qxt' => 'application/vnd.quark.quarkxpress', + 'ra' => 'audio/x-realaudio', + 'ram' => 'audio/x-pn-realaudio', + 'raml' => 'application/raml+yaml', + 'rapd' => 'application/route-apd+xml', + 'rar' => 'application/x-rar', + 'ras' => 'image/x-cmu-raster', + 'rcprofile' => 'application/vnd.ipunplugged.rcprofile', + 'rdf' => 'application/rdf+xml', + 'rdz' => 'application/vnd.data-vision.rdz', + 'relo' => 'application/p2p-overlay+xml', + 'rep' => 'application/vnd.businessobjects', + 'res' => 'application/x-dtbresource+xml', + 'rgb' => 'image/x-rgb', + 'rif' => 'application/reginfo+xml', + 'rip' => 'audio/vnd.rip', + 'ris' => 'application/x-research-info-systems', + 'rl' => 'application/resource-lists+xml', + 'rlc' => 'image/vnd.fujixerox.edmics-rlc', + 'rld' => 'application/resource-lists-diff+xml', + 'rm' => 'audio/x-pn-realaudio', + 'rmi' => 'audio/midi', + 'rmp' => 'audio/x-pn-realaudio-plugin', + 'rms' => 'application/vnd.jcp.javame.midlet-rms', + 'rmvb' => 'application/vnd.rn-realmedia-vbr', + 'rnc' => 'application/relax-ng-compact-syntax', + 'rng' => 'application/xml', + 'roa' => 'application/rpki-roa', + 'roff' => 'text/troff', + 'rp9' => 'application/vnd.cloanto.rp9', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'rpss' => 'application/vnd.nokia.radio-presets', + 'rpst' => 'application/vnd.nokia.radio-preset', + 'rq' => 'application/sparql-query', + 'rs' => 'application/rls-services+xml', + 'rsa' => 'application/x-pkcs7', + 'rsat' => 'application/atsc-rsat+xml', + 'rsd' => 'application/rsd+xml', + 'rsheet' => 'application/urc-ressheet+xml', + 'rss' => 'application/rss+xml', + 'rtf' => 'text/rtf', + 'rtx' => 'text/richtext', + 'run' => 'application/x-makeself', + 'rusd' => 'application/route-usd+xml', + 'rv' => 'video/vnd.rn-realvideo', + 's' => 'text/x-asm', + 's3m' => 'audio/s3m', + 'saf' => 'application/vnd.yamaha.smaf-audio', + 'sass' => 'text/x-sass', + 'sbml' => 'application/sbml+xml', + 'sc' => 'application/vnd.ibm.secure-container', + 'scd' => 'application/x-msschedule', + 'scm' => 'application/vnd.lotus-screencam', + 'scq' => 'application/scvp-cv-request', + 'scs' => 'application/scvp-cv-response', + 'scss' => 'text/x-scss', + 'scurl' => 'text/vnd.curl.scurl', + 'sda' => 'application/vnd.stardivision.draw', + 'sdc' => 'application/vnd.stardivision.calc', + 'sdd' => 'application/vnd.stardivision.impress', + 'sdkd' => 'application/vnd.solent.sdkm+xml', + 'sdkm' => 'application/vnd.solent.sdkm+xml', + 'sdp' => 'application/sdp', + 'sdw' => 'application/vnd.stardivision.writer', + 'sea' => 'application/octet-stream', + 'see' => 'application/vnd.seemail', + 'seed' => 'application/vnd.fdsn.seed', + 'sema' => 'application/vnd.sema', + 'semd' => 'application/vnd.semd', + 'semf' => 'application/vnd.semf', + 'senmlx' => 'application/senml+xml', + 'sensmlx' => 'application/sensml+xml', + 'ser' => 'application/java-serialized-object', + 'setpay' => 'application/set-payment-initiation', + 'setreg' => 'application/set-registration-initiation', + 'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data', + 'sfs' => 'application/vnd.spotfire.sfs', + 'sfv' => 'text/x-sfv', + 'sgi' => 'image/sgi', + 'sgl' => 'application/vnd.stardivision.writer-global', + 'sgm' => 'text/sgml', + 'sgml' => 'text/sgml', + 'sh' => 'application/x-sh', + 'shar' => 'application/x-shar', + 'shex' => 'text/shex', + 'shf' => 'application/shf+xml', + 'shtml' => 'text/html', + 'sid' => 'image/x-mrsid-image', + 'sieve' => 'application/sieve', + 'sig' => 'application/pgp-signature', + 'sil' => 'audio/silk', + 'silo' => 'model/mesh', + 'sis' => 'application/vnd.symbian.install', + 'sisx' => 'application/vnd.symbian.install', + 'sit' => 'application/x-stuffit', + 'sitx' => 'application/x-stuffitx', + 'siv' => 'application/sieve', + 'skd' => 'application/vnd.koan', + 'skm' => 'application/vnd.koan', + 'skp' => 'application/vnd.koan', + 'skt' => 'application/vnd.koan', + 'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12', + 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', + 'slim' => 'text/slim', + 'slm' => 'text/slim', + 'sls' => 'application/route-s-tsid+xml', + 'slt' => 'application/vnd.epson.salt', + 'sm' => 'application/vnd.stepmania.stepchart', + 'smf' => 'application/vnd.stardivision.math', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'smv' => 'video/x-smv', + 'smzip' => 'application/vnd.stepmania.package', + 'snd' => 'audio/basic', + 'snf' => 'application/x-font-snf', + 'so' => 'application/octet-stream', + 'spc' => 'application/x-pkcs7-certificates', + 'spdx' => 'text/spdx', + 'spf' => 'application/vnd.yamaha.smaf-phrase', + 'spl' => 'application/x-futuresplash', + 'spot' => 'text/vnd.in3d.spot', + 'spp' => 'application/scvp-vp-response', + 'spq' => 'application/scvp-vp-request', + 'spx' => 'audio/ogg', + 'sql' => 'application/x-sql', + 'src' => 'application/x-wais-source', + 'srt' => 'application/x-subrip', + 'sru' => 'application/sru+xml', + 'srx' => 'application/sparql-results+xml', + 'ssdl' => 'application/ssdl+xml', + 'sse' => 'application/vnd.kodak-descriptor', + 'ssf' => 'application/vnd.epson.ssf', + 'ssml' => 'application/ssml+xml', + 'sst' => 'application/octet-stream', + 'st' => 'application/vnd.sailingtracker.track', + 'stc' => 'application/vnd.sun.xml.calc.template', + 'std' => 'application/vnd.sun.xml.draw.template', + 'step' => 'application/STEP', + 'stf' => 'application/vnd.wt.stf', + 'sti' => 'application/vnd.sun.xml.impress.template', + 'stk' => 'application/hyperstudio', + 'stl' => 'model/stl', + 'stp' => 'application/STEP', + 'stpx' => 'model/step+xml', + 'stpxz' => 'model/step-xml+zip', + 'stpz' => 'model/step+zip', + 'str' => 'application/vnd.pg.format', + 'stw' => 'application/vnd.sun.xml.writer.template', + 'styl' => 'text/stylus', + 'stylus' => 'text/stylus', + 'sub' => 'text/vnd.dvb.subtitle', + 'sus' => 'application/vnd.sus-calendar', + 'susp' => 'application/vnd.sus-calendar', + 'sv4cpio' => 'application/x-sv4cpio', + 'sv4crc' => 'application/x-sv4crc', + 'svc' => 'application/vnd.dvb.service', + 'svd' => 'application/vnd.svd', + 'svg' => 'image/svg+xml', + 'svgz' => 'image/svg+xml', + 'swa' => 'application/x-director', + 'swf' => 'application/x-shockwave-flash', + 'swi' => 'application/vnd.aristanetworks.swi', + 'swidtag' => 'application/swid+xml', + 'sxc' => 'application/vnd.sun.xml.calc', + 'sxd' => 'application/vnd.sun.xml.draw', + 'sxg' => 'application/vnd.sun.xml.writer.global', + 'sxi' => 'application/vnd.sun.xml.impress', + 'sxm' => 'application/vnd.sun.xml.math', + 'sxw' => 'application/vnd.sun.xml.writer', + 't' => 'text/troff', + 't3' => 'application/x-t3vm-image', + 't38' => 'image/t38', + 'taglet' => 'application/vnd.mynfc', + 'tao' => 'application/vnd.tao.intent-module-archive', + 'tap' => 'image/vnd.tencent.tap', + 'tar' => 'application/x-tar', + 'tcap' => 'application/vnd.3gpp2.tcap', + 'tcl' => 'application/x-tcl', + 'td' => 'application/urc-targetdesc+xml', + 'teacher' => 'application/vnd.smart.teacher', + 'tei' => 'application/tei+xml', + 'teicorpus' => 'application/tei+xml', + 'tex' => 'application/x-tex', + 'texi' => 'application/x-texinfo', + 'texinfo' => 'application/x-texinfo', + 'text' => 'text/plain', + 'tfi' => 'application/thraud+xml', + 'tfm' => 'application/x-tex-tfm', + 'tfx' => 'image/tiff-fx', + 'tga' => 'image/x-tga', + 'tgz' => 'application/x-tar', + 'thmx' => 'application/vnd.ms-officetheme', + 'tif' => 'image/tiff', + 'tiff' => 'image/tiff', + 'tk' => 'application/x-tcl', + 'tmo' => 'application/vnd.tmobile-livetv', + 'toml' => 'application/toml', + 'torrent' => 'application/x-bittorrent', + 'tpl' => 'application/vnd.groove-tool-template', + 'tpt' => 'application/vnd.trid.tpt', + 'tr' => 'text/troff', + 'tra' => 'application/vnd.trueapp', + 'trig' => 'application/trig', + 'trm' => 'application/x-msterminal', + 'ts' => 'video/mp2t', + 'tsd' => 'application/timestamped-data', + 'tsv' => 'text/tab-separated-values', + 'ttc' => 'font/collection', + 'ttf' => 'font/ttf', + 'ttl' => 'text/turtle', + 'ttml' => 'application/ttml+xml', + 'twd' => 'application/vnd.simtech-mindmapper', + 'twds' => 'application/vnd.simtech-mindmapper', + 'txd' => 'application/vnd.genomatix.tuxedo', + 'txf' => 'application/vnd.mobius.txf', + 'txt' => 'text/plain', + 'u3d' => 'model/u3d', + 'u8dsn' => 'message/global-delivery-status', + 'u8hdr' => 'message/global-headers', + 'u8mdn' => 'message/global-disposition-notification', + 'u8msg' => 'message/global', + 'u32' => 'application/x-authorware-bin', + 'ubj' => 'application/ubjson', + 'udeb' => 'application/x-debian-package', + 'ufd' => 'application/vnd.ufdl', + 'ufdl' => 'application/vnd.ufdl', + 'ulx' => 'application/x-glulx', + 'umj' => 'application/vnd.umajin', + 'unityweb' => 'application/vnd.unity', + 'uo' => 'application/vnd.uoml+xml', + 'uoml' => 'application/vnd.uoml+xml', + 'uri' => 'text/uri-list', + 'uris' => 'text/uri-list', + 'urls' => 'text/uri-list', + 'usda' => 'model/vnd.usda', + 'usdz' => 'model/vnd.usdz+zip', + 'ustar' => 'application/x-ustar', + 'utz' => 'application/vnd.uiq.theme', + 'uu' => 'text/x-uuencode', + 'uva' => 'audio/vnd.dece.audio', + 'uvd' => 'application/vnd.dece.data', + 'uvf' => 'application/vnd.dece.data', + 'uvg' => 'image/vnd.dece.graphic', + 'uvh' => 'video/vnd.dece.hd', + 'uvi' => 'image/vnd.dece.graphic', + 'uvm' => 'video/vnd.dece.mobile', + 'uvp' => 'video/vnd.dece.pd', + 'uvs' => 'video/vnd.dece.sd', + 'uvt' => 'application/vnd.dece.ttml+xml', + 'uvu' => 'video/vnd.uvvu.mp4', + 'uvv' => 'video/vnd.dece.video', + 'uvva' => 'audio/vnd.dece.audio', + 'uvvd' => 'application/vnd.dece.data', + 'uvvf' => 'application/vnd.dece.data', + 'uvvg' => 'image/vnd.dece.graphic', + 'uvvh' => 'video/vnd.dece.hd', + 'uvvi' => 'image/vnd.dece.graphic', + 'uvvm' => 'video/vnd.dece.mobile', + 'uvvp' => 'video/vnd.dece.pd', + 'uvvs' => 'video/vnd.dece.sd', + 'uvvt' => 'application/vnd.dece.ttml+xml', + 'uvvu' => 'video/vnd.uvvu.mp4', + 'uvvv' => 'video/vnd.dece.video', + 'uvvx' => 'application/vnd.dece.unspecified', + 'uvvz' => 'application/vnd.dece.zip', + 'uvx' => 'application/vnd.dece.unspecified', + 'uvz' => 'application/vnd.dece.zip', + 'vbox' => 'application/x-virtualbox-vbox', + 'vbox-extpack' => 'application/x-virtualbox-vbox-extpack', + 'vcard' => 'text/vcard', + 'vcd' => 'application/x-cdlink', + 'vcf' => 'text/x-vcard', + 'vcg' => 'application/vnd.groove-vcard', + 'vcs' => 'text/x-vcalendar', + 'vcx' => 'application/vnd.vcx', + 'vdi' => 'application/x-virtualbox-vdi', + 'vds' => 'model/vnd.sap.vds', + 'vhd' => 'application/x-virtualbox-vhd', + 'vis' => 'application/vnd.visionary', + 'viv' => 'video/vnd.vivo', + 'vlc' => 'application/videolan', + 'vmdk' => 'application/x-virtualbox-vmdk', + 'vob' => 'video/x-ms-vob', + 'vor' => 'application/vnd.stardivision.writer', + 'vox' => 'application/x-authorware-bin', + 'vrml' => 'model/vrml', + 'vsd' => 'application/vnd.visio', + 'vsf' => 'application/vnd.vsf', + 'vss' => 'application/vnd.visio', + 'vst' => 'application/vnd.visio', + 'vsw' => 'application/vnd.visio', + 'vtf' => 'image/vnd.valve.source.texture', + 'vtt' => 'text/vtt', + 'vtu' => 'model/vnd.vtu', + 'vxml' => 'application/voicexml+xml', + 'w3d' => 'application/x-director', + 'wad' => 'application/x-doom', + 'wadl' => 'application/vnd.sun.wadl+xml', + 'war' => 'application/java-archive', + 'wasm' => 'application/wasm', + 'wav' => 'audio/x-wav', + 'wax' => 'audio/x-ms-wax', + 'wbmp' => 'image/vnd.wap.wbmp', + 'wbs' => 'application/vnd.criticaltools.wbs+xml', + 'wbxml' => 'application/wbxml', + 'wcm' => 'application/vnd.ms-works', + 'wdb' => 'application/vnd.ms-works', + 'wdp' => 'image/vnd.ms-photo', + 'weba' => 'audio/webm', + 'webapp' => 'application/x-web-app-manifest+json', + 'webm' => 'video/webm', + 'webmanifest' => 'application/manifest+json', + 'webp' => 'image/webp', + 'wg' => 'application/vnd.pmi.widget', + 'wgsl' => 'text/wgsl', + 'wgt' => 'application/widget', + 'wif' => 'application/watcherinfo+xml', + 'wks' => 'application/vnd.ms-works', + 'wm' => 'video/x-ms-wm', + 'wma' => 'audio/x-ms-wma', + 'wmd' => 'application/x-ms-wmd', + 'wmf' => 'image/wmf', + 'wml' => 'text/vnd.wap.wml', + 'wmlc' => 'application/wmlc', + 'wmls' => 'text/vnd.wap.wmlscript', + 'wmlsc' => 'application/vnd.wap.wmlscriptc', + 'wmv' => 'video/x-ms-wmv', + 'wmx' => 'video/x-ms-wmx', + 'wmz' => 'application/x-msmetafile', + 'woff' => 'font/woff', + 'woff2' => 'font/woff2', + 'word' => 'application/msword', + 'wpd' => 'application/vnd.wordperfect', + 'wpl' => 'application/vnd.ms-wpl', + 'wps' => 'application/vnd.ms-works', + 'wqd' => 'application/vnd.wqd', + 'wri' => 'application/x-mswrite', + 'wrl' => 'model/vrml', + 'wsc' => 'message/vnd.wfa.wsc', + 'wsdl' => 'application/wsdl+xml', + 'wspolicy' => 'application/wspolicy+xml', + 'wtb' => 'application/vnd.webturbo', + 'wvx' => 'video/x-ms-wvx', + 'x3d' => 'model/x3d+xml', + 'x3db' => 'model/x3d+fastinfoset', + 'x3dbz' => 'model/x3d+binary', + 'x3dv' => 'model/x3d-vrml', + 'x3dvz' => 'model/x3d+vrml', + 'x3dz' => 'model/x3d+xml', + 'x32' => 'application/x-authorware-bin', + 'x_b' => 'model/vnd.parasolid.transmit.binary', + 'x_t' => 'model/vnd.parasolid.transmit.text', + 'xaml' => 'application/xaml+xml', + 'xap' => 'application/x-silverlight-app', + 'xar' => 'application/vnd.xara', + 'xav' => 'application/xcap-att+xml', + 'xbap' => 'application/x-ms-xbap', + 'xbd' => 'application/vnd.fujixerox.docuworks.binder', + 'xbm' => 'image/x-xbitmap', + 'xca' => 'application/xcap-caps+xml', + 'xcs' => 'application/calendar+xml', + 'xdf' => 'application/xcap-diff+xml', + 'xdm' => 'application/vnd.syncml.dm+xml', + 'xdp' => 'application/vnd.adobe.xdp+xml', + 'xdssc' => 'application/dssc+xml', + 'xdw' => 'application/vnd.fujixerox.docuworks', + 'xel' => 'application/xcap-el+xml', + 'xenc' => 'application/xenc+xml', + 'xer' => 'application/patch-ops-error+xml', + 'xfdf' => 'application/xfdf', + 'xfdl' => 'application/vnd.xfdl', + 'xht' => 'application/xhtml+xml', + 'xhtm' => 'application/vnd.pwg-xhtml-print+xml', + 'xhtml' => 'application/xhtml+xml', + 'xhvml' => 'application/xv+xml', + 'xif' => 'image/vnd.xiff', + 'xl' => 'application/excel', + 'xla' => 'application/vnd.ms-excel', + 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', + 'xlc' => 'application/vnd.ms-excel', + 'xlf' => 'application/xliff+xml', + 'xlm' => 'application/vnd.ms-excel', + 'xls' => 'application/vnd.ms-excel', + 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', + 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'xlt' => 'application/vnd.ms-excel', + 'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12', + 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', + 'xlw' => 'application/vnd.ms-excel', + 'xm' => 'audio/xm', + 'xml' => 'application/xml', + 'xns' => 'application/xcap-ns+xml', + 'xo' => 'application/vnd.olpc-sugar', + 'xop' => 'application/xop+xml', + 'xpi' => 'application/x-xpinstall', + 'xpl' => 'application/xproc+xml', + 'xpm' => 'image/x-xpixmap', + 'xpr' => 'application/vnd.is-xpr', + 'xps' => 'application/vnd.ms-xpsdocument', + 'xpw' => 'application/vnd.intercon.formnet', + 'xpx' => 'application/vnd.intercon.formnet', + 'xsd' => 'application/xml', + 'xsf' => 'application/prs.xsf+xml', + 'xsl' => 'application/xml', + 'xslt' => 'application/xslt+xml', + 'xsm' => 'application/vnd.syncml+xml', + 'xspf' => 'application/xspf+xml', + 'xul' => 'application/vnd.mozilla.xul+xml', + 'xvm' => 'application/xv+xml', + 'xvml' => 'application/xv+xml', + 'xwd' => 'image/x-xwindowdump', + 'xyz' => 'chemical/x-xyz', + 'xz' => 'application/x-xz', + 'yaml' => 'text/yaml', + 'yang' => 'application/yang', + 'yin' => 'application/yin+xml', + 'yml' => 'text/yaml', + 'ymp' => 'text/x-suse-ymp', + 'z' => 'application/x-compress', + 'z1' => 'application/x-zmachine', + 'z2' => 'application/x-zmachine', + 'z3' => 'application/x-zmachine', + 'z4' => 'application/x-zmachine', + 'z5' => 'application/x-zmachine', + 'z6' => 'application/x-zmachine', + 'z7' => 'application/x-zmachine', + 'z8' => 'application/x-zmachine', + 'zaz' => 'application/vnd.zzazz.deck+xml', + 'zip' => 'application/zip', + 'zir' => 'application/vnd.zul', + 'zirz' => 'application/vnd.zul', + 'zmm' => 'application/vnd.handheld-entertainment+xml', + 'zsh' => 'text/x-scriptzsh', + ]; + + /** + * Determines the mimetype of a file by looking at its extension. + * + * @see https://raw.githubusercontent.com/jshttp/mime-db/master/db.json + */ + public static function fromFilename(string $filename): ?string + { + return self::fromExtension(pathinfo($filename, PATHINFO_EXTENSION)); + } + + /** + * Maps a file extensions to a mimetype. + * + * @see https://raw.githubusercontent.com/jshttp/mime-db/master/db.json + */ + public static function fromExtension(string $extension): ?string + { + return self::MIME_TYPES[strtolower($extension)] ?? null; + } +} diff --git a/vendor/guzzlehttp/psr7/src/MultipartStream.php b/vendor/guzzlehttp/psr7/src/MultipartStream.php new file mode 100644 index 000000000..41c48eef8 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/MultipartStream.php @@ -0,0 +1,157 @@ +boundary = $boundary ?: bin2hex(random_bytes(20)); + $this->stream = $this->createStream($elements); + } + + public function getBoundary(): string + { + return $this->boundary; + } + + public function isWritable(): bool + { + return false; + } + + /** + * Get the headers needed before transferring the content of a POST file + * + * @param array $headers + */ + private function getHeaders(array $headers): string + { + $str = ''; + foreach ($headers as $key => $value) { + $str .= "{$key}: {$value}\r\n"; + } + + return "--{$this->boundary}\r\n".trim($str)."\r\n\r\n"; + } + + /** + * Create the aggregate stream that will be used to upload the POST data + */ + protected function createStream(array $elements = []): StreamInterface + { + $stream = new AppendStream(); + + foreach ($elements as $element) { + if (!is_array($element)) { + throw new \UnexpectedValueException('An array is expected'); + } + $this->addElement($stream, $element); + } + + // Add the trailing boundary with CRLF + $stream->addStream(Utils::streamFor("--{$this->boundary}--\r\n")); + + return $stream; + } + + private function addElement(AppendStream $stream, array $element): void + { + foreach (['contents', 'name'] as $key) { + if (!array_key_exists($key, $element)) { + throw new \InvalidArgumentException("A '{$key}' key is required"); + } + } + + $element['contents'] = Utils::streamFor($element['contents']); + + if (empty($element['filename'])) { + $uri = $element['contents']->getMetadata('uri'); + if ($uri && \is_string($uri) && \substr($uri, 0, 6) !== 'php://' && \substr($uri, 0, 7) !== 'data://') { + $element['filename'] = $uri; + } + } + + [$body, $headers] = $this->createElement( + $element['name'], + $element['contents'], + $element['filename'] ?? null, + $element['headers'] ?? [] + ); + + $stream->addStream(Utils::streamFor($this->getHeaders($headers))); + $stream->addStream($body); + $stream->addStream(Utils::streamFor("\r\n")); + } + + private function createElement(string $name, StreamInterface $stream, ?string $filename, array $headers): array + { + // Set a default content-disposition header if one was no provided + $disposition = $this->getHeader($headers, 'content-disposition'); + if (!$disposition) { + $headers['Content-Disposition'] = ($filename === '0' || $filename) + ? sprintf( + 'form-data; name="%s"; filename="%s"', + $name, + basename($filename) + ) + : "form-data; name=\"{$name}\""; + } + + // Set a default content-length header if one was no provided + $length = $this->getHeader($headers, 'content-length'); + if (!$length) { + if ($length = $stream->getSize()) { + $headers['Content-Length'] = (string) $length; + } + } + + // Set a default Content-Type if one was not supplied + $type = $this->getHeader($headers, 'content-type'); + if (!$type && ($filename === '0' || $filename)) { + $headers['Content-Type'] = MimeType::fromFilename($filename) ?? 'application/octet-stream'; + } + + return [$stream, $headers]; + } + + private function getHeader(array $headers, string $key) + { + $lowercaseHeader = strtolower($key); + foreach ($headers as $k => $v) { + if (strtolower($k) === $lowercaseHeader) { + return $v; + } + } + + return null; + } +} diff --git a/vendor/guzzlehttp/psr7/src/NoSeekStream.php b/vendor/guzzlehttp/psr7/src/NoSeekStream.php new file mode 100644 index 000000000..161a224f0 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/NoSeekStream.php @@ -0,0 +1,28 @@ +source = $source; + $this->size = $options['size'] ?? null; + $this->metadata = $options['metadata'] ?? []; + $this->buffer = new BufferStream(); + } + + public function __toString(): string + { + try { + return Utils::copyToString($this); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + + return ''; + } + } + + public function close(): void + { + $this->detach(); + } + + public function detach() + { + $this->tellPos = 0; + $this->source = null; + + return null; + } + + public function getSize(): ?int + { + return $this->size; + } + + public function tell(): int + { + return $this->tellPos; + } + + public function eof(): bool + { + return $this->source === null; + } + + public function isSeekable(): bool + { + return false; + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + throw new \RuntimeException('Cannot seek a PumpStream'); + } + + public function isWritable(): bool + { + return false; + } + + public function write($string): int + { + throw new \RuntimeException('Cannot write to a PumpStream'); + } + + public function isReadable(): bool + { + return true; + } + + public function read($length): string + { + $data = $this->buffer->read($length); + $readLen = strlen($data); + $this->tellPos += $readLen; + $remaining = $length - $readLen; + + if ($remaining) { + $this->pump($remaining); + $data .= $this->buffer->read($remaining); + $this->tellPos += strlen($data) - $readLen; + } + + return $data; + } + + public function getContents(): string + { + $result = ''; + while (!$this->eof()) { + $result .= $this->read(1000000); + } + + return $result; + } + + /** + * @return mixed + */ + public function getMetadata($key = null) + { + if (!$key) { + return $this->metadata; + } + + return $this->metadata[$key] ?? null; + } + + private function pump(int $length): void + { + if ($this->source) { + do { + $data = call_user_func($this->source, $length); + if ($data === false || $data === null) { + $this->source = null; + + return; + } + $this->buffer->write($data); + $length -= strlen($data); + } while ($length > 0); + } + } +} diff --git a/vendor/guzzlehttp/psr7/src/Query.php b/vendor/guzzlehttp/psr7/src/Query.php new file mode 100644 index 000000000..8b9492797 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Query.php @@ -0,0 +1,113 @@ + '1', 'foo[b]' => '2'])`. + * + * @param string $str Query string to parse + * @param int|bool $urlEncoding How the query string is encoded + */ + public static function parse(string $str, $urlEncoding = true): array + { + $result = []; + + if ($str === '') { + return $result; + } + + if ($urlEncoding === true) { + $decoder = function ($value) { + return rawurldecode(str_replace('+', ' ', (string) $value)); + }; + } elseif ($urlEncoding === PHP_QUERY_RFC3986) { + $decoder = 'rawurldecode'; + } elseif ($urlEncoding === PHP_QUERY_RFC1738) { + $decoder = 'urldecode'; + } else { + $decoder = function ($str) { + return $str; + }; + } + + foreach (explode('&', $str) as $kvp) { + $parts = explode('=', $kvp, 2); + $key = $decoder($parts[0]); + $value = isset($parts[1]) ? $decoder($parts[1]) : null; + if (!array_key_exists($key, $result)) { + $result[$key] = $value; + } else { + if (!is_array($result[$key])) { + $result[$key] = [$result[$key]]; + } + $result[$key][] = $value; + } + } + + return $result; + } + + /** + * Build a query string from an array of key value pairs. + * + * This function can use the return value of `parse()` to build a query + * string. This function does not modify the provided keys when an array is + * encountered (like `http_build_query()` would). + * + * @param array $params Query string parameters. + * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 + * to encode using RFC3986, or PHP_QUERY_RFC1738 + * to encode using RFC1738. + */ + public static function build(array $params, $encoding = PHP_QUERY_RFC3986): string + { + if (!$params) { + return ''; + } + + if ($encoding === false) { + $encoder = function (string $str): string { + return $str; + }; + } elseif ($encoding === PHP_QUERY_RFC3986) { + $encoder = 'rawurlencode'; + } elseif ($encoding === PHP_QUERY_RFC1738) { + $encoder = 'urlencode'; + } else { + throw new \InvalidArgumentException('Invalid type'); + } + + $qs = ''; + foreach ($params as $k => $v) { + $k = $encoder((string) $k); + if (!is_array($v)) { + $qs .= $k; + $v = is_bool($v) ? (int) $v : $v; + if ($v !== null) { + $qs .= '='.$encoder((string) $v); + } + $qs .= '&'; + } else { + foreach ($v as $vv) { + $qs .= $k; + $vv = is_bool($vv) ? (int) $vv : $vv; + if ($vv !== null) { + $qs .= '='.$encoder((string) $vv); + } + $qs .= '&'; + } + } + } + + return $qs ? (string) substr($qs, 0, -1) : ''; + } +} diff --git a/vendor/guzzlehttp/psr7/src/Request.php b/vendor/guzzlehttp/psr7/src/Request.php new file mode 100644 index 000000000..db29d95d3 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Request.php @@ -0,0 +1,159 @@ + $headers Request headers + * @param string|resource|StreamInterface|null $body Request body + * @param string $version Protocol version + */ + public function __construct( + string $method, + $uri, + array $headers = [], + $body = null, + string $version = '1.1' + ) { + $this->assertMethod($method); + if (!($uri instanceof UriInterface)) { + $uri = new Uri($uri); + } + + $this->method = strtoupper($method); + $this->uri = $uri; + $this->setHeaders($headers); + $this->protocol = $version; + + if (!isset($this->headerNames['host'])) { + $this->updateHostFromUri(); + } + + if ($body !== '' && $body !== null) { + $this->stream = Utils::streamFor($body); + } + } + + public function getRequestTarget(): string + { + if ($this->requestTarget !== null) { + return $this->requestTarget; + } + + $target = $this->uri->getPath(); + if ($target === '') { + $target = '/'; + } + if ($this->uri->getQuery() != '') { + $target .= '?'.$this->uri->getQuery(); + } + + return $target; + } + + public function withRequestTarget($requestTarget): RequestInterface + { + if (preg_match('#\s#', $requestTarget)) { + throw new InvalidArgumentException( + 'Invalid request target provided; cannot contain whitespace' + ); + } + + $new = clone $this; + $new->requestTarget = $requestTarget; + + return $new; + } + + public function getMethod(): string + { + return $this->method; + } + + public function withMethod($method): RequestInterface + { + $this->assertMethod($method); + $new = clone $this; + $new->method = strtoupper($method); + + return $new; + } + + public function getUri(): UriInterface + { + return $this->uri; + } + + public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface + { + if ($uri === $this->uri) { + return $this; + } + + $new = clone $this; + $new->uri = $uri; + + if (!$preserveHost || !isset($this->headerNames['host'])) { + $new->updateHostFromUri(); + } + + return $new; + } + + private function updateHostFromUri(): void + { + $host = $this->uri->getHost(); + + if ($host == '') { + return; + } + + if (($port = $this->uri->getPort()) !== null) { + $host .= ':'.$port; + } + + if (isset($this->headerNames['host'])) { + $header = $this->headerNames['host']; + } else { + $header = 'Host'; + $this->headerNames['host'] = 'Host'; + } + // Ensure Host is the first header. + // See: http://tools.ietf.org/html/rfc7230#section-5.4 + $this->headers = [$header => [$host]] + $this->headers; + } + + /** + * @param mixed $method + */ + private function assertMethod($method): void + { + if (!is_string($method) || $method === '') { + throw new InvalidArgumentException('Method must be a non-empty string.'); + } + } +} diff --git a/vendor/guzzlehttp/psr7/src/Response.php b/vendor/guzzlehttp/psr7/src/Response.php new file mode 100644 index 000000000..8fc11478b --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Response.php @@ -0,0 +1,161 @@ + 'Continue', + 101 => 'Switching Protocols', + 102 => 'Processing', + 200 => 'OK', + 201 => 'Created', + 202 => 'Accepted', + 203 => 'Non-Authoritative Information', + 204 => 'No Content', + 205 => 'Reset Content', + 206 => 'Partial Content', + 207 => 'Multi-status', + 208 => 'Already Reported', + 300 => 'Multiple Choices', + 301 => 'Moved Permanently', + 302 => 'Found', + 303 => 'See Other', + 304 => 'Not Modified', + 305 => 'Use Proxy', + 306 => 'Switch Proxy', + 307 => 'Temporary Redirect', + 308 => 'Permanent Redirect', + 400 => 'Bad Request', + 401 => 'Unauthorized', + 402 => 'Payment Required', + 403 => 'Forbidden', + 404 => 'Not Found', + 405 => 'Method Not Allowed', + 406 => 'Not Acceptable', + 407 => 'Proxy Authentication Required', + 408 => 'Request Time-out', + 409 => 'Conflict', + 410 => 'Gone', + 411 => 'Length Required', + 412 => 'Precondition Failed', + 413 => 'Request Entity Too Large', + 414 => 'Request-URI Too Large', + 415 => 'Unsupported Media Type', + 416 => 'Requested range not satisfiable', + 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', + 422 => 'Unprocessable Entity', + 423 => 'Locked', + 424 => 'Failed Dependency', + 425 => 'Unordered Collection', + 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', + 451 => 'Unavailable For Legal Reasons', + 500 => 'Internal Server Error', + 501 => 'Not Implemented', + 502 => 'Bad Gateway', + 503 => 'Service Unavailable', + 504 => 'Gateway Time-out', + 505 => 'HTTP Version not supported', + 506 => 'Variant Also Negotiates', + 507 => 'Insufficient Storage', + 508 => 'Loop Detected', + 510 => 'Not Extended', + 511 => 'Network Authentication Required', + ]; + + /** @var string */ + private $reasonPhrase; + + /** @var int */ + private $statusCode; + + /** + * @param int $status Status code + * @param array $headers Response headers + * @param string|resource|StreamInterface|null $body Response body + * @param string $version Protocol version + * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) + */ + public function __construct( + int $status = 200, + array $headers = [], + $body = null, + string $version = '1.1', + string $reason = null + ) { + $this->assertStatusCodeRange($status); + + $this->statusCode = $status; + + if ($body !== '' && $body !== null) { + $this->stream = Utils::streamFor($body); + } + + $this->setHeaders($headers); + if ($reason == '' && isset(self::PHRASES[$this->statusCode])) { + $this->reasonPhrase = self::PHRASES[$this->statusCode]; + } else { + $this->reasonPhrase = (string) $reason; + } + + $this->protocol = $version; + } + + public function getStatusCode(): int + { + return $this->statusCode; + } + + public function getReasonPhrase(): string + { + return $this->reasonPhrase; + } + + public function withStatus($code, $reasonPhrase = ''): ResponseInterface + { + $this->assertStatusCodeIsInteger($code); + $code = (int) $code; + $this->assertStatusCodeRange($code); + + $new = clone $this; + $new->statusCode = $code; + if ($reasonPhrase == '' && isset(self::PHRASES[$new->statusCode])) { + $reasonPhrase = self::PHRASES[$new->statusCode]; + } + $new->reasonPhrase = (string) $reasonPhrase; + + return $new; + } + + /** + * @param mixed $statusCode + */ + private function assertStatusCodeIsInteger($statusCode): void + { + if (filter_var($statusCode, FILTER_VALIDATE_INT) === false) { + throw new \InvalidArgumentException('Status code must be an integer value.'); + } + } + + private function assertStatusCodeRange(int $statusCode): void + { + if ($statusCode < 100 || $statusCode >= 600) { + throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.'); + } + } +} diff --git a/vendor/guzzlehttp/psr7/src/Rfc7230.php b/vendor/guzzlehttp/psr7/src/Rfc7230.php new file mode 100644 index 000000000..8219dba4d --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Rfc7230.php @@ -0,0 +1,23 @@ +@,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; + public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; +} diff --git a/vendor/guzzlehttp/psr7/src/ServerRequest.php b/vendor/guzzlehttp/psr7/src/ServerRequest.php new file mode 100644 index 000000000..c852d96f5 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/ServerRequest.php @@ -0,0 +1,340 @@ + $headers Request headers + * @param string|resource|StreamInterface|null $body Request body + * @param string $version Protocol version + * @param array $serverParams Typically the $_SERVER superglobal + */ + public function __construct( + string $method, + $uri, + array $headers = [], + $body = null, + string $version = '1.1', + array $serverParams = [] + ) { + $this->serverParams = $serverParams; + + parent::__construct($method, $uri, $headers, $body, $version); + } + + /** + * Return an UploadedFile instance array. + * + * @param array $files An array which respect $_FILES structure + * + * @throws InvalidArgumentException for unrecognized values + */ + public static function normalizeFiles(array $files): array + { + $normalized = []; + + foreach ($files as $key => $value) { + if ($value instanceof UploadedFileInterface) { + $normalized[$key] = $value; + } elseif (is_array($value) && isset($value['tmp_name'])) { + $normalized[$key] = self::createUploadedFileFromSpec($value); + } elseif (is_array($value)) { + $normalized[$key] = self::normalizeFiles($value); + continue; + } else { + throw new InvalidArgumentException('Invalid value in files specification'); + } + } + + return $normalized; + } + + /** + * Create and return an UploadedFile instance from a $_FILES specification. + * + * If the specification represents an array of values, this method will + * delegate to normalizeNestedFileSpec() and return that return value. + * + * @param array $value $_FILES struct + * + * @return UploadedFileInterface|UploadedFileInterface[] + */ + private static function createUploadedFileFromSpec(array $value) + { + if (is_array($value['tmp_name'])) { + return self::normalizeNestedFileSpec($value); + } + + return new UploadedFile( + $value['tmp_name'], + (int) $value['size'], + (int) $value['error'], + $value['name'], + $value['type'] + ); + } + + /** + * Normalize an array of file specifications. + * + * Loops through all nested files and returns a normalized array of + * UploadedFileInterface instances. + * + * @return UploadedFileInterface[] + */ + private static function normalizeNestedFileSpec(array $files = []): array + { + $normalizedFiles = []; + + foreach (array_keys($files['tmp_name']) as $key) { + $spec = [ + 'tmp_name' => $files['tmp_name'][$key], + 'size' => $files['size'][$key] ?? null, + 'error' => $files['error'][$key] ?? null, + 'name' => $files['name'][$key] ?? null, + 'type' => $files['type'][$key] ?? null, + ]; + $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec); + } + + return $normalizedFiles; + } + + /** + * Return a ServerRequest populated with superglobals: + * $_GET + * $_POST + * $_COOKIE + * $_FILES + * $_SERVER + */ + public static function fromGlobals(): ServerRequestInterface + { + $method = $_SERVER['REQUEST_METHOD'] ?? 'GET'; + $headers = getallheaders(); + $uri = self::getUriFromGlobals(); + $body = new CachingStream(new LazyOpenStream('php://input', 'r+')); + $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; + + $serverRequest = new ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); + + return $serverRequest + ->withCookieParams($_COOKIE) + ->withQueryParams($_GET) + ->withParsedBody($_POST) + ->withUploadedFiles(self::normalizeFiles($_FILES)); + } + + private static function extractHostAndPortFromAuthority(string $authority): array + { + $uri = 'http://'.$authority; + $parts = parse_url($uri); + if (false === $parts) { + return [null, null]; + } + + $host = $parts['host'] ?? null; + $port = $parts['port'] ?? null; + + return [$host, $port]; + } + + /** + * Get a Uri populated with values from $_SERVER. + */ + public static function getUriFromGlobals(): UriInterface + { + $uri = new Uri(''); + + $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http'); + + $hasPort = false; + if (isset($_SERVER['HTTP_HOST'])) { + [$host, $port] = self::extractHostAndPortFromAuthority($_SERVER['HTTP_HOST']); + if ($host !== null) { + $uri = $uri->withHost($host); + } + + if ($port !== null) { + $hasPort = true; + $uri = $uri->withPort($port); + } + } elseif (isset($_SERVER['SERVER_NAME'])) { + $uri = $uri->withHost($_SERVER['SERVER_NAME']); + } elseif (isset($_SERVER['SERVER_ADDR'])) { + $uri = $uri->withHost($_SERVER['SERVER_ADDR']); + } + + if (!$hasPort && isset($_SERVER['SERVER_PORT'])) { + $uri = $uri->withPort($_SERVER['SERVER_PORT']); + } + + $hasQuery = false; + if (isset($_SERVER['REQUEST_URI'])) { + $requestUriParts = explode('?', $_SERVER['REQUEST_URI'], 2); + $uri = $uri->withPath($requestUriParts[0]); + if (isset($requestUriParts[1])) { + $hasQuery = true; + $uri = $uri->withQuery($requestUriParts[1]); + } + } + + if (!$hasQuery && isset($_SERVER['QUERY_STRING'])) { + $uri = $uri->withQuery($_SERVER['QUERY_STRING']); + } + + return $uri; + } + + public function getServerParams(): array + { + return $this->serverParams; + } + + public function getUploadedFiles(): array + { + return $this->uploadedFiles; + } + + public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface + { + $new = clone $this; + $new->uploadedFiles = $uploadedFiles; + + return $new; + } + + public function getCookieParams(): array + { + return $this->cookieParams; + } + + public function withCookieParams(array $cookies): ServerRequestInterface + { + $new = clone $this; + $new->cookieParams = $cookies; + + return $new; + } + + public function getQueryParams(): array + { + return $this->queryParams; + } + + public function withQueryParams(array $query): ServerRequestInterface + { + $new = clone $this; + $new->queryParams = $query; + + return $new; + } + + /** + * @return array|object|null + */ + public function getParsedBody() + { + return $this->parsedBody; + } + + public function withParsedBody($data): ServerRequestInterface + { + $new = clone $this; + $new->parsedBody = $data; + + return $new; + } + + public function getAttributes(): array + { + return $this->attributes; + } + + /** + * @return mixed + */ + public function getAttribute($attribute, $default = null) + { + if (false === array_key_exists($attribute, $this->attributes)) { + return $default; + } + + return $this->attributes[$attribute]; + } + + public function withAttribute($attribute, $value): ServerRequestInterface + { + $new = clone $this; + $new->attributes[$attribute] = $value; + + return $new; + } + + public function withoutAttribute($attribute): ServerRequestInterface + { + if (false === array_key_exists($attribute, $this->attributes)) { + return $this; + } + + $new = clone $this; + unset($new->attributes[$attribute]); + + return $new; + } +} diff --git a/vendor/guzzlehttp/psr7/src/Stream.php b/vendor/guzzlehttp/psr7/src/Stream.php new file mode 100644 index 000000000..f730ddacf --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Stream.php @@ -0,0 +1,283 @@ +size = $options['size']; + } + + $this->customMetadata = $options['metadata'] ?? []; + $this->stream = $stream; + $meta = stream_get_meta_data($this->stream); + $this->seekable = $meta['seekable']; + $this->readable = (bool) preg_match(self::READABLE_MODES, $meta['mode']); + $this->writable = (bool) preg_match(self::WRITABLE_MODES, $meta['mode']); + $this->uri = $this->getMetadata('uri'); + } + + /** + * Closes the stream when the destructed + */ + public function __destruct() + { + $this->close(); + } + + public function __toString(): string + { + try { + if ($this->isSeekable()) { + $this->seek(0); + } + + return $this->getContents(); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + + return ''; + } + } + + public function getContents(): string + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + if (!$this->readable) { + throw new \RuntimeException('Cannot read from non-readable stream'); + } + + return Utils::tryGetContents($this->stream); + } + + public function close(): void + { + if (isset($this->stream)) { + if (is_resource($this->stream)) { + fclose($this->stream); + } + $this->detach(); + } + } + + public function detach() + { + if (!isset($this->stream)) { + return null; + } + + $result = $this->stream; + unset($this->stream); + $this->size = $this->uri = null; + $this->readable = $this->writable = $this->seekable = false; + + return $result; + } + + public function getSize(): ?int + { + if ($this->size !== null) { + return $this->size; + } + + if (!isset($this->stream)) { + return null; + } + + // Clear the stat cache if the stream has a URI + if ($this->uri) { + clearstatcache(true, $this->uri); + } + + $stats = fstat($this->stream); + if (is_array($stats) && isset($stats['size'])) { + $this->size = $stats['size']; + + return $this->size; + } + + return null; + } + + public function isReadable(): bool + { + return $this->readable; + } + + public function isWritable(): bool + { + return $this->writable; + } + + public function isSeekable(): bool + { + return $this->seekable; + } + + public function eof(): bool + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + return feof($this->stream); + } + + public function tell(): int + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + $result = ftell($this->stream); + + if ($result === false) { + throw new \RuntimeException('Unable to determine stream position'); + } + + return $result; + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + $whence = (int) $whence; + + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->seekable) { + throw new \RuntimeException('Stream is not seekable'); + } + if (fseek($this->stream, $offset, $whence) === -1) { + throw new \RuntimeException('Unable to seek to stream position ' + .$offset.' with whence '.var_export($whence, true)); + } + } + + public function read($length): string + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->readable) { + throw new \RuntimeException('Cannot read from non-readable stream'); + } + if ($length < 0) { + throw new \RuntimeException('Length parameter cannot be negative'); + } + + if (0 === $length) { + return ''; + } + + try { + $string = fread($this->stream, $length); + } catch (\Exception $e) { + throw new \RuntimeException('Unable to read from stream', 0, $e); + } + + if (false === $string) { + throw new \RuntimeException('Unable to read from stream'); + } + + return $string; + } + + public function write($string): int + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->writable) { + throw new \RuntimeException('Cannot write to a non-writable stream'); + } + + // We can't know the size after writing anything + $this->size = null; + $result = fwrite($this->stream, $string); + + if ($result === false) { + throw new \RuntimeException('Unable to write to stream'); + } + + return $result; + } + + /** + * @return mixed + */ + public function getMetadata($key = null) + { + if (!isset($this->stream)) { + return $key ? null : []; + } elseif (!$key) { + return $this->customMetadata + stream_get_meta_data($this->stream); + } elseif (isset($this->customMetadata[$key])) { + return $this->customMetadata[$key]; + } + + $meta = stream_get_meta_data($this->stream); + + return $meta[$key] ?? null; + } +} diff --git a/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php b/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php new file mode 100644 index 000000000..96196a3ea --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php @@ -0,0 +1,156 @@ +stream = $stream; + } + + /** + * Magic method used to create a new stream if streams are not added in + * the constructor of a decorator (e.g., LazyOpenStream). + * + * @return StreamInterface + */ + public function __get(string $name) + { + if ($name === 'stream') { + $this->stream = $this->createStream(); + + return $this->stream; + } + + throw new \UnexpectedValueException("$name not found on class"); + } + + public function __toString(): string + { + try { + if ($this->isSeekable()) { + $this->seek(0); + } + + return $this->getContents(); + } catch (\Throwable $e) { + if (\PHP_VERSION_ID >= 70400) { + throw $e; + } + trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); + + return ''; + } + } + + public function getContents(): string + { + return Utils::copyToString($this); + } + + /** + * Allow decorators to implement custom methods + * + * @return mixed + */ + public function __call(string $method, array $args) + { + /** @var callable $callable */ + $callable = [$this->stream, $method]; + $result = call_user_func_array($callable, $args); + + // Always return the wrapped object if the result is a return $this + return $result === $this->stream ? $this : $result; + } + + public function close(): void + { + $this->stream->close(); + } + + /** + * @return mixed + */ + public function getMetadata($key = null) + { + return $this->stream->getMetadata($key); + } + + public function detach() + { + return $this->stream->detach(); + } + + public function getSize(): ?int + { + return $this->stream->getSize(); + } + + public function eof(): bool + { + return $this->stream->eof(); + } + + public function tell(): int + { + return $this->stream->tell(); + } + + public function isReadable(): bool + { + return $this->stream->isReadable(); + } + + public function isWritable(): bool + { + return $this->stream->isWritable(); + } + + public function isSeekable(): bool + { + return $this->stream->isSeekable(); + } + + public function rewind(): void + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET): void + { + $this->stream->seek($offset, $whence); + } + + public function read($length): string + { + return $this->stream->read($length); + } + + public function write($string): int + { + return $this->stream->write($string); + } + + /** + * Implement in subclasses to dynamically create streams when requested. + * + * @throws \BadMethodCallException + */ + protected function createStream(): StreamInterface + { + throw new \BadMethodCallException('Not implemented'); + } +} diff --git a/vendor/guzzlehttp/psr7/src/StreamWrapper.php b/vendor/guzzlehttp/psr7/src/StreamWrapper.php new file mode 100644 index 000000000..b3655cb3a --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/StreamWrapper.php @@ -0,0 +1,175 @@ +isReadable()) { + $mode = $stream->isWritable() ? 'r+' : 'r'; + } elseif ($stream->isWritable()) { + $mode = 'w'; + } else { + throw new \InvalidArgumentException('The stream must be readable, ' + .'writable, or both.'); + } + + return fopen('guzzle://stream', $mode, false, self::createStreamContext($stream)); + } + + /** + * Creates a stream context that can be used to open a stream as a php stream resource. + * + * @return resource + */ + public static function createStreamContext(StreamInterface $stream) + { + return stream_context_create([ + 'guzzle' => ['stream' => $stream], + ]); + } + + /** + * Registers the stream wrapper if needed + */ + public static function register(): void + { + if (!in_array('guzzle', stream_get_wrappers())) { + stream_wrapper_register('guzzle', __CLASS__); + } + } + + public function stream_open(string $path, string $mode, int $options, string &$opened_path = null): bool + { + $options = stream_context_get_options($this->context); + + if (!isset($options['guzzle']['stream'])) { + return false; + } + + $this->mode = $mode; + $this->stream = $options['guzzle']['stream']; + + return true; + } + + public function stream_read(int $count): string + { + return $this->stream->read($count); + } + + public function stream_write(string $data): int + { + return $this->stream->write($data); + } + + public function stream_tell(): int + { + return $this->stream->tell(); + } + + public function stream_eof(): bool + { + return $this->stream->eof(); + } + + public function stream_seek(int $offset, int $whence): bool + { + $this->stream->seek($offset, $whence); + + return true; + } + + /** + * @return resource|false + */ + public function stream_cast(int $cast_as) + { + $stream = clone $this->stream; + $resource = $stream->detach(); + + return $resource ?? false; + } + + /** + * @return array + */ + public function stream_stat(): array + { + static $modeMap = [ + 'r' => 33060, + 'rb' => 33060, + 'r+' => 33206, + 'w' => 33188, + 'wb' => 33188, + ]; + + return [ + 'dev' => 0, + 'ino' => 0, + 'mode' => $modeMap[$this->mode], + 'nlink' => 0, + 'uid' => 0, + 'gid' => 0, + 'rdev' => 0, + 'size' => $this->stream->getSize() ?: 0, + 'atime' => 0, + 'mtime' => 0, + 'ctime' => 0, + 'blksize' => 0, + 'blocks' => 0, + ]; + } + + /** + * @return array + */ + public function url_stat(string $path, int $flags): array + { + return [ + 'dev' => 0, + 'ino' => 0, + 'mode' => 0, + 'nlink' => 0, + 'uid' => 0, + 'gid' => 0, + 'rdev' => 0, + 'size' => 0, + 'atime' => 0, + 'mtime' => 0, + 'ctime' => 0, + 'blksize' => 0, + 'blocks' => 0, + ]; + } +} diff --git a/vendor/guzzlehttp/psr7/src/UploadedFile.php b/vendor/guzzlehttp/psr7/src/UploadedFile.php new file mode 100644 index 000000000..b1521bcf8 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/UploadedFile.php @@ -0,0 +1,211 @@ +setError($errorStatus); + $this->size = $size; + $this->clientFilename = $clientFilename; + $this->clientMediaType = $clientMediaType; + + if ($this->isOk()) { + $this->setStreamOrFile($streamOrFile); + } + } + + /** + * Depending on the value set file or stream variable + * + * @param StreamInterface|string|resource $streamOrFile + * + * @throws InvalidArgumentException + */ + private function setStreamOrFile($streamOrFile): void + { + if (is_string($streamOrFile)) { + $this->file = $streamOrFile; + } elseif (is_resource($streamOrFile)) { + $this->stream = new Stream($streamOrFile); + } elseif ($streamOrFile instanceof StreamInterface) { + $this->stream = $streamOrFile; + } else { + throw new InvalidArgumentException( + 'Invalid stream or file provided for UploadedFile' + ); + } + } + + /** + * @throws InvalidArgumentException + */ + private function setError(int $error): void + { + if (false === in_array($error, UploadedFile::ERRORS, true)) { + throw new InvalidArgumentException( + 'Invalid error status for UploadedFile' + ); + } + + $this->error = $error; + } + + private function isStringNotEmpty($param): bool + { + return is_string($param) && false === empty($param); + } + + /** + * Return true if there is no upload error + */ + private function isOk(): bool + { + return $this->error === UPLOAD_ERR_OK; + } + + public function isMoved(): bool + { + return $this->moved; + } + + /** + * @throws RuntimeException if is moved or not ok + */ + private function validateActive(): void + { + if (false === $this->isOk()) { + throw new RuntimeException('Cannot retrieve stream due to upload error'); + } + + if ($this->isMoved()) { + throw new RuntimeException('Cannot retrieve stream after it has already been moved'); + } + } + + public function getStream(): StreamInterface + { + $this->validateActive(); + + if ($this->stream instanceof StreamInterface) { + return $this->stream; + } + + /** @var string $file */ + $file = $this->file; + + return new LazyOpenStream($file, 'r+'); + } + + public function moveTo($targetPath): void + { + $this->validateActive(); + + if (false === $this->isStringNotEmpty($targetPath)) { + throw new InvalidArgumentException( + 'Invalid path provided for move operation; must be a non-empty string' + ); + } + + if ($this->file) { + $this->moved = PHP_SAPI === 'cli' + ? rename($this->file, $targetPath) + : move_uploaded_file($this->file, $targetPath); + } else { + Utils::copyToStream( + $this->getStream(), + new LazyOpenStream($targetPath, 'w') + ); + + $this->moved = true; + } + + if (false === $this->moved) { + throw new RuntimeException( + sprintf('Uploaded file could not be moved to %s', $targetPath) + ); + } + } + + public function getSize(): ?int + { + return $this->size; + } + + public function getError(): int + { + return $this->error; + } + + public function getClientFilename(): ?string + { + return $this->clientFilename; + } + + public function getClientMediaType(): ?string + { + return $this->clientMediaType; + } +} diff --git a/vendor/guzzlehttp/psr7/src/Uri.php b/vendor/guzzlehttp/psr7/src/Uri.php new file mode 100644 index 000000000..fbba7f123 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Uri.php @@ -0,0 +1,741 @@ + 80, + 'https' => 443, + 'ftp' => 21, + 'gopher' => 70, + 'nntp' => 119, + 'news' => 119, + 'telnet' => 23, + 'tn3270' => 23, + 'imap' => 143, + 'pop' => 110, + 'ldap' => 389, + ]; + + /** + * Unreserved characters for use in a regex. + * + * @see https://tools.ietf.org/html/rfc3986#section-2.3 + */ + private const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~'; + + /** + * Sub-delims for use in a regex. + * + * @see https://tools.ietf.org/html/rfc3986#section-2.2 + */ + private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;='; + private const QUERY_SEPARATORS_REPLACEMENT = ['=' => '%3D', '&' => '%26']; + + /** @var string Uri scheme. */ + private $scheme = ''; + + /** @var string Uri user info. */ + private $userInfo = ''; + + /** @var string Uri host. */ + private $host = ''; + + /** @var int|null Uri port. */ + private $port; + + /** @var string Uri path. */ + private $path = ''; + + /** @var string Uri query string. */ + private $query = ''; + + /** @var string Uri fragment. */ + private $fragment = ''; + + /** @var string|null String representation */ + private $composedComponents; + + public function __construct(string $uri = '') + { + if ($uri !== '') { + $parts = self::parse($uri); + if ($parts === false) { + throw new MalformedUriException("Unable to parse URI: $uri"); + } + $this->applyParts($parts); + } + } + + /** + * UTF-8 aware \parse_url() replacement. + * + * The internal function produces broken output for non ASCII domain names + * (IDN) when used with locales other than "C". + * + * On the other hand, cURL understands IDN correctly only when UTF-8 locale + * is configured ("C.UTF-8", "en_US.UTF-8", etc.). + * + * @see https://bugs.php.net/bug.php?id=52923 + * @see https://www.php.net/manual/en/function.parse-url.php#114817 + * @see https://curl.haxx.se/libcurl/c/CURLOPT_URL.html#ENCODING + * + * @return array|false + */ + private static function parse(string $url) + { + // If IPv6 + $prefix = ''; + if (preg_match('%^(.*://\[[0-9:a-f]+\])(.*?)$%', $url, $matches)) { + /** @var array{0:string, 1:string, 2:string} $matches */ + $prefix = $matches[1]; + $url = $matches[2]; + } + + /** @var string */ + $encodedUrl = preg_replace_callback( + '%[^:/@?&=#]+%usD', + static function ($matches) { + return urlencode($matches[0]); + }, + $url + ); + + $result = parse_url($prefix.$encodedUrl); + + if ($result === false) { + return false; + } + + return array_map('urldecode', $result); + } + + public function __toString(): string + { + if ($this->composedComponents === null) { + $this->composedComponents = self::composeComponents( + $this->scheme, + $this->getAuthority(), + $this->path, + $this->query, + $this->fragment + ); + } + + return $this->composedComponents; + } + + /** + * Composes a URI reference string from its various components. + * + * Usually this method does not need to be called manually but instead is used indirectly via + * `Psr\Http\Message\UriInterface::__toString`. + * + * PSR-7 UriInterface treats an empty component the same as a missing component as + * getQuery(), getFragment() etc. always return a string. This explains the slight + * difference to RFC 3986 Section 5.3. + * + * Another adjustment is that the authority separator is added even when the authority is missing/empty + * for the "file" scheme. This is because PHP stream functions like `file_get_contents` only work with + * `file:///myfile` but not with `file:/myfile` although they are equivalent according to RFC 3986. But + * `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to + * that format). + * + * @see https://tools.ietf.org/html/rfc3986#section-5.3 + */ + public static function composeComponents(?string $scheme, ?string $authority, string $path, ?string $query, ?string $fragment): string + { + $uri = ''; + + // weak type checks to also accept null until we can add scalar type hints + if ($scheme != '') { + $uri .= $scheme.':'; + } + + if ($authority != '' || $scheme === 'file') { + $uri .= '//'.$authority; + } + + if ($authority != '' && $path != '' && $path[0] != '/') { + $path = '/'.$path; + } + + $uri .= $path; + + if ($query != '') { + $uri .= '?'.$query; + } + + if ($fragment != '') { + $uri .= '#'.$fragment; + } + + return $uri; + } + + /** + * Whether the URI has the default port of the current scheme. + * + * `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used + * independently of the implementation. + */ + public static function isDefaultPort(UriInterface $uri): bool + { + return $uri->getPort() === null + || (isset(self::DEFAULT_PORTS[$uri->getScheme()]) && $uri->getPort() === self::DEFAULT_PORTS[$uri->getScheme()]); + } + + /** + * Whether the URI is absolute, i.e. it has a scheme. + * + * An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true + * if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative + * to another URI, the base URI. Relative references can be divided into several forms: + * - network-path references, e.g. '//example.com/path' + * - absolute-path references, e.g. '/path' + * - relative-path references, e.g. 'subpath' + * + * @see Uri::isNetworkPathReference + * @see Uri::isAbsolutePathReference + * @see Uri::isRelativePathReference + * @see https://tools.ietf.org/html/rfc3986#section-4 + */ + public static function isAbsolute(UriInterface $uri): bool + { + return $uri->getScheme() !== ''; + } + + /** + * Whether the URI is a network-path reference. + * + * A relative reference that begins with two slash characters is termed an network-path reference. + * + * @see https://tools.ietf.org/html/rfc3986#section-4.2 + */ + public static function isNetworkPathReference(UriInterface $uri): bool + { + return $uri->getScheme() === '' && $uri->getAuthority() !== ''; + } + + /** + * Whether the URI is a absolute-path reference. + * + * A relative reference that begins with a single slash character is termed an absolute-path reference. + * + * @see https://tools.ietf.org/html/rfc3986#section-4.2 + */ + public static function isAbsolutePathReference(UriInterface $uri): bool + { + return $uri->getScheme() === '' + && $uri->getAuthority() === '' + && isset($uri->getPath()[0]) + && $uri->getPath()[0] === '/'; + } + + /** + * Whether the URI is a relative-path reference. + * + * A relative reference that does not begin with a slash character is termed a relative-path reference. + * + * @see https://tools.ietf.org/html/rfc3986#section-4.2 + */ + public static function isRelativePathReference(UriInterface $uri): bool + { + return $uri->getScheme() === '' + && $uri->getAuthority() === '' + && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); + } + + /** + * Whether the URI is a same-document reference. + * + * A same-document reference refers to a URI that is, aside from its fragment + * component, identical to the base URI. When no base URI is given, only an empty + * URI reference (apart from its fragment) is considered a same-document reference. + * + * @param UriInterface $uri The URI to check + * @param UriInterface|null $base An optional base URI to compare against + * + * @see https://tools.ietf.org/html/rfc3986#section-4.4 + */ + public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool + { + if ($base !== null) { + $uri = UriResolver::resolve($base, $uri); + + return ($uri->getScheme() === $base->getScheme()) + && ($uri->getAuthority() === $base->getAuthority()) + && ($uri->getPath() === $base->getPath()) + && ($uri->getQuery() === $base->getQuery()); + } + + return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === ''; + } + + /** + * Creates a new URI with a specific query string value removed. + * + * Any existing query string values that exactly match the provided key are + * removed. + * + * @param UriInterface $uri URI to use as a base. + * @param string $key Query string key to remove. + */ + public static function withoutQueryValue(UriInterface $uri, string $key): UriInterface + { + $result = self::getFilteredQueryString($uri, [$key]); + + return $uri->withQuery(implode('&', $result)); + } + + /** + * Creates a new URI with a specific query string value. + * + * Any existing query string values that exactly match the provided key are + * removed and replaced with the given key value pair. + * + * A value of null will set the query string key without a value, e.g. "key" + * instead of "key=value". + * + * @param UriInterface $uri URI to use as a base. + * @param string $key Key to set. + * @param string|null $value Value to set + */ + public static function withQueryValue(UriInterface $uri, string $key, ?string $value): UriInterface + { + $result = self::getFilteredQueryString($uri, [$key]); + + $result[] = self::generateQueryString($key, $value); + + return $uri->withQuery(implode('&', $result)); + } + + /** + * Creates a new URI with multiple specific query string values. + * + * It has the same behavior as withQueryValue() but for an associative array of key => value. + * + * @param UriInterface $uri URI to use as a base. + * @param array $keyValueArray Associative array of key and values + */ + public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface + { + $result = self::getFilteredQueryString($uri, array_keys($keyValueArray)); + + foreach ($keyValueArray as $key => $value) { + $result[] = self::generateQueryString((string) $key, $value !== null ? (string) $value : null); + } + + return $uri->withQuery(implode('&', $result)); + } + + /** + * Creates a URI from a hash of `parse_url` components. + * + * @see http://php.net/manual/en/function.parse-url.php + * + * @throws MalformedUriException If the components do not form a valid URI. + */ + public static function fromParts(array $parts): UriInterface + { + $uri = new self(); + $uri->applyParts($parts); + $uri->validateState(); + + return $uri; + } + + public function getScheme(): string + { + return $this->scheme; + } + + public function getAuthority(): string + { + $authority = $this->host; + if ($this->userInfo !== '') { + $authority = $this->userInfo.'@'.$authority; + } + + if ($this->port !== null) { + $authority .= ':'.$this->port; + } + + return $authority; + } + + public function getUserInfo(): string + { + return $this->userInfo; + } + + public function getHost(): string + { + return $this->host; + } + + public function getPort(): ?int + { + return $this->port; + } + + public function getPath(): string + { + return $this->path; + } + + public function getQuery(): string + { + return $this->query; + } + + public function getFragment(): string + { + return $this->fragment; + } + + public function withScheme($scheme): UriInterface + { + $scheme = $this->filterScheme($scheme); + + if ($this->scheme === $scheme) { + return $this; + } + + $new = clone $this; + $new->scheme = $scheme; + $new->composedComponents = null; + $new->removeDefaultPort(); + $new->validateState(); + + return $new; + } + + public function withUserInfo($user, $password = null): UriInterface + { + $info = $this->filterUserInfoComponent($user); + if ($password !== null) { + $info .= ':'.$this->filterUserInfoComponent($password); + } + + if ($this->userInfo === $info) { + return $this; + } + + $new = clone $this; + $new->userInfo = $info; + $new->composedComponents = null; + $new->validateState(); + + return $new; + } + + public function withHost($host): UriInterface + { + $host = $this->filterHost($host); + + if ($this->host === $host) { + return $this; + } + + $new = clone $this; + $new->host = $host; + $new->composedComponents = null; + $new->validateState(); + + return $new; + } + + public function withPort($port): UriInterface + { + $port = $this->filterPort($port); + + if ($this->port === $port) { + return $this; + } + + $new = clone $this; + $new->port = $port; + $new->composedComponents = null; + $new->removeDefaultPort(); + $new->validateState(); + + return $new; + } + + public function withPath($path): UriInterface + { + $path = $this->filterPath($path); + + if ($this->path === $path) { + return $this; + } + + $new = clone $this; + $new->path = $path; + $new->composedComponents = null; + $new->validateState(); + + return $new; + } + + public function withQuery($query): UriInterface + { + $query = $this->filterQueryAndFragment($query); + + if ($this->query === $query) { + return $this; + } + + $new = clone $this; + $new->query = $query; + $new->composedComponents = null; + + return $new; + } + + public function withFragment($fragment): UriInterface + { + $fragment = $this->filterQueryAndFragment($fragment); + + if ($this->fragment === $fragment) { + return $this; + } + + $new = clone $this; + $new->fragment = $fragment; + $new->composedComponents = null; + + return $new; + } + + public function jsonSerialize(): string + { + return $this->__toString(); + } + + /** + * Apply parse_url parts to a URI. + * + * @param array $parts Array of parse_url parts to apply. + */ + private function applyParts(array $parts): void + { + $this->scheme = isset($parts['scheme']) + ? $this->filterScheme($parts['scheme']) + : ''; + $this->userInfo = isset($parts['user']) + ? $this->filterUserInfoComponent($parts['user']) + : ''; + $this->host = isset($parts['host']) + ? $this->filterHost($parts['host']) + : ''; + $this->port = isset($parts['port']) + ? $this->filterPort($parts['port']) + : null; + $this->path = isset($parts['path']) + ? $this->filterPath($parts['path']) + : ''; + $this->query = isset($parts['query']) + ? $this->filterQueryAndFragment($parts['query']) + : ''; + $this->fragment = isset($parts['fragment']) + ? $this->filterQueryAndFragment($parts['fragment']) + : ''; + if (isset($parts['pass'])) { + $this->userInfo .= ':'.$this->filterUserInfoComponent($parts['pass']); + } + + $this->removeDefaultPort(); + } + + /** + * @param mixed $scheme + * + * @throws \InvalidArgumentException If the scheme is invalid. + */ + private function filterScheme($scheme): string + { + if (!is_string($scheme)) { + throw new \InvalidArgumentException('Scheme must be a string'); + } + + return \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + } + + /** + * @param mixed $component + * + * @throws \InvalidArgumentException If the user info is invalid. + */ + private function filterUserInfoComponent($component): string + { + if (!is_string($component)) { + throw new \InvalidArgumentException('User info must be a string'); + } + + return preg_replace_callback( + '/(?:[^%'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.']+|%(?![A-Fa-f0-9]{2}))/', + [$this, 'rawurlencodeMatchZero'], + $component + ); + } + + /** + * @param mixed $host + * + * @throws \InvalidArgumentException If the host is invalid. + */ + private function filterHost($host): string + { + if (!is_string($host)) { + throw new \InvalidArgumentException('Host must be a string'); + } + + return \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + } + + /** + * @param mixed $port + * + * @throws \InvalidArgumentException If the port is invalid. + */ + private function filterPort($port): ?int + { + if ($port === null) { + return null; + } + + $port = (int) $port; + if (0 > $port || 0xFFFF < $port) { + throw new \InvalidArgumentException( + sprintf('Invalid port: %d. Must be between 0 and 65535', $port) + ); + } + + return $port; + } + + /** + * @param string[] $keys + * + * @return string[] + */ + private static function getFilteredQueryString(UriInterface $uri, array $keys): array + { + $current = $uri->getQuery(); + + if ($current === '') { + return []; + } + + $decodedKeys = array_map('rawurldecode', $keys); + + return array_filter(explode('&', $current), function ($part) use ($decodedKeys) { + return !in_array(rawurldecode(explode('=', $part)[0]), $decodedKeys, true); + }); + } + + private static function generateQueryString(string $key, ?string $value): string + { + // Query string separators ("=", "&") within the key or value need to be encoded + // (while preventing double-encoding) before setting the query string. All other + // chars that need percent-encoding will be encoded by withQuery(). + $queryString = strtr($key, self::QUERY_SEPARATORS_REPLACEMENT); + + if ($value !== null) { + $queryString .= '='.strtr($value, self::QUERY_SEPARATORS_REPLACEMENT); + } + + return $queryString; + } + + private function removeDefaultPort(): void + { + if ($this->port !== null && self::isDefaultPort($this)) { + $this->port = null; + } + } + + /** + * Filters the path of a URI + * + * @param mixed $path + * + * @throws \InvalidArgumentException If the path is invalid. + */ + private function filterPath($path): string + { + if (!is_string($path)) { + throw new \InvalidArgumentException('Path must be a string'); + } + + return preg_replace_callback( + '/(?:[^'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.'%:@\/]++|%(?![A-Fa-f0-9]{2}))/', + [$this, 'rawurlencodeMatchZero'], + $path + ); + } + + /** + * Filters the query string or fragment of a URI. + * + * @param mixed $str + * + * @throws \InvalidArgumentException If the query or fragment is invalid. + */ + private function filterQueryAndFragment($str): string + { + if (!is_string($str)) { + throw new \InvalidArgumentException('Query and fragment must be a string'); + } + + return preg_replace_callback( + '/(?:[^'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.'%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', + [$this, 'rawurlencodeMatchZero'], + $str + ); + } + + private function rawurlencodeMatchZero(array $match): string + { + return rawurlencode($match[0]); + } + + private function validateState(): void + { + if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) { + $this->host = self::HTTP_DEFAULT_HOST; + } + + if ($this->getAuthority() === '') { + if (0 === strpos($this->path, '//')) { + throw new MalformedUriException('The path of a URI without an authority must not start with two slashes "//"'); + } + if ($this->scheme === '' && false !== strpos(explode('/', $this->path, 2)[0], ':')) { + throw new MalformedUriException('A relative URI must not have a path beginning with a segment containing a colon'); + } + } + } +} diff --git a/vendor/guzzlehttp/psr7/src/UriComparator.php b/vendor/guzzlehttp/psr7/src/UriComparator.php new file mode 100644 index 000000000..70c582aa0 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/UriComparator.php @@ -0,0 +1,52 @@ +getHost(), $modified->getHost()) !== 0) { + return true; + } + + if ($original->getScheme() !== $modified->getScheme()) { + return true; + } + + if (self::computePort($original) !== self::computePort($modified)) { + return true; + } + + return false; + } + + private static function computePort(UriInterface $uri): int + { + $port = $uri->getPort(); + + if (null !== $port) { + return $port; + } + + return 'https' === $uri->getScheme() ? 443 : 80; + } + + private function __construct() + { + // cannot be instantiated + } +} diff --git a/vendor/guzzlehttp/psr7/src/UriNormalizer.php b/vendor/guzzlehttp/psr7/src/UriNormalizer.php new file mode 100644 index 000000000..cd4c383aa --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/UriNormalizer.php @@ -0,0 +1,220 @@ +getPath() === '' + && ($uri->getScheme() === 'http' || $uri->getScheme() === 'https') + ) { + $uri = $uri->withPath('/'); + } + + if ($flags & self::REMOVE_DEFAULT_HOST && $uri->getScheme() === 'file' && $uri->getHost() === 'localhost') { + $uri = $uri->withHost(''); + } + + if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && Uri::isDefaultPort($uri)) { + $uri = $uri->withPort(null); + } + + if ($flags & self::REMOVE_DOT_SEGMENTS && !Uri::isRelativePathReference($uri)) { + $uri = $uri->withPath(UriResolver::removeDotSegments($uri->getPath())); + } + + if ($flags & self::REMOVE_DUPLICATE_SLASHES) { + $uri = $uri->withPath(preg_replace('#//++#', '/', $uri->getPath())); + } + + if ($flags & self::SORT_QUERY_PARAMETERS && $uri->getQuery() !== '') { + $queryKeyValues = explode('&', $uri->getQuery()); + sort($queryKeyValues); + $uri = $uri->withQuery(implode('&', $queryKeyValues)); + } + + return $uri; + } + + /** + * Whether two URIs can be considered equivalent. + * + * Both URIs are normalized automatically before comparison with the given $normalizations bitmask. The method also + * accepts relative URI references and returns true when they are equivalent. This of course assumes they will be + * resolved against the same base URI. If this is not the case, determination of equivalence or difference of + * relative references does not mean anything. + * + * @param UriInterface $uri1 An URI to compare + * @param UriInterface $uri2 An URI to compare + * @param int $normalizations A bitmask of normalizations to apply, see constants + * + * @see https://tools.ietf.org/html/rfc3986#section-6.1 + */ + public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, int $normalizations = self::PRESERVING_NORMALIZATIONS): bool + { + return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations); + } + + private static function capitalizePercentEncoding(UriInterface $uri): UriInterface + { + $regex = '/(?:%[A-Fa-f0-9]{2})++/'; + + $callback = function (array $match) { + return strtoupper($match[0]); + }; + + return + $uri->withPath( + preg_replace_callback($regex, $callback, $uri->getPath()) + )->withQuery( + preg_replace_callback($regex, $callback, $uri->getQuery()) + ); + } + + private static function decodeUnreservedCharacters(UriInterface $uri): UriInterface + { + $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i'; + + $callback = function (array $match) { + return rawurldecode($match[0]); + }; + + return + $uri->withPath( + preg_replace_callback($regex, $callback, $uri->getPath()) + )->withQuery( + preg_replace_callback($regex, $callback, $uri->getQuery()) + ); + } + + private function __construct() + { + // cannot be instantiated + } +} diff --git a/vendor/guzzlehttp/psr7/src/UriResolver.php b/vendor/guzzlehttp/psr7/src/UriResolver.php new file mode 100644 index 000000000..38d5793c7 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/UriResolver.php @@ -0,0 +1,211 @@ +getScheme() != '') { + return $rel->withPath(self::removeDotSegments($rel->getPath())); + } + + if ($rel->getAuthority() != '') { + $targetAuthority = $rel->getAuthority(); + $targetPath = self::removeDotSegments($rel->getPath()); + $targetQuery = $rel->getQuery(); + } else { + $targetAuthority = $base->getAuthority(); + if ($rel->getPath() === '') { + $targetPath = $base->getPath(); + $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery(); + } else { + if ($rel->getPath()[0] === '/') { + $targetPath = $rel->getPath(); + } else { + if ($targetAuthority != '' && $base->getPath() === '') { + $targetPath = '/'.$rel->getPath(); + } else { + $lastSlashPos = strrpos($base->getPath(), '/'); + if ($lastSlashPos === false) { + $targetPath = $rel->getPath(); + } else { + $targetPath = substr($base->getPath(), 0, $lastSlashPos + 1).$rel->getPath(); + } + } + } + $targetPath = self::removeDotSegments($targetPath); + $targetQuery = $rel->getQuery(); + } + } + + return new Uri(Uri::composeComponents( + $base->getScheme(), + $targetAuthority, + $targetPath, + $targetQuery, + $rel->getFragment() + )); + } + + /** + * Returns the target URI as a relative reference from the base URI. + * + * This method is the counterpart to resolve(): + * + * (string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) + * + * One use-case is to use the current request URI as base URI and then generate relative links in your documents + * to reduce the document size or offer self-contained downloadable document archives. + * + * $base = new Uri('http://example.com/a/b/'); + * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. + * echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. + * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. + * echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. + * + * This method also accepts a target that is already relative and will try to relativize it further. Only a + * relative-path reference will be returned as-is. + * + * echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well + */ + public static function relativize(UriInterface $base, UriInterface $target): UriInterface + { + if ($target->getScheme() !== '' + && ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '') + ) { + return $target; + } + + if (Uri::isRelativePathReference($target)) { + // As the target is already highly relative we return it as-is. It would be possible to resolve + // the target with `$target = self::resolve($base, $target);` and then try make it more relative + // by removing a duplicate query. But let's not do that automatically. + return $target; + } + + if ($target->getAuthority() !== '' && $base->getAuthority() !== $target->getAuthority()) { + return $target->withScheme(''); + } + + // We must remove the path before removing the authority because if the path starts with two slashes, the URI + // would turn invalid. And we also cannot set a relative path before removing the authority, as that is also + // invalid. + $emptyPathUri = $target->withScheme('')->withPath('')->withUserInfo('')->withPort(null)->withHost(''); + + if ($base->getPath() !== $target->getPath()) { + return $emptyPathUri->withPath(self::getRelativePath($base, $target)); + } + + if ($base->getQuery() === $target->getQuery()) { + // Only the target fragment is left. And it must be returned even if base and target fragment are the same. + return $emptyPathUri->withQuery(''); + } + + // If the base URI has a query but the target has none, we cannot return an empty path reference as it would + // inherit the base query component when resolving. + if ($target->getQuery() === '') { + $segments = explode('/', $target->getPath()); + /** @var string $lastSegment */ + $lastSegment = end($segments); + + return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment); + } + + return $emptyPathUri; + } + + private static function getRelativePath(UriInterface $base, UriInterface $target): string + { + $sourceSegments = explode('/', $base->getPath()); + $targetSegments = explode('/', $target->getPath()); + array_pop($sourceSegments); + $targetLastSegment = array_pop($targetSegments); + foreach ($sourceSegments as $i => $segment) { + if (isset($targetSegments[$i]) && $segment === $targetSegments[$i]) { + unset($sourceSegments[$i], $targetSegments[$i]); + } else { + break; + } + } + $targetSegments[] = $targetLastSegment; + $relativePath = str_repeat('../', count($sourceSegments)).implode('/', $targetSegments); + + // A reference to am empty last segment or an empty first sub-segment must be prefixed with "./". + // This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used + // as the first segment of a relative-path reference, as it would be mistaken for a scheme name. + if ('' === $relativePath || false !== strpos(explode('/', $relativePath, 2)[0], ':')) { + $relativePath = "./$relativePath"; + } elseif ('/' === $relativePath[0]) { + if ($base->getAuthority() != '' && $base->getPath() === '') { + // In this case an extra slash is added by resolve() automatically. So we must not add one here. + $relativePath = ".$relativePath"; + } else { + $relativePath = "./$relativePath"; + } + } + + return $relativePath; + } + + private function __construct() + { + // cannot be instantiated + } +} diff --git a/vendor/guzzlehttp/psr7/src/Utils.php b/vendor/guzzlehttp/psr7/src/Utils.php new file mode 100644 index 000000000..917c05e30 --- /dev/null +++ b/vendor/guzzlehttp/psr7/src/Utils.php @@ -0,0 +1,463 @@ + $v) { + if (!is_string($k) || !in_array(strtolower($k), $keys)) { + $result[$k] = $v; + } + } + + return $result; + } + + /** + * Copy the contents of a stream into another stream until the given number + * of bytes have been read. + * + * @param StreamInterface $source Stream to read from + * @param StreamInterface $dest Stream to write to + * @param int $maxLen Maximum number of bytes to read. Pass -1 + * to read the entire stream. + * + * @throws \RuntimeException on error. + */ + public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = -1): void + { + $bufferSize = 8192; + + if ($maxLen === -1) { + while (!$source->eof()) { + if (!$dest->write($source->read($bufferSize))) { + break; + } + } + } else { + $remaining = $maxLen; + while ($remaining > 0 && !$source->eof()) { + $buf = $source->read(min($bufferSize, $remaining)); + $len = strlen($buf); + if (!$len) { + break; + } + $remaining -= $len; + $dest->write($buf); + } + } + } + + /** + * Copy the contents of a stream into a string until the given number of + * bytes have been read. + * + * @param StreamInterface $stream Stream to read + * @param int $maxLen Maximum number of bytes to read. Pass -1 + * to read the entire stream. + * + * @throws \RuntimeException on error. + */ + public static function copyToString(StreamInterface $stream, int $maxLen = -1): string + { + $buffer = ''; + + if ($maxLen === -1) { + while (!$stream->eof()) { + $buf = $stream->read(1048576); + if ($buf === '') { + break; + } + $buffer .= $buf; + } + + return $buffer; + } + + $len = 0; + while (!$stream->eof() && $len < $maxLen) { + $buf = $stream->read($maxLen - $len); + if ($buf === '') { + break; + } + $buffer .= $buf; + $len = strlen($buffer); + } + + return $buffer; + } + + /** + * Calculate a hash of a stream. + * + * This method reads the entire stream to calculate a rolling hash, based + * on PHP's `hash_init` functions. + * + * @param StreamInterface $stream Stream to calculate the hash for + * @param string $algo Hash algorithm (e.g. md5, crc32, etc) + * @param bool $rawOutput Whether or not to use raw output + * + * @throws \RuntimeException on error. + */ + public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string + { + $pos = $stream->tell(); + + if ($pos > 0) { + $stream->rewind(); + } + + $ctx = hash_init($algo); + while (!$stream->eof()) { + hash_update($ctx, $stream->read(1048576)); + } + + $out = hash_final($ctx, $rawOutput); + $stream->seek($pos); + + return $out; + } + + /** + * Clone and modify a request with the given changes. + * + * This method is useful for reducing the number of clones needed to mutate + * a message. + * + * The changes can be one of: + * - method: (string) Changes the HTTP method. + * - set_headers: (array) Sets the given headers. + * - remove_headers: (array) Remove the given headers. + * - body: (mixed) Sets the given body. + * - uri: (UriInterface) Set the URI. + * - query: (string) Set the query string value of the URI. + * - version: (string) Set the protocol version. + * + * @param RequestInterface $request Request to clone and modify. + * @param array $changes Changes to apply. + */ + public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface + { + if (!$changes) { + return $request; + } + + $headers = $request->getHeaders(); + + if (!isset($changes['uri'])) { + $uri = $request->getUri(); + } else { + // Remove the host header if one is on the URI + if ($host = $changes['uri']->getHost()) { + $changes['set_headers']['Host'] = $host; + + if ($port = $changes['uri']->getPort()) { + $standardPorts = ['http' => 80, 'https' => 443]; + $scheme = $changes['uri']->getScheme(); + if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) { + $changes['set_headers']['Host'] .= ':'.$port; + } + } + } + $uri = $changes['uri']; + } + + if (!empty($changes['remove_headers'])) { + $headers = self::caselessRemove($changes['remove_headers'], $headers); + } + + if (!empty($changes['set_headers'])) { + $headers = self::caselessRemove(array_keys($changes['set_headers']), $headers); + $headers = $changes['set_headers'] + $headers; + } + + if (isset($changes['query'])) { + $uri = $uri->withQuery($changes['query']); + } + + if ($request instanceof ServerRequestInterface) { + $new = (new ServerRequest( + $changes['method'] ?? $request->getMethod(), + $uri, + $headers, + $changes['body'] ?? $request->getBody(), + $changes['version'] ?? $request->getProtocolVersion(), + $request->getServerParams() + )) + ->withParsedBody($request->getParsedBody()) + ->withQueryParams($request->getQueryParams()) + ->withCookieParams($request->getCookieParams()) + ->withUploadedFiles($request->getUploadedFiles()); + + foreach ($request->getAttributes() as $key => $value) { + $new = $new->withAttribute($key, $value); + } + + return $new; + } + + return new Request( + $changes['method'] ?? $request->getMethod(), + $uri, + $headers, + $changes['body'] ?? $request->getBody(), + $changes['version'] ?? $request->getProtocolVersion() + ); + } + + /** + * Read a line from the stream up to the maximum allowed buffer length. + * + * @param StreamInterface $stream Stream to read from + * @param int|null $maxLength Maximum buffer length + */ + public static function readLine(StreamInterface $stream, int $maxLength = null): string + { + $buffer = ''; + $size = 0; + + while (!$stream->eof()) { + if ('' === ($byte = $stream->read(1))) { + return $buffer; + } + $buffer .= $byte; + // Break when a new line is found or the max length - 1 is reached + if ($byte === "\n" || ++$size === $maxLength - 1) { + break; + } + } + + return $buffer; + } + + /** + * Create a new stream based on the input type. + * + * Options is an associative array that can contain the following keys: + * - metadata: Array of custom metadata. + * - size: Size of the stream. + * + * This method accepts the following `$resource` types: + * - `Psr\Http\Message\StreamInterface`: Returns the value as-is. + * - `string`: Creates a stream object that uses the given string as the contents. + * - `resource`: Creates a stream object that wraps the given PHP stream resource. + * - `Iterator`: If the provided value implements `Iterator`, then a read-only + * stream object will be created that wraps the given iterable. Each time the + * stream is read from, data from the iterator will fill a buffer and will be + * continuously called until the buffer is equal to the requested read size. + * Subsequent read calls will first read from the buffer and then call `next` + * on the underlying iterator until it is exhausted. + * - `object` with `__toString()`: If the object has the `__toString()` method, + * the object will be cast to a string and then a stream will be returned that + * uses the string value. + * - `NULL`: When `null` is passed, an empty stream object is returned. + * - `callable` When a callable is passed, a read-only stream object will be + * created that invokes the given callable. The callable is invoked with the + * number of suggested bytes to read. The callable can return any number of + * bytes, but MUST return `false` when there is no more data to return. The + * stream object that wraps the callable will invoke the callable until the + * number of requested bytes are available. Any additional bytes will be + * buffered and used in subsequent reads. + * + * @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity body data + * @param array{size?: int, metadata?: array} $options Additional options + * + * @throws \InvalidArgumentException if the $resource arg is not valid. + */ + public static function streamFor($resource = '', array $options = []): StreamInterface + { + if (is_scalar($resource)) { + $stream = self::tryFopen('php://temp', 'r+'); + if ($resource !== '') { + fwrite($stream, (string) $resource); + fseek($stream, 0); + } + + return new Stream($stream, $options); + } + + switch (gettype($resource)) { + case 'resource': + /* + * The 'php://input' is a special stream with quirks and inconsistencies. + * We avoid using that stream by reading it into php://temp + */ + + /** @var resource $resource */ + if ((\stream_get_meta_data($resource)['uri'] ?? '') === 'php://input') { + $stream = self::tryFopen('php://temp', 'w+'); + stream_copy_to_stream($resource, $stream); + fseek($stream, 0); + $resource = $stream; + } + + return new Stream($resource, $options); + case 'object': + /** @var object $resource */ + if ($resource instanceof StreamInterface) { + return $resource; + } elseif ($resource instanceof \Iterator) { + return new PumpStream(function () use ($resource) { + if (!$resource->valid()) { + return false; + } + $result = $resource->current(); + $resource->next(); + + return $result; + }, $options); + } elseif (method_exists($resource, '__toString')) { + return self::streamFor((string) $resource, $options); + } + break; + case 'NULL': + return new Stream(self::tryFopen('php://temp', 'r+'), $options); + } + + if (is_callable($resource)) { + return new PumpStream($resource, $options); + } + + throw new \InvalidArgumentException('Invalid resource type: '.gettype($resource)); + } + + /** + * Safely opens a PHP stream resource using a filename. + * + * When fopen fails, PHP normally raises a warning. This function adds an + * error handler that checks for errors and throws an exception instead. + * + * @param string $filename File to open + * @param string $mode Mode used to open the file + * + * @return resource + * + * @throws \RuntimeException if the file cannot be opened + */ + public static function tryFopen(string $filename, string $mode) + { + $ex = null; + set_error_handler(static function (int $errno, string $errstr) use ($filename, $mode, &$ex): bool { + $ex = new \RuntimeException(sprintf( + 'Unable to open "%s" using mode "%s": %s', + $filename, + $mode, + $errstr + )); + + return true; + }); + + try { + /** @var resource $handle */ + $handle = fopen($filename, $mode); + } catch (\Throwable $e) { + $ex = new \RuntimeException(sprintf( + 'Unable to open "%s" using mode "%s": %s', + $filename, + $mode, + $e->getMessage() + ), 0, $e); + } + + restore_error_handler(); + + if ($ex) { + /** @var $ex \RuntimeException */ + throw $ex; + } + + return $handle; + } + + /** + * Safely gets the contents of a given stream. + * + * When stream_get_contents fails, PHP normally raises a warning. This + * function adds an error handler that checks for errors and throws an + * exception instead. + * + * @param resource $stream + * + * @throws \RuntimeException if the stream cannot be read + */ + public static function tryGetContents($stream): string + { + $ex = null; + set_error_handler(static function (int $errno, string $errstr) use (&$ex): bool { + $ex = new \RuntimeException(sprintf( + 'Unable to read stream contents: %s', + $errstr + )); + + return true; + }); + + try { + /** @var string|false $contents */ + $contents = stream_get_contents($stream); + + if ($contents === false) { + $ex = new \RuntimeException('Unable to read stream contents'); + } + } catch (\Throwable $e) { + $ex = new \RuntimeException(sprintf( + 'Unable to read stream contents: %s', + $e->getMessage() + ), 0, $e); + } + + restore_error_handler(); + + if ($ex) { + /** @var $ex \RuntimeException */ + throw $ex; + } + + return $contents; + } + + /** + * Returns a UriInterface for the given value. + * + * This function accepts a string or UriInterface and returns a + * UriInterface for the given value. If the value is already a + * UriInterface, it is returned as-is. + * + * @param string|UriInterface $uri + * + * @throws \InvalidArgumentException + */ + public static function uriFor($uri): UriInterface + { + if ($uri instanceof UriInterface) { + return $uri; + } + + if (is_string($uri)) { + return new Uri($uri); + } + + throw new \InvalidArgumentException('URI must be a string or UriInterface'); + } +} diff --git a/vendor/index.php b/vendor/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/vendor/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/vendor/monolog/monolog/CHANGELOG.md b/vendor/monolog/monolog/CHANGELOG.md new file mode 100644 index 000000000..13bb05390 --- /dev/null +++ b/vendor/monolog/monolog/CHANGELOG.md @@ -0,0 +1,737 @@ +### 3.5.0 (2023-10-27) + + * Added ability to indent stack traces in LineFormatter via e.g. `indentStacktraces(' ')` (#1835) + * Added ability to configure a max level name length in LineFormatter via e.g. `setMaxLevelNameLength(3)` (#1850) + * Added support for indexed arrays (i.e. `[]` and not `{}` arrays once json serialized) containing inline linebreaks in LineFormatter (#1818) + * Added `WithMonologChannel` attribute for integrators to use to configure autowiring (#1847) + * Fixed log record `extra` data leaking between handlers that have handler-specific processors set (#1819) + * Fixed LogglyHandler issue with record level filtering (#1841) + * Fixed display_errors parsing in ErrorHandler which did not support string values (#1804) + * Fixed bug where the previous error handler would not be restored in some cases where StreamHandler fails (#1815) + * Fixed normalization error when normalizing incomplete classes (#1833) + +### 3.4.0 (2023-06-21) + + * Added `LoadAverageProcessor` to track one of the 1, 5 or 15min load averages (#1803) + * Added support for priority to the `AsMonologProcessor` attribute (#1797) + * Added `TelegramBotHandler` `topic`/`message_thread_id` support (#1802) + * Fixed `FingersCrossedHandler` passthruLevel checking (#1801) + * Fixed support of yearly and monthly rotation log file to rotate only once a month/year (#1805) + * Fixed `TestHandler` method docs (#1794) + * Fixed handling of falsey `display_errors` string values (#1804) + +### 3.3.1 (2023-02-06) + + * Fixed Logger not being serializable anymore (#1792) + +### 3.3.0 (2023-02-06) + + * Deprecated FlowdockHandler & Formatter as the flowdock service was shutdown (#1748) + * Added `ClosureContextProcessor` to allow delaying the creation of context data by setting a Closure in context which is called when the log record is used (#1745) + * Added an ElasticsearchHandler option to set the `op_type` to `create` instead of the default `index` (#1766) + * Added support for enum context values in PsrLogMessageProcessor (#1773) + * Added graylog2/gelf-php 2.x support (#1747) + * Improved `BrowserConsoleHandler` logging to use more appropriate methods than just console.log in the browser (#1739) + * Fixed GitProcessor not filtering correctly based on Level (#1749) + * Fixed `WhatFailureGroupHandler` not catching errors happening inside `close()` (#1791) + * Fixed datetime field in `GoogleCloudLoggingFormatter` (#1758) + * Fixed infinite loop detection within Fibers (#1753) + * Fixed `AmqpHandler->setExtraAttributes` not working with buffering handler wrappers (#1781) + +### 3.2.0 (2022-07-24) + + * Deprecated `CubeHandler` and `PHPConsoleHandler` as both projects are abandoned and those should not be used anymore (#1734) + * Marked `Logger` `@final` as it should not be extended, prefer composition or talk to us if you are missing something + * Added RFC 5424 level (`7` to `0`) support to `Logger::log` and `Logger::addRecord` to increase interoperability (#1723) + * Added `SyslogFormatter` to output syslog-like files which can be consumed by tools like [lnav](https://lnav.org/) (#1689) + * Added support for `__toString` for objects which are not json serializable in `JsonFormatter` (#1733) + * Added `GoogleCloudLoggingFormatter` (#1719) + * Added support for Predis 2.x (#1732) + * Added `AmqpHandler->setExtraAttributes` to allow configuring attributes when using an AMQPExchange (#1724) + * Fixed serialization/unserialization of handlers to make sure private properties are included (#1727) + * Fixed allowInlineLineBreaks in LineFormatter causing issues with windows paths containing `\n` or `\r` sequences (#1720) + * Fixed max normalization depth not being taken into account when formatting exceptions with a deep chain of previous exceptions (#1726) + * Fixed PHP 8.2 deprecation warnings (#1722) + * Fixed rare race condition or filesystem issue where StreamHandler is unable to create the directory the log should go into yet it exists already (#1678) + +### 3.1.0 (2022-06-09) + + * Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future (#1682) + * Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks (#1681) + * Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#1670) + * Fixed interop issue by removing the need for a return type in ProcessorInterface (#1680) + * Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though (#1677) + * Fixed RotatingFileHandler issue when the date format contained slashes (#1671) + +### 3.0.0 (2022-05-10) + +Changes from RC1 + +- The `Monolog\LevelName` enum does not exist anymore, use `Monolog\Level->getName()` instead. + +### 3.0.0-RC1 (2022-05-08) + +This is mostly a cleanup release offering stronger type guarantees for integrators with the +array->object/enum changes, but there is no big new feature for end users. + +See [UPGRADE notes](UPGRADE.md#300) for details on all breaking changes especially if you are extending/implementing Monolog classes/interfaces. + +Noteworthy BC Breaks: + +- The minimum supported PHP version is now `8.1.0`. +- Log records have been converted from an array to a [`Monolog\LogRecord` object](src/Monolog/LogRecord.php) + with public (and mostly readonly) properties. e.g. instead of doing + `$record['context']` use `$record->context`. + In formatters or handlers if you rather need an array to work with you can use `$record->toArray()` + to get back a Monolog 1/2 style record array. This will contain the enum values instead of enum cases + in the `level` and `level_name` keys to be more backwards compatible and use simpler data types. +- `FormatterInterface`, `HandlerInterface`, `ProcessorInterface`, etc. changed to contain `LogRecord $record` + instead of `array $record` parameter types. If you want to support multiple Monolog versions this should + be possible by type-hinting nothing, or `array|LogRecord` if you support PHP 8.0+. You can then code + against the $record using Monolog 2 style as LogRecord implements ArrayAccess for BC. + The interfaces do not require a `LogRecord` return type even where it would be applicable, but if you only + support Monolog 3 in integration code I would recommend you use `LogRecord` return types wherever fitting + to ensure forward compatibility as it may be added in Monolog 4. +- Log levels are now enums [`Monolog\Level`](src/Monolog/Level.php) and [`Monolog\LevelName`](src/Monolog/LevelName.php) +- Removed deprecated SwiftMailerHandler, migrate to SymfonyMailerHandler instead. +- `ResettableInterface::reset()` now requires a void return type. +- All properties have had types added, which may require you to do so as well if you extended + a Monolog class and declared the same property. + +New deprecations: + +- `Logger::DEBUG`, `Logger::ERROR`, etc. are now deprecated in favor of the `Monolog\Level` enum. + e.g. instead of `Logger::WARNING` use `Level::Warning` if you need to pass the enum case + to Monolog or one of its handlers, or `Level::Warning->value` if you need the integer + value equal to what `Logger::WARNING` was giving you. +- `Logger::getLevelName()` is now deprecated. + +### 2.9.2 (2023-10-27) + + * Fixed display_errors parsing in ErrorHandler which did not support string values (#1804) + * Fixed bug where the previous error handler would not be restored in some cases where StreamHandler fails (#1815) + * Fixed normalization error when normalizing incomplete classes (#1833) + +### 2.9.1 (2023-02-06) + + * Fixed Logger not being serializable anymore (#1792) + +### 2.9.0 (2023-02-05) + + * Deprecated FlowdockHandler & Formatter as the flowdock service was shutdown (#1748) + * Added support for enum context values in PsrLogMessageProcessor (#1773) + * Added graylog2/gelf-php 2.x support (#1747) + * Improved `BrowserConsoleHandler` logging to use more appropriate methods than just console.log in the browser (#1739) + * Fixed `WhatFailureGroupHandler` not catching errors happening inside `close()` (#1791) + * Fixed datetime field in `GoogleCloudLoggingFormatter` (#1758) + * Fixed infinite loop detection within Fibers (#1753) + * Fixed `AmqpHandler->setExtraAttributes` not working with buffering handler wrappers (#1781) + +### 2.8.0 (2022-07-24) + + * Deprecated `CubeHandler` and `PHPConsoleHandler` as both projects are abandoned and those should not be used anymore (#1734) + * Added RFC 5424 level (`7` to `0`) support to `Logger::log` and `Logger::addRecord` to increase interoperability (#1723) + * Added support for `__toString` for objects which are not json serializable in `JsonFormatter` (#1733) + * Added `GoogleCloudLoggingFormatter` (#1719) + * Added support for Predis 2.x (#1732) + * Added `AmqpHandler->setExtraAttributes` to allow configuring attributes when using an AMQPExchange (#1724) + * Fixed serialization/unserialization of handlers to make sure private properties are included (#1727) + * Fixed allowInlineLineBreaks in LineFormatter causing issues with windows paths containing `\n` or `\r` sequences (#1720) + * Fixed max normalization depth not being taken into account when formatting exceptions with a deep chain of previous exceptions (#1726) + * Fixed PHP 8.2 deprecation warnings (#1722) + * Fixed rare race condition or filesystem issue where StreamHandler is unable to create the directory the log should go into yet it exists already (#1678) + +### 2.7.0 (2022-06-09) + + * Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future (#1682) + * Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks (#1681) + * Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#1670) + * Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though (#1677) + * Fixed RotatingFileHandler issue when the date format contained slashes (#1671) + +### 2.6.0 (2022-05-10) + + * Deprecated `SwiftMailerHandler`, use `SymfonyMailerHandler` instead + * Added `SymfonyMailerHandler` (#1663) + * Added ElasticSearch 8.x support to the ElasticsearchHandler (#1662) + * Added a way to filter/modify stack traces in LineFormatter (#1665) + * Fixed UdpSocket not being able to reopen/reconnect after close() + * Fixed infinite loops if a Handler is triggering logging while handling log records + +### 2.5.0 (2022-04-08) + + * Added `callType` to IntrospectionProcessor (#1612) + * Fixed AsMonologProcessor syntax to be compatible with PHP 7.2 (#1651) + +### 2.4.0 (2022-03-14) + + * Added [`Monolog\LogRecord`](src/Monolog/LogRecord.php) interface that can be used to type-hint records like `array|\Monolog\LogRecord $record` to be forward compatible with the upcoming Monolog 3 changes + * Added `includeStacktraces` constructor params to LineFormatter & JsonFormatter (#1603) + * Added `persistent`, `timeout`, `writingTimeout`, `connectionTimeout`, `chunkSize` constructor params to SocketHandler and derivatives (#1600) + * Added `AsMonologProcessor` PHP attribute which can help autowiring / autoconfiguration of processors if frameworks / integrations decide to make use of it. This is useless when used purely with Monolog (#1637) + * Added support for keeping native BSON types as is in MongoDBFormatter (#1620) + * Added support for a `user_agent` key in WebProcessor, disabled by default but you can use it by configuring the $extraFields you want (#1613) + * Added support for username/userIcon in SlackWebhookHandler (#1617) + * Added extension points to BrowserConsoleHandler (#1593) + * Added record message/context/extra info to exceptions thrown when a StreamHandler cannot open its stream to avoid completely losing the data logged (#1630) + * Fixed error handler signature to accept a null $context which happens with internal PHP errors (#1614) + * Fixed a few setter methods not returning `self` (#1609) + * Fixed handling of records going over the max Telegram message length (#1616) + +### 2.3.5 (2021-10-01) + + * Fixed regression in StreamHandler since 2.3.3 on systems with the memory_limit set to >=20GB (#1592) + +### 2.3.4 (2021-09-15) + + * Fixed support for psr/log 3.x (#1589) + +### 2.3.3 (2021-09-14) + + * Fixed memory usage when using StreamHandler and calling stream_get_contents on the resource you passed to it (#1578, #1577) + * Fixed support for psr/log 2.x (#1587) + * Fixed some type annotations + +### 2.3.2 (2021-07-23) + + * Fixed compatibility with PHP 7.2 - 7.4 when experiencing PCRE errors (#1568) + +### 2.3.1 (2021-07-14) + + * Fixed Utils::getClass handling of anonymous classes not being fully compatible with PHP 8 (#1563) + * Fixed some `@inheritDoc` annotations having the wrong case + +### 2.3.0 (2021-07-05) + + * Added a ton of PHPStan type annotations as well as type aliases on Monolog\Logger for Record, Level and LevelName that you can import (#1557) + * Added ability to customize date format when using JsonFormatter (#1561) + * Fixed FilterHandler not calling reset on its internal handler when reset() is called on it (#1531) + * Fixed SyslogUdpHandler not setting the timezone correctly on DateTimeImmutable instances (#1540) + * Fixed StreamHandler thread safety - chunk size set to 2GB now to avoid interlacing when doing concurrent writes (#1553) + +### 2.2.0 (2020-12-14) + + * Added JSON_PARTIAL_OUTPUT_ON_ERROR to default json encoding flags, to avoid dropping entire context data or even records due to an invalid subset of it somewhere + * Added setDateFormat to NormalizerFormatter (and Line/Json formatters by extension) to allow changing this after object creation + * Added RedisPubSubHandler to log records to a Redis channel using PUBLISH + * Added support for Elastica 7, and deprecated the $type argument of ElasticaFormatter which is not in use anymore as of Elastica 7 + * Added support for millisecond write timeouts in SocketHandler, you can now pass floats to setWritingTimeout, e.g. 0.2 is 200ms + * Added support for unix sockets in SyslogUdpHandler (set $port to 0 to make the $host a unix socket) + * Added handleBatch support for TelegramBotHandler + * Added RFC5424e extended date format including milliseconds to SyslogUdpHandler + * Added support for configuring handlers with numeric level values in strings (coming from e.g. env vars) + * Fixed Wildfire/FirePHP/ChromePHP handling of unicode characters + * Fixed PHP 8 issues in SyslogUdpHandler + * Fixed internal type error when mbstring is missing + +### 2.1.1 (2020-07-23) + + * Fixed removing of json encoding options + * Fixed type hint of $level not accepting strings in SendGridHandler and OverflowHandler + * Fixed SwiftMailerHandler not accepting email templates with an empty subject + * Fixed array access on null in RavenHandler + * Fixed unique_id in WebProcessor not being disableable + +### 2.1.0 (2020-05-22) + + * Added `JSON_INVALID_UTF8_SUBSTITUTE` to default json flags, so that invalid UTF8 characters now get converted to [�](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character) instead of being converted from ISO-8859-15 to UTF8 as it was before, which was hardly a comprehensive solution + * Added `$ignoreEmptyContextAndExtra` option to JsonFormatter to skip empty context/extra entirely from the output + * Added `$parseMode`, `$disableWebPagePreview` and `$disableNotification` options to TelegramBotHandler + * Added tentative support for PHP 8 + * NormalizerFormatter::addJsonEncodeOption and removeJsonEncodeOption are now public to allow modifying default json flags + * Fixed GitProcessor type error when there is no git repo present + * Fixed normalization of SoapFault objects containing deeply nested objects as "detail" + * Fixed support for relative paths in RotatingFileHandler + +### 2.0.2 (2019-12-20) + + * Fixed ElasticsearchHandler swallowing exceptions details when failing to index log records + * Fixed normalization of SoapFault objects containing non-strings as "detail" in LineFormatter + * Fixed formatting of resources in JsonFormatter + * Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services) + * Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it + * Fixed Turkish locale messing up the conversion of level names to their constant values + +### 2.0.1 (2019-11-13) + + * Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable + * Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler, OverflowHandler and SamplingHandler + * Fixed BrowserConsoleHandler formatting when using multiple styles + * Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings + * Fixed normalization of SoapFault objects containing non-strings as "detail" + * Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding + * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB). + * Fixed type error in BrowserConsoleHandler when the context array of log records was not associative. + +### 2.0.0 (2019-08-30) + + * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release + * BC Break: Logger methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types + * Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it + * Fixed support for UTF-8 when cutting strings to avoid cutting a multibyte-character in half + * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases + * Fixed date timezone handling in SyslogUdpHandler + +### 2.0.0-beta2 (2019-07-06) + + * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release + * BC Break: PHP 7.2 is now the minimum required PHP version. + * BC Break: Removed SlackbotHandler, RavenHandler and HipChatHandler, see [UPGRADE.md](UPGRADE.md) for details + * Added OverflowHandler which will only flush log records to its nested handler when reaching a certain amount of logs (i.e. only pass through when things go really bad) + * Added TelegramBotHandler to log records to a [Telegram](https://core.telegram.org/bots/api) bot account + * Added support for JsonSerializable when normalizing exceptions + * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler + * Added SoapFault details to formatted exceptions + * Fixed DeduplicationHandler silently failing to start when file could not be opened + * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records + * Fixed GelfFormatter losing some data when one attachment was too long + * Fixed issue in SignalHandler restarting syscalls functionality + * Improved performance of LogglyHandler when sending multiple logs in a single request + +### 2.0.0-beta1 (2018-12-08) + + * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release + * BC Break: PHP 7.1 is now the minimum required PHP version. + * BC Break: Quite a few interface changes, only relevant if you implemented your own handlers/processors/formatters + * BC Break: Removed non-PSR-3 methods to add records, all the `add*` (e.g. `addWarning`) methods as well as `emerg`, `crit`, `err` and `warn` + * BC Break: The record timezone is now set per Logger instance and not statically anymore + * BC Break: There is no more default handler configured on empty Logger instances + * BC Break: ElasticSearchHandler renamed to ElasticaHandler + * BC Break: Various handler-specific breaks, see [UPGRADE.md](UPGRADE.md) for details + * Added scalar type hints and return hints in all the places it was possible. Switched strict_types on for more reliability. + * Added DateTimeImmutable support, all record datetime are now immutable, and will toString/json serialize with the correct date format, including microseconds (unless disabled) + * Added timezone and microseconds to the default date format + * Added SendGridHandler to use the SendGrid API to send emails + * Added LogmaticHandler to use the Logmatic.io API to store log records + * Added SqsHandler to send log records to an AWS SQS queue + * Added ElasticsearchHandler to send records via the official ES library. Elastica users should now use ElasticaHandler instead of ElasticSearchHandler + * Added NoopHandler which is similar to the NullHandle but does not prevent the bubbling of log records to handlers further down the configuration, useful for temporarily disabling a handler in configuration files + * Added ProcessHandler to write log output to the STDIN of a given process + * Added HostnameProcessor that adds the machine's hostname to log records + * Added a `$dateFormat` option to the PsrLogMessageProcessor which lets you format DateTime instances nicely + * Added support for the PHP 7.x `mongodb` extension in the MongoDBHandler + * Fixed many minor issues in various handlers, and probably added a few regressions too + +### 1.26.1 (2021-05-28) + + * Fixed PHP 8.1 deprecation warning + +### 1.26.0 (2020-12-14) + + * Added $dateFormat and $removeUsedContextFields arguments to PsrLogMessageProcessor (backport from 2.x) + +### 1.25.5 (2020-07-23) + + * Fixed array access on null in RavenHandler + * Fixed unique_id in WebProcessor not being disableable + +### 1.25.4 (2020-05-22) + + * Fixed GitProcessor type error when there is no git repo present + * Fixed normalization of SoapFault objects containing deeply nested objects as "detail" + * Fixed support for relative paths in RotatingFileHandler + +### 1.25.3 (2019-12-20) + + * Fixed formatting of resources in JsonFormatter + * Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services) + * Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it + * Fixed Turkish locale messing up the conversion of level names to their constant values + +### 1.25.2 (2019-11-13) + + * Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable + * Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler and SamplingHandler + * Fixed BrowserConsoleHandler formatting when using multiple styles + * Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings + * Fixed normalization of SoapFault objects containing non-strings as "detail" + * Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding + +### 1.25.1 (2019-09-06) + + * Fixed forward-compatible interfaces to be compatible with Monolog 1.x too. + +### 1.25.0 (2019-09-06) + + * Deprecated SlackbotHandler, use SlackWebhookHandler or SlackHandler instead + * Deprecated RavenHandler, use sentry/sentry 2.x and their Sentry\Monolog\Handler instead + * Deprecated HipChatHandler, migrate to Slack and use SlackWebhookHandler or SlackHandler instead + * Added forward-compatible interfaces and traits FormattableHandlerInterface, FormattableHandlerTrait, ProcessableHandlerInterface, ProcessableHandlerTrait. If you use modern PHP and want to make code compatible with Monolog 1 and 2 this can help. You will have to require at least Monolog 1.25 though. + * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler + * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records + * Fixed issue in SignalHandler restarting syscalls functionality + * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases + * Fixed ZendMonitorHandler to work with the latest Zend Server versions + * Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB). + +### 1.24.0 (2018-11-05) + + * BC Notice: If you are extending any of the Monolog's Formatters' `normalize` method, make sure you add the new `$depth = 0` argument to your function signature to avoid strict PHP warnings. + * Added a `ResettableInterface` in order to reset/reset/clear/flush handlers and processors + * Added a `ProcessorInterface` as an optional way to label a class as being a processor (mostly useful for autowiring dependency containers) + * Added a way to log signals being received using Monolog\SignalHandler + * Added ability to customize error handling at the Logger level using Logger::setExceptionHandler + * Added InsightOpsHandler to migrate users of the LogEntriesHandler + * Added protection to NormalizerFormatter against circular and very deep structures, it now stops normalizing at a depth of 9 + * Added capture of stack traces to ErrorHandler when logging PHP errors + * Added RavenHandler support for a `contexts` context or extra key to forward that to Sentry's contexts + * Added forwarding of context info to FluentdFormatter + * Added SocketHandler::setChunkSize to override the default chunk size in case you must send large log lines to rsyslog for example + * Added ability to extend/override BrowserConsoleHandler + * Added SlackWebhookHandler::getWebhookUrl and SlackHandler::getToken to enable class extensibility + * Added SwiftMailerHandler::getSubjectFormatter to enable class extensibility + * Dropped official support for HHVM in test builds + * Fixed normalization of exception traces when call_user_func is used to avoid serializing objects and the data they contain + * Fixed naming of fields in Slack handler, all field names are now capitalized in all cases + * Fixed HipChatHandler bug where slack dropped messages randomly + * Fixed normalization of objects in Slack handlers + * Fixed support for PHP7's Throwable in NewRelicHandler + * Fixed race bug when StreamHandler sometimes incorrectly reported it failed to create a directory + * Fixed table row styling issues in HtmlFormatter + * Fixed RavenHandler dropping the message when logging exception + * Fixed WhatFailureGroupHandler skipping processors when using handleBatch + and implement it where possible + * Fixed display of anonymous class names + +### 1.23.0 (2017-06-19) + + * Improved SyslogUdpHandler's support for RFC5424 and added optional `$ident` argument + * Fixed GelfHandler truncation to be per field and not per message + * Fixed compatibility issue with PHP <5.3.6 + * Fixed support for headless Chrome in ChromePHPHandler + * Fixed support for latest Aws SDK in DynamoDbHandler + * Fixed support for SwiftMailer 6.0+ in SwiftMailerHandler + +### 1.22.1 (2017-03-13) + + * Fixed lots of minor issues in the new Slack integrations + * Fixed support for allowInlineLineBreaks in LineFormatter when formatting exception backtraces + +### 1.22.0 (2016-11-26) + + * Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily + * Added MercurialProcessor to add mercurial revision and branch names to log records + * Added support for AWS SDK v3 in DynamoDbHandler + * Fixed fatal errors occurring when normalizing generators that have been fully consumed + * Fixed RollbarHandler to include a level (rollbar level), monolog_level (original name), channel and datetime (unix) + * Fixed RollbarHandler not flushing records automatically, calling close() explicitly is not necessary anymore + * Fixed SyslogUdpHandler to avoid sending empty frames + * Fixed a few PHP 7.0 and 7.1 compatibility issues + +### 1.21.0 (2016-07-29) + + * Break: Reverted the addition of $context when the ErrorHandler handles regular php errors from 1.20.0 as it was causing issues + * Added support for more formats in RotatingFileHandler::setFilenameFormat as long as they have Y, m and d in order + * Added ability to format the main line of text the SlackHandler sends by explicitly setting a formatter on the handler + * Added information about SoapFault instances in NormalizerFormatter + * Added $handleOnlyReportedErrors option on ErrorHandler::registerErrorHandler (default true) to allow logging of all errors no matter the error_reporting level + +### 1.20.0 (2016-07-02) + + * Added FingersCrossedHandler::activate() to manually trigger the handler regardless of the activation policy + * Added StreamHandler::getUrl to retrieve the stream's URL + * Added ability to override addRow/addTitle in HtmlFormatter + * Added the $context to context information when the ErrorHandler handles a regular php error + * Deprecated RotatingFileHandler::setFilenameFormat to only support 3 formats: Y, Y-m and Y-m-d + * Fixed WhatFailureGroupHandler to work with PHP7 throwables + * Fixed a few minor bugs + +### 1.19.0 (2016-04-12) + + * Break: StreamHandler will not close streams automatically that it does not own. If you pass in a stream (not a path/url), then it will not close it for you. You can retrieve those using getStream() if needed + * Added DeduplicationHandler to remove duplicate records from notifications across multiple requests, useful for email or other notifications on errors + * Added ability to use `%message%` and other LineFormatter replacements in the subject line of emails sent with NativeMailHandler and SwiftMailerHandler + * Fixed HipChatHandler handling of long messages + +### 1.18.2 (2016-04-02) + + * Fixed ElasticaFormatter to use more precise dates + * Fixed GelfMessageFormatter sending too long messages + +### 1.18.1 (2016-03-13) + + * Fixed SlackHandler bug where slack dropped messages randomly + * Fixed RedisHandler issue when using with the PHPRedis extension + * Fixed AmqpHandler content-type being incorrectly set when using with the AMQP extension + * Fixed BrowserConsoleHandler regression + +### 1.18.0 (2016-03-01) + + * Added optional reduction of timestamp precision via `Logger->useMicrosecondTimestamps(false)`, disabling it gets you a bit of performance boost but reduces the precision to the second instead of microsecond + * Added possibility to skip some extra stack frames in IntrospectionProcessor if you have some library wrapping Monolog that is always adding frames + * Added `Logger->withName` to clone a logger (keeping all handlers) with a new name + * Added FluentdFormatter for the Fluentd unix socket protocol + * Added HandlerWrapper base class to ease the creation of handler wrappers, just extend it and override as needed + * Added support for replacing context sub-keys using `%context.*%` in LineFormatter + * Added support for `payload` context value in RollbarHandler + * Added setRelease to RavenHandler to describe the application version, sent with every log + * Added support for `fingerprint` context value in RavenHandler + * Fixed JSON encoding errors that would gobble up the whole log record, we now handle those more gracefully by dropping chars as needed + * Fixed write timeouts in SocketHandler and derivatives, set to 10sec by default, lower it with `setWritingTimeout()` + * Fixed PHP7 compatibility with regard to Exception/Throwable handling in a few places + +### 1.17.2 (2015-10-14) + + * Fixed ErrorHandler compatibility with non-Monolog PSR-3 loggers + * Fixed SlackHandler handling to use slack functionalities better + * Fixed SwiftMailerHandler bug when sending multiple emails they all had the same id + * Fixed 5.3 compatibility regression + +### 1.17.1 (2015-08-31) + + * Fixed RollbarHandler triggering PHP notices + +### 1.17.0 (2015-08-30) + + * Added support for `checksum` and `release` context/extra values in RavenHandler + * Added better support for exceptions in RollbarHandler + * Added UidProcessor::getUid + * Added support for showing the resource type in NormalizedFormatter + * Fixed IntrospectionProcessor triggering PHP notices + +### 1.16.0 (2015-08-09) + + * Added IFTTTHandler to notify ifttt.com triggers + * Added Logger::setHandlers() to allow setting/replacing all handlers + * Added $capSize in RedisHandler to cap the log size + * Fixed StreamHandler creation of directory to only trigger when the first log write happens + * Fixed bug in the handling of curl failures + * Fixed duplicate logging of fatal errors when both error and fatal error handlers are registered in monolog's ErrorHandler + * Fixed missing fatal errors records with handlers that need to be closed to flush log records + * Fixed TagProcessor::addTags support for associative arrays + +### 1.15.0 (2015-07-12) + + * Added addTags and setTags methods to change a TagProcessor + * Added automatic creation of directories if they are missing for a StreamHandler to open a log file + * Added retry functionality to Loggly, Cube and Mandrill handlers so they retry up to 5 times in case of network failure + * Fixed process exit code being incorrectly reset to 0 if ErrorHandler::registerExceptionHandler was used + * Fixed HTML/JS escaping in BrowserConsoleHandler + * Fixed JSON encoding errors being silently suppressed (PHP 5.5+ only) + +### 1.14.0 (2015-06-19) + + * Added PHPConsoleHandler to send record to Chrome's PHP Console extension and library + * Added support for objects implementing __toString in the NormalizerFormatter + * Added support for HipChat's v2 API in HipChatHandler + * Added Logger::setTimezone() to initialize the timezone monolog should use in case date.timezone isn't correct for your app + * Added an option to send formatted message instead of the raw record on PushoverHandler via ->useFormattedMessage(true) + * Fixed curl errors being silently suppressed + +### 1.13.1 (2015-03-09) + + * Fixed regression in HipChat requiring a new token to be created + +### 1.13.0 (2015-03-05) + + * Added Registry::hasLogger to check for the presence of a logger instance + * Added context.user support to RavenHandler + * Added HipChat API v2 support in the HipChatHandler + * Added NativeMailerHandler::addParameter to pass params to the mail() process + * Added context data to SlackHandler when $includeContextAndExtra is true + * Added ability to customize the Swift_Message per-email in SwiftMailerHandler + * Fixed SwiftMailerHandler to lazily create message instances if a callback is provided + * Fixed serialization of INF and NaN values in Normalizer and LineFormatter + +### 1.12.0 (2014-12-29) + + * Break: HandlerInterface::isHandling now receives a partial record containing only a level key. This was always the intent and does not break any Monolog handler but is strictly speaking a BC break and you should check if you relied on any other field in your own handlers. + * Added PsrHandler to forward records to another PSR-3 logger + * Added SamplingHandler to wrap around a handler and include only every Nth record + * Added MongoDBFormatter to support better storage with MongoDBHandler (it must be enabled manually for now) + * Added exception codes in the output of most formatters + * Added LineFormatter::includeStacktraces to enable exception stack traces in logs (uses more than one line) + * Added $useShortAttachment to SlackHandler to minify attachment size and $includeExtra to append extra data + * Added $host to HipChatHandler for users of private instances + * Added $transactionName to NewRelicHandler and support for a transaction_name context value + * Fixed MandrillHandler to avoid outputting API call responses + * Fixed some non-standard behaviors in SyslogUdpHandler + +### 1.11.0 (2014-09-30) + + * Break: The NewRelicHandler extra and context data are now prefixed with extra_ and context_ to avoid clashes. Watch out if you have scripts reading those from the API and rely on names + * Added WhatFailureGroupHandler to suppress any exception coming from the wrapped handlers and avoid chain failures if a logging service fails + * Added MandrillHandler to send emails via the Mandrillapp.com API + * Added SlackHandler to log records to a Slack.com account + * Added FleepHookHandler to log records to a Fleep.io account + * Added LogglyHandler::addTag to allow adding tags to an existing handler + * Added $ignoreEmptyContextAndExtra to LineFormatter to avoid empty [] at the end + * Added $useLocking to StreamHandler and RotatingFileHandler to enable flock() while writing + * Added support for PhpAmqpLib in the AmqpHandler + * Added FingersCrossedHandler::clear and BufferHandler::clear to reset them between batches in long running jobs + * Added support for adding extra fields from $_SERVER in the WebProcessor + * Fixed support for non-string values in PrsLogMessageProcessor + * Fixed SwiftMailer messages being sent with the wrong date in long running scripts + * Fixed minor PHP 5.6 compatibility issues + * Fixed BufferHandler::close being called twice + +### 1.10.0 (2014-06-04) + + * Added Logger::getHandlers() and Logger::getProcessors() methods + * Added $passthruLevel argument to FingersCrossedHandler to let it always pass some records through even if the trigger level is not reached + * Added support for extra data in NewRelicHandler + * Added $expandNewlines flag to the ErrorLogHandler to create multiple log entries when a message has multiple lines + +### 1.9.1 (2014-04-24) + + * Fixed regression in RotatingFileHandler file permissions + * Fixed initialization of the BufferHandler to make sure it gets flushed after receiving records + * Fixed ChromePHPHandler and FirePHPHandler's activation strategies to be more conservative + +### 1.9.0 (2014-04-20) + + * Added LogEntriesHandler to send logs to a LogEntries account + * Added $filePermissions to tweak file mode on StreamHandler and RotatingFileHandler + * Added $useFormatting flag to MemoryProcessor to make it send raw data in bytes + * Added support for table formatting in FirePHPHandler via the table context key + * Added a TagProcessor to add tags to records, and support for tags in RavenHandler + * Added $appendNewline flag to the JsonFormatter to enable using it when logging to files + * Added sound support to the PushoverHandler + * Fixed multi-threading support in StreamHandler + * Fixed empty headers issue when ChromePHPHandler received no records + * Fixed default format of the ErrorLogHandler + +### 1.8.0 (2014-03-23) + + * Break: the LineFormatter now strips newlines by default because this was a bug, set $allowInlineLineBreaks to true if you need them + * Added BrowserConsoleHandler to send logs to any browser's console via console.log() injection in the output + * Added FilterHandler to filter records and only allow those of a given list of levels through to the wrapped handler + * Added FlowdockHandler to send logs to a Flowdock account + * Added RollbarHandler to send logs to a Rollbar account + * Added HtmlFormatter to send prettier log emails with colors for each log level + * Added GitProcessor to add the current branch/commit to extra record data + * Added a Monolog\Registry class to allow easier global access to pre-configured loggers + * Added support for the new official graylog2/gelf-php lib for GelfHandler, upgrade if you can by replacing the mlehner/gelf-php requirement + * Added support for HHVM + * Added support for Loggly batch uploads + * Added support for tweaking the content type and encoding in NativeMailerHandler + * Added $skipClassesPartials to tweak the ignored classes in the IntrospectionProcessor + * Fixed batch request support in GelfHandler + +### 1.7.0 (2013-11-14) + + * Added ElasticSearchHandler to send logs to an Elastic Search server + * Added DynamoDbHandler and ScalarFormatter to send logs to Amazon's Dynamo DB + * Added SyslogUdpHandler to send logs to a remote syslogd server + * Added LogglyHandler to send logs to a Loggly account + * Added $level to IntrospectionProcessor so it only adds backtraces when needed + * Added $version to LogstashFormatter to allow using the new v1 Logstash format + * Added $appName to NewRelicHandler + * Added configuration of Pushover notification retries/expiry + * Added $maxColumnWidth to NativeMailerHandler to change the 70 chars default + * Added chainability to most setters for all handlers + * Fixed RavenHandler batch processing so it takes the message from the record with highest priority + * Fixed HipChatHandler batch processing so it sends all messages at once + * Fixed issues with eAccelerator + * Fixed and improved many small things + +### 1.6.0 (2013-07-29) + + * Added HipChatHandler to send logs to a HipChat chat room + * Added ErrorLogHandler to send logs to PHP's error_log function + * Added NewRelicHandler to send logs to NewRelic's service + * Added Monolog\ErrorHandler helper class to register a Logger as exception/error/fatal handler + * Added ChannelLevelActivationStrategy for the FingersCrossedHandler to customize levels by channel + * Added stack traces output when normalizing exceptions (json output & co) + * Added Monolog\Logger::API constant (currently 1) + * Added support for ChromePHP's v4.0 extension + * Added support for message priorities in PushoverHandler, see $highPriorityLevel and $emergencyLevel + * Added support for sending messages to multiple users at once with the PushoverHandler + * Fixed RavenHandler's support for batch sending of messages (when behind a Buffer or FingersCrossedHandler) + * Fixed normalization of Traversables with very large data sets, only the first 1000 items are shown now + * Fixed issue in RotatingFileHandler when an open_basedir restriction is active + * Fixed minor issues in RavenHandler and bumped the API to Raven 0.5.0 + * Fixed SyslogHandler issue when many were used concurrently with different facilities + +### 1.5.0 (2013-04-23) + + * Added ProcessIdProcessor to inject the PID in log records + * Added UidProcessor to inject a unique identifier to all log records of one request/run + * Added support for previous exceptions in the LineFormatter exception serialization + * Added Monolog\Logger::getLevels() to get all available levels + * Fixed ChromePHPHandler so it avoids sending headers larger than Chrome can handle + +### 1.4.1 (2013-04-01) + + * Fixed exception formatting in the LineFormatter to be more minimalistic + * Fixed RavenHandler's handling of context/extra data, requires Raven client >0.1.0 + * Fixed log rotation in RotatingFileHandler to work with long running scripts spanning multiple days + * Fixed WebProcessor array access so it checks for data presence + * Fixed Buffer, Group and FingersCrossed handlers to make use of their processors + +### 1.4.0 (2013-02-13) + + * Added RedisHandler to log to Redis via the Predis library or the phpredis extension + * Added ZendMonitorHandler to log to the Zend Server monitor + * Added the possibility to pass arrays of handlers and processors directly in the Logger constructor + * Added `$useSSL` option to the PushoverHandler which is enabled by default + * Fixed ChromePHPHandler and FirePHPHandler issue when multiple instances are used simultaneously + * Fixed header injection capability in the NativeMailHandler + +### 1.3.1 (2013-01-11) + + * Fixed LogstashFormatter to be usable with stream handlers + * Fixed GelfMessageFormatter levels on Windows + +### 1.3.0 (2013-01-08) + + * Added PSR-3 compliance, the `Monolog\Logger` class is now an instance of `Psr\Log\LoggerInterface` + * Added PsrLogMessageProcessor that you can selectively enable for full PSR-3 compliance + * Added LogstashFormatter (combine with SocketHandler or StreamHandler to send logs to Logstash) + * Added PushoverHandler to send mobile notifications + * Added CouchDBHandler and DoctrineCouchDBHandler + * Added RavenHandler to send data to Sentry servers + * Added support for the new MongoClient class in MongoDBHandler + * Added microsecond precision to log records' timestamps + * Added `$flushOnOverflow` param to BufferHandler to flush by batches instead of losing + the oldest entries + * Fixed normalization of objects with cyclic references + +### 1.2.1 (2012-08-29) + + * Added new $logopts arg to SyslogHandler to provide custom openlog options + * Fixed fatal error in SyslogHandler + +### 1.2.0 (2012-08-18) + + * Added AmqpHandler (for use with AMQP servers) + * Added CubeHandler + * Added NativeMailerHandler::addHeader() to send custom headers in mails + * Added the possibility to specify more than one recipient in NativeMailerHandler + * Added the possibility to specify float timeouts in SocketHandler + * Added NOTICE and EMERGENCY levels to conform with RFC 5424 + * Fixed the log records to use the php default timezone instead of UTC + * Fixed BufferHandler not being flushed properly on PHP fatal errors + * Fixed normalization of exotic resource types + * Fixed the default format of the SyslogHandler to avoid duplicating datetimes in syslog + +### 1.1.0 (2012-04-23) + + * Added Monolog\Logger::isHandling() to check if a handler will + handle the given log level + * Added ChromePHPHandler + * Added MongoDBHandler + * Added GelfHandler (for use with Graylog2 servers) + * Added SocketHandler (for use with syslog-ng for example) + * Added NormalizerFormatter + * Added the possibility to change the activation strategy of the FingersCrossedHandler + * Added possibility to show microseconds in logs + * Added `server` and `referer` to WebProcessor output + +### 1.0.2 (2011-10-24) + + * Fixed bug in IE with large response headers and FirePHPHandler + +### 1.0.1 (2011-08-25) + + * Added MemoryPeakUsageProcessor and MemoryUsageProcessor + * Added Monolog\Logger::getName() to get a logger's channel name + +### 1.0.0 (2011-07-06) + + * Added IntrospectionProcessor to get info from where the logger was called + * Fixed WebProcessor in CLI + +### 1.0.0-RC1 (2011-07-01) + + * Initial release diff --git a/vendor/monolog/monolog/LICENSE b/vendor/monolog/monolog/LICENSE new file mode 100644 index 000000000..aa2a0426c --- /dev/null +++ b/vendor/monolog/monolog/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011-2020 Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/monolog/monolog/README.md b/vendor/monolog/monolog/README.md new file mode 100644 index 000000000..d7151de4f --- /dev/null +++ b/vendor/monolog/monolog/README.md @@ -0,0 +1,120 @@ +![Monolog](logo.jpg) + +# Monolog - Logging for PHP [![Continuous Integration](https://github.com/Seldaek/monolog/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/Seldaek/monolog/actions) + +[![Total Downloads](https://img.shields.io/packagist/dt/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog) +[![Latest Stable Version](https://img.shields.io/packagist/v/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog) + +>**Note** This is the **documentation for Monolog 3.x**, if you are using older releases +>see the documentation for [Monolog 2.x](https://github.com/Seldaek/monolog/blob/2.x/README.md) or [Monolog 1.x](https://github.com/Seldaek/monolog/blob/1.x/README.md) + +Monolog sends your logs to files, sockets, inboxes, databases and various +web services. See the complete list of handlers below. Special handlers +allow you to build advanced logging strategies. + +This library implements the [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) +interface that you can type-hint against in your own libraries to keep +a maximum of interoperability. You can also use it in your applications to +make sure you can always use another compatible logger at a later time. +As of 1.11.0 Monolog public APIs will also accept PSR-3 log levels. +Internally Monolog still uses its own level scheme since it predates PSR-3. + +## Installation + +Install the latest version with + +```bash +$ composer require monolog/monolog +``` + +## Basic Usage + +```php +pushHandler(new StreamHandler('path/to/your.log', Level::Warning)); + +// add records to the log +$log->warning('Foo'); +$log->error('Bar'); +``` + +## Documentation + +- [Usage Instructions](doc/01-usage.md) +- [Handlers, Formatters and Processors](doc/02-handlers-formatters-processors.md) +- [Utility Classes](doc/03-utilities.md) +- [Extending Monolog](doc/04-extending.md) +- [Log Record Structure](doc/message-structure.md) + +## Support Monolog Financially + +Get supported Monolog and help fund the project with the [Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-monolog-monolog?utm_source=packagist-monolog-monolog&utm_medium=referral&utm_campaign=enterprise) or via [GitHub sponsorship](https://github.com/sponsors/Seldaek). + +Tidelift delivers commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. + +## Third Party Packages + +Third party handlers, formatters and processors are +[listed in the wiki](https://github.com/Seldaek/monolog/wiki/Third-Party-Packages). You +can also add your own there if you publish one. + +## About + +### Requirements + +- Monolog `^3.0` works with PHP 8.1 or above. +- Monolog `^2.5` works with PHP 7.2 or above. +- Monolog `^1.25` works with PHP 5.3 up to 8.1, but is not very maintained anymore and will not receive PHP support fixes anymore. + +### Support + +Monolog 1.x support is somewhat limited at this point and only important fixes will be done. You should migrate to Monolog 2 or 3 where possible to benefit from all the latest features and fixes. + +### Submitting bugs and feature requests + +Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/monolog/issues) + +### Framework Integrations + +- Frameworks and libraries using [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) + can be used very easily with Monolog since it implements the interface. +- [Symfony](http://symfony.com) comes out of the box with Monolog. +- [Laravel](http://laravel.com/) comes out of the box with Monolog. +- [Lumen](http://lumen.laravel.com/) comes out of the box with Monolog. +- [PPI](https://github.com/ppi/framework) comes out of the box with Monolog. +- [CakePHP](http://cakephp.org/) is usable with Monolog via the [cakephp-monolog](https://github.com/jadb/cakephp-monolog) plugin. +- [Slim](http://www.slimframework.com/) is usable with Monolog via the [Slim-Monolog](https://github.com/Flynsarmy/Slim-Monolog) log writer. +- [XOOPS 2.6](http://xoops.org/) comes out of the box with Monolog. +- [Aura.Web_Project](https://github.com/auraphp/Aura.Web_Project) comes out of the box with Monolog. +- [Nette Framework](http://nette.org/en/) is usable with Monolog via the [contributte/monolog](https://github.com/contributte/monolog) or [orisai/nette-monolog](https://github.com/orisai/nette-monolog) extensions. +- [Proton Micro Framework](https://github.com/alexbilbie/Proton) comes out of the box with Monolog. +- [FuelPHP](http://fuelphp.com/) comes out of the box with Monolog. +- [Equip Framework](https://github.com/equip/framework) comes out of the box with Monolog. +- [Yii 2](http://www.yiiframework.com/) is usable with Monolog via the [yii2-monolog](https://github.com/merorafael/yii2-monolog) or [yii2-psr-log-target](https://github.com/samdark/yii2-psr-log-target) plugins. +- [Hawkbit Micro Framework](https://github.com/HawkBitPhp/hawkbit) comes out of the box with Monolog. +- [SilverStripe 4](https://www.silverstripe.org/) comes out of the box with Monolog. +- [Drupal](https://www.drupal.org/) is usable with Monolog via the [monolog](https://www.drupal.org/project/monolog) module. +- [Aimeos ecommerce framework](https://aimeos.org/) is usable with Monolog via the [ai-monolog](https://github.com/aimeos/ai-monolog) extension. +- [Magento](https://magento.com/) comes out of the box with Monolog. +- [Spiral Framework](https://spiral.dev) comes out of the box with Monolog bridge. + +### Author + +Jordi Boggiano - -
+See also the list of [contributors](https://github.com/Seldaek/monolog/contributors) who participated in this project. + +### License + +Monolog is licensed under the MIT License - see the [LICENSE](LICENSE) file for details + +### Acknowledgements + +This library is heavily inspired by Python's [Logbook](https://logbook.readthedocs.io/en/stable/) +library, although most concepts have been adjusted to fit to the PHP world. diff --git a/vendor/monolog/monolog/composer.json b/vendor/monolog/monolog/composer.json new file mode 100644 index 000000000..4ccd07211 --- /dev/null +++ b/vendor/monolog/monolog/composer.json @@ -0,0 +1,77 @@ +{ + "name": "monolog/monolog", + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "keywords": ["log", "logging", "psr-3"], + "homepage": "https://github.com/Seldaek/monolog", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "require-dev": { + "ext-json": "*", + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.4", + "phpunit/phpunit": "^10.1", + "predis/predis": "^1.1 || ^2", + "ruflin/elastica": "^7", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-openssl": "Required to send log messages using SSL" + }, + "autoload": { + "psr-4": {"Monolog\\": "src/Monolog"} + }, + "autoload-dev": { + "psr-4": {"Monolog\\": "tests/Monolog"} + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "scripts": { + "test": "@php vendor/bin/phpunit", + "phpstan": "@php vendor/bin/phpstan analyse" + }, + "config": { + "lock": false, + "sort-packages": true, + "platform-check": false + } +} diff --git a/vendor/monolog/monolog/favicon.ico b/vendor/monolog/monolog/favicon.ico new file mode 100644 index 000000000..a36dc176c Binary files /dev/null and b/vendor/monolog/monolog/favicon.ico differ diff --git a/vendor/monolog/monolog/logo.jpg b/vendor/monolog/monolog/logo.jpg new file mode 100644 index 000000000..333234a7e Binary files /dev/null and b/vendor/monolog/monolog/logo.jpg differ diff --git a/vendor/monolog/monolog/src/Monolog/Attribute/AsMonologProcessor.php b/vendor/monolog/monolog/src/Monolog/Attribute/AsMonologProcessor.php new file mode 100644 index 000000000..c519e0537 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Attribute/AsMonologProcessor.php @@ -0,0 +1,38 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Attribute; + +/** + * A reusable attribute to help configure a class or a method as a processor. + * + * Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer. + * + * Using it with the Monolog library only has no effect at all: processors should still be turned into a callable if + * needed and manually pushed to the loggers and to the processable handlers. + */ +#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] +class AsMonologProcessor +{ + /** + * @param string|null $channel The logging channel the processor should be pushed to. + * @param string|null $handler The handler the processor should be pushed to. + * @param string|null $method The method that processes the records (if the attribute is used at the class level). + * @param int|null $priority The priority of the processor so the order can be determined. + */ + public function __construct( + public readonly ?string $channel = null, + public readonly ?string $handler = null, + public readonly ?string $method = null, + public readonly ?int $priority = null + ) { + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Attribute/WithMonologChannel.php b/vendor/monolog/monolog/src/Monolog/Attribute/WithMonologChannel.php new file mode 100644 index 000000000..862e05b33 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Attribute/WithMonologChannel.php @@ -0,0 +1,29 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Attribute; + +/** + * A reusable attribute to help configure a class as expecting a given logger channel. + * + * Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer. + * + * Using it with the Monolog library only has no effect at all: wiring the logger instance into + * other classes is not managed by Monolog. + */ +#[\Attribute(\Attribute::TARGET_CLASS)] +final class WithMonologChannel +{ + public function __construct( + public readonly string $channel + ) { + } +} diff --git a/vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php b/vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php new file mode 100644 index 000000000..274b73ea1 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php @@ -0,0 +1,46 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use DateTimeZone; + +/** + * Overrides default json encoding of date time objects + * + * @author Menno Holtkamp + * @author Jordi Boggiano + */ +class DateTimeImmutable extends \DateTimeImmutable implements \JsonSerializable +{ + private bool $useMicroseconds; + + public function __construct(bool $useMicroseconds, ?DateTimeZone $timezone = null) + { + $this->useMicroseconds = $useMicroseconds; + + parent::__construct('now', $timezone); + } + + public function jsonSerialize(): string + { + if ($this->useMicroseconds) { + return $this->format('Y-m-d\TH:i:s.uP'); + } + + return $this->format('Y-m-d\TH:i:sP'); + } + + public function __toString(): string + { + return $this->jsonSerialize(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/ErrorHandler.php b/vendor/monolog/monolog/src/Monolog/ErrorHandler.php new file mode 100644 index 000000000..08d414b34 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/ErrorHandler.php @@ -0,0 +1,279 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use Closure; +use Psr\Log\LoggerInterface; +use Psr\Log\LogLevel; + +/** + * Monolog error handler + * + * A facility to enable logging of runtime errors, exceptions and fatal errors. + * + * Quick setup: ErrorHandler::register($logger); + * + * @author Jordi Boggiano + */ +class ErrorHandler +{ + private Closure|null $previousExceptionHandler = null; + + /** @var array an array of class name to LogLevel::* constant mapping */ + private array $uncaughtExceptionLevelMap = []; + + /** @var Closure|true|null */ + private Closure|bool|null $previousErrorHandler = null; + + /** @var array an array of E_* constant to LogLevel::* constant mapping */ + private array $errorLevelMap = []; + + private bool $handleOnlyReportedErrors = true; + + private bool $hasFatalErrorHandler = false; + + private string $fatalLevel = LogLevel::ALERT; + + private string|null $reservedMemory = null; + + /** @var ?array{type: int, message: string, file: string, line: int, trace: mixed} */ + private array|null $lastFatalData = null; + + private const FATAL_ERRORS = [E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR]; + + public function __construct( + private LoggerInterface $logger + ) { + } + + /** + * Registers a new ErrorHandler for a given Logger + * + * By default it will handle errors, exceptions and fatal errors + * + * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling + * @param array|false $exceptionLevelMap an array of class name to LogLevel::* constant mapping, or false to disable exception handling + * @param LogLevel::*|null|false $fatalLevel a LogLevel::* constant, null to use the default LogLevel::ALERT or false to disable fatal error handling + * @return static + */ + public static function register(LoggerInterface $logger, $errorLevelMap = [], $exceptionLevelMap = [], $fatalLevel = null): self + { + /** @phpstan-ignore-next-line */ + $handler = new static($logger); + if ($errorLevelMap !== false) { + $handler->registerErrorHandler($errorLevelMap); + } + if ($exceptionLevelMap !== false) { + $handler->registerExceptionHandler($exceptionLevelMap); + } + if ($fatalLevel !== false) { + $handler->registerFatalHandler($fatalLevel); + } + + return $handler; + } + + /** + * @param array $levelMap an array of class name to LogLevel::* constant mapping + * @return $this + */ + public function registerExceptionHandler(array $levelMap = [], bool $callPrevious = true): self + { + $prev = set_exception_handler(function (\Throwable $e): void { + $this->handleException($e); + }); + $this->uncaughtExceptionLevelMap = $levelMap; + foreach ($this->defaultExceptionLevelMap() as $class => $level) { + if (!isset($this->uncaughtExceptionLevelMap[$class])) { + $this->uncaughtExceptionLevelMap[$class] = $level; + } + } + if ($callPrevious && null !== $prev) { + $this->previousExceptionHandler = $prev(...); + } + + return $this; + } + + /** + * @param array $levelMap an array of E_* constant to LogLevel::* constant mapping + * @return $this + */ + public function registerErrorHandler(array $levelMap = [], bool $callPrevious = true, int $errorTypes = -1, bool $handleOnlyReportedErrors = true): self + { + $prev = set_error_handler($this->handleError(...), $errorTypes); + $this->errorLevelMap = array_replace($this->defaultErrorLevelMap(), $levelMap); + if ($callPrevious) { + $this->previousErrorHandler = $prev !== null ? $prev(...) : true; + } else { + $this->previousErrorHandler = null; + } + + $this->handleOnlyReportedErrors = $handleOnlyReportedErrors; + + return $this; + } + + /** + * @param LogLevel::*|null $level a LogLevel::* constant, null to use the default LogLevel::ALERT + * @param int $reservedMemorySize Amount of KBs to reserve in memory so that it can be freed when handling fatal errors giving Monolog some room in memory to get its job done + * @return $this + */ + public function registerFatalHandler($level = null, int $reservedMemorySize = 20): self + { + register_shutdown_function($this->handleFatalError(...)); + + $this->reservedMemory = str_repeat(' ', 1024 * $reservedMemorySize); + $this->fatalLevel = null === $level ? LogLevel::ALERT : $level; + $this->hasFatalErrorHandler = true; + + return $this; + } + + /** + * @return array + */ + protected function defaultExceptionLevelMap(): array + { + return [ + 'ParseError' => LogLevel::CRITICAL, + 'Throwable' => LogLevel::ERROR, + ]; + } + + /** + * @return array + */ + protected function defaultErrorLevelMap(): array + { + return [ + E_ERROR => LogLevel::CRITICAL, + E_WARNING => LogLevel::WARNING, + E_PARSE => LogLevel::ALERT, + E_NOTICE => LogLevel::NOTICE, + E_CORE_ERROR => LogLevel::CRITICAL, + E_CORE_WARNING => LogLevel::WARNING, + E_COMPILE_ERROR => LogLevel::ALERT, + E_COMPILE_WARNING => LogLevel::WARNING, + E_USER_ERROR => LogLevel::ERROR, + E_USER_WARNING => LogLevel::WARNING, + E_USER_NOTICE => LogLevel::NOTICE, + E_STRICT => LogLevel::NOTICE, + E_RECOVERABLE_ERROR => LogLevel::ERROR, + E_DEPRECATED => LogLevel::NOTICE, + E_USER_DEPRECATED => LogLevel::NOTICE, + ]; + } + + private function handleException(\Throwable $e): never + { + $level = LogLevel::ERROR; + foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) { + if ($e instanceof $class) { + $level = $candidate; + break; + } + } + + $this->logger->log( + $level, + sprintf('Uncaught Exception %s: "%s" at %s line %s', Utils::getClass($e), $e->getMessage(), $e->getFile(), $e->getLine()), + ['exception' => $e] + ); + + if (null !== $this->previousExceptionHandler) { + ($this->previousExceptionHandler)($e); + } + + if (!headers_sent() && in_array(strtolower((string) ini_get('display_errors')), ['0', '', 'false', 'off', 'none', 'no'], true)) { + http_response_code(500); + } + + exit(255); + } + + private function handleError(int $code, string $message, string $file = '', int $line = 0): bool + { + if ($this->handleOnlyReportedErrors && 0 === (error_reporting() & $code)) { + return false; + } + + // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries + if (!$this->hasFatalErrorHandler || !in_array($code, self::FATAL_ERRORS, true)) { + $level = $this->errorLevelMap[$code] ?? LogLevel::CRITICAL; + $this->logger->log($level, self::codeToString($code).': '.$message, ['code' => $code, 'message' => $message, 'file' => $file, 'line' => $line]); + } else { + $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); + array_shift($trace); // Exclude handleError from trace + $this->lastFatalData = ['type' => $code, 'message' => $message, 'file' => $file, 'line' => $line, 'trace' => $trace]; + } + + if ($this->previousErrorHandler === true) { + return false; + } + if ($this->previousErrorHandler instanceof Closure) { + return (bool) ($this->previousErrorHandler)($code, $message, $file, $line); + } + + return true; + } + + /** + * @private + */ + public function handleFatalError(): void + { + $this->reservedMemory = ''; + + if (is_array($this->lastFatalData)) { + $lastError = $this->lastFatalData; + } else { + $lastError = error_get_last(); + } + if (is_array($lastError) && in_array($lastError['type'], self::FATAL_ERRORS, true)) { + $trace = $lastError['trace'] ?? null; + $this->logger->log( + $this->fatalLevel, + 'Fatal Error ('.self::codeToString($lastError['type']).'): '.$lastError['message'], + ['code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'], 'trace' => $trace] + ); + + if ($this->logger instanceof Logger) { + foreach ($this->logger->getHandlers() as $handler) { + $handler->close(); + } + } + } + } + + private static function codeToString(int $code): string + { + return match ($code) { + E_ERROR => 'E_ERROR', + E_WARNING => 'E_WARNING', + E_PARSE => 'E_PARSE', + E_NOTICE => 'E_NOTICE', + E_CORE_ERROR => 'E_CORE_ERROR', + E_CORE_WARNING => 'E_CORE_WARNING', + E_COMPILE_ERROR => 'E_COMPILE_ERROR', + E_COMPILE_WARNING => 'E_COMPILE_WARNING', + E_USER_ERROR => 'E_USER_ERROR', + E_USER_WARNING => 'E_USER_WARNING', + E_USER_NOTICE => 'E_USER_NOTICE', + E_STRICT => 'E_STRICT', + E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', + E_DEPRECATED => 'E_DEPRECATED', + E_USER_DEPRECATED => 'E_USER_DEPRECATED', + default => 'Unknown PHP error', + }; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php new file mode 100644 index 000000000..3f1d45829 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php @@ -0,0 +1,87 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Formats a log message according to the ChromePHP array format + * + * @author Christophe Coevoet + */ +class ChromePHPFormatter implements FormatterInterface +{ + /** + * Translates Monolog log levels to Wildfire levels. + * + * @return 'log'|'info'|'warn'|'error' + */ + private function toWildfireLevel(Level $level): string + { + return match ($level) { + Level::Debug => 'log', + Level::Info => 'info', + Level::Notice => 'info', + Level::Warning => 'warn', + Level::Error => 'error', + Level::Critical => 'error', + Level::Alert => 'error', + Level::Emergency => 'error', + }; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + // Retrieve the line and file if set and remove them from the formatted extra + $backtrace = 'unknown'; + if (isset($record->extra['file'], $record->extra['line'])) { + $backtrace = $record->extra['file'].' : '.$record->extra['line']; + unset($record->extra['file'], $record->extra['line']); + } + + $message = ['message' => $record->message]; + if (\count($record->context) > 0) { + $message['context'] = $record->context; + } + if (\count($record->extra) > 0) { + $message['extra'] = $record->extra; + } + if (count($message) === 1) { + $message = reset($message); + } + + return [ + $record->channel, + $message, + $backtrace, + $this->toWildfireLevel($record->level), + ]; + } + + /** + * @inheritDoc + */ + public function formatBatch(array $records) + { + $formatted = []; + + foreach ($records as $record) { + $formatted[] = $this->format($record); + } + + return $formatted; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php new file mode 100644 index 000000000..8c92eff22 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php @@ -0,0 +1,89 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Elastica\Document; +use Monolog\LogRecord; + +/** + * Format a log message into an Elastica Document + * + * @author Jelle Vink + */ +class ElasticaFormatter extends NormalizerFormatter +{ + /** + * @var string Elastic search index name + */ + protected string $index; + + /** + * @var string|null Elastic search document type + */ + protected string|null $type; + + /** + * @param string $index Elastic Search index name + * @param ?string $type Elastic Search document type, deprecated as of Elastica 7 + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(string $index, ?string $type) + { + // elasticsearch requires a ISO 8601 format date with optional millisecond precision. + parent::__construct('Y-m-d\TH:i:s.uP'); + + $this->index = $index; + $this->type = $type; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + $record = parent::format($record); + + return $this->getDocument($record); + } + + public function getIndex(): string + { + return $this->index; + } + + /** + * @deprecated since Elastica 7 type has no effect + */ + public function getType(): string + { + /** @phpstan-ignore-next-line */ + return $this->type; + } + + /** + * Convert a log message into an Elastica Document + * + * @param mixed[] $record + */ + protected function getDocument(array $record): Document + { + $document = new Document(); + $document->setData($record); + if (method_exists($document, 'setType')) { + $document->setType($this->type); + } + $document->setIndex($this->index); + + return $document; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php new file mode 100644 index 000000000..b38aca079 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php @@ -0,0 +1,88 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use DateTimeInterface; +use Monolog\LogRecord; + +/** + * Format a log message into an Elasticsearch record + * + * @author Avtandil Kikabidze + */ +class ElasticsearchFormatter extends NormalizerFormatter +{ + /** + * @var string Elasticsearch index name + */ + protected string $index; + + /** + * @var string Elasticsearch record type + */ + protected string $type; + + /** + * @param string $index Elasticsearch index name + * @param string $type Elasticsearch record type + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(string $index, string $type) + { + // Elasticsearch requires an ISO 8601 format date with optional millisecond precision. + parent::__construct(DateTimeInterface::ISO8601); + + $this->index = $index; + $this->type = $type; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + $record = parent::format($record); + + return $this->getDocument($record); + } + + /** + * Getter index + */ + public function getIndex(): string + { + return $this->index; + } + + /** + * Getter type + */ + public function getType(): string + { + return $this->type; + } + + /** + * Convert a log message into an Elasticsearch record + * + * @param mixed[] $record Log message + * @return mixed[] + */ + protected function getDocument(array $record): array + { + $record['_index'] = $this->index; + $record['_type'] = $this->type; + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php new file mode 100644 index 000000000..c64da7c06 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php @@ -0,0 +1,106 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * formats the record to be used in the FlowdockHandler + * + * @author Dominik Liebler + * @deprecated Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 + */ +class FlowdockFormatter implements FormatterInterface +{ + private string $source; + + private string $sourceEmail; + + public function __construct(string $source, string $sourceEmail) + { + $this->source = $source; + $this->sourceEmail = $sourceEmail; + } + + /** + * @inheritDoc + * + * @return mixed[] + */ + public function format(LogRecord $record): array + { + $tags = [ + '#logs', + '#' . $record->level->toPsrLogLevel(), + '#' . $record->channel, + ]; + + foreach ($record->extra as $value) { + $tags[] = '#' . $value; + } + + $subject = sprintf( + 'in %s: %s - %s', + $this->source, + $record->level->getName(), + $this->getShortMessage($record->message) + ); + + return [ + 'source' => $this->source, + 'from_address' => $this->sourceEmail, + 'subject' => $subject, + 'content' => $record->message, + 'tags' => $tags, + 'project' => $this->source, + ]; + } + + /** + * @inheritDoc + * + * @return mixed[][] + */ + public function formatBatch(array $records): array + { + $formatted = []; + + foreach ($records as $record) { + $formatted[] = $this->format($record); + } + + return $formatted; + } + + public function getShortMessage(string $message): string + { + static $hasMbString; + + if (null === $hasMbString) { + $hasMbString = function_exists('mb_strlen'); + } + + $maxLength = 45; + + if ($hasMbString) { + if (mb_strlen($message, 'UTF-8') > $maxLength) { + $message = mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...'; + } + } else { + if (strlen($message) > $maxLength) { + $message = substr($message, 0, $maxLength - 4) . ' ...'; + } + } + + return $message; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php new file mode 100644 index 000000000..04495a614 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php @@ -0,0 +1,92 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Class FluentdFormatter + * + * Serializes a log message to Fluentd unix socket protocol + * + * Fluentd config: + * + * + * type unix + * path /var/run/td-agent/td-agent.sock + * + * + * Monolog setup: + * + * $logger = new Monolog\Logger('fluent.tag'); + * $fluentHandler = new Monolog\Handler\SocketHandler('unix:///var/run/td-agent/td-agent.sock'); + * $fluentHandler->setFormatter(new Monolog\Formatter\FluentdFormatter()); + * $logger->pushHandler($fluentHandler); + * + * @author Andrius Putna + */ +class FluentdFormatter implements FormatterInterface +{ + /** + * @var bool $levelTag should message level be a part of the fluentd tag + */ + protected bool $levelTag = false; + + /** + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(bool $levelTag = false) + { + if (!function_exists('json_encode')) { + throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s FluentdUnixFormatter'); + } + + $this->levelTag = $levelTag; + } + + public function isUsingLevelsInTag(): bool + { + return $this->levelTag; + } + + public function format(LogRecord $record): string + { + $tag = $record->channel; + if ($this->levelTag) { + $tag .= '.' . $record->level->toPsrLogLevel(); + } + + $message = [ + 'message' => $record->message, + 'context' => $record->context, + 'extra' => $record->extra, + ]; + + if (!$this->levelTag) { + $message['level'] = $record->level->value; + $message['level_name'] = $record->level->getName(); + } + + return Utils::jsonEncode([$tag, $record->datetime->getTimestamp(), $message]); + } + + public function formatBatch(array $records): string + { + $message = ''; + foreach ($records as $record) { + $message .= $this->format($record); + } + + return $message; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php b/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php new file mode 100644 index 000000000..3413a4b05 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php @@ -0,0 +1,38 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Interface for formatters + * + * @author Jordi Boggiano + */ +interface FormatterInterface +{ + /** + * Formats a log record. + * + * @param LogRecord $record A record to format + * @return mixed The formatted record + */ + public function format(LogRecord $record); + + /** + * Formats a set of log records. + * + * @param array $records A set of records to format + * @return mixed The formatted set of records + */ + public function formatBatch(array $records); +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php new file mode 100644 index 000000000..96cb60ffe --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php @@ -0,0 +1,148 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Gelf\Message; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Serializes a log message to GELF + * @see http://docs.graylog.org/en/latest/pages/gelf.html + * + * @author Matt Lehner + */ +class GelfMessageFormatter extends NormalizerFormatter +{ + protected const DEFAULT_MAX_LENGTH = 32766; + + /** + * @var string the name of the system for the Gelf log message + */ + protected string $systemName; + + /** + * @var string a prefix for 'extra' fields from the Monolog record (optional) + */ + protected string $extraPrefix; + + /** + * @var string a prefix for 'context' fields from the Monolog record (optional) + */ + protected string $contextPrefix; + + /** + * @var int max length per field + */ + protected int $maxLength; + + /** + * Translates Monolog log levels to Graylog2 log priorities. + */ + private function getGraylog2Priority(Level $level): int + { + return match ($level) { + Level::Debug => 7, + Level::Info => 6, + Level::Notice => 5, + Level::Warning => 4, + Level::Error => 3, + Level::Critical => 2, + Level::Alert => 1, + Level::Emergency => 0, + }; + } + + /** + * @throws \RuntimeException + */ + public function __construct(?string $systemName = null, ?string $extraPrefix = null, string $contextPrefix = 'ctxt_', ?int $maxLength = null) + { + if (!class_exists(Message::class)) { + throw new \RuntimeException('Composer package graylog2/gelf-php is required to use Monolog\'s GelfMessageFormatter'); + } + + parent::__construct('U.u'); + + $this->systemName = (null === $systemName || $systemName === '') ? (string) gethostname() : $systemName; + + $this->extraPrefix = null === $extraPrefix ? '' : $extraPrefix; + $this->contextPrefix = $contextPrefix; + $this->maxLength = null === $maxLength ? self::DEFAULT_MAX_LENGTH : $maxLength; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): Message + { + $context = $extra = []; + if (isset($record->context)) { + /** @var mixed[] $context */ + $context = parent::normalize($record->context); + } + if (isset($record->extra)) { + /** @var mixed[] $extra */ + $extra = parent::normalize($record->extra); + } + + $message = new Message(); + $message + ->setTimestamp($record->datetime) + ->setShortMessage($record->message) + ->setHost($this->systemName) + ->setLevel($this->getGraylog2Priority($record->level)); + + // message length + system name length + 200 for padding / metadata + $len = 200 + strlen($record->message) + strlen($this->systemName); + + if ($len > $this->maxLength) { + $message->setShortMessage(Utils::substr($record->message, 0, $this->maxLength)); + } + + if (isset($record->channel)) { + $message->setAdditional('facility', $record->channel); + } + + foreach ($extra as $key => $val) { + $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); + $len = strlen($this->extraPrefix . $key . $val); + if ($len > $this->maxLength) { + $message->setAdditional($this->extraPrefix . $key, Utils::substr((string) $val, 0, $this->maxLength)); + + continue; + } + $message->setAdditional($this->extraPrefix . $key, $val); + } + + foreach ($context as $key => $val) { + $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); + $len = strlen($this->contextPrefix . $key . $val); + if ($len > $this->maxLength) { + $message->setAdditional($this->contextPrefix . $key, Utils::substr((string) $val, 0, $this->maxLength)); + + continue; + } + $message->setAdditional($this->contextPrefix . $key, $val); + } + + if (!$message->hasAdditional('file') && isset($context['exception']['file'])) { + if (1 === preg_match("/^(.+):([0-9]+)$/", $context['exception']['file'], $matches)) { + $message->setAdditional('file', $matches[1]); + $message->setAdditional('line', $matches[2]); + } + } + + return $message; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php new file mode 100644 index 000000000..ea555d4de --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php @@ -0,0 +1,40 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use DateTimeInterface; +use Monolog\LogRecord; + +/** + * Encodes message information into JSON in a format compatible with Cloud logging. + * + * @see https://cloud.google.com/logging/docs/structured-logging + * @see https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry + * + * @author Luís Cobucci + */ +final class GoogleCloudLoggingFormatter extends JsonFormatter +{ + protected function normalizeRecord(LogRecord $record): array + { + $normalized = parent::normalizeRecord($record); + + // Re-key level for GCP logging + $normalized['severity'] = $normalized['level_name']; + $normalized['time'] = $record->datetime->format(DateTimeInterface::RFC3339_EXTENDED); + + // Remove keys that are not used by GCP + unset($normalized['level'], $normalized['level_name'], $normalized['datetime']); + + return $normalized; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php new file mode 100644 index 000000000..c316b65ee --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php @@ -0,0 +1,143 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Formats incoming records into an HTML table + * + * This is especially useful for html email logging + * + * @author Tiago Brito + */ +class HtmlFormatter extends NormalizerFormatter +{ + /** + * Translates Monolog log levels to html color priorities. + */ + protected function getLevelColor(Level $level): string + { + return match ($level) { + Level::Debug => '#CCCCCC', + Level::Info => '#28A745', + Level::Notice => '#17A2B8', + Level::Warning => '#FFC107', + Level::Error => '#FD7E14', + Level::Critical => '#DC3545', + Level::Alert => '#821722', + Level::Emergency => '#000000', + }; + } + + /** + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $dateFormat = null) + { + parent::__construct($dateFormat); + } + + /** + * Creates an HTML table row + * + * @param string $th Row header content + * @param string $td Row standard cell content + * @param bool $escapeTd false if td content must not be html escaped + */ + protected function addRow(string $th, string $td = ' ', bool $escapeTd = true): string + { + $th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8'); + if ($escapeTd) { + $td = '
'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').'
'; + } + + return "\n$th:\n".$td."\n"; + } + + /** + * Create a HTML h1 tag + * + * @param string $title Text to be in the h1 + */ + protected function addTitle(string $title, Level $level): string + { + $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8'); + + return '

'.$title.'

'; + } + + /** + * Formats a log record. + * + * @return string The formatted record + */ + public function format(LogRecord $record): string + { + $output = $this->addTitle($record->level->getName(), $record->level); + $output .= ''; + + $output .= $this->addRow('Message', $record->message); + $output .= $this->addRow('Time', $this->formatDate($record->datetime)); + $output .= $this->addRow('Channel', $record->channel); + if (\count($record->context) > 0) { + $embeddedTable = '
'; + foreach ($record->context as $key => $value) { + $embeddedTable .= $this->addRow((string) $key, $this->convertToString($value)); + } + $embeddedTable .= '
'; + $output .= $this->addRow('Context', $embeddedTable, false); + } + if (\count($record->extra) > 0) { + $embeddedTable = ''; + foreach ($record->extra as $key => $value) { + $embeddedTable .= $this->addRow((string) $key, $this->convertToString($value)); + } + $embeddedTable .= '
'; + $output .= $this->addRow('Extra', $embeddedTable, false); + } + + return $output.''; + } + + /** + * Formats a set of log records. + * + * @return string The formatted set of records + */ + public function formatBatch(array $records): string + { + $message = ''; + foreach ($records as $record) { + $message .= $this->format($record); + } + + return $message; + } + + /** + * @param mixed $data + */ + protected function convertToString($data): string + { + if (null === $data || is_scalar($data)) { + return (string) $data; + } + + $data = $this->normalize($data); + + return Utils::jsonEncode($data, JSON_PRETTY_PRINT | Utils::DEFAULT_JSON_FLAGS, true); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php new file mode 100644 index 000000000..ca3d7d27f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php @@ -0,0 +1,216 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Stringable; +use Throwable; +use Monolog\LogRecord; + +/** + * Encodes whatever record data is passed to it as json + * + * This can be useful to log to databases or remote APIs + * + * @author Jordi Boggiano + */ +class JsonFormatter extends NormalizerFormatter +{ + public const BATCH_MODE_JSON = 1; + public const BATCH_MODE_NEWLINES = 2; + + /** @var self::BATCH_MODE_* */ + protected int $batchMode; + + protected bool $appendNewline; + + protected bool $ignoreEmptyContextAndExtra; + + protected bool $includeStacktraces = false; + + /** + * @param self::BATCH_MODE_* $batchMode + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(int $batchMode = self::BATCH_MODE_JSON, bool $appendNewline = true, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) + { + $this->batchMode = $batchMode; + $this->appendNewline = $appendNewline; + $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; + $this->includeStacktraces = $includeStacktraces; + + parent::__construct(); + } + + /** + * The batch mode option configures the formatting style for + * multiple records. By default, multiple records will be + * formatted as a JSON-encoded array. However, for + * compatibility with some API endpoints, alternative styles + * are available. + */ + public function getBatchMode(): int + { + return $this->batchMode; + } + + /** + * True if newlines are appended to every formatted record + */ + public function isAppendingNewlines(): bool + { + return $this->appendNewline; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + $normalized = parent::format($record); + + if (isset($normalized['context']) && $normalized['context'] === []) { + if ($this->ignoreEmptyContextAndExtra) { + unset($normalized['context']); + } else { + $normalized['context'] = new \stdClass; + } + } + if (isset($normalized['extra']) && $normalized['extra'] === []) { + if ($this->ignoreEmptyContextAndExtra) { + unset($normalized['extra']); + } else { + $normalized['extra'] = new \stdClass; + } + } + + return $this->toJson($normalized, true) . ($this->appendNewline ? "\n" : ''); + } + + /** + * @inheritDoc + */ + public function formatBatch(array $records): string + { + return match ($this->batchMode) { + static::BATCH_MODE_NEWLINES => $this->formatBatchNewlines($records), + default => $this->formatBatchJson($records), + }; + } + + /** + * @return $this + */ + public function includeStacktraces(bool $include = true): self + { + $this->includeStacktraces = $include; + + return $this; + } + + /** + * Return a JSON-encoded array of records. + * + * @phpstan-param LogRecord[] $records + */ + protected function formatBatchJson(array $records): string + { + return $this->toJson($this->normalize($records), true); + } + + /** + * Use new lines to separate records instead of a + * JSON-encoded array. + * + * @phpstan-param LogRecord[] $records + */ + protected function formatBatchNewlines(array $records): string + { + $oldNewline = $this->appendNewline; + $this->appendNewline = false; + $formatted = array_map(fn (LogRecord $record) => $this->format($record), $records); + $this->appendNewline = $oldNewline; + + return implode("\n", $formatted); + } + + /** + * Normalizes given $data. + * + * @return null|scalar|array|object + */ + protected function normalize(mixed $data, int $depth = 0): mixed + { + if ($depth > $this->maxNormalizeDepth) { + return 'Over '.$this->maxNormalizeDepth.' levels deep, aborting normalization'; + } + + if (is_array($data)) { + $normalized = []; + + $count = 1; + foreach ($data as $key => $value) { + if ($count++ > $this->maxNormalizeItemCount) { + $normalized['...'] = 'Over '.$this->maxNormalizeItemCount.' items ('.count($data).' total), aborting normalization'; + break; + } + + $normalized[$key] = $this->normalize($value, $depth + 1); + } + + return $normalized; + } + + if (is_object($data)) { + if ($data instanceof \DateTimeInterface) { + return $this->formatDate($data); + } + + if ($data instanceof Throwable) { + return $this->normalizeException($data, $depth); + } + + // if the object has specific json serializability we want to make sure we skip the __toString treatment below + if ($data instanceof \JsonSerializable) { + return $data; + } + + if ($data instanceof Stringable) { + return $data->__toString(); + } + + return $data; + } + + if (is_resource($data)) { + return parent::normalize($data); + } + + return $data; + } + + /** + * Normalizes given exception with or without its own stack trace based on + * `includeStacktraces` property. + * + * @inheritDoc + */ + protected function normalizeException(Throwable $e, int $depth = 0): array + { + $data = parent::normalizeException($e, $depth); + if (!$this->includeStacktraces) { + unset($data['trace']); + } + + return $data; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php new file mode 100644 index 000000000..025572a5c --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php @@ -0,0 +1,289 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Closure; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Formats incoming records into a one-line string + * + * This is especially useful for logging to files + * + * @author Jordi Boggiano + * @author Christophe Coevoet + */ +class LineFormatter extends NormalizerFormatter +{ + public const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"; + + protected string $format; + protected bool $allowInlineLineBreaks; + protected bool $ignoreEmptyContextAndExtra; + protected bool $includeStacktraces; + protected ?int $maxLevelNameLength = null; + protected string $indentStacktraces = ''; + protected Closure|null $stacktracesParser = null; + + /** + * @param string|null $format The format of the message + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $format = null, ?string $dateFormat = null, bool $allowInlineLineBreaks = false, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) + { + $this->format = $format === null ? static::SIMPLE_FORMAT : $format; + $this->allowInlineLineBreaks = $allowInlineLineBreaks; + $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; + $this->includeStacktraces($includeStacktraces); + parent::__construct($dateFormat); + } + + /** + * @return $this + */ + public function includeStacktraces(bool $include = true, ?Closure $parser = null): self + { + $this->includeStacktraces = $include; + if ($this->includeStacktraces) { + $this->allowInlineLineBreaks = true; + $this->stacktracesParser = $parser; + } + + return $this; + } + + /** + * Indent stack traces to separate them a bit from the main log record messages + * + * @param string $indent The string used to indent, for example " " + * @return $this + */ + public function indentStacktraces(string $indent): self + { + $this->indentStacktraces = $indent; + + return $this; + } + + /** + * @return $this + */ + public function allowInlineLineBreaks(bool $allow = true): self + { + $this->allowInlineLineBreaks = $allow; + + return $this; + } + + /** + * @return $this + */ + public function ignoreEmptyContextAndExtra(bool $ignore = true): self + { + $this->ignoreEmptyContextAndExtra = $ignore; + + return $this; + } + + /** + * Allows cutting the level name to get fixed-length levels like INF for INFO, ERR for ERROR if you set this to 3 for example + * + * @param int|null $maxLevelNameLength Maximum characters for the level name. Set null for infinite length (default) + * @return $this + */ + public function setMaxLevelNameLength(?int $maxLevelNameLength = null): self + { + $this->maxLevelNameLength = $maxLevelNameLength; + + return $this; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + $vars = parent::format($record); + + if ($this->maxLevelNameLength !== null) { + $vars['level_name'] = substr($vars['level_name'], 0, $this->maxLevelNameLength); + } + + $output = $this->format; + foreach ($vars['extra'] as $var => $val) { + if (false !== strpos($output, '%extra.'.$var.'%')) { + $output = str_replace('%extra.'.$var.'%', $this->stringify($val), $output); + unset($vars['extra'][$var]); + } + } + + foreach ($vars['context'] as $var => $val) { + if (false !== strpos($output, '%context.'.$var.'%')) { + $output = str_replace('%context.'.$var.'%', $this->stringify($val), $output); + unset($vars['context'][$var]); + } + } + + if ($this->ignoreEmptyContextAndExtra) { + if (\count($vars['context']) === 0) { + unset($vars['context']); + $output = str_replace('%context%', '', $output); + } + + if (\count($vars['extra']) === 0) { + unset($vars['extra']); + $output = str_replace('%extra%', '', $output); + } + } + + foreach ($vars as $var => $val) { + if (false !== strpos($output, '%'.$var.'%')) { + $output = str_replace('%'.$var.'%', $this->stringify($val), $output); + } + } + + // remove leftover %extra.xxx% and %context.xxx% if any + if (false !== strpos($output, '%')) { + $output = preg_replace('/%(?:extra|context)\..+?%/', '', $output); + if (null === $output) { + $pcreErrorCode = preg_last_error(); + + throw new \RuntimeException('Failed to run preg_replace: ' . $pcreErrorCode . ' / ' . Utils::pcreLastErrorMessage($pcreErrorCode)); + } + } + + return $output; + } + + public function formatBatch(array $records): string + { + $message = ''; + foreach ($records as $record) { + $message .= $this->format($record); + } + + return $message; + } + + /** + * @param mixed $value + */ + public function stringify($value): string + { + return $this->replaceNewlines($this->convertToString($value)); + } + + protected function normalizeException(\Throwable $e, int $depth = 0): string + { + $str = $this->formatException($e); + + if (($previous = $e->getPrevious()) instanceof \Throwable) { + do { + $depth++; + if ($depth > $this->maxNormalizeDepth) { + $str .= "\n[previous exception] Over " . $this->maxNormalizeDepth . ' levels deep, aborting normalization'; + break; + } + + $str .= "\n[previous exception] " . $this->formatException($previous); + } while ($previous = $previous->getPrevious()); + } + + return $str; + } + + /** + * @param mixed $data + */ + protected function convertToString($data): string + { + if (null === $data || is_bool($data)) { + return var_export($data, true); + } + + if (is_scalar($data)) { + return (string) $data; + } + + return $this->toJson($data, true); + } + + protected function replaceNewlines(string $str): string + { + if ($this->allowInlineLineBreaks) { + if (0 === strpos($str, '{') || 0 === strpos($str, '[')) { + $str = preg_replace('/(?getCode(); + if ($e instanceof \SoapFault) { + if (isset($e->faultcode)) { + $str .= ' faultcode: ' . $e->faultcode; + } + + if (isset($e->faultactor)) { + $str .= ' faultactor: ' . $e->faultactor; + } + + if (isset($e->detail)) { + if (is_string($e->detail)) { + $str .= ' detail: ' . $e->detail; + } elseif (is_object($e->detail) || is_array($e->detail)) { + $str .= ' detail: ' . $this->toJson($e->detail, true); + } + } + } + $str .= '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . ')'; + + if ($this->includeStacktraces) { + $str .= $this->stacktracesParser($e); + } + + return $str; + } + + private function stacktracesParser(\Throwable $e): string + { + $trace = $e->getTraceAsString(); + + if ($this->stacktracesParser !== null) { + $trace = $this->stacktracesParserCustom($trace); + } + + if ($this->indentStacktraces !== '') { + $trace = str_replace("\n", "\n{$this->indentStacktraces}", $trace); + } + + return "\n{$this->indentStacktraces}[stacktrace]\n{$this->indentStacktraces}" . $trace . "\n"; + } + + private function stacktracesParserCustom(string $trace): string + { + return implode("\n", array_filter(array_map($this->stacktracesParser, explode("\n", $trace)))); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php new file mode 100644 index 000000000..5f0b6a453 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php @@ -0,0 +1,47 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Encodes message information into JSON in a format compatible with Loggly. + * + * @author Adam Pancutt + */ +class LogglyFormatter extends JsonFormatter +{ + /** + * Overrides the default batch mode to new lines for compatibility with the + * Loggly bulk API. + */ + public function __construct(int $batchMode = self::BATCH_MODE_NEWLINES, bool $appendNewline = false) + { + parent::__construct($batchMode, $appendNewline); + } + + /** + * Appends the 'timestamp' parameter for indexing by Loggly. + * + * @see https://www.loggly.com/docs/automated-parsing/#json + * @see \Monolog\Formatter\JsonFormatter::format() + */ + protected function normalizeRecord(LogRecord $record): array + { + $recordData = parent::normalizeRecord($record); + + $recordData["timestamp"] = $record->datetime->format("Y-m-d\TH:i:s.uO"); + unset($recordData["datetime"]); + + return $recordData; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php new file mode 100644 index 000000000..9e44c19f4 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php @@ -0,0 +1,70 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Encodes message information into JSON in a format compatible with Logmatic. + * + * @author Julien Breux + */ +class LogmaticFormatter extends JsonFormatter +{ + protected const MARKERS = ["sourcecode", "php"]; + + protected string $hostname = ''; + + protected string $appName = ''; + + /** + * @return $this + */ + public function setHostname(string $hostname): self + { + $this->hostname = $hostname; + + return $this; + } + + /** + * @return $this + */ + public function setAppName(string $appName): self + { + $this->appName = $appName; + + return $this; + } + + /** + * Appends the 'hostname' and 'appname' parameter for indexing by Logmatic. + * + * @see http://doc.logmatic.io/docs/basics-to-send-data + * @see \Monolog\Formatter\JsonFormatter::format() + */ + public function normalizeRecord(LogRecord $record): array + { + $record = parent::normalizeRecord($record); + + if ($this->hostname !== '') { + $record["hostname"] = $this->hostname; + } + if ($this->appName !== '') { + $record["appname"] = $this->appName; + } + + $record["@marker"] = static::MARKERS; + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php new file mode 100644 index 000000000..abee3cd13 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php @@ -0,0 +1,102 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Serializes a log message to Logstash Event Format + * + * @see https://www.elastic.co/products/logstash + * @see https://github.com/elastic/logstash/blob/master/logstash-core/src/main/java/org/logstash/Event.java + * + * @author Tim Mower + */ +class LogstashFormatter extends NormalizerFormatter +{ + /** + * @var string the name of the system for the Logstash log message, used to fill the @source field + */ + protected string $systemName; + + /** + * @var string an application name for the Logstash log message, used to fill the @type field + */ + protected string $applicationName; + + /** + * @var string the key for 'extra' fields from the Monolog record + */ + protected string $extraKey; + + /** + * @var string the key for 'context' fields from the Monolog record + */ + protected string $contextKey; + + /** + * @param string $applicationName The application that sends the data, used as the "type" field of logstash + * @param string|null $systemName The system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine + * @param string $extraKey The key for extra keys inside logstash "fields", defaults to extra + * @param string $contextKey The key for context keys inside logstash "fields", defaults to context + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(string $applicationName, ?string $systemName = null, string $extraKey = 'extra', string $contextKey = 'context') + { + // logstash requires a ISO 8601 format date with optional millisecond precision. + parent::__construct('Y-m-d\TH:i:s.uP'); + + $this->systemName = $systemName === null ? (string) gethostname() : $systemName; + $this->applicationName = $applicationName; + $this->extraKey = $extraKey; + $this->contextKey = $contextKey; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + $recordData = parent::format($record); + + $message = [ + '@timestamp' => $recordData['datetime'], + '@version' => 1, + 'host' => $this->systemName, + ]; + if (isset($recordData['message'])) { + $message['message'] = $recordData['message']; + } + if (isset($recordData['channel'])) { + $message['type'] = $recordData['channel']; + $message['channel'] = $recordData['channel']; + } + if (isset($recordData['level_name'])) { + $message['level'] = $recordData['level_name']; + } + if (isset($recordData['level'])) { + $message['monolog_level'] = $recordData['level']; + } + if ('' !== $this->applicationName) { + $message['type'] = $this->applicationName; + } + if (\count($recordData['extra']) > 0) { + $message[$this->extraKey] = $recordData['extra']; + } + if (\count($recordData['context']) > 0) { + $message[$this->contextKey] = $recordData['context']; + } + + return $this->toJson($message) . "\n"; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php new file mode 100644 index 000000000..9b7da8a9c --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php @@ -0,0 +1,159 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use MongoDB\BSON\Type; +use MongoDB\BSON\UTCDateTime; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Formats a record for use with the MongoDBHandler. + * + * @author Florian Plattner + */ +class MongoDBFormatter implements FormatterInterface +{ + private bool $exceptionTraceAsString; + private int $maxNestingLevel; + private bool $isLegacyMongoExt; + + /** + * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record->context is 2 + * @param bool $exceptionTraceAsString set to false to log exception traces as a sub documents instead of strings + */ + public function __construct(int $maxNestingLevel = 3, bool $exceptionTraceAsString = true) + { + $this->maxNestingLevel = max($maxNestingLevel, 0); + $this->exceptionTraceAsString = $exceptionTraceAsString; + + $this->isLegacyMongoExt = extension_loaded('mongodb') && version_compare((string) phpversion('mongodb'), '1.1.9', '<='); + } + + /** + * @inheritDoc + * + * @return mixed[] + */ + public function format(LogRecord $record): array + { + /** @var mixed[] $res */ + $res = $this->formatArray($record->toArray()); + + return $res; + } + + /** + * @inheritDoc + * + * @return array + */ + public function formatBatch(array $records): array + { + $formatted = []; + foreach ($records as $key => $record) { + $formatted[$key] = $this->format($record); + } + + return $formatted; + } + + /** + * @param mixed[] $array + * @return mixed[]|string Array except when max nesting level is reached then a string "[...]" + */ + protected function formatArray(array $array, int $nestingLevel = 0) + { + if ($this->maxNestingLevel > 0 && $nestingLevel > $this->maxNestingLevel) { + return '[...]'; + } + + foreach ($array as $name => $value) { + if ($value instanceof \DateTimeInterface) { + $array[$name] = $this->formatDate($value, $nestingLevel + 1); + } elseif ($value instanceof \Throwable) { + $array[$name] = $this->formatException($value, $nestingLevel + 1); + } elseif (is_array($value)) { + $array[$name] = $this->formatArray($value, $nestingLevel + 1); + } elseif (is_object($value) && !$value instanceof Type) { + $array[$name] = $this->formatObject($value, $nestingLevel + 1); + } + } + + return $array; + } + + /** + * @param mixed $value + * @return mixed[]|string + */ + protected function formatObject($value, int $nestingLevel) + { + $objectVars = get_object_vars($value); + $objectVars['class'] = Utils::getClass($value); + + return $this->formatArray($objectVars, $nestingLevel); + } + + /** + * @return mixed[]|string + */ + protected function formatException(\Throwable $exception, int $nestingLevel) + { + $formattedException = [ + 'class' => Utils::getClass($exception), + 'message' => $exception->getMessage(), + 'code' => (int) $exception->getCode(), + 'file' => $exception->getFile() . ':' . $exception->getLine(), + ]; + + if ($this->exceptionTraceAsString === true) { + $formattedException['trace'] = $exception->getTraceAsString(); + } else { + $formattedException['trace'] = $exception->getTrace(); + } + + return $this->formatArray($formattedException, $nestingLevel); + } + + protected function formatDate(\DateTimeInterface $value, int $nestingLevel): UTCDateTime + { + if ($this->isLegacyMongoExt) { + return $this->legacyGetMongoDbDateTime($value); + } + + return $this->getMongoDbDateTime($value); + } + + private function getMongoDbDateTime(\DateTimeInterface $value): UTCDateTime + { + return new UTCDateTime((int) floor(((float) $value->format('U.u')) * 1000)); + } + + /** + * This is needed to support MongoDB Driver v1.19 and below + * + * See https://github.com/mongodb/mongo-php-driver/issues/426 + * + * It can probably be removed in 2.1 or later once MongoDB's 1.2 is released and widely adopted + */ + private function legacyGetMongoDbDateTime(\DateTimeInterface $value): UTCDateTime + { + $milliseconds = floor(((float) $value->format('U.u')) * 1000); + + $milliseconds = (PHP_INT_SIZE == 8) //64-bit OS? + ? (int) $milliseconds + : (string) $milliseconds; + + return new UTCDateTime($milliseconds); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php new file mode 100644 index 000000000..a5c99156f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php @@ -0,0 +1,325 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\DateTimeImmutable; +use Monolog\Utils; +use Throwable; +use Monolog\LogRecord; + +/** + * Normalizes incoming records to remove objects/resources so it's easier to dump to various targets + * + * @author Jordi Boggiano + */ +class NormalizerFormatter implements FormatterInterface +{ + public const SIMPLE_DATE = "Y-m-d\TH:i:sP"; + + protected string $dateFormat; + protected int $maxNormalizeDepth = 9; + protected int $maxNormalizeItemCount = 1000; + + private int $jsonEncodeOptions = Utils::DEFAULT_JSON_FLAGS; + + /** + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $dateFormat = null) + { + $this->dateFormat = null === $dateFormat ? static::SIMPLE_DATE : $dateFormat; + if (!function_exists('json_encode')) { + throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter'); + } + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record) + { + return $this->normalizeRecord($record); + } + + /** + * Normalize an arbitrary value to a scalar|array|null + * + * @return null|scalar|array + */ + public function normalizeValue(mixed $data): mixed + { + return $this->normalize($data); + } + + /** + * @inheritDoc + */ + public function formatBatch(array $records) + { + foreach ($records as $key => $record) { + $records[$key] = $this->format($record); + } + + return $records; + } + + public function getDateFormat(): string + { + return $this->dateFormat; + } + + /** + * @return $this + */ + public function setDateFormat(string $dateFormat): self + { + $this->dateFormat = $dateFormat; + + return $this; + } + + /** + * The maximum number of normalization levels to go through + */ + public function getMaxNormalizeDepth(): int + { + return $this->maxNormalizeDepth; + } + + /** + * @return $this + */ + public function setMaxNormalizeDepth(int $maxNormalizeDepth): self + { + $this->maxNormalizeDepth = $maxNormalizeDepth; + + return $this; + } + + /** + * The maximum number of items to normalize per level + */ + public function getMaxNormalizeItemCount(): int + { + return $this->maxNormalizeItemCount; + } + + /** + * @return $this + */ + public function setMaxNormalizeItemCount(int $maxNormalizeItemCount): self + { + $this->maxNormalizeItemCount = $maxNormalizeItemCount; + + return $this; + } + + /** + * Enables `json_encode` pretty print. + * + * @return $this + */ + public function setJsonPrettyPrint(bool $enable): self + { + if ($enable) { + $this->jsonEncodeOptions |= JSON_PRETTY_PRINT; + } else { + $this->jsonEncodeOptions &= ~JSON_PRETTY_PRINT; + } + + return $this; + } + + /** + * Provided as extension point + * + * Because normalize is called with sub-values of context data etc, normalizeRecord can be + * extended when data needs to be appended on the record array but not to other normalized data. + * + * @return array + */ + protected function normalizeRecord(LogRecord $record): array + { + /** @var array $normalized */ + $normalized = $this->normalize($record->toArray()); + + return $normalized; + } + + /** + * @return null|scalar|array + */ + protected function normalize(mixed $data, int $depth = 0): mixed + { + if ($depth > $this->maxNormalizeDepth) { + return 'Over ' . $this->maxNormalizeDepth . ' levels deep, aborting normalization'; + } + + if (null === $data || is_scalar($data)) { + if (is_float($data)) { + if (is_infinite($data)) { + return ($data > 0 ? '' : '-') . 'INF'; + } + if (is_nan($data)) { + return 'NaN'; + } + } + + return $data; + } + + if (is_array($data)) { + $normalized = []; + + $count = 1; + foreach ($data as $key => $value) { + if ($count++ > $this->maxNormalizeItemCount) { + $normalized['...'] = 'Over ' . $this->maxNormalizeItemCount . ' items ('.count($data).' total), aborting normalization'; + break; + } + + $normalized[$key] = $this->normalize($value, $depth + 1); + } + + return $normalized; + } + + if ($data instanceof \DateTimeInterface) { + return $this->formatDate($data); + } + + if (is_object($data)) { + if ($data instanceof Throwable) { + return $this->normalizeException($data, $depth); + } + + if ($data instanceof \JsonSerializable) { + /** @var null|scalar|array $value */ + $value = $data->jsonSerialize(); + } elseif (\get_class($data) === '__PHP_Incomplete_Class') { + $accessor = new \ArrayObject($data); + $value = (string) $accessor['__PHP_Incomplete_Class_Name']; + } elseif (method_exists($data, '__toString')) { + /** @var string $value */ + $value = $data->__toString(); + } else { + // the rest is normalized by json encoding and decoding it + /** @var null|scalar|array $value */ + $value = json_decode($this->toJson($data, true), true); + } + + return [Utils::getClass($data) => $value]; + } + + if (is_resource($data)) { + return sprintf('[resource(%s)]', get_resource_type($data)); + } + + return '[unknown('.gettype($data).')]'; + } + + /** + * @return mixed[] + */ + protected function normalizeException(Throwable $e, int $depth = 0) + { + if ($depth > $this->maxNormalizeDepth) { + return ['Over ' . $this->maxNormalizeDepth . ' levels deep, aborting normalization']; + } + + if ($e instanceof \JsonSerializable) { + return (array) $e->jsonSerialize(); + } + + $data = [ + 'class' => Utils::getClass($e), + 'message' => $e->getMessage(), + 'code' => (int) $e->getCode(), + 'file' => $e->getFile().':'.$e->getLine(), + ]; + + if ($e instanceof \SoapFault) { + if (isset($e->faultcode)) { + $data['faultcode'] = $e->faultcode; + } + + if (isset($e->faultactor)) { + $data['faultactor'] = $e->faultactor; + } + + if (isset($e->detail)) { + if (is_string($e->detail)) { + $data['detail'] = $e->detail; + } elseif (is_object($e->detail) || is_array($e->detail)) { + $data['detail'] = $this->toJson($e->detail, true); + } + } + } + + $trace = $e->getTrace(); + foreach ($trace as $frame) { + if (isset($frame['file'], $frame['line'])) { + $data['trace'][] = $frame['file'].':'.$frame['line']; + } + } + + if (($previous = $e->getPrevious()) instanceof \Throwable) { + $data['previous'] = $this->normalizeException($previous, $depth + 1); + } + + return $data; + } + + /** + * Return the JSON representation of a value + * + * @param mixed $data + * @throws \RuntimeException if encoding fails and errors are not ignored + * @return string if encoding fails and ignoreErrors is true 'null' is returned + */ + protected function toJson($data, bool $ignoreErrors = false): string + { + return Utils::jsonEncode($data, $this->jsonEncodeOptions, $ignoreErrors); + } + + protected function formatDate(\DateTimeInterface $date): string + { + // in case the date format isn't custom then we defer to the custom DateTimeImmutable + // formatting logic, which will pick the right format based on whether useMicroseconds is on + if ($this->dateFormat === self::SIMPLE_DATE && $date instanceof DateTimeImmutable) { + return (string) $date; + } + + return $date->format($this->dateFormat); + } + + /** + * @return $this + */ + public function addJsonEncodeOption(int $option): self + { + $this->jsonEncodeOptions |= $option; + + return $this; + } + + /** + * @return $this + */ + public function removeJsonEncodeOption(int $option): self + { + $this->jsonEncodeOptions &= ~$option; + + return $this; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php new file mode 100644 index 000000000..4bc20a08c --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php @@ -0,0 +1,49 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\LogRecord; + +/** + * Formats data into an associative array of scalar (+ null) values. + * Objects and arrays will be JSON encoded. + * + * @author Andrew Lawson + */ +class ScalarFormatter extends NormalizerFormatter +{ + /** + * @inheritDoc + * + * @phpstan-return array $record + */ + public function format(LogRecord $record): array + { + $result = []; + foreach ($record->toArray() as $key => $value) { + $result[$key] = $this->toScalar($value); + } + + return $result; + } + + protected function toScalar(mixed $value): string|int|float|bool|null + { + $normalized = $this->normalize($value); + + if (is_array($normalized)) { + return $this->toJson($normalized, true); + } + + return $normalized; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/SyslogFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/SyslogFormatter.php new file mode 100644 index 000000000..6ed7e92ef --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/SyslogFormatter.php @@ -0,0 +1,66 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Serializes a log message according to RFC 5424 + * + * @author Dalibor Karlović + * @author Renat Gabdullin + */ +class SyslogFormatter extends LineFormatter +{ + private const SYSLOG_FACILITY_USER = 1; + private const FORMAT = "<%extra.priority%>1 %datetime% %extra.hostname% %extra.app-name% %extra.procid% %channel% %extra.structured-data% %level_name%: %message% %context% %extra%\n"; + private const NILVALUE = '-'; + + private string $hostname; + private int $procid; + + public function __construct(private string $applicationName = self::NILVALUE) + { + parent::__construct(self::FORMAT, 'Y-m-d\TH:i:s.uP', true, true); + $this->hostname = (string) gethostname(); + $this->procid = (int) getmypid(); + } + + public function format(LogRecord $record): string + { + $record->extra = $this->formatExtra($record); + + return parent::format($record); + } + + /** + * @param LogRecord $record + * @return array + */ + private function formatExtra(LogRecord $record): array + { + $extra = $record->extra; + $extra['app-name'] = $this->applicationName; + $extra['hostname'] = $this->hostname; + $extra['procid'] = $this->procid; + $extra['priority'] = self::calculatePriority($record->level); + $extra['structured-data'] = self::NILVALUE; + + return $extra; + } + + private static function calculatePriority(Level $level): int + { + return (self::SYSLOG_FACILITY_USER * 8) + $level->toRFC5424Level(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php b/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php new file mode 100644 index 000000000..2e28b3ab4 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php @@ -0,0 +1,139 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Formatter; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Serializes a log message according to Wildfire's header requirements + * + * @author Eric Clemmons (@ericclemmons) + * @author Christophe Coevoet + * @author Kirill chEbba Chebunin + */ +class WildfireFormatter extends NormalizerFormatter +{ + /** + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(?string $dateFormat = null) + { + parent::__construct($dateFormat); + + // http headers do not like non-ISO-8559-1 characters + $this->removeJsonEncodeOption(JSON_UNESCAPED_UNICODE); + } + + /** + * Translates Monolog log levels to Wildfire levels. + * + * @return 'LOG'|'INFO'|'WARN'|'ERROR' + */ + private function toWildfireLevel(Level $level): string + { + return match ($level) { + Level::Debug => 'LOG', + Level::Info => 'INFO', + Level::Notice => 'INFO', + Level::Warning => 'WARN', + Level::Error => 'ERROR', + Level::Critical => 'ERROR', + Level::Alert => 'ERROR', + Level::Emergency => 'ERROR', + }; + } + + /** + * @inheritDoc + */ + public function format(LogRecord $record): string + { + // Retrieve the line and file if set and remove them from the formatted extra + $file = $line = ''; + if (isset($record->extra['file'])) { + $file = $record->extra['file']; + unset($record->extra['file']); + } + if (isset($record->extra['line'])) { + $line = $record->extra['line']; + unset($record->extra['line']); + } + + $message = ['message' => $record->message]; + $handleError = false; + if (count($record->context) > 0) { + $message['context'] = $this->normalize($record->context); + $handleError = true; + } + if (count($record->extra) > 0) { + $message['extra'] = $this->normalize($record->extra); + $handleError = true; + } + if (count($message) === 1) { + $message = reset($message); + } + + if (is_array($message) && isset($message['context']['table'])) { + $type = 'TABLE'; + $label = $record->channel .': '. $record->message; + $message = $message['context']['table']; + } else { + $type = $this->toWildfireLevel($record->level); + $label = $record->channel; + } + + // Create JSON object describing the appearance of the message in the console + $json = $this->toJson([ + [ + 'Type' => $type, + 'File' => $file, + 'Line' => $line, + 'Label' => $label, + ], + $message, + ], $handleError); + + // The message itself is a serialization of the above JSON object + it's length + return sprintf( + '%d|%s|', + strlen($json), + $json + ); + } + + /** + * @inheritDoc + * + * @phpstan-return never + */ + public function formatBatch(array $records) + { + throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter'); + } + + /** + * @inheritDoc + * + * @return null|scalar|array|object + */ + protected function normalize(mixed $data, int $depth = 0): mixed + { + if (is_object($data) && !$data instanceof \DateTimeInterface) { + return $data; + } + + return parent::normalize($data, $depth); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php new file mode 100644 index 000000000..d3c2cbd7b --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php @@ -0,0 +1,104 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Logger; +use Monolog\ResettableInterface; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Base Handler class providing basic level/bubble support + * + * @author Jordi Boggiano + */ +abstract class AbstractHandler extends Handler implements ResettableInterface +{ + protected Level $level = Level::Debug; + protected bool $bubble = true; + + /** + * @param int|string|Level|LogLevel::* $level The minimum logging level at which this handler will be triggered + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) + { + $this->setLevel($level); + $this->bubble = $bubble; + } + + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + return $record->level->value >= $this->level->value; + } + + /** + * Sets minimum logging level at which this handler will be triggered. + * + * @param Level|LogLevel::* $level Level or level name + * @return $this + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function setLevel(int|string|Level $level): self + { + $this->level = Logger::toMonologLevel($level); + + return $this; + } + + /** + * Gets minimum logging level at which this handler will be triggered. + */ + public function getLevel(): Level + { + return $this->level; + } + + /** + * Sets the bubbling behavior. + * + * @param bool $bubble true means that this handler allows bubbling. + * false means that bubbling is not permitted. + * @return $this + */ + public function setBubble(bool $bubble): self + { + $this->bubble = $bubble; + + return $this; + } + + /** + * Gets the bubbling behavior. + * + * @return bool true means that this handler allows bubbling. + * false means that bubbling is not permitted. + */ + public function getBubble(): bool + { + return $this->bubble; + } + + /** + * @inheritDoc + */ + public function reset(): void + { + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php new file mode 100644 index 000000000..de13a76be --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php @@ -0,0 +1,60 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\LogRecord; + +/** + * Base Handler class providing the Handler structure, including processors and formatters + * + * Classes extending it should (in most cases) only implement write($record) + * + * @author Jordi Boggiano + * @author Christophe Coevoet + */ +abstract class AbstractProcessingHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface +{ + use ProcessableHandlerTrait; + use FormattableHandlerTrait; + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (!$this->isHandling($record)) { + return false; + } + + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + $record->formatted = $this->getFormatter()->format($record); + + $this->write($record); + + return false === $this->bubble; + } + + /** + * Writes the (already formatted) record down to the log of the implementing handler + */ + abstract protected function write(LogRecord $record): void; + + public function reset(): void + { + parent::reset(); + + $this->resetProcessors(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php new file mode 100644 index 000000000..695a1c07f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php @@ -0,0 +1,95 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LineFormatter; + +/** + * Common syslog functionality + */ +abstract class AbstractSyslogHandler extends AbstractProcessingHandler +{ + protected int $facility; + + /** + * List of valid log facility names. + * @var array + */ + protected array $facilities = [ + 'auth' => \LOG_AUTH, + 'authpriv' => \LOG_AUTHPRIV, + 'cron' => \LOG_CRON, + 'daemon' => \LOG_DAEMON, + 'kern' => \LOG_KERN, + 'lpr' => \LOG_LPR, + 'mail' => \LOG_MAIL, + 'news' => \LOG_NEWS, + 'syslog' => \LOG_SYSLOG, + 'user' => \LOG_USER, + 'uucp' => \LOG_UUCP, + ]; + + /** + * Translates Monolog log levels to syslog log priorities. + */ + protected function toSyslogPriority(Level $level): int + { + return $level->toRFC5424Level(); + } + + /** + * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant + */ + public function __construct(string|int $facility = \LOG_USER, int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + + if (!defined('PHP_WINDOWS_VERSION_BUILD')) { + $this->facilities['local0'] = \LOG_LOCAL0; + $this->facilities['local1'] = \LOG_LOCAL1; + $this->facilities['local2'] = \LOG_LOCAL2; + $this->facilities['local3'] = \LOG_LOCAL3; + $this->facilities['local4'] = \LOG_LOCAL4; + $this->facilities['local5'] = \LOG_LOCAL5; + $this->facilities['local6'] = \LOG_LOCAL6; + $this->facilities['local7'] = \LOG_LOCAL7; + } else { + $this->facilities['local0'] = 128; // LOG_LOCAL0 + $this->facilities['local1'] = 136; // LOG_LOCAL1 + $this->facilities['local2'] = 144; // LOG_LOCAL2 + $this->facilities['local3'] = 152; // LOG_LOCAL3 + $this->facilities['local4'] = 160; // LOG_LOCAL4 + $this->facilities['local5'] = 168; // LOG_LOCAL5 + $this->facilities['local6'] = 176; // LOG_LOCAL6 + $this->facilities['local7'] = 184; // LOG_LOCAL7 + } + + // convert textual description of facility to syslog constant + if (is_string($facility) && array_key_exists(strtolower($facility), $this->facilities)) { + $facility = $this->facilities[strtolower($facility)]; + } elseif (!in_array($facility, array_values($this->facilities), true)) { + throw new \UnexpectedValueException('Unknown facility value "'.$facility.'" given'); + } + + $this->facility = $facility; + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%'); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php new file mode 100644 index 000000000..72265d4ba --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php @@ -0,0 +1,159 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\JsonFormatter; +use PhpAmqpLib\Message\AMQPMessage; +use PhpAmqpLib\Channel\AMQPChannel; +use AMQPExchange; +use Monolog\LogRecord; + +class AmqpHandler extends AbstractProcessingHandler +{ + protected AMQPExchange|AMQPChannel $exchange; + + /** @var array */ + private array $extraAttributes = []; + + protected string $exchangeName; + + /** + * @param AMQPExchange|AMQPChannel $exchange AMQPExchange (php AMQP ext) or PHP AMQP lib channel, ready for use + * @param string|null $exchangeName Optional exchange name, for AMQPChannel (PhpAmqpLib) only + */ + public function __construct(AMQPExchange|AMQPChannel $exchange, ?string $exchangeName = null, int|string|Level $level = Level::Debug, bool $bubble = true) + { + if ($exchange instanceof AMQPChannel) { + $this->exchangeName = (string) $exchangeName; + } elseif ($exchangeName !== null) { + @trigger_error('The $exchangeName parameter can only be passed when using PhpAmqpLib, if using an AMQPExchange instance configure it beforehand', E_USER_DEPRECATED); + } + $this->exchange = $exchange; + + parent::__construct($level, $bubble); + } + + /** + * @return array + */ + public function getExtraAttributes(): array + { + return $this->extraAttributes; + } + + /** + * Configure extra attributes to pass to the AMQPExchange (if you are using the amqp extension) + * + * @param array $extraAttributes One of content_type, content_encoding, + * message_id, user_id, app_id, delivery_mode, + * priority, timestamp, expiration, type + * or reply_to, headers. + * @return $this + */ + public function setExtraAttributes(array $extraAttributes): self + { + $this->extraAttributes = $extraAttributes; + return $this; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $data = $record->formatted; + $routingKey = $this->getRoutingKey($record); + + if ($this->exchange instanceof AMQPExchange) { + $attributes = [ + 'delivery_mode' => 2, + 'content_type' => 'application/json', + ]; + if (\count($this->extraAttributes) > 0) { + $attributes = array_merge($attributes, $this->extraAttributes); + } + $this->exchange->publish( + $data, + $routingKey, + 0, + $attributes + ); + } else { + $this->exchange->basic_publish( + $this->createAmqpMessage($data), + $this->exchangeName, + $routingKey + ); + } + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + if ($this->exchange instanceof AMQPExchange) { + parent::handleBatch($records); + + return; + } + + foreach ($records as $record) { + if (!$this->isHandling($record)) { + continue; + } + + $record = $this->processRecord($record); + $data = $this->getFormatter()->format($record); + + $this->exchange->batch_basic_publish( + $this->createAmqpMessage($data), + $this->exchangeName, + $this->getRoutingKey($record) + ); + } + + $this->exchange->publish_batch(); + } + + /** + * Gets the routing key for the AMQP exchange + */ + protected function getRoutingKey(LogRecord $record): string + { + $routingKey = sprintf('%s.%s', $record->level->name, $record->channel); + + return strtolower($routingKey); + } + + private function createAmqpMessage(string $data): AMQPMessage + { + $attributes = [ + 'delivery_mode' => 2, + 'content_type' => 'application/json', + ]; + if (\count($this->extraAttributes) > 0) { + $attributes = array_merge($attributes, $this->extraAttributes); + } + return new AMQPMessage($data, $attributes); + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php new file mode 100644 index 000000000..5930ca488 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php @@ -0,0 +1,301 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LineFormatter; +use Monolog\Utils; +use Monolog\LogRecord; +use Monolog\Level; + +use function count; +use function headers_list; +use function stripos; + +/** + * Handler sending logs to browser's javascript console with no browser extension required + * + * @author Olivier Poitrey + */ +class BrowserConsoleHandler extends AbstractProcessingHandler +{ + protected static bool $initialized = false; + + /** @var LogRecord[] */ + protected static array $records = []; + + protected const FORMAT_HTML = 'html'; + protected const FORMAT_JS = 'js'; + protected const FORMAT_UNKNOWN = 'unknown'; + + /** + * @inheritDoc + * + * Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format. + * + * Example of formatted string: + * + * You can do [[blue text]]{color: blue} or [[green background]]{background-color: green; color: white} + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%'); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + // Accumulate records + static::$records[] = $record; + + // Register shutdown handler if not already done + if (!static::$initialized) { + static::$initialized = true; + $this->registerShutdownFunction(); + } + } + + /** + * Convert records to javascript console commands and send it to the browser. + * This method is automatically called on PHP shutdown if output is HTML or Javascript. + */ + public static function send(): void + { + $format = static::getResponseFormat(); + if ($format === self::FORMAT_UNKNOWN) { + return; + } + + if (count(static::$records) > 0) { + if ($format === self::FORMAT_HTML) { + static::writeOutput(''); + } else { // js format + static::writeOutput(self::generateScript()); + } + static::resetStatic(); + } + } + + public function close(): void + { + self::resetStatic(); + } + + public function reset(): void + { + parent::reset(); + + self::resetStatic(); + } + + /** + * Forget all logged records + */ + public static function resetStatic(): void + { + static::$records = []; + } + + /** + * Wrapper for register_shutdown_function to allow overriding + */ + protected function registerShutdownFunction(): void + { + if (PHP_SAPI !== 'cli') { + register_shutdown_function(['Monolog\Handler\BrowserConsoleHandler', 'send']); + } + } + + /** + * Wrapper for echo to allow overriding + */ + protected static function writeOutput(string $str): void + { + echo $str; + } + + /** + * Checks the format of the response + * + * If Content-Type is set to application/javascript or text/javascript -> js + * If Content-Type is set to text/html, or is unset -> html + * If Content-Type is anything else -> unknown + * + * @return string One of 'js', 'html' or 'unknown' + * @phpstan-return self::FORMAT_* + */ + protected static function getResponseFormat(): string + { + // Check content type + foreach (headers_list() as $header) { + if (stripos($header, 'content-type:') === 0) { + return static::getResponseFormatFromContentType($header); + } + } + + return self::FORMAT_HTML; + } + + /** + * @return string One of 'js', 'html' or 'unknown' + * @phpstan-return self::FORMAT_* + */ + protected static function getResponseFormatFromContentType(string $contentType): string + { + // This handler only works with HTML and javascript outputs + // text/javascript is obsolete in favour of application/javascript, but still used + if (stripos($contentType, 'application/javascript') !== false || stripos($contentType, 'text/javascript') !== false) { + return self::FORMAT_JS; + } + + if (stripos($contentType, 'text/html') !== false) { + return self::FORMAT_HTML; + } + + return self::FORMAT_UNKNOWN; + } + + private static function generateScript(): string + { + $script = []; + foreach (static::$records as $record) { + $context = self::dump('Context', $record->context); + $extra = self::dump('Extra', $record->extra); + + if (\count($context) === 0 && \count($extra) === 0) { + $script[] = self::call_array(self::getConsoleMethodForLevel($record->level), self::handleStyles($record->formatted)); + } else { + $script = array_merge( + $script, + [self::call_array('groupCollapsed', self::handleStyles($record->formatted))], + $context, + $extra, + [self::call('groupEnd')] + ); + } + } + + return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);"; + } + + private static function getConsoleMethodForLevel(Level $level): string + { + return match ($level) { + Level::Debug => 'debug', + Level::Info, Level::Notice => 'info', + Level::Warning => 'warn', + Level::Error, Level::Critical, Level::Alert, Level::Emergency => 'error', + }; + } + + /** + * @return string[] + */ + private static function handleStyles(string $formatted): array + { + $args = []; + $format = '%c' . $formatted; + preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER); + + foreach (array_reverse($matches) as $match) { + $args[] = '"font-weight: normal"'; + $args[] = self::quote(self::handleCustomStyles($match[2][0], $match[1][0])); + + $pos = $match[0][1]; + $format = Utils::substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . Utils::substr($format, $pos + strlen($match[0][0])); + } + + $args[] = self::quote('font-weight: normal'); + $args[] = self::quote($format); + + return array_reverse($args); + } + + private static function handleCustomStyles(string $style, string $string): string + { + static $colors = ['blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey']; + static $labels = []; + + $style = preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function (array $m) use ($string, &$colors, &$labels) { + if (trim($m[1]) === 'autolabel') { + // Format the string as a label with consistent auto assigned background color + if (!isset($labels[$string])) { + $labels[$string] = $colors[count($labels) % count($colors)]; + } + $color = $labels[$string]; + + return "background-color: $color; color: white; border-radius: 3px; padding: 0 2px 0 2px"; + } + + return $m[1]; + }, $style); + + if (null === $style) { + $pcreErrorCode = preg_last_error(); + + throw new \RuntimeException('Failed to run preg_replace_callback: ' . $pcreErrorCode . ' / ' . Utils::pcreLastErrorMessage($pcreErrorCode)); + } + + return $style; + } + + /** + * @param mixed[] $dict + * @return mixed[] + */ + private static function dump(string $title, array $dict): array + { + $script = []; + $dict = array_filter($dict); + if (\count($dict) === 0) { + return $script; + } + $script[] = self::call('log', self::quote('%c%s'), self::quote('font-weight: bold'), self::quote($title)); + foreach ($dict as $key => $value) { + $value = json_encode($value); + if (false === $value) { + $value = self::quote(''); + } + $script[] = self::call('log', self::quote('%s: %o'), self::quote((string) $key), $value); + } + + return $script; + } + + private static function quote(string $arg): string + { + return '"' . addcslashes($arg, "\"\n\\") . '"'; + } + + /** + * @param mixed $args + */ + private static function call(...$args): string + { + $method = array_shift($args); + if (!is_string($method)) { + throw new \UnexpectedValueException('Expected the first arg to be a string, got: '.var_export($method, true)); + } + + return self::call_array($method, $args); + } + + /** + * @param mixed[] $args + */ + private static function call_array(string $method, array $args): string + { + return 'c.' . $method . '(' . implode(', ', $args) . ');'; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php new file mode 100644 index 000000000..ff89faa8a --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php @@ -0,0 +1,165 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\ResettableInterface; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Buffers all records until closing the handler and then pass them as batch. + * + * This is useful for a MailHandler to send only one mail per request instead of + * sending one per log message. + * + * @author Christophe Coevoet + */ +class BufferHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface +{ + use ProcessableHandlerTrait; + + protected HandlerInterface $handler; + + protected int $bufferSize = 0; + + protected int $bufferLimit; + + protected bool $flushOnOverflow; + + /** @var LogRecord[] */ + protected array $buffer = []; + + protected bool $initialized = false; + + /** + * @param HandlerInterface $handler Handler. + * @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. + * @param bool $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded + */ + public function __construct(HandlerInterface $handler, int $bufferLimit = 0, int|string|Level $level = Level::Debug, bool $bubble = true, bool $flushOnOverflow = false) + { + parent::__construct($level, $bubble); + $this->handler = $handler; + $this->bufferLimit = $bufferLimit; + $this->flushOnOverflow = $flushOnOverflow; + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if ($record->level->isLowerThan($this->level)) { + return false; + } + + if (!$this->initialized) { + // __destructor() doesn't get called on Fatal errors + register_shutdown_function([$this, 'close']); + $this->initialized = true; + } + + if ($this->bufferLimit > 0 && $this->bufferSize === $this->bufferLimit) { + if ($this->flushOnOverflow) { + $this->flush(); + } else { + array_shift($this->buffer); + $this->bufferSize--; + } + } + + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + $this->buffer[] = $record; + $this->bufferSize++; + + return false === $this->bubble; + } + + public function flush(): void + { + if ($this->bufferSize === 0) { + return; + } + + $this->handler->handleBatch($this->buffer); + $this->clear(); + } + + public function __destruct() + { + // suppress the parent behavior since we already have register_shutdown_function() + // to call close(), and the reference contained there will prevent this from being + // GC'd until the end of the request + } + + /** + * @inheritDoc + */ + public function close(): void + { + $this->flush(); + + $this->handler->close(); + } + + /** + * Clears the buffer without flushing any messages down to the wrapped handler. + */ + public function clear(): void + { + $this->bufferSize = 0; + $this->buffer = []; + } + + public function reset(): void + { + $this->flush(); + + parent::reset(); + + $this->resetProcessors(); + + if ($this->handler instanceof ResettableInterface) { + $this->handler->reset(); + } + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + $this->handler->setFormatter($formatter); + + return $this; + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($this->handler).' does not support formatters.'); + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + return $this->handler->getFormatter(); + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($this->handler).' does not support formatters.'); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php new file mode 100644 index 000000000..2f7f21d5f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php @@ -0,0 +1,192 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\ChromePHPFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; +use Monolog\DateTimeImmutable; + +/** + * Handler sending logs to the ChromePHP extension (http://www.chromephp.com/) + * + * This also works out of the box with Firefox 43+ + * + * @author Christophe Coevoet + */ +class ChromePHPHandler extends AbstractProcessingHandler +{ + use WebRequestRecognizerTrait; + + /** + * Version of the extension + */ + protected const VERSION = '4.0'; + + /** + * Header name + */ + protected const HEADER_NAME = 'X-ChromeLogger-Data'; + + /** + * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+) + */ + protected const USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}'; + + protected static bool $initialized = false; + + /** + * Tracks whether we sent too much data + * + * Chrome limits the headers to 4KB, so when we sent 3KB we stop sending + */ + protected static bool $overflowed = false; + + /** @var mixed[] */ + protected static array $json = [ + 'version' => self::VERSION, + 'columns' => ['label', 'log', 'backtrace', 'type'], + 'rows' => [], + ]; + + protected static bool $sendHeaders = true; + + /** + * @throws \RuntimeException If the function json_encode does not exist + */ + public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + if (!function_exists('json_encode')) { + throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s ChromePHPHandler'); + } + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + if (!$this->isWebRequest()) { + return; + } + + $messages = []; + + foreach ($records as $record) { + if ($record->level < $this->level) { + continue; + } + + $message = $this->processRecord($record); + $messages[] = $message; + } + + if (\count($messages) > 0) { + $messages = $this->getFormatter()->formatBatch($messages); + self::$json['rows'] = array_merge(self::$json['rows'], $messages); + $this->send(); + } + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new ChromePHPFormatter(); + } + + /** + * Creates & sends header for a record + * + * @see sendHeader() + * @see send() + */ + protected function write(LogRecord $record): void + { + if (!$this->isWebRequest()) { + return; + } + + self::$json['rows'][] = $record->formatted; + + $this->send(); + } + + /** + * Sends the log header + * + * @see sendHeader() + */ + protected function send(): void + { + if (self::$overflowed || !self::$sendHeaders) { + return; + } + + if (!self::$initialized) { + self::$initialized = true; + + self::$sendHeaders = $this->headersAccepted(); + if (!self::$sendHeaders) { + return; + } + + self::$json['request_uri'] = $_SERVER['REQUEST_URI'] ?? ''; + } + + $json = Utils::jsonEncode(self::$json, Utils::DEFAULT_JSON_FLAGS & ~JSON_UNESCAPED_UNICODE, true); + $data = base64_encode($json); + if (strlen($data) > 3 * 1024) { + self::$overflowed = true; + + $record = new LogRecord( + message: 'Incomplete logs, chrome header size limit reached', + level: Level::Warning, + channel: 'monolog', + datetime: new DateTimeImmutable(true), + ); + self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record); + $json = Utils::jsonEncode(self::$json, Utils::DEFAULT_JSON_FLAGS & ~JSON_UNESCAPED_UNICODE, true); + $data = base64_encode($json); + } + + if (trim($data) !== '') { + $this->sendHeader(static::HEADER_NAME, $data); + } + } + + /** + * Send header string to the client + */ + protected function sendHeader(string $header, string $content): void + { + if (!headers_sent() && self::$sendHeaders) { + header(sprintf('%s: %s', $header, $content)); + } + } + + /** + * Verifies if the headers are accepted by the current user agent + */ + protected function headersAccepted(): bool + { + if (!isset($_SERVER['HTTP_USER_AGENT'])) { + return false; + } + + return preg_match(static::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']) === 1; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php new file mode 100644 index 000000000..8d9c10e76 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php @@ -0,0 +1,97 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\JsonFormatter; +use Monolog\Level; +use Monolog\LogRecord; + +/** + * CouchDB handler + * + * @author Markus Bachmann + * @phpstan-type Options array{ + * host: string, + * port: int, + * dbname: string, + * username: string|null, + * password: string|null + * } + * @phpstan-type InputOptions array{ + * host?: string, + * port?: int, + * dbname?: string, + * username?: string|null, + * password?: string|null + * } + */ +class CouchDBHandler extends AbstractProcessingHandler +{ + /** + * @var mixed[] + * @phpstan-var Options + */ + private array $options; + + /** + * @param mixed[] $options + * + * @phpstan-param InputOptions $options + */ + public function __construct(array $options = [], int|string|Level $level = Level::Debug, bool $bubble = true) + { + $this->options = array_merge([ + 'host' => 'localhost', + 'port' => 5984, + 'dbname' => 'logger', + 'username' => null, + 'password' => null, + ], $options); + + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $basicAuth = null; + if (null !== $this->options['username'] && null !== $this->options['password']) { + $basicAuth = sprintf('%s:%s@', $this->options['username'], $this->options['password']); + } + + $url = 'http://'.$basicAuth.$this->options['host'].':'.$this->options['port'].'/'.$this->options['dbname']; + $context = stream_context_create([ + 'http' => [ + 'method' => 'POST', + 'content' => $record->formatted, + 'ignore_errors' => true, + 'max_redirects' => 0, + 'header' => 'Content-type: application/json', + ], + ]); + + if (false === @file_get_contents($url, false, $context)) { + throw new \RuntimeException(sprintf('Could not connect to %s', $url)); + } + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php new file mode 100644 index 000000000..8388f5ade --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php @@ -0,0 +1,167 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Logs to Cube. + * + * @link https://github.com/square/cube/wiki + * @author Wan Chen + * @deprecated Since 2.8.0 and 3.2.0, Cube appears abandoned and thus we will drop this handler in Monolog 4 + */ +class CubeHandler extends AbstractProcessingHandler +{ + private ?\Socket $udpConnection = null; + private ?\CurlHandle $httpConnection = null; + private string $scheme; + private string $host; + private int $port; + /** @var string[] */ + private array $acceptedSchemes = ['http', 'udp']; + + /** + * Create a Cube handler + * + * @throws \UnexpectedValueException when given url is not a valid url. + * A valid url must consist of three parts : protocol://host:port + * Only valid protocols used by Cube are http and udp + */ + public function __construct(string $url, int|string|Level $level = Level::Debug, bool $bubble = true) + { + $urlInfo = parse_url($url); + + if ($urlInfo === false || !isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) { + throw new \UnexpectedValueException('URL "'.$url.'" is not valid'); + } + + if (!in_array($urlInfo['scheme'], $this->acceptedSchemes, true)) { + throw new \UnexpectedValueException( + 'Invalid protocol (' . $urlInfo['scheme'] . ').' + . ' Valid options are ' . implode(', ', $this->acceptedSchemes) + ); + } + + $this->scheme = $urlInfo['scheme']; + $this->host = $urlInfo['host']; + $this->port = $urlInfo['port']; + + parent::__construct($level, $bubble); + } + + /** + * Establish a connection to an UDP socket + * + * @throws \LogicException when unable to connect to the socket + * @throws MissingExtensionException when there is no socket extension + */ + protected function connectUdp(): void + { + if (!extension_loaded('sockets')) { + throw new MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler'); + } + + $udpConnection = socket_create(AF_INET, SOCK_DGRAM, 0); + if (false === $udpConnection) { + throw new \LogicException('Unable to create a socket'); + } + + $this->udpConnection = $udpConnection; + if (!socket_connect($this->udpConnection, $this->host, $this->port)) { + throw new \LogicException('Unable to connect to the socket at ' . $this->host . ':' . $this->port); + } + } + + /** + * Establish a connection to an http server + * + * @throws \LogicException when unable to connect to the socket + * @throws MissingExtensionException when no curl extension + */ + protected function connectHttp(): void + { + if (!extension_loaded('curl')) { + throw new MissingExtensionException('The curl extension is required to use http URLs with the CubeHandler'); + } + + $httpConnection = curl_init('http://'.$this->host.':'.$this->port.'/1.0/event/put'); + if (false === $httpConnection) { + throw new \LogicException('Unable to connect to ' . $this->host . ':' . $this->port); + } + + $this->httpConnection = $httpConnection; + curl_setopt($this->httpConnection, CURLOPT_CUSTOMREQUEST, "POST"); + curl_setopt($this->httpConnection, CURLOPT_RETURNTRANSFER, true); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $date = $record->datetime; + + $data = ['time' => $date->format('Y-m-d\TH:i:s.uO')]; + $context = $record->context; + + if (isset($context['type'])) { + $data['type'] = $context['type']; + unset($context['type']); + } else { + $data['type'] = $record->channel; + } + + $data['data'] = $context; + $data['data']['level'] = $record->level; + + if ($this->scheme === 'http') { + $this->writeHttp(Utils::jsonEncode($data)); + } else { + $this->writeUdp(Utils::jsonEncode($data)); + } + } + + private function writeUdp(string $data): void + { + if (null === $this->udpConnection) { + $this->connectUdp(); + } + + if (null === $this->udpConnection) { + throw new \LogicException('No UDP socket could be opened'); + } + + socket_send($this->udpConnection, $data, strlen($data), 0); + } + + private function writeHttp(string $data): void + { + if (null === $this->httpConnection) { + $this->connectHttp(); + } + + if (null === $this->httpConnection) { + throw new \LogicException('No connection could be established'); + } + + curl_setopt($this->httpConnection, CURLOPT_POSTFIELDS, '['.$data.']'); + curl_setopt($this->httpConnection, CURLOPT_HTTPHEADER, [ + 'Content-Type: application/json', + 'Content-Length: ' . strlen('['.$data.']'), + ]); + + Curl\Util::execute($this->httpConnection, 5, false); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php b/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php new file mode 100644 index 000000000..4decf0e62 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php @@ -0,0 +1,69 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler\Curl; + +use CurlHandle; + +/** + * This class is marked as internal and it is not under the BC promise of the package. + * + * @internal + */ +final class Util +{ + /** @var array */ + private static array $retriableErrorCodes = [ + CURLE_COULDNT_RESOLVE_HOST, + CURLE_COULDNT_CONNECT, + CURLE_HTTP_NOT_FOUND, + CURLE_READ_ERROR, + CURLE_OPERATION_TIMEOUTED, + CURLE_HTTP_POST_ERROR, + CURLE_SSL_CONNECT_ERROR, + ]; + + /** + * Executes a CURL request with optional retries and exception on failure + * + * @param CurlHandle $ch curl handler + * @return bool|string @see curl_exec + */ + public static function execute(CurlHandle $ch, int $retries = 5, bool $closeAfterDone = true) + { + while ($retries--) { + $curlResponse = curl_exec($ch); + if ($curlResponse === false) { + $curlErrno = curl_errno($ch); + + if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || $retries === 0) { + $curlError = curl_error($ch); + + if ($closeAfterDone) { + curl_close($ch); + } + + throw new \RuntimeException(sprintf('Curl error (code %d): %s', $curlErrno, $curlError)); + } + + continue; + } + + if ($closeAfterDone) { + curl_close($ch); + } + + return $curlResponse; + } + + return false; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php new file mode 100644 index 000000000..b8ec90099 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php @@ -0,0 +1,166 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Logger; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Simple handler wrapper that deduplicates log records across multiple requests + * + * It also includes the BufferHandler functionality and will buffer + * all messages until the end of the request or flush() is called. + * + * This works by storing all log records' messages above $deduplicationLevel + * to the file specified by $deduplicationStore. When further logs come in at the end of the + * request (or when flush() is called), all those above $deduplicationLevel are checked + * against the existing stored logs. If they match and the timestamps in the stored log is + * not older than $time seconds, the new log record is discarded. If no log record is new, the + * whole data set is discarded. + * + * This is mainly useful in combination with Mail handlers or things like Slack or HipChat handlers + * that send messages to people, to avoid spamming with the same message over and over in case of + * a major component failure like a database server being down which makes all requests fail in the + * same way. + * + * @author Jordi Boggiano + */ +class DeduplicationHandler extends BufferHandler +{ + protected string $deduplicationStore; + + protected Level $deduplicationLevel; + + protected int $time; + + private bool $gc = false; + + /** + * @param HandlerInterface $handler Handler. + * @param string|null $deduplicationStore The file/path where the deduplication log should be kept + * @param int|string|Level|LogLevel::* $deduplicationLevel The minimum logging level for log records to be looked at for deduplication purposes + * @param int $time The period (in seconds) during which duplicate entries should be suppressed after a given log is sent through + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $deduplicationLevel + */ + public function __construct(HandlerInterface $handler, ?string $deduplicationStore = null, int|string|Level $deduplicationLevel = Level::Error, int $time = 60, bool $bubble = true) + { + parent::__construct($handler, 0, Level::Debug, $bubble, false); + + $this->deduplicationStore = $deduplicationStore === null ? sys_get_temp_dir() . '/monolog-dedup-' . substr(md5(__FILE__), 0, 20) .'.log' : $deduplicationStore; + $this->deduplicationLevel = Logger::toMonologLevel($deduplicationLevel); + $this->time = $time; + } + + public function flush(): void + { + if ($this->bufferSize === 0) { + return; + } + + $passthru = null; + + foreach ($this->buffer as $record) { + if ($record->level->value >= $this->deduplicationLevel->value) { + $passthru = $passthru === true || !$this->isDuplicate($record); + if ($passthru) { + $this->appendRecord($record); + } + } + } + + // default of null is valid as well as if no record matches duplicationLevel we just pass through + if ($passthru === true || $passthru === null) { + $this->handler->handleBatch($this->buffer); + } + + $this->clear(); + + if ($this->gc) { + $this->collectLogs(); + } + } + + private function isDuplicate(LogRecord $record): bool + { + if (!file_exists($this->deduplicationStore)) { + return false; + } + + $store = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); + if (!is_array($store)) { + return false; + } + + $yesterday = time() - 86400; + $timestampValidity = $record->datetime->getTimestamp() - $this->time; + $expectedMessage = preg_replace('{[\r\n].*}', '', $record->message); + + for ($i = count($store) - 1; $i >= 0; $i--) { + list($timestamp, $level, $message) = explode(':', $store[$i], 3); + + if ($level === $record->level->getName() && $message === $expectedMessage && $timestamp > $timestampValidity) { + return true; + } + + if ($timestamp < $yesterday) { + $this->gc = true; + } + } + + return false; + } + + private function collectLogs(): void + { + if (!file_exists($this->deduplicationStore)) { + return; + } + + $handle = fopen($this->deduplicationStore, 'rw+'); + + if (false === $handle) { + throw new \RuntimeException('Failed to open file for reading and writing: ' . $this->deduplicationStore); + } + + flock($handle, LOCK_EX); + $validLogs = []; + + $timestampValidity = time() - $this->time; + + while (!feof($handle)) { + $log = fgets($handle); + if (is_string($log) && '' !== $log && substr($log, 0, 10) >= $timestampValidity) { + $validLogs[] = $log; + } + } + + ftruncate($handle, 0); + rewind($handle); + foreach ($validLogs as $log) { + fwrite($handle, $log); + } + + flock($handle, LOCK_UN); + fclose($handle); + + $this->gc = false; + } + + private function appendRecord(LogRecord $record): void + { + file_put_contents($this->deduplicationStore, $record->datetime->getTimestamp() . ':' . $record->level->getName() . ':' . preg_replace('{[\r\n].*}', '', $record->message) . "\n", FILE_APPEND); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php new file mode 100644 index 000000000..eab9f1089 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php @@ -0,0 +1,47 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\NormalizerFormatter; +use Monolog\Formatter\FormatterInterface; +use Doctrine\CouchDB\CouchDBClient; +use Monolog\LogRecord; + +/** + * CouchDB handler for Doctrine CouchDB ODM + * + * @author Markus Bachmann + */ +class DoctrineCouchDBHandler extends AbstractProcessingHandler +{ + private CouchDBClient $client; + + public function __construct(CouchDBClient $client, int|string|Level $level = Level::Debug, bool $bubble = true) + { + $this->client = $client; + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->client->postDocument($record->formatted); + } + + protected function getDefaultFormatter(): FormatterInterface + { + return new NormalizerFormatter; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php new file mode 100644 index 000000000..f1c5a9590 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php @@ -0,0 +1,80 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Aws\Sdk; +use Aws\DynamoDb\DynamoDbClient; +use Monolog\Formatter\FormatterInterface; +use Aws\DynamoDb\Marshaler; +use Monolog\Formatter\ScalarFormatter; +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/) + * + * @link https://github.com/aws/aws-sdk-php/ + * @author Andrew Lawson + */ +class DynamoDbHandler extends AbstractProcessingHandler +{ + public const DATE_FORMAT = 'Y-m-d\TH:i:s.uO'; + + protected DynamoDbClient $client; + + protected string $table; + + protected Marshaler $marshaler; + + public function __construct(DynamoDbClient $client, string $table, int|string|Level $level = Level::Debug, bool $bubble = true) + { + $this->marshaler = new Marshaler; + + $this->client = $client; + $this->table = $table; + + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $filtered = $this->filterEmptyFields($record->formatted); + $formatted = $this->marshaler->marshalItem($filtered); + + $this->client->putItem([ + 'TableName' => $this->table, + 'Item' => $formatted, + ]); + } + + /** + * @param mixed[] $record + * @return mixed[] + */ + protected function filterEmptyFields(array $record): array + { + return array_filter($record, function ($value) { + return [] !== $value; + }); + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new ScalarFormatter(self::DATE_FORMAT); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php new file mode 100644 index 000000000..d9b85b4d0 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php @@ -0,0 +1,142 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Elastica\Document; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\ElasticaFormatter; +use Monolog\Level; +use Elastica\Client; +use Elastica\Exception\ExceptionInterface; +use Monolog\LogRecord; + +/** + * Elastic Search handler + * + * Usage example: + * + * $client = new \Elastica\Client(); + * $options = array( + * 'index' => 'elastic_index_name', + * 'type' => 'elastic_doc_type', Types have been removed in Elastica 7 + * ); + * $handler = new ElasticaHandler($client, $options); + * $log = new Logger('application'); + * $log->pushHandler($handler); + * + * @author Jelle Vink + * @phpstan-type Options array{ + * index: string, + * type: string, + * ignore_error: bool + * } + * @phpstan-type InputOptions array{ + * index?: string, + * type?: string, + * ignore_error?: bool + * } + */ +class ElasticaHandler extends AbstractProcessingHandler +{ + protected Client $client; + + /** + * @var mixed[] Handler config options + * @phpstan-var Options + */ + protected array $options; + + /** + * @param Client $client Elastica Client object + * @param mixed[] $options Handler configuration + * + * @phpstan-param InputOptions $options + */ + public function __construct(Client $client, array $options = [], int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + $this->client = $client; + $this->options = array_merge( + [ + 'index' => 'monolog', // Elastic index name + 'type' => 'record', // Elastic document type + 'ignore_error' => false, // Suppress Elastica exceptions + ], + $options + ); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->bulkSend([$record->formatted]); + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + if ($formatter instanceof ElasticaFormatter) { + return parent::setFormatter($formatter); + } + + throw new \InvalidArgumentException('ElasticaHandler is only compatible with ElasticaFormatter'); + } + + /** + * @return mixed[] + * + * @phpstan-return Options + */ + public function getOptions(): array + { + return $this->options; + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new ElasticaFormatter($this->options['index'], $this->options['type']); + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + $documents = $this->getFormatter()->formatBatch($records); + $this->bulkSend($documents); + } + + /** + * Use Elasticsearch bulk API to send list of documents + * + * @param Document[] $documents + * + * @throws \RuntimeException + */ + protected function bulkSend(array $documents): void + { + try { + $this->client->addDocuments($documents); + } catch (ExceptionInterface $e) { + if (!$this->options['ignore_error']) { + throw new \RuntimeException("Error sending messages to Elasticsearch", 0, $e); + } + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php new file mode 100644 index 000000000..74cc7b6e6 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php @@ -0,0 +1,230 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Elastic\Elasticsearch\Response\Elasticsearch; +use Throwable; +use RuntimeException; +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\ElasticsearchFormatter; +use InvalidArgumentException; +use Elasticsearch\Common\Exceptions\RuntimeException as ElasticsearchRuntimeException; +use Elasticsearch\Client; +use Monolog\LogRecord; +use Elastic\Elasticsearch\Exception\InvalidArgumentException as ElasticInvalidArgumentException; +use Elastic\Elasticsearch\Client as Client8; + +/** + * Elasticsearch handler + * + * @link https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html + * + * Simple usage example: + * + * $client = \Elasticsearch\ClientBuilder::create() + * ->setHosts($hosts) + * ->build(); + * + * $options = array( + * 'index' => 'elastic_index_name', + * 'type' => 'elastic_doc_type', + * ); + * $handler = new ElasticsearchHandler($client, $options); + * $log = new Logger('application'); + * $log->pushHandler($handler); + * + * @author Avtandil Kikabidze + * @phpstan-type Options array{ + * index: string, + * type: string, + * ignore_error: bool, + * op_type: 'index'|'create' + * } + * @phpstan-type InputOptions array{ + * index?: string, + * type?: string, + * ignore_error?: bool, + * op_type?: 'index'|'create' + * } + */ +class ElasticsearchHandler extends AbstractProcessingHandler +{ + protected Client|Client8 $client; + + /** + * @var mixed[] Handler config options + * @phpstan-var Options + */ + protected array $options; + + /** + * @var bool + */ + private $needsType; + + /** + * @param Client|Client8 $client Elasticsearch Client object + * @param mixed[] $options Handler configuration + * + * @phpstan-param InputOptions $options + */ + public function __construct(Client|Client8 $client, array $options = [], int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + $this->client = $client; + $this->options = array_merge( + [ + 'index' => 'monolog', // Elastic index name + 'type' => '_doc', // Elastic document type + 'ignore_error' => false, // Suppress Elasticsearch exceptions + 'op_type' => 'index', // Elastic op_type (index or create) (https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#docs-index-api-op_type) + ], + $options + ); + + if ($client instanceof Client8 || $client::VERSION[0] === '7') { + $this->needsType = false; + // force the type to _doc for ES8/ES7 + $this->options['type'] = '_doc'; + } else { + $this->needsType = true; + } + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->bulkSend([$record->formatted]); + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + if ($formatter instanceof ElasticsearchFormatter) { + return parent::setFormatter($formatter); + } + + throw new InvalidArgumentException('ElasticsearchHandler is only compatible with ElasticsearchFormatter'); + } + + /** + * Getter options + * + * @return mixed[] + * + * @phpstan-return Options + */ + public function getOptions(): array + { + return $this->options; + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new ElasticsearchFormatter($this->options['index'], $this->options['type']); + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + $documents = $this->getFormatter()->formatBatch($records); + $this->bulkSend($documents); + } + + /** + * Use Elasticsearch bulk API to send list of documents + * + * @param array> $records Records + _index/_type keys + * @throws \RuntimeException + */ + protected function bulkSend(array $records): void + { + try { + $params = [ + 'body' => [], + ]; + + foreach ($records as $record) { + $params['body'][] = [ + $this->options['op_type'] => $this->needsType ? [ + '_index' => $record['_index'], + '_type' => $record['_type'], + ] : [ + '_index' => $record['_index'], + ], + ]; + unset($record['_index'], $record['_type']); + + $params['body'][] = $record; + } + + /** @var Elasticsearch */ + $responses = $this->client->bulk($params); + + if ($responses['errors'] === true) { + throw $this->createExceptionFromResponses($responses); + } + } catch (Throwable $e) { + if (! $this->options['ignore_error']) { + throw new RuntimeException('Error sending messages to Elasticsearch', 0, $e); + } + } + } + + /** + * Creates elasticsearch exception from responses array + * + * Only the first error is converted into an exception. + * + * @param mixed[]|Elasticsearch $responses returned by $this->client->bulk() + */ + protected function createExceptionFromResponses($responses): Throwable + { + foreach ($responses['items'] ?? [] as $item) { + if (isset($item['index']['error'])) { + return $this->createExceptionFromError($item['index']['error']); + } + } + + if (class_exists(ElasticInvalidArgumentException::class)) { + return new ElasticInvalidArgumentException('Elasticsearch failed to index one or more records.'); + } + + return new ElasticsearchRuntimeException('Elasticsearch failed to index one or more records.'); + } + + /** + * Creates elasticsearch exception from error array + * + * @param mixed[] $error + */ + protected function createExceptionFromError(array $error): Throwable + { + $previous = isset($error['caused_by']) ? $this->createExceptionFromError($error['caused_by']) : null; + + if (class_exists(ElasticInvalidArgumentException::class)) { + return new ElasticInvalidArgumentException($error['type'] . ': ' . $error['reason'], 0, $previous); + } + + return new ElasticsearchRuntimeException($error['type'] . ': ' . $error['reason'], 0, $previous); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php new file mode 100644 index 000000000..571c439e1 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php @@ -0,0 +1,93 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\LineFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Stores to PHP error_log() handler. + * + * @author Elan Ruusamäe + */ +class ErrorLogHandler extends AbstractProcessingHandler +{ + public const OPERATING_SYSTEM = 0; + public const SAPI = 4; + + protected int $messageType; + protected bool $expandNewlines; + + /** + * @param int $messageType Says where the error should go. + * @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries + * + * @throws \InvalidArgumentException If an unsupported message type is set + */ + public function __construct(int $messageType = self::OPERATING_SYSTEM, int|string|Level $level = Level::Debug, bool $bubble = true, bool $expandNewlines = false) + { + parent::__construct($level, $bubble); + + if (false === in_array($messageType, self::getAvailableTypes(), true)) { + $message = sprintf('The given message type "%s" is not supported', print_r($messageType, true)); + + throw new \InvalidArgumentException($message); + } + + $this->messageType = $messageType; + $this->expandNewlines = $expandNewlines; + } + + /** + * @return int[] With all available types + */ + public static function getAvailableTypes(): array + { + return [ + self::OPERATING_SYSTEM, + self::SAPI, + ]; + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%'); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + if (!$this->expandNewlines) { + error_log((string) $record->formatted, $this->messageType); + + return; + } + + $lines = preg_split('{[\r\n]+}', (string) $record->formatted); + if ($lines === false) { + $pcreErrorCode = preg_last_error(); + + throw new \RuntimeException('Failed to preg_split formatted string: ' . $pcreErrorCode . ' / '. Utils::pcreLastErrorMessage($pcreErrorCode)); + } + foreach ($lines as $line) { + error_log($line, $this->messageType); + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php new file mode 100644 index 000000000..58318bee7 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php @@ -0,0 +1,68 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Throwable; +use Monolog\LogRecord; + +/** + * Forwards records to at most one handler + * + * If a handler fails, the exception is suppressed and the record is forwarded to the next handler. + * + * As soon as one handler handles a record successfully, the handling stops there. + */ +class FallbackGroupHandler extends GroupHandler +{ + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + foreach ($this->handlers as $handler) { + try { + $handler->handle(clone $record); + break; + } catch (Throwable $e) { + // What throwable? + } + } + + return false === $this->bubble; + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + if (\count($this->processors) > 0) { + $processed = []; + foreach ($records as $record) { + $processed[] = $this->processRecord($record); + } + $records = $processed; + } + + foreach ($this->handlers as $handler) { + try { + $handler->handleBatch(array_map(fn ($record) => clone $record, $records)); + break; + } catch (Throwable $e) { + // What throwable? + } + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php new file mode 100644 index 000000000..5fa558e19 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php @@ -0,0 +1,202 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Closure; +use Monolog\Level; +use Monolog\Logger; +use Monolog\ResettableInterface; +use Monolog\Formatter\FormatterInterface; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Simple handler wrapper that filters records based on a list of levels + * + * It can be configured with an exact list of levels to allow, or a min/max level. + * + * @author Hennadiy Verkh + * @author Jordi Boggiano + */ +class FilterHandler extends Handler implements ProcessableHandlerInterface, ResettableInterface, FormattableHandlerInterface +{ + use ProcessableHandlerTrait; + + /** + * Handler or factory Closure($record, $this) + * + * @phpstan-var (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface + */ + protected Closure|HandlerInterface $handler; + + /** + * Minimum level for logs that are passed to handler + * + * @var bool[] Map of Level value => true + * @phpstan-var array, true> + */ + protected array $acceptedLevels; + + /** + * Whether the messages that are handled can bubble up the stack or not + */ + protected bool $bubble; + + /** + * @phpstan-param (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface $handler + * + * @param Closure|HandlerInterface $handler Handler or factory Closure($record|null, $filterHandler). + * @param int|string|Level|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided + * @param int|string|Level|LogLevel::* $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * + * @phpstan-param value-of|value-of|Level|LogLevel::*|array|value-of|Level|LogLevel::*> $minLevelOrList + * @phpstan-param value-of|value-of|Level|LogLevel::* $maxLevel + */ + public function __construct(Closure|HandlerInterface $handler, int|string|Level|array $minLevelOrList = Level::Debug, int|string|Level $maxLevel = Level::Emergency, bool $bubble = true) + { + $this->handler = $handler; + $this->bubble = $bubble; + $this->setAcceptedLevels($minLevelOrList, $maxLevel); + } + + /** + * @phpstan-return list List of levels + */ + public function getAcceptedLevels(): array + { + return array_map(fn (int $level) => Level::from($level), array_keys($this->acceptedLevels)); + } + + /** + * @param int|string|Level|LogLevel::*|array $minLevelOrList A list of levels to accept or a minimum level or level name if maxLevel is provided + * @param int|string|Level|LogLevel::* $maxLevel Maximum level or level name to accept, only used if $minLevelOrList is not an array + * @return $this + * + * @phpstan-param value-of|value-of|Level|LogLevel::*|array|value-of|Level|LogLevel::*> $minLevelOrList + * @phpstan-param value-of|value-of|Level|LogLevel::* $maxLevel + */ + public function setAcceptedLevels(int|string|Level|array $minLevelOrList = Level::Debug, int|string|Level $maxLevel = Level::Emergency): self + { + if (is_array($minLevelOrList)) { + $acceptedLevels = array_map(Logger::toMonologLevel(...), $minLevelOrList); + } else { + $minLevelOrList = Logger::toMonologLevel($minLevelOrList); + $maxLevel = Logger::toMonologLevel($maxLevel); + $acceptedLevels = array_values(array_filter(Level::cases(), fn (Level $level) => $level->value >= $minLevelOrList->value && $level->value <= $maxLevel->value)); + } + $this->acceptedLevels = []; + foreach ($acceptedLevels as $level) { + $this->acceptedLevels[$level->value] = true; + } + + return $this; + } + + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + return isset($this->acceptedLevels[$record->level->value]); + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (!$this->isHandling($record)) { + return false; + } + + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + $this->getHandler($record)->handle($record); + + return false === $this->bubble; + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + $filtered = []; + foreach ($records as $record) { + if ($this->isHandling($record)) { + $filtered[] = $record; + } + } + + if (count($filtered) > 0) { + $this->getHandler($filtered[count($filtered) - 1])->handleBatch($filtered); + } + } + + /** + * Return the nested handler + * + * If the handler was provided as a factory, this will trigger the handler's instantiation. + */ + public function getHandler(LogRecord $record = null): HandlerInterface + { + if (!$this->handler instanceof HandlerInterface) { + $handler = ($this->handler)($record, $this); + if (!$handler instanceof HandlerInterface) { + throw new \RuntimeException("The factory Closure should return a HandlerInterface"); + } + $this->handler = $handler; + } + + return $this->handler; + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + $handler = $this->getHandler(); + if ($handler instanceof FormattableHandlerInterface) { + $handler->setFormatter($formatter); + + return $this; + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not support formatters.'); + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + $handler = $this->getHandler(); + if ($handler instanceof FormattableHandlerInterface) { + return $handler->getFormatter(); + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not support formatters.'); + } + + public function reset(): void + { + $this->resetProcessors(); + + if ($this->getHandler() instanceof ResettableInterface) { + $this->getHandler()->reset(); + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php new file mode 100644 index 000000000..e8a1b0b0d --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler\FingersCrossed; + +use Monolog\LogRecord; + +/** + * Interface for activation strategies for the FingersCrossedHandler. + * + * @author Johannes M. Schmitt + */ +interface ActivationStrategyInterface +{ + /** + * Returns whether the given record activates the handler. + */ + public function isHandlerActivated(LogRecord $record): bool; +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php new file mode 100644 index 000000000..383e19af9 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php @@ -0,0 +1,69 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler\FingersCrossed; + +use Monolog\Level; +use Monolog\Logger; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Channel and Error level based monolog activation strategy. Allows to trigger activation + * based on level per channel. e.g. trigger activation on level 'ERROR' by default, except + * for records of the 'sql' channel; those should trigger activation on level 'WARN'. + * + * Example: + * + * + * $activationStrategy = new ChannelLevelActivationStrategy( + * Level::Critical, + * array( + * 'request' => Level::Alert, + * 'sensitive' => Level::Error, + * ) + * ); + * $handler = new FingersCrossedHandler(new StreamHandler('php://stderr'), $activationStrategy); + * + * + * @author Mike Meessen + */ +class ChannelLevelActivationStrategy implements ActivationStrategyInterface +{ + private Level $defaultActionLevel; + + /** + * @var array + */ + private array $channelToActionLevel; + + /** + * @param int|string|Level|LogLevel::* $defaultActionLevel The default action level to be used if the record's category doesn't match any + * @param array $channelToActionLevel An array that maps channel names to action levels. + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $defaultActionLevel + * @phpstan-param array|value-of|Level|LogLevel::*> $channelToActionLevel + */ + public function __construct(int|string|Level $defaultActionLevel, array $channelToActionLevel = []) + { + $this->defaultActionLevel = Logger::toMonologLevel($defaultActionLevel); + $this->channelToActionLevel = array_map(Logger::toMonologLevel(...), $channelToActionLevel); + } + + public function isHandlerActivated(LogRecord $record): bool + { + if (isset($this->channelToActionLevel[$record->channel])) { + return $record->level->value >= $this->channelToActionLevel[$record->channel]->value; + } + + return $record->level->value >= $this->defaultActionLevel->value; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php new file mode 100644 index 000000000..c3ca2967a --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php @@ -0,0 +1,42 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler\FingersCrossed; + +use Monolog\Level; +use Monolog\LogRecord; +use Monolog\Logger; +use Psr\Log\LogLevel; + +/** + * Error level based activation strategy. + * + * @author Johannes M. Schmitt + */ +class ErrorLevelActivationStrategy implements ActivationStrategyInterface +{ + private Level $actionLevel; + + /** + * @param int|string|Level $actionLevel Level or name or value + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $actionLevel + */ + public function __construct(int|string|Level $actionLevel) + { + $this->actionLevel = Logger::toMonologLevel($actionLevel); + } + + public function isHandlerActivated(LogRecord $record): bool + { + return $record->level->value >= $this->actionLevel->value; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php new file mode 100644 index 000000000..1c3df386d --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php @@ -0,0 +1,242 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Closure; +use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy; +use Monolog\Handler\FingersCrossed\ActivationStrategyInterface; +use Monolog\Level; +use Monolog\Logger; +use Monolog\ResettableInterface; +use Monolog\Formatter\FormatterInterface; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Buffers all records until a certain level is reached + * + * The advantage of this approach is that you don't get any clutter in your log files. + * Only requests which actually trigger an error (or whatever your actionLevel is) will be + * in the logs, but they will contain all records, not only those above the level threshold. + * + * You can then have a passthruLevel as well which means that at the end of the request, + * even if it did not get activated, it will still send through log records of e.g. at least a + * warning level. + * + * You can find the various activation strategies in the + * Monolog\Handler\FingersCrossed\ namespace. + * + * @author Jordi Boggiano + */ +class FingersCrossedHandler extends Handler implements ProcessableHandlerInterface, ResettableInterface, FormattableHandlerInterface +{ + use ProcessableHandlerTrait; + + /** + * Handler or factory Closure($record, $this) + * + * @phpstan-var (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface + */ + protected Closure|HandlerInterface $handler; + + protected ActivationStrategyInterface $activationStrategy; + + protected bool $buffering = true; + + protected int $bufferSize; + + /** @var LogRecord[] */ + protected array $buffer = []; + + protected bool $stopBuffering; + + protected Level|null $passthruLevel = null; + + protected bool $bubble; + + /** + * @phpstan-param (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface $handler + * + * @param Closure|HandlerInterface $handler Handler or factory Closure($record|null, $fingersCrossedHandler). + * @param int|string|Level|LogLevel::* $activationStrategy Strategy which determines when this handler takes action, or a level name/value at which the handler is activated + * @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * @param bool $stopBuffering Whether the handler should stop buffering after being triggered (default true) + * @param int|string|Level|LogLevel::*|null $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered + * + * @phpstan-param value-of|value-of|Level|LogLevel::*|ActivationStrategyInterface $activationStrategy + * @phpstan-param value-of|value-of|Level|LogLevel::* $passthruLevel + */ + public function __construct(Closure|HandlerInterface $handler, int|string|Level|ActivationStrategyInterface $activationStrategy = null, int $bufferSize = 0, bool $bubble = true, bool $stopBuffering = true, int|string|Level|null $passthruLevel = null) + { + if (null === $activationStrategy) { + $activationStrategy = new ErrorLevelActivationStrategy(Level::Warning); + } + + // convert simple int activationStrategy to an object + if (!$activationStrategy instanceof ActivationStrategyInterface) { + $activationStrategy = new ErrorLevelActivationStrategy($activationStrategy); + } + + $this->handler = $handler; + $this->activationStrategy = $activationStrategy; + $this->bufferSize = $bufferSize; + $this->bubble = $bubble; + $this->stopBuffering = $stopBuffering; + + if ($passthruLevel !== null) { + $this->passthruLevel = Logger::toMonologLevel($passthruLevel); + } + } + + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + return true; + } + + /** + * Manually activate this logger regardless of the activation strategy + */ + public function activate(): void + { + if ($this->stopBuffering) { + $this->buffering = false; + } + + $this->getHandler(end($this->buffer) ?: null)->handleBatch($this->buffer); + $this->buffer = []; + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + if ($this->buffering) { + $this->buffer[] = $record; + if ($this->bufferSize > 0 && count($this->buffer) > $this->bufferSize) { + array_shift($this->buffer); + } + if ($this->activationStrategy->isHandlerActivated($record)) { + $this->activate(); + } + } else { + $this->getHandler($record)->handle($record); + } + + return false === $this->bubble; + } + + /** + * @inheritDoc + */ + public function close(): void + { + $this->flushBuffer(); + + $this->getHandler()->close(); + } + + public function reset(): void + { + $this->flushBuffer(); + + $this->resetProcessors(); + + if ($this->getHandler() instanceof ResettableInterface) { + $this->getHandler()->reset(); + } + } + + /** + * Clears the buffer without flushing any messages down to the wrapped handler. + * + * It also resets the handler to its initial buffering state. + */ + public function clear(): void + { + $this->buffer = []; + $this->reset(); + } + + /** + * Resets the state of the handler. Stops forwarding records to the wrapped handler. + */ + private function flushBuffer(): void + { + if (null !== $this->passthruLevel) { + $passthruLevel = $this->passthruLevel; + $this->buffer = array_filter($this->buffer, static function ($record) use ($passthruLevel) { + return $passthruLevel->includes($record->level); + }); + if (count($this->buffer) > 0) { + $this->getHandler(end($this->buffer))->handleBatch($this->buffer); + } + } + + $this->buffer = []; + $this->buffering = true; + } + + /** + * Return the nested handler + * + * If the handler was provided as a factory, this will trigger the handler's instantiation. + */ + public function getHandler(LogRecord $record = null): HandlerInterface + { + if (!$this->handler instanceof HandlerInterface) { + $handler = ($this->handler)($record, $this); + if (!$handler instanceof HandlerInterface) { + throw new \RuntimeException("The factory Closure should return a HandlerInterface"); + } + $this->handler = $handler; + } + + return $this->handler; + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + $handler = $this->getHandler(); + if ($handler instanceof FormattableHandlerInterface) { + $handler->setFormatter($formatter); + + return $this; + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not support formatters.'); + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + $handler = $this->getHandler(); + if ($handler instanceof FormattableHandlerInterface) { + return $handler->getFormatter(); + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not support formatters.'); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php new file mode 100644 index 000000000..6b9e5103a --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php @@ -0,0 +1,174 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\WildfireFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Simple FirePHP Handler (http://www.firephp.org/), which uses the Wildfire protocol. + * + * @author Eric Clemmons (@ericclemmons) + */ +class FirePHPHandler extends AbstractProcessingHandler +{ + use WebRequestRecognizerTrait; + + /** + * WildFire JSON header message format + */ + protected const PROTOCOL_URI = 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2'; + + /** + * FirePHP structure for parsing messages & their presentation + */ + protected const STRUCTURE_URI = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1'; + + /** + * Must reference a "known" plugin, otherwise headers won't display in FirePHP + */ + protected const PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3'; + + /** + * Header prefix for Wildfire to recognize & parse headers + */ + protected const HEADER_PREFIX = 'X-Wf'; + + /** + * Whether or not Wildfire vendor-specific headers have been generated & sent yet + */ + protected static bool $initialized = false; + + /** + * Shared static message index between potentially multiple handlers + */ + protected static int $messageIndex = 1; + + protected static bool $sendHeaders = true; + + /** + * Base header creation function used by init headers & record headers + * + * @param array $meta Wildfire Plugin, Protocol & Structure Indexes + * @param string $message Log message + * + * @return array Complete header string ready for the client as key and message as value + * + * @phpstan-return non-empty-array + */ + protected function createHeader(array $meta, string $message): array + { + $header = sprintf('%s-%s', static::HEADER_PREFIX, join('-', $meta)); + + return [$header => $message]; + } + + /** + * Creates message header from record + * + * @return array + * + * @phpstan-return non-empty-array + * + * @see createHeader() + */ + protected function createRecordHeader(LogRecord $record): array + { + // Wildfire is extensible to support multiple protocols & plugins in a single request, + // but we're not taking advantage of that (yet), so we're using "1" for simplicity's sake. + return $this->createHeader( + [1, 1, 1, self::$messageIndex++], + $record->formatted + ); + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new WildfireFormatter(); + } + + /** + * Wildfire initialization headers to enable message parsing + * + * @see createHeader() + * @see sendHeader() + * + * @return array + */ + protected function getInitHeaders(): array + { + // Initial payload consists of required headers for Wildfire + return array_merge( + $this->createHeader(['Protocol', 1], static::PROTOCOL_URI), + $this->createHeader([1, 'Structure', 1], static::STRUCTURE_URI), + $this->createHeader([1, 'Plugin', 1], static::PLUGIN_URI) + ); + } + + /** + * Send header string to the client + */ + protected function sendHeader(string $header, string $content): void + { + if (!headers_sent() && self::$sendHeaders) { + header(sprintf('%s: %s', $header, $content)); + } + } + + /** + * Creates & sends header for a record, ensuring init headers have been sent prior + * + * @see sendHeader() + * @see sendInitHeaders() + */ + protected function write(LogRecord $record): void + { + if (!self::$sendHeaders || !$this->isWebRequest()) { + return; + } + + // WildFire-specific headers must be sent prior to any messages + if (!self::$initialized) { + self::$initialized = true; + + self::$sendHeaders = $this->headersAccepted(); + if (!self::$sendHeaders) { + return; + } + + foreach ($this->getInitHeaders() as $header => $content) { + $this->sendHeader($header, $content); + } + } + + $header = $this->createRecordHeader($record); + if (trim(current($header)) !== '') { + $this->sendHeader(key($header), current($header)); + } + } + + /** + * Verifies if the headers are accepted by the current user agent + */ + protected function headersAccepted(): bool + { + if (isset($_SERVER['HTTP_USER_AGENT']) && 1 === preg_match('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT'])) { + return true; + } + + return isset($_SERVER['HTTP_X_FIREPHP_VERSION']); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php new file mode 100644 index 000000000..220648223 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php @@ -0,0 +1,132 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LineFormatter; +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Sends logs to Fleep.io using Webhook integrations + * + * You'll need a Fleep.io account to use this handler. + * + * @see https://fleep.io/integrations/webhooks/ Fleep Webhooks Documentation + * @author Ando Roots + */ +class FleepHookHandler extends SocketHandler +{ + protected const FLEEP_HOST = 'fleep.io'; + + protected const FLEEP_HOOK_URI = '/hook/'; + + /** + * @var string Webhook token (specifies the conversation where logs are sent) + */ + protected string $token; + + /** + * Construct a new Fleep.io Handler. + * + * For instructions on how to create a new web hook in your conversations + * see https://fleep.io/integrations/webhooks/ + * + * @param string $token Webhook token + * @throws MissingExtensionException if OpenSSL is missing + */ + public function __construct( + string $token, + $level = Level::Debug, + bool $bubble = true, + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + if (!extension_loaded('openssl')) { + throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FleepHookHandler'); + } + + $this->token = $token; + + $connectionString = 'ssl://' . static::FLEEP_HOST . ':443'; + parent::__construct( + $connectionString, + $level, + $bubble, + $persistent, + $timeout, + $writingTimeout, + $connectionTimeout, + $chunkSize + ); + } + + /** + * Returns the default formatter to use with this handler + * + * Overloaded to remove empty context and extra arrays from the end of the log message. + * + * @return LineFormatter + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter(null, null, true, true); + } + + /** + * Handles a log record + */ + public function write(LogRecord $record): void + { + parent::write($record); + $this->closeSocket(); + } + + /** + * @inheritDoc + */ + protected function generateDataStream(LogRecord $record): string + { + $content = $this->buildContent($record); + + return $this->buildHeader($content) . $content; + } + + /** + * Builds the header of the API Call + */ + private function buildHeader(string $content): string + { + $header = "POST " . static::FLEEP_HOOK_URI . $this->token . " HTTP/1.1\r\n"; + $header .= "Host: " . static::FLEEP_HOST . "\r\n"; + $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; + $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "\r\n"; + + return $header; + } + + /** + * Builds the body of API call + */ + private function buildContent(LogRecord $record): string + { + $dataArray = [ + 'message' => $record->formatted, + ]; + + return http_build_query($dataArray); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php new file mode 100644 index 000000000..d24bec40b --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php @@ -0,0 +1,127 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\Formatter\FlowdockFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Sends notifications through the Flowdock push API + * + * This must be configured with a FlowdockFormatter instance via setFormatter() + * + * Notes: + * API token - Flowdock API token + * + * @author Dominik Liebler + * @see https://www.flowdock.com/api/push + * @deprecated Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 + */ +class FlowdockHandler extends SocketHandler +{ + protected string $apiToken; + + /** + * @throws MissingExtensionException if OpenSSL is missing + */ + public function __construct( + string $apiToken, + $level = Level::Debug, + bool $bubble = true, + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + if (!extension_loaded('openssl')) { + throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler'); + } + + parent::__construct( + 'ssl://api.flowdock.com:443', + $level, + $bubble, + $persistent, + $timeout, + $writingTimeout, + $connectionTimeout, + $chunkSize + ); + $this->apiToken = $apiToken; + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + if (!$formatter instanceof FlowdockFormatter) { + throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\Formatter\FlowdockFormatter to function correctly'); + } + + return parent::setFormatter($formatter); + } + + /** + * Gets the default formatter. + */ + protected function getDefaultFormatter(): FormatterInterface + { + throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\Formatter\FlowdockFormatter to function correctly'); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + parent::write($record); + + $this->closeSocket(); + } + + /** + * @inheritDoc + */ + protected function generateDataStream(LogRecord $record): string + { + $content = $this->buildContent($record); + + return $this->buildHeader($content) . $content; + } + + /** + * Builds the body of API call + */ + private function buildContent(LogRecord $record): string + { + return Utils::jsonEncode($record->formatted); + } + + /** + * Builds the header of the API Call + */ + private function buildHeader(string $content): string + { + $header = "POST /v1/messages/team_inbox/" . $this->apiToken . " HTTP/1.1\r\n"; + $header .= "Host: api.flowdock.com\r\n"; + $header .= "Content-Type: application/json\r\n"; + $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "\r\n"; + + return $header; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php new file mode 100644 index 000000000..72da59e1c --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; + +/** + * Interface to describe loggers that have a formatter + * + * @author Jordi Boggiano + */ +interface FormattableHandlerInterface +{ + /** + * Sets the formatter. + * + * @return HandlerInterface self + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface; + + /** + * Gets the formatter. + */ + public function getFormatter(): FormatterInterface; +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php b/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php new file mode 100644 index 000000000..c044e0786 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php @@ -0,0 +1,57 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LineFormatter; + +/** + * Helper trait for implementing FormattableInterface + * + * @author Jordi Boggiano + */ +trait FormattableHandlerTrait +{ + protected FormatterInterface|null $formatter = null; + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + $this->formatter = $formatter; + + return $this; + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + if (null === $this->formatter) { + $this->formatter = $this->getDefaultFormatter(); + } + + return $this->formatter; + } + + /** + * Gets the default formatter. + * + * Overwrite this if the LineFormatter is not a good default for your handler. + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php new file mode 100644 index 000000000..ba5bb975d --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php @@ -0,0 +1,58 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Gelf\PublisherInterface; +use Monolog\Level; +use Monolog\Formatter\GelfMessageFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Handler to send messages to a Graylog2 (http://www.graylog2.org) server + * + * @author Matt Lehner + * @author Benjamin Zikarsky + */ +class GelfHandler extends AbstractProcessingHandler +{ + /** + * @var PublisherInterface the publisher object that sends the message to the server + */ + protected PublisherInterface $publisher; + + /** + * @param PublisherInterface $publisher a gelf publisher object + */ + public function __construct(PublisherInterface $publisher, int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + + $this->publisher = $publisher; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->publisher->publish($record->formatted); + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new GelfMessageFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php new file mode 100644 index 000000000..0423dc346 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php @@ -0,0 +1,130 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\ResettableInterface; +use Monolog\LogRecord; + +/** + * Forwards records to multiple handlers + * + * @author Lenar Lõhmus + */ +class GroupHandler extends Handler implements ProcessableHandlerInterface, ResettableInterface +{ + use ProcessableHandlerTrait; + + /** @var HandlerInterface[] */ + protected array $handlers; + protected bool $bubble; + + /** + * @param HandlerInterface[] $handlers Array of Handlers. + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * + * @throws \InvalidArgumentException if an unsupported handler is set + */ + public function __construct(array $handlers, bool $bubble = true) + { + foreach ($handlers as $handler) { + if (!$handler instanceof HandlerInterface) { + throw new \InvalidArgumentException('The first argument of the GroupHandler must be an array of HandlerInterface instances.'); + } + } + + $this->handlers = $handlers; + $this->bubble = $bubble; + } + + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + foreach ($this->handlers as $handler) { + if ($handler->isHandling($record)) { + return true; + } + } + + return false; + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + foreach ($this->handlers as $handler) { + $handler->handle(clone $record); + } + + return false === $this->bubble; + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + if (\count($this->processors) > 0) { + $processed = []; + foreach ($records as $record) { + $processed[] = $this->processRecord($record); + } + $records = $processed; + } + + foreach ($this->handlers as $handler) { + $handler->handleBatch(array_map(fn ($record) => clone $record, $records)); + } + } + + public function reset(): void + { + $this->resetProcessors(); + + foreach ($this->handlers as $handler) { + if ($handler instanceof ResettableInterface) { + $handler->reset(); + } + } + } + + public function close(): void + { + parent::close(); + + foreach ($this->handlers as $handler) { + $handler->close(); + } + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + foreach ($this->handlers as $handler) { + if ($handler instanceof FormattableHandlerInterface) { + $handler->setFormatter($formatter); + } + } + + return $this; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/Handler.php b/vendor/monolog/monolog/src/Monolog/Handler/Handler.php new file mode 100644 index 000000000..e89f969b8 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/Handler.php @@ -0,0 +1,62 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +/** + * Base Handler class providing basic close() support as well as handleBatch + * + * @author Jordi Boggiano + */ +abstract class Handler implements HandlerInterface +{ + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + foreach ($records as $record) { + $this->handle($record); + } + } + + /** + * @inheritDoc + */ + public function close(): void + { + } + + public function __destruct() + { + try { + $this->close(); + } catch (\Throwable $e) { + // do nothing + } + } + + public function __sleep() + { + $this->close(); + + $reflClass = new \ReflectionClass($this); + + $keys = []; + foreach ($reflClass->getProperties() as $reflProp) { + if (!$reflProp->isStatic()) { + $keys[] = $reflProp->getName(); + } + } + + return $keys; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php new file mode 100644 index 000000000..83905c323 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php @@ -0,0 +1,76 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\LogRecord; + +/** + * Interface that all Monolog Handlers must implement + * + * @author Jordi Boggiano + */ +interface HandlerInterface +{ + /** + * Checks whether the given record will be handled by this handler. + * + * This is mostly done for performance reasons, to avoid calling processors for nothing. + * + * Handlers should still check the record levels within handle(), returning false in isHandling() + * is no guarantee that handle() will not be called, and isHandling() might not be called + * for a given record. + * + * @param LogRecord $record Partial log record having only a level initialized + */ + public function isHandling(LogRecord $record): bool; + + /** + * Handles a record. + * + * All records may be passed to this method, and the handler should discard + * those that it does not want to handle. + * + * The return value of this function controls the bubbling process of the handler stack. + * Unless the bubbling is interrupted (by returning true), the Logger class will keep on + * calling further handlers in the stack with a given log record. + * + * @param LogRecord $record The record to handle + * @return bool true means that this handler handled the record, and that bubbling is not permitted. + * false means the record was either not processed or that this handler allows bubbling. + */ + public function handle(LogRecord $record): bool; + + /** + * Handles a set of records at once. + * + * @param array $records The records to handle + */ + public function handleBatch(array $records): void; + + /** + * Closes the handler. + * + * Ends a log cycle and frees all resources used by the handler. + * + * Closing a Handler means flushing all buffers and freeing any open resources/handles. + * + * Implementations have to be idempotent (i.e. it should be possible to call close several times without breakage) + * and ideally handlers should be able to reopen themselves on handle() after they have been closed. + * + * This is useful at the end of a request and will be called automatically when the object + * is destroyed if you extend Monolog\Handler\Handler. + * + * If you are thinking of calling this method yourself, most likely you should be + * calling ResettableInterface::reset instead. Have a look. + */ + public function close(): void; +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php b/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php new file mode 100644 index 000000000..541ec2541 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php @@ -0,0 +1,134 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\ResettableInterface; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * This simple wrapper class can be used to extend handlers functionality. + * + * Example: A custom filtering that can be applied to any handler. + * + * Inherit from this class and override handle() like this: + * + * public function handle(LogRecord $record) + * { + * if ($record meets certain conditions) { + * return false; + * } + * return $this->handler->handle($record); + * } + * + * @author Alexey Karapetov + */ +class HandlerWrapper implements HandlerInterface, ProcessableHandlerInterface, FormattableHandlerInterface, ResettableInterface +{ + protected HandlerInterface $handler; + + public function __construct(HandlerInterface $handler) + { + $this->handler = $handler; + } + + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + return $this->handler->isHandling($record); + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + return $this->handler->handle($record); + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + $this->handler->handleBatch($records); + } + + /** + * @inheritDoc + */ + public function close(): void + { + $this->handler->close(); + } + + /** + * @inheritDoc + */ + public function pushProcessor(callable $callback): HandlerInterface + { + if ($this->handler instanceof ProcessableHandlerInterface) { + $this->handler->pushProcessor($callback); + + return $this; + } + + throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class); + } + + /** + * @inheritDoc + */ + public function popProcessor(): callable + { + if ($this->handler instanceof ProcessableHandlerInterface) { + return $this->handler->popProcessor(); + } + + throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class); + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + $this->handler->setFormatter($formatter); + + return $this; + } + + throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class); + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + return $this->handler->getFormatter(); + } + + throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class); + } + + public function reset(): void + { + if ($this->handler instanceof ResettableInterface) { + $this->handler->reset(); + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php new file mode 100644 index 000000000..418f2ba03 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php @@ -0,0 +1,75 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * IFTTTHandler uses cURL to trigger IFTTT Maker actions + * + * Register a secret key and trigger/event name at https://ifttt.com/maker + * + * value1 will be the channel from monolog's Logger constructor, + * value2 will be the level name (ERROR, WARNING, ..) + * value3 will be the log record's message + * + * @author Nehal Patel + */ +class IFTTTHandler extends AbstractProcessingHandler +{ + private string $eventName; + private string $secretKey; + + /** + * @param string $eventName The name of the IFTTT Maker event that should be triggered + * @param string $secretKey A valid IFTTT secret key + * + * @throws MissingExtensionException If the curl extension is missing + */ + public function __construct(string $eventName, string $secretKey, int|string|Level $level = Level::Error, bool $bubble = true) + { + if (!extension_loaded('curl')) { + throw new MissingExtensionException('The curl extension is needed to use the IFTTTHandler'); + } + + $this->eventName = $eventName; + $this->secretKey = $secretKey; + + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + public function write(LogRecord $record): void + { + $postData = [ + "value1" => $record->channel, + "value2" => $record["level_name"], + "value3" => $record->message, + ]; + $postString = Utils::jsonEncode($postData); + + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey); + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_POSTFIELDS, $postString); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + "Content-Type: application/json", + ]); + + Curl\Util::execute($ch); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php new file mode 100644 index 000000000..abb2f88f7 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php @@ -0,0 +1,74 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Inspired on LogEntriesHandler. + * + * @author Robert Kaufmann III + * @author Gabriel Machado + */ +class InsightOpsHandler extends SocketHandler +{ + protected string $logToken; + + /** + * @param string $token Log token supplied by InsightOps + * @param string $region Region where InsightOps account is hosted. Could be 'us' or 'eu'. + * @param bool $useSSL Whether or not SSL encryption should be used + * + * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing + */ + public function __construct( + string $token, + string $region = 'us', + bool $useSSL = true, + $level = Level::Debug, + bool $bubble = true, + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + if ($useSSL && !extension_loaded('openssl')) { + throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler'); + } + + $endpoint = $useSSL + ? 'ssl://' . $region . '.data.logs.insight.rapid7.com:443' + : $region . '.data.logs.insight.rapid7.com:80'; + + parent::__construct( + $endpoint, + $level, + $bubble, + $persistent, + $timeout, + $writingTimeout, + $connectionTimeout, + $chunkSize + ); + $this->logToken = $token; + } + + /** + * @inheritDoc + */ + protected function generateDataStream(LogRecord $record): string + { + return $this->logToken . ' ' . $record->formatted; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php new file mode 100644 index 000000000..00259834e --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php @@ -0,0 +1,68 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * @author Robert Kaufmann III + */ +class LogEntriesHandler extends SocketHandler +{ + protected string $logToken; + + /** + * @param string $token Log token supplied by LogEntries + * @param bool $useSSL Whether or not SSL encryption should be used. + * @param string $host Custom hostname to send the data to if needed + * + * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing + */ + public function __construct( + string $token, + bool $useSSL = true, + $level = Level::Debug, + bool $bubble = true, + string $host = 'data.logentries.com', + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + if ($useSSL && !extension_loaded('openssl')) { + throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler'); + } + + $endpoint = $useSSL ? 'ssl://' . $host . ':443' : $host . ':80'; + parent::__construct( + $endpoint, + $level, + $bubble, + $persistent, + $timeout, + $writingTimeout, + $connectionTimeout, + $chunkSize + ); + $this->logToken = $token; + } + + /** + * @inheritDoc + */ + protected function generateDataStream(LogRecord $record): string + { + return $this->logToken . ' ' . $record->formatted; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php new file mode 100644 index 000000000..6a9a20e01 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php @@ -0,0 +1,157 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LogglyFormatter; +use function array_key_exists; +use CurlHandle; +use Monolog\LogRecord; + +/** + * Sends errors to Loggly. + * + * @author Przemek Sobstel + * @author Adam Pancutt + * @author Gregory Barchard + */ +class LogglyHandler extends AbstractProcessingHandler +{ + protected const HOST = 'logs-01.loggly.com'; + protected const ENDPOINT_SINGLE = 'inputs'; + protected const ENDPOINT_BATCH = 'bulk'; + + /** + * Caches the curl handlers for every given endpoint. + * + * @var CurlHandle[] + */ + protected array $curlHandlers = []; + + protected string $token; + + /** @var string[] */ + protected array $tag = []; + + /** + * @param string $token API token supplied by Loggly + * + * @throws MissingExtensionException If the curl extension is missing + */ + public function __construct(string $token, int|string|Level $level = Level::Debug, bool $bubble = true) + { + if (!extension_loaded('curl')) { + throw new MissingExtensionException('The curl extension is needed to use the LogglyHandler'); + } + + $this->token = $token; + + parent::__construct($level, $bubble); + } + + /** + * Loads and returns the shared curl handler for the given endpoint. + */ + protected function getCurlHandler(string $endpoint): CurlHandle + { + if (!array_key_exists($endpoint, $this->curlHandlers)) { + $this->curlHandlers[$endpoint] = $this->loadCurlHandle($endpoint); + } + + return $this->curlHandlers[$endpoint]; + } + + /** + * Starts a fresh curl session for the given endpoint and returns its handler. + */ + private function loadCurlHandle(string $endpoint): CurlHandle + { + $url = sprintf("https://%s/%s/%s/", static::HOST, $endpoint, $this->token); + + $ch = curl_init(); + + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + + return $ch; + } + + /** + * @param string[]|string $tag + * @return $this + */ + public function setTag(string|array $tag): self + { + if ('' === $tag || [] === $tag) { + $this->tag = []; + } else { + $this->tag = is_array($tag) ? $tag : [$tag]; + } + + return $this; + } + + /** + * @param string[]|string $tag + * @return $this + */ + public function addTag(string|array $tag): self + { + if ('' !== $tag) { + $tag = is_array($tag) ? $tag : [$tag]; + $this->tag = array_unique(array_merge($this->tag, $tag)); + } + + return $this; + } + + protected function write(LogRecord $record): void + { + $this->send($record->formatted, static::ENDPOINT_SINGLE); + } + + public function handleBatch(array $records): void + { + $level = $this->level; + + $records = array_filter($records, function ($record) use ($level) { + return ($record->level->value >= $level->value); + }); + + if (\count($records) > 0) { + $this->send($this->getFormatter()->formatBatch($records), static::ENDPOINT_BATCH); + } + } + + protected function send(string $data, string $endpoint): void + { + $ch = $this->getCurlHandler($endpoint); + + $headers = ['Content-Type: application/json']; + + if (\count($this->tag) > 0) { + $headers[] = 'X-LOGGLY-TAG: '.implode(',', $this->tag); + } + + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); + + Curl\Util::execute($ch, 5, false); + } + + protected function getDefaultFormatter(): FormatterInterface + { + return new LogglyFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php new file mode 100644 index 000000000..876b1a953 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php @@ -0,0 +1,98 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LogmaticFormatter; +use Monolog\LogRecord; + +/** + * @author Julien Breux + */ +class LogmaticHandler extends SocketHandler +{ + private string $logToken; + + private string $hostname; + + private string $appName; + + /** + * @param string $token Log token supplied by Logmatic. + * @param string $hostname Host name supplied by Logmatic. + * @param string $appName Application name supplied by Logmatic. + * @param bool $useSSL Whether or not SSL encryption should be used. + * + * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing + */ + public function __construct( + string $token, + string $hostname = '', + string $appName = '', + bool $useSSL = true, + $level = Level::Debug, + bool $bubble = true, + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + if ($useSSL && !extension_loaded('openssl')) { + throw new MissingExtensionException('The OpenSSL PHP extension is required to use SSL encrypted connection for LogmaticHandler'); + } + + $endpoint = $useSSL ? 'ssl://api.logmatic.io:10515' : 'api.logmatic.io:10514'; + $endpoint .= '/v1/'; + + parent::__construct( + $endpoint, + $level, + $bubble, + $persistent, + $timeout, + $writingTimeout, + $connectionTimeout, + $chunkSize + ); + + $this->logToken = $token; + $this->hostname = $hostname; + $this->appName = $appName; + } + + /** + * @inheritDoc + */ + protected function generateDataStream(LogRecord $record): string + { + return $this->logToken . ' ' . $record->formatted; + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + $formatter = new LogmaticFormatter(); + + if ($this->hostname !== '') { + $formatter->setHostname($this->hostname); + } + if ($this->appName !== '') { + $formatter->setAppName($this->appName); + } + + return $formatter; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php new file mode 100644 index 000000000..b6c822772 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php @@ -0,0 +1,91 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\HtmlFormatter; +use Monolog\LogRecord; + +/** + * Base class for all mail handlers + * + * @author Gyula Sallai + */ +abstract class MailHandler extends AbstractProcessingHandler +{ + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + $messages = []; + + foreach ($records as $record) { + if ($record->level->isLowerThan($this->level)) { + continue; + } + + $message = $this->processRecord($record); + $messages[] = $message; + } + + if (\count($messages) > 0) { + $this->send((string) $this->getFormatter()->formatBatch($messages), $messages); + } + } + + /** + * Send a mail with the given content + * + * @param string $content formatted email body to be sent + * @param array $records the array of log records that formed this content + * + * @phpstan-param non-empty-array $records + */ + abstract protected function send(string $content, array $records): void; + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->send((string) $record->formatted, [$record]); + } + + /** + * @phpstan-param non-empty-array $records + */ + protected function getHighestRecord(array $records): LogRecord + { + $highestRecord = null; + foreach ($records as $record) { + if ($highestRecord === null || $record->level->isHigherThan($highestRecord->level)) { + $highestRecord = $record; + } + } + + return $highestRecord; + } + + protected function isHtmlBody(string $body): bool + { + return ($body[0] ?? null) === '<'; + } + + /** + * Gets the default formatter. + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new HtmlFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php new file mode 100644 index 000000000..64e16c9de --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php @@ -0,0 +1,83 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Swift; +use Swift_Message; + +/** + * MandrillHandler uses cURL to send the emails to the Mandrill API + * + * @author Adam Nicholson + */ +class MandrillHandler extends MailHandler +{ + protected Swift_Message $message; + protected string $apiKey; + + /** + * @phpstan-param (Swift_Message|callable(): Swift_Message) $message + * + * @param string $apiKey A valid Mandrill API key + * @param callable|Swift_Message $message An example message for real messages, only the body will be replaced + * + * @throws \InvalidArgumentException if not a Swift Message is set + */ + public function __construct(string $apiKey, callable|Swift_Message $message, int|string|Level $level = Level::Error, bool $bubble = true) + { + parent::__construct($level, $bubble); + + if (!$message instanceof Swift_Message) { + $message = $message(); + } + if (!$message instanceof Swift_Message) { + throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callable returning it'); + } + $this->message = $message; + $this->apiKey = $apiKey; + } + + /** + * @inheritDoc + */ + protected function send(string $content, array $records): void + { + $mime = 'text/plain'; + if ($this->isHtmlBody($content)) { + $mime = 'text/html'; + } + + $message = clone $this->message; + $message->setBody($content, $mime); + /** @phpstan-ignore-next-line */ + if (version_compare(Swift::VERSION, '6.0.0', '>=')) { + $message->setDate(new \DateTimeImmutable()); + } else { + /** @phpstan-ignore-next-line */ + $message->setDate(time()); + } + + $ch = curl_init(); + + curl_setopt($ch, CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json'); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ + 'key' => $this->apiKey, + 'raw_message' => (string) $message, + 'async' => false, + ])); + + Curl\Util::execute($ch); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php b/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php new file mode 100644 index 000000000..3965aeea5 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +/** + * Exception can be thrown if an extension for a handler is missing + * + * @author Christian Bergau + */ +class MissingExtensionException extends \Exception +{ +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php new file mode 100644 index 000000000..33ab68c6d --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php @@ -0,0 +1,82 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use MongoDB\Driver\BulkWrite; +use MongoDB\Driver\Manager; +use MongoDB\Client; +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\MongoDBFormatter; +use Monolog\LogRecord; + +/** + * Logs to a MongoDB database. + * + * Usage example: + * + * $log = new \Monolog\Logger('application'); + * $client = new \MongoDB\Client('mongodb://localhost:27017'); + * $mongodb = new \Monolog\Handler\MongoDBHandler($client, 'logs', 'prod'); + * $log->pushHandler($mongodb); + * + * The above examples uses the MongoDB PHP library's client class; however, the + * MongoDB\Driver\Manager class from ext-mongodb is also supported. + */ +class MongoDBHandler extends AbstractProcessingHandler +{ + private \MongoDB\Collection $collection; + + private Client|Manager $manager; + + private string|null $namespace = null; + + /** + * Constructor. + * + * @param Client|Manager $mongodb MongoDB library or driver client + * @param string $database Database name + * @param string $collection Collection name + */ + public function __construct(Client|Manager $mongodb, string $database, string $collection, int|string|Level $level = Level::Debug, bool $bubble = true) + { + if ($mongodb instanceof Client) { + $this->collection = $mongodb->selectCollection($database, $collection); + } else { + $this->manager = $mongodb; + $this->namespace = $database . '.' . $collection; + } + + parent::__construct($level, $bubble); + } + + protected function write(LogRecord $record): void + { + if (isset($this->collection)) { + $this->collection->insertOne($record->formatted); + } + + if (isset($this->manager, $this->namespace)) { + $bulk = new BulkWrite; + $bulk->insert($record->formatted); + $this->manager->executeBulkWrite($this->namespace, $bulk); + } + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new MongoDBFormatter; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php new file mode 100644 index 000000000..70d6004e1 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php @@ -0,0 +1,173 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\LineFormatter; + +/** + * NativeMailerHandler uses the mail() function to send the emails + * + * @author Christophe Coevoet + * @author Mark Garrett + */ +class NativeMailerHandler extends MailHandler +{ + /** + * The email addresses to which the message will be sent + * @var string[] + */ + protected array $to; + + /** + * The subject of the email + */ + protected string $subject; + + /** + * Optional headers for the message + * @var string[] + */ + protected array $headers = []; + + /** + * Optional parameters for the message + * @var string[] + */ + protected array $parameters = []; + + /** + * The wordwrap length for the message + */ + protected int $maxColumnWidth; + + /** + * The Content-type for the message + */ + protected string|null $contentType = null; + + /** + * The encoding for the message + */ + protected string $encoding = 'utf-8'; + + /** + * @param string|string[] $to The receiver of the mail + * @param string $subject The subject of the mail + * @param string $from The sender of the mail + * @param int $maxColumnWidth The maximum column width that the message lines will have + */ + public function __construct(string|array $to, string $subject, string $from, int|string|Level $level = Level::Error, bool $bubble = true, int $maxColumnWidth = 70) + { + parent::__construct($level, $bubble); + $this->to = (array) $to; + $this->subject = $subject; + $this->addHeader(sprintf('From: %s', $from)); + $this->maxColumnWidth = $maxColumnWidth; + } + + /** + * Add headers to the message + * + * @param string|string[] $headers Custom added headers + * @return $this + */ + public function addHeader($headers): self + { + foreach ((array) $headers as $header) { + if (strpos($header, "\n") !== false || strpos($header, "\r") !== false) { + throw new \InvalidArgumentException('Headers can not contain newline characters for security reasons'); + } + $this->headers[] = $header; + } + + return $this; + } + + /** + * Add parameters to the message + * + * @param string|string[] $parameters Custom added parameters + * @return $this + */ + public function addParameter($parameters): self + { + $this->parameters = array_merge($this->parameters, (array) $parameters); + + return $this; + } + + /** + * @inheritDoc + */ + protected function send(string $content, array $records): void + { + $contentType = $this->getContentType() ?? ($this->isHtmlBody($content) ? 'text/html' : 'text/plain'); + + if ($contentType !== 'text/html') { + $content = wordwrap($content, $this->maxColumnWidth); + } + + $headers = ltrim(implode("\r\n", $this->headers) . "\r\n", "\r\n"); + $headers .= 'Content-type: ' . $contentType . '; charset=' . $this->getEncoding() . "\r\n"; + if ($contentType === 'text/html' && false === strpos($headers, 'MIME-Version:')) { + $headers .= 'MIME-Version: 1.0' . "\r\n"; + } + + $subjectFormatter = new LineFormatter($this->subject); + $subject = $subjectFormatter->format($this->getHighestRecord($records)); + + $parameters = implode(' ', $this->parameters); + foreach ($this->to as $to) { + mail($to, $subject, $content, $headers, $parameters); + } + } + + public function getContentType(): ?string + { + return $this->contentType; + } + + public function getEncoding(): string + { + return $this->encoding; + } + + /** + * @param string $contentType The content type of the email - Defaults to text/plain. Use text/html for HTML messages. + * @return $this + */ + public function setContentType(string $contentType): self + { + if (strpos($contentType, "\n") !== false || strpos($contentType, "\r") !== false) { + throw new \InvalidArgumentException('The content type can not contain newline characters to prevent email header injection'); + } + + $this->contentType = $contentType; + + return $this; + } + + /** + * @return $this + */ + public function setEncoding(string $encoding): self + { + if (strpos($encoding, "\n") !== false || strpos($encoding, "\r") !== false) { + throw new \InvalidArgumentException('The encoding can not contain newline characters to prevent email header injection'); + } + + $this->encoding = $encoding; + + return $this; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php new file mode 100644 index 000000000..b8cb3785b --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php @@ -0,0 +1,180 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\Formatter\NormalizerFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Class to record a log on a NewRelic application. + * Enabling New Relic High Security mode may prevent capture of useful information. + * + * This handler requires a NormalizerFormatter to function and expects an array in $record->formatted + * + * @see https://docs.newrelic.com/docs/agents/php-agent + * @see https://docs.newrelic.com/docs/accounts-partnerships/accounts/security/high-security + */ +class NewRelicHandler extends AbstractProcessingHandler +{ + /** + * @inheritDoc + */ + public function __construct( + int|string|Level $level = Level::Error, + bool $bubble = true, + + /** + * Name of the New Relic application that will receive logs from this handler. + */ + protected string|null $appName = null, + + /** + * Some context and extra data is passed into the handler as arrays of values. Do we send them as is + * (useful if we are using the API), or explode them for display on the NewRelic RPM website? + */ + protected bool $explodeArrays = false, + + /** + * Name of the current transaction + */ + protected string|null $transactionName = null + ) { + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + if (!$this->isNewRelicEnabled()) { + throw new MissingExtensionException('The newrelic PHP extension is required to use the NewRelicHandler'); + } + + if (null !== ($appName = $this->getAppName($record->context))) { + $this->setNewRelicAppName($appName); + } + + if (null !== ($transactionName = $this->getTransactionName($record->context))) { + $this->setNewRelicTransactionName($transactionName); + unset($record->formatted['context']['transaction_name']); + } + + if (isset($record->context['exception']) && $record->context['exception'] instanceof \Throwable) { + newrelic_notice_error($record->message, $record->context['exception']); + unset($record->formatted['context']['exception']); + } else { + newrelic_notice_error($record->message); + } + + if (isset($record->formatted['context']) && is_array($record->formatted['context'])) { + foreach ($record->formatted['context'] as $key => $parameter) { + if (is_array($parameter) && $this->explodeArrays) { + foreach ($parameter as $paramKey => $paramValue) { + $this->setNewRelicParameter('context_' . $key . '_' . $paramKey, $paramValue); + } + } else { + $this->setNewRelicParameter('context_' . $key, $parameter); + } + } + } + + if (isset($record->formatted['extra']) && is_array($record->formatted['extra'])) { + foreach ($record->formatted['extra'] as $key => $parameter) { + if (is_array($parameter) && $this->explodeArrays) { + foreach ($parameter as $paramKey => $paramValue) { + $this->setNewRelicParameter('extra_' . $key . '_' . $paramKey, $paramValue); + } + } else { + $this->setNewRelicParameter('extra_' . $key, $parameter); + } + } + } + } + + /** + * Checks whether the NewRelic extension is enabled in the system. + */ + protected function isNewRelicEnabled(): bool + { + return extension_loaded('newrelic'); + } + + /** + * Returns the appname where this log should be sent. Each log can override the default appname, set in this + * handler's constructor, by providing the appname in it's context. + * + * @param mixed[] $context + */ + protected function getAppName(array $context): ?string + { + if (isset($context['appname'])) { + return $context['appname']; + } + + return $this->appName; + } + + /** + * Returns the name of the current transaction. Each log can override the default transaction name, set in this + * handler's constructor, by providing the transaction_name in it's context + * + * @param mixed[] $context + */ + protected function getTransactionName(array $context): ?string + { + if (isset($context['transaction_name'])) { + return $context['transaction_name']; + } + + return $this->transactionName; + } + + /** + * Sets the NewRelic application that should receive this log. + */ + protected function setNewRelicAppName(string $appName): void + { + newrelic_set_appname($appName); + } + + /** + * Overwrites the name of the current transaction + */ + protected function setNewRelicTransactionName(string $transactionName): void + { + newrelic_name_transaction($transactionName); + } + + /** + * @param mixed $value + */ + protected function setNewRelicParameter(string $key, $value): void + { + if (null === $value || is_scalar($value)) { + newrelic_add_custom_parameter($key, $value); + } else { + newrelic_add_custom_parameter($key, Utils::jsonEncode($value, null, true)); + } + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new NormalizerFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NoopHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NoopHandler.php new file mode 100644 index 000000000..d9fea180c --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/NoopHandler.php @@ -0,0 +1,42 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\LogRecord; + +/** + * No-op + * + * This handler handles anything, but does nothing, and does not stop bubbling to the rest of the stack. + * This can be used for testing, or to disable a handler when overriding a configuration without + * influencing the rest of the stack. + * + * @author Roel Harbers + */ +class NoopHandler extends Handler +{ + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + return true; + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + return false; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php new file mode 100644 index 000000000..1aa84e4f8 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php @@ -0,0 +1,56 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Psr\Log\LogLevel; +use Monolog\Logger; +use Monolog\LogRecord; + +/** + * Blackhole + * + * Any record it can handle will be thrown away. This can be used + * to put on top of an existing stack to override it temporarily. + * + * @author Jordi Boggiano + */ +class NullHandler extends Handler +{ + private Level $level; + + /** + * @param string|int|Level $level The minimum logging level at which this handler will be triggered + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function __construct(string|int|Level $level = Level::Debug) + { + $this->level = Logger::toMonologLevel($level); + } + + /** + * @inheritDoc + */ + public function isHandling(LogRecord $record): bool + { + return $record->level->value >= $this->level->value; + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + return $record->level->value >= $this->level->value; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php new file mode 100644 index 000000000..a72b7a11d --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php @@ -0,0 +1,139 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Handler to only pass log messages when a certain threshold of number of messages is reached. + * + * This can be useful in cases of processing a batch of data, but you're for example only interested + * in case it fails catastrophically instead of a warning for 1 or 2 events. Worse things can happen, right? + * + * Usage example: + * + * ``` + * $log = new Logger('application'); + * $handler = new SomeHandler(...) + * + * // Pass all warnings to the handler when more than 10 & all error messages when more then 5 + * $overflow = new OverflowHandler($handler, [Level::Warning->value => 10, Level::Error->value => 5]); + * + * $log->pushHandler($overflow); + *``` + * + * @author Kris Buist + */ +class OverflowHandler extends AbstractHandler implements FormattableHandlerInterface +{ + private HandlerInterface $handler; + + /** @var array */ + private array $thresholdMap = []; + + /** + * Buffer of all messages passed to the handler before the threshold was reached + * + * @var mixed[][] + */ + private array $buffer = []; + + /** + * @param array $thresholdMap Dictionary of log level value => threshold + */ + public function __construct( + HandlerInterface $handler, + array $thresholdMap = [], + $level = Level::Debug, + bool $bubble = true + ) { + $this->handler = $handler; + foreach ($thresholdMap as $thresholdLevel => $threshold) { + $this->thresholdMap[$thresholdLevel] = $threshold; + } + parent::__construct($level, $bubble); + } + + /** + * Handles a record. + * + * All records may be passed to this method, and the handler should discard + * those that it does not want to handle. + * + * The return value of this function controls the bubbling process of the handler stack. + * Unless the bubbling is interrupted (by returning true), the Logger class will keep on + * calling further handlers in the stack with a given log record. + * + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if ($record->level->isLowerThan($this->level)) { + return false; + } + + $level = $record->level->value; + + if (!isset($this->thresholdMap[$level])) { + $this->thresholdMap[$level] = 0; + } + + if ($this->thresholdMap[$level] > 0) { + // The overflow threshold is not yet reached, so we're buffering the record and lowering the threshold by 1 + $this->thresholdMap[$level]--; + $this->buffer[$level][] = $record; + + return false === $this->bubble; + } + + if ($this->thresholdMap[$level] == 0) { + // This current message is breaking the threshold. Flush the buffer and continue handling the current record + foreach ($this->buffer[$level] ?? [] as $buffered) { + $this->handler->handle($buffered); + } + $this->thresholdMap[$level]--; + unset($this->buffer[$level]); + } + + $this->handler->handle($record); + + return false === $this->bubble; + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + $this->handler->setFormatter($formatter); + + return $this; + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($this->handler).' does not support formatters.'); + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + if ($this->handler instanceof FormattableHandlerInterface) { + return $this->handler->getFormatter(); + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($this->handler).' does not support formatters.'); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php new file mode 100644 index 000000000..8aa78e4c4 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php @@ -0,0 +1,303 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\LineFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\Utils; +use PhpConsole\Connector; +use PhpConsole\Handler as VendorPhpConsoleHandler; +use PhpConsole\Helper; +use Monolog\LogRecord; +use PhpConsole\Storage; + +/** + * Monolog handler for Google Chrome extension "PHP Console" + * + * Display PHP error/debug log messages in Google Chrome console and notification popups, executes PHP code remotely + * + * Usage: + * 1. Install Google Chrome extension [now dead and removed from the chrome store] + * 2. See overview https://github.com/barbushin/php-console#overview + * 3. Install PHP Console library https://github.com/barbushin/php-console#installation + * 4. Example (result will looks like http://i.hizliresim.com/vg3Pz4.png) + * + * $logger = new \Monolog\Logger('all', array(new \Monolog\Handler\PHPConsoleHandler())); + * \Monolog\ErrorHandler::register($logger); + * echo $undefinedVar; + * $logger->debug('SELECT * FROM users', array('db', 'time' => 0.012)); + * PC::debug($_SERVER); // PHP Console debugger for any type of vars + * + * @author Sergey Barbushin https://www.linkedin.com/in/barbushin + * @phpstan-type Options array{ + * enabled: bool, + * classesPartialsTraceIgnore: string[], + * debugTagsKeysInContext: array, + * useOwnErrorsHandler: bool, + * useOwnExceptionsHandler: bool, + * sourcesBasePath: string|null, + * registerHelper: bool, + * serverEncoding: string|null, + * headersLimit: int|null, + * password: string|null, + * enableSslOnlyMode: bool, + * ipMasks: string[], + * enableEvalListener: bool, + * dumperDetectCallbacks: bool, + * dumperLevelLimit: int, + * dumperItemsCountLimit: int, + * dumperItemSizeLimit: int, + * dumperDumpSizeLimit: int, + * detectDumpTraceAndSource: bool, + * dataStorage: Storage|null + * } + * @phpstan-type InputOptions array{ + * enabled?: bool, + * classesPartialsTraceIgnore?: string[], + * debugTagsKeysInContext?: array, + * useOwnErrorsHandler?: bool, + * useOwnExceptionsHandler?: bool, + * sourcesBasePath?: string|null, + * registerHelper?: bool, + * serverEncoding?: string|null, + * headersLimit?: int|null, + * password?: string|null, + * enableSslOnlyMode?: bool, + * ipMasks?: string[], + * enableEvalListener?: bool, + * dumperDetectCallbacks?: bool, + * dumperLevelLimit?: int, + * dumperItemsCountLimit?: int, + * dumperItemSizeLimit?: int, + * dumperDumpSizeLimit?: int, + * detectDumpTraceAndSource?: bool, + * dataStorage?: Storage|null + * } + * + * @deprecated Since 2.8.0 and 3.2.0, PHPConsole is abandoned and thus we will drop this handler in Monolog 4 + */ +class PHPConsoleHandler extends AbstractProcessingHandler +{ + /** + * @phpstan-var Options + */ + private array $options = [ + 'enabled' => true, // bool Is PHP Console server enabled + 'classesPartialsTraceIgnore' => ['Monolog\\'], // array Hide calls of classes started with... + 'debugTagsKeysInContext' => [0, 'tag'], // bool Is PHP Console server enabled + 'useOwnErrorsHandler' => false, // bool Enable errors handling + 'useOwnExceptionsHandler' => false, // bool Enable exceptions handling + 'sourcesBasePath' => null, // string Base path of all project sources to strip in errors source paths + 'registerHelper' => true, // bool Register PhpConsole\Helper that allows short debug calls like PC::debug($var, 'ta.g.s') + 'serverEncoding' => null, // string|null Server internal encoding + 'headersLimit' => null, // int|null Set headers size limit for your web-server + 'password' => null, // string|null Protect PHP Console connection by password + 'enableSslOnlyMode' => false, // bool Force connection by SSL for clients with PHP Console installed + 'ipMasks' => [], // array Set IP masks of clients that will be allowed to connect to PHP Console: array('192.168.*.*', '127.0.0.1') + 'enableEvalListener' => false, // bool Enable eval request to be handled by eval dispatcher(if enabled, 'password' option is also required) + 'dumperDetectCallbacks' => false, // bool Convert callback items in dumper vars to (callback SomeClass::someMethod) strings + 'dumperLevelLimit' => 5, // int Maximum dumped vars array or object nested dump level + 'dumperItemsCountLimit' => 100, // int Maximum dumped var same level array items or object properties number + 'dumperItemSizeLimit' => 5000, // int Maximum length of any string or dumped array item + 'dumperDumpSizeLimit' => 500000, // int Maximum approximate size of dumped vars result formatted in JSON + 'detectDumpTraceAndSource' => false, // bool Autodetect and append trace data to debug + 'dataStorage' => null, // \PhpConsole\Storage|null Fixes problem with custom $_SESSION handler(see http://goo.gl/Ne8juJ) + ]; + + private Connector $connector; + + /** + * @param array $options See \Monolog\Handler\PHPConsoleHandler::$options for more details + * @param Connector|null $connector Instance of \PhpConsole\Connector class (optional) + * @throws \RuntimeException + * @phpstan-param InputOptions $options + */ + public function __construct(array $options = [], ?Connector $connector = null, int|string|Level $level = Level::Debug, bool $bubble = true) + { + if (!class_exists('PhpConsole\Connector')) { + throw new \RuntimeException('PHP Console library not found. See https://github.com/barbushin/php-console#installation'); + } + parent::__construct($level, $bubble); + $this->options = $this->initOptions($options); + $this->connector = $this->initConnector($connector); + } + + /** + * @param array $options + * @return array + * + * @phpstan-param InputOptions $options + * @phpstan-return Options + */ + private function initOptions(array $options): array + { + $wrongOptions = array_diff(array_keys($options), array_keys($this->options)); + if (\count($wrongOptions) > 0) { + throw new \RuntimeException('Unknown options: ' . implode(', ', $wrongOptions)); + } + + return array_replace($this->options, $options); + } + + private function initConnector(?Connector $connector = null): Connector + { + if (null === $connector) { + if ($this->options['dataStorage'] instanceof Storage) { + Connector::setPostponeStorage($this->options['dataStorage']); + } + $connector = Connector::getInstance(); + } + + if ($this->options['registerHelper'] && !Helper::isRegistered()) { + Helper::register(); + } + + if ($this->options['enabled'] && $connector->isActiveClient()) { + if ($this->options['useOwnErrorsHandler'] || $this->options['useOwnExceptionsHandler']) { + $handler = VendorPhpConsoleHandler::getInstance(); + $handler->setHandleErrors($this->options['useOwnErrorsHandler']); + $handler->setHandleExceptions($this->options['useOwnExceptionsHandler']); + $handler->start(); + } + if (null !== $this->options['sourcesBasePath']) { + $connector->setSourcesBasePath($this->options['sourcesBasePath']); + } + if (null !== $this->options['serverEncoding']) { + $connector->setServerEncoding($this->options['serverEncoding']); + } + if (null !== $this->options['password']) { + $connector->setPassword($this->options['password']); + } + if ($this->options['enableSslOnlyMode']) { + $connector->enableSslOnlyMode(); + } + if (\count($this->options['ipMasks']) > 0) { + $connector->setAllowedIpMasks($this->options['ipMasks']); + } + if (null !== $this->options['headersLimit'] && $this->options['headersLimit'] > 0) { + $connector->setHeadersLimit($this->options['headersLimit']); + } + if ($this->options['detectDumpTraceAndSource']) { + $connector->getDebugDispatcher()->detectTraceAndSource = true; + } + $dumper = $connector->getDumper(); + $dumper->levelLimit = $this->options['dumperLevelLimit']; + $dumper->itemsCountLimit = $this->options['dumperItemsCountLimit']; + $dumper->itemSizeLimit = $this->options['dumperItemSizeLimit']; + $dumper->dumpSizeLimit = $this->options['dumperDumpSizeLimit']; + $dumper->detectCallbacks = $this->options['dumperDetectCallbacks']; + if ($this->options['enableEvalListener']) { + $connector->startEvalRequestsListener(); + } + } + + return $connector; + } + + public function getConnector(): Connector + { + return $this->connector; + } + + /** + * @return array + */ + public function getOptions(): array + { + return $this->options; + } + + public function handle(LogRecord $record): bool + { + if ($this->options['enabled'] && $this->connector->isActiveClient()) { + return parent::handle($record); + } + + return !$this->bubble; + } + + /** + * Writes the record down to the log of the implementing handler + */ + protected function write(LogRecord $record): void + { + if ($record->level->isLowerThan(Level::Notice)) { + $this->handleDebugRecord($record); + } elseif (isset($record->context['exception']) && $record->context['exception'] instanceof \Throwable) { + $this->handleExceptionRecord($record); + } else { + $this->handleErrorRecord($record); + } + } + + private function handleDebugRecord(LogRecord $record): void + { + [$tags, $filteredContext] = $this->getRecordTags($record); + $message = $record->message; + if (\count($filteredContext) > 0) { + $message .= ' ' . Utils::jsonEncode($this->connector->getDumper()->dump(array_filter($filteredContext)), null, true); + } + $this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']); + } + + private function handleExceptionRecord(LogRecord $record): void + { + $this->connector->getErrorsDispatcher()->dispatchException($record->context['exception']); + } + + private function handleErrorRecord(LogRecord $record): void + { + $context = $record->context; + + $this->connector->getErrorsDispatcher()->dispatchError( + $context['code'] ?? null, + $context['message'] ?? $record->message, + $context['file'] ?? null, + $context['line'] ?? null, + $this->options['classesPartialsTraceIgnore'] + ); + } + + /** + * @return array{string, mixed[]} + */ + private function getRecordTags(LogRecord $record): array + { + $tags = null; + $filteredContext = []; + if ($record->context !== []) { + $filteredContext = $record->context; + foreach ($this->options['debugTagsKeysInContext'] as $key) { + if (isset($filteredContext[$key])) { + $tags = $filteredContext[$key]; + if ($key === 0) { + array_shift($filteredContext); + } else { + unset($filteredContext[$key]); + } + break; + } + } + } + + return [$tags ?? $record->level->toPsrLogLevel(), $filteredContext]; + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter('%message%'); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php new file mode 100644 index 000000000..9edc9ac54 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php @@ -0,0 +1,186 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Stores to STDIN of any process, specified by a command. + * + * Usage example: + *
+ * $log = new Logger('myLogger');
+ * $log->pushHandler(new ProcessHandler('/usr/bin/php /var/www/monolog/someScript.php'));
+ * 
+ * + * @author Kolja Zuelsdorf + */ +class ProcessHandler extends AbstractProcessingHandler +{ + /** + * Holds the process to receive data on its STDIN. + * + * @var resource|bool|null + */ + private $process; + + private string $command; + + private ?string $cwd; + + /** + * @var resource[] + */ + private array $pipes = []; + + /** + * @var array + */ + protected const DESCRIPTOR_SPEC = [ + 0 => ['pipe', 'r'], // STDIN is a pipe that the child will read from + 1 => ['pipe', 'w'], // STDOUT is a pipe that the child will write to + 2 => ['pipe', 'w'], // STDERR is a pipe to catch the any errors + ]; + + /** + * @param string $command Command for the process to start. Absolute paths are recommended, + * especially if you do not use the $cwd parameter. + * @param string|null $cwd "Current working directory" (CWD) for the process to be executed in. + * @throws \InvalidArgumentException + */ + public function __construct(string $command, int|string|Level $level = Level::Debug, bool $bubble = true, ?string $cwd = null) + { + if ($command === '') { + throw new \InvalidArgumentException('The command argument must be a non-empty string.'); + } + if ($cwd === '') { + throw new \InvalidArgumentException('The optional CWD argument must be a non-empty string or null.'); + } + + parent::__construct($level, $bubble); + + $this->command = $command; + $this->cwd = $cwd; + } + + /** + * Writes the record down to the log of the implementing handler + * + * @throws \UnexpectedValueException + */ + protected function write(LogRecord $record): void + { + $this->ensureProcessIsStarted(); + + $this->writeProcessInput($record->formatted); + + $errors = $this->readProcessErrors(); + if ($errors !== '') { + throw new \UnexpectedValueException(sprintf('Errors while writing to process: %s', $errors)); + } + } + + /** + * Makes sure that the process is actually started, and if not, starts it, + * assigns the stream pipes, and handles startup errors, if any. + */ + private function ensureProcessIsStarted(): void + { + if (is_resource($this->process) === false) { + $this->startProcess(); + + $this->handleStartupErrors(); + } + } + + /** + * Starts the actual process and sets all streams to non-blocking. + */ + private function startProcess(): void + { + $this->process = proc_open($this->command, static::DESCRIPTOR_SPEC, $this->pipes, $this->cwd); + + foreach ($this->pipes as $pipe) { + stream_set_blocking($pipe, false); + } + } + + /** + * Selects the STDERR stream, handles upcoming startup errors, and throws an exception, if any. + * + * @throws \UnexpectedValueException + */ + private function handleStartupErrors(): void + { + $selected = $this->selectErrorStream(); + if (false === $selected) { + throw new \UnexpectedValueException('Something went wrong while selecting a stream.'); + } + + $errors = $this->readProcessErrors(); + + if (is_resource($this->process) === false || $errors !== '') { + throw new \UnexpectedValueException( + sprintf('The process "%s" could not be opened: ' . $errors, $this->command) + ); + } + } + + /** + * Selects the STDERR stream. + * + * @return int|bool + */ + protected function selectErrorStream() + { + $empty = []; + $errorPipes = [$this->pipes[2]]; + + return stream_select($errorPipes, $empty, $empty, 1); + } + + /** + * Reads the errors of the process, if there are any. + * + * @codeCoverageIgnore + * @return string Empty string if there are no errors. + */ + protected function readProcessErrors(): string + { + return (string) stream_get_contents($this->pipes[2]); + } + + /** + * Writes to the input stream of the opened process. + * + * @codeCoverageIgnore + */ + protected function writeProcessInput(string $string): void + { + fwrite($this->pipes[0], $string); + } + + /** + * @inheritDoc + */ + public function close(): void + { + if (is_resource($this->process)) { + foreach ($this->pipes as $pipe) { + fclose($pipe); + } + proc_close($this->process); + $this->process = null; + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php b/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php new file mode 100644 index 000000000..9fb290faa --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php @@ -0,0 +1,43 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Processor\ProcessorInterface; +use Monolog\LogRecord; + +/** + * Interface to describe loggers that have processors + * + * @author Jordi Boggiano + */ +interface ProcessableHandlerInterface +{ + /** + * Adds a processor in the stack. + * + * @phpstan-param ProcessorInterface|(callable(LogRecord): LogRecord) $callback + * + * @param ProcessorInterface|callable $callback + * @return HandlerInterface self + */ + public function pushProcessor(callable $callback): HandlerInterface; + + /** + * Removes the processor on top of the stack and returns it. + * + * @phpstan-return ProcessorInterface|(callable(LogRecord): LogRecord) $callback + * + * @throws \LogicException In case the processor stack is empty + * @return callable|ProcessorInterface + */ + public function popProcessor(): callable; +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php b/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php new file mode 100644 index 000000000..74eeddddc --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php @@ -0,0 +1,70 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\ResettableInterface; +use Monolog\Processor\ProcessorInterface; +use Monolog\LogRecord; + +/** + * Helper trait for implementing ProcessableInterface + * + * @author Jordi Boggiano + */ +trait ProcessableHandlerTrait +{ + /** + * @var callable[] + * @phpstan-var array<(callable(LogRecord): LogRecord)|ProcessorInterface> + */ + protected array $processors = []; + + /** + * @inheritDoc + */ + public function pushProcessor(callable $callback): HandlerInterface + { + array_unshift($this->processors, $callback); + + return $this; + } + + /** + * @inheritDoc + */ + public function popProcessor(): callable + { + if (\count($this->processors) === 0) { + throw new \LogicException('You tried to pop from an empty processor stack.'); + } + + return array_shift($this->processors); + } + + protected function processRecord(LogRecord $record): LogRecord + { + foreach ($this->processors as $processor) { + $record = $processor($record); + } + + return $record; + } + + protected function resetProcessors(): void + { + foreach ($this->processors as $processor) { + if ($processor instanceof ResettableInterface) { + $processor->reset(); + } + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php new file mode 100644 index 000000000..6599a83b4 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php @@ -0,0 +1,87 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Psr\Log\LoggerInterface; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Proxies log messages to an existing PSR-3 compliant logger. + * + * If a formatter is configured, the formatter's output MUST be a string and the + * formatted message will be fed to the wrapped PSR logger instead of the original + * log record's message. + * + * @author Michael Moussa + */ +class PsrHandler extends AbstractHandler implements FormattableHandlerInterface +{ + /** + * PSR-3 compliant logger + */ + protected LoggerInterface $logger; + + protected FormatterInterface|null $formatter = null; + + /** + * @param LoggerInterface $logger The underlying PSR-3 compliant logger to which messages will be proxied + */ + public function __construct(LoggerInterface $logger, int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + + $this->logger = $logger; + } + + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (!$this->isHandling($record)) { + return false; + } + + if ($this->formatter !== null) { + $formatted = $this->formatter->format($record); + $this->logger->log($record->level->toPsrLogLevel(), (string) $formatted, $record->context); + } else { + $this->logger->log($record->level->toPsrLogLevel(), $record->message, $record->context); + } + + return false === $this->bubble; + } + + /** + * Sets the formatter. + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + $this->formatter = $formatter; + + return $this; + } + + /** + * Gets the formatter. + */ + public function getFormatter(): FormatterInterface + { + if ($this->formatter === null) { + throw new \LogicException('No formatter has been set and this handler does not have a default formatter'); + } + + return $this->formatter; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php new file mode 100644 index 000000000..615f12194 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php @@ -0,0 +1,246 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Logger; +use Monolog\Utils; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Sends notifications through the pushover api to mobile phones + * + * @author Sebastian Göttschkes + * @see https://www.pushover.net/api + */ +class PushoverHandler extends SocketHandler +{ + private string $token; + + /** @var array */ + private array $users; + + private string $title; + + private string|int|null $user = null; + + private int $retry; + + private int $expire; + + private Level $highPriorityLevel; + + private Level $emergencyLevel; + + private bool $useFormattedMessage = false; + + /** + * All parameters that can be sent to Pushover + * @see https://pushover.net/api + * @var array + */ + private array $parameterNames = [ + 'token' => true, + 'user' => true, + 'message' => true, + 'device' => true, + 'title' => true, + 'url' => true, + 'url_title' => true, + 'priority' => true, + 'timestamp' => true, + 'sound' => true, + 'retry' => true, + 'expire' => true, + 'callback' => true, + ]; + + /** + * Sounds the api supports by default + * @see https://pushover.net/api#sounds + * @var string[] + */ + private array $sounds = [ + 'pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming', + 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb', + 'persistent', 'echo', 'updown', 'none', + ]; + + /** + * @param string $token Pushover api token + * @param string|array $users Pushover user id or array of ids the message will be sent to + * @param string|null $title Title sent to the Pushover API + * @param bool $useSSL Whether to connect via SSL. Required when pushing messages to users that are not + * the pushover.net app owner. OpenSSL is required for this option. + * @param int $retry The retry parameter specifies how often (in seconds) the Pushover servers will + * send the same notification to the user. + * @param int $expire The expire parameter specifies how many seconds your notification will continue + * to be retried for (every retry seconds). + * + * @param int|string|Level|LogLevel::* $highPriorityLevel The minimum logging level at which this handler will start + * sending "high priority" requests to the Pushover API + * @param int|string|Level|LogLevel::* $emergencyLevel The minimum logging level at which this handler will start + * sending "emergency" requests to the Pushover API + * + * + * @phpstan-param string|array $users + * @phpstan-param value-of|value-of|Level|LogLevel::* $highPriorityLevel + * @phpstan-param value-of|value-of|Level|LogLevel::* $emergencyLevel + */ + public function __construct( + string $token, + $users, + ?string $title = null, + int|string|Level $level = Level::Critical, + bool $bubble = true, + bool $useSSL = true, + int|string|Level $highPriorityLevel = Level::Critical, + int|string|Level $emergencyLevel = Level::Emergency, + int $retry = 30, + int $expire = 25200, + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + $connectionString = $useSSL ? 'ssl://api.pushover.net:443' : 'api.pushover.net:80'; + parent::__construct( + $connectionString, + $level, + $bubble, + $persistent, + $timeout, + $writingTimeout, + $connectionTimeout, + $chunkSize + ); + + $this->token = $token; + $this->users = (array) $users; + $this->title = $title ?? (string) gethostname(); + $this->highPriorityLevel = Logger::toMonologLevel($highPriorityLevel); + $this->emergencyLevel = Logger::toMonologLevel($emergencyLevel); + $this->retry = $retry; + $this->expire = $expire; + } + + protected function generateDataStream(LogRecord $record): string + { + $content = $this->buildContent($record); + + return $this->buildHeader($content) . $content; + } + + private function buildContent(LogRecord $record): string + { + // Pushover has a limit of 512 characters on title and message combined. + $maxMessageLength = 512 - strlen($this->title); + + $message = ($this->useFormattedMessage) ? $record->formatted : $record->message; + $message = Utils::substr($message, 0, $maxMessageLength); + + $timestamp = $record->datetime->getTimestamp(); + + $dataArray = [ + 'token' => $this->token, + 'user' => $this->user, + 'message' => $message, + 'title' => $this->title, + 'timestamp' => $timestamp, + ]; + + if ($record->level->value >= $this->emergencyLevel->value) { + $dataArray['priority'] = 2; + $dataArray['retry'] = $this->retry; + $dataArray['expire'] = $this->expire; + } elseif ($record->level->value >= $this->highPriorityLevel->value) { + $dataArray['priority'] = 1; + } + + // First determine the available parameters + $context = array_intersect_key($record->context, $this->parameterNames); + $extra = array_intersect_key($record->extra, $this->parameterNames); + + // Least important info should be merged with subsequent info + $dataArray = array_merge($extra, $context, $dataArray); + + // Only pass sounds that are supported by the API + if (isset($dataArray['sound']) && !in_array($dataArray['sound'], $this->sounds, true)) { + unset($dataArray['sound']); + } + + return http_build_query($dataArray); + } + + private function buildHeader(string $content): string + { + $header = "POST /1/messages.json HTTP/1.1\r\n"; + $header .= "Host: api.pushover.net\r\n"; + $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; + $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "\r\n"; + + return $header; + } + + protected function write(LogRecord $record): void + { + foreach ($this->users as $user) { + $this->user = $user; + + parent::write($record); + $this->closeSocket(); + } + + $this->user = null; + } + + /** + * @param int|string|Level|LogLevel::* $level + * @return $this + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function setHighPriorityLevel(int|string|Level $level): self + { + $this->highPriorityLevel = Logger::toMonologLevel($level); + + return $this; + } + + /** + * @param int|string|Level|LogLevel::* $level + * @return $this + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function setEmergencyLevel(int|string|Level $level): self + { + $this->emergencyLevel = Logger::toMonologLevel($level); + + return $this; + } + + /** + * Use the formatted message? + * + * @return $this + */ + public function useFormattedMessage(bool $useFormattedMessage): self + { + $this->useFormattedMessage = $useFormattedMessage; + + return $this; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php new file mode 100644 index 000000000..5eee5dc69 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php @@ -0,0 +1,94 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\LineFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\LogRecord; +use Predis\Client as Predis; +use Redis; + +/** + * Logs to a Redis key using rpush + * + * usage example: + * + * $log = new Logger('application'); + * $redis = new RedisHandler(new Predis\Client("tcp://localhost:6379"), "logs", "prod"); + * $log->pushHandler($redis); + * + * @author Thomas Tourlourat + */ +class RedisHandler extends AbstractProcessingHandler +{ + /** @var Predis|Redis */ + private Predis|Redis $redisClient; + private string $redisKey; + protected int $capSize; + + /** + * @param Predis|Redis $redis The redis instance + * @param string $key The key name to push records to + * @param int $capSize Number of entries to limit list size to, 0 = unlimited + */ + public function __construct(Predis|Redis $redis, string $key, int|string|Level $level = Level::Debug, bool $bubble = true, int $capSize = 0) + { + $this->redisClient = $redis; + $this->redisKey = $key; + $this->capSize = $capSize; + + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + if ($this->capSize > 0) { + $this->writeCapped($record); + } else { + $this->redisClient->rpush($this->redisKey, $record->formatted); + } + } + + /** + * Write and cap the collection + * Writes the record to the redis list and caps its + */ + protected function writeCapped(LogRecord $record): void + { + if ($this->redisClient instanceof Redis) { + $mode = defined('Redis::MULTI') ? Redis::MULTI : 1; + $this->redisClient->multi($mode) + ->rPush($this->redisKey, $record->formatted) + ->ltrim($this->redisKey, -$this->capSize, -1) + ->exec(); + } else { + $redisKey = $this->redisKey; + $capSize = $this->capSize; + $this->redisClient->transaction(function ($tx) use ($record, $redisKey, $capSize) { + $tx->rpush($redisKey, $record->formatted); + $tx->ltrim($redisKey, -$capSize, -1); + }); + } + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php new file mode 100644 index 000000000..fa8e9e9ff --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php @@ -0,0 +1,65 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\LineFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\LogRecord; +use Predis\Client as Predis; +use Redis; + +/** + * Sends the message to a Redis Pub/Sub channel using PUBLISH + * + * usage example: + * + * $log = new Logger('application'); + * $redis = new RedisPubSubHandler(new Predis\Client("tcp://localhost:6379"), "logs", Level::Warning); + * $log->pushHandler($redis); + * + * @author Gaëtan Faugère + */ +class RedisPubSubHandler extends AbstractProcessingHandler +{ + /** @var Predis|Redis */ + private Predis|Redis $redisClient; + private string $channelKey; + + /** + * @param Predis|Redis $redis The redis instance + * @param string $key The channel key to publish records to + */ + public function __construct(Predis|Redis $redis, string $key, int|string|Level $level = Level::Debug, bool $bubble = true) + { + $this->redisClient = $redis; + $this->channelKey = $key; + + parent::__construct($level, $bubble); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->redisClient->publish($this->channelKey, $record->formatted); + } + + /** + * @inheritDoc + */ + protected function getDefaultFormatter(): FormatterInterface + { + return new LineFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php new file mode 100644 index 000000000..1d124723b --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php @@ -0,0 +1,133 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Rollbar\RollbarLogger; +use Throwable; +use Monolog\LogRecord; + +/** + * Sends errors to Rollbar + * + * If the context data contains a `payload` key, that is used as an array + * of payload options to RollbarLogger's log method. + * + * Rollbar's context info will contain the context + extra keys from the log record + * merged, and then on top of that a few keys: + * + * - level (rollbar level name) + * - monolog_level (monolog level name, raw level, as rollbar only has 5 but monolog 8) + * - channel + * - datetime (unix timestamp) + * + * @author Paul Statezny + */ +class RollbarHandler extends AbstractProcessingHandler +{ + protected RollbarLogger $rollbarLogger; + + /** + * Records whether any log records have been added since the last flush of the rollbar notifier + */ + private bool $hasRecords = false; + + protected bool $initialized = false; + + /** + * @param RollbarLogger $rollbarLogger RollbarLogger object constructed with valid token + */ + public function __construct(RollbarLogger $rollbarLogger, int|string|Level $level = Level::Error, bool $bubble = true) + { + $this->rollbarLogger = $rollbarLogger; + + parent::__construct($level, $bubble); + } + + /** + * Translates Monolog log levels to Rollbar levels. + * + * @return 'debug'|'info'|'warning'|'error'|'critical' + */ + protected function toRollbarLevel(Level $level): string + { + return match ($level) { + Level::Debug => 'debug', + Level::Info => 'info', + Level::Notice => 'info', + Level::Warning => 'warning', + Level::Error => 'error', + Level::Critical => 'critical', + Level::Alert => 'critical', + Level::Emergency => 'critical', + }; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + if (!$this->initialized) { + // __destructor() doesn't get called on Fatal errors + register_shutdown_function([$this, 'close']); + $this->initialized = true; + } + + $context = $record->context; + $context = array_merge($context, $record->extra, [ + 'level' => $this->toRollbarLevel($record->level), + 'monolog_level' => $record->level->getName(), + 'channel' => $record->channel, + 'datetime' => $record->datetime->format('U'), + ]); + + if (isset($context['exception']) && $context['exception'] instanceof Throwable) { + $exception = $context['exception']; + unset($context['exception']); + $toLog = $exception; + } else { + $toLog = $record->message; + } + + // @phpstan-ignore-next-line + $this->rollbarLogger->log($context['level'], $toLog, $context); + + $this->hasRecords = true; + } + + public function flush(): void + { + if ($this->hasRecords) { + $this->rollbarLogger->flush(); + $this->hasRecords = false; + } + } + + /** + * @inheritDoc + */ + public function close(): void + { + $this->flush(); + } + + /** + * @inheritDoc + */ + public function reset(): void + { + $this->flush(); + + parent::reset(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php new file mode 100644 index 000000000..86240b44f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php @@ -0,0 +1,217 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use InvalidArgumentException; +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Stores logs to files that are rotated every day and a limited number of files are kept. + * + * This rotation is only intended to be used as a workaround. Using logrotate to + * handle the rotation is strongly encouraged when you can use it. + * + * @author Christophe Coevoet + * @author Jordi Boggiano + */ +class RotatingFileHandler extends StreamHandler +{ + public const FILE_PER_DAY = 'Y-m-d'; + public const FILE_PER_MONTH = 'Y-m'; + public const FILE_PER_YEAR = 'Y'; + + protected string $filename; + protected int $maxFiles; + protected bool|null $mustRotate = null; + protected \DateTimeImmutable $nextRotation; + protected string $filenameFormat; + protected string $dateFormat; + + /** + * @param int $maxFiles The maximal amount of files to keep (0 means unlimited) + * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) + * @param bool $useLocking Try to lock log file before doing any writes + */ + public function __construct(string $filename, int $maxFiles = 0, int|string|Level $level = Level::Debug, bool $bubble = true, ?int $filePermission = null, bool $useLocking = false, string $dateFormat = self::FILE_PER_DAY, string $filenameFormat = '{filename}-{date}') + { + $this->filename = Utils::canonicalizePath($filename); + $this->maxFiles = $maxFiles; + $this->setFilenameFormat($filenameFormat, $dateFormat); + $this->nextRotation = $this->getNextRotation(); + + parent::__construct($this->getTimedFilename(), $level, $bubble, $filePermission, $useLocking); + } + + /** + * @inheritDoc + */ + public function close(): void + { + parent::close(); + + if (true === $this->mustRotate) { + $this->rotate(); + } + } + + /** + * @inheritDoc + */ + public function reset(): void + { + parent::reset(); + + if (true === $this->mustRotate) { + $this->rotate(); + } + } + + /** + * @return $this + */ + public function setFilenameFormat(string $filenameFormat, string $dateFormat): self + { + $this->setDateFormat($dateFormat); + if (substr_count($filenameFormat, '{date}') === 0) { + throw new InvalidArgumentException( + 'Invalid filename format - format must contain at least `{date}`, because otherwise rotating is impossible.' + ); + } + $this->filenameFormat = $filenameFormat; + $this->url = $this->getTimedFilename(); + $this->close(); + + return $this; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + // on the first record written, if the log is new, we should rotate (once per day) + if (null === $this->mustRotate) { + $this->mustRotate = null === $this->url || !file_exists($this->url); + } + + if ($this->nextRotation <= $record->datetime) { + $this->mustRotate = true; + $this->close(); + } + + parent::write($record); + } + + /** + * Rotates the files. + */ + protected function rotate(): void + { + // update filename + $this->url = $this->getTimedFilename(); + $this->nextRotation = $this->getNextRotation(); + + // skip GC of old logs if files are unlimited + if (0 === $this->maxFiles) { + return; + } + + $logFiles = glob($this->getGlobPattern()); + if (false === $logFiles) { + // failed to glob + return; + } + + if ($this->maxFiles >= count($logFiles)) { + // no files to remove + return; + } + + // Sorting the files by name to remove the older ones + usort($logFiles, function ($a, $b) { + return strcmp($b, $a); + }); + + foreach (array_slice($logFiles, $this->maxFiles) as $file) { + if (is_writable($file)) { + // suppress errors here as unlink() might fail if two processes + // are cleaning up/rotating at the same time + set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool { + return false; + }); + unlink($file); + restore_error_handler(); + } + } + + $this->mustRotate = false; + } + + protected function getTimedFilename(): string + { + $fileInfo = pathinfo($this->filename); + $timedFilename = str_replace( + ['{filename}', '{date}'], + [$fileInfo['filename'], date($this->dateFormat)], + ($fileInfo['dirname'] ?? '') . '/' . $this->filenameFormat + ); + + if (isset($fileInfo['extension'])) { + $timedFilename .= '.'.$fileInfo['extension']; + } + + return $timedFilename; + } + + protected function getGlobPattern(): string + { + $fileInfo = pathinfo($this->filename); + $glob = str_replace( + ['{filename}', '{date}'], + [$fileInfo['filename'], str_replace( + ['Y', 'y', 'm', 'd'], + ['[0-9][0-9][0-9][0-9]', '[0-9][0-9]', '[0-9][0-9]', '[0-9][0-9]'], + $this->dateFormat) + ], + ($fileInfo['dirname'] ?? '') . '/' . $this->filenameFormat + ); + if (isset($fileInfo['extension'])) { + $glob .= '.'.$fileInfo['extension']; + } + + return $glob; + } + + protected function setDateFormat(string $dateFormat): void + { + if (0 === preg_match('{^[Yy](([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) { + throw new InvalidArgumentException( + 'Invalid date format - format must be one of '. + 'RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), RotatingFileHandler::FILE_PER_MONTH ("Y-m") '. + 'or RotatingFileHandler::FILE_PER_YEAR ("Y"), or you can set one of the '. + 'date formats using slashes, underscores and/or dots instead of dashes.' + ); + } + $this->dateFormat = $dateFormat; + } + + protected function getNextRotation(): \DateTimeImmutable + { + return match (str_replace(['/','_','.'], '-', $this->dateFormat)) { + self::FILE_PER_MONTH => (new \DateTimeImmutable('first day of next month'))->setTime(0, 0, 0), + self::FILE_PER_YEAR => (new \DateTimeImmutable('first day of January next year'))->setTime(0, 0, 0), + default => (new \DateTimeImmutable('tomorrow'))->setTime(0, 0, 0), + }; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php new file mode 100644 index 000000000..511ec5854 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php @@ -0,0 +1,121 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Closure; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Sampling handler + * + * A sampled event stream can be useful for logging high frequency events in + * a production environment where you only need an idea of what is happening + * and are not concerned with capturing every occurrence. Since the decision to + * handle or not handle a particular event is determined randomly, the + * resulting sampled log is not guaranteed to contain 1/N of the events that + * occurred in the application, but based on the Law of large numbers, it will + * tend to be close to this ratio with a large number of attempts. + * + * @author Bryan Davis + * @author Kunal Mehta + */ +class SamplingHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface +{ + use ProcessableHandlerTrait; + + /** + * Handler or factory Closure($record, $this) + * + * @phpstan-var (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface + */ + protected Closure|HandlerInterface $handler; + + protected int $factor; + + /** + * @phpstan-param (Closure(LogRecord|null, HandlerInterface): HandlerInterface)|HandlerInterface $handler + * + * @param Closure|HandlerInterface $handler Handler or factory Closure($record|null, $samplingHandler). + * @param int $factor Sample factor (e.g. 10 means every ~10th record is sampled) + */ + public function __construct(Closure|HandlerInterface $handler, int $factor) + { + parent::__construct(); + $this->handler = $handler; + $this->factor = $factor; + } + + public function isHandling(LogRecord $record): bool + { + return $this->getHandler($record)->isHandling($record); + } + + public function handle(LogRecord $record): bool + { + if ($this->isHandling($record) && mt_rand(1, $this->factor) === 1) { + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + $this->getHandler($record)->handle($record); + } + + return false === $this->bubble; + } + + /** + * Return the nested handler + * + * If the handler was provided as a factory, this will trigger the handler's instantiation. + */ + public function getHandler(LogRecord $record = null): HandlerInterface + { + if (!$this->handler instanceof HandlerInterface) { + $handler = ($this->handler)($record, $this); + if (!$handler instanceof HandlerInterface) { + throw new \RuntimeException("The factory Closure should return a HandlerInterface"); + } + $this->handler = $handler; + } + + return $this->handler; + } + + /** + * @inheritDoc + */ + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + $handler = $this->getHandler(); + if ($handler instanceof FormattableHandlerInterface) { + $handler->setFormatter($formatter); + + return $this; + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not support formatters.'); + } + + /** + * @inheritDoc + */ + public function getFormatter(): FormatterInterface + { + $handler = $this->getHandler(); + if ($handler instanceof FormattableHandlerInterface) { + return $handler->getFormatter(); + } + + throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not support formatters.'); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php new file mode 100644 index 000000000..b8f574bb4 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php @@ -0,0 +1,100 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; + +/** + * SendGridrHandler uses the SendGrid API v2 function to send Log emails, more information in https://sendgrid.com/docs/API_Reference/Web_API/mail.html + * + * @author Ricardo Fontanelli + */ +class SendGridHandler extends MailHandler +{ + /** + * The SendGrid API User + */ + protected string $apiUser; + + /** + * The SendGrid API Key + */ + protected string $apiKey; + + /** + * The email addresses to which the message will be sent + */ + protected string $from; + + /** + * The email addresses to which the message will be sent + * @var string[] + */ + protected array $to; + + /** + * The subject of the email + */ + protected string $subject; + + /** + * @param string $apiUser The SendGrid API User + * @param string $apiKey The SendGrid API Key + * @param string $from The sender of the email + * @param string|string[] $to The recipients of the email + * @param string $subject The subject of the mail + * + * @throws MissingExtensionException If the curl extension is missing + */ + public function __construct(string $apiUser, string $apiKey, string $from, string|array $to, string $subject, int|string|Level $level = Level::Error, bool $bubble = true) + { + if (!extension_loaded('curl')) { + throw new MissingExtensionException('The curl extension is needed to use the SendGridHandler'); + } + + parent::__construct($level, $bubble); + $this->apiUser = $apiUser; + $this->apiKey = $apiKey; + $this->from = $from; + $this->to = (array) $to; + $this->subject = $subject; + } + + /** + * @inheritDoc + */ + protected function send(string $content, array $records): void + { + $message = []; + $message['api_user'] = $this->apiUser; + $message['api_key'] = $this->apiKey; + $message['from'] = $this->from; + foreach ($this->to as $recipient) { + $message['to[]'] = $recipient; + } + $message['subject'] = $this->subject; + $message['date'] = date('r'); + + if ($this->isHtmlBody($content)) { + $message['html'] = $content; + } else { + $message['text'] = $content; + } + + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'https://api.sendgrid.com/api/mail.send.json'); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($message)); + Curl\Util::execute($ch, 2); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php b/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php new file mode 100644 index 000000000..147d8f80b --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php @@ -0,0 +1,381 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler\Slack; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\Formatter\NormalizerFormatter; +use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; + +/** + * Slack record utility helping to log to Slack webhooks or API. + * + * @author Greg Kedzierski + * @author Haralan Dobrev + * @see https://api.slack.com/incoming-webhooks + * @see https://api.slack.com/docs/message-attachments + */ +class SlackRecord +{ + public const COLOR_DANGER = 'danger'; + + public const COLOR_WARNING = 'warning'; + + public const COLOR_GOOD = 'good'; + + public const COLOR_DEFAULT = '#e3e4e6'; + + /** + * Slack channel (encoded ID or name) + */ + private string|null $channel; + + /** + * Name of a bot + */ + private string|null $username; + + /** + * User icon e.g. 'ghost', 'http://example.com/user.png' + */ + private string|null $userIcon; + + /** + * Whether the message should be added to Slack as attachment (plain text otherwise) + */ + private bool $useAttachment; + + /** + * Whether the the context/extra messages added to Slack as attachments are in a short style + */ + private bool $useShortAttachment; + + /** + * Whether the attachment should include context and extra data + */ + private bool $includeContextAndExtra; + + /** + * Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] + * @var string[] + */ + private array $excludeFields; + + private FormatterInterface|null $formatter; + + private NormalizerFormatter $normalizerFormatter; + + /** + * @param string[] $excludeFields + */ + public function __construct( + ?string $channel = null, + ?string $username = null, + bool $useAttachment = true, + ?string $userIcon = null, + bool $useShortAttachment = false, + bool $includeContextAndExtra = false, + array $excludeFields = [], + FormatterInterface $formatter = null + ) { + $this + ->setChannel($channel) + ->setUsername($username) + ->useAttachment($useAttachment) + ->setUserIcon($userIcon) + ->useShortAttachment($useShortAttachment) + ->includeContextAndExtra($includeContextAndExtra) + ->excludeFields($excludeFields) + ->setFormatter($formatter); + + if ($this->includeContextAndExtra) { + $this->normalizerFormatter = new NormalizerFormatter(); + } + } + + /** + * Returns required data in format that Slack + * is expecting. + * + * @phpstan-return mixed[] + */ + public function getSlackData(LogRecord $record): array + { + $dataArray = []; + + if ($this->username !== null) { + $dataArray['username'] = $this->username; + } + + if ($this->channel !== null) { + $dataArray['channel'] = $this->channel; + } + + if ($this->formatter !== null && !$this->useAttachment) { + $message = $this->formatter->format($record); + } else { + $message = $record->message; + } + + $recordData = $this->removeExcludedFields($record); + + if ($this->useAttachment) { + $attachment = [ + 'fallback' => $message, + 'text' => $message, + 'color' => $this->getAttachmentColor($record->level), + 'fields' => [], + 'mrkdwn_in' => ['fields'], + 'ts' => $recordData['datetime']->getTimestamp(), + 'footer' => $this->username, + 'footer_icon' => $this->userIcon, + ]; + + if ($this->useShortAttachment) { + $attachment['title'] = $recordData['level_name']; + } else { + $attachment['title'] = 'Message'; + $attachment['fields'][] = $this->generateAttachmentField('Level', $recordData['level_name']); + } + + if ($this->includeContextAndExtra) { + foreach (['extra', 'context'] as $key) { + if (!isset($recordData[$key]) || \count($recordData[$key]) === 0) { + continue; + } + + if ($this->useShortAttachment) { + $attachment['fields'][] = $this->generateAttachmentField( + $key, + $recordData[$key] + ); + } else { + // Add all extra fields as individual fields in attachment + $attachment['fields'] = array_merge( + $attachment['fields'], + $this->generateAttachmentFields($recordData[$key]) + ); + } + } + } + + $dataArray['attachments'] = [$attachment]; + } else { + $dataArray['text'] = $message; + } + + if ($this->userIcon !== null) { + if (false !== ($iconUrl = filter_var($this->userIcon, FILTER_VALIDATE_URL))) { + $dataArray['icon_url'] = $iconUrl; + } else { + $dataArray['icon_emoji'] = ":{$this->userIcon}:"; + } + } + + return $dataArray; + } + + /** + * Returns a Slack message attachment color associated with + * provided level. + */ + public function getAttachmentColor(Level $level): string + { + return match ($level) { + Level::Error, Level::Critical, Level::Alert, Level::Emergency => static::COLOR_DANGER, + Level::Warning => static::COLOR_WARNING, + Level::Info, Level::Notice => static::COLOR_GOOD, + Level::Debug => static::COLOR_DEFAULT + }; + } + + /** + * Stringifies an array of key/value pairs to be used in attachment fields + * + * @param mixed[] $fields + */ + public function stringify(array $fields): string + { + /** @var array $normalized */ + $normalized = $this->normalizerFormatter->normalizeValue($fields); + + $hasSecondDimension = \count(array_filter($normalized, 'is_array')) > 0; + $hasOnlyNonNumericKeys = \count(array_filter(array_keys($normalized), 'is_numeric')) === 0; + + return $hasSecondDimension || $hasOnlyNonNumericKeys + ? Utils::jsonEncode($normalized, JSON_PRETTY_PRINT|Utils::DEFAULT_JSON_FLAGS) + : Utils::jsonEncode($normalized, Utils::DEFAULT_JSON_FLAGS); + } + + /** + * Channel used by the bot when posting + * + * @param ?string $channel + * @return $this + */ + public function setChannel(?string $channel = null): self + { + $this->channel = $channel; + + return $this; + } + + /** + * Username used by the bot when posting + * + * @param ?string $username + * @return $this + */ + public function setUsername(?string $username = null): self + { + $this->username = $username; + + return $this; + } + + /** + * @return $this + */ + public function useAttachment(bool $useAttachment = true): self + { + $this->useAttachment = $useAttachment; + + return $this; + } + + /** + * @return $this + */ + public function setUserIcon(?string $userIcon = null): self + { + $this->userIcon = $userIcon; + + if (\is_string($userIcon)) { + $this->userIcon = trim($userIcon, ':'); + } + + return $this; + } + + /** + * @return $this + */ + public function useShortAttachment(bool $useShortAttachment = false): self + { + $this->useShortAttachment = $useShortAttachment; + + return $this; + } + + /** + * @return $this + */ + public function includeContextAndExtra(bool $includeContextAndExtra = false): self + { + $this->includeContextAndExtra = $includeContextAndExtra; + + if ($this->includeContextAndExtra) { + $this->normalizerFormatter = new NormalizerFormatter(); + } + + return $this; + } + + /** + * @param string[] $excludeFields + * @return $this + */ + public function excludeFields(array $excludeFields = []): self + { + $this->excludeFields = $excludeFields; + + return $this; + } + + /** + * @return $this + */ + public function setFormatter(?FormatterInterface $formatter = null): self + { + $this->formatter = $formatter; + + return $this; + } + + /** + * Generates attachment field + * + * @param string|mixed[] $value + * + * @return array{title: string, value: string, short: false} + */ + private function generateAttachmentField(string $title, $value): array + { + $value = is_array($value) + ? sprintf('```%s```', substr($this->stringify($value), 0, 1990)) + : $value; + + return [ + 'title' => ucfirst($title), + 'value' => $value, + 'short' => false, + ]; + } + + /** + * Generates a collection of attachment fields from array + * + * @param mixed[] $data + * + * @return array + */ + private function generateAttachmentFields(array $data): array + { + /** @var array $normalized */ + $normalized = $this->normalizerFormatter->normalizeValue($data); + + $fields = []; + foreach ($normalized as $key => $value) { + $fields[] = $this->generateAttachmentField((string) $key, $value); + } + + return $fields; + } + + /** + * Get a copy of record with fields excluded according to $this->excludeFields + * + * @return mixed[] + */ + private function removeExcludedFields(LogRecord $record): array + { + $recordData = $record->toArray(); + foreach ($this->excludeFields as $field) { + $keys = explode('.', $field); + $node = &$recordData; + $lastKey = end($keys); + foreach ($keys as $key) { + if (!isset($node[$key])) { + break; + } + if ($lastKey === $key) { + unset($node[$key]); + break; + } + $node = &$node[$key]; + } + } + + return $recordData; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php new file mode 100644 index 000000000..1d9a17712 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php @@ -0,0 +1,267 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\Utils; +use Monolog\Handler\Slack\SlackRecord; +use Monolog\LogRecord; + +/** + * Sends notifications through Slack API + * + * @author Greg Kedzierski + * @see https://api.slack.com/ + */ +class SlackHandler extends SocketHandler +{ + /** + * Slack API token + */ + private string $token; + + /** + * Instance of the SlackRecord util class preparing data for Slack API. + */ + private SlackRecord $slackRecord; + + /** + * @param string $token Slack API token + * @param string $channel Slack channel (encoded ID or name) + * @param string|null $username Name of a bot + * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise) + * @param string|null $iconEmoji The emoji name to use (or null) + * @param bool $useShortAttachment Whether the context/extra messages added to Slack as attachments are in a short style + * @param bool $includeContextAndExtra Whether the attachment should include context and extra data + * @param string[] $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] + * @throws MissingExtensionException If no OpenSSL PHP extension configured + */ + public function __construct( + string $token, + string $channel, + ?string $username = null, + bool $useAttachment = true, + ?string $iconEmoji = null, + $level = Level::Critical, + bool $bubble = true, + bool $useShortAttachment = false, + bool $includeContextAndExtra = false, + array $excludeFields = [], + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + if (!extension_loaded('openssl')) { + throw new MissingExtensionException('The OpenSSL PHP extension is required to use the SlackHandler'); + } + + parent::__construct( + 'ssl://slack.com:443', + $level, + $bubble, + $persistent, + $timeout, + $writingTimeout, + $connectionTimeout, + $chunkSize + ); + + $this->slackRecord = new SlackRecord( + $channel, + $username, + $useAttachment, + $iconEmoji, + $useShortAttachment, + $includeContextAndExtra, + $excludeFields + ); + + $this->token = $token; + } + + public function getSlackRecord(): SlackRecord + { + return $this->slackRecord; + } + + public function getToken(): string + { + return $this->token; + } + + /** + * @inheritDoc + */ + protected function generateDataStream(LogRecord $record): string + { + $content = $this->buildContent($record); + + return $this->buildHeader($content) . $content; + } + + /** + * Builds the body of API call + */ + private function buildContent(LogRecord $record): string + { + $dataArray = $this->prepareContentData($record); + + return http_build_query($dataArray); + } + + /** + * @return string[] + */ + protected function prepareContentData(LogRecord $record): array + { + $dataArray = $this->slackRecord->getSlackData($record); + $dataArray['token'] = $this->token; + + if (isset($dataArray['attachments']) && is_array($dataArray['attachments']) && \count($dataArray['attachments']) > 0) { + $dataArray['attachments'] = Utils::jsonEncode($dataArray['attachments']); + } + + return $dataArray; + } + + /** + * Builds the header of the API Call + */ + private function buildHeader(string $content): string + { + $header = "POST /api/chat.postMessage HTTP/1.1\r\n"; + $header .= "Host: slack.com\r\n"; + $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; + $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "\r\n"; + + return $header; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + parent::write($record); + $this->finalizeWrite(); + } + + /** + * Finalizes the request by reading some bytes and then closing the socket + * + * If we do not read some but close the socket too early, slack sometimes + * drops the request entirely. + */ + protected function finalizeWrite(): void + { + $res = $this->getResource(); + if (is_resource($res)) { + @fread($res, 2048); + } + $this->closeSocket(); + } + + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + parent::setFormatter($formatter); + $this->slackRecord->setFormatter($formatter); + + return $this; + } + + public function getFormatter(): FormatterInterface + { + $formatter = parent::getFormatter(); + $this->slackRecord->setFormatter($formatter); + + return $formatter; + } + + /** + * Channel used by the bot when posting + * + * @return $this + */ + public function setChannel(string $channel): self + { + $this->slackRecord->setChannel($channel); + + return $this; + } + + /** + * Username used by the bot when posting + * + * @return $this + */ + public function setUsername(string $username): self + { + $this->slackRecord->setUsername($username); + + return $this; + } + + /** + * @return $this + */ + public function useAttachment(bool $useAttachment): self + { + $this->slackRecord->useAttachment($useAttachment); + + return $this; + } + + /** + * @return $this + */ + public function setIconEmoji(string $iconEmoji): self + { + $this->slackRecord->setUserIcon($iconEmoji); + + return $this; + } + + /** + * @return $this + */ + public function useShortAttachment(bool $useShortAttachment): self + { + $this->slackRecord->useShortAttachment($useShortAttachment); + + return $this; + } + + /** + * @return $this + */ + public function includeContextAndExtra(bool $includeContextAndExtra): self + { + $this->slackRecord->includeContextAndExtra($includeContextAndExtra); + + return $this; + } + + /** + * @param string[] $excludeFields + * @return $this + */ + public function excludeFields(array $excludeFields): self + { + $this->slackRecord->excludeFields($excludeFields); + + return $this; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php new file mode 100644 index 000000000..6466ba3af --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php @@ -0,0 +1,131 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Level; +use Monolog\Utils; +use Monolog\Handler\Slack\SlackRecord; +use Monolog\LogRecord; + +/** + * Sends notifications through Slack Webhooks + * + * @author Haralan Dobrev + * @see https://api.slack.com/incoming-webhooks + */ +class SlackWebhookHandler extends AbstractProcessingHandler +{ + /** + * Slack Webhook token + */ + private string $webhookUrl; + + /** + * Instance of the SlackRecord util class preparing data for Slack API. + */ + private SlackRecord $slackRecord; + + /** + * @param string $webhookUrl Slack Webhook URL + * @param string|null $channel Slack channel (encoded ID or name) + * @param string|null $username Name of a bot + * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise) + * @param string|null $iconEmoji The emoji name to use (or null) + * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style + * @param bool $includeContextAndExtra Whether the attachment should include context and extra data + * @param string[] $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] + * + * @throws MissingExtensionException If the curl extension is missing + */ + public function __construct( + string $webhookUrl, + ?string $channel = null, + ?string $username = null, + bool $useAttachment = true, + ?string $iconEmoji = null, + bool $useShortAttachment = false, + bool $includeContextAndExtra = false, + $level = Level::Critical, + bool $bubble = true, + array $excludeFields = [] + ) { + if (!extension_loaded('curl')) { + throw new MissingExtensionException('The curl extension is needed to use the SlackWebhookHandler'); + } + + parent::__construct($level, $bubble); + + $this->webhookUrl = $webhookUrl; + + $this->slackRecord = new SlackRecord( + $channel, + $username, + $useAttachment, + $iconEmoji, + $useShortAttachment, + $includeContextAndExtra, + $excludeFields + ); + } + + public function getSlackRecord(): SlackRecord + { + return $this->slackRecord; + } + + public function getWebhookUrl(): string + { + return $this->webhookUrl; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $postData = $this->slackRecord->getSlackData($record); + $postString = Utils::jsonEncode($postData); + + $ch = curl_init(); + $options = [ + CURLOPT_URL => $this->webhookUrl, + CURLOPT_POST => true, + CURLOPT_RETURNTRANSFER => true, + CURLOPT_HTTPHEADER => ['Content-type: application/json'], + CURLOPT_POSTFIELDS => $postString, + ]; + if (defined('CURLOPT_SAFE_UPLOAD')) { + $options[CURLOPT_SAFE_UPLOAD] = true; + } + + curl_setopt_array($ch, $options); + + Curl\Util::execute($ch); + } + + public function setFormatter(FormatterInterface $formatter): HandlerInterface + { + parent::setFormatter($formatter); + $this->slackRecord->setFormatter($formatter); + + return $this; + } + + public function getFormatter(): FormatterInterface + { + $formatter = parent::getFormatter(); + $this->slackRecord->setFormatter($formatter); + + return $formatter; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php new file mode 100644 index 000000000..63f437f3f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php @@ -0,0 +1,436 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Stores to any socket - uses fsockopen() or pfsockopen(). + * + * @author Pablo de Leon Belloc + * @see http://php.net/manual/en/function.fsockopen.php + */ +class SocketHandler extends AbstractProcessingHandler +{ + private string $connectionString; + private float $connectionTimeout; + /** @var resource|null */ + private $resource; + private float $timeout; + private float $writingTimeout; + private int|null $lastSentBytes = null; + private int|null $chunkSize; + private bool $persistent; + private int|null $errno = null; + private string|null $errstr = null; + private float|null $lastWritingAt = null; + + /** + * @param string $connectionString Socket connection string + * @param bool $persistent Flag to enable/disable persistent connections + * @param float $timeout Socket timeout to wait until the request is being aborted + * @param float $writingTimeout Socket timeout to wait until the request should've been sent/written + * @param float|null $connectionTimeout Socket connect timeout to wait until the connection should've been + * established + * @param int|null $chunkSize Sets the chunk size. Only has effect during connection in the writing cycle + * + * @throws \InvalidArgumentException If an invalid timeout value (less than 0) is passed. + */ + public function __construct( + string $connectionString, + $level = Level::Debug, + bool $bubble = true, + bool $persistent = false, + float $timeout = 0.0, + float $writingTimeout = 10.0, + ?float $connectionTimeout = null, + ?int $chunkSize = null + ) { + parent::__construct($level, $bubble); + $this->connectionString = $connectionString; + + if ($connectionTimeout !== null) { + $this->validateTimeout($connectionTimeout); + } + + $this->connectionTimeout = $connectionTimeout ?? (float) ini_get('default_socket_timeout'); + $this->persistent = $persistent; + $this->validateTimeout($timeout); + $this->timeout = $timeout; + $this->validateTimeout($writingTimeout); + $this->writingTimeout = $writingTimeout; + $this->chunkSize = $chunkSize; + } + + /** + * Connect (if necessary) and write to the socket + * + * @inheritDoc + * + * @throws \UnexpectedValueException + * @throws \RuntimeException + */ + protected function write(LogRecord $record): void + { + $this->connectIfNotConnected(); + $data = $this->generateDataStream($record); + $this->writeToSocket($data); + } + + /** + * We will not close a PersistentSocket instance so it can be reused in other requests. + */ + public function close(): void + { + if (!$this->isPersistent()) { + $this->closeSocket(); + } + } + + /** + * Close socket, if open + */ + public function closeSocket(): void + { + if (is_resource($this->resource)) { + fclose($this->resource); + $this->resource = null; + } + } + + /** + * Set socket connection to be persistent. It only has effect before the connection is initiated. + * + * @return $this + */ + public function setPersistent(bool $persistent): self + { + $this->persistent = $persistent; + + return $this; + } + + /** + * Set connection timeout. Only has effect before we connect. + * + * @see http://php.net/manual/en/function.fsockopen.php + * @return $this + */ + public function setConnectionTimeout(float $seconds): self + { + $this->validateTimeout($seconds); + $this->connectionTimeout = $seconds; + + return $this; + } + + /** + * Set write timeout. Only has effect before we connect. + * + * @see http://php.net/manual/en/function.stream-set-timeout.php + * @return $this + */ + public function setTimeout(float $seconds): self + { + $this->validateTimeout($seconds); + $this->timeout = $seconds; + + return $this; + } + + /** + * Set writing timeout. Only has effect during connection in the writing cycle. + * + * @param float $seconds 0 for no timeout + * @return $this + */ + public function setWritingTimeout(float $seconds): self + { + $this->validateTimeout($seconds); + $this->writingTimeout = $seconds; + + return $this; + } + + /** + * Set chunk size. Only has effect during connection in the writing cycle. + * + * @return $this + */ + public function setChunkSize(int $bytes): self + { + $this->chunkSize = $bytes; + + return $this; + } + + /** + * Get current connection string + */ + public function getConnectionString(): string + { + return $this->connectionString; + } + + /** + * Get persistent setting + */ + public function isPersistent(): bool + { + return $this->persistent; + } + + /** + * Get current connection timeout setting + */ + public function getConnectionTimeout(): float + { + return $this->connectionTimeout; + } + + /** + * Get current in-transfer timeout + */ + public function getTimeout(): float + { + return $this->timeout; + } + + /** + * Get current local writing timeout + */ + public function getWritingTimeout(): float + { + return $this->writingTimeout; + } + + /** + * Get current chunk size + */ + public function getChunkSize(): ?int + { + return $this->chunkSize; + } + + /** + * Check to see if the socket is currently available. + * + * UDP might appear to be connected but might fail when writing. See http://php.net/fsockopen for details. + */ + public function isConnected(): bool + { + return is_resource($this->resource) + && !feof($this->resource); // on TCP - other party can close connection. + } + + /** + * Wrapper to allow mocking + * + * @return resource|false + */ + protected function pfsockopen() + { + return @pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); + } + + /** + * Wrapper to allow mocking + * + * @return resource|false + */ + protected function fsockopen() + { + return @fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); + } + + /** + * Wrapper to allow mocking + * + * @see http://php.net/manual/en/function.stream-set-timeout.php + */ + protected function streamSetTimeout(): bool + { + $seconds = floor($this->timeout); + $microseconds = round(($this->timeout - $seconds) * 1e6); + + if (!is_resource($this->resource)) { + throw new \LogicException('streamSetTimeout called but $this->resource is not a resource'); + } + + return stream_set_timeout($this->resource, (int) $seconds, (int) $microseconds); + } + + /** + * Wrapper to allow mocking + * + * @see http://php.net/manual/en/function.stream-set-chunk-size.php + * + * @return int|false + */ + protected function streamSetChunkSize(): int|bool + { + if (!is_resource($this->resource)) { + throw new \LogicException('streamSetChunkSize called but $this->resource is not a resource'); + } + + if (null === $this->chunkSize) { + throw new \LogicException('streamSetChunkSize called but $this->chunkSize is not set'); + } + + return stream_set_chunk_size($this->resource, $this->chunkSize); + } + + /** + * Wrapper to allow mocking + * + * @return int|false + */ + protected function fwrite(string $data): int|bool + { + if (!is_resource($this->resource)) { + throw new \LogicException('fwrite called but $this->resource is not a resource'); + } + + return @fwrite($this->resource, $data); + } + + /** + * Wrapper to allow mocking + * + * @return mixed[]|bool + */ + protected function streamGetMetadata(): array|bool + { + if (!is_resource($this->resource)) { + throw new \LogicException('streamGetMetadata called but $this->resource is not a resource'); + } + + return stream_get_meta_data($this->resource); + } + + private function validateTimeout(float $value): void + { + if ($value < 0) { + throw new \InvalidArgumentException("Timeout must be 0 or a positive float (got $value)"); + } + } + + private function connectIfNotConnected(): void + { + if ($this->isConnected()) { + return; + } + $this->connect(); + } + + protected function generateDataStream(LogRecord $record): string + { + return (string) $record->formatted; + } + + /** + * @return resource|null + */ + protected function getResource() + { + return $this->resource; + } + + private function connect(): void + { + $this->createSocketResource(); + $this->setSocketTimeout(); + $this->setStreamChunkSize(); + } + + private function createSocketResource(): void + { + if ($this->isPersistent()) { + $resource = $this->pfsockopen(); + } else { + $resource = $this->fsockopen(); + } + if (is_bool($resource)) { + throw new \UnexpectedValueException("Failed connecting to $this->connectionString ($this->errno: $this->errstr)"); + } + $this->resource = $resource; + } + + private function setSocketTimeout(): void + { + if (!$this->streamSetTimeout()) { + throw new \UnexpectedValueException("Failed setting timeout with stream_set_timeout()"); + } + } + + private function setStreamChunkSize(): void + { + if (null !== $this->chunkSize && false === $this->streamSetChunkSize()) { + throw new \UnexpectedValueException("Failed setting chunk size with stream_set_chunk_size()"); + } + } + + private function writeToSocket(string $data): void + { + $length = strlen($data); + $sent = 0; + $this->lastSentBytes = $sent; + while ($this->isConnected() && $sent < $length) { + if (0 == $sent) { + $chunk = $this->fwrite($data); + } else { + $chunk = $this->fwrite(substr($data, $sent)); + } + if ($chunk === false) { + throw new \RuntimeException("Could not write to socket"); + } + $sent += $chunk; + $socketInfo = $this->streamGetMetadata(); + if (is_array($socketInfo) && (bool) $socketInfo['timed_out']) { + throw new \RuntimeException("Write timed-out"); + } + + if ($this->writingIsTimedOut($sent)) { + throw new \RuntimeException("Write timed-out, no data sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent $sent of $length)"); + } + } + if (!$this->isConnected() && $sent < $length) { + throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent $sent of $length)"); + } + } + + private function writingIsTimedOut(int $sent): bool + { + // convert to ms + if (0.0 == $this->writingTimeout) { + return false; + } + + if ($sent !== $this->lastSentBytes) { + $this->lastWritingAt = microtime(true); + $this->lastSentBytes = $sent; + + return false; + } else { + usleep(100); + } + + if ((microtime(true) - (float) $this->lastWritingAt) >= $this->writingTimeout) { + $this->closeSocket(); + + return true; + } + + return false; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php new file mode 100644 index 000000000..b4512a601 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php @@ -0,0 +1,61 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Aws\Sqs\SqsClient; +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Writes to any sqs queue. + * + * @author Martijn van Calker + */ +class SqsHandler extends AbstractProcessingHandler +{ + /** 256 KB in bytes - maximum message size in SQS */ + protected const MAX_MESSAGE_SIZE = 262144; + /** 100 KB in bytes - head message size for new error log */ + protected const HEAD_MESSAGE_SIZE = 102400; + + private SqsClient $client; + private string $queueUrl; + + public function __construct(SqsClient $sqsClient, string $queueUrl, int|string|Level $level = Level::Debug, bool $bubble = true) + { + parent::__construct($level, $bubble); + + $this->client = $sqsClient; + $this->queueUrl = $queueUrl; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + if (!isset($record->formatted) || 'string' !== gettype($record->formatted)) { + throw new \InvalidArgumentException('SqsHandler accepts only formatted records as a string' . Utils::getRecordMessageForException($record)); + } + + $messageBody = $record->formatted; + if (strlen($messageBody) >= static::MAX_MESSAGE_SIZE) { + $messageBody = Utils::substr($messageBody, 0, static::HEAD_MESSAGE_SIZE); + } + + $this->client->sendMessage([ + 'QueueUrl' => $this->queueUrl, + 'MessageBody' => $messageBody, + ]); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php new file mode 100644 index 000000000..a87577c8d --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php @@ -0,0 +1,205 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Stores to any stream resource + * + * Can be used to store into php://stderr, remote and local files, etc. + * + * @author Jordi Boggiano + */ +class StreamHandler extends AbstractProcessingHandler +{ + protected const MAX_CHUNK_SIZE = 2147483647; + /** 10MB */ + protected const DEFAULT_CHUNK_SIZE = 10 * 1024 * 1024; + protected int $streamChunkSize; + /** @var resource|null */ + protected $stream; + protected string|null $url = null; + private string|null $errorMessage = null; + protected int|null $filePermission; + protected bool $useLocking; + /** @var true|null */ + private bool|null $dirCreated = null; + + /** + * @param resource|string $stream If a missing path can't be created, an UnexpectedValueException will be thrown on first write + * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) + * @param bool $useLocking Try to lock log file before doing any writes + * + * @throws \InvalidArgumentException If stream is not a resource or string + */ + public function __construct($stream, int|string|Level $level = Level::Debug, bool $bubble = true, ?int $filePermission = null, bool $useLocking = false) + { + parent::__construct($level, $bubble); + + if (($phpMemoryLimit = Utils::expandIniShorthandBytes(ini_get('memory_limit'))) !== false) { + if ($phpMemoryLimit > 0) { + // use max 10% of allowed memory for the chunk size, and at least 100KB + $this->streamChunkSize = min(static::MAX_CHUNK_SIZE, max((int) ($phpMemoryLimit / 10), 100 * 1024)); + } else { + // memory is unlimited, set to the default 10MB + $this->streamChunkSize = static::DEFAULT_CHUNK_SIZE; + } + } else { + // no memory limit information, set to the default 10MB + $this->streamChunkSize = static::DEFAULT_CHUNK_SIZE; + } + + if (is_resource($stream)) { + $this->stream = $stream; + + stream_set_chunk_size($this->stream, $this->streamChunkSize); + } elseif (is_string($stream)) { + $this->url = Utils::canonicalizePath($stream); + } else { + throw new \InvalidArgumentException('A stream must either be a resource or a string.'); + } + + $this->filePermission = $filePermission; + $this->useLocking = $useLocking; + } + + /** + * @inheritDoc + */ + public function close(): void + { + if (null !== $this->url && is_resource($this->stream)) { + fclose($this->stream); + } + $this->stream = null; + $this->dirCreated = null; + } + + /** + * Return the currently active stream if it is open + * + * @return resource|null + */ + public function getStream() + { + return $this->stream; + } + + /** + * Return the stream URL if it was configured with a URL and not an active resource + */ + public function getUrl(): ?string + { + return $this->url; + } + + public function getStreamChunkSize(): int + { + return $this->streamChunkSize; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + if (!is_resource($this->stream)) { + $url = $this->url; + if (null === $url || '' === $url) { + throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().' . Utils::getRecordMessageForException($record)); + } + $this->createDir($url); + $this->errorMessage = null; + set_error_handler([$this, 'customErrorHandler']); + try { + $stream = fopen($url, 'a'); + if ($this->filePermission !== null) { + @chmod($url, $this->filePermission); + } + } finally { + restore_error_handler(); + } + if (!is_resource($stream)) { + $this->stream = null; + + throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $url) . Utils::getRecordMessageForException($record)); + } + stream_set_chunk_size($stream, $this->streamChunkSize); + $this->stream = $stream; + } + + $stream = $this->stream; + if ($this->useLocking) { + // ignoring errors here, there's not much we can do about them + flock($stream, LOCK_EX); + } + + $this->streamWrite($stream, $record); + + if ($this->useLocking) { + flock($stream, LOCK_UN); + } + } + + /** + * Write to stream + * @param resource $stream + */ + protected function streamWrite($stream, LogRecord $record): void + { + fwrite($stream, (string) $record->formatted); + } + + private function customErrorHandler(int $code, string $msg): bool + { + $this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg); + + return true; + } + + private function getDirFromStream(string $stream): ?string + { + $pos = strpos($stream, '://'); + if ($pos === false) { + return dirname($stream); + } + + if ('file://' === substr($stream, 0, 7)) { + return dirname(substr($stream, 7)); + } + + return null; + } + + private function createDir(string $url): void + { + // Do not try to create dir if it has already been tried. + if (true === $this->dirCreated) { + return; + } + + $dir = $this->getDirFromStream($url); + if (null !== $dir && !is_dir($dir)) { + $this->errorMessage = null; + set_error_handler([$this, 'customErrorHandler']); + $status = mkdir($dir, 0777, true); + restore_error_handler(); + if (false === $status && !is_dir($dir) && strpos((string) $this->errorMessage, 'File exists') === false) { + throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage, $dir)); + } + } + $this->dirCreated = true; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php new file mode 100644 index 000000000..842b6577f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php @@ -0,0 +1,109 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Closure; +use Monolog\Level; +use Monolog\Logger; +use Monolog\LogRecord; +use Monolog\Utils; +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\LineFormatter; +use Symfony\Component\Mailer\MailerInterface; +use Symfony\Component\Mailer\Transport\TransportInterface; +use Symfony\Component\Mime\Email; + +/** + * SymfonyMailerHandler uses Symfony's Mailer component to send the emails + * + * @author Jordi Boggiano + */ +class SymfonyMailerHandler extends MailHandler +{ + protected MailerInterface|TransportInterface $mailer; + /** @var Email|Closure(string, LogRecord[]): Email */ + private Email|Closure $emailTemplate; + + /** + * @phpstan-param Email|Closure(string, LogRecord[]): Email $email + * + * @param MailerInterface|TransportInterface $mailer The mailer to use + * @param Closure|Email $email An email template, the subject/body will be replaced + */ + public function __construct($mailer, Email|Closure $email, int|string|Level $level = Level::Error, bool $bubble = true) + { + parent::__construct($level, $bubble); + + $this->mailer = $mailer; + $this->emailTemplate = $email; + } + + /** + * {@inheritDoc} + */ + protected function send(string $content, array $records): void + { + $this->mailer->send($this->buildMessage($content, $records)); + } + + /** + * Gets the formatter for the Swift_Message subject. + * + * @param string|null $format The format of the subject + */ + protected function getSubjectFormatter(?string $format): FormatterInterface + { + return new LineFormatter($format); + } + + /** + * Creates instance of Email to be sent + * + * @param string $content formatted email body to be sent + * @param LogRecord[] $records Log records that formed the content + */ + protected function buildMessage(string $content, array $records): Email + { + $message = null; + if ($this->emailTemplate instanceof Email) { + $message = clone $this->emailTemplate; + } elseif (is_callable($this->emailTemplate)) { + $message = ($this->emailTemplate)($content, $records); + } + + if (!$message instanceof Email) { + $record = reset($records); + throw new \InvalidArgumentException('Could not resolve message as instance of Email or a callable returning it' . ($record instanceof LogRecord ? Utils::getRecordMessageForException($record) : '')); + } + + if (\count($records) > 0) { + $subjectFormatter = $this->getSubjectFormatter($message->getSubject()); + $message->subject($subjectFormatter->format($this->getHighestRecord($records))); + } + + if ($this->isHtmlBody($content)) { + if (null !== ($charset = $message->getHtmlCharset())) { + $message->html($content, $charset); + } else { + $message->html($content); + } + } else { + if (null !== ($charset = $message->getTextCharset())) { + $message->text($content, $charset); + } else { + $message->text($content); + } + } + + return $message->date(new \DateTimeImmutable()); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php new file mode 100644 index 000000000..99507a170 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php @@ -0,0 +1,64 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Logs to syslog service. + * + * usage example: + * + * $log = new Logger('application'); + * $syslog = new SyslogHandler('myfacility', 'local6'); + * $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%"); + * $syslog->setFormatter($formatter); + * $log->pushHandler($syslog); + * + * @author Sven Paulus + */ +class SyslogHandler extends AbstractSyslogHandler +{ + protected string $ident; + protected int $logopts; + + /** + * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant + * @param int $logopts Option flags for the openlog() call, defaults to LOG_PID + */ + public function __construct(string $ident, string|int $facility = LOG_USER, int|string|Level $level = Level::Debug, bool $bubble = true, int $logopts = LOG_PID) + { + parent::__construct($facility, $level, $bubble); + + $this->ident = $ident; + $this->logopts = $logopts; + } + + /** + * @inheritDoc + */ + public function close(): void + { + closelog(); + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + openlog($this->ident, $this->logopts, $this->facility); + syslog($this->toSyslogPriority($record->level), (string) $record->formatted); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php b/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php new file mode 100644 index 000000000..6a4833450 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php @@ -0,0 +1,77 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler\SyslogUdp; + +use Monolog\Utils; +use Socket; + +class UdpSocket +{ + protected const DATAGRAM_MAX_LENGTH = 65023; + + protected string $ip; + protected int $port; + protected ?Socket $socket = null; + + public function __construct(string $ip, int $port = 514) + { + $this->ip = $ip; + $this->port = $port; + } + + public function write(string $line, string $header = ""): void + { + $this->send($this->assembleMessage($line, $header)); + } + + public function close(): void + { + if ($this->socket instanceof Socket) { + socket_close($this->socket); + $this->socket = null; + } + } + + protected function getSocket(): Socket + { + if (null !== $this->socket) { + return $this->socket; + } + + $domain = AF_INET; + $protocol = SOL_UDP; + // Check if we are using unix sockets. + if ($this->port === 0) { + $domain = AF_UNIX; + $protocol = IPPROTO_IP; + } + + $socket = socket_create($domain, SOCK_DGRAM, $protocol); + if ($socket instanceof Socket) { + return $this->socket = $socket; + } + + throw new \RuntimeException('The UdpSocket to '.$this->ip.':'.$this->port.' could not be opened via socket_create'); + } + + protected function send(string $chunk): void + { + socket_sendto($this->getSocket(), $chunk, strlen($chunk), $flags = 0, $this->ip, $this->port); + } + + protected function assembleMessage(string $line, string $header): string + { + $chunkSize = static::DATAGRAM_MAX_LENGTH - strlen($header); + + return $header . Utils::substr($line, 0, $chunkSize); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php new file mode 100644 index 000000000..607409353 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php @@ -0,0 +1,154 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use DateTimeInterface; +use Monolog\Handler\SyslogUdp\UdpSocket; +use Monolog\Level; +use Monolog\LogRecord; +use Monolog\Utils; + +/** + * A Handler for logging to a remote syslogd server. + * + * @author Jesper Skovgaard Nielsen + * @author Dominik Kukacka + */ +class SyslogUdpHandler extends AbstractSyslogHandler +{ + const RFC3164 = 0; + const RFC5424 = 1; + const RFC5424e = 2; + + /** @var array */ + private array $dateFormats = [ + self::RFC3164 => 'M d H:i:s', + self::RFC5424 => \DateTime::RFC3339, + self::RFC5424e => \DateTime::RFC3339_EXTENDED, + ]; + + protected UdpSocket $socket; + protected string $ident; + /** @var self::RFC* */ + protected int $rfc; + + /** + * @param string $host Either IP/hostname or a path to a unix socket (port must be 0 then) + * @param int $port Port number, or 0 if $host is a unix socket + * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + * @param string $ident Program name or tag for each log message. + * @param int $rfc RFC to format the message for. + * @throws MissingExtensionException when there is no socket extension + * + * @phpstan-param self::RFC* $rfc + */ + public function __construct(string $host, int $port = 514, string|int $facility = LOG_USER, int|string|Level $level = Level::Debug, bool $bubble = true, string $ident = 'php', int $rfc = self::RFC5424) + { + if (!extension_loaded('sockets')) { + throw new MissingExtensionException('The sockets extension is required to use the SyslogUdpHandler'); + } + + parent::__construct($facility, $level, $bubble); + + $this->ident = $ident; + $this->rfc = $rfc; + + $this->socket = new UdpSocket($host, $port); + } + + protected function write(LogRecord $record): void + { + $lines = $this->splitMessageIntoLines($record->formatted); + + $header = $this->makeCommonSyslogHeader($this->toSyslogPriority($record->level), $record->datetime); + + foreach ($lines as $line) { + $this->socket->write($line, $header); + } + } + + public function close(): void + { + $this->socket->close(); + } + + /** + * @param string|string[] $message + * @return string[] + */ + private function splitMessageIntoLines($message): array + { + if (is_array($message)) { + $message = implode("\n", $message); + } + + $lines = preg_split('/$\R?^/m', (string) $message, -1, PREG_SPLIT_NO_EMPTY); + if (false === $lines) { + $pcreErrorCode = preg_last_error(); + + throw new \RuntimeException('Could not preg_split: ' . $pcreErrorCode . ' / ' . Utils::pcreLastErrorMessage($pcreErrorCode)); + } + + return $lines; + } + + /** + * Make common syslog header (see rfc5424 or rfc3164) + */ + protected function makeCommonSyslogHeader(int $severity, DateTimeInterface $datetime): string + { + $priority = $severity + $this->facility; + + $pid = getmypid(); + if (false === $pid) { + $pid = '-'; + } + + $hostname = gethostname(); + if (false === $hostname) { + $hostname = '-'; + } + + if ($this->rfc === self::RFC3164) { + // see https://github.com/phpstan/phpstan/issues/5348 + // @phpstan-ignore-next-line + $dateNew = $datetime->setTimezone(new \DateTimeZone('UTC')); + $date = $dateNew->format($this->dateFormats[$this->rfc]); + + return "<$priority>" . + $date . " " . + $hostname . " " . + $this->ident . "[" . $pid . "]: "; + } + + $date = $datetime->format($this->dateFormats[$this->rfc]); + + return "<$priority>1 " . + $date . " " . + $hostname . " " . + $this->ident . " " . + $pid . " - - "; + } + + /** + * Inject your own socket, mainly used for testing + * + * @return $this + */ + public function setSocket(UdpSocket $socket): self + { + $this->socket = $socket; + + return $this; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php new file mode 100644 index 000000000..feaa002fa --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php @@ -0,0 +1,297 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use RuntimeException; +use Monolog\Level; +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Handler sends logs to Telegram using Telegram Bot API. + * + * How to use: + * 1) Create a Telegram bot with https://telegram.me/BotFather; + * 2) Create a Telegram channel or a group where logs will be recorded; + * 3) Add the created bot from step 1 to the created channel/group from step 2. + * + * In order to create an instance of TelegramBotHandler use + * 1. The Telegram bot API key from step 1 + * 2. The channel name with the `@` prefix if you created a public channel (e.g. `@my_public_channel`), + * or the channel ID with the `-100` prefix if you created a private channel (e.g. `-1001234567890`), + * or the group ID from step 2 (e.g. `-1234567890`). + * + * @link https://core.telegram.org/bots/api + * + * @author Mazur Alexandr + */ +class TelegramBotHandler extends AbstractProcessingHandler +{ + private const BOT_API = 'https://api.telegram.org/bot'; + + /** + * The available values of parseMode according to the Telegram api documentation + */ + private const AVAILABLE_PARSE_MODES = [ + 'HTML', + 'MarkdownV2', + 'Markdown', // legacy mode without underline and strikethrough, use MarkdownV2 instead + ]; + + /** + * The maximum number of characters allowed in a message according to the Telegram api documentation + */ + private const MAX_MESSAGE_LENGTH = 4096; + + /** + * Telegram bot access token provided by BotFather. + * Create telegram bot with https://telegram.me/BotFather and use access token from it. + */ + private string $apiKey; + + /** + * Telegram channel name. + * Since to start with '@' symbol as prefix. + */ + private string $channel; + + /** + * The kind of formatting that is used for the message. + * See available options at https://core.telegram.org/bots/api#formatting-options + * or in AVAILABLE_PARSE_MODES + */ + private string|null $parseMode; + + /** + * Disables link previews for links in the message. + */ + private bool|null $disableWebPagePreview; + + /** + * Sends the message silently. Users will receive a notification with no sound. + */ + private bool|null $disableNotification; + + /** + * True - split a message longer than MAX_MESSAGE_LENGTH into parts and send in multiple messages. + * False - truncates a message that is too long. + */ + private bool $splitLongMessages; + + /** + * Adds 1-second delay between sending a split message (according to Telegram API to avoid 429 Too Many Requests). + */ + private bool $delayBetweenMessages; + + /** + * Telegram message thread id, unique identifier for the target message thread (topic) of the forum; for forum supergroups only + * See how to get the `message_thread_id` https://stackoverflow.com/a/75178418 + */ + private int|null $topic; + + /** + * @param string $apiKey Telegram bot access token provided by BotFather + * @param string $channel Telegram channel name + * @param bool $splitLongMessages Split a message longer than MAX_MESSAGE_LENGTH into parts and send in multiple messages + * @param bool $delayBetweenMessages Adds delay between sending a split message according to Telegram API + * @param int $topic Telegram message thread id, unique identifier for the target message thread (topic) of the forum + * @throws MissingExtensionException If the curl extension is missing + */ + public function __construct( + string $apiKey, + string $channel, + $level = Level::Debug, + bool $bubble = true, + string $parseMode = null, + bool $disableWebPagePreview = null, + bool $disableNotification = null, + bool $splitLongMessages = false, + bool $delayBetweenMessages = false, + int $topic = null + ) { + if (!extension_loaded('curl')) { + throw new MissingExtensionException('The curl extension is needed to use the TelegramBotHandler'); + } + + parent::__construct($level, $bubble); + + $this->apiKey = $apiKey; + $this->channel = $channel; + $this->setParseMode($parseMode); + $this->disableWebPagePreview($disableWebPagePreview); + $this->disableNotification($disableNotification); + $this->splitLongMessages($splitLongMessages); + $this->delayBetweenMessages($delayBetweenMessages); + $this->setTopic($topic); + } + + /** + * @return $this + */ + public function setParseMode(string $parseMode = null): self + { + if ($parseMode !== null && !in_array($parseMode, self::AVAILABLE_PARSE_MODES, true)) { + throw new \InvalidArgumentException('Unknown parseMode, use one of these: ' . implode(', ', self::AVAILABLE_PARSE_MODES) . '.'); + } + + $this->parseMode = $parseMode; + + return $this; + } + + /** + * @return $this + */ + public function disableWebPagePreview(bool $disableWebPagePreview = null): self + { + $this->disableWebPagePreview = $disableWebPagePreview; + + return $this; + } + + /** + * @return $this + */ + public function disableNotification(bool $disableNotification = null): self + { + $this->disableNotification = $disableNotification; + + return $this; + } + + /** + * True - split a message longer than MAX_MESSAGE_LENGTH into parts and send in multiple messages. + * False - truncates a message that is too long. + * + * @return $this + */ + public function splitLongMessages(bool $splitLongMessages = false): self + { + $this->splitLongMessages = $splitLongMessages; + + return $this; + } + + /** + * Adds 1-second delay between sending a split message (according to Telegram API to avoid 429 Too Many Requests). + * + * @return $this + */ + public function delayBetweenMessages(bool $delayBetweenMessages = false): self + { + $this->delayBetweenMessages = $delayBetweenMessages; + + return $this; + } + + /** + * @return $this + */ + public function setTopic(int $topic = null): self + { + $this->topic = $topic; + + return $this; + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + $messages = []; + + foreach ($records as $record) { + if (!$this->isHandling($record)) { + continue; + } + + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + $messages[] = $record; + } + + if (\count($messages) > 0) { + $this->send((string) $this->getFormatter()->formatBatch($messages)); + } + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->send($record->formatted); + } + + /** + * Send request to @link https://api.telegram.org/bot on SendMessage action. + */ + protected function send(string $message): void + { + $messages = $this->handleMessageLength($message); + + foreach ($messages as $key => $msg) { + if ($this->delayBetweenMessages && $key > 0) { + sleep(1); + } + + $this->sendCurl($msg); + } + } + + protected function sendCurl(string $message): void + { + $ch = curl_init(); + $url = self::BOT_API . $this->apiKey . '/SendMessage'; + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); + $params = [ + 'text' => $message, + 'chat_id' => $this->channel, + 'parse_mode' => $this->parseMode, + 'disable_web_page_preview' => $this->disableWebPagePreview, + 'disable_notification' => $this->disableNotification, + ]; + if ($this->topic !== null) { + $params['message_thread_id'] = $this->topic; + } + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); + + $result = Curl\Util::execute($ch); + if (!is_string($result)) { + throw new RuntimeException('Telegram API error. Description: No response'); + } + $result = json_decode($result, true); + + if ($result['ok'] === false) { + throw new RuntimeException('Telegram API error. Description: ' . $result['description']); + } + } + + /** + * Handle a message that is too long: truncates or splits into several + * @return string[] + */ + private function handleMessageLength(string $message): array + { + $truncatedMarker = ' (...truncated)'; + if (!$this->splitLongMessages && strlen($message) > self::MAX_MESSAGE_LENGTH) { + return [Utils::substr($message, 0, self::MAX_MESSAGE_LENGTH - strlen($truncatedMarker)) . $truncatedMarker]; + } + + return str_split($message, self::MAX_MESSAGE_LENGTH); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php new file mode 100644 index 000000000..8e356ef31 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php @@ -0,0 +1,195 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Level; +use Monolog\Logger; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Used for testing purposes. + * + * It records all records and gives you access to them for verification. + * + * @author Jordi Boggiano + * + * @method bool hasEmergency(string|array $recordAssertions) + * @method bool hasAlert(string|array $recordAssertions) + * @method bool hasCritical(string|array $recordAssertions) + * @method bool hasError(string|array $recordAssertions) + * @method bool hasWarning(string|array $recordAssertions) + * @method bool hasNotice(string|array $recordAssertions) + * @method bool hasInfo(string|array $recordAssertions) + * @method bool hasDebug(string|array $recordAssertions) + * + * @method bool hasEmergencyRecords() + * @method bool hasAlertRecords() + * @method bool hasCriticalRecords() + * @method bool hasErrorRecords() + * @method bool hasWarningRecords() + * @method bool hasNoticeRecords() + * @method bool hasInfoRecords() + * @method bool hasDebugRecords() + * + * @method bool hasEmergencyThatContains(string $message) + * @method bool hasAlertThatContains(string $message) + * @method bool hasCriticalThatContains(string $message) + * @method bool hasErrorThatContains(string $message) + * @method bool hasWarningThatContains(string $message) + * @method bool hasNoticeThatContains(string $message) + * @method bool hasInfoThatContains(string $message) + * @method bool hasDebugThatContains(string $message) + * + * @method bool hasEmergencyThatMatches(string $regex) + * @method bool hasAlertThatMatches(string $regex) + * @method bool hasCriticalThatMatches(string $regex) + * @method bool hasErrorThatMatches(string $regex) + * @method bool hasWarningThatMatches(string $regex) + * @method bool hasNoticeThatMatches(string $regex) + * @method bool hasInfoThatMatches(string $regex) + * @method bool hasDebugThatMatches(string $regex) + * + * @method bool hasEmergencyThatPasses(callable $predicate) + * @method bool hasAlertThatPasses(callable $predicate) + * @method bool hasCriticalThatPasses(callable $predicate) + * @method bool hasErrorThatPasses(callable $predicate) + * @method bool hasWarningThatPasses(callable $predicate) + * @method bool hasNoticeThatPasses(callable $predicate) + * @method bool hasInfoThatPasses(callable $predicate) + * @method bool hasDebugThatPasses(callable $predicate) + */ +class TestHandler extends AbstractProcessingHandler +{ + /** @var LogRecord[] */ + protected array $records = []; + /** @phpstan-var array, LogRecord[]> */ + protected array $recordsByLevel = []; + private bool $skipReset = false; + + /** + * @return array + */ + public function getRecords(): array + { + return $this->records; + } + + public function clear(): void + { + $this->records = []; + $this->recordsByLevel = []; + } + + public function reset(): void + { + if (!$this->skipReset) { + $this->clear(); + } + } + + public function setSkipReset(bool $skipReset): void + { + $this->skipReset = $skipReset; + } + + /** + * @param int|string|Level|LogLevel::* $level Logging level value or name + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function hasRecords(int|string|Level $level): bool + { + return isset($this->recordsByLevel[Logger::toMonologLevel($level)->value]); + } + + /** + * @param string|array $recordAssertions Either a message string or an array containing message and optionally context keys that will be checked against all records + * + * @phpstan-param array{message: string, context?: mixed[]}|string $recordAssertions + */ + public function hasRecord(string|array $recordAssertions, Level $level): bool + { + if (is_string($recordAssertions)) { + $recordAssertions = ['message' => $recordAssertions]; + } + + return $this->hasRecordThatPasses(function (LogRecord $rec) use ($recordAssertions) { + if ($rec->message !== $recordAssertions['message']) { + return false; + } + if (isset($recordAssertions['context']) && $rec->context !== $recordAssertions['context']) { + return false; + } + + return true; + }, $level); + } + + public function hasRecordThatContains(string $message, Level $level): bool + { + return $this->hasRecordThatPasses(fn (LogRecord $rec) => str_contains($rec->message, $message), $level); + } + + public function hasRecordThatMatches(string $regex, Level $level): bool + { + return $this->hasRecordThatPasses(fn (LogRecord $rec) => preg_match($regex, $rec->message) > 0, $level); + } + + /** + * @phpstan-param callable(LogRecord, int): mixed $predicate + */ + public function hasRecordThatPasses(callable $predicate, Level $level): bool + { + $level = Logger::toMonologLevel($level); + + if (!isset($this->recordsByLevel[$level->value])) { + return false; + } + + foreach ($this->recordsByLevel[$level->value] as $i => $rec) { + if ((bool) $predicate($rec, $i)) { + return true; + } + } + + return false; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->recordsByLevel[$record->level->value][] = $record; + $this->records[] = $record; + } + + /** + * @param mixed[] $args + */ + public function __call(string $method, array $args): bool + { + if (preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) { + $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3]; + $level = constant(Level::class.'::' . $matches[2]); + $callback = [$this, $genericMethod]; + if (is_callable($callback)) { + $args[] = $level; + + return call_user_func_array($callback, $args); + } + } + + throw new \BadMethodCallException('Call to undefined method ' . get_class($this) . '::' . $method . '()'); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/WebRequestRecognizerTrait.php b/vendor/monolog/monolog/src/Monolog/Handler/WebRequestRecognizerTrait.php new file mode 100644 index 000000000..9c12c3d56 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/WebRequestRecognizerTrait.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +trait WebRequestRecognizerTrait +{ + /** + * Checks if PHP's serving a web request + */ + protected function isWebRequest(): bool + { + return 'cli' !== \PHP_SAPI && 'phpdbg' !== \PHP_SAPI; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php new file mode 100644 index 000000000..932fa70e7 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php @@ -0,0 +1,80 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\LogRecord; +use Throwable; + +/** + * Forwards records to multiple handlers suppressing failures of each handler + * and continuing through to give every handler a chance to succeed. + * + * @author Craig D'Amelio + */ +class WhatFailureGroupHandler extends GroupHandler +{ + /** + * @inheritDoc + */ + public function handle(LogRecord $record): bool + { + if (\count($this->processors) > 0) { + $record = $this->processRecord($record); + } + + foreach ($this->handlers as $handler) { + try { + $handler->handle(clone $record); + } catch (Throwable) { + // What failure? + } + } + + return false === $this->bubble; + } + + /** + * @inheritDoc + */ + public function handleBatch(array $records): void + { + if (\count($this->processors) > 0) { + $processed = []; + foreach ($records as $record) { + $processed[] = $this->processRecord($record); + } + $records = $processed; + } + + foreach ($this->handlers as $handler) { + try { + $handler->handleBatch(array_map(fn ($record) => clone $record, $records)); + } catch (Throwable) { + // What failure? + } + } + } + + /** + * {@inheritDoc} + */ + public function close(): void + { + foreach ($this->handlers as $handler) { + try { + $handler->close(); + } catch (\Throwable $e) { + // What failure? + } + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php b/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php new file mode 100644 index 000000000..1e71194bc --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php @@ -0,0 +1,90 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Formatter\FormatterInterface; +use Monolog\Formatter\NormalizerFormatter; +use Monolog\Level; +use Monolog\LogRecord; + +/** + * Handler sending logs to Zend Monitor + * + * @author Christian Bergau + * @author Jason Davis + */ +class ZendMonitorHandler extends AbstractProcessingHandler +{ + /** + * @throws MissingExtensionException + */ + public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) + { + if (!function_exists('zend_monitor_custom_event')) { + throw new MissingExtensionException( + 'You must have Zend Server installed with Zend Monitor enabled in order to use this handler' + ); + } + + parent::__construct($level, $bubble); + } + + /** + * Translates Monolog log levels to ZendMonitor levels. + */ + protected function toZendMonitorLevel(Level $level): int + { + return match ($level) { + Level::Debug => \ZEND_MONITOR_EVENT_SEVERITY_INFO, + Level::Info => \ZEND_MONITOR_EVENT_SEVERITY_INFO, + Level::Notice => \ZEND_MONITOR_EVENT_SEVERITY_INFO, + Level::Warning => \ZEND_MONITOR_EVENT_SEVERITY_WARNING, + Level::Error => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, + Level::Critical => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, + Level::Alert => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, + Level::Emergency => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, + }; + } + + /** + * @inheritDoc + */ + protected function write(LogRecord $record): void + { + $this->writeZendMonitorCustomEvent( + $record->level->getName(), + $record->message, + $record->formatted, + $this->toZendMonitorLevel($record->level) + ); + } + + /** + * Write to Zend Monitor Events + * @param string $type Text displayed in "Class Name (custom)" field + * @param string $message Text displayed in "Error String" + * @param array $formatted Displayed in Custom Variables tab + * @param int $severity Set the event severity level (-1,0,1) + */ + protected function writeZendMonitorCustomEvent(string $type, string $message, array $formatted, int $severity): void + { + zend_monitor_custom_event($type, $message, $formatted, $severity); + } + + /** + * @inheritDoc + */ + public function getDefaultFormatter(): FormatterInterface + { + return new NormalizerFormatter(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Level.php b/vendor/monolog/monolog/src/Monolog/Level.php new file mode 100644 index 000000000..097d42135 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Level.php @@ -0,0 +1,209 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use Psr\Log\LogLevel; + +/** + * Represents the log levels + * + * Monolog supports the logging levels described by RFC 5424 {@see https://datatracker.ietf.org/doc/html/rfc5424} + * but due to BC the severity values used internally are not 0-7. + * + * To get the level name/value out of a Level there are several options: + * + * - Use ->getName() to get the standard Monolog name which is full uppercased (e.g. "DEBUG") + * - Use ->toPsrLogLevel() to get the standard PSR-3 name which is full lowercased (e.g. "debug") + * - Use ->toRFC5424Level() to get the standard RFC 5424 value (e.g. 7 for debug, 0 for emergency) + * - Use ->name to get the enum case's name which is capitalized (e.g. "Debug") + * + * To get the internal value for filtering, if the includes/isLowerThan/isHigherThan methods are + * not enough, you can use ->value to get the enum case's integer value. + */ +enum Level: int +{ + /** + * Detailed debug information + */ + case Debug = 100; + + /** + * Interesting events + * + * Examples: User logs in, SQL logs. + */ + case Info = 200; + + /** + * Uncommon events + */ + case Notice = 250; + + /** + * Exceptional occurrences that are not errors + * + * Examples: Use of deprecated APIs, poor use of an API, + * undesirable things that are not necessarily wrong. + */ + case Warning = 300; + + /** + * Runtime errors + */ + case Error = 400; + + /** + * Critical conditions + * + * Example: Application component unavailable, unexpected exception. + */ + case Critical = 500; + + /** + * Action must be taken immediately + * + * Example: Entire website down, database unavailable, etc. + * This should trigger the SMS alerts and wake you up. + */ + case Alert = 550; + + /** + * Urgent alert. + */ + case Emergency = 600; + + /** + * @param value-of|LogLevel::*|'Debug'|'Info'|'Notice'|'Warning'|'Error'|'Critical'|'Alert'|'Emergency' $name + * @return static + */ + public static function fromName(string $name): self + { + return match ($name) { + 'debug', 'Debug', 'DEBUG' => self::Debug, + 'info', 'Info', 'INFO' => self::Info, + 'notice', 'Notice', 'NOTICE' => self::Notice, + 'warning', 'Warning', 'WARNING' => self::Warning, + 'error', 'Error', 'ERROR' => self::Error, + 'critical', 'Critical', 'CRITICAL' => self::Critical, + 'alert', 'Alert', 'ALERT' => self::Alert, + 'emergency', 'Emergency', 'EMERGENCY' => self::Emergency, + }; + } + + /** + * @param value-of $value + * @return static + */ + public static function fromValue(int $value): self + { + return self::from($value); + } + + /** + * Returns true if the passed $level is higher or equal to $this + */ + public function includes(Level $level): bool + { + return $this->value <= $level->value; + } + + public function isHigherThan(Level $level): bool + { + return $this->value > $level->value; + } + + public function isLowerThan(Level $level): bool + { + return $this->value < $level->value; + } + + /** + * Returns the monolog standardized all-capitals name of the level + * + * Use this instead of $level->name which returns the enum case name (e.g. Debug vs DEBUG if you use getName()) + * + * @return value-of + */ + public function getName(): string + { + return match ($this) { + self::Debug => 'DEBUG', + self::Info => 'INFO', + self::Notice => 'NOTICE', + self::Warning => 'WARNING', + self::Error => 'ERROR', + self::Critical => 'CRITICAL', + self::Alert => 'ALERT', + self::Emergency => 'EMERGENCY', + }; + } + + /** + * Returns the PSR-3 level matching this instance + * + * @phpstan-return \Psr\Log\LogLevel::* + */ + public function toPsrLogLevel(): string + { + return match ($this) { + self::Debug => LogLevel::DEBUG, + self::Info => LogLevel::INFO, + self::Notice => LogLevel::NOTICE, + self::Warning => LogLevel::WARNING, + self::Error => LogLevel::ERROR, + self::Critical => LogLevel::CRITICAL, + self::Alert => LogLevel::ALERT, + self::Emergency => LogLevel::EMERGENCY, + }; + } + + /** + * Returns the RFC 5424 level matching this instance + * + * @phpstan-return int<0, 7> + */ + public function toRFC5424Level(): int + { + return match ($this) { + self::Debug => 7, + self::Info => 6, + self::Notice => 5, + self::Warning => 4, + self::Error => 3, + self::Critical => 2, + self::Alert => 1, + self::Emergency => 0, + }; + } + + public const VALUES = [ + 100, + 200, + 250, + 300, + 400, + 500, + 550, + 600, + ]; + + public const NAMES = [ + 'DEBUG', + 'INFO', + 'NOTICE', + 'WARNING', + 'ERROR', + 'CRITICAL', + 'ALERT', + 'EMERGENCY', + ]; +} diff --git a/vendor/monolog/monolog/src/Monolog/LogRecord.php b/vendor/monolog/monolog/src/Monolog/LogRecord.php new file mode 100644 index 000000000..df758c58b --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/LogRecord.php @@ -0,0 +1,124 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use ArrayAccess; + +/** + * Monolog log record + * + * @author Jordi Boggiano + * @template-implements ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra', int|string|\DateTimeImmutable|array> + */ +class LogRecord implements ArrayAccess +{ + private const MODIFIABLE_FIELDS = [ + 'extra' => true, + 'formatted' => true, + ]; + + public function __construct( + public readonly \DateTimeImmutable $datetime, + public readonly string $channel, + public readonly Level $level, + public readonly string $message, + /** @var array */ + public readonly array $context = [], + /** @var array */ + public array $extra = [], + public mixed $formatted = null, + ) { + } + + public function offsetSet(mixed $offset, mixed $value): void + { + if ($offset === 'extra') { + if (!is_array($value)) { + throw new \InvalidArgumentException('extra must be an array'); + } + + $this->extra = $value; + + return; + } + + if ($offset === 'formatted') { + $this->formatted = $value; + + return; + } + + throw new \LogicException('Unsupported operation: setting '.$offset); + } + + public function offsetExists(mixed $offset): bool + { + if ($offset === 'level_name') { + return true; + } + + return isset($this->{$offset}); + } + + public function offsetUnset(mixed $offset): void + { + throw new \LogicException('Unsupported operation'); + } + + public function &offsetGet(mixed $offset): mixed + { + if ($offset === 'level_name' || $offset === 'level') { + // avoid returning readonly props by ref as this is illegal + if ($offset === 'level_name') { + $copy = $this->level->getName(); + } else { + $copy = $this->level->value; + } + + return $copy; + } + + if (isset(self::MODIFIABLE_FIELDS[$offset])) { + return $this->{$offset}; + } + + // avoid returning readonly props by ref as this is illegal + $copy = $this->{$offset}; + + return $copy; + } + + /** + * @phpstan-return array{message: string, context: mixed[], level: value-of, level_name: value-of, channel: string, datetime: \DateTimeImmutable, extra: mixed[]} + */ + public function toArray(): array + { + return [ + 'message' => $this->message, + 'context' => $this->context, + 'level' => $this->level->value, + 'level_name' => $this->level->getName(), + 'channel' => $this->channel, + 'datetime' => $this->datetime, + 'extra' => $this->extra, + ]; + } + + public function with(mixed ...$args): self + { + foreach (['message', 'context', 'level', 'channel', 'datetime', 'extra'] as $prop) { + $args[$prop] ??= $this->{$prop}; + } + + return new self(...$args); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Logger.php b/vendor/monolog/monolog/src/Monolog/Logger.php new file mode 100644 index 000000000..b04194bf9 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Logger.php @@ -0,0 +1,749 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use Closure; +use DateTimeZone; +use Fiber; +use Monolog\Handler\HandlerInterface; +use Monolog\Processor\ProcessorInterface; +use Psr\Log\LoggerInterface; +use Psr\Log\InvalidArgumentException; +use Psr\Log\LogLevel; +use Throwable; +use Stringable; +use WeakMap; + +/** + * Monolog log channel + * + * It contains a stack of Handlers and a stack of Processors, + * and uses them to store records that are added to it. + * + * @author Jordi Boggiano + * @final + */ +class Logger implements LoggerInterface, ResettableInterface +{ + /** + * Detailed debug information + * + * @deprecated Use \Monolog\Level::Debug + */ + public const DEBUG = 100; + + /** + * Interesting events + * + * Examples: User logs in, SQL logs. + * + * @deprecated Use \Monolog\Level::Info + */ + public const INFO = 200; + + /** + * Uncommon events + * + * @deprecated Use \Monolog\Level::Notice + */ + public const NOTICE = 250; + + /** + * Exceptional occurrences that are not errors + * + * Examples: Use of deprecated APIs, poor use of an API, + * undesirable things that are not necessarily wrong. + * + * @deprecated Use \Monolog\Level::Warning + */ + public const WARNING = 300; + + /** + * Runtime errors + * + * @deprecated Use \Monolog\Level::Error + */ + public const ERROR = 400; + + /** + * Critical conditions + * + * Example: Application component unavailable, unexpected exception. + * + * @deprecated Use \Monolog\Level::Critical + */ + public const CRITICAL = 500; + + /** + * Action must be taken immediately + * + * Example: Entire website down, database unavailable, etc. + * This should trigger the SMS alerts and wake you up. + * + * @deprecated Use \Monolog\Level::Alert + */ + public const ALERT = 550; + + /** + * Urgent alert. + * + * @deprecated Use \Monolog\Level::Emergency + */ + public const EMERGENCY = 600; + + /** + * Monolog API version + * + * This is only bumped when API breaks are done and should + * follow the major version of the library + */ + public const API = 3; + + /** + * Mapping between levels numbers defined in RFC 5424 and Monolog ones + * + * @phpstan-var array $rfc_5424_levels + */ + private const RFC_5424_LEVELS = [ + 7 => Level::Debug, + 6 => Level::Info, + 5 => Level::Notice, + 4 => Level::Warning, + 3 => Level::Error, + 2 => Level::Critical, + 1 => Level::Alert, + 0 => Level::Emergency, + ]; + + protected string $name; + + /** + * The handler stack + * + * @var list + */ + protected array $handlers; + + /** + * Processors that will process all log records + * + * To process records of a single handler instead, add the processor on that specific handler + * + * @var array<(callable(LogRecord): LogRecord)|ProcessorInterface> + */ + protected array $processors; + + protected bool $microsecondTimestamps = true; + + protected DateTimeZone $timezone; + + protected Closure|null $exceptionHandler = null; + + /** + * Keeps track of depth to prevent infinite logging loops + */ + private int $logDepth = 0; + + /** + * @var WeakMap, int> Keeps track of depth inside fibers to prevent infinite logging loops + */ + private WeakMap $fiberLogDepth; + + /** + * Whether to detect infinite logging loops + * This can be disabled via {@see useLoggingLoopDetection} if you have async handlers that do not play well with this + */ + private bool $detectCycles = true; + + /** + * @param string $name The logging channel, a simple descriptive name that is attached to all log records + * @param HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc. + * @param callable[] $processors Optional array of processors + * @param DateTimeZone|null $timezone Optional timezone, if not provided date_default_timezone_get() will be used + * + * @phpstan-param array<(callable(LogRecord): LogRecord)|ProcessorInterface> $processors + */ + public function __construct(string $name, array $handlers = [], array $processors = [], DateTimeZone|null $timezone = null) + { + $this->name = $name; + $this->setHandlers($handlers); + $this->processors = $processors; + $this->timezone = $timezone ?? new DateTimeZone(date_default_timezone_get()); + $this->fiberLogDepth = new \WeakMap(); + } + + public function getName(): string + { + return $this->name; + } + + /** + * Return a new cloned instance with the name changed + * + * @return static + */ + public function withName(string $name): self + { + $new = clone $this; + $new->name = $name; + + return $new; + } + + /** + * Pushes a handler on to the stack. + * + * @return $this + */ + public function pushHandler(HandlerInterface $handler): self + { + array_unshift($this->handlers, $handler); + + return $this; + } + + /** + * Pops a handler from the stack + * + * @throws \LogicException If empty handler stack + */ + public function popHandler(): HandlerInterface + { + if (0 === \count($this->handlers)) { + throw new \LogicException('You tried to pop from an empty handler stack.'); + } + + return array_shift($this->handlers); + } + + /** + * Set handlers, replacing all existing ones. + * + * If a map is passed, keys will be ignored. + * + * @param list $handlers + * @return $this + */ + public function setHandlers(array $handlers): self + { + $this->handlers = []; + foreach (array_reverse($handlers) as $handler) { + $this->pushHandler($handler); + } + + return $this; + } + + /** + * @return list + */ + public function getHandlers(): array + { + return $this->handlers; + } + + /** + * Adds a processor on to the stack. + * + * @phpstan-param ProcessorInterface|(callable(LogRecord): LogRecord) $callback + * @return $this + */ + public function pushProcessor(ProcessorInterface|callable $callback): self + { + array_unshift($this->processors, $callback); + + return $this; + } + + /** + * Removes the processor on top of the stack and returns it. + * + * @phpstan-return ProcessorInterface|(callable(LogRecord): LogRecord) + * @throws \LogicException If empty processor stack + */ + public function popProcessor(): callable + { + if (0 === \count($this->processors)) { + throw new \LogicException('You tried to pop from an empty processor stack.'); + } + + return array_shift($this->processors); + } + + /** + * @return callable[] + * @phpstan-return array + */ + public function getProcessors(): array + { + return $this->processors; + } + + /** + * Control the use of microsecond resolution timestamps in the 'datetime' + * member of new records. + * + * As of PHP7.1 microseconds are always included by the engine, so + * there is no performance penalty and Monolog 2 enabled microseconds + * by default. This function lets you disable them though in case you want + * to suppress microseconds from the output. + * + * @param bool $micro True to use microtime() to create timestamps + * @return $this + */ + public function useMicrosecondTimestamps(bool $micro): self + { + $this->microsecondTimestamps = $micro; + + return $this; + } + + /** + * @return $this + */ + public function useLoggingLoopDetection(bool $detectCycles): self + { + $this->detectCycles = $detectCycles; + + return $this; + } + + /** + * Adds a log record. + * + * @param int $level The logging level (a Monolog or RFC 5424 level) + * @param string $message The log message + * @param mixed[] $context The log context + * @param DateTimeImmutable $datetime Optional log date to log into the past or future + * @return bool Whether the record has been processed + * + * @phpstan-param value-of|Level $level + */ + public function addRecord(int|Level $level, string $message, array $context = [], DateTimeImmutable $datetime = null): bool + { + if (is_int($level) && isset(self::RFC_5424_LEVELS[$level])) { + $level = self::RFC_5424_LEVELS[$level]; + } + + if ($this->detectCycles) { + if (null !== ($fiber = Fiber::getCurrent())) { + $logDepth = $this->fiberLogDepth[$fiber] = ($this->fiberLogDepth[$fiber] ?? 0) + 1; + } else { + $logDepth = ++$this->logDepth; + } + } else { + $logDepth = 0; + } + + if ($logDepth === 3) { + $this->warning('A possible infinite logging loop was detected and aborted. It appears some of your handler code is triggering logging, see the previous log record for a hint as to what may be the cause.'); + return false; + } elseif ($logDepth >= 5) { // log depth 4 is let through, so we can log the warning above + return false; + } + + try { + $recordInitialized = count($this->processors) === 0; + + $record = new LogRecord( + datetime: $datetime ?? new DateTimeImmutable($this->microsecondTimestamps, $this->timezone), + channel: $this->name, + level: self::toMonologLevel($level), + message: $message, + context: $context, + extra: [], + ); + $handled = false; + + foreach ($this->handlers as $handler) { + if (false === $recordInitialized) { + // skip initializing the record as long as no handler is going to handle it + if (!$handler->isHandling($record)) { + continue; + } + + try { + foreach ($this->processors as $processor) { + $record = $processor($record); + } + $recordInitialized = true; + } catch (Throwable $e) { + $this->handleException($e, $record); + + return true; + } + } + + // once the record is initialized, send it to all handlers as long as the bubbling chain is not interrupted + try { + $handled = true; + if (true === $handler->handle(clone $record)) { + break; + } + } catch (Throwable $e) { + $this->handleException($e, $record); + + return true; + } + } + + return $handled; + } finally { + if ($this->detectCycles) { + if (isset($fiber)) { + $this->fiberLogDepth[$fiber]--; + } else { + $this->logDepth--; + } + } + } + } + + /** + * Ends a log cycle and frees all resources used by handlers. + * + * Closing a Handler means flushing all buffers and freeing any open resources/handles. + * Handlers that have been closed should be able to accept log records again and re-open + * themselves on demand, but this may not always be possible depending on implementation. + * + * This is useful at the end of a request and will be called automatically on every handler + * when they get destructed. + */ + public function close(): void + { + foreach ($this->handlers as $handler) { + $handler->close(); + } + } + + /** + * Ends a log cycle and resets all handlers and processors to their initial state. + * + * Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal + * state, and getting it back to a state in which it can receive log records again. + * + * This is useful in case you want to avoid logs leaking between two requests or jobs when you + * have a long running process like a worker or an application server serving multiple requests + * in one process. + */ + public function reset(): void + { + foreach ($this->handlers as $handler) { + if ($handler instanceof ResettableInterface) { + $handler->reset(); + } + } + + foreach ($this->processors as $processor) { + if ($processor instanceof ResettableInterface) { + $processor->reset(); + } + } + } + + /** + * Gets the name of the logging level as a string. + * + * This still returns a string instead of a Level for BC, but new code should not rely on this method. + * + * @throws \Psr\Log\InvalidArgumentException If level is not defined + * + * @phpstan-param value-of|Level $level + * @phpstan-return value-of + * + * @deprecated Since 3.0, use {@see toMonologLevel} or {@see \Monolog\Level->getName()} instead + */ + public static function getLevelName(int|Level $level): string + { + return self::toMonologLevel($level)->getName(); + } + + /** + * Converts PSR-3 levels to Monolog ones if necessary + * + * @param int|string|Level|LogLevel::* $level Level number (monolog) or name (PSR-3) + * @throws \Psr\Log\InvalidArgumentException If level is not defined + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public static function toMonologLevel(string|int|Level $level): Level + { + if ($level instanceof Level) { + return $level; + } + + if (\is_string($level)) { + if (\is_numeric($level)) { + $levelEnum = Level::tryFrom((int) $level); + if ($levelEnum === null) { + throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', Level::NAMES + Level::VALUES)); + } + + return $levelEnum; + } + + // Contains first char of all log levels and avoids using strtoupper() which may have + // strange results depending on locale (for example, "i" will become "İ" in Turkish locale) + $upper = strtr(substr($level, 0, 1), 'dinweca', 'DINWECA') . strtolower(substr($level, 1)); + if (defined(Level::class.'::'.$upper)) { + return constant(Level::class . '::' . $upper); + } + + throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', Level::NAMES + Level::VALUES)); + } + + $levelEnum = Level::tryFrom($level); + if ($levelEnum === null) { + throw new InvalidArgumentException('Level "'.var_export($level, true).'" is not defined, use one of: '.implode(', ', Level::NAMES + Level::VALUES)); + } + + return $levelEnum; + } + + /** + * Checks whether the Logger has a handler that listens on the given level + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function isHandling(int|string|Level $level): bool + { + $record = new LogRecord( + datetime: new DateTimeImmutable($this->microsecondTimestamps, $this->timezone), + channel: $this->name, + message: '', + level: self::toMonologLevel($level), + ); + + foreach ($this->handlers as $handler) { + if ($handler->isHandling($record)) { + return true; + } + } + + return false; + } + + /** + * Set a custom exception handler that will be called if adding a new record fails + * + * The Closure will receive an exception object and the record that failed to be logged + * + * @return $this + */ + public function setExceptionHandler(Closure|null $callback): self + { + $this->exceptionHandler = $callback; + + return $this; + } + + public function getExceptionHandler(): Closure|null + { + return $this->exceptionHandler; + } + + /** + * Adds a log record at an arbitrary level. + * + * This method allows for compatibility with common interfaces. + * + * @param mixed $level The log level (a Monolog, PSR-3 or RFC 5424 level) + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + * + * @phpstan-param Level|LogLevel::* $level + */ + public function log($level, string|\Stringable $message, array $context = []): void + { + if (!$level instanceof Level) { + if (!is_string($level) && !is_int($level)) { + throw new \InvalidArgumentException('$level is expected to be a string, int or '.Level::class.' instance'); + } + + if (isset(self::RFC_5424_LEVELS[$level])) { + $level = self::RFC_5424_LEVELS[$level]; + } + + $level = static::toMonologLevel($level); + } + + $this->addRecord($level, (string) $message, $context); + } + + /** + * Adds a log record at the DEBUG level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function debug(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Debug, (string) $message, $context); + } + + /** + * Adds a log record at the INFO level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function info(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Info, (string) $message, $context); + } + + /** + * Adds a log record at the NOTICE level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function notice(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Notice, (string) $message, $context); + } + + /** + * Adds a log record at the WARNING level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function warning(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Warning, (string) $message, $context); + } + + /** + * Adds a log record at the ERROR level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function error(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Error, (string) $message, $context); + } + + /** + * Adds a log record at the CRITICAL level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function critical(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Critical, (string) $message, $context); + } + + /** + * Adds a log record at the ALERT level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function alert(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Alert, (string) $message, $context); + } + + /** + * Adds a log record at the EMERGENCY level. + * + * This method allows for compatibility with common interfaces. + * + * @param string|Stringable $message The log message + * @param mixed[] $context The log context + */ + public function emergency(string|\Stringable $message, array $context = []): void + { + $this->addRecord(Level::Emergency, (string) $message, $context); + } + + /** + * Sets the timezone to be used for the timestamp of log records. + * + * @return $this + */ + public function setTimezone(DateTimeZone $tz): self + { + $this->timezone = $tz; + + return $this; + } + + /** + * Returns the timezone to be used for the timestamp of log records. + */ + public function getTimezone(): DateTimeZone + { + return $this->timezone; + } + + /** + * Delegates exception management to the custom exception handler, + * or throws the exception if no custom handler is set. + */ + protected function handleException(Throwable $e, LogRecord $record): void + { + if (null === $this->exceptionHandler) { + throw $e; + } + + ($this->exceptionHandler)($e, $record); + } + + /** + * @return array + */ + public function __serialize(): array + { + return [ + 'name' => $this->name, + 'handlers' => $this->handlers, + 'processors' => $this->processors, + 'microsecondTimestamps' => $this->microsecondTimestamps, + 'timezone' => $this->timezone, + 'exceptionHandler' => $this->exceptionHandler, + 'logDepth' => $this->logDepth, + 'detectCycles' => $this->detectCycles, + ]; + } + + /** + * @param array $data + */ + public function __unserialize(array $data): void + { + foreach (['name', 'handlers', 'processors', 'microsecondTimestamps', 'timezone', 'exceptionHandler', 'logDepth', 'detectCycles'] as $property) { + if (isset($data[$property])) { + $this->$property = $data[$property]; + } + } + + $this->fiberLogDepth = new \WeakMap(); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/ClosureContextProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/ClosureContextProcessor.php new file mode 100644 index 000000000..514b35478 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/ClosureContextProcessor.php @@ -0,0 +1,51 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * Generates a context from a Closure if the Closure is the only value + * in the context + * + * It helps reduce the performance impact of debug logs if they do + * need to create lots of context information. If this processor is added + * on the correct handler the context data will only be generated + * when the logs are actually logged to that handler, which is useful when + * using FingersCrossedHandler or other filtering handlers to conditionally + * log records. + */ +class ClosureContextProcessor implements ProcessorInterface +{ + public function __invoke(LogRecord $record): LogRecord + { + $context = $record->context; + if (isset($context[0]) && 1 === \count($context) && $context[0] instanceof \Closure) { + try { + $context = $context[0](); + } catch (\Throwable $e) { + $context = [ + 'error_on_context_generation' => $e->getMessage(), + 'exception' => $e, + ]; + } + + if (!\is_array($context)) { + $context = [$context]; + } + + $record = $record->with(context: $context); + } + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php new file mode 100644 index 000000000..5a70ac2e2 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php @@ -0,0 +1,75 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\Level; +use Monolog\Logger; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Injects Git branch and Git commit SHA in all records + * + * @author Nick Otter + * @author Jordi Boggiano + */ +class GitProcessor implements ProcessorInterface +{ + private Level $level; + /** @var array{branch: string, commit: string}|array|null */ + private static $cache = null; + + /** + * @param int|string|Level|LogLevel::* $level The minimum logging level at which this Processor will be triggered + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function __construct(int|string|Level $level = Level::Debug) + { + $this->level = Logger::toMonologLevel($level); + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + // return if the level is not high enough + if ($record->level->isLowerThan($this->level)) { + return $record; + } + + $record->extra['git'] = self::getGitInfo(); + + return $record; + } + + /** + * @return array{branch: string, commit: string}|array + */ + private static function getGitInfo(): array + { + if (self::$cache !== null) { + return self::$cache; + } + + $branches = shell_exec('git branch -v --no-abbrev'); + if (is_string($branches) && 1 === preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) { + return self::$cache = [ + 'branch' => $matches[1], + 'commit' => $matches[2], + ]; + } + + return self::$cache = []; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php new file mode 100644 index 000000000..cba6e0963 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php @@ -0,0 +1,37 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * Injects value of gethostname in all records + */ +class HostnameProcessor implements ProcessorInterface +{ + private static string $host; + + public function __construct() + { + self::$host = (string) gethostname(); + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + $record->extra['hostname'] = self::$host; + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php new file mode 100644 index 000000000..3a6fbfbef --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php @@ -0,0 +1,122 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\Level; +use Monolog\Logger; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Injects line/file:class/function where the log message came from + * + * Warning: This only works if the handler processes the logs directly. + * If you put the processor on a handler that is behind a FingersCrossedHandler + * for example, the processor will only be called once the trigger level is reached, + * and all the log records will have the same file/line/.. data from the call that + * triggered the FingersCrossedHandler. + * + * @author Jordi Boggiano + */ +class IntrospectionProcessor implements ProcessorInterface +{ + private Level $level; + + /** @var string[] */ + private array $skipClassesPartials; + + private int $skipStackFramesCount; + + private const SKIP_FUNCTIONS = [ + 'call_user_func', + 'call_user_func_array', + ]; + + /** + * @param string|int|Level $level The minimum logging level at which this Processor will be triggered + * @param string[] $skipClassesPartials + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function __construct(int|string|Level $level = Level::Debug, array $skipClassesPartials = [], int $skipStackFramesCount = 0) + { + $this->level = Logger::toMonologLevel($level); + $this->skipClassesPartials = array_merge(['Monolog\\'], $skipClassesPartials); + $this->skipStackFramesCount = $skipStackFramesCount; + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + // return if the level is not high enough + if ($record->level->isLowerThan($this->level)) { + return $record; + } + + $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); + + // skip first since it's always the current method + array_shift($trace); + // the call_user_func call is also skipped + array_shift($trace); + + $i = 0; + + while ($this->isTraceClassOrSkippedFunction($trace, $i)) { + if (isset($trace[$i]['class'])) { + foreach ($this->skipClassesPartials as $part) { + if (strpos($trace[$i]['class'], $part) !== false) { + $i++; + + continue 2; + } + } + } elseif (in_array($trace[$i]['function'], self::SKIP_FUNCTIONS, true)) { + $i++; + + continue; + } + + break; + } + + $i += $this->skipStackFramesCount; + + // we should have the call source now + $record->extra = array_merge( + $record->extra, + [ + 'file' => $trace[$i - 1]['file'] ?? null, + 'line' => $trace[$i - 1]['line'] ?? null, + 'class' => $trace[$i]['class'] ?? null, + 'callType' => $trace[$i]['type'] ?? null, + 'function' => $trace[$i]['function'] ?? null, + ] + ); + + return $record; + } + + /** + * @param array $trace + */ + private function isTraceClassOrSkippedFunction(array $trace, int $index): bool + { + if (!isset($trace[$index])) { + return false; + } + + return isset($trace[$index]['class']) || in_array($trace[$index]['function'], self::SKIP_FUNCTIONS, true); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/LoadAverageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/LoadAverageProcessor.php new file mode 100644 index 000000000..64e3c4747 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/LoadAverageProcessor.php @@ -0,0 +1,66 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * Injects sys_getloadavg in all records @see https://www.php.net/manual/en/function.sys-getloadavg.php + * + * @author Johan Vlaar + */ +class LoadAverageProcessor implements ProcessorInterface +{ + public const LOAD_1_MINUTE = 0; + public const LOAD_5_MINUTE = 1; + public const LOAD_15_MINUTE = 2; + + private const AVAILABLE_LOAD = [ + self::LOAD_1_MINUTE, + self::LOAD_5_MINUTE, + self::LOAD_15_MINUTE, + ]; + + /** + * @var int + */ + protected $avgSystemLoad; + + /** + * @param self::LOAD_* $avgSystemLoad + */ + public function __construct(int $avgSystemLoad = self::LOAD_1_MINUTE) + { + if (!in_array($avgSystemLoad, self::AVAILABLE_LOAD, true)) { + throw new \InvalidArgumentException(sprintf('Invalid average system load: `%s`', $avgSystemLoad)); + } + $this->avgSystemLoad = $avgSystemLoad; + } + + /** + * {@inheritDoc} + */ + public function __invoke(LogRecord $record): LogRecord + { + if (!function_exists('sys_getloadavg')) { + return $record; + } + $usage = sys_getloadavg(); + if (false === $usage) { + return $record; + } + + $record->extra['load_average'] = $usage[$this->avgSystemLoad]; + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php new file mode 100644 index 000000000..adc32c65d --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php @@ -0,0 +1,39 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * Injects memory_get_peak_usage in all records + * + * @see Monolog\Processor\MemoryProcessor::__construct() for options + * @author Rob Jensen + */ +class MemoryPeakUsageProcessor extends MemoryProcessor +{ + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + $usage = memory_get_peak_usage($this->realUsage); + + if ($this->useFormatting) { + $usage = $this->formatBytes($usage); + } + + $record->extra['memory_peak_usage'] = $usage; + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php new file mode 100644 index 000000000..f808e51b4 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php @@ -0,0 +1,60 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +/** + * Some methods that are common for all memory processors + * + * @author Rob Jensen + */ +abstract class MemoryProcessor implements ProcessorInterface +{ + /** + * @var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported. + */ + protected bool $realUsage; + + /** + * @var bool If true, then format memory size to human readable string (MB, KB, B depending on size) + */ + protected bool $useFormatting; + + /** + * @param bool $realUsage Set this to true to get the real size of memory allocated from system. + * @param bool $useFormatting If true, then format memory size to human readable string (MB, KB, B depending on size) + */ + public function __construct(bool $realUsage = true, bool $useFormatting = true) + { + $this->realUsage = $realUsage; + $this->useFormatting = $useFormatting; + } + + /** + * Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is + * + * @return string|int Formatted string if $this->useFormatting is true, otherwise return $bytes as int + */ + protected function formatBytes(int $bytes) + { + if (!$this->useFormatting) { + return $bytes; + } + + if ($bytes > 1024 * 1024) { + return round($bytes / 1024 / 1024, 2).' MB'; + } elseif ($bytes > 1024) { + return round($bytes / 1024, 2).' KB'; + } + + return $bytes . ' B'; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php new file mode 100644 index 000000000..a814b1df3 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php @@ -0,0 +1,39 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * Injects memory_get_usage in all records + * + * @see Monolog\Processor\MemoryProcessor::__construct() for options + * @author Rob Jensen + */ +class MemoryUsageProcessor extends MemoryProcessor +{ + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + $usage = memory_get_usage($this->realUsage); + + if ($this->useFormatting) { + $usage = $this->formatBytes($usage); + } + + $record->extra['memory_usage'] = $usage; + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php new file mode 100644 index 000000000..47b1e64ff --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php @@ -0,0 +1,75 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\Level; +use Monolog\Logger; +use Psr\Log\LogLevel; +use Monolog\LogRecord; + +/** + * Injects Hg branch and Hg revision number in all records + * + * @author Jonathan A. Schweder + */ +class MercurialProcessor implements ProcessorInterface +{ + private Level $level; + /** @var array{branch: string, revision: string}|array|null */ + private static $cache = null; + + /** + * @param int|string|Level $level The minimum logging level at which this Processor will be triggered + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function __construct(int|string|Level $level = Level::Debug) + { + $this->level = Logger::toMonologLevel($level); + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + // return if the level is not high enough + if ($record->level->isLowerThan($this->level)) { + return $record; + } + + $record->extra['hg'] = self::getMercurialInfo(); + + return $record; + } + + /** + * @return array{branch: string, revision: string}|array + */ + private static function getMercurialInfo(): array + { + if (self::$cache !== null) { + return self::$cache; + } + + $result = explode(' ', trim((string) shell_exec('hg id -nb'))); + + if (count($result) >= 3) { + return self::$cache = [ + 'branch' => $result[1], + 'revision' => $result[2], + ]; + } + + return self::$cache = []; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php new file mode 100644 index 000000000..bb9a52243 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * Adds value of getmypid into records + * + * @author Andreas Hörnicke + */ +class ProcessIdProcessor implements ProcessorInterface +{ + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + $record->extra['process_id'] = getmypid(); + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php b/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php new file mode 100644 index 000000000..ebe41fc20 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * An optional interface to allow labelling Monolog processors. + * + * @author Nicolas Grekas + */ +interface ProcessorInterface +{ + /** + * @return LogRecord The processed record + */ + public function __invoke(LogRecord $record); +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php new file mode 100644 index 000000000..aad2aad2f --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php @@ -0,0 +1,87 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\Utils; +use Monolog\LogRecord; + +/** + * Processes a record's message according to PSR-3 rules + * + * It replaces {foo} with the value from $context['foo'] + * + * @author Jordi Boggiano + */ +class PsrLogMessageProcessor implements ProcessorInterface +{ + public const SIMPLE_DATE = "Y-m-d\TH:i:s.uP"; + + private ?string $dateFormat; + + private bool $removeUsedContextFields; + + /** + * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format + * @param bool $removeUsedContextFields If set to true the fields interpolated into message gets unset + */ + public function __construct(?string $dateFormat = null, bool $removeUsedContextFields = false) + { + $this->dateFormat = $dateFormat; + $this->removeUsedContextFields = $removeUsedContextFields; + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + if (false === strpos($record->message, '{')) { + return $record; + } + + $replacements = []; + $context = $record->context; + + foreach ($context as $key => $val) { + $placeholder = '{' . $key . '}'; + if (strpos($record->message, $placeholder) === false) { + continue; + } + + if (null === $val || is_scalar($val) || (is_object($val) && method_exists($val, "__toString"))) { + $replacements[$placeholder] = $val; + } elseif ($val instanceof \DateTimeInterface) { + if (null === $this->dateFormat && $val instanceof \Monolog\DateTimeImmutable) { + // handle monolog dates using __toString if no specific dateFormat was asked for + // so that it follows the useMicroseconds flag + $replacements[$placeholder] = (string) $val; + } else { + $replacements[$placeholder] = $val->format($this->dateFormat ?? static::SIMPLE_DATE); + } + } elseif ($val instanceof \UnitEnum) { + $replacements[$placeholder] = $val instanceof \BackedEnum ? $val->value : $val->name; + } elseif (is_object($val)) { + $replacements[$placeholder] = '[object '.Utils::getClass($val).']'; + } elseif (is_array($val)) { + $replacements[$placeholder] = 'array'.Utils::jsonEncode($val, null, true); + } else { + $replacements[$placeholder] = '['.gettype($val).']'; + } + + if ($this->removeUsedContextFields) { + unset($context[$key]); + } + } + + return $record->with(message: strtr($record->message, $replacements), context: $context); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php new file mode 100644 index 000000000..10ed1cea3 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php @@ -0,0 +1,65 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\LogRecord; + +/** + * Adds a tags array into record + * + * @author Martijn Riemers + */ +class TagProcessor implements ProcessorInterface +{ + /** @var string[] */ + private array $tags; + + /** + * @param string[] $tags + */ + public function __construct(array $tags = []) + { + $this->setTags($tags); + } + + /** + * @param string[] $tags + * @return $this + */ + public function addTags(array $tags = []): self + { + $this->tags = array_merge($this->tags, $tags); + + return $this; + } + + /** + * @param string[] $tags + * @return $this + */ + public function setTags(array $tags = []): self + { + $this->tags = $tags; + + return $this; + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + $record->extra['tags'] = $this->tags; + + return $record; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php new file mode 100644 index 000000000..3a0c128c2 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php @@ -0,0 +1,67 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use Monolog\ResettableInterface; +use Monolog\LogRecord; + +/** + * Adds a unique identifier into records + * + * @author Simon Mönch + */ +class UidProcessor implements ProcessorInterface, ResettableInterface +{ + /** @var non-empty-string */ + private string $uid; + + /** + * @param int<1, 32> $length + */ + public function __construct(int $length = 7) + { + if ($length > 32 || $length < 1) { + throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32'); + } + + $this->uid = $this->generateUid($length); + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + $record->extra['uid'] = $this->uid; + + return $record; + } + + public function getUid(): string + { + return $this->uid; + } + + public function reset(): void + { + $this->uid = $this->generateUid(strlen($this->uid)); + } + + /** + * @param positive-int $length + * @return non-empty-string + */ + private function generateUid(int $length): string + { + return substr(bin2hex(random_bytes((int) ceil($length / 2))), 0, $length); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php new file mode 100644 index 000000000..1abb8400c --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php @@ -0,0 +1,115 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Processor; + +use ArrayAccess; +use Monolog\LogRecord; + +/** + * Injects url/method and remote IP of the current web request in all records + * + * @author Jordi Boggiano + */ +class WebProcessor implements ProcessorInterface +{ + /** + * @var array|ArrayAccess + */ + protected array|ArrayAccess $serverData; + + /** + * Default fields + * + * Array is structured as [key in record.extra => key in $serverData] + * + * @var array + */ + protected array $extraFields = [ + 'url' => 'REQUEST_URI', + 'ip' => 'REMOTE_ADDR', + 'http_method' => 'REQUEST_METHOD', + 'server' => 'SERVER_NAME', + 'referrer' => 'HTTP_REFERER', + 'user_agent' => 'HTTP_USER_AGENT', + ]; + + /** + * @param array|ArrayAccess|null $serverData Array or object w/ ArrayAccess that provides access to the $_SERVER data + * @param array|array|null $extraFields Field names and the related key inside $serverData to be added (or just a list of field names to use the default configured $serverData mapping). If not provided it defaults to: [url, ip, http_method, server, referrer] + unique_id if present in server data + */ + public function __construct(array|ArrayAccess|null $serverData = null, array|null $extraFields = null) + { + if (null === $serverData) { + $this->serverData = &$_SERVER; + } else { + $this->serverData = $serverData; + } + + $defaultEnabled = ['url', 'ip', 'http_method', 'server', 'referrer']; + if (isset($this->serverData['UNIQUE_ID'])) { + $this->extraFields['unique_id'] = 'UNIQUE_ID'; + $defaultEnabled[] = 'unique_id'; + } + + if (null === $extraFields) { + $extraFields = $defaultEnabled; + } + if (isset($extraFields[0])) { + foreach (array_keys($this->extraFields) as $fieldName) { + if (!in_array($fieldName, $extraFields, true)) { + unset($this->extraFields[$fieldName]); + } + } + } else { + $this->extraFields = $extraFields; + } + } + + /** + * @inheritDoc + */ + public function __invoke(LogRecord $record): LogRecord + { + // skip processing if for some reason request data + // is not present (CLI or wonky SAPIs) + if (!isset($this->serverData['REQUEST_URI'])) { + return $record; + } + + $record->extra = $this->appendExtraFields($record->extra); + + return $record; + } + + /** + * @return $this + */ + public function addExtraField(string $extraName, string $serverName): self + { + $this->extraFields[$extraName] = $serverName; + + return $this; + } + + /** + * @param mixed[] $extra + * @return mixed[] + */ + private function appendExtraFields(array $extra): array + { + foreach ($this->extraFields as $extraName => $serverName) { + $extra[$extraName] = $this->serverData[$serverName] ?? null; + } + + return $extra; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Registry.php b/vendor/monolog/monolog/src/Monolog/Registry.php new file mode 100644 index 000000000..2ef2edceb --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Registry.php @@ -0,0 +1,133 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use InvalidArgumentException; + +/** + * Monolog log registry + * + * Allows to get `Logger` instances in the global scope + * via static method calls on this class. + * + * + * $application = new Monolog\Logger('application'); + * $api = new Monolog\Logger('api'); + * + * Monolog\Registry::addLogger($application); + * Monolog\Registry::addLogger($api); + * + * function testLogger() + * { + * Monolog\Registry::api()->error('Sent to $api Logger instance'); + * Monolog\Registry::application()->error('Sent to $application Logger instance'); + * } + * + * + * @author Tomas Tatarko + */ +class Registry +{ + /** + * List of all loggers in the registry (by named indexes) + * + * @var Logger[] + */ + private static array $loggers = []; + + /** + * Adds new logging channel to the registry + * + * @param Logger $logger Instance of the logging channel + * @param string|null $name Name of the logging channel ($logger->getName() by default) + * @param bool $overwrite Overwrite instance in the registry if the given name already exists? + * @throws \InvalidArgumentException If $overwrite set to false and named Logger instance already exists + */ + public static function addLogger(Logger $logger, ?string $name = null, bool $overwrite = false): void + { + $name = $name ?? $logger->getName(); + + if (isset(self::$loggers[$name]) && !$overwrite) { + throw new InvalidArgumentException('Logger with the given name already exists'); + } + + self::$loggers[$name] = $logger; + } + + /** + * Checks if such logging channel exists by name or instance + * + * @param string|Logger $logger Name or logger instance + */ + public static function hasLogger($logger): bool + { + if ($logger instanceof Logger) { + $index = array_search($logger, self::$loggers, true); + + return false !== $index; + } + + return isset(self::$loggers[$logger]); + } + + /** + * Removes instance from registry by name or instance + * + * @param string|Logger $logger Name or logger instance + */ + public static function removeLogger($logger): void + { + if ($logger instanceof Logger) { + if (false !== ($idx = array_search($logger, self::$loggers, true))) { + unset(self::$loggers[$idx]); + } + } else { + unset(self::$loggers[$logger]); + } + } + + /** + * Clears the registry + */ + public static function clear(): void + { + self::$loggers = []; + } + + /** + * Gets Logger instance from the registry + * + * @param string $name Name of the requested Logger instance + * @throws \InvalidArgumentException If named Logger instance is not in the registry + */ + public static function getInstance(string $name): Logger + { + if (!isset(self::$loggers[$name])) { + throw new InvalidArgumentException(sprintf('Requested "%s" logger instance is not in the registry', $name)); + } + + return self::$loggers[$name]; + } + + /** + * Gets Logger instance from the registry via static method call + * + * @param string $name Name of the requested Logger instance + * @param mixed[] $arguments Arguments passed to static method call + * @throws \InvalidArgumentException If named Logger instance is not in the registry + * @return Logger Requested instance of Logger + */ + public static function __callStatic(string $name, array $arguments): Logger + { + return self::getInstance($name); + } +} diff --git a/vendor/monolog/monolog/src/Monolog/ResettableInterface.php b/vendor/monolog/monolog/src/Monolog/ResettableInterface.php new file mode 100644 index 000000000..4983a6b35 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/ResettableInterface.php @@ -0,0 +1,31 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +/** + * Handler or Processor implementing this interface will be reset when Logger::reset() is called. + * + * Resetting ends a log cycle gets them back to their initial state. + * + * Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal + * state, and getting it back to a state in which it can receive log records again. + * + * This is useful in case you want to avoid logs leaking between two requests or jobs when you + * have a long running process like a worker or an application server serving multiple requests + * in one process. + * + * @author Grégoire Pineau + */ +interface ResettableInterface +{ + public function reset(): void; +} diff --git a/vendor/monolog/monolog/src/Monolog/SignalHandler.php b/vendor/monolog/monolog/src/Monolog/SignalHandler.php new file mode 100644 index 000000000..b930ca439 --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/SignalHandler.php @@ -0,0 +1,113 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +use Psr\Log\LoggerInterface; +use Psr\Log\LogLevel; +use ReflectionExtension; + +/** + * Monolog POSIX signal handler + * + * @author Robert Gust-Bardon + */ +class SignalHandler +{ + private LoggerInterface $logger; + + /** @var array SIG_DFL, SIG_IGN or previous callable */ + private array $previousSignalHandler = []; + /** @var array */ + private array $signalLevelMap = []; + /** @var array */ + private array $signalRestartSyscalls = []; + + public function __construct(LoggerInterface $logger) + { + $this->logger = $logger; + } + + /** + * @param int|string|Level $level Level or level name + * @return $this + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + public function registerSignalHandler(int $signo, int|string|Level $level = LogLevel::CRITICAL, bool $callPrevious = true, bool $restartSyscalls = true, ?bool $async = true): self + { + if (!extension_loaded('pcntl') || !function_exists('pcntl_signal')) { + return $this; + } + + $level = Logger::toMonologLevel($level)->toPsrLogLevel(); + + if ($callPrevious) { + $handler = pcntl_signal_get_handler($signo); + $this->previousSignalHandler[$signo] = $handler; + } else { + unset($this->previousSignalHandler[$signo]); + } + $this->signalLevelMap[$signo] = $level; + $this->signalRestartSyscalls[$signo] = $restartSyscalls; + + if ($async !== null) { + pcntl_async_signals($async); + } + + pcntl_signal($signo, [$this, 'handleSignal'], $restartSyscalls); + + return $this; + } + + /** + * @param mixed $siginfo + */ + public function handleSignal(int $signo, $siginfo = null): void + { + /** @var array $signals */ + static $signals = []; + + if (\count($signals) === 0 && extension_loaded('pcntl')) { + $pcntl = new ReflectionExtension('pcntl'); + foreach ($pcntl->getConstants() as $name => $value) { + if (substr($name, 0, 3) === 'SIG' && $name[3] !== '_' && is_int($value)) { + $signals[$value] = $name; + } + } + } + + $level = $this->signalLevelMap[$signo] ?? LogLevel::CRITICAL; + $signal = $signals[$signo] ?? $signo; + $context = $siginfo ?? []; + $this->logger->log($level, sprintf('Program received signal %s', $signal), $context); + + if (!isset($this->previousSignalHandler[$signo])) { + return; + } + + if ($this->previousSignalHandler[$signo] === SIG_DFL) { + if (extension_loaded('pcntl') && function_exists('pcntl_signal') && function_exists('pcntl_sigprocmask') && function_exists('pcntl_signal_dispatch') + && extension_loaded('posix') && function_exists('posix_getpid') && function_exists('posix_kill') + ) { + $restartSyscalls = $this->signalRestartSyscalls[$signo] ?? true; + pcntl_signal($signo, SIG_DFL, $restartSyscalls); + pcntl_sigprocmask(SIG_UNBLOCK, [$signo], $oldset); + posix_kill(posix_getpid(), $signo); + pcntl_signal_dispatch(); + pcntl_sigprocmask(SIG_SETMASK, $oldset); + pcntl_signal($signo, [$this, 'handleSignal'], $restartSyscalls); + } + } elseif (is_callable($this->previousSignalHandler[$signo])) { + $this->previousSignalHandler[$signo]($signo, $siginfo); + } + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Test/TestCase.php b/vendor/monolog/monolog/src/Monolog/Test/TestCase.php new file mode 100644 index 000000000..29ec7c96e --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Test/TestCase.php @@ -0,0 +1,82 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Test; + +use Monolog\Level; +use Monolog\Logger; +use Monolog\LogRecord; +use Monolog\DateTimeImmutable; +use Monolog\Formatter\FormatterInterface; +use Psr\Log\LogLevel; + +/** + * Lets you easily generate log records and a dummy formatter for testing purposes + * + * @author Jordi Boggiano + * + * @internal feel free to reuse this to test your own handlers, this is marked internal to avoid issues with PHPStorm https://github.com/Seldaek/monolog/issues/1677 + */ +class TestCase extends \PHPUnit\Framework\TestCase +{ + public function tearDown(): void + { + parent::tearDown(); + + if (isset($this->handler)) { + unset($this->handler); + } + } + + /** + * @param array $context + * @param array $extra + * + * @phpstan-param value-of|value-of|Level|LogLevel::* $level + */ + protected function getRecord(int|string|Level $level = Level::Warning, string|\Stringable $message = 'test', array $context = [], string $channel = 'test', \DateTimeImmutable $datetime = new DateTimeImmutable(true), array $extra = []): LogRecord + { + return new LogRecord( + message: (string) $message, + context: $context, + level: Logger::toMonologLevel($level), + channel: $channel, + datetime: $datetime, + extra: $extra, + ); + } + + /** + * @phpstan-return list + */ + protected function getMultipleRecords(): array + { + return [ + $this->getRecord(Level::Debug, 'debug message 1'), + $this->getRecord(Level::Debug, 'debug message 2'), + $this->getRecord(Level::Info, 'information'), + $this->getRecord(Level::Warning, 'warning'), + $this->getRecord(Level::Error, 'error'), + ]; + } + + protected function getIdentityFormatter(): FormatterInterface + { + $formatter = $this->createMock(FormatterInterface::class); + $formatter->expects(self::any()) + ->method('format') + ->willReturnCallback(function ($record) { + return $record->message; + }); + + return $formatter; + } +} diff --git a/vendor/monolog/monolog/src/Monolog/Utils.php b/vendor/monolog/monolog/src/Monolog/Utils.php new file mode 100644 index 000000000..7848f0ecd --- /dev/null +++ b/vendor/monolog/monolog/src/Monolog/Utils.php @@ -0,0 +1,274 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog; + +final class Utils +{ + const DEFAULT_JSON_FLAGS = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION | JSON_INVALID_UTF8_SUBSTITUTE | JSON_PARTIAL_OUTPUT_ON_ERROR; + + public static function getClass(object $object): string + { + $class = \get_class($object); + + if (false === ($pos = \strpos($class, "@anonymous\0"))) { + return $class; + } + + if (false === ($parent = \get_parent_class($class))) { + return \substr($class, 0, $pos + 10); + } + + return $parent . '@anonymous'; + } + + public static function substr(string $string, int $start, ?int $length = null): string + { + if (extension_loaded('mbstring')) { + return mb_strcut($string, $start, $length); + } + + return substr($string, $start, (null === $length) ? strlen($string) : $length); + } + + /** + * Makes sure if a relative path is passed in it is turned into an absolute path + * + * @param string $streamUrl stream URL or path without protocol + */ + public static function canonicalizePath(string $streamUrl): string + { + $prefix = ''; + if ('file://' === substr($streamUrl, 0, 7)) { + $streamUrl = substr($streamUrl, 7); + $prefix = 'file://'; + } + + // other type of stream, not supported + if (false !== strpos($streamUrl, '://')) { + return $streamUrl; + } + + // already absolute + if (substr($streamUrl, 0, 1) === '/' || substr($streamUrl, 1, 1) === ':' || substr($streamUrl, 0, 2) === '\\\\') { + return $prefix.$streamUrl; + } + + $streamUrl = getcwd() . '/' . $streamUrl; + + return $prefix.$streamUrl; + } + + /** + * Return the JSON representation of a value + * + * @param mixed $data + * @param int $encodeFlags flags to pass to json encode, defaults to DEFAULT_JSON_FLAGS + * @param bool $ignoreErrors whether to ignore encoding errors or to throw on error, when ignored and the encoding fails, "null" is returned which is valid json for null + * @throws \RuntimeException if encoding fails and errors are not ignored + * @return string when errors are ignored and the encoding fails, "null" is returned which is valid json for null + */ + public static function jsonEncode($data, ?int $encodeFlags = null, bool $ignoreErrors = false): string + { + if (null === $encodeFlags) { + $encodeFlags = self::DEFAULT_JSON_FLAGS; + } + + if ($ignoreErrors) { + $json = @json_encode($data, $encodeFlags); + if (false === $json) { + return 'null'; + } + + return $json; + } + + $json = json_encode($data, $encodeFlags); + if (false === $json) { + $json = self::handleJsonError(json_last_error(), $data); + } + + return $json; + } + + /** + * Handle a json_encode failure. + * + * If the failure is due to invalid string encoding, try to clean the + * input and encode again. If the second encoding attempt fails, the + * initial error is not encoding related or the input can't be cleaned then + * raise a descriptive exception. + * + * @param int $code return code of json_last_error function + * @param mixed $data data that was meant to be encoded + * @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION + * @throws \RuntimeException if failure can't be corrected + * @return string JSON encoded data after error correction + */ + public static function handleJsonError(int $code, $data, ?int $encodeFlags = null): string + { + if ($code !== JSON_ERROR_UTF8) { + self::throwEncodeError($code, $data); + } + + if (is_string($data)) { + self::detectAndCleanUtf8($data); + } elseif (is_array($data)) { + array_walk_recursive($data, ['Monolog\Utils', 'detectAndCleanUtf8']); + } else { + self::throwEncodeError($code, $data); + } + + if (null === $encodeFlags) { + $encodeFlags = self::DEFAULT_JSON_FLAGS; + } + + $json = json_encode($data, $encodeFlags); + + if ($json === false) { + self::throwEncodeError(json_last_error(), $data); + } + + return $json; + } + + /** + * @internal + */ + public static function pcreLastErrorMessage(int $code): string + { + if (PHP_VERSION_ID >= 80000) { + return preg_last_error_msg(); + } + + $constants = (get_defined_constants(true))['pcre']; + $constants = array_filter($constants, function ($key) { + return substr($key, -6) == '_ERROR'; + }, ARRAY_FILTER_USE_KEY); + + $constants = array_flip($constants); + + return $constants[$code] ?? 'UNDEFINED_ERROR'; + } + + /** + * Throws an exception according to a given code with a customized message + * + * @param int $code return code of json_last_error function + * @param mixed $data data that was meant to be encoded + * @throws \RuntimeException + */ + private static function throwEncodeError(int $code, $data): never + { + $msg = match ($code) { + JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', + JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', + JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', + JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', + default => 'Unknown error', + }; + + throw new \RuntimeException('JSON encoding failed: '.$msg.'. Encoding: '.var_export($data, true)); + } + + /** + * Detect invalid UTF-8 string characters and convert to valid UTF-8. + * + * Valid UTF-8 input will be left unmodified, but strings containing + * invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed + * original encoding of ISO-8859-15. This conversion may result in + * incorrect output if the actual encoding was not ISO-8859-15, but it + * will be clean UTF-8 output and will not rely on expensive and fragile + * detection algorithms. + * + * Function converts the input in place in the passed variable so that it + * can be used as a callback for array_walk_recursive. + * + * @param mixed $data Input to check and convert if needed, passed by ref + */ + private static function detectAndCleanUtf8(&$data): void + { + if (is_string($data) && preg_match('//u', $data) !== 1) { + $data = preg_replace_callback( + '/[\x80-\xFF]+/', + function (array $m): string { + return function_exists('mb_convert_encoding') ? mb_convert_encoding($m[0], 'UTF-8', 'ISO-8859-1') : utf8_encode($m[0]); + }, + $data + ); + if (!is_string($data)) { + $pcreErrorCode = preg_last_error(); + + throw new \RuntimeException('Failed to preg_replace_callback: ' . $pcreErrorCode . ' / ' . self::pcreLastErrorMessage($pcreErrorCode)); + } + $data = str_replace( + ['¤', '¦', '¨', '´', '¸', '¼', '½', '¾'], + ['€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'], + $data + ); + } + } + + /** + * Converts a string with a valid 'memory_limit' format, to bytes. + * + * @param string|false $val + * @return int|false Returns an integer representing bytes. Returns FALSE in case of error. + */ + public static function expandIniShorthandBytes($val) + { + if (!is_string($val)) { + return false; + } + + // support -1 + if ((int) $val < 0) { + return (int) $val; + } + + if (preg_match('/^\s*(?\d+)(?:\.\d+)?\s*(?[gmk]?)\s*$/i', $val, $match) !== 1) { + return false; + } + + $val = (int) $match['val']; + switch (strtolower($match['unit'] ?? '')) { + case 'g': + $val *= 1024; + // no break + case 'm': + $val *= 1024; + // no break + case 'k': + $val *= 1024; + } + + return $val; + } + + public static function getRecordMessageForException(LogRecord $record): string + { + $context = ''; + $extra = ''; + + try { + if (\count($record->context) > 0) { + $context = "\nContext: " . json_encode($record->context, JSON_THROW_ON_ERROR); + } + if (\count($record->extra) > 0) { + $extra = "\nExtra: " . json_encode($record->extra, JSON_THROW_ON_ERROR); + } + } catch (\Throwable $e) { + // noop + } + + return "\nThe exception occurred while attempting to log: " . $record->message . $context . $extra; + } +} diff --git a/vendor/psr/http-client/CHANGELOG.md b/vendor/psr/http-client/CHANGELOG.md new file mode 100644 index 000000000..babba7c7b --- /dev/null +++ b/vendor/psr/http-client/CHANGELOG.md @@ -0,0 +1,31 @@ +# Changelog + +All notable changes to this project will be documented in this file, in reverse chronological order by release. + +## 1.0.3 + +Add `source` link in composer.json. No code changes. + +## 1.0.2 + +Allow PSR-7 (psr/http-message) 2.0. No code changes. + +## 1.0.1 + +Allow installation with PHP 8. No code changes. + +## 1.0.0 + +First stable release. No changes since 0.3.0. + +## 0.3.0 + +Added Interface suffix on exceptions + +## 0.2.0 + +All exceptions are in `Psr\Http\Client` namespace + +## 0.1.0 + +First release diff --git a/vendor/psr/http-client/LICENSE b/vendor/psr/http-client/LICENSE new file mode 100644 index 000000000..cd5e0020a --- /dev/null +++ b/vendor/psr/http-client/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2017 PHP Framework Interoperability Group + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/psr/http-client/README.md b/vendor/psr/http-client/README.md new file mode 100644 index 000000000..84af5c55d --- /dev/null +++ b/vendor/psr/http-client/README.md @@ -0,0 +1,12 @@ +HTTP Client +=========== + +This repository holds all the common code related to [PSR-18 (HTTP Client)][psr-url]. + +Note that this is not a HTTP Client implementation of its own. It is merely abstractions that describe the components of a HTTP Client. + +The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. + +[psr-url]: https://www.php-fig.org/psr/psr-18 +[package-url]: https://packagist.org/packages/psr/http-client +[implementation-url]: https://packagist.org/providers/psr/http-client-implementation diff --git a/vendor/psr/http-client/composer.json b/vendor/psr/http-client/composer.json new file mode 100644 index 000000000..6fed350be --- /dev/null +++ b/vendor/psr/http-client/composer.json @@ -0,0 +1,30 @@ +{ + "name": "psr/http-client", + "description": "Common interface for HTTP clients", + "keywords": ["psr", "psr-18", "http", "http-client"], + "homepage": "https://github.com/php-fig/http-client", + "license": "MIT", + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/vendor/psr/http-client/src/ClientExceptionInterface.php b/vendor/psr/http-client/src/ClientExceptionInterface.php new file mode 100644 index 000000000..aa0b9cf14 --- /dev/null +++ b/vendor/psr/http-client/src/ClientExceptionInterface.php @@ -0,0 +1,10 @@ +=7.0.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/vendor/psr/http-factory/src/RequestFactoryInterface.php b/vendor/psr/http-factory/src/RequestFactoryInterface.php new file mode 100644 index 000000000..cb39a08bf --- /dev/null +++ b/vendor/psr/http-factory/src/RequestFactoryInterface.php @@ -0,0 +1,18 @@ + `RequestInterface`, `ServerRequestInterface`, `ResponseInterface` extend `MessageInterface` because the `Request` and the `Response` are `HTTP Messages`. +> When using `ServerRequestInterface`, both `RequestInterface` and `Psr\Http\Message\MessageInterface` methods are considered. + diff --git a/vendor/psr/http-message/docs/PSR7-Usage.md b/vendor/psr/http-message/docs/PSR7-Usage.md new file mode 100644 index 000000000..b6d048a34 --- /dev/null +++ b/vendor/psr/http-message/docs/PSR7-Usage.md @@ -0,0 +1,159 @@ +### PSR-7 Usage + +All PSR-7 applications comply with these interfaces +They were created to establish a standard between middleware implementations. + +> `RequestInterface`, `ServerRequestInterface`, `ResponseInterface` extend `MessageInterface` because the `Request` and the `Response` are `HTTP Messages`. +> When using `ServerRequestInterface`, both `RequestInterface` and `Psr\Http\Message\MessageInterface` methods are considered. + + +The following examples will illustrate how basic operations are done in PSR-7. + +##### Examples + + +For this examples to work (at least) a PSR-7 implementation package is required. (eg: zendframework/zend-diactoros, guzzlehttp/psr7, slim/slim, etc) +All PSR-7 implementations should have the same behaviour. + +The following will be assumed: +`$request` is an object of `Psr\Http\Message\RequestInterface` and + +`$response` is an object implementing `Psr\Http\Message\RequestInterface` + + +### Working with HTTP Headers + +#### Adding headers to response: + +```php +$response->withHeader('My-Custom-Header', 'My Custom Message'); +``` + +#### Appending values to headers + +```php +$response->withAddedHeader('My-Custom-Header', 'The second message'); +``` + +#### Checking if header exists: + +```php +$request->hasHeader('My-Custom-Header'); // will return false +$response->hasHeader('My-Custom-Header'); // will return true +``` + +> Note: My-Custom-Header was only added in the Response + +#### Getting comma-separated values from a header (also applies to request) + +```php +// getting value from request headers +$request->getHeaderLine('Content-Type'); // will return: "text/html; charset=UTF-8" +// getting value from response headers +$response->getHeaderLine('My-Custom-Header'); // will return: "My Custom Message; The second message" +``` + +#### Getting array of value from a header (also applies to request) +```php +// getting value from request headers +$request->getHeader('Content-Type'); // will return: ["text/html", "charset=UTF-8"] +// getting value from response headers +$response->getHeader('My-Custom-Header'); // will return: ["My Custom Message", "The second message"] +``` + +#### Removing headers from HTTP Messages +```php +// removing a header from Request, removing deprecated "Content-MD5" header +$request->withoutHeader('Content-MD5'); + +// removing a header from Response +// effect: the browser won't know the size of the stream +// the browser will download the stream till it ends +$response->withoutHeader('Content-Length'); +``` + +### Working with HTTP Message Body + +When working with the PSR-7 there are two methods of implementation: +#### 1. Getting the body separately + +> This method makes the body handling easier to understand and is useful when repeatedly calling body methods. (You only call `getBody()` once). Using this method mistakes like `$response->write()` are also prevented. + +```php +$body = $response->getBody(); +// operations on body, eg. read, write, seek +// ... +// replacing the old body +$response->withBody($body); +// this last statement is optional as we working with objects +// in this case the "new" body is same with the "old" one +// the $body variable has the same value as the one in $request, only the reference is passed +``` + +#### 2. Working directly on response + +> This method is useful when only performing few operations as the `$request->getBody()` statement fragment is required + +```php +$response->getBody()->write('hello'); +``` + +### Getting the body contents + +The following snippet gets the contents of a stream contents. +> Note: Streams must be rewinded, if content was written into streams, it will be ignored when calling `getContents()` because the stream pointer is set to the last character, which is `\0` - meaning end of stream. +```php +$body = $response->getBody(); +$body->rewind(); // or $body->seek(0); +$bodyText = $body->getContents(); +``` +> Note: If `$body->seek(1)` is called before `$body->getContents()`, the first character will be ommited as the starting pointer is set to `1`, not `0`. This is why using `$body->rewind()` is recommended. + +### Append to body + +```php +$response->getBody()->write('Hello'); // writing directly +$body = $request->getBody(); // which is a `StreamInterface` +$body->write('xxxxx'); +``` + +### Prepend to body +Prepending is different when it comes to streams. The content must be copied before writing the content to be prepended. +The following example will explain the behaviour of streams. + +```php +// assuming our response is initially empty +$body = $repsonse->getBody(); +// writing the string "abcd" +$body->write('abcd'); + +// seeking to start of stream +$body->seek(0); +// writing 'ef' +$body->write('ef'); // at this point the stream contains "efcd" +``` + +#### Prepending by rewriting separately + +```php +// assuming our response body stream only contains: "abcd" +$body = $response->getBody(); +$body->rewind(); +$contents = $body->getContents(); // abcd +// seeking the stream to beginning +$body->rewind(); +$body->write('ef'); // stream contains "efcd" +$body->write($contents); // stream contains "efabcd" +``` + +> Note: `getContents()` seeks the stream while reading it, therefore if the second `rewind()` method call was not present the stream would have resulted in `abcdefabcd` because the `write()` method appends to stream if not preceeded by `rewind()` or `seek(0)`. + +#### Prepending by using contents as a string +```php +$body = $response->getBody(); +$body->rewind(); +$contents = $body->getContents(); // efabcd +$contents = 'ef'.$contents; +$body->rewind(); +$body->write($contents); +``` diff --git a/vendor/psr/http-message/src/MessageInterface.php b/vendor/psr/http-message/src/MessageInterface.php new file mode 100644 index 000000000..a83c98518 --- /dev/null +++ b/vendor/psr/http-message/src/MessageInterface.php @@ -0,0 +1,187 @@ +getHeaders() as $name => $values) { + * echo $name . ": " . implode(", ", $values); + * } + * + * // Emit headers iteratively: + * foreach ($message->getHeaders() as $name => $values) { + * foreach ($values as $value) { + * header(sprintf('%s: %s', $name, $value), false); + * } + * } + * + * While header names are not case-sensitive, getHeaders() will preserve the + * exact case in which headers were originally specified. + * + * @return string[][] Returns an associative array of the message's headers. Each + * key MUST be a header name, and each value MUST be an array of strings + * for that header. + */ + public function getHeaders(): array; + + /** + * Checks if a header exists by the given case-insensitive name. + * + * @param string $name Case-insensitive header field name. + * @return bool Returns true if any header names match the given header + * name using a case-insensitive string comparison. Returns false if + * no matching header name is found in the message. + */ + public function hasHeader(string $name): bool; + + /** + * Retrieves a message header value by the given case-insensitive name. + * + * This method returns an array of all the header values of the given + * case-insensitive header name. + * + * If the header does not appear in the message, this method MUST return an + * empty array. + * + * @param string $name Case-insensitive header field name. + * @return string[] An array of string values as provided for the given + * header. If the header does not appear in the message, this method MUST + * return an empty array. + */ + public function getHeader(string $name): array; + + /** + * Retrieves a comma-separated string of the values for a single header. + * + * This method returns all of the header values of the given + * case-insensitive header name as a string concatenated together using + * a comma. + * + * NOTE: Not all header values may be appropriately represented using + * comma concatenation. For such headers, use getHeader() instead + * and supply your own delimiter when concatenating. + * + * If the header does not appear in the message, this method MUST return + * an empty string. + * + * @param string $name Case-insensitive header field name. + * @return string A string of values as provided for the given header + * concatenated together using a comma. If the header does not appear in + * the message, this method MUST return an empty string. + */ + public function getHeaderLine(string $name): string; + + /** + * Return an instance with the provided value replacing the specified header. + * + * While header names are case-insensitive, the casing of the header will + * be preserved by this function, and returned from getHeaders(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * new and/or updated header and value. + * + * @param string $name Case-insensitive header field name. + * @param string|string[] $value Header value(s). + * @return static + * @throws \InvalidArgumentException for invalid header names or values. + */ + public function withHeader(string $name, $value): MessageInterface; + + /** + * Return an instance with the specified header appended with the given value. + * + * Existing values for the specified header will be maintained. The new + * value(s) will be appended to the existing list. If the header did not + * exist previously, it will be added. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * new header and/or value. + * + * @param string $name Case-insensitive header field name to add. + * @param string|string[] $value Header value(s). + * @return static + * @throws \InvalidArgumentException for invalid header names or values. + */ + public function withAddedHeader(string $name, $value): MessageInterface; + + /** + * Return an instance without the specified header. + * + * Header resolution MUST be done without case-sensitivity. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that removes + * the named header. + * + * @param string $name Case-insensitive header field name to remove. + * @return static + */ + public function withoutHeader(string $name): MessageInterface; + + /** + * Gets the body of the message. + * + * @return StreamInterface Returns the body as a stream. + */ + public function getBody(): StreamInterface; + + /** + * Return an instance with the specified message body. + * + * The body MUST be a StreamInterface object. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return a new instance that has the + * new body stream. + * + * @param StreamInterface $body Body. + * @return static + * @throws \InvalidArgumentException When the body is not valid. + */ + public function withBody(StreamInterface $body): MessageInterface; +} diff --git a/vendor/psr/http-message/src/RequestInterface.php b/vendor/psr/http-message/src/RequestInterface.php new file mode 100644 index 000000000..33f85e559 --- /dev/null +++ b/vendor/psr/http-message/src/RequestInterface.php @@ -0,0 +1,130 @@ +getQuery()` + * or from the `QUERY_STRING` server param. + * + * @return array + */ + public function getQueryParams(): array; + + /** + * Return an instance with the specified query string arguments. + * + * These values SHOULD remain immutable over the course of the incoming + * request. They MAY be injected during instantiation, such as from PHP's + * $_GET superglobal, or MAY be derived from some other value such as the + * URI. In cases where the arguments are parsed from the URI, the data + * MUST be compatible with what PHP's parse_str() would return for + * purposes of how duplicate query parameters are handled, and how nested + * sets are handled. + * + * Setting query string arguments MUST NOT change the URI stored by the + * request, nor the values in the server params. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated query string arguments. + * + * @param array $query Array of query string arguments, typically from + * $_GET. + * @return static + */ + public function withQueryParams(array $query): ServerRequestInterface; + + /** + * Retrieve normalized file upload data. + * + * This method returns upload metadata in a normalized tree, with each leaf + * an instance of Psr\Http\Message\UploadedFileInterface. + * + * These values MAY be prepared from $_FILES or the message body during + * instantiation, or MAY be injected via withUploadedFiles(). + * + * @return array An array tree of UploadedFileInterface instances; an empty + * array MUST be returned if no data is present. + */ + public function getUploadedFiles(): array; + + /** + * Create a new instance with the specified uploaded files. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated body parameters. + * + * @param array $uploadedFiles An array tree of UploadedFileInterface instances. + * @return static + * @throws \InvalidArgumentException if an invalid structure is provided. + */ + public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface; + + /** + * Retrieve any parameters provided in the request body. + * + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, this method MUST + * return the contents of $_POST. + * + * Otherwise, this method may return any results of deserializing + * the request body content; as parsing returns structured content, the + * potential types MUST be arrays or objects only. A null value indicates + * the absence of body content. + * + * @return null|array|object The deserialized body parameters, if any. + * These will typically be an array or object. + */ + public function getParsedBody(); + + /** + * Return an instance with the specified body parameters. + * + * These MAY be injected during instantiation. + * + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, use this method + * ONLY to inject the contents of $_POST. + * + * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of + * deserializing the request body content. Deserialization/parsing returns + * structured data, and, as such, this method ONLY accepts arrays or objects, + * or a null value if nothing was available to parse. + * + * As an example, if content negotiation determines that the request data + * is a JSON payload, this method could be used to create a request + * instance with the deserialized parameters. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated body parameters. + * + * @param null|array|object $data The deserialized body data. This will + * typically be in an array or object. + * @return static + * @throws \InvalidArgumentException if an unsupported argument type is + * provided. + */ + public function withParsedBody($data): ServerRequestInterface; + + /** + * Retrieve attributes derived from the request. + * + * The request "attributes" may be used to allow injection of any + * parameters derived from the request: e.g., the results of path + * match operations; the results of decrypting cookies; the results of + * deserializing non-form-encoded message bodies; etc. Attributes + * will be application and request specific, and CAN be mutable. + * + * @return array Attributes derived from the request. + */ + public function getAttributes(): array; + + /** + * Retrieve a single derived request attribute. + * + * Retrieves a single derived request attribute as described in + * getAttributes(). If the attribute has not been previously set, returns + * the default value as provided. + * + * This method obviates the need for a hasAttribute() method, as it allows + * specifying a default value to return if the attribute is not found. + * + * @see getAttributes() + * @param string $name The attribute name. + * @param mixed $default Default value to return if the attribute does not exist. + * @return mixed + */ + public function getAttribute(string $name, $default = null); + + /** + * Return an instance with the specified derived request attribute. + * + * This method allows setting a single derived request attribute as + * described in getAttributes(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated attribute. + * + * @see getAttributes() + * @param string $name The attribute name. + * @param mixed $value The value of the attribute. + * @return static + */ + public function withAttribute(string $name, $value): ServerRequestInterface; + + /** + * Return an instance that removes the specified derived request attribute. + * + * This method allows removing a single derived request attribute as + * described in getAttributes(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that removes + * the attribute. + * + * @see getAttributes() + * @param string $name The attribute name. + * @return static + */ + public function withoutAttribute(string $name): ServerRequestInterface; +} diff --git a/vendor/psr/http-message/src/StreamInterface.php b/vendor/psr/http-message/src/StreamInterface.php new file mode 100644 index 000000000..a62aabb82 --- /dev/null +++ b/vendor/psr/http-message/src/StreamInterface.php @@ -0,0 +1,158 @@ + + * [user-info@]host[:port] + * + * + * If the port component is not set or is the standard port for the current + * scheme, it SHOULD NOT be included. + * + * @see https://tools.ietf.org/html/rfc3986#section-3.2 + * @return string The URI authority, in "[user-info@]host[:port]" format. + */ + public function getAuthority(): string; + + /** + * Retrieve the user information component of the URI. + * + * If no user information is present, this method MUST return an empty + * string. + * + * If a user is present in the URI, this will return that value; + * additionally, if the password is also present, it will be appended to the + * user value, with a colon (":") separating the values. + * + * The trailing "@" character is not part of the user information and MUST + * NOT be added. + * + * @return string The URI user information, in "username[:password]" format. + */ + public function getUserInfo(): string; + + /** + * Retrieve the host component of the URI. + * + * If no host is present, this method MUST return an empty string. + * + * The value returned MUST be normalized to lowercase, per RFC 3986 + * Section 3.2.2. + * + * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 + * @return string The URI host. + */ + public function getHost(): string; + + /** + * Retrieve the port component of the URI. + * + * If a port is present, and it is non-standard for the current scheme, + * this method MUST return it as an integer. If the port is the standard port + * used with the current scheme, this method SHOULD return null. + * + * If no port is present, and no scheme is present, this method MUST return + * a null value. + * + * If no port is present, but a scheme is present, this method MAY return + * the standard port for that scheme, but SHOULD return null. + * + * @return null|int The URI port. + */ + public function getPort(): ?int; + + /** + * Retrieve the path component of the URI. + * + * The path can either be empty or absolute (starting with a slash) or + * rootless (not starting with a slash). Implementations MUST support all + * three syntaxes. + * + * Normally, the empty path "" and absolute path "/" are considered equal as + * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically + * do this normalization because in contexts with a trimmed base path, e.g. + * the front controller, this difference becomes significant. It's the task + * of the user to handle both "" and "/". + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.3. + * + * As an example, if the value should include a slash ("/") not intended as + * delimiter between path segments, that value MUST be passed in encoded + * form (e.g., "%2F") to the instance. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.3 + * @return string The URI path. + */ + public function getPath(): string; + + /** + * Retrieve the query string of the URI. + * + * If no query string is present, this method MUST return an empty string. + * + * The leading "?" character is not part of the query and MUST NOT be + * added. + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.4. + * + * As an example, if a value in a key/value pair of the query string should + * include an ampersand ("&") not intended as a delimiter between values, + * that value MUST be passed in encoded form (e.g., "%26") to the instance. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.4 + * @return string The URI query string. + */ + public function getQuery(): string; + + /** + * Retrieve the fragment component of the URI. + * + * If no fragment is present, this method MUST return an empty string. + * + * The leading "#" character is not part of the fragment and MUST NOT be + * added. + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.5. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.5 + * @return string The URI fragment. + */ + public function getFragment(): string; + + /** + * Return an instance with the specified scheme. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified scheme. + * + * Implementations MUST support the schemes "http" and "https" case + * insensitively, and MAY accommodate other schemes if required. + * + * An empty scheme is equivalent to removing the scheme. + * + * @param string $scheme The scheme to use with the new instance. + * @return static A new instance with the specified scheme. + * @throws \InvalidArgumentException for invalid or unsupported schemes. + */ + public function withScheme(string $scheme): UriInterface; + + /** + * Return an instance with the specified user information. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified user information. + * + * Password is optional, but the user information MUST include the + * user; an empty string for the user is equivalent to removing user + * information. + * + * @param string $user The user name to use for authority. + * @param null|string $password The password associated with $user. + * @return static A new instance with the specified user information. + */ + public function withUserInfo(string $user, ?string $password = null): UriInterface; + + /** + * Return an instance with the specified host. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified host. + * + * An empty host value is equivalent to removing the host. + * + * @param string $host The hostname to use with the new instance. + * @return static A new instance with the specified host. + * @throws \InvalidArgumentException for invalid hostnames. + */ + public function withHost(string $host): UriInterface; + + /** + * Return an instance with the specified port. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified port. + * + * Implementations MUST raise an exception for ports outside the + * established TCP and UDP port ranges. + * + * A null value provided for the port is equivalent to removing the port + * information. + * + * @param null|int $port The port to use with the new instance; a null value + * removes the port information. + * @return static A new instance with the specified port. + * @throws \InvalidArgumentException for invalid ports. + */ + public function withPort(?int $port): UriInterface; + + /** + * Return an instance with the specified path. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified path. + * + * The path can either be empty or absolute (starting with a slash) or + * rootless (not starting with a slash). Implementations MUST support all + * three syntaxes. + * + * If the path is intended to be domain-relative rather than path relative then + * it must begin with a slash ("/"). Paths not starting with a slash ("/") + * are assumed to be relative to some base path known to the application or + * consumer. + * + * Users can provide both encoded and decoded path characters. + * Implementations ensure the correct encoding as outlined in getPath(). + * + * @param string $path The path to use with the new instance. + * @return static A new instance with the specified path. + * @throws \InvalidArgumentException for invalid paths. + */ + public function withPath(string $path): UriInterface; + + /** + * Return an instance with the specified query string. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified query string. + * + * Users can provide both encoded and decoded query characters. + * Implementations ensure the correct encoding as outlined in getQuery(). + * + * An empty query string value is equivalent to removing the query string. + * + * @param string $query The query string to use with the new instance. + * @return static A new instance with the specified query string. + * @throws \InvalidArgumentException for invalid query strings. + */ + public function withQuery(string $query): UriInterface; + + /** + * Return an instance with the specified URI fragment. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified URI fragment. + * + * Users can provide both encoded and decoded fragment characters. + * Implementations ensure the correct encoding as outlined in getFragment(). + * + * An empty fragment value is equivalent to removing the fragment. + * + * @param string $fragment The fragment to use with the new instance. + * @return static A new instance with the specified fragment. + */ + public function withFragment(string $fragment): UriInterface; + + /** + * Return the string representation as a URI reference. + * + * Depending on which components of the URI are present, the resulting + * string is either a full URI or relative reference according to RFC 3986, + * Section 4.1. The method concatenates the various components of the URI, + * using the appropriate delimiters: + * + * - If a scheme is present, it MUST be suffixed by ":". + * - If an authority is present, it MUST be prefixed by "//". + * - The path can be concatenated without delimiters. But there are two + * cases where the path has to be adjusted to make the URI reference + * valid as PHP does not allow to throw an exception in __toString(): + * - If the path is rootless and an authority is present, the path MUST + * be prefixed by "/". + * - If the path is starting with more than one "/" and no authority is + * present, the starting slashes MUST be reduced to one. + * - If a query is present, it MUST be prefixed by "?". + * - If a fragment is present, it MUST be prefixed by "#". + * + * @see http://tools.ietf.org/html/rfc3986#section-4.1 + * @return string + */ + public function __toString(): string; +} diff --git a/vendor/psr/log/LICENSE b/vendor/psr/log/LICENSE new file mode 100644 index 000000000..474c952b4 --- /dev/null +++ b/vendor/psr/log/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2012 PHP Framework Interoperability Group + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/psr/log/README.md b/vendor/psr/log/README.md new file mode 100644 index 000000000..a9f20c437 --- /dev/null +++ b/vendor/psr/log/README.md @@ -0,0 +1,58 @@ +PSR Log +======= + +This repository holds all interfaces/classes/traits related to +[PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md). + +Note that this is not a logger of its own. It is merely an interface that +describes a logger. See the specification for more details. + +Installation +------------ + +```bash +composer require psr/log +``` + +Usage +----- + +If you need a logger, you can use the interface like this: + +```php +logger = $logger; + } + + public function doSomething() + { + if ($this->logger) { + $this->logger->info('Doing work'); + } + + try { + $this->doSomethingElse(); + } catch (Exception $exception) { + $this->logger->error('Oh no!', array('exception' => $exception)); + } + + // do something useful + } +} +``` + +You can then pick one of the implementations of the interface to get a logger. + +If you want to implement the interface, you can require this package and +implement `Psr\Log\LoggerInterface` in your code. Please read the +[specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) +for details. diff --git a/vendor/psr/log/composer.json b/vendor/psr/log/composer.json new file mode 100644 index 000000000..879fc6f53 --- /dev/null +++ b/vendor/psr/log/composer.json @@ -0,0 +1,26 @@ +{ + "name": "psr/log", + "description": "Common interface for logging libraries", + "keywords": ["psr", "psr-3", "log"], + "homepage": "https://github.com/php-fig/log", + "license": "MIT", + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "require": { + "php": ">=8.0.0" + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + } +} diff --git a/vendor/psr/log/src/AbstractLogger.php b/vendor/psr/log/src/AbstractLogger.php new file mode 100644 index 000000000..d60a091af --- /dev/null +++ b/vendor/psr/log/src/AbstractLogger.php @@ -0,0 +1,15 @@ +logger = $logger; + } +} diff --git a/vendor/psr/log/src/LoggerInterface.php b/vendor/psr/log/src/LoggerInterface.php new file mode 100644 index 000000000..b3a24b5f7 --- /dev/null +++ b/vendor/psr/log/src/LoggerInterface.php @@ -0,0 +1,125 @@ +log(LogLevel::EMERGENCY, $message, $context); + } + + /** + * Action must be taken immediately. + * + * Example: Entire website down, database unavailable, etc. This should + * trigger the SMS alerts and wake you up. + * + * @param string|\Stringable $message + * @param array $context + * + * @return void + */ + public function alert(string|\Stringable $message, array $context = []): void + { + $this->log(LogLevel::ALERT, $message, $context); + } + + /** + * Critical conditions. + * + * Example: Application component unavailable, unexpected exception. + * + * @param string|\Stringable $message + * @param array $context + * + * @return void + */ + public function critical(string|\Stringable $message, array $context = []): void + { + $this->log(LogLevel::CRITICAL, $message, $context); + } + + /** + * Runtime errors that do not require immediate action but should typically + * be logged and monitored. + * + * @param string|\Stringable $message + * @param array $context + * + * @return void + */ + public function error(string|\Stringable $message, array $context = []): void + { + $this->log(LogLevel::ERROR, $message, $context); + } + + /** + * Exceptional occurrences that are not errors. + * + * Example: Use of deprecated APIs, poor use of an API, undesirable things + * that are not necessarily wrong. + * + * @param string|\Stringable $message + * @param array $context + * + * @return void + */ + public function warning(string|\Stringable $message, array $context = []): void + { + $this->log(LogLevel::WARNING, $message, $context); + } + + /** + * Normal but significant events. + * + * @param string|\Stringable $message + * @param array $context + * + * @return void + */ + public function notice(string|\Stringable $message, array $context = []): void + { + $this->log(LogLevel::NOTICE, $message, $context); + } + + /** + * Interesting events. + * + * Example: User logs in, SQL logs. + * + * @param string|\Stringable $message + * @param array $context + * + * @return void + */ + public function info(string|\Stringable $message, array $context = []): void + { + $this->log(LogLevel::INFO, $message, $context); + } + + /** + * Detailed debug information. + * + * @param string|\Stringable $message + * @param array $context + * + * @return void + */ + public function debug(string|\Stringable $message, array $context = []): void + { + $this->log(LogLevel::DEBUG, $message, $context); + } + + /** + * Logs with an arbitrary level. + * + * @param mixed $level + * @param string|\Stringable $message + * @param array $context + * + * @return void + * + * @throws \Psr\Log\InvalidArgumentException + */ + abstract public function log($level, string|\Stringable $message, array $context = []): void; +} diff --git a/vendor/psr/log/src/NullLogger.php b/vendor/psr/log/src/NullLogger.php new file mode 100644 index 000000000..c1cc3c069 --- /dev/null +++ b/vendor/psr/log/src/NullLogger.php @@ -0,0 +1,30 @@ +logger) { }` + * blocks. + */ +class NullLogger extends AbstractLogger +{ + /** + * Logs with an arbitrary level. + * + * @param mixed $level + * @param string|\Stringable $message + * @param array $context + * + * @return void + * + * @throws \Psr\Log\InvalidArgumentException + */ + public function log($level, string|\Stringable $message, array $context = []): void + { + // noop + } +} diff --git a/vendor/ralouphie/getallheaders/LICENSE b/vendor/ralouphie/getallheaders/LICENSE new file mode 100644 index 000000000..be5540c2a --- /dev/null +++ b/vendor/ralouphie/getallheaders/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Ralph Khattar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/ralouphie/getallheaders/README.md b/vendor/ralouphie/getallheaders/README.md new file mode 100644 index 000000000..9430d76bb --- /dev/null +++ b/vendor/ralouphie/getallheaders/README.md @@ -0,0 +1,27 @@ +getallheaders +============= + +PHP `getallheaders()` polyfill. Compatible with PHP >= 5.3. + +[![Build Status](https://travis-ci.org/ralouphie/getallheaders.svg?branch=master)](https://travis-ci.org/ralouphie/getallheaders) +[![Coverage Status](https://coveralls.io/repos/ralouphie/getallheaders/badge.png?branch=master)](https://coveralls.io/r/ralouphie/getallheaders?branch=master) +[![Latest Stable Version](https://poser.pugx.org/ralouphie/getallheaders/v/stable.png)](https://packagist.org/packages/ralouphie/getallheaders) +[![Latest Unstable Version](https://poser.pugx.org/ralouphie/getallheaders/v/unstable.png)](https://packagist.org/packages/ralouphie/getallheaders) +[![License](https://poser.pugx.org/ralouphie/getallheaders/license.png)](https://packagist.org/packages/ralouphie/getallheaders) + + +This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php). + +## Install + +For PHP version **`>= 5.6`**: + +``` +composer require ralouphie/getallheaders +``` + +For PHP version **`< 5.6`**: + +``` +composer require ralouphie/getallheaders "^2" +``` diff --git a/vendor/ralouphie/getallheaders/composer.json b/vendor/ralouphie/getallheaders/composer.json new file mode 100644 index 000000000..de8ce62e4 --- /dev/null +++ b/vendor/ralouphie/getallheaders/composer.json @@ -0,0 +1,26 @@ +{ + "name": "ralouphie/getallheaders", + "description": "A polyfill for getallheaders.", + "license": "MIT", + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^5 || ^6.5", + "php-coveralls/php-coveralls": "^2.1" + }, + "autoload": { + "files": ["src/getallheaders.php"] + }, + "autoload-dev": { + "psr-4": { + "getallheaders\\Tests\\": "tests/" + } + } +} diff --git a/vendor/ralouphie/getallheaders/src/getallheaders.php b/vendor/ralouphie/getallheaders/src/getallheaders.php new file mode 100644 index 000000000..c7285a5ba --- /dev/null +++ b/vendor/ralouphie/getallheaders/src/getallheaders.php @@ -0,0 +1,46 @@ + 'Content-Type', + 'CONTENT_LENGTH' => 'Content-Length', + 'CONTENT_MD5' => 'Content-Md5', + ); + + foreach ($_SERVER as $key => $value) { + if (substr($key, 0, 5) === 'HTTP_') { + $key = substr($key, 5); + if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { + $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); + $headers[$key] = $value; + } + } elseif (isset($copy_server[$key])) { + $headers[$copy_server[$key]] = $value; + } + } + + if (!isset($headers['Authorization'])) { + if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { + $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; + } elseif (isset($_SERVER['PHP_AUTH_USER'])) { + $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; + $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass); + } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) { + $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST']; + } + } + + return $headers; + } + +} diff --git a/vendor/ramsey/collection/LICENSE b/vendor/ramsey/collection/LICENSE new file mode 100644 index 000000000..a7fcf1201 --- /dev/null +++ b/vendor/ramsey/collection/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2015-2022 Ben Ramsey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/ramsey/collection/README.md b/vendor/ramsey/collection/README.md new file mode 100644 index 000000000..c77ffcb18 --- /dev/null +++ b/vendor/ramsey/collection/README.md @@ -0,0 +1,70 @@ +

ramsey/collection

+ +

+ A PHP library for representing and manipulating collections. +

+ +

+ Source Code + Download Package + PHP Programming Language + Read License + Build Status + Codecov Code Coverage + Psalm Type Coverage +

+ +## About + +ramsey/collection is a PHP library for representing and manipulating collections. + +Much inspiration for this library came from the [Java Collections Framework][java]. + +This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). +By participating in this project and its community, you are expected to +uphold this code. + +## Installation + +Install this package as a dependency using [Composer](https://getcomposer.org). + +``` bash +composer require ramsey/collection +``` + +## Usage + +Examples of how to use this library may be found in the +[Wiki pages](https://github.com/ramsey/collection/wiki/Examples). + +## Contributing + +Contributions are welcome! To contribute, please familiarize yourself with +[CONTRIBUTING.md](CONTRIBUTING.md). + +## Coordinated Disclosure + +Keeping user information safe and secure is a top priority, and we welcome the +contribution of external security researchers. If you believe you've found a +security issue in software that is maintained in this repository, please read +[SECURITY.md][] for instructions on submitting a vulnerability report. + +## ramsey/collection for Enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of ramsey/collection and thousands of other packages are working +with Tidelift to deliver commercial support and maintenance for the open source +packages you use to build your applications. Save time, reduce risk, and improve +code health, while paying the maintainers of the exact packages you use. +[Learn more.](https://tidelift.com/subscription/pkg/packagist-ramsey-collection?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + +## Copyright and License + +The ramsey/collection library is copyright © [Ben Ramsey](https://benramsey.com) +and licensed for use under the terms of the +MIT License (MIT). Please see [LICENSE](LICENSE) for more information. + + +[java]: http://docs.oracle.com/javase/8/docs/technotes/guides/collections/index.html +[security.md]: https://github.com/ramsey/collection/blob/main/SECURITY.md diff --git a/vendor/ramsey/collection/SECURITY.md b/vendor/ramsey/collection/SECURITY.md new file mode 100644 index 000000000..3de4c0cbd --- /dev/null +++ b/vendor/ramsey/collection/SECURITY.md @@ -0,0 +1,169 @@ + + +# Vulnerability Disclosure Policy (VDP) + +## Brand Promise + + + +Keeping user information safe and secure is a top priority, and we welcome the +contribution of external security researchers. + +## Scope + + + +If you believe you've found a security issue in software that is maintained in +this repository, we encourage you to notify us. + +| Version | In scope | Source code | +| ------- | :------: | ----------- | +| latest | ✅ | https://github.com/ramsey/collection | + +## How to Submit a Report + + + +To submit a vulnerability report, please contact us at security@ramsey.dev. +Your submission will be reviewed and validated by a member of our team. + +## Safe Harbor + + + +We support safe harbor for security researchers who: + +* Make a good faith effort to avoid privacy violations, destruction of data, and + interruption or degradation of our services. +* Only interact with accounts you own or with explicit permission of the account + holder. If you do encounter Personally Identifiable Information (PII) contact + us immediately, do not proceed with access, and immediately purge any local + information. +* Provide us with a reasonable amount of time to resolve vulnerabilities prior + to any disclosure to the public or a third party. + +We will consider activities conducted consistent with this policy to constitute +"authorized" conduct and will not pursue civil action or initiate a complaint to +law enforcement. We will help to the extent we can if legal action is initiated +by a third party against you. + +Please submit a report to us before engaging in conduct that may be inconsistent +with or unaddressed by this policy. + +## Preferences + + + +* Please provide detailed reports with reproducible steps and a clearly defined + impact. +* Include the version number of the vulnerable package in your report +* Social engineering (e.g. phishing, vishing, smishing) is prohibited. + + + +## Encryption Key for security@ramsey.dev + +For increased privacy when reporting sensitive issues, you may encrypt your +message using the following public key: + +``` +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBF+Z9gEBEACbT/pIx8RR0K18t8Z2rDnmEV44YdT7HNsMdq+D6SAlx8UUb6AU +jGIbV9dgBgGNtOLU1pxloaJwL9bWIRbj+X/Qb2WNIP//Vz1Y40ox1dSpfCUrizXx +kb4p58Xml0PsB8dg3b4RDUgKwGC37ne5xmDnigyJPbiB2XJ6Xc46oPCjh86XROTK +wEBB2lY67ClBlSlvC2V9KmbTboRQkLdQDhOaUosMb99zRb0EWqDLaFkZVjY5HI7i +0pTveE6dI12NfHhTwKjZ5pUiAZQGlKA6J1dMjY2unxHZkQj5MlMfrLSyJHZxccdJ +xD94T6OTcTHt/XmMpI2AObpewZDdChDQmcYDZXGfAhFoJmbvXsmLMGXKgzKoZ/ls +RmLsQhh7+/r8E+Pn5r+A6Hh4uAc14ApyEP0ckKeIXw1C6pepHM4E8TEXVr/IA6K/ +z6jlHORixIFX7iNOnfHh+qwOgZw40D6JnBfEzjFi+T2Cy+JzN2uy7I8UnecTMGo3 +5t6astPy6xcH6kZYzFTV7XERR6LIIVyLAiMFd8kF5MbJ8N5ElRFsFHPW+82N2HDX +c60iSaTB85k6R6xd8JIKDiaKE4sSuw2wHFCKq33d/GamYezp1wO+bVUQg88efljC +2JNFyD+vl30josqhw1HcmbE1TP3DlYeIL5jQOlxCMsgai6JtTfHFM/5MYwARAQAB +tBNzZWN1cml0eUByYW1zZXkuZGV2iQJUBBMBCAA+FiEE4drPD+/ofZ570fAYq0bv +vXQCywIFAl+Z9gECGwMFCQeGH4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ +q0bvvXQCywIkEA//Qcwv8MtTCy01LHZd9c7VslwhNdXQDYymcTyjcYw8x7O22m4B +3hXE6vqAplFhVxxkqXB2ef0tQuzxhPHNJgkCE4Wq4i+V6qGpaSVHQT2W6DN/NIhL +vS8OdScc6zddmIbIkSrzVVAtjwehFNEIrX3DnbbbK+Iku7vsKT5EclOluIsjlYoX +goW8IeReyDBqOe2H3hoCGw6EA0D/NYV2bJnfy53rXVIyarsXXeOLp7eNEH6Td7aW +PVSrMZJe1t+knrEGnEdrXWzlg4lCJJCtemGv+pKBUomnyISXSdqyoRCCzvQjqyig +2kRebUX8BXPW33p4OXPj9sIboUOjZwormWwqqbFMO+J4TiVCUoEoheI7emPFRcNN +QtPJrjbY1++OznBc0GRpfeUkGoU1cbRl1bnepnFIZMTDLkrVW6I1Y4q8ZVwX3BkE +N81ctFrRpHBlU36EdHvjPQmGtuiL77Qq3fWmMv7yTvK1wHJAXfEb0ZJWHZCbck3w +l0CVq0Z+UUAOM8Rp1N0N8m92xtapav0qCFU9qzf2J5qX6GRmWv+d29wPgFHzDWBm +nnrYYIA4wJLx00U6SMcVBSnNe91B+RfGY5XQhbWPjQQecOGCSDsxaFAq2MeOVJyZ +bIjLYfG9GxoLKr5R7oLRJvZI4nKKBc1Kci/crZbdiSdQhSQGlDz88F1OHeCIdQQQ +EQgAHRYhBOhdAxHd+lus86YQ57Atl5icjAcbBQJfmfdIAAoJELAtl5icjAcbFVcA +/1LqB3ZjsnXDAvvAXZVjSPqofSlpMLeRQP6IM/A9Odq0AQCZrtZc1knOMGEcjppK +Rk+sy/R0Mshy8TDuaZIRgh2Ux7kCDQRfmfYBARAAmchKzzVz7IaEq7PnZDb3szQs +T/+E9F3m39yOpV4fEB1YzObonFakXNT7Gw2tZEx0eitUMqQ/13jjfu3UdzlKl2bR +qA8LrSQRhB+PTC9A1XvwxCUYhhjGiLzJ9CZL6hBQB43qHOmE9XJPme90geLsF+gK +u39Waj1SNWzwGg+Gy1Gl5f2AJoDTxznreCuFGj+Vfaczt/hlfgqpOdb9jsmdoE7t +3DSWppA9dRHWwQSgE6J28rR4QySBcqyXS6IMykqaJn7Z26yNIaITLnHCZOSY8zhP +ha7GFsN549EOCgECbrnPt9dmI2+hQE0RO0e7SOBNsIf5sz/i7urhwuj0CbOqhjc2 +X1AEVNFCVcb6HPi/AWefdFCRu0gaWQxn5g+9nkq5slEgvzCCiKYzaBIcr8qR6Hb4 +FaOPVPxO8vndRouq57Ws8XpAwbPttioFuCqF4u9K+tK/8e2/R8QgRYJsE3Cz/Fu8 ++pZFpMnqbDEbK3DL3ss+1ed1sky+mDV8qXXeI33XW5hMFnk1JWshUjHNlQmE6ftC +U0xSTMVUtwJhzH2zDp8lEdu7qi3EsNULOl68ozDr6soWAvCbHPeTdTOnFySGCleG +/3TonsoZJs/sSPPJnxFQ1DtgQL6EbhIwa0ZwU4eKYVHZ9tjxuMX3teFzRvOrJjgs ++ywGlsIURtEckT5Y6nMAEQEAAYkCPAQYAQgAJhYhBOHazw/v6H2ee9HwGKtG7710 +AssCBQJfmfYBAhsMBQkHhh+AAAoJEKtG7710AssC8NcP/iDAcy1aZFvkA0EbZ85p +i7/+ywtE/1wF4U4/9OuLcoskqGGnl1pJNPooMOSBCfreoTB8HimT0Fln0CoaOm4Q +pScNq39JXmf4VxauqUJVARByP6zUfgYarqoaZNeuFF0S4AZJ2HhGzaQPjDz1uKVM +PE6tQSgQkFzdZ9AtRA4vElTH6yRAgmepUsOihk0b0gUtVnwtRYZ8e0Qt3ie97a73 +DxLgAgedFRUbLRYiT0vNaYbainBsLWKpN/T8odwIg/smP0Khjp/ckV60cZTdBiPR +szBTPJESMUTu0VPntc4gWwGsmhZJg/Tt/qP08XYo3VxNYBegyuWwNR66zDWvwvGH +muMv5UchuDxp6Rt3JkIO4voMT1JSjWy9p8krkPEE4V6PxAagLjdZSkt92wVLiK5x +y5gNrtPhU45YdRAKHr36OvJBJQ42CDaZ6nzrzghcIp9CZ7ANHrI+QLRM/csz+AGA +szSp6S4mc1lnxxfbOhPPpebZPn0nIAXoZnnoVKdrxBVedPQHT59ZFvKTQ9Fs7gd3 +sYNuc7tJGFGC2CxBH4ANDpOQkc5q9JJ1HSGrXU3juxIiRgfA26Q22S9c71dXjElw +Ri584QH+bL6kkYmm8xpKF6TVwhwu5xx/jBPrbWqFrtbvLNrnfPoapTihBfdIhkT6 +nmgawbBHA02D5xEqB5SU3WJu +=eJNx +-----END PGP PUBLIC KEY BLOCK----- +``` diff --git a/vendor/ramsey/collection/composer.json b/vendor/ramsey/collection/composer.json new file mode 100644 index 000000000..56709015a --- /dev/null +++ b/vendor/ramsey/collection/composer.json @@ -0,0 +1,119 @@ +{ + "name": "ramsey/collection", + "description": "A PHP library for representing and manipulating collections.", + "license": "MIT", + "type": "library", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.28.3", + "fakerphp/faker": "^1.21", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^1.0", + "mockery/mockery": "^1.5", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpcsstandards/phpcsutils": "^1.0.0-rc1", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18.4", + "ramsey/coding-standard": "^2.0.3", + "ramsey/conventional-commits": "^1.3", + "vimeo/psalm": "^5.4" + }, + "minimum-stability": "RC", + "prefer-stable": true, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Ramsey\\Collection\\Test\\": "tests/", + "Ramsey\\Test\\Generics\\": "tests/generics/" + }, + "files": [ + "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php" + ] + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true, + "ergebnis/composer-normalize": true, + "phpstan/extension-installer": true, + "captainhook/plugin-composer": true + }, + "sort-packages": true + }, + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "scripts": { + "dev:analyze": [ + "@dev:analyze:phpstan", + "@dev:analyze:psalm" + ], + "dev:analyze:phpstan": "phpstan analyse --ansi --memory-limit=1G", + "dev:analyze:psalm": "psalm", + "dev:build:clean": "git clean -fX build/", + "dev:lint": [ + "@dev:lint:syntax", + "@dev:lint:style" + ], + "dev:lint:fix": "phpcbf", + "dev:lint:style": "phpcs --colors", + "dev:lint:syntax": "parallel-lint --colors src/ tests/", + "dev:test": [ + "@dev:lint", + "@dev:analyze", + "@dev:test:unit" + ], + "dev:test:coverage:ci": "phpunit --colors=always --coverage-text --coverage-clover build/coverage/clover.xml --coverage-cobertura build/coverage/cobertura.xml --coverage-crap4j build/coverage/crap4j.xml --coverage-xml build/coverage/coverage-xml --log-junit build/junit.xml", + "dev:test:coverage:html": "phpunit --colors=always --coverage-html build/coverage/coverage-html/", + "dev:test:unit": "phpunit --colors=always", + "test": "@dev:test" + }, + "scripts-descriptions": { + "dev:analyze": "Runs all static analysis checks.", + "dev:analyze:phpstan": "Runs the PHPStan static analyzer.", + "dev:analyze:psalm": "Runs the Psalm static analyzer.", + "dev:build:clean": "Cleans the build/ directory.", + "dev:lint": "Runs all linting checks.", + "dev:lint:fix": "Auto-fixes coding standards issues, if possible.", + "dev:lint:style": "Checks for coding standards issues.", + "dev:lint:syntax": "Checks for syntax errors.", + "dev:test": "Runs linting, static analysis, and unit tests.", + "dev:test:coverage:ci": "Runs unit tests and generates CI coverage reports.", + "dev:test:coverage:html": "Runs unit tests and generates HTML coverage report.", + "dev:test:unit": "Runs unit tests.", + "test": "Runs linting, static analysis, and unit tests." + } +} diff --git a/vendor/ramsey/collection/conventional-commits.json b/vendor/ramsey/collection/conventional-commits.json new file mode 100644 index 000000000..5fe21d2fa --- /dev/null +++ b/vendor/ramsey/collection/conventional-commits.json @@ -0,0 +1,22 @@ +{ + "typeCase": "kebab", + "types": [ + "chore", + "ci", + "docs", + "feat", + "fix", + "refactor", + "security", + "style", + "test" + ], + "scopeCase": "kebab", + "scopeRequired": false, + "scopes": [], + "descriptionCase": null, + "descriptionEndMark": "", + "bodyRequired": false, + "bodyWrapWidth": 72, + "requiredFooters": [] +} diff --git a/vendor/ramsey/collection/src/AbstractArray.php b/vendor/ramsey/collection/src/AbstractArray.php new file mode 100644 index 000000000..5ce622aa7 --- /dev/null +++ b/vendor/ramsey/collection/src/AbstractArray.php @@ -0,0 +1,171 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use ArrayIterator; +use Traversable; + +use function count; + +/** + * This class provides a basic implementation of `ArrayInterface`, to minimize + * the effort required to implement this interface. + * + * @template T + * @implements ArrayInterface + */ +abstract class AbstractArray implements ArrayInterface +{ + /** + * The items of this array. + * + * @var array + */ + protected array $data = []; + + /** + * Constructs a new array object. + * + * @param array $data The initial items to add to this array. + */ + public function __construct(array $data = []) + { + // Invoke offsetSet() for each value added; in this way, sub-classes + // may provide additional logic about values added to the array object. + foreach ($data as $key => $value) { + $this[$key] = $value; + } + } + + /** + * Returns an iterator for this array. + * + * @link http://php.net/manual/en/iteratoraggregate.getiterator.php IteratorAggregate::getIterator() + * + * @return Traversable + */ + public function getIterator(): Traversable + { + return new ArrayIterator($this->data); + } + + /** + * Returns `true` if the given offset exists in this array. + * + * @link http://php.net/manual/en/arrayaccess.offsetexists.php ArrayAccess::offsetExists() + * + * @param array-key $offset The offset to check. + */ + public function offsetExists(mixed $offset): bool + { + return isset($this->data[$offset]); + } + + /** + * Returns the value at the specified offset. + * + * @link http://php.net/manual/en/arrayaccess.offsetget.php ArrayAccess::offsetGet() + * + * @param array-key $offset The offset for which a value should be returned. + * + * @return T the value stored at the offset, or null if the offset + * does not exist. + */ + public function offsetGet(mixed $offset): mixed + { + return $this->data[$offset]; + } + + /** + * Sets the given value to the given offset in the array. + * + * @link http://php.net/manual/en/arrayaccess.offsetset.php ArrayAccess::offsetSet() + * + * @param array-key | null $offset The offset to set. If `null`, the value + * may be set at a numerically-indexed offset. + * @param T $value The value to set at the given offset. + */ + public function offsetSet(mixed $offset, mixed $value): void + { + if ($offset === null) { + $this->data[] = $value; + } else { + $this->data[$offset] = $value; + } + } + + /** + * Removes the given offset and its value from the array. + * + * @link http://php.net/manual/en/arrayaccess.offsetunset.php ArrayAccess::offsetUnset() + * + * @param array-key $offset The offset to remove from the array. + */ + public function offsetUnset(mixed $offset): void + { + unset($this->data[$offset]); + } + + /** + * Returns data suitable for PHP serialization. + * + * @link https://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.serialize + * @link https://www.php.net/serialize + * + * @return array + */ + public function __serialize(): array + { + return $this->data; + } + + /** + * Adds unserialized data to the object. + * + * @param array $data + */ + public function __unserialize(array $data): void + { + $this->data = $data; + } + + /** + * Returns the number of items in this array. + * + * @link http://php.net/manual/en/countable.count.php Countable::count() + */ + public function count(): int + { + return count($this->data); + } + + public function clear(): void + { + $this->data = []; + } + + /** + * @inheritDoc + */ + public function toArray(): array + { + return $this->data; + } + + public function isEmpty(): bool + { + return $this->data === []; + } +} diff --git a/vendor/ramsey/collection/src/AbstractCollection.php b/vendor/ramsey/collection/src/AbstractCollection.php new file mode 100644 index 000000000..8cb21ec02 --- /dev/null +++ b/vendor/ramsey/collection/src/AbstractCollection.php @@ -0,0 +1,393 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use Closure; +use Ramsey\Collection\Exception\CollectionMismatchException; +use Ramsey\Collection\Exception\InvalidArgumentException; +use Ramsey\Collection\Exception\InvalidPropertyOrMethod; +use Ramsey\Collection\Exception\NoSuchElementException; +use Ramsey\Collection\Exception\UnsupportedOperationException; +use Ramsey\Collection\Tool\TypeTrait; +use Ramsey\Collection\Tool\ValueExtractorTrait; +use Ramsey\Collection\Tool\ValueToStringTrait; + +use function array_filter; +use function array_key_first; +use function array_key_last; +use function array_map; +use function array_merge; +use function array_reduce; +use function array_search; +use function array_udiff; +use function array_uintersect; +use function in_array; +use function is_int; +use function is_object; +use function spl_object_id; +use function sprintf; +use function usort; + +/** + * This class provides a basic implementation of `CollectionInterface`, to + * minimize the effort required to implement this interface + * + * @template T + * @extends AbstractArray + * @implements CollectionInterface + */ +abstract class AbstractCollection extends AbstractArray implements CollectionInterface +{ + use TypeTrait; + use ValueToStringTrait; + use ValueExtractorTrait; + + /** + * @throws InvalidArgumentException if $element is of the wrong type. + */ + public function add(mixed $element): bool + { + $this[] = $element; + + return true; + } + + public function contains(mixed $element, bool $strict = true): bool + { + return in_array($element, $this->data, $strict); + } + + /** + * @throws InvalidArgumentException if $element is of the wrong type. + */ + public function offsetSet(mixed $offset, mixed $value): void + { + if ($this->checkType($this->getType(), $value) === false) { + throw new InvalidArgumentException( + 'Value must be of type ' . $this->getType() . '; value is ' + . $this->toolValueToString($value), + ); + } + + if ($offset === null) { + $this->data[] = $value; + } else { + $this->data[$offset] = $value; + } + } + + public function remove(mixed $element): bool + { + if (($position = array_search($element, $this->data, true)) !== false) { + unset($this[$position]); + + return true; + } + + return false; + } + + /** + * @throws InvalidPropertyOrMethod if the $propertyOrMethod does not exist + * on the elements in this collection. + * @throws UnsupportedOperationException if unable to call column() on this + * collection. + * + * @inheritDoc + */ + public function column(string $propertyOrMethod): array + { + $temp = []; + + foreach ($this->data as $item) { + /** @psalm-suppress MixedAssignment */ + $temp[] = $this->extractValue($item, $propertyOrMethod); + } + + return $temp; + } + + /** + * @return T + * + * @throws NoSuchElementException if this collection is empty. + */ + public function first(): mixed + { + $firstIndex = array_key_first($this->data); + + if ($firstIndex === null) { + throw new NoSuchElementException('Can\'t determine first item. Collection is empty'); + } + + return $this->data[$firstIndex]; + } + + /** + * @return T + * + * @throws NoSuchElementException if this collection is empty. + */ + public function last(): mixed + { + $lastIndex = array_key_last($this->data); + + if ($lastIndex === null) { + throw new NoSuchElementException('Can\'t determine last item. Collection is empty'); + } + + return $this->data[$lastIndex]; + } + + /** + * @return CollectionInterface + * + * @throws InvalidPropertyOrMethod if the $propertyOrMethod does not exist + * on the elements in this collection. + * @throws UnsupportedOperationException if unable to call sort() on this + * collection. + */ + public function sort(?string $propertyOrMethod = null, Sort $order = Sort::Ascending): CollectionInterface + { + $collection = clone $this; + + usort( + $collection->data, + /** + * @param T $a + * @param T $b + */ + function (mixed $a, mixed $b) use ($propertyOrMethod, $order): int { + /** @var mixed $aValue */ + $aValue = $this->extractValue($a, $propertyOrMethod); + + /** @var mixed $bValue */ + $bValue = $this->extractValue($b, $propertyOrMethod); + + return ($aValue <=> $bValue) * ($order === Sort::Descending ? -1 : 1); + }, + ); + + return $collection; + } + + /** + * @param callable(T): bool $callback A callable to use for filtering elements. + * + * @return CollectionInterface + */ + public function filter(callable $callback): CollectionInterface + { + $collection = clone $this; + $collection->data = array_merge([], array_filter($collection->data, $callback)); + + return $collection; + } + + /** + * @return CollectionInterface + * + * @throws InvalidPropertyOrMethod if the $propertyOrMethod does not exist + * on the elements in this collection. + * @throws UnsupportedOperationException if unable to call where() on this + * collection. + */ + public function where(?string $propertyOrMethod, mixed $value): CollectionInterface + { + return $this->filter( + /** + * @param T $item + */ + function (mixed $item) use ($propertyOrMethod, $value): bool { + /** @var mixed $accessorValue */ + $accessorValue = $this->extractValue($item, $propertyOrMethod); + + return $accessorValue === $value; + }, + ); + } + + /** + * @param callable(T): TCallbackReturn $callback A callable to apply to each + * item of the collection. + * + * @return CollectionInterface + * + * @template TCallbackReturn + */ + public function map(callable $callback): CollectionInterface + { + /** @var Collection */ + return new Collection('mixed', array_map($callback, $this->data)); + } + + /** + * @param callable(TCarry, T): TCarry $callback A callable to apply to each + * item of the collection to reduce it to a single value. + * @param TCarry $initial This is the initial value provided to the callback. + * + * @return TCarry + * + * @template TCarry + */ + public function reduce(callable $callback, mixed $initial): mixed + { + /** @var TCarry */ + return array_reduce($this->data, $callback, $initial); + } + + /** + * @param CollectionInterface $other The collection to check for divergent + * items. + * + * @return CollectionInterface + * + * @throws CollectionMismatchException if the compared collections are of + * differing types. + */ + public function diff(CollectionInterface $other): CollectionInterface + { + $this->compareCollectionTypes($other); + + $diffAtoB = array_udiff($this->data, $other->toArray(), $this->getComparator()); + $diffBtoA = array_udiff($other->toArray(), $this->data, $this->getComparator()); + + /** @var array $diff */ + $diff = array_merge($diffAtoB, $diffBtoA); + + $collection = clone $this; + $collection->data = $diff; + + return $collection; + } + + /** + * @param CollectionInterface $other The collection to check for + * intersecting items. + * + * @return CollectionInterface + * + * @throws CollectionMismatchException if the compared collections are of + * differing types. + */ + public function intersect(CollectionInterface $other): CollectionInterface + { + $this->compareCollectionTypes($other); + + /** @var array $intersect */ + $intersect = array_uintersect($this->data, $other->toArray(), $this->getComparator()); + + $collection = clone $this; + $collection->data = $intersect; + + return $collection; + } + + /** + * @param CollectionInterface ...$collections The collections to merge. + * + * @return CollectionInterface + * + * @throws CollectionMismatchException if unable to merge any of the given + * collections or items within the given collections due to type + * mismatch errors. + */ + public function merge(CollectionInterface ...$collections): CollectionInterface + { + $mergedCollection = clone $this; + + foreach ($collections as $index => $collection) { + if (!$collection instanceof static) { + throw new CollectionMismatchException( + sprintf('Collection with index %d must be of type %s', $index, static::class), + ); + } + + // When using generics (Collection.php, Set.php, etc), + // we also need to make sure that the internal types match each other + if ($this->getUniformType($collection) !== $this->getUniformType($this)) { + throw new CollectionMismatchException( + sprintf( + 'Collection items in collection with index %d must be of type %s', + $index, + $this->getType(), + ), + ); + } + + foreach ($collection as $key => $value) { + if (is_int($key)) { + $mergedCollection[] = $value; + } else { + $mergedCollection[$key] = $value; + } + } + } + + return $mergedCollection; + } + + /** + * @param CollectionInterface $other + * + * @throws CollectionMismatchException + */ + private function compareCollectionTypes(CollectionInterface $other): void + { + if (!$other instanceof static) { + throw new CollectionMismatchException('Collection must be of type ' . static::class); + } + + // When using generics (Collection.php, Set.php, etc), + // we also need to make sure that the internal types match each other + if ($this->getUniformType($other) !== $this->getUniformType($this)) { + throw new CollectionMismatchException('Collection items must be of type ' . $this->getType()); + } + } + + private function getComparator(): Closure + { + return /** + * @param T $a + * @param T $b + */ + function (mixed $a, mixed $b): int { + // If the two values are object, we convert them to unique scalars. + // If the collection contains mixed values (unlikely) where some are objects + // and some are not, we leave them as they are. + // The comparator should still work and the result of $a < $b should + // be consistent but unpredictable since not documented. + if (is_object($a) && is_object($b)) { + $a = spl_object_id($a); + $b = spl_object_id($b); + } + + return $a === $b ? 0 : ($a < $b ? 1 : -1); + }; + } + + /** + * @param CollectionInterface $collection + */ + private function getUniformType(CollectionInterface $collection): string + { + return match ($collection->getType()) { + 'integer' => 'int', + 'boolean' => 'bool', + 'double' => 'float', + default => $collection->getType(), + }; + } +} diff --git a/vendor/ramsey/collection/src/AbstractSet.php b/vendor/ramsey/collection/src/AbstractSet.php new file mode 100644 index 000000000..7186939d7 --- /dev/null +++ b/vendor/ramsey/collection/src/AbstractSet.php @@ -0,0 +1,44 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +/** + * This class contains the basic implementation of a collection that does not + * allow duplicated values (a set), to minimize the effort required to implement + * this specific type of collection. + * + * @template T + * @extends AbstractCollection + */ +abstract class AbstractSet extends AbstractCollection +{ + public function add(mixed $element): bool + { + if ($this->contains($element)) { + return false; + } + + return parent::add($element); + } + + public function offsetSet(mixed $offset, mixed $value): void + { + if ($this->contains($value)) { + return; + } + + parent::offsetSet($offset, $value); + } +} diff --git a/vendor/ramsey/collection/src/ArrayInterface.php b/vendor/ramsey/collection/src/ArrayInterface.php new file mode 100644 index 000000000..bc7f6f424 --- /dev/null +++ b/vendor/ramsey/collection/src/ArrayInterface.php @@ -0,0 +1,49 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use ArrayAccess; +use Countable; +use IteratorAggregate; + +/** + * `ArrayInterface` provides traversable array functionality to data types. + * + * @template T + * @extends ArrayAccess + * @extends IteratorAggregate + */ +interface ArrayInterface extends + ArrayAccess, + Countable, + IteratorAggregate +{ + /** + * Removes all items from this array. + */ + public function clear(): void; + + /** + * Returns a native PHP array representation of this array object. + * + * @return array + */ + public function toArray(): array; + + /** + * Returns `true` if this array is empty. + */ + public function isEmpty(): bool; +} diff --git a/vendor/ramsey/collection/src/Collection.php b/vendor/ramsey/collection/src/Collection.php new file mode 100644 index 000000000..44d26bf2e --- /dev/null +++ b/vendor/ramsey/collection/src/Collection.php @@ -0,0 +1,95 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +/** + * A collection represents a group of objects. + * + * Each object in the collection is of a specific, defined type. + * + * This is a direct implementation of `CollectionInterface`, provided for + * the sake of convenience. + * + * Example usage: + * + * ``` php + * $collection = new \Ramsey\Collection\Collection('My\\Foo'); + * $collection->add(new \My\Foo()); + * $collection->add(new \My\Foo()); + * + * foreach ($collection as $foo) { + * // Do something with $foo + * } + * ``` + * + * It is preferable to subclass `AbstractCollection` to create your own typed + * collections. For example: + * + * ``` php + * namespace My\Foo; + * + * class FooCollection extends \Ramsey\Collection\AbstractCollection + * { + * public function getType() + * { + * return 'My\\Foo'; + * } + * } + * ``` + * + * And then use it similarly to the earlier example: + * + * ``` php + * $fooCollection = new \My\Foo\FooCollection(); + * $fooCollection->add(new \My\Foo()); + * $fooCollection->add(new \My\Foo()); + * + * foreach ($fooCollection as $foo) { + * // Do something with $foo + * } + * ``` + * + * The benefit with this approach is that you may do type-checking on the + * collection object: + * + * ``` php + * if ($collection instanceof \My\Foo\FooCollection) { + * // the collection is a collection of My\Foo objects + * } + * ``` + * + * @template T + * @extends AbstractCollection + */ +class Collection extends AbstractCollection +{ + /** + * Constructs a collection object of the specified type, optionally with the + * specified data. + * + * @param string $collectionType The type or class name associated with this + * collection. + * @param array $data The initial items to store in the collection. + */ + public function __construct(private readonly string $collectionType, array $data = []) + { + parent::__construct($data); + } + + public function getType(): string + { + return $this->collectionType; + } +} diff --git a/vendor/ramsey/collection/src/CollectionInterface.php b/vendor/ramsey/collection/src/CollectionInterface.php new file mode 100644 index 000000000..e3ad01470 --- /dev/null +++ b/vendor/ramsey/collection/src/CollectionInterface.php @@ -0,0 +1,253 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use Ramsey\Collection\Exception\CollectionMismatchException; +use Ramsey\Collection\Exception\InvalidArgumentException; +use Ramsey\Collection\Exception\InvalidPropertyOrMethod; +use Ramsey\Collection\Exception\NoSuchElementException; +use Ramsey\Collection\Exception\UnsupportedOperationException; + +/** + * A collection represents a group of values, known as its elements. + * + * Some collections allow duplicate elements and others do not. Some are ordered + * and others unordered. + * + * @template T + * @extends ArrayInterface + */ +interface CollectionInterface extends ArrayInterface +{ + /** + * Ensures that this collection contains the specified element (optional + * operation). + * + * Returns `true` if this collection changed as a result of the call. + * (Returns `false` if this collection does not permit duplicates and + * already contains the specified element.) + * + * Collections that support this operation may place limitations on what + * elements may be added to this collection. In particular, some + * collections will refuse to add `null` elements, and others will impose + * restrictions on the type of elements that may be added. Collection + * classes should clearly specify in their documentation any restrictions + * on what elements may be added. + * + * If a collection refuses to add a particular element for any reason other + * than that it already contains the element, it must throw an exception + * (rather than returning `false`). This preserves the invariant that a + * collection always contains the specified element after this call returns. + * + * @param T $element The element to add to the collection. + * + * @return bool `true` if this collection changed as a result of the call. + * + * @throws InvalidArgumentException if the collection refuses to add the + * $element for any reason other than that it already contains the element. + */ + public function add(mixed $element): bool; + + /** + * Returns `true` if this collection contains the specified element. + * + * @param T $element The element to check whether the collection contains. + * @param bool $strict Whether to perform a strict type check on the value. + */ + public function contains(mixed $element, bool $strict = true): bool; + + /** + * Returns the type associated with this collection. + */ + public function getType(): string; + + /** + * Removes a single instance of the specified element from this collection, + * if it is present. + * + * @param T $element The element to remove from the collection. + * + * @return bool `true` if an element was removed as a result of this call. + */ + public function remove(mixed $element): bool; + + /** + * Returns the values from the given property, method, or array key. + * + * @param string $propertyOrMethod The name of the property, method, or + * array key to evaluate and return. + * + * @return array + * + * @throws InvalidPropertyOrMethod if the $propertyOrMethod does not exist + * on the elements in this collection. + * @throws UnsupportedOperationException if unable to call column() on this + * collection. + */ + public function column(string $propertyOrMethod): array; + + /** + * Returns the first item of the collection. + * + * @return T + * + * @throws NoSuchElementException if this collection is empty. + */ + public function first(): mixed; + + /** + * Returns the last item of the collection. + * + * @return T + * + * @throws NoSuchElementException if this collection is empty. + */ + public function last(): mixed; + + /** + * Sort the collection by a property, method, or array key with the given + * sort order. + * + * If $propertyOrMethod is `null`, this will sort by comparing each element. + * + * This will always leave the original collection untouched and will return + * a new one. + * + * @param string | null $propertyOrMethod The property, method, or array key + * to sort by. + * @param Sort $order The sort order for the resulting collection. + * + * @return CollectionInterface + * + * @throws InvalidPropertyOrMethod if the $propertyOrMethod does not exist + * on the elements in this collection. + * @throws UnsupportedOperationException if unable to call sort() on this + * collection. + */ + public function sort(?string $propertyOrMethod = null, Sort $order = Sort::Ascending): self; + + /** + * Filter out items of the collection which don't match the criteria of + * given callback. + * + * This will always leave the original collection untouched and will return + * a new one. + * + * See the {@link http://php.net/manual/en/function.array-filter.php PHP array_filter() documentation} + * for examples of how the `$callback` parameter works. + * + * @param callable(T): bool $callback A callable to use for filtering elements. + * + * @return CollectionInterface + */ + public function filter(callable $callback): self; + + /** + * Create a new collection where the result of the given property, method, + * or array key of each item in the collection equals the given value. + * + * This will always leave the original collection untouched and will return + * a new one. + * + * @param string | null $propertyOrMethod The property, method, or array key + * to evaluate. If `null`, the element itself is compared to $value. + * @param mixed $value The value to match. + * + * @return CollectionInterface + * + * @throws InvalidPropertyOrMethod if the $propertyOrMethod does not exist + * on the elements in this collection. + * @throws UnsupportedOperationException if unable to call where() on this + * collection. + */ + public function where(?string $propertyOrMethod, mixed $value): self; + + /** + * Apply a given callback method on each item of the collection. + * + * This will always leave the original collection untouched. The new + * collection is created by mapping the callback to each item of the + * original collection. + * + * See the {@link http://php.net/manual/en/function.array-map.php PHP array_map() documentation} + * for examples of how the `$callback` parameter works. + * + * @param callable(T): TCallbackReturn $callback A callable to apply to each + * item of the collection. + * + * @return CollectionInterface + * + * @template TCallbackReturn + */ + public function map(callable $callback): self; + + /** + * Apply a given callback method on each item of the collection + * to reduce it to a single value. + * + * See the {@link http://php.net/manual/en/function.array-reduce.php PHP array_reduce() documentation} + * for examples of how the `$callback` and `$initial` parameters work. + * + * @param callable(TCarry, T): TCarry $callback A callable to apply to each + * item of the collection to reduce it to a single value. + * @param TCarry $initial This is the initial value provided to the callback. + * + * @return TCarry + * + * @template TCarry + */ + public function reduce(callable $callback, mixed $initial): mixed; + + /** + * Create a new collection with divergent items between current and given + * collection. + * + * @param CollectionInterface $other The collection to check for divergent + * items. + * + * @return CollectionInterface + * + * @throws CollectionMismatchException if the compared collections are of + * differing types. + */ + public function diff(CollectionInterface $other): self; + + /** + * Create a new collection with intersecting item between current and given + * collection. + * + * @param CollectionInterface $other The collection to check for + * intersecting items. + * + * @return CollectionInterface + * + * @throws CollectionMismatchException if the compared collections are of + * differing types. + */ + public function intersect(CollectionInterface $other): self; + + /** + * Merge current items and items of given collections into a new one. + * + * @param CollectionInterface ...$collections The collections to merge. + * + * @return CollectionInterface + * + * @throws CollectionMismatchException if unable to merge any of the given + * collections or items within the given collections due to type + * mismatch errors. + */ + public function merge(CollectionInterface ...$collections): self; +} diff --git a/vendor/ramsey/collection/src/DoubleEndedQueue.php b/vendor/ramsey/collection/src/DoubleEndedQueue.php new file mode 100644 index 000000000..62947a24f --- /dev/null +++ b/vendor/ramsey/collection/src/DoubleEndedQueue.php @@ -0,0 +1,166 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use Ramsey\Collection\Exception\InvalidArgumentException; +use Ramsey\Collection\Exception\NoSuchElementException; + +use function array_key_last; +use function array_pop; +use function array_unshift; + +/** + * This class provides a basic implementation of `DoubleEndedQueueInterface`, to + * minimize the effort required to implement this interface. + * + * @template T + * @extends Queue + * @implements DoubleEndedQueueInterface + */ +class DoubleEndedQueue extends Queue implements DoubleEndedQueueInterface +{ + /** + * Constructs a double-ended queue (dequeue) object of the specified type, + * optionally with the specified data. + * + * @param string $queueType The type or class name associated with this dequeue. + * @param array $data The initial items to store in the dequeue. + */ + public function __construct(private readonly string $queueType, array $data = []) + { + parent::__construct($this->queueType, $data); + } + + /** + * @throws InvalidArgumentException if $element is of the wrong type + */ + public function addFirst(mixed $element): bool + { + if ($this->checkType($this->getType(), $element) === false) { + throw new InvalidArgumentException( + 'Value must be of type ' . $this->getType() . '; value is ' + . $this->toolValueToString($element), + ); + } + + array_unshift($this->data, $element); + + return true; + } + + /** + * @throws InvalidArgumentException if $element is of the wrong type + */ + public function addLast(mixed $element): bool + { + return $this->add($element); + } + + public function offerFirst(mixed $element): bool + { + try { + return $this->addFirst($element); + } catch (InvalidArgumentException) { + return false; + } + } + + public function offerLast(mixed $element): bool + { + return $this->offer($element); + } + + /** + * @return T the first element in this queue. + * + * @throws NoSuchElementException if the queue is empty + */ + public function removeFirst(): mixed + { + return $this->remove(); + } + + /** + * @return T the last element in this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function removeLast(): mixed + { + return $this->pollLast() ?? throw new NoSuchElementException( + 'Can\'t return element from Queue. Queue is empty.', + ); + } + + /** + * @return T | null the head of this queue, or `null` if this queue is empty. + */ + public function pollFirst(): mixed + { + return $this->poll(); + } + + /** + * @return T | null the tail of this queue, or `null` if this queue is empty. + */ + public function pollLast(): mixed + { + return array_pop($this->data); + } + + /** + * @return T the head of this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function firstElement(): mixed + { + return $this->element(); + } + + /** + * @return T the tail of this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function lastElement(): mixed + { + return $this->peekLast() ?? throw new NoSuchElementException( + 'Can\'t return element from Queue. Queue is empty.', + ); + } + + /** + * @return T | null the head of this queue, or `null` if this queue is empty. + */ + public function peekFirst(): mixed + { + return $this->peek(); + } + + /** + * @return T | null the tail of this queue, or `null` if this queue is empty. + */ + public function peekLast(): mixed + { + $lastIndex = array_key_last($this->data); + + if ($lastIndex === null) { + return null; + } + + return $this->data[$lastIndex]; + } +} diff --git a/vendor/ramsey/collection/src/DoubleEndedQueueInterface.php b/vendor/ramsey/collection/src/DoubleEndedQueueInterface.php new file mode 100644 index 000000000..15cc0e97b --- /dev/null +++ b/vendor/ramsey/collection/src/DoubleEndedQueueInterface.php @@ -0,0 +1,313 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use Ramsey\Collection\Exception\NoSuchElementException; +use RuntimeException; + +/** + * A linear collection that supports element insertion and removal at both ends. + * + * Most `DoubleEndedQueueInterface` implementations place no fixed limits on the + * number of elements they may contain, but this interface supports + * capacity-restricted double-ended queues as well as those with no fixed size + * limit. + * + * This interface defines methods to access the elements at both ends of the + * double-ended queue. Methods are provided to insert, remove, and examine the + * element. Each of these methods exists in two forms: one throws an exception + * if the operation fails, the other returns a special value (either `null` or + * `false`, depending on the operation). The latter form of the insert operation + * is designed specifically for use with capacity-restricted implementations; in + * most implementations, insert operations cannot fail. + * + * The twelve methods described above are summarized in the following table: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Summary of DoubleEndedQueueInterface methods
First Element (Head)Last Element (Tail)
Throws exceptionSpecial valueThrows exceptionSpecial value
InsertaddFirst()offerFirst()addLast()offerLast()
RemoveremoveFirst()pollFirst()removeLast()pollLast()
ExaminefirstElement()peekFirst()lastElement()peekLast()
+ * + * This interface extends the `QueueInterface`. When a double-ended queue is + * used as a queue, FIFO (first-in-first-out) behavior results. Elements are + * added at the end of the double-ended queue and removed from the beginning. + * The methods inherited from the `QueueInterface` are precisely equivalent to + * `DoubleEndedQueueInterface` methods as indicated in the following table: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Comparison of QueueInterface and DoubleEndedQueueInterface methods
QueueInterface MethodDoubleEndedQueueInterface Method
add()addLast()
offer()offerLast()
remove()removeFirst()
poll()pollFirst()
element()firstElement()
peek()peekFirst()
+ * + * Double-ended queues can also be used as LIFO (last-in-first-out) stacks. When + * a double-ended queue is used as a stack, elements are pushed and popped from + * the beginning of the double-ended queue. Stack concepts are precisely + * equivalent to `DoubleEndedQueueInterface` methods as indicated in the table + * below: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Comparison of stack concepts and DoubleEndedQueueInterface methods
Stack conceptDoubleEndedQueueInterface Method
pushaddFirst()
popremoveFirst()
peekpeekFirst()
+ * + * Note that the `peek()` method works equally well when a double-ended queue is + * used as a queue or a stack; in either case, elements are drawn from the + * beginning of the double-ended queue. + * + * While `DoubleEndedQueueInterface` implementations are not strictly required + * to prohibit the insertion of `null` elements, they are strongly encouraged to + * do so. Users of any `DoubleEndedQueueInterface` implementations that do allow + * `null` elements are strongly encouraged *not* to take advantage of the + * ability to insert nulls. This is so because `null` is used as a special + * return value by various methods to indicated that the double-ended queue is + * empty. + * + * @template T + * @extends QueueInterface + */ +interface DoubleEndedQueueInterface extends QueueInterface +{ + /** + * Inserts the specified element at the front of this queue if it is + * possible to do so immediately without violating capacity restrictions. + * + * When using a capacity-restricted double-ended queue, it is generally + * preferable to use the `offerFirst()` method. + * + * @param T $element The element to add to the front of this queue. + * + * @return bool `true` if this queue changed as a result of the call. + * + * @throws RuntimeException if a queue refuses to add a particular element + * for any reason other than that it already contains the element. + * Implementations should use a more-specific exception that extends + * `\RuntimeException`. + */ + public function addFirst(mixed $element): bool; + + /** + * Inserts the specified element at the end of this queue if it is possible + * to do so immediately without violating capacity restrictions. + * + * When using a capacity-restricted double-ended queue, it is generally + * preferable to use the `offerLast()` method. + * + * This method is equivalent to `add()`. + * + * @param T $element The element to add to the end of this queue. + * + * @return bool `true` if this queue changed as a result of the call. + * + * @throws RuntimeException if a queue refuses to add a particular element + * for any reason other than that it already contains the element. + * Implementations should use a more-specific exception that extends + * `\RuntimeException`. + */ + public function addLast(mixed $element): bool; + + /** + * Inserts the specified element at the front of this queue if it is + * possible to do so immediately without violating capacity restrictions. + * + * When using a capacity-restricted queue, this method is generally + * preferable to `addFirst()`, which can fail to insert an element only by + * throwing an exception. + * + * @param T $element The element to add to the front of this queue. + * + * @return bool `true` if the element was added to this queue, else `false`. + */ + public function offerFirst(mixed $element): bool; + + /** + * Inserts the specified element at the end of this queue if it is possible + * to do so immediately without violating capacity restrictions. + * + * When using a capacity-restricted queue, this method is generally + * preferable to `addLast()` which can fail to insert an element only by + * throwing an exception. + * + * @param T $element The element to add to the end of this queue. + * + * @return bool `true` if the element was added to this queue, else `false`. + */ + public function offerLast(mixed $element): bool; + + /** + * Retrieves and removes the head of this queue. + * + * This method differs from `pollFirst()` only in that it throws an + * exception if this queue is empty. + * + * @return T the first element in this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function removeFirst(): mixed; + + /** + * Retrieves and removes the tail of this queue. + * + * This method differs from `pollLast()` only in that it throws an exception + * if this queue is empty. + * + * @return T the last element in this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function removeLast(): mixed; + + /** + * Retrieves and removes the head of this queue, or returns `null` if this + * queue is empty. + * + * @return T | null the head of this queue, or `null` if this queue is empty. + */ + public function pollFirst(): mixed; + + /** + * Retrieves and removes the tail of this queue, or returns `null` if this + * queue is empty. + * + * @return T | null the tail of this queue, or `null` if this queue is empty. + */ + public function pollLast(): mixed; + + /** + * Retrieves, but does not remove, the head of this queue. + * + * This method differs from `peekFirst()` only in that it throws an + * exception if this queue is empty. + * + * @return T the head of this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function firstElement(): mixed; + + /** + * Retrieves, but does not remove, the tail of this queue. + * + * This method differs from `peekLast()` only in that it throws an exception + * if this queue is empty. + * + * @return T the tail of this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function lastElement(): mixed; + + /** + * Retrieves, but does not remove, the head of this queue, or returns `null` + * if this queue is empty. + * + * @return T | null the head of this queue, or `null` if this queue is empty. + */ + public function peekFirst(): mixed; + + /** + * Retrieves, but does not remove, the tail of this queue, or returns `null` + * if this queue is empty. + * + * @return T | null the tail of this queue, or `null` if this queue is empty. + */ + public function peekLast(): mixed; +} diff --git a/vendor/ramsey/collection/src/Exception/CollectionException.php b/vendor/ramsey/collection/src/Exception/CollectionException.php new file mode 100644 index 000000000..4aa92bed8 --- /dev/null +++ b/vendor/ramsey/collection/src/Exception/CollectionException.php @@ -0,0 +1,21 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Exception; + +use Throwable; + +interface CollectionException extends Throwable +{ +} diff --git a/vendor/ramsey/collection/src/Exception/CollectionMismatchException.php b/vendor/ramsey/collection/src/Exception/CollectionMismatchException.php new file mode 100644 index 000000000..42f5be2df --- /dev/null +++ b/vendor/ramsey/collection/src/Exception/CollectionMismatchException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Exception; + +use RuntimeException; + +/** + * Thrown when attempting to operate on collections of differing types. + */ +class CollectionMismatchException extends RuntimeException implements CollectionException +{ +} diff --git a/vendor/ramsey/collection/src/Exception/InvalidArgumentException.php b/vendor/ramsey/collection/src/Exception/InvalidArgumentException.php new file mode 100644 index 000000000..7b41b4a7c --- /dev/null +++ b/vendor/ramsey/collection/src/Exception/InvalidArgumentException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Exception; + +use InvalidArgumentException as PhpInvalidArgumentException; + +/** + * Thrown to indicate an argument is not of the expected type. + */ +class InvalidArgumentException extends PhpInvalidArgumentException implements CollectionException +{ +} diff --git a/vendor/ramsey/collection/src/Exception/InvalidPropertyOrMethod.php b/vendor/ramsey/collection/src/Exception/InvalidPropertyOrMethod.php new file mode 100644 index 000000000..a53be14aa --- /dev/null +++ b/vendor/ramsey/collection/src/Exception/InvalidPropertyOrMethod.php @@ -0,0 +1,26 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Exception; + +use RuntimeException; + +/** + * Thrown when attempting to evaluate a property, method, or array key + * that doesn't exist on an element or cannot otherwise be evaluated in the + * current context. + */ +class InvalidPropertyOrMethod extends RuntimeException implements CollectionException +{ +} diff --git a/vendor/ramsey/collection/src/Exception/NoSuchElementException.php b/vendor/ramsey/collection/src/Exception/NoSuchElementException.php new file mode 100644 index 000000000..cd98f0c0f --- /dev/null +++ b/vendor/ramsey/collection/src/Exception/NoSuchElementException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Exception; + +use RuntimeException; + +/** + * Thrown when attempting to access an element that does not exist. + */ +class NoSuchElementException extends RuntimeException implements CollectionException +{ +} diff --git a/vendor/ramsey/collection/src/Exception/OutOfBoundsException.php b/vendor/ramsey/collection/src/Exception/OutOfBoundsException.php new file mode 100644 index 000000000..c75294e53 --- /dev/null +++ b/vendor/ramsey/collection/src/Exception/OutOfBoundsException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Exception; + +use OutOfBoundsException as PhpOutOfBoundsException; + +/** + * Thrown when attempting to access an element out of the range of the collection. + */ +class OutOfBoundsException extends PhpOutOfBoundsException implements CollectionException +{ +} diff --git a/vendor/ramsey/collection/src/Exception/UnsupportedOperationException.php b/vendor/ramsey/collection/src/Exception/UnsupportedOperationException.php new file mode 100644 index 000000000..d074f45fd --- /dev/null +++ b/vendor/ramsey/collection/src/Exception/UnsupportedOperationException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Exception; + +use RuntimeException; + +/** + * Thrown to indicate that the requested operation is not supported. + */ +class UnsupportedOperationException extends RuntimeException implements CollectionException +{ +} diff --git a/vendor/ramsey/collection/src/GenericArray.php b/vendor/ramsey/collection/src/GenericArray.php new file mode 100644 index 000000000..2b079aa5e --- /dev/null +++ b/vendor/ramsey/collection/src/GenericArray.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +/** + * `GenericArray` represents a standard array object. + * + * @extends AbstractArray + */ +class GenericArray extends AbstractArray +{ +} diff --git a/vendor/ramsey/collection/src/Map/AbstractMap.php b/vendor/ramsey/collection/src/Map/AbstractMap.php new file mode 100644 index 000000000..7a851a80f --- /dev/null +++ b/vendor/ramsey/collection/src/Map/AbstractMap.php @@ -0,0 +1,203 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Map; + +use Ramsey\Collection\AbstractArray; +use Ramsey\Collection\Exception\InvalidArgumentException; +use Traversable; + +use function array_key_exists; +use function array_keys; +use function in_array; +use function var_export; + +/** + * This class provides a basic implementation of `MapInterface`, to minimize the + * effort required to implement this interface. + * + * @template K of array-key + * @template T + * @extends AbstractArray + * @implements MapInterface + */ +abstract class AbstractMap extends AbstractArray implements MapInterface +{ + /** + * @param array $data The initial items to add to this map. + */ + public function __construct(array $data = []) + { + parent::__construct($data); + } + + /** + * @return Traversable + */ + public function getIterator(): Traversable + { + return parent::getIterator(); + } + + /** + * @param K $offset The offset to set + * @param T $value The value to set at the given offset. + * + * @inheritDoc + * @psalm-suppress MoreSpecificImplementedParamType,DocblockTypeContradiction + */ + public function offsetSet(mixed $offset, mixed $value): void + { + if ($offset === null) { + throw new InvalidArgumentException( + 'Map elements are key/value pairs; a key must be provided for ' + . 'value ' . var_export($value, true), + ); + } + + $this->data[$offset] = $value; + } + + public function containsKey(int | string $key): bool + { + return array_key_exists($key, $this->data); + } + + public function containsValue(mixed $value): bool + { + return in_array($value, $this->data, true); + } + + /** + * @inheritDoc + */ + public function keys(): array + { + return array_keys($this->data); + } + + /** + * @param K $key The key to return from the map. + * @param T | null $defaultValue The default value to use if `$key` is not found. + * + * @return T | null the value or `null` if the key could not be found. + */ + public function get(int | string $key, mixed $defaultValue = null): mixed + { + return $this[$key] ?? $defaultValue; + } + + /** + * @param K $key The key to put or replace in the map. + * @param T $value The value to store at `$key`. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function put(int | string $key, mixed $value): mixed + { + $previousValue = $this->get($key); + $this[$key] = $value; + + return $previousValue; + } + + /** + * @param K $key The key to put in the map. + * @param T $value The value to store at `$key`. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function putIfAbsent(int | string $key, mixed $value): mixed + { + $currentValue = $this->get($key); + + if ($currentValue === null) { + $this[$key] = $value; + } + + return $currentValue; + } + + /** + * @param K $key The key to remove from the map. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function remove(int | string $key): mixed + { + $previousValue = $this->get($key); + unset($this[$key]); + + return $previousValue; + } + + public function removeIf(int | string $key, mixed $value): bool + { + if ($this->get($key) === $value) { + unset($this[$key]); + + return true; + } + + return false; + } + + /** + * @param K $key The key to replace. + * @param T $value The value to set at `$key`. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function replace(int | string $key, mixed $value): mixed + { + $currentValue = $this->get($key); + + if ($this->containsKey($key)) { + $this[$key] = $value; + } + + return $currentValue; + } + + public function replaceIf(int | string $key, mixed $oldValue, mixed $newValue): bool + { + if ($this->get($key) === $oldValue) { + $this[$key] = $newValue; + + return true; + } + + return false; + } + + /** + * @return array + */ + public function __serialize(): array + { + return parent::__serialize(); + } + + /** + * @return array + */ + public function toArray(): array + { + return parent::toArray(); + } +} diff --git a/vendor/ramsey/collection/src/Map/AbstractTypedMap.php b/vendor/ramsey/collection/src/Map/AbstractTypedMap.php new file mode 100644 index 000000000..92fdcd54c --- /dev/null +++ b/vendor/ramsey/collection/src/Map/AbstractTypedMap.php @@ -0,0 +1,60 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Map; + +use Ramsey\Collection\Exception\InvalidArgumentException; +use Ramsey\Collection\Tool\TypeTrait; +use Ramsey\Collection\Tool\ValueToStringTrait; + +/** + * This class provides a basic implementation of `TypedMapInterface`, to + * minimize the effort required to implement this interface. + * + * @template K of array-key + * @template T + * @extends AbstractMap + * @implements TypedMapInterface + */ +abstract class AbstractTypedMap extends AbstractMap implements TypedMapInterface +{ + use TypeTrait; + use ValueToStringTrait; + + /** + * @param K $offset + * @param T $value + * + * @inheritDoc + * @psalm-suppress MoreSpecificImplementedParamType + */ + public function offsetSet(mixed $offset, mixed $value): void + { + if ($this->checkType($this->getKeyType(), $offset) === false) { + throw new InvalidArgumentException( + 'Key must be of type ' . $this->getKeyType() . '; key is ' + . $this->toolValueToString($offset), + ); + } + + if ($this->checkType($this->getValueType(), $value) === false) { + throw new InvalidArgumentException( + 'Value must be of type ' . $this->getValueType() . '; value is ' + . $this->toolValueToString($value), + ); + } + + parent::offsetSet($offset, $value); + } +} diff --git a/vendor/ramsey/collection/src/Map/AssociativeArrayMap.php b/vendor/ramsey/collection/src/Map/AssociativeArrayMap.php new file mode 100644 index 000000000..34e4e853b --- /dev/null +++ b/vendor/ramsey/collection/src/Map/AssociativeArrayMap.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Map; + +/** + * `AssociativeArrayMap` represents a standard associative array object. + * + * @extends AbstractMap + */ +class AssociativeArrayMap extends AbstractMap +{ +} diff --git a/vendor/ramsey/collection/src/Map/MapInterface.php b/vendor/ramsey/collection/src/Map/MapInterface.php new file mode 100644 index 000000000..22ba1bdd1 --- /dev/null +++ b/vendor/ramsey/collection/src/Map/MapInterface.php @@ -0,0 +1,142 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Map; + +use Ramsey\Collection\ArrayInterface; + +/** + * An object that maps keys to values. + * + * A map cannot contain duplicate keys; each key can map to at most one value. + * + * @template K of array-key + * @template T + * @extends ArrayInterface + */ +interface MapInterface extends ArrayInterface +{ + /** + * Returns `true` if this map contains a mapping for the specified key. + * + * @param K $key The key to check in the map. + */ + public function containsKey(int | string $key): bool; + + /** + * Returns `true` if this map maps one or more keys to the specified value. + * + * This performs a strict type check on the value. + * + * @param T $value The value to check in the map. + */ + public function containsValue(mixed $value): bool; + + /** + * Return an array of the keys contained in this map. + * + * @return list + */ + public function keys(): array; + + /** + * Returns the value to which the specified key is mapped, `null` if this + * map contains no mapping for the key, or (optionally) `$defaultValue` if + * this map contains no mapping for the key. + * + * @param K $key The key to return from the map. + * @param T | null $defaultValue The default value to use if `$key` is not found. + * + * @return T | null the value or `null` if the key could not be found. + */ + public function get(int | string $key, mixed $defaultValue = null): mixed; + + /** + * Associates the specified value with the specified key in this map. + * + * If the map previously contained a mapping for the key, the old value is + * replaced by the specified value. + * + * @param K $key The key to put or replace in the map. + * @param T $value The value to store at `$key`. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function put(int | string $key, mixed $value): mixed; + + /** + * Associates the specified value with the specified key in this map only if + * it is not already set. + * + * If there is already a value associated with `$key`, this returns that + * value without replacing it. + * + * @param K $key The key to put in the map. + * @param T $value The value to store at `$key`. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function putIfAbsent(int | string $key, mixed $value): mixed; + + /** + * Removes the mapping for a key from this map if it is present. + * + * @param K $key The key to remove from the map. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function remove(int | string $key): mixed; + + /** + * Removes the entry for the specified key only if it is currently mapped to + * the specified value. + * + * This performs a strict type check on the value. + * + * @param K $key The key to remove from the map. + * @param T $value The value to match. + * + * @return bool true if the value was removed. + */ + public function removeIf(int | string $key, mixed $value): bool; + + /** + * Replaces the entry for the specified key only if it is currently mapped + * to some value. + * + * @param K $key The key to replace. + * @param T $value The value to set at `$key`. + * + * @return T | null the previous value associated with key, or `null` if + * there was no mapping for `$key`. + */ + public function replace(int | string $key, mixed $value): mixed; + + /** + * Replaces the entry for the specified key only if currently mapped to the + * specified value. + * + * This performs a strict type check on the value. + * + * @param K $key The key to remove from the map. + * @param T $oldValue The value to match. + * @param T $newValue The value to use as a replacement. + * + * @return bool true if the value was replaced. + */ + public function replaceIf(int | string $key, mixed $oldValue, mixed $newValue): bool; +} diff --git a/vendor/ramsey/collection/src/Map/NamedParameterMap.php b/vendor/ramsey/collection/src/Map/NamedParameterMap.php new file mode 100644 index 000000000..f948e476c --- /dev/null +++ b/vendor/ramsey/collection/src/Map/NamedParameterMap.php @@ -0,0 +1,110 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Map; + +use Ramsey\Collection\Exception\InvalidArgumentException; +use Ramsey\Collection\Tool\TypeTrait; +use Ramsey\Collection\Tool\ValueToStringTrait; + +use function array_combine; +use function array_key_exists; +use function is_int; + +/** + * `NamedParameterMap` represents a mapping of values to a set of named keys + * that may optionally be typed + * + * @extends AbstractMap + */ +class NamedParameterMap extends AbstractMap +{ + use TypeTrait; + use ValueToStringTrait; + + /** + * Named parameters defined for this map. + * + * @var array + */ + private readonly array $namedParameters; + + /** + * Constructs a new `NamedParameterMap`. + * + * @param array $namedParameters The named parameters defined for this map. + * @param array $data An initial set of data to set on this map. + */ + public function __construct(array $namedParameters, array $data = []) + { + $this->namedParameters = $this->filterNamedParameters($namedParameters); + parent::__construct($data); + } + + /** + * Returns named parameters set for this `NamedParameterMap`. + * + * @return array + */ + public function getNamedParameters(): array + { + return $this->namedParameters; + } + + public function offsetSet(mixed $offset, mixed $value): void + { + if (!array_key_exists($offset, $this->namedParameters)) { + throw new InvalidArgumentException( + 'Attempting to set value for unconfigured parameter \'' + . $this->toolValueToString($offset) . '\'', + ); + } + + if ($this->checkType($this->namedParameters[$offset], $value) === false) { + throw new InvalidArgumentException( + 'Value for \'' . $offset . '\' must be of type ' + . $this->namedParameters[$offset] . '; value is ' + . $this->toolValueToString($value), + ); + } + + $this->data[$offset] = $value; + } + + /** + * Given an array of named parameters, constructs a proper mapping of + * named parameters to types. + * + * @param array $namedParameters The named parameters to filter. + * + * @return array + */ + protected function filterNamedParameters(array $namedParameters): array + { + $names = []; + $types = []; + + foreach ($namedParameters as $key => $value) { + if (is_int($key)) { + $names[] = $value; + $types[] = 'mixed'; + } else { + $names[] = $key; + $types[] = $value; + } + } + + return array_combine($names, $types) ?: []; + } +} diff --git a/vendor/ramsey/collection/src/Map/TypedMap.php b/vendor/ramsey/collection/src/Map/TypedMap.php new file mode 100644 index 000000000..f914d9c70 --- /dev/null +++ b/vendor/ramsey/collection/src/Map/TypedMap.php @@ -0,0 +1,112 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Map; + +/** + * A `TypedMap` represents a map of elements where key and value are typed. + * + * Each element is identified by a key with defined type and a value of defined + * type. The keys of the map must be unique. The values on the map can be + * repeated but each with its own different key. + * + * The most common case is to use a string type key, but it's not limited to + * this type of keys. + * + * This is a direct implementation of `TypedMapInterface`, provided for the sake + * of convenience. + * + * Example usage: + * + * ```php + * $map = new TypedMap('string', Foo::class); + * $map['x'] = new Foo(); + * foreach ($map as $key => $value) { + * // do something with $key, it will be a Foo::class + * } + * + * // this will throw an exception since key must be string + * $map[10] = new Foo(); + * + * // this will throw an exception since value must be a Foo + * $map['bar'] = 'bar'; + * + * // initialize map with contents + * $map = new TypedMap('string', Foo::class, [ + * new Foo(), new Foo(), new Foo() + * ]); + * ``` + * + * It is preferable to subclass `AbstractTypedMap` to create your own typed map + * implementation: + * + * ```php + * class FooTypedMap extends AbstractTypedMap + * { + * public function getKeyType() + * { + * return 'int'; + * } + * + * public function getValueType() + * { + * return Foo::class; + * } + * } + * ``` + * + * … but you also may use the `TypedMap` class: + * + * ```php + * class FooTypedMap extends TypedMap + * { + * public function __constructor(array $data = []) + * { + * parent::__construct('int', Foo::class, $data); + * } + * } + * ``` + * + * @template K of array-key + * @template T + * @extends AbstractTypedMap + */ +class TypedMap extends AbstractTypedMap +{ + /** + * Constructs a map object of the specified key and value types, + * optionally with the specified data. + * + * @param string $keyType The data type of the map's keys. + * @param string $valueType The data type of the map's values. + * @param array $data The initial data to set for this map. + */ + public function __construct( + private readonly string $keyType, + private readonly string $valueType, + array $data = [], + ) { + parent::__construct($data); + } + + public function getKeyType(): string + { + return $this->keyType; + } + + public function getValueType(): string + { + return $this->valueType; + } +} diff --git a/vendor/ramsey/collection/src/Map/TypedMapInterface.php b/vendor/ramsey/collection/src/Map/TypedMapInterface.php new file mode 100644 index 000000000..5a44f0647 --- /dev/null +++ b/vendor/ramsey/collection/src/Map/TypedMapInterface.php @@ -0,0 +1,36 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Map; + +/** + * A `TypedMapInterface` represents a map of elements where key and value are + * typed. + * + * @template K of array-key + * @template T + * @extends MapInterface + */ +interface TypedMapInterface extends MapInterface +{ + /** + * Return the type used on the key. + */ + public function getKeyType(): string; + + /** + * Return the type forced on the values. + */ + public function getValueType(): string; +} diff --git a/vendor/ramsey/collection/src/Queue.php b/vendor/ramsey/collection/src/Queue.php new file mode 100644 index 000000000..0f5b33740 --- /dev/null +++ b/vendor/ramsey/collection/src/Queue.php @@ -0,0 +1,148 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use Ramsey\Collection\Exception\InvalidArgumentException; +use Ramsey\Collection\Exception\NoSuchElementException; +use Ramsey\Collection\Tool\TypeTrait; +use Ramsey\Collection\Tool\ValueToStringTrait; + +use function array_key_first; + +/** + * This class provides a basic implementation of `QueueInterface`, to minimize + * the effort required to implement this interface. + * + * @template T + * @extends AbstractArray + * @implements QueueInterface + */ +class Queue extends AbstractArray implements QueueInterface +{ + use TypeTrait; + use ValueToStringTrait; + + /** + * Constructs a queue object of the specified type, optionally with the + * specified data. + * + * @param string $queueType The type or class name associated with this queue. + * @param array $data The initial items to store in the queue. + */ + public function __construct(private readonly string $queueType, array $data = []) + { + parent::__construct($data); + } + + /** + * {@inheritDoc} + * + * Since arbitrary offsets may not be manipulated in a queue, this method + * serves only to fulfill the `ArrayAccess` interface requirements. It is + * invoked by other operations when adding values to the queue. + * + * @throws InvalidArgumentException if $value is of the wrong type. + */ + public function offsetSet(mixed $offset, mixed $value): void + { + if ($this->checkType($this->getType(), $value) === false) { + throw new InvalidArgumentException( + 'Value must be of type ' . $this->getType() . '; value is ' + . $this->toolValueToString($value), + ); + } + + $this->data[] = $value; + } + + /** + * @throws InvalidArgumentException if $value is of the wrong type. + */ + public function add(mixed $element): bool + { + $this[] = $element; + + return true; + } + + /** + * @return T + * + * @throws NoSuchElementException if this queue is empty. + */ + public function element(): mixed + { + return $this->peek() ?? throw new NoSuchElementException( + 'Can\'t return element from Queue. Queue is empty.', + ); + } + + public function offer(mixed $element): bool + { + try { + return $this->add($element); + } catch (InvalidArgumentException) { + return false; + } + } + + /** + * @return T | null + */ + public function peek(): mixed + { + $index = array_key_first($this->data); + + if ($index === null) { + return null; + } + + return $this[$index]; + } + + /** + * @return T | null + */ + public function poll(): mixed + { + $index = array_key_first($this->data); + + if ($index === null) { + return null; + } + + $head = $this[$index]; + unset($this[$index]); + + return $head; + } + + /** + * @return T + * + * @throws NoSuchElementException if this queue is empty. + */ + public function remove(): mixed + { + return $this->poll() ?? throw new NoSuchElementException( + 'Can\'t return element from Queue. Queue is empty.', + ); + } + + public function getType(): string + { + return $this->queueType; + } +} diff --git a/vendor/ramsey/collection/src/QueueInterface.php b/vendor/ramsey/collection/src/QueueInterface.php new file mode 100644 index 000000000..f29ce43ab --- /dev/null +++ b/vendor/ramsey/collection/src/QueueInterface.php @@ -0,0 +1,202 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +use Ramsey\Collection\Exception\NoSuchElementException; +use RuntimeException; + +/** + * A queue is a collection in which the entities in the collection are kept in + * order. + * + * The principal operations on the queue are the addition of entities to the end + * (tail), also known as *enqueue*, and removal of entities from the front + * (head), also known as *dequeue*. This makes the queue a first-in-first-out + * (FIFO) data structure. + * + * Besides basic array operations, queues provide additional insertion, + * extraction, and inspection operations. Each of these methods exists in two + * forms: one throws an exception if the operation fails, the other returns a + * special value (either `null` or `false`, depending on the operation). The + * latter form of the insert operation is designed specifically for use with + * capacity-restricted `QueueInterface` implementations; in most + * implementations, insert operations cannot fail. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Summary of QueueInterface methods
Throws exceptionReturns special value
Insertadd()offer()
Removeremove()poll()
Examineelement()peek()
+ * + * Queues typically, but do not necessarily, order elements in a FIFO + * (first-in-first-out) manner. Among the exceptions are priority queues, which + * order elements according to a supplied comparator, or the elements' natural + * ordering, and LIFO queues (or stacks) which order the elements LIFO + * (last-in-first-out). Whatever the ordering used, the head of the queue is + * that element which would be removed by a call to remove() or poll(). In a + * FIFO queue, all new elements are inserted at the tail of the queue. Other + * kinds of queues may use different placement rules. Every `QueueInterface` + * implementation must specify its ordering properties. + * + * The `offer()` method inserts an element if possible, otherwise returning + * `false`. This differs from the `add()` method, which can fail to add an + * element only by throwing an unchecked exception. The `offer()` method is + * designed for use when failure is a normal, rather than exceptional + * occurrence, for example, in fixed-capacity (or "bounded") queues. + * + * The `remove()` and `poll()` methods remove and return the head of the queue. + * Exactly which element is removed from the queue is a function of the queue's + * ordering policy, which differs from implementation to implementation. The + * `remove()` and `poll()` methods differ only in their behavior when the queue + * is empty: the `remove()` method throws an exception, while the `poll()` + * method returns `null`. + * + * The `element()` and `peek()` methods return, but do not remove, the head of + * the queue. + * + * `QueueInterface` implementations generally do not allow insertion of `null` + * elements, although some implementations do not prohibit insertion of `null`. + * Even in the implementations that permit it, `null` should not be inserted + * into a queue, as `null` is also used as a special return value by the + * `poll()` method to indicate that the queue contains no elements. + * + * @template T + * @extends ArrayInterface + */ +interface QueueInterface extends ArrayInterface +{ + /** + * Ensures that this queue contains the specified element (optional + * operation). + * + * Returns `true` if this queue changed as a result of the call. (Returns + * `false` if this queue does not permit duplicates and already contains the + * specified element.) + * + * Queues that support this operation may place limitations on what elements + * may be added to this queue. In particular, some queues will refuse to add + * `null` elements, and others will impose restrictions on the type of + * elements that may be added. Queue classes should clearly specify in their + * documentation any restrictions on what elements may be added. + * + * If a queue refuses to add a particular element for any reason other than + * that it already contains the element, it must throw an exception (rather + * than returning `false`). This preserves the invariant that a queue always + * contains the specified element after this call returns. + * + * @see self::offer() + * + * @param T $element The element to add to this queue. + * + * @return bool `true` if this queue changed as a result of the call. + * + * @throws RuntimeException if a queue refuses to add a particular element + * for any reason other than that it already contains the element. + * Implementations should use a more-specific exception that extends + * `\RuntimeException`. + */ + public function add(mixed $element): bool; + + /** + * Retrieves, but does not remove, the head of this queue. + * + * This method differs from `peek()` only in that it throws an exception if + * this queue is empty. + * + * @see self::peek() + * + * @return T the head of this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function element(): mixed; + + /** + * Inserts the specified element into this queue if it is possible to do so + * immediately without violating capacity restrictions. + * + * When using a capacity-restricted queue, this method is generally + * preferable to `add()`, which can fail to insert an element only by + * throwing an exception. + * + * @see self::add() + * + * @param T $element The element to add to this queue. + * + * @return bool `true` if the element was added to this queue, else `false`. + */ + public function offer(mixed $element): bool; + + /** + * Retrieves, but does not remove, the head of this queue, or returns `null` + * if this queue is empty. + * + * @see self::element() + * + * @return T | null the head of this queue, or `null` if this queue is empty. + */ + public function peek(): mixed; + + /** + * Retrieves and removes the head of this queue, or returns `null` + * if this queue is empty. + * + * @see self::remove() + * + * @return T | null the head of this queue, or `null` if this queue is empty. + */ + public function poll(): mixed; + + /** + * Retrieves and removes the head of this queue. + * + * This method differs from `poll()` only in that it throws an exception if + * this queue is empty. + * + * @see self::poll() + * + * @return T the head of this queue. + * + * @throws NoSuchElementException if this queue is empty. + */ + public function remove(): mixed; + + /** + * Returns the type associated with this queue. + */ + public function getType(): string; +} diff --git a/vendor/ramsey/collection/src/Set.php b/vendor/ramsey/collection/src/Set.php new file mode 100644 index 000000000..aa93351c4 --- /dev/null +++ b/vendor/ramsey/collection/src/Set.php @@ -0,0 +1,59 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +/** + * A set is a collection that contains no duplicate elements. + * + * Great care must be exercised if mutable objects are used as set elements. + * The behavior of a set is not specified if the value of an object is changed + * in a manner that affects equals comparisons while the object is an element in + * the set. + * + * Example usage: + * + * ``` php + * $foo = new \My\Foo(); + * $set = new Set(\My\Foo::class); + * + * $set->add($foo); // returns TRUE, the element doesn't exist + * $set->add($foo); // returns FALSE, the element already exists + * + * $bar = new \My\Foo(); + * $set->add($bar); // returns TRUE, $bar !== $foo + * ``` + * + * @template T + * @extends AbstractSet + */ +class Set extends AbstractSet +{ + /** + * Constructs a set object of the specified type, optionally with the + * specified data. + * + * @param string $setType The type or class name associated with this set. + * @param array $data The initial items to store in the set. + */ + public function __construct(private readonly string $setType, array $data = []) + { + parent::__construct($data); + } + + public function getType(): string + { + return $this->setType; + } +} diff --git a/vendor/ramsey/collection/src/Sort.php b/vendor/ramsey/collection/src/Sort.php new file mode 100644 index 000000000..0c3c19213 --- /dev/null +++ b/vendor/ramsey/collection/src/Sort.php @@ -0,0 +1,31 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection; + +/** + * Collection sorting + */ +enum Sort: string +{ + /** + * Sort items in a collection in ascending order. + */ + case Ascending = 'asc'; + + /** + * Sort items in a collection in descending order. + */ + case Descending = 'desc'; +} diff --git a/vendor/ramsey/collection/src/Tool/TypeTrait.php b/vendor/ramsey/collection/src/Tool/TypeTrait.php new file mode 100644 index 000000000..ac51b7f10 --- /dev/null +++ b/vendor/ramsey/collection/src/Tool/TypeTrait.php @@ -0,0 +1,57 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Tool; + +use function is_array; +use function is_bool; +use function is_callable; +use function is_float; +use function is_int; +use function is_numeric; +use function is_object; +use function is_resource; +use function is_scalar; +use function is_string; + +/** + * Provides functionality to check values for specific types. + */ +trait TypeTrait +{ + /** + * Returns `true` if value is of the specified type. + * + * @param string $type The type to check the value against. + * @param mixed $value The value to check. + */ + protected function checkType(string $type, mixed $value): bool + { + return match ($type) { + 'array' => is_array($value), + 'bool', 'boolean' => is_bool($value), + 'callable' => is_callable($value), + 'float', 'double' => is_float($value), + 'int', 'integer' => is_int($value), + 'null' => $value === null, + 'numeric' => is_numeric($value), + 'object' => is_object($value), + 'resource' => is_resource($value), + 'scalar' => is_scalar($value), + 'string' => is_string($value), + 'mixed' => true, + default => $value instanceof $type, + }; + } +} diff --git a/vendor/ramsey/collection/src/Tool/ValueExtractorTrait.php b/vendor/ramsey/collection/src/Tool/ValueExtractorTrait.php new file mode 100644 index 000000000..44c422252 --- /dev/null +++ b/vendor/ramsey/collection/src/Tool/ValueExtractorTrait.php @@ -0,0 +1,81 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Tool; + +use Ramsey\Collection\Exception\InvalidPropertyOrMethod; +use Ramsey\Collection\Exception\UnsupportedOperationException; + +use function is_array; +use function is_object; +use function method_exists; +use function property_exists; +use function sprintf; + +/** + * Provides functionality to extract the value of a property or method from an object. + */ +trait ValueExtractorTrait +{ + /** + * Extracts the value of the given property, method, or array key from the + * element. + * + * If `$propertyOrMethod` is `null`, we return the element as-is. + * + * @param mixed $element The element to extract the value from. + * @param string | null $propertyOrMethod The property or method for which the + * value should be extracted. + * + * @return mixed the value extracted from the specified property, method, + * or array key, or the element itself. + * + * @throws InvalidPropertyOrMethod + * @throws UnsupportedOperationException + */ + protected function extractValue(mixed $element, ?string $propertyOrMethod): mixed + { + if ($propertyOrMethod === null) { + return $element; + } + + if (!is_object($element) && !is_array($element)) { + throw new UnsupportedOperationException(sprintf( + 'The collection type "%s" does not support the $propertyOrMethod parameter', + $this->getType(), + )); + } + + if (is_array($element)) { + return $element[$propertyOrMethod] ?? throw new InvalidPropertyOrMethod(sprintf( + 'Key or index "%s" not found in collection elements', + $propertyOrMethod, + )); + } + + if (property_exists($element, $propertyOrMethod)) { + return $element->$propertyOrMethod; + } + + if (method_exists($element, $propertyOrMethod)) { + return $element->{$propertyOrMethod}(); + } + + throw new InvalidPropertyOrMethod(sprintf( + 'Method or property "%s" not defined in %s', + $propertyOrMethod, + $element::class, + )); + } +} diff --git a/vendor/ramsey/collection/src/Tool/ValueToStringTrait.php b/vendor/ramsey/collection/src/Tool/ValueToStringTrait.php new file mode 100644 index 000000000..64fc5fa42 --- /dev/null +++ b/vendor/ramsey/collection/src/Tool/ValueToStringTrait.php @@ -0,0 +1,91 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Collection\Tool; + +use DateTimeInterface; + +use function assert; +use function get_resource_type; +use function is_array; +use function is_bool; +use function is_callable; +use function is_object; +use function is_resource; +use function is_scalar; + +/** + * Provides functionality to express a value as string + */ +trait ValueToStringTrait +{ + /** + * Returns a string representation of the value. + * + * - null value: `'NULL'` + * - boolean: `'TRUE'`, `'FALSE'` + * - array: `'Array'` + * - scalar: converted-value + * - resource: `'(type resource #number)'` + * - object with `__toString()`: result of `__toString()` + * - object DateTime: ISO 8601 date + * - object: `'(className Object)'` + * - anonymous function: same as object + * + * @param mixed $value the value to return as a string. + */ + protected function toolValueToString(mixed $value): string + { + // null + if ($value === null) { + return 'NULL'; + } + + // boolean constants + if (is_bool($value)) { + return $value ? 'TRUE' : 'FALSE'; + } + + // array + if (is_array($value)) { + return 'Array'; + } + + // scalar types (integer, float, string) + if (is_scalar($value)) { + return (string) $value; + } + + // resource + if (is_resource($value)) { + return '(' . get_resource_type($value) . ' resource #' . (int) $value . ')'; + } + + // From here, $value should be an object. + assert(is_object($value)); + + // __toString() is implemented + if (is_callable([$value, '__toString'])) { + return (string) $value->__toString(); + } + + // object of type \DateTime + if ($value instanceof DateTimeInterface) { + return $value->format('c'); + } + + // unknown type + return '(' . $value::class . ' Object)'; + } +} diff --git a/vendor/ramsey/uuid/LICENSE b/vendor/ramsey/uuid/LICENSE new file mode 100644 index 000000000..5b2acc5b7 --- /dev/null +++ b/vendor/ramsey/uuid/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2012-2023 Ben Ramsey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/ramsey/uuid/README.md b/vendor/ramsey/uuid/README.md new file mode 100644 index 000000000..0db814959 --- /dev/null +++ b/vendor/ramsey/uuid/README.md @@ -0,0 +1,83 @@ +

ramsey/uuid

+ +

+ A PHP library for generating and working with UUIDs. +

+ +

+ Source Code + Download Package + PHP Programming Language + Read License + Build Status + Codecov Code Coverage + Psalm Type Coverage +

+ +ramsey/uuid is a PHP library for generating and working with universally unique +identifiers (UUIDs). + +This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). +By participating in this project and its community, you are expected to +uphold this code. + +Much inspiration for this library came from the [Java][javauuid] and +[Python][pyuuid] UUID libraries. + +## Installation + +The preferred method of installation is via [Composer][]. Run the following +command to install the package and add it as a requirement to your project's +`composer.json`: + +```bash +composer require ramsey/uuid +``` + +## Upgrading to Version 4 + +See the documentation for a thorough upgrade guide: + +* [Upgrading ramsey/uuid Version 3 to 4](https://uuid.ramsey.dev/en/stable/upgrading/3-to-4.html) + +## Documentation + +Please see for documentation, tips, examples, and +frequently asked questions. + +## Contributing + +Contributions are welcome! To contribute, please familiarize yourself with +[CONTRIBUTING.md](CONTRIBUTING.md). + +## Coordinated Disclosure + +Keeping user information safe and secure is a top priority, and we welcome the +contribution of external security researchers. If you believe you've found a +security issue in software that is maintained in this repository, please read +[SECURITY.md][] for instructions on submitting a vulnerability report. + +## ramsey/uuid for Enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of ramsey/uuid and thousands of other packages are working with +Tidelift to deliver commercial support and maintenance for the open source +packages you use to build your applications. Save time, reduce risk, and improve +code health, while paying the maintainers of the exact packages you use. +[Learn more.](https://tidelift.com/subscription/pkg/packagist-ramsey-uuid?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + +## Copyright and License + +The ramsey/uuid library is copyright © [Ben Ramsey](https://benramsey.com/) and +licensed for use under the MIT License (MIT). Please see [LICENSE][] for more +information. + +[rfc4122]: http://tools.ietf.org/html/rfc4122 +[conduct]: https://github.com/ramsey/uuid/blob/4.x/CODE_OF_CONDUCT.md +[javauuid]: http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html +[pyuuid]: http://docs.python.org/3/library/uuid.html +[composer]: http://getcomposer.org/ +[contributing.md]: https://github.com/ramsey/uuid/blob/4.x/CONTRIBUTING.md +[security.md]: https://github.com/ramsey/uuid/blob/4.x/SECURITY.md +[license]: https://github.com/ramsey/uuid/blob/4.x/LICENSE diff --git a/vendor/ramsey/uuid/composer.json b/vendor/ramsey/uuid/composer.json new file mode 100644 index 000000000..9ea4e06b3 --- /dev/null +++ b/vendor/ramsey/uuid/composer.json @@ -0,0 +1,108 @@ +{ + "name": "ramsey/uuid", + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "license": "MIT", + "type": "library", + "keywords": [ + "uuid", + "identifier", + "guid" + ], + "require": { + "php": "^8.0", + "ext-json": "*", + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", + "ramsey/collection": "^1.2 || ^2.0" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "minimum-stability": "dev", + "prefer-stable": true, + "autoload": { + "psr-4": { + "Ramsey\\Uuid\\": "src/" + }, + "files": [ + "src/functions.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Ramsey\\Uuid\\Benchmark\\": "tests/benchmark/", + "Ramsey\\Uuid\\StaticAnalysis\\": "tests/static-analysis/", + "Ramsey\\Uuid\\Test\\": "tests/" + } + }, + "config": { + "allow-plugins": { + "captainhook/plugin-composer": true, + "ergebnis/composer-normalize": true, + "phpstan/extension-installer": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "ramsey/composer-repl": true + }, + "sort-packages": true + }, + "extra": { + "captainhook": { + "force-install": true + } + }, + "scripts": { + "analyze": [ + "@phpstan", + "@psalm" + ], + "build:clean": "git clean -fX build/", + "lint": "parallel-lint src tests", + "lint:paths": "parallel-lint", + "phpbench": "phpbench run", + "phpcbf": "phpcbf -vpw --cache=build/cache/phpcs.cache", + "phpcs": "phpcs --cache=build/cache/phpcs.cache", + "phpstan": [ + "phpstan analyse --no-progress --memory-limit=1G", + "phpstan analyse -c phpstan-tests.neon --no-progress --memory-limit=1G" + ], + "phpunit": "phpunit --verbose --colors=always", + "phpunit-coverage": "phpunit --verbose --colors=always --coverage-html build/coverage", + "psalm": "psalm --show-info=false --config=psalm.xml", + "test": [ + "@lint", + "@phpbench", + "@phpcs", + "@phpstan", + "@psalm", + "@phpunit" + ] + } +} diff --git a/vendor/ramsey/uuid/src/BinaryUtils.php b/vendor/ramsey/uuid/src/BinaryUtils.php new file mode 100644 index 000000000..fb8ba9adc --- /dev/null +++ b/vendor/ramsey/uuid/src/BinaryUtils.php @@ -0,0 +1,63 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +/** + * Provides binary math utilities + */ +class BinaryUtils +{ + /** + * Applies the RFC 4122 variant field to the 16-bit clock sequence + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + * + * @param int $clockSeq The 16-bit clock sequence value before the RFC 4122 + * variant is applied + * + * @return int The 16-bit clock sequence multiplexed with the UUID variant + * + * @psalm-pure + */ + public static function applyVariant(int $clockSeq): int + { + $clockSeq = $clockSeq & 0x3fff; + $clockSeq |= 0x8000; + + return $clockSeq; + } + + /** + * Applies the RFC 4122 version number to the 16-bit `time_hi_and_version` field + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + * + * @param int $timeHi The value of the 16-bit `time_hi_and_version` field + * before the RFC 4122 version is applied + * @param int $version The RFC 4122 version to apply to the `time_hi` field + * + * @return int The 16-bit time_hi field of the timestamp multiplexed with + * the UUID version number + * + * @psalm-pure + */ + public static function applyVersion(int $timeHi, int $version): int + { + $timeHi = $timeHi & 0x0fff; + $timeHi |= $version << 12; + + return $timeHi; + } +} diff --git a/vendor/ramsey/uuid/src/Builder/BuilderCollection.php b/vendor/ramsey/uuid/src/Builder/BuilderCollection.php new file mode 100644 index 000000000..9df3110fd --- /dev/null +++ b/vendor/ramsey/uuid/src/Builder/BuilderCollection.php @@ -0,0 +1,85 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Collection\AbstractCollection; +use Ramsey\Uuid\Converter\Number\GenericNumberConverter; +use Ramsey\Uuid\Converter\Time\GenericTimeConverter; +use Ramsey\Uuid\Converter\Time\PhpTimeConverter; +use Ramsey\Uuid\Guid\GuidBuilder; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Nonstandard\UuidBuilder as NonstandardUuidBuilder; +use Ramsey\Uuid\Rfc4122\UuidBuilder as Rfc4122UuidBuilder; +use Traversable; + +/** + * A collection of UuidBuilderInterface objects + * + * @deprecated this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from + * a pre-`phpstan/phpstan` and pre-`vimeo/psalm` ecosystem, in which type safety had to be mostly enforced + * at runtime: that is no longer necessary, now that you can safely verify your code to be correct, and use + * more generic types like `iterable` instead. + * + * @extends AbstractCollection + */ +class BuilderCollection extends AbstractCollection +{ + public function getType(): string + { + return UuidBuilderInterface::class; + } + + /** + * @psalm-mutation-free + * @psalm-suppress ImpureMethodCall + * @psalm-suppress InvalidTemplateParam + */ + public function getIterator(): Traversable + { + return parent::getIterator(); + } + + /** + * Re-constructs the object from its serialized form + * + * @param string $serialized The serialized PHP string to unserialize into + * a UuidInterface instance + * + * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint + * @psalm-suppress RedundantConditionGivenDocblockType + */ + public function unserialize($serialized): void + { + /** @var array $data */ + $data = unserialize($serialized, [ + 'allowed_classes' => [ + BrickMathCalculator::class, + GenericNumberConverter::class, + GenericTimeConverter::class, + GuidBuilder::class, + NonstandardUuidBuilder::class, + PhpTimeConverter::class, + Rfc4122UuidBuilder::class, + ], + ]); + + $this->data = array_filter( + $data, + function ($unserialized): bool { + return $unserialized instanceof UuidBuilderInterface; + } + ); + } +} diff --git a/vendor/ramsey/uuid/src/Builder/DefaultUuidBuilder.php b/vendor/ramsey/uuid/src/Builder/DefaultUuidBuilder.php new file mode 100644 index 000000000..7c4a6f837 --- /dev/null +++ b/vendor/ramsey/uuid/src/Builder/DefaultUuidBuilder.php @@ -0,0 +1,26 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Rfc4122\UuidBuilder as Rfc4122UuidBuilder; + +/** + * @deprecated Transition to {@see Rfc4122UuidBuilder}. + * + * @psalm-immutable + */ +class DefaultUuidBuilder extends Rfc4122UuidBuilder +{ +} diff --git a/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php b/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php new file mode 100644 index 000000000..20b384212 --- /dev/null +++ b/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php @@ -0,0 +1,67 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\Time\DegradedTimeConverter; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\DegradedUuid; +use Ramsey\Uuid\Rfc4122\Fields as Rfc4122Fields; +use Ramsey\Uuid\UuidInterface; + +/** + * @deprecated DegradedUuid instances are no longer necessary to support 32-bit + * systems. Transition to {@see DefaultUuidBuilder}. + * + * @psalm-immutable + */ +class DegradedUuidBuilder implements UuidBuilderInterface +{ + private TimeConverterInterface $timeConverter; + + /** + * @param NumberConverterInterface $numberConverter The number converter to + * use when constructing the DegradedUuid + * @param TimeConverterInterface|null $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to Unix timestamps + */ + public function __construct( + private NumberConverterInterface $numberConverter, + ?TimeConverterInterface $timeConverter = null + ) { + $this->timeConverter = $timeConverter ?: new DegradedTimeConverter(); + } + + /** + * Builds and returns a DegradedUuid + * + * @param CodecInterface $codec The codec to use for building this DegradedUuid instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return DegradedUuid The DegradedUuidBuild returns an instance of Ramsey\Uuid\DegradedUuid + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface + { + return new DegradedUuid( + new Rfc4122Fields($bytes), + $this->numberConverter, + $codec, + $this->timeConverter + ); + } +} diff --git a/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php b/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php new file mode 100644 index 000000000..ba5f31fbe --- /dev/null +++ b/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php @@ -0,0 +1,68 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Exception\BuilderNotFoundException; +use Ramsey\Uuid\Exception\UnableToBuildUuidException; +use Ramsey\Uuid\UuidInterface; + +/** + * FallbackBuilder builds a UUID by stepping through a list of UUID builders + * until a UUID can be constructed without exceptions + * + * @psalm-immutable + */ +class FallbackBuilder implements UuidBuilderInterface +{ + /** + * @param iterable $builders An array of UUID builders + */ + public function __construct(private iterable $builders) + { + } + + /** + * Builds and returns a UuidInterface instance using the first builder that + * succeeds + * + * @param CodecInterface $codec The codec to use for building this instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return UuidInterface an instance of a UUID object + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface + { + $lastBuilderException = null; + + foreach ($this->builders as $builder) { + try { + return $builder->build($codec, $bytes); + } catch (UnableToBuildUuidException $exception) { + $lastBuilderException = $exception; + + continue; + } + } + + throw new BuilderNotFoundException( + 'Could not find a suitable builder for the provided codec and fields', + 0, + $lastBuilderException + ); + } +} diff --git a/vendor/ramsey/uuid/src/Builder/UuidBuilderInterface.php b/vendor/ramsey/uuid/src/Builder/UuidBuilderInterface.php new file mode 100644 index 000000000..8e58b2b43 --- /dev/null +++ b/vendor/ramsey/uuid/src/Builder/UuidBuilderInterface.php @@ -0,0 +1,39 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Builder; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\UuidInterface; + +/** + * A UUID builder builds instances of UuidInterface + * + * @psalm-immutable + */ +interface UuidBuilderInterface +{ + /** + * Builds and returns a UuidInterface + * + * @param CodecInterface $codec The codec to use for building this UuidInterface instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return UuidInterface Implementations may choose to return more specific + * instances of UUIDs that implement UuidInterface + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface; +} diff --git a/vendor/ramsey/uuid/src/Codec/CodecInterface.php b/vendor/ramsey/uuid/src/Codec/CodecInterface.php new file mode 100644 index 000000000..85f8a7e99 --- /dev/null +++ b/vendor/ramsey/uuid/src/Codec/CodecInterface.php @@ -0,0 +1,71 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\UuidInterface; + +/** + * A codec encodes and decodes a UUID according to defined rules + * + * @psalm-immutable + */ +interface CodecInterface +{ + /** + * Returns a hexadecimal string representation of a UuidInterface + * + * @param UuidInterface $uuid The UUID for which to create a hexadecimal + * string representation + * + * @return string Hexadecimal string representation of a UUID + * + * @psalm-return non-empty-string + */ + public function encode(UuidInterface $uuid): string; + + /** + * Returns a binary string representation of a UuidInterface + * + * @param UuidInterface $uuid The UUID for which to create a binary string + * representation + * + * @return string Binary string representation of a UUID + * + * @psalm-return non-empty-string + */ + public function encodeBinary(UuidInterface $uuid): string; + + /** + * Returns a UuidInterface derived from a hexadecimal string representation + * + * @param string $encodedUuid The hexadecimal string representation to + * convert into a UuidInterface instance + * + * @return UuidInterface An instance of a UUID decoded from a hexadecimal + * string representation + */ + public function decode(string $encodedUuid): UuidInterface; + + /** + * Returns a UuidInterface derived from a binary string representation + * + * @param string $bytes The binary string representation to convert into a + * UuidInterface instance + * + * @return UuidInterface An instance of a UUID decoded from a binary string + * representation + */ + public function decodeBytes(string $bytes): UuidInterface; +} diff --git a/vendor/ramsey/uuid/src/Codec/GuidStringCodec.php b/vendor/ramsey/uuid/src/Codec/GuidStringCodec.php new file mode 100644 index 000000000..04872e0bc --- /dev/null +++ b/vendor/ramsey/uuid/src/Codec/GuidStringCodec.php @@ -0,0 +1,76 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Guid\Guid; +use Ramsey\Uuid\UuidInterface; + +use function bin2hex; +use function sprintf; +use function substr; + +/** + * GuidStringCodec encodes and decodes globally unique identifiers (GUID) + * + * @see Guid + * + * @psalm-immutable + */ +class GuidStringCodec extends StringCodec +{ + public function encode(UuidInterface $uuid): string + { + $hex = bin2hex($uuid->getFields()->getBytes()); + + /** @var non-empty-string */ + return sprintf( + '%02s%02s%02s%02s-%02s%02s-%02s%02s-%04s-%012s', + substr($hex, 6, 2), + substr($hex, 4, 2), + substr($hex, 2, 2), + substr($hex, 0, 2), + substr($hex, 10, 2), + substr($hex, 8, 2), + substr($hex, 14, 2), + substr($hex, 12, 2), + substr($hex, 16, 4), + substr($hex, 20), + ); + } + + public function decode(string $encodedUuid): UuidInterface + { + $bytes = $this->getBytes($encodedUuid); + + return $this->getBuilder()->build($this, $this->swapBytes($bytes)); + } + + public function decodeBytes(string $bytes): UuidInterface + { + // Specifically call parent::decode to preserve correct byte order + return parent::decode(bin2hex($bytes)); + } + + /** + * Swaps bytes according to the GUID rules + */ + private function swapBytes(string $bytes): string + { + return $bytes[3] . $bytes[2] . $bytes[1] . $bytes[0] + . $bytes[5] . $bytes[4] + . $bytes[7] . $bytes[6] + . substr($bytes, 8); + } +} diff --git a/vendor/ramsey/uuid/src/Codec/OrderedTimeCodec.php b/vendor/ramsey/uuid/src/Codec/OrderedTimeCodec.php new file mode 100644 index 000000000..0798ebc4d --- /dev/null +++ b/vendor/ramsey/uuid/src/Codec/OrderedTimeCodec.php @@ -0,0 +1,113 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; + +use function strlen; +use function substr; + +/** + * OrderedTimeCodec encodes and decodes a UUID, optimizing the byte order for + * more efficient storage + * + * For binary representations of version 1 UUID, this codec may be used to + * reorganize the time fields, making the UUID closer to sequential when storing + * the bytes. According to Percona, this optimization can improve database + * INSERTs and SELECTs using the UUID column as a key. + * + * The string representation of the UUID will remain unchanged. Only the binary + * representation is reordered. + * + * **PLEASE NOTE:** Binary representations of UUIDs encoded with this codec must + * be decoded with this codec. Decoding using another codec can result in + * malformed UUIDs. + * + * @link https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/ Storing UUID Values in MySQL + * + * @psalm-immutable + */ +class OrderedTimeCodec extends StringCodec +{ + /** + * Returns a binary string representation of a UUID, with the timestamp + * fields rearranged for optimized storage + * + * @inheritDoc + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encodeBinary(UuidInterface $uuid): string + { + if ( + !($uuid->getFields() instanceof Rfc4122FieldsInterface) + || $uuid->getFields()->getVersion() !== Uuid::UUID_TYPE_TIME + ) { + throw new InvalidArgumentException( + 'Expected RFC 4122 version 1 (time-based) UUID' + ); + } + + $bytes = $uuid->getFields()->getBytes(); + + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $bytes[6] . $bytes[7] + . $bytes[4] . $bytes[5] + . $bytes[0] . $bytes[1] . $bytes[2] . $bytes[3] + . substr($bytes, 8); + } + + /** + * Returns a UuidInterface derived from an ordered-time binary string + * representation + * + * @throws InvalidArgumentException if $bytes is an invalid length + * + * @inheritDoc + */ + public function decodeBytes(string $bytes): UuidInterface + { + if (strlen($bytes) !== 16) { + throw new InvalidArgumentException( + '$bytes string should contain 16 characters.' + ); + } + + // Rearrange the bytes to their original order. + $rearrangedBytes = $bytes[4] . $bytes[5] . $bytes[6] . $bytes[7] + . $bytes[2] . $bytes[3] + . $bytes[0] . $bytes[1] + . substr($bytes, 8); + + $uuid = parent::decodeBytes($rearrangedBytes); + + if ( + !($uuid->getFields() instanceof Rfc4122FieldsInterface) + || $uuid->getFields()->getVersion() !== Uuid::UUID_TYPE_TIME + ) { + throw new UnsupportedOperationException( + 'Attempting to decode a non-time-based UUID using ' + . 'OrderedTimeCodec' + ); + } + + return $uuid; + } +} diff --git a/vendor/ramsey/uuid/src/Codec/StringCodec.php b/vendor/ramsey/uuid/src/Codec/StringCodec.php new file mode 100644 index 000000000..95f38d2e8 --- /dev/null +++ b/vendor/ramsey/uuid/src/Codec/StringCodec.php @@ -0,0 +1,131 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Exception\InvalidUuidStringException; +use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; + +use function bin2hex; +use function hex2bin; +use function implode; +use function sprintf; +use function str_replace; +use function strlen; +use function substr; + +/** + * StringCodec encodes and decodes RFC 4122 UUIDs + * + * @link http://tools.ietf.org/html/rfc4122 + * + * @psalm-immutable + */ +class StringCodec implements CodecInterface +{ + /** + * Constructs a StringCodec + * + * @param UuidBuilderInterface $builder The builder to use when encoding UUIDs + */ + public function __construct(private UuidBuilderInterface $builder) + { + } + + public function encode(UuidInterface $uuid): string + { + $hex = bin2hex($uuid->getFields()->getBytes()); + + /** @var non-empty-string */ + return sprintf( + '%08s-%04s-%04s-%04s-%012s', + substr($hex, 0, 8), + substr($hex, 8, 4), + substr($hex, 12, 4), + substr($hex, 16, 4), + substr($hex, 20), + ); + } + + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encodeBinary(UuidInterface $uuid): string + { + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $uuid->getFields()->getBytes(); + } + + /** + * @throws InvalidUuidStringException + * + * @inheritDoc + */ + public function decode(string $encodedUuid): UuidInterface + { + return $this->builder->build($this, $this->getBytes($encodedUuid)); + } + + public function decodeBytes(string $bytes): UuidInterface + { + if (strlen($bytes) !== 16) { + throw new InvalidArgumentException( + '$bytes string should contain 16 characters.' + ); + } + + return $this->builder->build($this, $bytes); + } + + /** + * Returns the UUID builder + */ + protected function getBuilder(): UuidBuilderInterface + { + return $this->builder; + } + + /** + * Returns a byte string of the UUID + */ + protected function getBytes(string $encodedUuid): string + { + $parsedUuid = str_replace( + ['urn:', 'uuid:', 'URN:', 'UUID:', '{', '}', '-'], + '', + $encodedUuid + ); + + $components = [ + substr($parsedUuid, 0, 8), + substr($parsedUuid, 8, 4), + substr($parsedUuid, 12, 4), + substr($parsedUuid, 16, 4), + substr($parsedUuid, 20), + ]; + + if (!Uuid::isValid(implode('-', $components))) { + throw new InvalidUuidStringException( + 'Invalid UUID string: ' . $encodedUuid + ); + } + + return (string) hex2bin($parsedUuid); + } +} diff --git a/vendor/ramsey/uuid/src/Codec/TimestampFirstCombCodec.php b/vendor/ramsey/uuid/src/Codec/TimestampFirstCombCodec.php new file mode 100644 index 000000000..0e0042d0a --- /dev/null +++ b/vendor/ramsey/uuid/src/Codec/TimestampFirstCombCodec.php @@ -0,0 +1,113 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +use Ramsey\Uuid\Exception\InvalidUuidStringException; +use Ramsey\Uuid\UuidInterface; + +use function bin2hex; +use function sprintf; +use function substr; +use function substr_replace; + +/** + * TimestampFirstCombCodec encodes and decodes COMBs, with the timestamp as the + * first 48 bits + * + * In contrast with the TimestampLastCombCodec, the TimestampFirstCombCodec + * adds the timestamp to the first 48 bits of the COMB. To generate a + * timestamp-first COMB, set the TimestampFirstCombCodec as the codec, along + * with the CombGenerator as the random generator. + * + * ``` php + * $factory = new UuidFactory(); + * + * $factory->setCodec(new TimestampFirstCombCodec($factory->getUuidBuilder())); + * + * $factory->setRandomGenerator(new CombGenerator( + * $factory->getRandomGenerator(), + * $factory->getNumberConverter() + * )); + * + * $timestampFirstComb = $factory->uuid4(); + * ``` + * + * @link https://www.informit.com/articles/printerfriendly/25862 The Cost of GUIDs as Primary Keys + * + * @psalm-immutable + */ +class TimestampFirstCombCodec extends StringCodec +{ + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encode(UuidInterface $uuid): string + { + $bytes = $this->swapBytes($uuid->getFields()->getBytes()); + + return sprintf( + '%08s-%04s-%04s-%04s-%012s', + bin2hex(substr($bytes, 0, 4)), + bin2hex(substr($bytes, 4, 2)), + bin2hex(substr($bytes, 6, 2)), + bin2hex(substr($bytes, 8, 2)), + bin2hex(substr($bytes, 10)) + ); + } + + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function encodeBinary(UuidInterface $uuid): string + { + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $this->swapBytes($uuid->getFields()->getBytes()); + } + + /** + * @throws InvalidUuidStringException + * + * @inheritDoc + */ + public function decode(string $encodedUuid): UuidInterface + { + $bytes = $this->getBytes($encodedUuid); + + return $this->getBuilder()->build($this, $this->swapBytes($bytes)); + } + + public function decodeBytes(string $bytes): UuidInterface + { + return $this->getBuilder()->build($this, $this->swapBytes($bytes)); + } + + /** + * Swaps bytes according to the timestamp-first COMB rules + */ + private function swapBytes(string $bytes): string + { + $first48Bits = substr($bytes, 0, 6); + $last48Bits = substr($bytes, -6); + + $bytes = substr_replace($bytes, $last48Bits, 0, 6); + $bytes = substr_replace($bytes, $first48Bits, -6); + + return $bytes; + } +} diff --git a/vendor/ramsey/uuid/src/Codec/TimestampLastCombCodec.php b/vendor/ramsey/uuid/src/Codec/TimestampLastCombCodec.php new file mode 100644 index 000000000..4856deaed --- /dev/null +++ b/vendor/ramsey/uuid/src/Codec/TimestampLastCombCodec.php @@ -0,0 +1,51 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Codec; + +/** + * TimestampLastCombCodec encodes and decodes COMBs, with the timestamp as the + * last 48 bits + * + * The CombGenerator when used with the StringCodec (and, by proxy, the + * TimestampLastCombCodec) adds the timestamp to the last 48 bits of the COMB. + * The TimestampLastCombCodec is provided for the sake of consistency. In + * practice, it is identical to the standard StringCodec but, it may be used + * with the CombGenerator for additional context when reading code. + * + * Consider the following code. By default, the codec used by UuidFactory is the + * StringCodec, but here, we explicitly set the TimestampLastCombCodec. It is + * redundant, but it is clear that we intend this COMB to be generated with the + * timestamp appearing at the end. + * + * ``` php + * $factory = new UuidFactory(); + * + * $factory->setCodec(new TimestampLastCombCodec($factory->getUuidBuilder())); + * + * $factory->setRandomGenerator(new CombGenerator( + * $factory->getRandomGenerator(), + * $factory->getNumberConverter() + * )); + * + * $timestampLastComb = $factory->uuid4(); + * ``` + * + * @link https://www.informit.com/articles/printerfriendly/25862 The Cost of GUIDs as Primary Keys + * + * @psalm-immutable + */ +class TimestampLastCombCodec extends StringCodec +{ +} diff --git a/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php b/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php new file mode 100644 index 000000000..99b88b3bf --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php @@ -0,0 +1,54 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Number; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Math\BrickMathCalculator; + +/** + * Previously used to integrate moontoast/math as a bignum arithmetic library, + * BigNumberConverter is deprecated in favor of GenericNumberConverter + * + * @deprecated Transition to {@see GenericNumberConverter}. + * + * @psalm-immutable + */ +class BigNumberConverter implements NumberConverterInterface +{ + private NumberConverterInterface $converter; + + public function __construct() + { + $this->converter = new GenericNumberConverter(new BrickMathCalculator()); + } + + /** + * @inheritDoc + * @psalm-pure + */ + public function fromHex(string $hex): string + { + return $this->converter->fromHex($hex); + } + + /** + * @inheritDoc + * @psalm-pure + */ + public function toHex(string $number): string + { + return $this->converter->toHex($number); + } +} diff --git a/vendor/ramsey/uuid/src/Converter/Number/DegradedNumberConverter.php b/vendor/ramsey/uuid/src/Converter/Number/DegradedNumberConverter.php new file mode 100644 index 000000000..c9cfa6864 --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Number/DegradedNumberConverter.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Number; + +/** + * @deprecated DegradedNumberConverter is no longer necessary for converting + * numbers on 32-bit systems. Transition to {@see GenericNumberConverter}. + * + * @psalm-immutable + */ +class DegradedNumberConverter extends BigNumberConverter +{ +} diff --git a/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php b/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php new file mode 100644 index 000000000..043c3c43d --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php @@ -0,0 +1,57 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Number; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Type\Integer as IntegerObject; + +/** + * GenericNumberConverter uses the provided calculator to convert decimal + * numbers to and from hexadecimal values + * + * @psalm-immutable + */ +class GenericNumberConverter implements NumberConverterInterface +{ + public function __construct(private CalculatorInterface $calculator) + { + } + + /** + * @inheritDoc + * @psalm-pure + * @psalm-return numeric-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function fromHex(string $hex): string + { + return $this->calculator->fromBase($hex, 16)->toString(); + } + + /** + * @inheritDoc + * @psalm-pure + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function toHex(string $number): string + { + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return $this->calculator->toBase(new IntegerObject($number), 16); + } +} diff --git a/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php b/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php new file mode 100644 index 000000000..b33ec31f9 --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php @@ -0,0 +1,57 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter; + +/** + * A number converter converts UUIDs from hexadecimal characters into + * representations of integers and vice versa + * + * @psalm-immutable + */ +interface NumberConverterInterface +{ + /** + * Converts a hexadecimal number into an string integer representation of + * the number + * + * The integer representation returned is a string representation of the + * integer, to accommodate unsigned integers greater than PHP_INT_MAX. + * + * @param string $hex The hexadecimal string representation to convert + * + * @return string String representation of an integer + * + * @psalm-return numeric-string + * + * @psalm-pure + */ + public function fromHex(string $hex): string; + + /** + * Converts a string integer representation into a hexadecimal string + * representation of the number + * + * @param string $number A string integer representation to convert; this + * must be a numeric string to accommodate unsigned integers greater + * than PHP_INT_MAX. + * + * @return string Hexadecimal string + * + * @psalm-return non-empty-string + * + * @psalm-pure + */ + public function toHex(string $number): string; +} diff --git a/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php b/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php new file mode 100644 index 000000000..b6bca9ee2 --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php @@ -0,0 +1,48 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Time; + +/** + * Previously used to integrate moontoast/math as a bignum arithmetic library, + * BigNumberTimeConverter is deprecated in favor of GenericTimeConverter + * + * @deprecated Transition to {@see GenericTimeConverter}. + * + * @psalm-immutable + */ +class BigNumberTimeConverter implements TimeConverterInterface +{ + private TimeConverterInterface $converter; + + public function __construct() + { + $this->converter = new GenericTimeConverter(new BrickMathCalculator()); + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + return $this->converter->calculateTime($seconds, $microseconds); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + return $this->converter->convertTime($uuidTimestamp); + } +} diff --git a/vendor/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php b/vendor/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php new file mode 100644 index 000000000..cdc28752d --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +/** + * @deprecated DegradedTimeConverter is no longer necessary for converting + * time on 32-bit systems. Transition to {@see GenericTimeConverter}. + * + * @psalm-immutable + */ +class DegradedTimeConverter extends BigNumberTimeConverter +{ +} diff --git a/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php b/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php new file mode 100644 index 000000000..f6b60abbe --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php @@ -0,0 +1,118 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Math\RoundingMode; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +use function explode; +use function str_pad; + +use const STR_PAD_LEFT; + +/** + * GenericTimeConverter uses the provided calculator to calculate and convert + * time values + * + * @psalm-immutable + */ +class GenericTimeConverter implements TimeConverterInterface +{ + /** + * The number of 100-nanosecond intervals from the Gregorian calendar epoch + * to the Unix epoch. + */ + private const GREGORIAN_TO_UNIX_INTERVALS = '122192928000000000'; + + /** + * The number of 100-nanosecond intervals in one second. + */ + private const SECOND_INTERVALS = '10000000'; + + /** + * The number of 100-nanosecond intervals in one microsecond. + */ + private const MICROSECOND_INTERVALS = '10'; + + public function __construct(private CalculatorInterface $calculator) + { + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + $timestamp = new Time($seconds, $microseconds); + + // Convert the seconds into a count of 100-nanosecond intervals. + $sec = $this->calculator->multiply( + $timestamp->getSeconds(), + new IntegerObject(self::SECOND_INTERVALS) + ); + + // Convert the microseconds into a count of 100-nanosecond intervals. + $usec = $this->calculator->multiply( + $timestamp->getMicroseconds(), + new IntegerObject(self::MICROSECOND_INTERVALS) + ); + + // Combine the seconds and microseconds intervals and add the count of + // 100-nanosecond intervals from the Gregorian calendar epoch to the + // Unix epoch. This gives us the correct count of 100-nanosecond + // intervals since the Gregorian calendar epoch for the given seconds + // and microseconds. + /** @var IntegerObject $uuidTime */ + $uuidTime = $this->calculator->add( + $sec, + $usec, + new IntegerObject(self::GREGORIAN_TO_UNIX_INTERVALS) + ); + + $uuidTimeHex = str_pad( + $this->calculator->toHexadecimal($uuidTime)->toString(), + 16, + '0', + STR_PAD_LEFT + ); + + return new Hexadecimal($uuidTimeHex); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + // From the total, subtract the number of 100-nanosecond intervals from + // the Gregorian calendar epoch to the Unix epoch. This gives us the + // number of 100-nanosecond intervals from the Unix epoch, which also + // includes the microtime. + $epochNanoseconds = $this->calculator->subtract( + $this->calculator->toInteger($uuidTimestamp), + new IntegerObject(self::GREGORIAN_TO_UNIX_INTERVALS) + ); + + // Convert the 100-nanosecond intervals into seconds and microseconds. + $unixTimestamp = $this->calculator->divide( + RoundingMode::HALF_UP, + 6, + $epochNanoseconds, + new IntegerObject(self::SECOND_INTERVALS) + ); + + $split = explode('.', (string) $unixTimestamp, 2); + + return new Time($split[0], $split[1] ?? 0); + } +} diff --git a/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php b/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php new file mode 100644 index 000000000..66009f14d --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php @@ -0,0 +1,172 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +use function count; +use function dechex; +use function explode; +use function is_float; +use function is_int; +use function str_pad; +use function strlen; +use function substr; + +use const STR_PAD_LEFT; +use const STR_PAD_RIGHT; + +/** + * PhpTimeConverter uses built-in PHP functions and standard math operations + * available to the PHP programming language to provide facilities for + * converting parts of time into representations that may be used in UUIDs + * + * @psalm-immutable + */ +class PhpTimeConverter implements TimeConverterInterface +{ + /** + * The number of 100-nanosecond intervals from the Gregorian calendar epoch + * to the Unix epoch. + */ + private const GREGORIAN_TO_UNIX_INTERVALS = 0x01b21dd213814000; + + /** + * The number of 100-nanosecond intervals in one second. + */ + private const SECOND_INTERVALS = 10000000; + + /** + * The number of 100-nanosecond intervals in one microsecond. + */ + private const MICROSECOND_INTERVALS = 10; + + private int $phpPrecision; + private CalculatorInterface $calculator; + private TimeConverterInterface $fallbackConverter; + + public function __construct( + ?CalculatorInterface $calculator = null, + ?TimeConverterInterface $fallbackConverter = null + ) { + if ($calculator === null) { + $calculator = new BrickMathCalculator(); + } + + if ($fallbackConverter === null) { + $fallbackConverter = new GenericTimeConverter($calculator); + } + + $this->calculator = $calculator; + $this->fallbackConverter = $fallbackConverter; + $this->phpPrecision = (int) ini_get('precision'); + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + $seconds = new IntegerObject($seconds); + $microseconds = new IntegerObject($microseconds); + + // Calculate the count of 100-nanosecond intervals since the Gregorian + // calendar epoch for the given seconds and microseconds. + $uuidTime = ((int) $seconds->toString() * self::SECOND_INTERVALS) + + ((int) $microseconds->toString() * self::MICROSECOND_INTERVALS) + + self::GREGORIAN_TO_UNIX_INTERVALS; + + // Check to see whether we've overflowed the max/min integer size. + // If so, we will default to a different time converter. + /** @psalm-suppress RedundantCondition */ + if (!is_int($uuidTime)) { + return $this->fallbackConverter->calculateTime( + $seconds->toString(), + $microseconds->toString() + ); + } + + return new Hexadecimal(str_pad(dechex($uuidTime), 16, '0', STR_PAD_LEFT)); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + $timestamp = $this->calculator->toInteger($uuidTimestamp); + + // Convert the 100-nanosecond intervals into seconds and microseconds. + $splitTime = $this->splitTime( + ((int) $timestamp->toString() - self::GREGORIAN_TO_UNIX_INTERVALS) + / self::SECOND_INTERVALS + ); + + if (count($splitTime) === 0) { + return $this->fallbackConverter->convertTime($uuidTimestamp); + } + + return new Time($splitTime['sec'], $splitTime['usec']); + } + + /** + * @param float|int $time The time to split into seconds and microseconds + * + * @return string[] + */ + private function splitTime(float | int $time): array + { + $split = explode('.', (string) $time, 2); + + // If the $time value is a float but $split only has 1 element, then the + // float math was rounded up to the next second, so we want to return + // an empty array to allow use of the fallback converter. + if (is_float($time) && count($split) === 1) { + return []; + } + + if (count($split) === 1) { + return [ + 'sec' => $split[0], + 'usec' => '0', + ]; + } + + // If the microseconds are less than six characters AND the length of + // the number is greater than or equal to the PHP precision, then it's + // possible that we lost some precision for the microseconds. Return an + // empty array, so that we can choose to use the fallback converter. + if (strlen($split[1]) < 6 && strlen((string) $time) >= $this->phpPrecision) { + return []; + } + + $microseconds = $split[1]; + + // Ensure the microseconds are no longer than 6 digits. If they are, + // truncate the number to the first 6 digits and round up, if needed. + if (strlen($microseconds) > 6) { + $roundingDigit = (int) substr($microseconds, 6, 1); + $microseconds = (int) substr($microseconds, 0, 6); + + if ($roundingDigit >= 5) { + $microseconds++; + } + } + + return [ + 'sec' => $split[0], + 'usec' => str_pad((string) $microseconds, 6, '0', STR_PAD_RIGHT), + ]; + } +} diff --git a/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php b/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php new file mode 100644 index 000000000..4d6d0a8a7 --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php @@ -0,0 +1,90 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Math\RoundingMode; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +use function explode; +use function str_pad; + +use const STR_PAD_LEFT; + +/** + * UnixTimeConverter converts Unix Epoch timestamps to/from hexadecimal values + * consisting of milliseconds elapsed since the Unix Epoch + * + * @psalm-immutable + */ +class UnixTimeConverter implements TimeConverterInterface +{ + private const MILLISECONDS = 1000; + + public function __construct(private CalculatorInterface $calculator) + { + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + $timestamp = new Time($seconds, $microseconds); + + // Convert the seconds into milliseconds. + $sec = $this->calculator->multiply( + $timestamp->getSeconds(), + new IntegerObject(self::MILLISECONDS), + ); + + // Convert the microseconds into milliseconds; the scale is zero because + // we need to discard the fractional part. + $usec = $this->calculator->divide( + RoundingMode::DOWN, // Always round down to stay in the previous millisecond. + 0, + $timestamp->getMicroseconds(), + new IntegerObject(self::MILLISECONDS), + ); + + /** @var IntegerObject $unixTime */ + $unixTime = $this->calculator->add($sec, $usec); + + $unixTimeHex = str_pad( + $this->calculator->toHexadecimal($unixTime)->toString(), + 12, + '0', + STR_PAD_LEFT + ); + + return new Hexadecimal($unixTimeHex); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + $milliseconds = $this->calculator->toInteger($uuidTimestamp); + + $unixTimestamp = $this->calculator->divide( + RoundingMode::HALF_UP, + 6, + $milliseconds, + new IntegerObject(self::MILLISECONDS) + ); + + $split = explode('.', (string) $unixTimestamp, 2); + + return new Time($split[0], $split[1] ?? '0'); + } +} diff --git a/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php b/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php new file mode 100644 index 000000000..1e8480701 --- /dev/null +++ b/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php @@ -0,0 +1,58 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter; + +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Time; + +/** + * A time converter converts timestamps into representations that may be used + * in UUIDs + * + * @psalm-immutable + */ +interface TimeConverterInterface +{ + /** + * Uses the provided seconds and micro-seconds to calculate the count of + * 100-nanosecond intervals since UTC 00:00:00.00, 15 October 1582, for + * RFC 4122 variant UUIDs + * + * @link http://tools.ietf.org/html/rfc4122#section-4.2.2 RFC 4122, § 4.2.2: Generation Details + * + * @param string $seconds A string representation of the number of seconds + * since the Unix epoch for the time to calculate + * @param string $microseconds A string representation of the micro-seconds + * associated with the time to calculate + * + * @return Hexadecimal The full UUID timestamp as a Hexadecimal value + * + * @psalm-pure + */ + public function calculateTime(string $seconds, string $microseconds): Hexadecimal; + + /** + * Converts a timestamp extracted from a UUID to a Unix timestamp + * + * @param Hexadecimal $uuidTimestamp A hexadecimal representation of a UUID + * timestamp; a UUID timestamp is a count of 100-nanosecond intervals + * since UTC 00:00:00.00, 15 October 1582. + * + * @return Time An instance of {@see Time} + * + * @psalm-pure + */ + public function convertTime(Hexadecimal $uuidTimestamp): Time; +} diff --git a/vendor/ramsey/uuid/src/DegradedUuid.php b/vendor/ramsey/uuid/src/DegradedUuid.php new file mode 100644 index 000000000..9166042cc --- /dev/null +++ b/vendor/ramsey/uuid/src/DegradedUuid.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +/** + * @deprecated DegradedUuid is no longer necessary to represent UUIDs on 32-bit + * systems. Transition typehints to {@see UuidInterface}. + * + * @psalm-immutable + */ +class DegradedUuid extends Uuid +{ +} diff --git a/vendor/ramsey/uuid/src/DeprecatedUuidInterface.php b/vendor/ramsey/uuid/src/DeprecatedUuidInterface.php new file mode 100644 index 000000000..ac01a79cf --- /dev/null +++ b/vendor/ramsey/uuid/src/DeprecatedUuidInterface.php @@ -0,0 +1,140 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use DateTimeInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; + +/** + * This interface encapsulates deprecated methods for ramsey/uuid + * + * @psalm-immutable + */ +interface DeprecatedUuidInterface +{ + /** + * @deprecated This method will be removed in 5.0.0. There is no alternative + * recommendation, so plan accordingly. + */ + public function getNumberConverter(): NumberConverterInterface; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. + * + * @return string[] + */ + public function getFieldsHex(): array; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}. + */ + public function getClockSeqHiAndReservedHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}. + */ + public function getClockSeqLowHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}. + */ + public function getClockSequenceHex(): string; + + /** + * @deprecated In ramsey/uuid version 5.0.0, this will be removed from the + * interface. It is available at {@see UuidV1::getDateTime()}. + */ + public function getDateTime(): DateTimeInterface; + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getLeastSignificantBitsHex(): string; + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getMostSignificantBitsHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}. + */ + public function getNodeHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}. + */ + public function getTimeHiAndVersionHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}. + */ + public function getTimeLowHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}. + */ + public function getTimeMidHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}. + */ + public function getTimestampHex(): string; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}. + */ + public function getVariant(): ?int; + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}. + */ + public function getVersion(): ?int; +} diff --git a/vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php b/vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php new file mode 100644 index 000000000..d3fbb0ccb --- /dev/null +++ b/vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php @@ -0,0 +1,360 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use DateTimeImmutable; +use DateTimeInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Exception\DateTimeException; +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Throwable; + +use function str_pad; +use function substr; + +use const STR_PAD_LEFT; + +/** + * This trait encapsulates deprecated methods for ramsey/uuid; this trait and + * its methods will be removed in ramsey/uuid 5.0.0. + * + * @deprecated This trait and its methods will be removed in ramsey/uuid 5.0.0. + * + * @psalm-immutable + */ +trait DeprecatedUuidMethodsTrait +{ + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getClockSeqHiAndReserved(): string + { + return $this->numberConverter->fromHex($this->fields->getClockSeqHiAndReserved()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}. + */ + public function getClockSeqHiAndReservedHex(): string + { + return $this->fields->getClockSeqHiAndReserved()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getClockSeqLow(): string + { + return $this->numberConverter->fromHex($this->fields->getClockSeqLow()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}. + */ + public function getClockSeqLowHex(): string + { + return $this->fields->getClockSeqLow()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getClockSequence(): string + { + return $this->numberConverter->fromHex($this->fields->getClockSeq()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}. + */ + public function getClockSequenceHex(): string + { + return $this->fields->getClockSeq()->toString(); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no alternative + * recommendation, so plan accordingly. + */ + public function getNumberConverter(): NumberConverterInterface + { + return $this->numberConverter; + } + + /** + * @deprecated In ramsey/uuid version 5.0.0, this will be removed. + * It is available at {@see UuidV1::getDateTime()}. + * + * @return DateTimeImmutable An immutable instance of DateTimeInterface + * + * @throws UnsupportedOperationException if UUID is not time-based + * @throws DateTimeException if DateTime throws an exception/error + */ + public function getDateTime(): DateTimeInterface + { + if ($this->fields->getVersion() !== 1) { + throw new UnsupportedOperationException('Not a time-based UUID'); + } + + $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); + + try { + return new DateTimeImmutable( + '@' + . $time->getSeconds()->toString() + . '.' + . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) + ); + } catch (Throwable $e) { + throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); + } + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. + * + * @return string[] + */ + public function getFieldsHex(): array + { + return [ + 'time_low' => $this->fields->getTimeLow()->toString(), + 'time_mid' => $this->fields->getTimeMid()->toString(), + 'time_hi_and_version' => $this->fields->getTimeHiAndVersion()->toString(), + 'clock_seq_hi_and_reserved' => $this->fields->getClockSeqHiAndReserved()->toString(), + 'clock_seq_low' => $this->fields->getClockSeqLow()->toString(), + 'node' => $this->fields->getNode()->toString(), + ]; + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getLeastSignificantBits(): string + { + $leastSignificantHex = substr($this->getHex()->toString(), 16); + + return $this->numberConverter->fromHex($leastSignificantHex); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getLeastSignificantBitsHex(): string + { + return substr($this->getHex()->toString(), 16); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getMostSignificantBits(): string + { + $mostSignificantHex = substr($this->getHex()->toString(), 0, 16); + + return $this->numberConverter->fromHex($mostSignificantHex); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + */ + public function getMostSignificantBitsHex(): string + { + return substr($this->getHex()->toString(), 0, 16); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. + */ + public function getNode(): string + { + return $this->numberConverter->fromHex($this->fields->getNode()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}. + */ + public function getNodeHex(): string + { + return $this->fields->getNode()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + */ + public function getTimeHiAndVersion(): string + { + return $this->numberConverter->fromHex($this->fields->getTimeHiAndVersion()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}. + */ + public function getTimeHiAndVersionHex(): string + { + return $this->fields->getTimeHiAndVersion()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. + */ + public function getTimeLow(): string + { + return $this->numberConverter->fromHex($this->fields->getTimeLow()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}. + */ + public function getTimeLowHex(): string + { + return $this->fields->getTimeLow()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. + */ + public function getTimeMid(): string + { + return $this->numberConverter->fromHex($this->fields->getTimeMid()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}. + */ + public function getTimeMidHex(): string + { + return $this->fields->getTimeMid()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()} and use + * the arbitrary-precision math library of your choice to convert it to + * a string integer. + */ + public function getTimestamp(): string + { + if ($this->fields->getVersion() !== 1) { + throw new UnsupportedOperationException('Not a time-based UUID'); + } + + return $this->numberConverter->fromHex($this->fields->getTimestamp()->toString()); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}. + */ + public function getTimestampHex(): string + { + if ($this->fields->getVersion() !== 1) { + throw new UnsupportedOperationException('Not a time-based UUID'); + } + + return $this->fields->getTimestamp()->toString(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}. + */ + public function getVariant(): ?int + { + return $this->fields->getVariant(); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}. + */ + public function getVersion(): ?int + { + return $this->fields->getVersion(); + } +} diff --git a/vendor/ramsey/uuid/src/Exception/BuilderNotFoundException.php b/vendor/ramsey/uuid/src/Exception/BuilderNotFoundException.php new file mode 100644 index 000000000..220ffedb8 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/BuilderNotFoundException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that no suitable builder could be found + */ +class BuilderNotFoundException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/DateTimeException.php b/vendor/ramsey/uuid/src/Exception/DateTimeException.php new file mode 100644 index 000000000..5f0e658bf --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/DateTimeException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the PHP DateTime extension encountered an exception/error + */ +class DateTimeException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/DceSecurityException.php b/vendor/ramsey/uuid/src/Exception/DceSecurityException.php new file mode 100644 index 000000000..e6d800136 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/DceSecurityException.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate an exception occurred while dealing with DCE Security + * (version 2) UUIDs + */ +class DceSecurityException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/InvalidArgumentException.php b/vendor/ramsey/uuid/src/Exception/InvalidArgumentException.php new file mode 100644 index 000000000..2a1fa3ac2 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/InvalidArgumentException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use InvalidArgumentException as PhpInvalidArgumentException; + +/** + * Thrown to indicate that the argument received is not valid + */ +class InvalidArgumentException extends PhpInvalidArgumentException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/InvalidBytesException.php b/vendor/ramsey/uuid/src/Exception/InvalidBytesException.php new file mode 100644 index 000000000..1c94f6596 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/InvalidBytesException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the bytes being operated on are invalid in some way + */ +class InvalidBytesException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/InvalidUuidStringException.php b/vendor/ramsey/uuid/src/Exception/InvalidUuidStringException.php new file mode 100644 index 000000000..6d9758166 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/InvalidUuidStringException.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +/** + * Thrown to indicate that the string received is not a valid UUID + * + * The InvalidArgumentException that this extends is the ramsey/uuid version + * of this exception. It exists in the same namespace as this class. + */ +class InvalidUuidStringException extends InvalidArgumentException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/NameException.php b/vendor/ramsey/uuid/src/Exception/NameException.php new file mode 100644 index 000000000..fd96a1faf --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/NameException.php @@ -0,0 +1,25 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that an error occurred while attempting to hash a + * namespace and name + */ +class NameException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/NodeException.php b/vendor/ramsey/uuid/src/Exception/NodeException.php new file mode 100644 index 000000000..0dbdd50b4 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/NodeException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that attempting to fetch or create a node ID encountered an error + */ +class NodeException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/RandomSourceException.php b/vendor/ramsey/uuid/src/Exception/RandomSourceException.php new file mode 100644 index 000000000..a44dd34a2 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/RandomSourceException.php @@ -0,0 +1,27 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the source of random data encountered an error + * + * This exception is used mostly to indicate that random_bytes() or random_int() + * threw an exception. However, it may be used for other sources of random data. + */ +class RandomSourceException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/TimeSourceException.php b/vendor/ramsey/uuid/src/Exception/TimeSourceException.php new file mode 100644 index 000000000..fc9cf36b6 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/TimeSourceException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate that the source of time encountered an error + */ +class TimeSourceException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/UnableToBuildUuidException.php b/vendor/ramsey/uuid/src/Exception/UnableToBuildUuidException.php new file mode 100644 index 000000000..5ba26d8dc --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/UnableToBuildUuidException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use RuntimeException as PhpRuntimeException; + +/** + * Thrown to indicate a builder is unable to build a UUID + */ +class UnableToBuildUuidException extends PhpRuntimeException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/UnsupportedOperationException.php b/vendor/ramsey/uuid/src/Exception/UnsupportedOperationException.php new file mode 100644 index 000000000..e1b3eda17 --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/UnsupportedOperationException.php @@ -0,0 +1,24 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use LogicException as PhpLogicException; + +/** + * Thrown to indicate that the requested operation is not supported + */ +class UnsupportedOperationException extends PhpLogicException implements UuidExceptionInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Exception/UuidExceptionInterface.php b/vendor/ramsey/uuid/src/Exception/UuidExceptionInterface.php new file mode 100644 index 000000000..a2f1c103b --- /dev/null +++ b/vendor/ramsey/uuid/src/Exception/UuidExceptionInterface.php @@ -0,0 +1,21 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Exception; + +use Throwable; + +interface UuidExceptionInterface extends Throwable +{ +} diff --git a/vendor/ramsey/uuid/src/FeatureSet.php b/vendor/ramsey/uuid/src/FeatureSet.php new file mode 100644 index 000000000..b9af869f9 --- /dev/null +++ b/vendor/ramsey/uuid/src/FeatureSet.php @@ -0,0 +1,397 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use Ramsey\Uuid\Builder\FallbackBuilder; +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Codec\GuidStringCodec; +use Ramsey\Uuid\Codec\StringCodec; +use Ramsey\Uuid\Converter\Number\GenericNumberConverter; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\Time\GenericTimeConverter; +use Ramsey\Uuid\Converter\Time\PhpTimeConverter; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Generator\DceSecurityGenerator; +use Ramsey\Uuid\Generator\DceSecurityGeneratorInterface; +use Ramsey\Uuid\Generator\NameGeneratorFactory; +use Ramsey\Uuid\Generator\NameGeneratorInterface; +use Ramsey\Uuid\Generator\PeclUuidNameGenerator; +use Ramsey\Uuid\Generator\PeclUuidRandomGenerator; +use Ramsey\Uuid\Generator\PeclUuidTimeGenerator; +use Ramsey\Uuid\Generator\RandomGeneratorFactory; +use Ramsey\Uuid\Generator\RandomGeneratorInterface; +use Ramsey\Uuid\Generator\TimeGeneratorFactory; +use Ramsey\Uuid\Generator\TimeGeneratorInterface; +use Ramsey\Uuid\Generator\UnixTimeGenerator; +use Ramsey\Uuid\Guid\GuidBuilder; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Nonstandard\UuidBuilder as NonstandardUuidBuilder; +use Ramsey\Uuid\Provider\Dce\SystemDceSecurityProvider; +use Ramsey\Uuid\Provider\DceSecurityProviderInterface; +use Ramsey\Uuid\Provider\Node\FallbackNodeProvider; +use Ramsey\Uuid\Provider\Node\RandomNodeProvider; +use Ramsey\Uuid\Provider\Node\SystemNodeProvider; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Provider\Time\SystemTimeProvider; +use Ramsey\Uuid\Provider\TimeProviderInterface; +use Ramsey\Uuid\Rfc4122\UuidBuilder as Rfc4122UuidBuilder; +use Ramsey\Uuid\Validator\GenericValidator; +use Ramsey\Uuid\Validator\ValidatorInterface; + +use const PHP_INT_SIZE; + +/** + * FeatureSet detects and exposes available features in the current environment + * + * A feature set is used by UuidFactory to determine the available features and + * capabilities of the environment. + */ +class FeatureSet +{ + private ?TimeProviderInterface $timeProvider = null; + private CalculatorInterface $calculator; + private CodecInterface $codec; + private DceSecurityGeneratorInterface $dceSecurityGenerator; + private NameGeneratorInterface $nameGenerator; + private NodeProviderInterface $nodeProvider; + private NumberConverterInterface $numberConverter; + private RandomGeneratorInterface $randomGenerator; + private TimeConverterInterface $timeConverter; + private TimeGeneratorInterface $timeGenerator; + private TimeGeneratorInterface $unixTimeGenerator; + private UuidBuilderInterface $builder; + private ValidatorInterface $validator; + + /** + * @param bool $useGuids True build UUIDs using the GuidStringCodec + * @param bool $force32Bit True to force the use of 32-bit functionality + * (primarily for testing purposes) + * @param bool $forceNoBigNumber (obsolete) + * @param bool $ignoreSystemNode True to disable attempts to check for the + * system node ID (primarily for testing purposes) + * @param bool $enablePecl True to enable the use of the PeclUuidTimeGenerator + * to generate version 1 UUIDs + */ + public function __construct( + bool $useGuids = false, + private bool $force32Bit = false, + bool $forceNoBigNumber = false, + private bool $ignoreSystemNode = false, + private bool $enablePecl = false + ) { + $this->randomGenerator = $this->buildRandomGenerator(); + $this->setCalculator(new BrickMathCalculator()); + $this->builder = $this->buildUuidBuilder($useGuids); + $this->codec = $this->buildCodec($useGuids); + $this->nodeProvider = $this->buildNodeProvider(); + $this->nameGenerator = $this->buildNameGenerator(); + $this->setTimeProvider(new SystemTimeProvider()); + $this->setDceSecurityProvider(new SystemDceSecurityProvider()); + $this->validator = new GenericValidator(); + + assert($this->timeProvider !== null); + $this->unixTimeGenerator = $this->buildUnixTimeGenerator(); + } + + /** + * Returns the builder configured for this environment + */ + public function getBuilder(): UuidBuilderInterface + { + return $this->builder; + } + + /** + * Returns the calculator configured for this environment + */ + public function getCalculator(): CalculatorInterface + { + return $this->calculator; + } + + /** + * Returns the codec configured for this environment + */ + public function getCodec(): CodecInterface + { + return $this->codec; + } + + /** + * Returns the DCE Security generator configured for this environment + */ + public function getDceSecurityGenerator(): DceSecurityGeneratorInterface + { + return $this->dceSecurityGenerator; + } + + /** + * Returns the name generator configured for this environment + */ + public function getNameGenerator(): NameGeneratorInterface + { + return $this->nameGenerator; + } + + /** + * Returns the node provider configured for this environment + */ + public function getNodeProvider(): NodeProviderInterface + { + return $this->nodeProvider; + } + + /** + * Returns the number converter configured for this environment + */ + public function getNumberConverter(): NumberConverterInterface + { + return $this->numberConverter; + } + + /** + * Returns the random generator configured for this environment + */ + public function getRandomGenerator(): RandomGeneratorInterface + { + return $this->randomGenerator; + } + + /** + * Returns the time converter configured for this environment + */ + public function getTimeConverter(): TimeConverterInterface + { + return $this->timeConverter; + } + + /** + * Returns the time generator configured for this environment + */ + public function getTimeGenerator(): TimeGeneratorInterface + { + return $this->timeGenerator; + } + + /** + * Returns the Unix Epoch time generator configured for this environment + */ + public function getUnixTimeGenerator(): TimeGeneratorInterface + { + return $this->unixTimeGenerator; + } + + /** + * Returns the validator configured for this environment + */ + public function getValidator(): ValidatorInterface + { + return $this->validator; + } + + /** + * Sets the calculator to use in this environment + */ + public function setCalculator(CalculatorInterface $calculator): void + { + $this->calculator = $calculator; + $this->numberConverter = $this->buildNumberConverter($calculator); + $this->timeConverter = $this->buildTimeConverter($calculator); + + /** @psalm-suppress RedundantPropertyInitializationCheck */ + if (isset($this->timeProvider)) { + $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); + } + } + + /** + * Sets the DCE Security provider to use in this environment + */ + public function setDceSecurityProvider(DceSecurityProviderInterface $dceSecurityProvider): void + { + $this->dceSecurityGenerator = $this->buildDceSecurityGenerator($dceSecurityProvider); + } + + /** + * Sets the node provider to use in this environment + */ + public function setNodeProvider(NodeProviderInterface $nodeProvider): void + { + $this->nodeProvider = $nodeProvider; + + if (isset($this->timeProvider)) { + $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); + } + } + + /** + * Sets the time provider to use in this environment + */ + public function setTimeProvider(TimeProviderInterface $timeProvider): void + { + $this->timeProvider = $timeProvider; + $this->timeGenerator = $this->buildTimeGenerator($timeProvider); + } + + /** + * Set the validator to use in this environment + */ + public function setValidator(ValidatorInterface $validator): void + { + $this->validator = $validator; + } + + /** + * Returns a codec configured for this environment + * + * @param bool $useGuids Whether to build UUIDs using the GuidStringCodec + */ + private function buildCodec(bool $useGuids = false): CodecInterface + { + if ($useGuids) { + return new GuidStringCodec($this->builder); + } + + return new StringCodec($this->builder); + } + + /** + * Returns a DCE Security generator configured for this environment + */ + private function buildDceSecurityGenerator( + DceSecurityProviderInterface $dceSecurityProvider + ): DceSecurityGeneratorInterface { + return new DceSecurityGenerator( + $this->numberConverter, + $this->timeGenerator, + $dceSecurityProvider + ); + } + + /** + * Returns a node provider configured for this environment + */ + private function buildNodeProvider(): NodeProviderInterface + { + if ($this->ignoreSystemNode) { + return new RandomNodeProvider(); + } + + return new FallbackNodeProvider([ + new SystemNodeProvider(), + new RandomNodeProvider(), + ]); + } + + /** + * Returns a number converter configured for this environment + */ + private function buildNumberConverter(CalculatorInterface $calculator): NumberConverterInterface + { + return new GenericNumberConverter($calculator); + } + + /** + * Returns a random generator configured for this environment + */ + private function buildRandomGenerator(): RandomGeneratorInterface + { + if ($this->enablePecl) { + return new PeclUuidRandomGenerator(); + } + + return (new RandomGeneratorFactory())->getGenerator(); + } + + /** + * Returns a time generator configured for this environment + * + * @param TimeProviderInterface $timeProvider The time provider to use with + * the time generator + */ + private function buildTimeGenerator(TimeProviderInterface $timeProvider): TimeGeneratorInterface + { + if ($this->enablePecl) { + return new PeclUuidTimeGenerator(); + } + + return (new TimeGeneratorFactory( + $this->nodeProvider, + $this->timeConverter, + $timeProvider + ))->getGenerator(); + } + + /** + * Returns a Unix Epoch time generator configured for this environment + */ + private function buildUnixTimeGenerator(): TimeGeneratorInterface + { + return new UnixTimeGenerator($this->randomGenerator); + } + + /** + * Returns a name generator configured for this environment + */ + private function buildNameGenerator(): NameGeneratorInterface + { + if ($this->enablePecl) { + return new PeclUuidNameGenerator(); + } + + return (new NameGeneratorFactory())->getGenerator(); + } + + /** + * Returns a time converter configured for this environment + */ + private function buildTimeConverter(CalculatorInterface $calculator): TimeConverterInterface + { + $genericConverter = new GenericTimeConverter($calculator); + + if ($this->is64BitSystem()) { + return new PhpTimeConverter($calculator, $genericConverter); + } + + return $genericConverter; + } + + /** + * Returns a UUID builder configured for this environment + * + * @param bool $useGuids Whether to build UUIDs using the GuidStringCodec + */ + private function buildUuidBuilder(bool $useGuids = false): UuidBuilderInterface + { + if ($useGuids) { + return new GuidBuilder($this->numberConverter, $this->timeConverter); + } + + return new FallbackBuilder([ + new Rfc4122UuidBuilder($this->numberConverter, $this->timeConverter), + new NonstandardUuidBuilder($this->numberConverter, $this->timeConverter), + ]); + } + + /** + * Returns true if the PHP build is 64-bit + */ + private function is64BitSystem(): bool + { + return PHP_INT_SIZE === 8 && !$this->force32Bit; + } +} diff --git a/vendor/ramsey/uuid/src/Fields/FieldsInterface.php b/vendor/ramsey/uuid/src/Fields/FieldsInterface.php new file mode 100644 index 000000000..f1b7a290d --- /dev/null +++ b/vendor/ramsey/uuid/src/Fields/FieldsInterface.php @@ -0,0 +1,32 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Fields; + +use Serializable; + +/** + * UUIDs are comprised of unsigned integers, the bytes of which are separated + * into fields and arranged in a particular layout defined by the specification + * for the variant + * + * @psalm-immutable + */ +interface FieldsInterface extends Serializable +{ + /** + * Returns the bytes that comprise the fields + */ + public function getBytes(): string; +} diff --git a/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php b/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php new file mode 100644 index 000000000..3d36b6f12 --- /dev/null +++ b/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php @@ -0,0 +1,87 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Fields; + +use ValueError; + +use function base64_decode; +use function sprintf; +use function strlen; + +/** + * Provides common serialization functionality to fields + * + * @psalm-immutable + */ +trait SerializableFieldsTrait +{ + /** + * @param string $bytes The bytes that comprise the fields + */ + abstract public function __construct(string $bytes); + + /** + * Returns the bytes that comprise the fields + */ + abstract public function getBytes(): string; + + /** + * Returns a string representation of object + */ + public function serialize(): string + { + return $this->getBytes(); + } + + /** + * @return array{bytes: string} + */ + public function __serialize(): array + { + return ['bytes' => $this->getBytes()]; + } + + /** + * Constructs the object from a serialized string representation + * + * @param string $data The serialized string representation of the object + * + * @psalm-suppress UnusedMethodCall + */ + public function unserialize(string $data): void + { + if (strlen($data) === 16) { + $this->__construct($data); + } else { + $this->__construct(base64_decode($data)); + } + } + + /** + * @param array{bytes?: string} $data + * + * @psalm-suppress UnusedMethodCall + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['bytes'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->unserialize($data['bytes']); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/CombGenerator.php b/vendor/ramsey/uuid/src/Generator/CombGenerator.php new file mode 100644 index 000000000..0e8870608 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/CombGenerator.php @@ -0,0 +1,115 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; + +use function bin2hex; +use function explode; +use function hex2bin; +use function microtime; +use function str_pad; +use function substr; + +use const STR_PAD_LEFT; + +/** + * CombGenerator generates COMBs (combined UUID/timestamp) + * + * The CombGenerator, when used with the StringCodec (and, by proxy, the + * TimestampLastCombCodec) or the TimestampFirstCombCodec, combines the current + * timestamp with a UUID (hence the name "COMB"). The timestamp either appears + * as the first or last 48 bits of the COMB, depending on the codec used. + * + * By default, COMBs will have the timestamp set as the last 48 bits of the + * identifier. + * + * ``` php + * $factory = new UuidFactory(); + * + * $factory->setRandomGenerator(new CombGenerator( + * $factory->getRandomGenerator(), + * $factory->getNumberConverter() + * )); + * + * $comb = $factory->uuid4(); + * ``` + * + * To generate a COMB with the timestamp as the first 48 bits, set the + * TimestampFirstCombCodec as the codec. + * + * ``` php + * $factory->setCodec(new TimestampFirstCombCodec($factory->getUuidBuilder())); + * ``` + * + * @link https://www.informit.com/articles/printerfriendly/25862 The Cost of GUIDs as Primary Keys + */ +class CombGenerator implements RandomGeneratorInterface +{ + public const TIMESTAMP_BYTES = 6; + + public function __construct( + private RandomGeneratorInterface $generator, + private NumberConverterInterface $numberConverter + ) { + } + + /** + * @throws InvalidArgumentException if $length is not a positive integer + * greater than or equal to CombGenerator::TIMESTAMP_BYTES + * + * @inheritDoc + */ + public function generate(int $length): string + { + if ($length < self::TIMESTAMP_BYTES) { + throw new InvalidArgumentException( + 'Length must be a positive integer greater than or equal to ' . self::TIMESTAMP_BYTES + ); + } + + $hash = ''; + if (self::TIMESTAMP_BYTES > 0 && $length > self::TIMESTAMP_BYTES) { + $hash = $this->generator->generate($length - self::TIMESTAMP_BYTES); + } + + $lsbTime = str_pad( + $this->numberConverter->toHex($this->timestamp()), + self::TIMESTAMP_BYTES * 2, + '0', + STR_PAD_LEFT + ); + + return (string) hex2bin( + str_pad( + bin2hex($hash), + $length - self::TIMESTAMP_BYTES, + '0' + ) + . $lsbTime + ); + } + + /** + * Returns current timestamp a string integer, precise to 0.00001 seconds + */ + private function timestamp(): string + { + $time = explode(' ', microtime(false)); + + return $time[1] . substr($time[0], 2, 5); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php b/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php new file mode 100644 index 000000000..37ba78131 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php @@ -0,0 +1,141 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Exception\DceSecurityException; +use Ramsey\Uuid\Provider\DceSecurityProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Uuid; + +use function hex2bin; +use function in_array; +use function pack; +use function str_pad; +use function strlen; +use function substr_replace; + +use const STR_PAD_LEFT; + +/** + * DceSecurityGenerator generates strings of binary data based on a local + * domain, local identifier, node ID, clock sequence, and the current time + */ +class DceSecurityGenerator implements DceSecurityGeneratorInterface +{ + private const DOMAINS = [ + Uuid::DCE_DOMAIN_PERSON, + Uuid::DCE_DOMAIN_GROUP, + Uuid::DCE_DOMAIN_ORG, + ]; + + /** + * Upper bounds for the clock sequence in DCE Security UUIDs. + */ + private const CLOCK_SEQ_HIGH = 63; + + /** + * Lower bounds for the clock sequence in DCE Security UUIDs. + */ + private const CLOCK_SEQ_LOW = 0; + + public function __construct( + private NumberConverterInterface $numberConverter, + private TimeGeneratorInterface $timeGenerator, + private DceSecurityProviderInterface $dceSecurityProvider + ) { + } + + public function generate( + int $localDomain, + ?IntegerObject $localIdentifier = null, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): string { + if (!in_array($localDomain, self::DOMAINS)) { + throw new DceSecurityException( + 'Local domain must be a valid DCE Security domain' + ); + } + + if ($localIdentifier && $localIdentifier->isNegative()) { + throw new DceSecurityException( + 'Local identifier out of bounds; it must be a value between 0 and 4294967295' + ); + } + + if ($clockSeq > self::CLOCK_SEQ_HIGH || $clockSeq < self::CLOCK_SEQ_LOW) { + throw new DceSecurityException( + 'Clock sequence out of bounds; it must be a value between 0 and 63' + ); + } + + switch ($localDomain) { + case Uuid::DCE_DOMAIN_ORG: + if ($localIdentifier === null) { + throw new DceSecurityException( + 'A local identifier must be provided for the org domain' + ); + } + + break; + case Uuid::DCE_DOMAIN_PERSON: + if ($localIdentifier === null) { + $localIdentifier = $this->dceSecurityProvider->getUid(); + } + + break; + case Uuid::DCE_DOMAIN_GROUP: + default: + if ($localIdentifier === null) { + $localIdentifier = $this->dceSecurityProvider->getGid(); + } + + break; + } + + $identifierHex = $this->numberConverter->toHex($localIdentifier->toString()); + + // The maximum value for the local identifier is 0xffffffff, or + // 4294967295. This is 8 hexadecimal digits, so if the length of + // hexadecimal digits is greater than 8, we know the value is greater + // than 0xffffffff. + if (strlen($identifierHex) > 8) { + throw new DceSecurityException( + 'Local identifier out of bounds; it must be a value between 0 and 4294967295' + ); + } + + $domainByte = pack('n', $localDomain)[1]; + $identifierBytes = (string) hex2bin(str_pad($identifierHex, 8, '0', STR_PAD_LEFT)); + + if ($node instanceof Hexadecimal) { + $node = $node->toString(); + } + + // Shift the clock sequence 8 bits to the left, so it matches 0x3f00. + if ($clockSeq !== null) { + $clockSeq = $clockSeq << 8; + } + + $bytes = $this->timeGenerator->generate($node, $clockSeq); + + // Replace bytes in the time-based UUID with DCE Security values. + $bytes = substr_replace($bytes, $identifierBytes, 0, 4); + + return substr_replace($bytes, $domainByte, 9, 1); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/DceSecurityGeneratorInterface.php b/vendor/ramsey/uuid/src/Generator/DceSecurityGeneratorInterface.php new file mode 100644 index 000000000..faa29a53d --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/DceSecurityGeneratorInterface.php @@ -0,0 +1,53 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Rfc4122\UuidV2; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; + +/** + * A DCE Security generator generates strings of binary data based on a local + * domain, local identifier, node ID, clock sequence, and the current time + * + * @see UuidV2 + */ +interface DceSecurityGeneratorInterface +{ + /** + * Generate a binary string from a local domain, local identifier, node ID, + * clock sequence, and current time + * + * @param int $localDomain The local domain to use when generating bytes, + * according to DCE Security + * @param IntegerObject|null $localIdentifier The local identifier for the + * given domain; this may be a UID or GID on POSIX systems, if the local + * domain is person or group, or it may be a site-defined identifier + * if the local domain is org + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return string A binary string + */ + public function generate( + int $localDomain, + ?IntegerObject $localIdentifier = null, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): string; +} diff --git a/vendor/ramsey/uuid/src/Generator/DefaultNameGenerator.php b/vendor/ramsey/uuid/src/Generator/DefaultNameGenerator.php new file mode 100644 index 000000000..7303e9fa2 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/DefaultNameGenerator.php @@ -0,0 +1,48 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Exception\NameException; +use Ramsey\Uuid\UuidInterface; +use ValueError; + +use function hash; + +/** + * DefaultNameGenerator generates strings of binary data based on a namespace, + * name, and hashing algorithm + */ +class DefaultNameGenerator implements NameGeneratorInterface +{ + /** @psalm-pure */ + public function generate(UuidInterface $ns, string $name, string $hashAlgorithm): string + { + try { + /** @var string|bool $bytes */ + $bytes = @hash($hashAlgorithm, $ns->getBytes() . $name, true); + } catch (ValueError $e) { + $bytes = false; // keep same behavior than PHP 7 + } + + if ($bytes === false) { + throw new NameException(sprintf( + 'Unable to hash namespace and name with algorithm \'%s\'', + $hashAlgorithm + )); + } + + return (string) $bytes; + } +} diff --git a/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php b/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php new file mode 100644 index 000000000..ea1e2a6ff --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php @@ -0,0 +1,129 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Exception\RandomSourceException; +use Ramsey\Uuid\Exception\TimeSourceException; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Provider\TimeProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Throwable; + +use function dechex; +use function hex2bin; +use function is_int; +use function pack; +use function preg_match; +use function sprintf; +use function str_pad; +use function strlen; + +use const STR_PAD_LEFT; + +/** + * DefaultTimeGenerator generates strings of binary data based on a node ID, + * clock sequence, and the current time + */ +class DefaultTimeGenerator implements TimeGeneratorInterface +{ + public function __construct( + private NodeProviderInterface $nodeProvider, + private TimeConverterInterface $timeConverter, + private TimeProviderInterface $timeProvider + ) { + } + + /** + * @throws InvalidArgumentException if the parameters contain invalid values + * @throws RandomSourceException if random_int() throws an exception/error + * + * @inheritDoc + */ + public function generate($node = null, ?int $clockSeq = null): string + { + if ($node instanceof Hexadecimal) { + $node = $node->toString(); + } + + $node = $this->getValidNode($node); + + if ($clockSeq === null) { + try { + // This does not use "stable storage"; see RFC 4122, Section 4.2.1.1. + $clockSeq = random_int(0, 0x3fff); + } catch (Throwable $exception) { + throw new RandomSourceException( + $exception->getMessage(), + (int) $exception->getCode(), + $exception + ); + } + } + + $time = $this->timeProvider->getTime(); + + $uuidTime = $this->timeConverter->calculateTime( + $time->getSeconds()->toString(), + $time->getMicroseconds()->toString() + ); + + $timeHex = str_pad($uuidTime->toString(), 16, '0', STR_PAD_LEFT); + + if (strlen($timeHex) !== 16) { + throw new TimeSourceException(sprintf( + 'The generated time of \'%s\' is larger than expected', + $timeHex + )); + } + + $timeBytes = (string) hex2bin($timeHex); + + return $timeBytes[4] . $timeBytes[5] . $timeBytes[6] . $timeBytes[7] + . $timeBytes[2] . $timeBytes[3] + . $timeBytes[0] . $timeBytes[1] + . pack('n*', $clockSeq) + . $node; + } + + /** + * Uses the node provider given when constructing this instance to get + * the node ID (usually a MAC address) + * + * @param int|string|null $node A node value that may be used to override the node provider + * + * @return string 6-byte binary string representation of the node + * + * @throws InvalidArgumentException + */ + private function getValidNode(int | string | null $node): string + { + if ($node === null) { + $node = $this->nodeProvider->getNode(); + } + + // Convert the node to hex, if it is still an integer. + if (is_int($node)) { + $node = dechex($node); + } + + if (!preg_match('/^[A-Fa-f0-9]+$/', (string) $node) || strlen((string) $node) > 12) { + throw new InvalidArgumentException('Invalid node value'); + } + + return (string) hex2bin(str_pad((string) $node, 12, '0', STR_PAD_LEFT)); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/NameGeneratorFactory.php b/vendor/ramsey/uuid/src/Generator/NameGeneratorFactory.php new file mode 100644 index 000000000..6f08e2910 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/NameGeneratorFactory.php @@ -0,0 +1,30 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +/** + * NameGeneratorFactory retrieves a default name generator, based on the + * environment + */ +class NameGeneratorFactory +{ + /** + * Returns a default name generator, based on the current environment + */ + public function getGenerator(): NameGeneratorInterface + { + return new DefaultNameGenerator(); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/NameGeneratorInterface.php b/vendor/ramsey/uuid/src/Generator/NameGeneratorInterface.php new file mode 100644 index 000000000..cc43dd029 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/NameGeneratorInterface.php @@ -0,0 +1,38 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\UuidInterface; + +/** + * A name generator generates strings of binary data created by hashing together + * a namespace with a name, according to a hashing algorithm + */ +interface NameGeneratorInterface +{ + /** + * Generate a binary string from a namespace and name hashed together with + * the specified hashing algorithm + * + * @param UuidInterface $ns The namespace + * @param string $name The name to use for creating a UUID + * @param string $hashAlgorithm The hashing algorithm to use + * + * @return string A binary string + * + * @psalm-pure + */ + public function generate(UuidInterface $ns, string $name, string $hashAlgorithm): string; +} diff --git a/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php b/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php new file mode 100644 index 000000000..6a6d1aec3 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php @@ -0,0 +1,49 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Exception\NameException; +use Ramsey\Uuid\UuidInterface; + +use function sprintf; +use function uuid_generate_md5; +use function uuid_generate_sha1; +use function uuid_parse; + +/** + * PeclUuidNameGenerator generates strings of binary data from a namespace and a + * name, using ext-uuid + * + * @link https://pecl.php.net/package/uuid ext-uuid + */ +class PeclUuidNameGenerator implements NameGeneratorInterface +{ + /** @psalm-pure */ + public function generate(UuidInterface $ns, string $name, string $hashAlgorithm): string + { + $uuid = match ($hashAlgorithm) { + 'md5' => uuid_generate_md5($ns->toString(), $name), + 'sha1' => uuid_generate_sha1($ns->toString(), $name), + default => throw new NameException( + sprintf( + 'Unable to hash namespace and name with algorithm \'%s\'', + $hashAlgorithm + ) + ), + }; + + return uuid_parse($uuid); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/PeclUuidRandomGenerator.php b/vendor/ramsey/uuid/src/Generator/PeclUuidRandomGenerator.php new file mode 100644 index 000000000..07c47d265 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/PeclUuidRandomGenerator.php @@ -0,0 +1,35 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use function uuid_create; +use function uuid_parse; + +use const UUID_TYPE_RANDOM; + +/** + * PeclUuidRandomGenerator generates strings of random binary data using ext-uuid + * + * @link https://pecl.php.net/package/uuid ext-uuid + */ +class PeclUuidRandomGenerator implements RandomGeneratorInterface +{ + public function generate(int $length): string + { + $uuid = uuid_create(UUID_TYPE_RANDOM); + + return uuid_parse($uuid); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/PeclUuidTimeGenerator.php b/vendor/ramsey/uuid/src/Generator/PeclUuidTimeGenerator.php new file mode 100644 index 000000000..e01f44e52 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/PeclUuidTimeGenerator.php @@ -0,0 +1,39 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use function uuid_create; +use function uuid_parse; + +use const UUID_TYPE_TIME; + +/** + * PeclUuidTimeGenerator generates strings of binary data for time-base UUIDs, + * using ext-uuid + * + * @link https://pecl.php.net/package/uuid ext-uuid + */ +class PeclUuidTimeGenerator implements TimeGeneratorInterface +{ + /** + * @inheritDoc + */ + public function generate($node = null, ?int $clockSeq = null): string + { + $uuid = uuid_create(UUID_TYPE_TIME); + + return uuid_parse($uuid); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/RandomBytesGenerator.php b/vendor/ramsey/uuid/src/Generator/RandomBytesGenerator.php new file mode 100644 index 000000000..12edb96ae --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/RandomBytesGenerator.php @@ -0,0 +1,45 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Exception\RandomSourceException; +use Throwable; + +/** + * RandomBytesGenerator generates strings of random binary data using the + * built-in `random_bytes()` PHP function + * + * @link http://php.net/random_bytes random_bytes() + */ +class RandomBytesGenerator implements RandomGeneratorInterface +{ + /** + * @throws RandomSourceException if random_bytes() throws an exception/error + * + * @inheritDoc + */ + public function generate(int $length): string + { + try { + return random_bytes($length); + } catch (Throwable $exception) { + throw new RandomSourceException( + $exception->getMessage(), + (int) $exception->getCode(), + $exception + ); + } + } +} diff --git a/vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php b/vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php new file mode 100644 index 000000000..b723ac29e --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php @@ -0,0 +1,30 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +/** + * RandomGeneratorFactory retrieves a default random generator, based on the + * environment + */ +class RandomGeneratorFactory +{ + /** + * Returns a default random generator, based on the current environment + */ + public function getGenerator(): RandomGeneratorInterface + { + return new RandomBytesGenerator(); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php b/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php new file mode 100644 index 000000000..1180b9764 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php @@ -0,0 +1,30 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +/** + * A random generator generates strings of random binary data + */ +interface RandomGeneratorInterface +{ + /** + * Generates a string of randomized binary data + * + * @param int<1, max> $length The number of bytes of random binary data to generate + * + * @return string A binary string + */ + public function generate(int $length): string; +} diff --git a/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php b/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php new file mode 100644 index 000000000..fd0ccc8aa --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php @@ -0,0 +1,56 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use RandomLib\Factory; +use RandomLib\Generator; + +/** + * RandomLibAdapter generates strings of random binary data using the + * paragonie/random-lib library + * + * @deprecated This class will be removed in 5.0.0. Use the default + * RandomBytesGenerator or implement your own generator that implements + * RandomGeneratorInterface. + * + * @link https://packagist.org/packages/paragonie/random-lib paragonie/random-lib + */ +class RandomLibAdapter implements RandomGeneratorInterface +{ + private Generator $generator; + + /** + * Constructs a RandomLibAdapter + * + * By default, if no Generator is passed in, this creates a high-strength + * generator to use when generating random binary data. + * + * @param Generator|null $generator The generator to use when generating binary data + */ + public function __construct(?Generator $generator = null) + { + if ($generator === null) { + $factory = new Factory(); + $generator = $factory->getHighStrengthGenerator(); + } + + $this->generator = $generator; + } + + public function generate(int $length): string + { + return $this->generator->generate($length); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php b/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php new file mode 100644 index 000000000..8d06fc3ae --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php @@ -0,0 +1,45 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Provider\TimeProviderInterface; + +/** + * TimeGeneratorFactory retrieves a default time generator, based on the + * environment + */ +class TimeGeneratorFactory +{ + public function __construct( + private NodeProviderInterface $nodeProvider, + private TimeConverterInterface $timeConverter, + private TimeProviderInterface $timeProvider + ) { + } + + /** + * Returns a default time generator, based on the current environment + */ + public function getGenerator(): TimeGeneratorInterface + { + return new DefaultTimeGenerator( + $this->nodeProvider, + $this->timeConverter, + $this->timeProvider + ); + } +} diff --git a/vendor/ramsey/uuid/src/Generator/TimeGeneratorInterface.php b/vendor/ramsey/uuid/src/Generator/TimeGeneratorInterface.php new file mode 100644 index 000000000..18f21c4b6 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/TimeGeneratorInterface.php @@ -0,0 +1,38 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Type\Hexadecimal; + +/** + * A time generator generates strings of binary data based on a node ID, + * clock sequence, and the current time + */ +interface TimeGeneratorInterface +{ + /** + * Generate a binary string from a node ID, clock sequence, and current time + * + * @param Hexadecimal|int|string|null $node A 48-bit number representing the + * hardware address; this number may be represented as an integer or a + * hexadecimal string + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return string A binary string + */ + public function generate($node = null, ?int $clockSeq = null): string; +} diff --git a/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php b/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php new file mode 100644 index 000000000..af94decf2 --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php @@ -0,0 +1,169 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Brick\Math\BigInteger; +use DateTimeImmutable; +use DateTimeInterface; +use Ramsey\Uuid\Type\Hexadecimal; + +use function hash; +use function pack; +use function str_pad; +use function strlen; +use function substr; +use function substr_replace; +use function unpack; + +use const PHP_INT_SIZE; +use const STR_PAD_LEFT; + +/** + * UnixTimeGenerator generates bytes that combine a 48-bit timestamp in + * milliseconds since the Unix Epoch with 80 random bits + * + * Code and concepts within this class are borrowed from the symfony/uid package + * and are used under the terms of the MIT license distributed with symfony/uid. + * + * symfony/uid is copyright (c) Fabien Potencier. + * + * @link https://symfony.com/components/Uid Symfony Uid component + * @link https://github.com/symfony/uid/blob/4f9f537e57261519808a7ce1d941490736522bbc/UuidV7.php Symfony UuidV7 class + * @link https://github.com/symfony/uid/blob/6.2/LICENSE MIT License + */ +class UnixTimeGenerator implements TimeGeneratorInterface +{ + private static string $time = ''; + private static ?string $seed = null; + private static int $seedIndex = 0; + + /** @var int[] */ + private static array $rand = []; + + /** @var int[] */ + private static array $seedParts; + + public function __construct( + private RandomGeneratorInterface $randomGenerator, + private int $intSize = PHP_INT_SIZE + ) { + } + + /** + * @param Hexadecimal|int|string|null $node Unused in this generator + * @param int|null $clockSeq Unused in this generator + * @param DateTimeInterface $dateTime A date-time instance to use when + * generating bytes + * + * @inheritDoc + */ + public function generate($node = null, ?int $clockSeq = null, ?DateTimeInterface $dateTime = null): string + { + $time = ($dateTime ?? new DateTimeImmutable('now'))->format('Uv'); + + if ($time > self::$time || ($dateTime !== null && $time !== self::$time)) { + $this->randomize($time); + } else { + $time = $this->increment(); + } + + if ($this->intSize >= 8) { + $time = substr(pack('J', (int) $time), -6); + } else { + $time = str_pad(BigInteger::of($time)->toBytes(false), 6, "\x00", STR_PAD_LEFT); + } + + /** @var non-empty-string */ + return $time . pack('n*', self::$rand[1], self::$rand[2], self::$rand[3], self::$rand[4], self::$rand[5]); + } + + private function randomize(string $time): void + { + if (self::$seed === null) { + $seed = $this->randomGenerator->generate(16); + self::$seed = $seed; + } else { + $seed = $this->randomGenerator->generate(10); + } + + /** @var int[] $rand */ + $rand = unpack('n*', $seed); + $rand[1] &= 0x03ff; + + self::$rand = $rand; + self::$time = $time; + } + + /** + * Special thanks to Nicolas Grekas for sharing the following information: + * + * Within the same ms, we increment the rand part by a random 24-bit number. + * + * Instead of getting this number from random_bytes(), which is slow, we get + * it by sha512-hashing self::$seed. This produces 64 bytes of entropy, + * which we need to split in a list of 24-bit numbers. unpack() first splits + * them into 16 x 32-bit numbers; we take the first byte of each of these + * numbers to get 5 extra 24-bit numbers. Then, we consume those numbers + * one-by-one and run this logic every 21 iterations. + * + * self::$rand holds the random part of the UUID, split into 5 x 16-bit + * numbers for x86 portability. We increment this random part by the next + * 24-bit number in the self::$seedParts list and decrement + * self::$seedIndex. + * + * @link https://twitter.com/nicolasgrekas/status/1583356938825261061 Tweet from Nicolas Grekas + */ + private function increment(): string + { + if (self::$seedIndex === 0 && self::$seed !== null) { + self::$seed = hash('sha512', self::$seed, true); + + /** @var int[] $s */ + $s = unpack('l*', self::$seed); + $s[] = ($s[1] >> 8 & 0xff0000) | ($s[2] >> 16 & 0xff00) | ($s[3] >> 24 & 0xff); + $s[] = ($s[4] >> 8 & 0xff0000) | ($s[5] >> 16 & 0xff00) | ($s[6] >> 24 & 0xff); + $s[] = ($s[7] >> 8 & 0xff0000) | ($s[8] >> 16 & 0xff00) | ($s[9] >> 24 & 0xff); + $s[] = ($s[10] >> 8 & 0xff0000) | ($s[11] >> 16 & 0xff00) | ($s[12] >> 24 & 0xff); + $s[] = ($s[13] >> 8 & 0xff0000) | ($s[14] >> 16 & 0xff00) | ($s[15] >> 24 & 0xff); + + self::$seedParts = $s; + self::$seedIndex = 21; + } + + self::$rand[5] = 0xffff & $carry = self::$rand[5] + (self::$seedParts[self::$seedIndex--] & 0xffffff); + self::$rand[4] = 0xffff & $carry = self::$rand[4] + ($carry >> 16); + self::$rand[3] = 0xffff & $carry = self::$rand[3] + ($carry >> 16); + self::$rand[2] = 0xffff & $carry = self::$rand[2] + ($carry >> 16); + self::$rand[1] += $carry >> 16; + + if (0xfc00 & self::$rand[1]) { + $time = self::$time; + $mtime = (int) substr($time, -9); + + if ($this->intSize >= 8 || strlen($time) < 10) { + $time = (string) ((int) $time + 1); + } elseif ($mtime === 999999999) { + $time = (1 + (int) substr($time, 0, -9)) . '000000000'; + } else { + $mtime++; + $time = substr_replace($time, str_pad((string) $mtime, 9, '0', STR_PAD_LEFT), -9); + } + + $this->randomize($time); + } + + return self::$time; + } +} diff --git a/vendor/ramsey/uuid/src/Guid/Fields.php b/vendor/ramsey/uuid/src/Guid/Fields.php new file mode 100644 index 000000000..0fc5d1c9b --- /dev/null +++ b/vendor/ramsey/uuid/src/Guid/Fields.php @@ -0,0 +1,195 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Guid; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Fields\SerializableFieldsTrait; +use Ramsey\Uuid\Rfc4122\FieldsInterface; +use Ramsey\Uuid\Rfc4122\MaxTrait; +use Ramsey\Uuid\Rfc4122\NilTrait; +use Ramsey\Uuid\Rfc4122\VariantTrait; +use Ramsey\Uuid\Rfc4122\VersionTrait; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Uuid; + +use function bin2hex; +use function dechex; +use function hexdec; +use function pack; +use function sprintf; +use function str_pad; +use function strlen; +use function substr; +use function unpack; + +use const STR_PAD_LEFT; + +/** + * GUIDs are comprised of a set of named fields, according to RFC 4122 + * + * @see Guid + * + * @psalm-immutable + */ +final class Fields implements FieldsInterface +{ + use MaxTrait; + use NilTrait; + use SerializableFieldsTrait; + use VariantTrait; + use VersionTrait; + + /** + * @param string $bytes A 16-byte binary string representation of a UUID + * + * @throws InvalidArgumentException if the byte string is not exactly 16 bytes + * @throws InvalidArgumentException if the byte string does not represent a GUID + * @throws InvalidArgumentException if the byte string does not contain a valid version + */ + public function __construct(private string $bytes) + { + if (strlen($this->bytes) !== 16) { + throw new InvalidArgumentException( + 'The byte string must be 16 bytes long; ' + . 'received ' . strlen($this->bytes) . ' bytes' + ); + } + + if (!$this->isCorrectVariant()) { + throw new InvalidArgumentException( + 'The byte string received does not conform to the RFC ' + . '4122 or Microsoft Corporation variants' + ); + } + + if (!$this->isCorrectVersion()) { + throw new InvalidArgumentException( + 'The byte string received does not contain a valid version' + ); + } + } + + public function getBytes(): string + { + return $this->bytes; + } + + public function getTimeLow(): Hexadecimal + { + // Swap the bytes from little endian to network byte order. + /** @var array $hex */ + $hex = unpack( + 'H*', + pack( + 'v*', + hexdec(bin2hex(substr($this->bytes, 2, 2))), + hexdec(bin2hex(substr($this->bytes, 0, 2))) + ) + ); + + return new Hexadecimal((string) ($hex[1] ?? '')); + } + + public function getTimeMid(): Hexadecimal + { + // Swap the bytes from little endian to network byte order. + /** @var array $hex */ + $hex = unpack( + 'H*', + pack( + 'v', + hexdec(bin2hex(substr($this->bytes, 4, 2))) + ) + ); + + return new Hexadecimal((string) ($hex[1] ?? '')); + } + + public function getTimeHiAndVersion(): Hexadecimal + { + // Swap the bytes from little endian to network byte order. + /** @var array $hex */ + $hex = unpack( + 'H*', + pack( + 'v', + hexdec(bin2hex(substr($this->bytes, 6, 2))) + ) + ); + + return new Hexadecimal((string) ($hex[1] ?? '')); + } + + public function getTimestamp(): Hexadecimal + { + return new Hexadecimal(sprintf( + '%03x%04s%08s', + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, + $this->getTimeMid()->toString(), + $this->getTimeLow()->toString() + )); + } + + public function getClockSeq(): Hexadecimal + { + if ($this->isMax()) { + $clockSeq = 0xffff; + } elseif ($this->isNil()) { + $clockSeq = 0x0000; + } else { + $clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff; + } + + return new Hexadecimal(str_pad(dechex($clockSeq), 4, '0', STR_PAD_LEFT)); + } + + public function getClockSeqHiAndReserved(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 8, 1))); + } + + public function getClockSeqLow(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 9, 1))); + } + + public function getNode(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 10))); + } + + public function getVersion(): ?int + { + if ($this->isNil() || $this->isMax()) { + return null; + } + + /** @var array $parts */ + $parts = unpack('n*', $this->bytes); + + return ((int) $parts[4] >> 4) & 0x00f; + } + + private function isCorrectVariant(): bool + { + if ($this->isNil() || $this->isMax()) { + return true; + } + + $variant = $this->getVariant(); + + return $variant === Uuid::RFC_4122 || $variant === Uuid::RESERVED_MICROSOFT; + } +} diff --git a/vendor/ramsey/uuid/src/Guid/Guid.php b/vendor/ramsey/uuid/src/Guid/Guid.php new file mode 100644 index 000000000..b3ed096ab --- /dev/null +++ b/vendor/ramsey/uuid/src/Guid/Guid.php @@ -0,0 +1,61 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Guid; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Uuid; + +/** + * Guid represents a UUID with "native" (little-endian) byte order + * + * From Wikipedia: + * + * > The first three fields are unsigned 32- and 16-bit integers and are subject + * > to swapping, while the last two fields consist of uninterpreted bytes, not + * > subject to swapping. This byte swapping applies even for versions 3, 4, and + * > 5, where the canonical fields do not correspond to the content of the UUID. + * + * The first three fields of a GUID are encoded in little-endian byte order, + * while the last three fields are in network (big-endian) byte order. This is + * according to the history of the Microsoft definition of a GUID. + * + * According to the .NET Guid.ToByteArray method documentation: + * + * > Note that the order of bytes in the returned byte array is different from + * > the string representation of a Guid value. The order of the beginning + * > four-byte group and the next two two-byte groups is reversed, whereas the + * > order of the last two-byte group and the closing six-byte group is the + * > same. + * + * @link https://en.wikipedia.org/wiki/Universally_unique_identifier#Variants UUID Variants on Wikipedia + * @link https://docs.microsoft.com/en-us/windows/win32/api/guiddef/ns-guiddef-guid Windows GUID structure + * @link https://docs.microsoft.com/en-us/dotnet/api/system.guid .NET Guid Struct + * @link https://docs.microsoft.com/en-us/dotnet/api/system.guid.tobytearray .NET Guid.ToByteArray Method + * + * @psalm-immutable + */ +final class Guid extends Uuid +{ + public function __construct( + Fields $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Guid/GuidBuilder.php b/vendor/ramsey/uuid/src/Guid/GuidBuilder.php new file mode 100644 index 000000000..c036bb20b --- /dev/null +++ b/vendor/ramsey/uuid/src/Guid/GuidBuilder.php @@ -0,0 +1,77 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Guid; + +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\UnableToBuildUuidException; +use Ramsey\Uuid\UuidInterface; +use Throwable; + +/** + * GuidBuilder builds instances of Guid + * + * @see Guid + * + * @psalm-immutable + */ +class GuidBuilder implements UuidBuilderInterface +{ + /** + * @param NumberConverterInterface $numberConverter The number converter to + * use when constructing the Guid + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to Unix timestamps + */ + public function __construct( + private NumberConverterInterface $numberConverter, + private TimeConverterInterface $timeConverter + ) { + } + + /** + * Builds and returns a Guid + * + * @param CodecInterface $codec The codec to use for building this Guid instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return Guid The GuidBuilder returns an instance of Ramsey\Uuid\Guid\Guid + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface + { + try { + return new Guid( + $this->buildFields($bytes), + $this->numberConverter, + $codec, + $this->timeConverter + ); + } catch (Throwable $e) { + throw new UnableToBuildUuidException($e->getMessage(), (int) $e->getCode(), $e); + } + } + + /** + * Proxy method to allow injecting a mock, for testing + */ + protected function buildFields(string $bytes): Fields + { + return new Fields($bytes); + } +} diff --git a/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php b/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php new file mode 100644 index 000000000..c0b47bbf2 --- /dev/null +++ b/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php @@ -0,0 +1,572 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Lazy; + +use DateTimeInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Ramsey\Uuid\Fields\FieldsInterface; +use Ramsey\Uuid\Rfc4122\UuidV1; +use Ramsey\Uuid\Rfc4122\UuidV6; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\UuidFactory; +use Ramsey\Uuid\UuidInterface; +use ValueError; + +use function assert; +use function bin2hex; +use function hex2bin; +use function sprintf; +use function str_replace; +use function substr; + +/** + * Lazy version of a UUID: its format has not been determined yet, so it is mostly only usable for string/bytes + * conversion. This object optimizes instantiation, serialization and string conversion time, at the cost of + * increased overhead for more advanced UUID operations. + * + * @internal this type is used internally for performance reasons, and is not supposed to be directly referenced + * in consumer libraries. + * + * @psalm-immutable + * + * Note: the {@see FieldsInterface} does not declare methods that deprecated API + * relies upon: the API has been ported from the {@see \Ramsey\Uuid\Uuid} definition, + * and is deprecated anyway. + * Note: the deprecated API from {@see \Ramsey\Uuid\Uuid} is in use here (on purpose): it will be removed + * once the deprecated API is gone from this class too. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + */ +final class LazyUuidFromString implements UuidInterface +{ + public const VALID_REGEX = '/\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/ms'; + + private ?UuidInterface $unwrapped = null; + + /** + * @psalm-param non-empty-string $uuid + */ + public function __construct(private string $uuid) + { + } + + /** @psalm-pure */ + public static function fromBytes(string $bytes): self + { + $base16Uuid = bin2hex($bytes); + + return new self( + substr($base16Uuid, 0, 8) + . '-' + . substr($base16Uuid, 8, 4) + . '-' + . substr($base16Uuid, 12, 4) + . '-' + . substr($base16Uuid, 16, 4) + . '-' + . substr($base16Uuid, 20, 12) + ); + } + + public function serialize(): string + { + return $this->uuid; + } + + /** + * @return array{string: string} + * + * @psalm-return array{string: non-empty-string} + */ + public function __serialize(): array + { + return ['string' => $this->uuid]; + } + + /** + * {@inheritDoc} + * + * @param string $data + * + * @psalm-param non-empty-string $data + */ + public function unserialize(string $data): void + { + $this->uuid = $data; + } + + /** + * @param array{string?: string} $data + * + * @psalm-param array{string?: non-empty-string} $data + * @psalm-suppress UnusedMethodCall + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['string'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->unserialize($data['string']); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getNumberConverter(): NumberConverterInterface + { + return ($this->unwrapped ?? $this->unwrap()) + ->getNumberConverter(); + } + + /** + * {@inheritDoc} + * + * @psalm-suppress DeprecatedMethod + */ + public function getFieldsHex(): array + { + return ($this->unwrapped ?? $this->unwrap()) + ->getFieldsHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getClockSeqHiAndReservedHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getClockSeqHiAndReservedHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getClockSeqLowHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getClockSeqLowHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getClockSequenceHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getClockSequenceHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getDateTime(): DateTimeInterface + { + return ($this->unwrapped ?? $this->unwrap()) + ->getDateTime(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getLeastSignificantBitsHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getLeastSignificantBitsHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getMostSignificantBitsHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getMostSignificantBitsHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getNodeHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getNodeHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getTimeHiAndVersionHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getTimeHiAndVersionHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getTimeLowHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getTimeLowHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getTimeMidHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getTimeMidHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getTimestampHex(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getTimestampHex(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getUrn(): string + { + return ($this->unwrapped ?? $this->unwrap()) + ->getUrn(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getVariant(): ?int + { + return ($this->unwrapped ?? $this->unwrap()) + ->getVariant(); + } + + /** @psalm-suppress DeprecatedMethod */ + public function getVersion(): ?int + { + return ($this->unwrapped ?? $this->unwrap()) + ->getVersion(); + } + + public function compareTo(UuidInterface $other): int + { + return ($this->unwrapped ?? $this->unwrap()) + ->compareTo($other); + } + + public function equals(?object $other): bool + { + if (! $other instanceof UuidInterface) { + return false; + } + + return $this->uuid === $other->toString(); + } + + /** + * {@inheritDoc} + * + * @psalm-suppress MoreSpecificReturnType + * @psalm-suppress LessSpecificReturnStatement we know that {@see self::$uuid} is a non-empty string, so + * we know that {@see hex2bin} will retrieve a non-empty string too. + */ + public function getBytes(): string + { + /** @phpstan-ignore-next-line PHPStan complains that this is not a non-empty-string. */ + return (string) hex2bin(str_replace('-', '', $this->uuid)); + } + + public function getFields(): FieldsInterface + { + return ($this->unwrapped ?? $this->unwrap()) + ->getFields(); + } + + public function getHex(): Hexadecimal + { + return ($this->unwrapped ?? $this->unwrap()) + ->getHex(); + } + + public function getInteger(): IntegerObject + { + return ($this->unwrapped ?? $this->unwrap()) + ->getInteger(); + } + + public function toString(): string + { + return $this->uuid; + } + + public function __toString(): string + { + return $this->uuid; + } + + public function jsonSerialize(): string + { + return $this->uuid; + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getClockSeqHiAndReserved()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getClockSeqHiAndReserved(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex( + $instance->getFields() + ->getClockSeqHiAndReserved() + ->toString() + ); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getClockSeqLow()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getClockSeqLow(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex( + $instance->getFields() + ->getClockSeqLow() + ->toString() + ); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getClockSeq()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getClockSequence(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex( + $instance->getFields() + ->getClockSeq() + ->toString() + ); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getLeastSignificantBits(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex(substr($instance->getHex()->toString(), 16)); + } + + /** + * @deprecated This method will be removed in 5.0.0. There is no direct + * alternative, but the same information may be obtained by splitting + * in half the value returned by {@see UuidInterface::getHex()}. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getMostSignificantBits(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex(substr($instance->getHex()->toString(), 0, 16)); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getNode()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getNode(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex( + $instance->getFields() + ->getNode() + ->toString() + ); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getTimeHiAndVersion()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getTimeHiAndVersion(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex( + $instance->getFields() + ->getTimeHiAndVersion() + ->toString() + ); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getTimeLow()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getTimeLow(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex( + $instance->getFields() + ->getTimeLow() + ->toString() + ); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getTimeMid()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getTimeMid(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + return $instance->getNumberConverter() + ->fromHex( + $instance->getFields() + ->getTimeMid() + ->toString() + ); + } + + /** + * @deprecated Use {@see UuidInterface::getFields()} to get a + * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} + * instance, you may call {@see Rfc4122FieldsInterface::getTimestamp()} + * and use the arbitrary-precision math library of your choice to + * convert it to a string integer. + * + * @psalm-suppress UndefinedInterfaceMethod + * @psalm-suppress DeprecatedMethod + * @psalm-suppress MixedArgument + * @psalm-suppress MixedMethodCall + */ + public function getTimestamp(): string + { + $instance = ($this->unwrapped ?? $this->unwrap()); + $fields = $instance->getFields(); + + if ($fields->getVersion() !== 1) { + throw new UnsupportedOperationException('Not a time-based UUID'); + } + + return $instance->getNumberConverter() + ->fromHex($fields->getTimestamp()->toString()); + } + + public function toUuidV1(): UuidV1 + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + if ($instance instanceof UuidV1) { + return $instance; + } + + assert($instance instanceof UuidV6); + + return $instance->toUuidV1(); + } + + public function toUuidV6(): UuidV6 + { + $instance = ($this->unwrapped ?? $this->unwrap()); + + assert($instance instanceof UuidV6); + + return $instance; + } + + /** + * @psalm-suppress ImpureMethodCall the retrieval of the factory is a clear violation of purity here: this is a + * known pitfall of the design of this library, where a value object contains + * a mutable reference to a factory. We use a fixed factory here, so the violation + * will not have real-world effects, as this object is only instantiated with the + * default factory settings/features. + * @psalm-suppress InaccessibleProperty property {@see $unwrapped} is used as a cache: we don't expose it to the + * outside world, so we should be fine here. + */ + private function unwrap(): UuidInterface + { + return $this->unwrapped = (new UuidFactory()) + ->fromString($this->uuid); + } +} diff --git a/vendor/ramsey/uuid/src/Math/BrickMathCalculator.php b/vendor/ramsey/uuid/src/Math/BrickMathCalculator.php new file mode 100644 index 000000000..f2d86788c --- /dev/null +++ b/vendor/ramsey/uuid/src/Math/BrickMathCalculator.php @@ -0,0 +1,144 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Math; + +use Brick\Math\BigDecimal; +use Brick\Math\BigInteger; +use Brick\Math\Exception\MathException; +use Brick\Math\RoundingMode as BrickMathRounding; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Type\Decimal; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\NumberInterface; + +/** + * A calculator using the brick/math library for arbitrary-precision arithmetic + * + * @psalm-immutable + */ +final class BrickMathCalculator implements CalculatorInterface +{ + private const ROUNDING_MODE_MAP = [ + RoundingMode::UNNECESSARY => BrickMathRounding::UNNECESSARY, + RoundingMode::UP => BrickMathRounding::UP, + RoundingMode::DOWN => BrickMathRounding::DOWN, + RoundingMode::CEILING => BrickMathRounding::CEILING, + RoundingMode::FLOOR => BrickMathRounding::FLOOR, + RoundingMode::HALF_UP => BrickMathRounding::HALF_UP, + RoundingMode::HALF_DOWN => BrickMathRounding::HALF_DOWN, + RoundingMode::HALF_CEILING => BrickMathRounding::HALF_CEILING, + RoundingMode::HALF_FLOOR => BrickMathRounding::HALF_FLOOR, + RoundingMode::HALF_EVEN => BrickMathRounding::HALF_EVEN, + ]; + + public function add(NumberInterface $augend, NumberInterface ...$addends): NumberInterface + { + $sum = BigInteger::of($augend->toString()); + + foreach ($addends as $addend) { + $sum = $sum->plus($addend->toString()); + } + + return new IntegerObject((string) $sum); + } + + public function subtract(NumberInterface $minuend, NumberInterface ...$subtrahends): NumberInterface + { + $difference = BigInteger::of($minuend->toString()); + + foreach ($subtrahends as $subtrahend) { + $difference = $difference->minus($subtrahend->toString()); + } + + return new IntegerObject((string) $difference); + } + + public function multiply(NumberInterface $multiplicand, NumberInterface ...$multipliers): NumberInterface + { + $product = BigInteger::of($multiplicand->toString()); + + foreach ($multipliers as $multiplier) { + $product = $product->multipliedBy($multiplier->toString()); + } + + return new IntegerObject((string) $product); + } + + public function divide( + int $roundingMode, + int $scale, + NumberInterface $dividend, + NumberInterface ...$divisors + ): NumberInterface { + $brickRounding = $this->getBrickRoundingMode($roundingMode); + + $quotient = BigDecimal::of($dividend->toString()); + + foreach ($divisors as $divisor) { + $quotient = $quotient->dividedBy($divisor->toString(), $scale, $brickRounding); + } + + if ($scale === 0) { + return new IntegerObject((string) $quotient->toBigInteger()); + } + + return new Decimal((string) $quotient); + } + + public function fromBase(string $value, int $base): IntegerObject + { + try { + return new IntegerObject((string) BigInteger::fromBase($value, $base)); + } catch (MathException | \InvalidArgumentException $exception) { + throw new InvalidArgumentException( + $exception->getMessage(), + (int) $exception->getCode(), + $exception + ); + } + } + + public function toBase(IntegerObject $value, int $base): string + { + try { + return BigInteger::of($value->toString())->toBase($base); + } catch (MathException | \InvalidArgumentException $exception) { + throw new InvalidArgumentException( + $exception->getMessage(), + (int) $exception->getCode(), + $exception + ); + } + } + + public function toHexadecimal(IntegerObject $value): Hexadecimal + { + return new Hexadecimal($this->toBase($value, 16)); + } + + public function toInteger(Hexadecimal $value): IntegerObject + { + return $this->fromBase($value->toString(), 16); + } + + /** + * Maps ramsey/uuid rounding modes to those used by brick/math + */ + private function getBrickRoundingMode(int $roundingMode): int + { + return self::ROUNDING_MODE_MAP[$roundingMode] ?? 0; + } +} diff --git a/vendor/ramsey/uuid/src/Math/CalculatorInterface.php b/vendor/ramsey/uuid/src/Math/CalculatorInterface.php new file mode 100644 index 000000000..f03645d0f --- /dev/null +++ b/vendor/ramsey/uuid/src/Math/CalculatorInterface.php @@ -0,0 +1,106 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Math; + +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\NumberInterface; + +/** + * A calculator performs arithmetic operations on numbers + * + * @psalm-immutable + */ +interface CalculatorInterface +{ + /** + * Returns the sum of all the provided parameters + * + * @param NumberInterface $augend The first addend (the integer being added to) + * @param NumberInterface ...$addends The additional integers to a add to the augend + * + * @return NumberInterface The sum of all the parameters + */ + public function add(NumberInterface $augend, NumberInterface ...$addends): NumberInterface; + + /** + * Returns the difference of all the provided parameters + * + * @param NumberInterface $minuend The integer being subtracted from + * @param NumberInterface ...$subtrahends The integers to subtract from the minuend + * + * @return NumberInterface The difference after subtracting all parameters + */ + public function subtract(NumberInterface $minuend, NumberInterface ...$subtrahends): NumberInterface; + + /** + * Returns the product of all the provided parameters + * + * @param NumberInterface $multiplicand The integer to be multiplied + * @param NumberInterface ...$multipliers The factors by which to multiply the multiplicand + * + * @return NumberInterface The product of multiplying all the provided parameters + */ + public function multiply(NumberInterface $multiplicand, NumberInterface ...$multipliers): NumberInterface; + + /** + * Returns the quotient of the provided parameters divided left-to-right + * + * @param int $roundingMode The RoundingMode constant to use for this operation + * @param int $scale The scale to use for this operation + * @param NumberInterface $dividend The integer to be divided + * @param NumberInterface ...$divisors The integers to divide $dividend by, in + * the order in which the division operations should take place + * (left-to-right) + * + * @return NumberInterface The quotient of dividing the provided parameters left-to-right + */ + public function divide( + int $roundingMode, + int $scale, + NumberInterface $dividend, + NumberInterface ...$divisors + ): NumberInterface; + + /** + * Converts a value from an arbitrary base to a base-10 integer value + * + * @param string $value The value to convert + * @param int $base The base to convert from (i.e., 2, 16, 32, etc.) + * + * @return IntegerObject The base-10 integer value of the converted value + */ + public function fromBase(string $value, int $base): IntegerObject; + + /** + * Converts a base-10 integer value to an arbitrary base + * + * @param IntegerObject $value The integer value to convert + * @param int $base The base to convert to (i.e., 2, 16, 32, etc.) + * + * @return string The value represented in the specified base + */ + public function toBase(IntegerObject $value, int $base): string; + + /** + * Converts an Integer instance to a Hexadecimal instance + */ + public function toHexadecimal(IntegerObject $value): Hexadecimal; + + /** + * Converts a Hexadecimal instance to an Integer instance + */ + public function toInteger(Hexadecimal $value): IntegerObject; +} diff --git a/vendor/ramsey/uuid/src/Math/RoundingMode.php b/vendor/ramsey/uuid/src/Math/RoundingMode.php new file mode 100644 index 000000000..e710270d0 --- /dev/null +++ b/vendor/ramsey/uuid/src/Math/RoundingMode.php @@ -0,0 +1,146 @@ += 0.5; otherwise, behaves + * as for DOWN. Note that this is the rounding mode commonly taught at + * school. + */ + public const HALF_UP = 5; + + /** + * Rounds towards "nearest neighbor" unless both neighbors are equidistant, + * in which case round down. + * + * Behaves as for UP if the discarded fraction is > 0.5; otherwise, behaves + * as for DOWN. + */ + public const HALF_DOWN = 6; + + /** + * Rounds towards "nearest neighbor" unless both neighbors are equidistant, + * in which case round towards positive infinity. + * + * If the result is positive, behaves as for HALF_UP; if negative, behaves + * as for HALF_DOWN. + */ + public const HALF_CEILING = 7; + + /** + * Rounds towards "nearest neighbor" unless both neighbors are equidistant, + * in which case round towards negative infinity. + * + * If the result is positive, behaves as for HALF_DOWN; if negative, behaves + * as for HALF_UP. + */ + public const HALF_FLOOR = 8; + + /** + * Rounds towards the "nearest neighbor" unless both neighbors are + * equidistant, in which case rounds towards the even neighbor. + * + * Behaves as for HALF_UP if the digit to the left of the discarded fraction + * is odd; behaves as for HALF_DOWN if it's even. + * + * Note that this is the rounding mode that statistically minimizes + * cumulative error when applied repeatedly over a sequence of calculations. + * It is sometimes known as "Banker's rounding", and is chiefly used in the + * USA. + */ + public const HALF_EVEN = 9; +} diff --git a/vendor/ramsey/uuid/src/Nonstandard/Fields.php b/vendor/ramsey/uuid/src/Nonstandard/Fields.php new file mode 100644 index 000000000..5dfe61076 --- /dev/null +++ b/vendor/ramsey/uuid/src/Nonstandard/Fields.php @@ -0,0 +1,131 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Nonstandard; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Fields\SerializableFieldsTrait; +use Ramsey\Uuid\Rfc4122\FieldsInterface; +use Ramsey\Uuid\Rfc4122\VariantTrait; +use Ramsey\Uuid\Type\Hexadecimal; + +use function bin2hex; +use function dechex; +use function hexdec; +use function sprintf; +use function str_pad; +use function strlen; +use function substr; + +use const STR_PAD_LEFT; + +/** + * Nonstandard UUID fields do not conform to the RFC 4122 standard + * + * Since some systems may create nonstandard UUIDs, this implements the + * Rfc4122\FieldsInterface, so that functionality of a nonstandard UUID is not + * degraded, in the event these UUIDs are expected to contain RFC 4122 fields. + * + * Internally, this class represents the fields together as a 16-byte binary + * string. + * + * @psalm-immutable + */ +final class Fields implements FieldsInterface +{ + use SerializableFieldsTrait; + use VariantTrait; + + /** + * @param string $bytes A 16-byte binary string representation of a UUID + * + * @throws InvalidArgumentException if the byte string is not exactly 16 bytes + */ + public function __construct(private string $bytes) + { + if (strlen($this->bytes) !== 16) { + throw new InvalidArgumentException( + 'The byte string must be 16 bytes long; ' + . 'received ' . strlen($this->bytes) . ' bytes' + ); + } + } + + public function getBytes(): string + { + return $this->bytes; + } + + public function getClockSeq(): Hexadecimal + { + $clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff; + + return new Hexadecimal(str_pad(dechex($clockSeq), 4, '0', STR_PAD_LEFT)); + } + + public function getClockSeqHiAndReserved(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 8, 1))); + } + + public function getClockSeqLow(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 9, 1))); + } + + public function getNode(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 10))); + } + + public function getTimeHiAndVersion(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 6, 2))); + } + + public function getTimeLow(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 0, 4))); + } + + public function getTimeMid(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 4, 2))); + } + + public function getTimestamp(): Hexadecimal + { + return new Hexadecimal(sprintf( + '%03x%04s%08s', + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, + $this->getTimeMid()->toString(), + $this->getTimeLow()->toString() + )); + } + + public function getVersion(): ?int + { + return null; + } + + public function isNil(): bool + { + return false; + } + + public function isMax(): bool + { + return false; + } +} diff --git a/vendor/ramsey/uuid/src/Nonstandard/Uuid.php b/vendor/ramsey/uuid/src/Nonstandard/Uuid.php new file mode 100644 index 000000000..715f82554 --- /dev/null +++ b/vendor/ramsey/uuid/src/Nonstandard/Uuid.php @@ -0,0 +1,37 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Nonstandard; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Uuid as BaseUuid; + +/** + * Nonstandard\Uuid is a UUID that doesn't conform to RFC 4122 + * + * @psalm-immutable + */ +final class Uuid extends BaseUuid +{ + public function __construct( + Fields $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php b/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php new file mode 100644 index 000000000..82efd402f --- /dev/null +++ b/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php @@ -0,0 +1,76 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Nonstandard; + +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\UnableToBuildUuidException; +use Ramsey\Uuid\UuidInterface; +use Throwable; + +/** + * Nonstandard\UuidBuilder builds instances of Nonstandard\Uuid + * + * @psalm-immutable + */ +class UuidBuilder implements UuidBuilderInterface +{ + /** + * @param NumberConverterInterface $numberConverter The number converter to + * use when constructing the Nonstandard\Uuid + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to Unix timestamps + */ + public function __construct( + private NumberConverterInterface $numberConverter, + private TimeConverterInterface $timeConverter + ) { + } + + /** + * Builds and returns a Nonstandard\Uuid + * + * @param CodecInterface $codec The codec to use for building this instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return Uuid The Nonstandard\UuidBuilder returns an instance of + * Nonstandard\Uuid + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface + { + try { + return new Uuid( + $this->buildFields($bytes), + $this->numberConverter, + $codec, + $this->timeConverter + ); + } catch (Throwable $e) { + throw new UnableToBuildUuidException($e->getMessage(), (int) $e->getCode(), $e); + } + } + + /** + * Proxy method to allow injecting a mock, for testing + */ + protected function buildFields(string $bytes): Fields + { + return new Fields($bytes); + } +} diff --git a/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php b/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php new file mode 100644 index 000000000..7497dd101 --- /dev/null +++ b/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php @@ -0,0 +1,105 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Nonstandard; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Lazy\LazyUuidFromString; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Rfc4122\TimeTrait; +use Ramsey\Uuid\Rfc4122\UuidInterface; +use Ramsey\Uuid\Rfc4122\UuidV1; +use Ramsey\Uuid\Uuid as BaseUuid; + +/** + * Reordered time, or version 6, UUIDs include timestamp, clock sequence, and + * node values that are combined into a 128-bit unsigned integer + * + * @deprecated Use {@see \Ramsey\Uuid\Rfc4122\UuidV6} instead. + * + * @link https://github.com/uuid6/uuid6-ietf-draft UUID version 6 IETF draft + * @link http://gh.peabody.io/uuidv6/ "Version 6" UUIDs + * + * @psalm-immutable + */ +class UuidV6 extends BaseUuid implements UuidInterface +{ + use TimeTrait; + + /** + * Creates a version 6 (reordered time) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_REORDERED_TIME) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV6 must represent a ' + . 'version 6 (reordered time) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } + + /** + * Converts this UUID into an instance of a version 1 UUID + */ + public function toUuidV1(): UuidV1 + { + $hex = $this->getHex()->toString(); + $hex = substr($hex, 7, 5) + . substr($hex, 13, 3) + . substr($hex, 3, 4) + . '1' . substr($hex, 0, 3) + . substr($hex, 16); + + /** @var LazyUuidFromString $uuid */ + $uuid = Uuid::fromBytes((string) hex2bin($hex)); + + return $uuid->toUuidV1(); + } + + /** + * Converts a version 1 UUID into an instance of a version 6 UUID + */ + public static function fromUuidV1(UuidV1 $uuidV1): \Ramsey\Uuid\Rfc4122\UuidV6 + { + $hex = $uuidV1->getHex()->toString(); + $hex = substr($hex, 13, 3) + . substr($hex, 8, 4) + . substr($hex, 0, 5) + . '6' . substr($hex, 5, 3) + . substr($hex, 16); + + /** @var LazyUuidFromString $uuid */ + $uuid = Uuid::fromBytes((string) hex2bin($hex)); + + return $uuid->toUuidV6(); + } +} diff --git a/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php b/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php new file mode 100644 index 000000000..d5b6cf0c0 --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php @@ -0,0 +1,231 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Dce; + +use Ramsey\Uuid\Exception\DceSecurityException; +use Ramsey\Uuid\Provider\DceSecurityProviderInterface; +use Ramsey\Uuid\Type\Integer as IntegerObject; + +use function escapeshellarg; +use function preg_split; +use function str_getcsv; +use function strrpos; +use function strtolower; +use function strtoupper; +use function substr; +use function trim; + +use const PREG_SPLIT_NO_EMPTY; + +/** + * SystemDceSecurityProvider retrieves the user or group identifiers from the system + */ +class SystemDceSecurityProvider implements DceSecurityProviderInterface +{ + /** + * @throws DceSecurityException if unable to get a user identifier + * + * @inheritDoc + */ + public function getUid(): IntegerObject + { + /** @var int|float|string|IntegerObject|null $uid */ + static $uid = null; + + if ($uid instanceof IntegerObject) { + return $uid; + } + + if ($uid === null) { + $uid = $this->getSystemUid(); + } + + if ($uid === '') { + throw new DceSecurityException( + 'Unable to get a user identifier using the system DCE ' + . 'Security provider; please provide a custom identifier or ' + . 'use a different provider' + ); + } + + $uid = new IntegerObject($uid); + + return $uid; + } + + /** + * @throws DceSecurityException if unable to get a group identifier + * + * @inheritDoc + */ + public function getGid(): IntegerObject + { + /** @var int|float|string|IntegerObject|null $gid */ + static $gid = null; + + if ($gid instanceof IntegerObject) { + return $gid; + } + + if ($gid === null) { + $gid = $this->getSystemGid(); + } + + if ($gid === '') { + throw new DceSecurityException( + 'Unable to get a group identifier using the system DCE ' + . 'Security provider; please provide a custom identifier or ' + . 'use a different provider' + ); + } + + $gid = new IntegerObject($gid); + + return $gid; + } + + /** + * Returns the UID from the system + */ + private function getSystemUid(): string + { + if (!$this->hasShellExec()) { + return ''; + } + + return match ($this->getOs()) { + 'WIN' => $this->getWindowsUid(), + default => trim((string) shell_exec('id -u')), + }; + } + + /** + * Returns the GID from the system + */ + private function getSystemGid(): string + { + if (!$this->hasShellExec()) { + return ''; + } + + return match ($this->getOs()) { + 'WIN' => $this->getWindowsGid(), + default => trim((string) shell_exec('id -g')), + }; + } + + /** + * Returns true if shell_exec() is available for use + */ + private function hasShellExec(): bool + { + $disabledFunctions = strtolower((string) ini_get('disable_functions')); + + return !str_contains($disabledFunctions, 'shell_exec'); + } + + /** + * Returns the PHP_OS string + */ + private function getOs(): string + { + /** + * @psalm-suppress UnnecessaryVarAnnotation + * @var string $phpOs + */ + $phpOs = constant('PHP_OS'); + + return strtoupper(substr($phpOs, 0, 3)); + } + + /** + * Returns the user identifier for a user on a Windows system + * + * Windows does not have the same concept as an effective POSIX UID for the + * running script. Instead, each user is uniquely identified by an SID + * (security identifier). The SID includes three 32-bit unsigned integers + * that make up a unique domain identifier, followed by an RID (relative + * identifier) that we will use as the UID. The primary caveat is that this + * UID may not be unique to the system, since it is, instead, unique to the + * domain. + * + * @link https://www.lifewire.com/what-is-an-sid-number-2626005 What Is an SID Number? + * @link https://bit.ly/30vE7NM Well-known SID Structures + * @link https://bit.ly/2FWcYKJ Well-known security identifiers in Windows operating systems + * @link https://www.windows-commandline.com/get-sid-of-user/ Get SID of user + */ + private function getWindowsUid(): string + { + $response = shell_exec('whoami /user /fo csv /nh'); + + if ($response === null) { + return ''; + } + + $sid = str_getcsv(trim((string) $response))[1] ?? ''; + + if (($lastHyphen = strrpos($sid, '-')) === false) { + return ''; + } + + return trim(substr($sid, $lastHyphen + 1)); + } + + /** + * Returns a group identifier for a user on a Windows system + * + * Since Windows does not have the same concept as an effective POSIX GID + * for the running script, we will get the local group memberships for the + * user running the script. Then, we will get the SID (security identifier) + * for the first group that appears in that list. Finally, we will return + * the RID (relative identifier) for the group and use that as the GID. + * + * @link https://www.windows-commandline.com/list-of-user-groups-command-line/ List of user groups command line + */ + private function getWindowsGid(): string + { + $response = shell_exec('net user %username% | findstr /b /i "Local Group Memberships"'); + + if ($response === null) { + return ''; + } + + /** @var string[] $userGroups */ + $userGroups = preg_split('/\s{2,}/', (string) $response, -1, PREG_SPLIT_NO_EMPTY); + + $firstGroup = trim($userGroups[1] ?? '', "* \t\n\r\0\x0B"); + + if ($firstGroup === '') { + return ''; + } + + $response = shell_exec('wmic group get name,sid | findstr /b /i ' . escapeshellarg($firstGroup)); + + if ($response === null) { + return ''; + } + + /** @var string[] $userGroup */ + $userGroup = preg_split('/\s{2,}/', (string) $response, -1, PREG_SPLIT_NO_EMPTY); + + $sid = $userGroup[1] ?? ''; + + if (($lastHyphen = strrpos($sid, '-')) === false) { + return ''; + } + + return trim(substr($sid, $lastHyphen + 1)); + } +} diff --git a/vendor/ramsey/uuid/src/Provider/DceSecurityProviderInterface.php b/vendor/ramsey/uuid/src/Provider/DceSecurityProviderInterface.php new file mode 100644 index 000000000..8325da696 --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/DceSecurityProviderInterface.php @@ -0,0 +1,41 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider; + +use Ramsey\Uuid\Rfc4122\UuidV2; +use Ramsey\Uuid\Type\Integer as IntegerObject; + +/** + * A DCE provider provides access to local domain identifiers for version 2, + * DCE Security, UUIDs + * + * @see UuidV2 + */ +interface DceSecurityProviderInterface +{ + /** + * Returns a user identifier for the system + * + * @link https://en.wikipedia.org/wiki/User_identifier User identifier + */ + public function getUid(): IntegerObject; + + /** + * Returns a group identifier for the system + * + * @link https://en.wikipedia.org/wiki/Group_identifier Group identifier + */ + public function getGid(): IntegerObject; +} diff --git a/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php b/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php new file mode 100644 index 000000000..d2eb20b70 --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php @@ -0,0 +1,54 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Node; + +use Ramsey\Uuid\Exception\NodeException; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; + +/** + * FallbackNodeProvider retrieves the system node ID by stepping through a list + * of providers until a node ID can be obtained + */ +class FallbackNodeProvider implements NodeProviderInterface +{ + /** + * @param iterable $providers Array of node providers + */ + public function __construct(private iterable $providers) + { + } + + public function getNode(): Hexadecimal + { + $lastProviderException = null; + + foreach ($this->providers as $provider) { + try { + return $provider->getNode(); + } catch (NodeException $exception) { + $lastProviderException = $exception; + + continue; + } + } + + throw new NodeException( + 'Unable to find a suitable node provider', + 0, + $lastProviderException + ); + } +} diff --git a/vendor/ramsey/uuid/src/Provider/Node/NodeProviderCollection.php b/vendor/ramsey/uuid/src/Provider/Node/NodeProviderCollection.php new file mode 100644 index 000000000..1b979faee --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Node/NodeProviderCollection.php @@ -0,0 +1,66 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Node; + +use Ramsey\Collection\AbstractCollection; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; + +/** + * A collection of NodeProviderInterface objects + * + * @deprecated this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from + * a pre-`phpstan/phpstan` and pre-`vimeo/psalm` ecosystem, in which type safety had to be mostly enforced + * at runtime: that is no longer necessary, now that you can safely verify your code to be correct, and use + * more generic types like `iterable` instead. + * + * @extends AbstractCollection + */ +class NodeProviderCollection extends AbstractCollection +{ + public function getType(): string + { + return NodeProviderInterface::class; + } + + /** + * Re-constructs the object from its serialized form + * + * @param string $serialized The serialized PHP string to unserialize into + * a UuidInterface instance + * + * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint + * @psalm-suppress RedundantConditionGivenDocblockType + */ + public function unserialize($serialized): void + { + /** @var array $data */ + $data = unserialize($serialized, [ + 'allowed_classes' => [ + Hexadecimal::class, + RandomNodeProvider::class, + StaticNodeProvider::class, + SystemNodeProvider::class, + ], + ]); + + $this->data = array_filter( + $data, + function ($unserialized): bool { + return $unserialized instanceof NodeProviderInterface; + } + ); + } +} diff --git a/vendor/ramsey/uuid/src/Provider/Node/RandomNodeProvider.php b/vendor/ramsey/uuid/src/Provider/Node/RandomNodeProvider.php new file mode 100644 index 000000000..76141361b --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Node/RandomNodeProvider.php @@ -0,0 +1,69 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Node; + +use Ramsey\Uuid\Exception\RandomSourceException; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Throwable; + +use function bin2hex; +use function dechex; +use function hex2bin; +use function hexdec; +use function str_pad; +use function substr; + +use const STR_PAD_LEFT; + +/** + * RandomNodeProvider generates a random node ID + * + * @link http://tools.ietf.org/html/rfc4122#section-4.5 RFC 4122, § 4.5: Node IDs that Do Not Identify the Host + */ +class RandomNodeProvider implements NodeProviderInterface +{ + public function getNode(): Hexadecimal + { + try { + $nodeBytes = random_bytes(6); + } catch (Throwable $exception) { + throw new RandomSourceException( + $exception->getMessage(), + (int) $exception->getCode(), + $exception + ); + } + + // Split the node bytes for math on 32-bit systems. + $nodeMsb = substr($nodeBytes, 0, 3); + $nodeLsb = substr($nodeBytes, 3); + + // Set the multicast bit; see RFC 4122, section 4.5. + $nodeMsb = hex2bin( + str_pad( + dechex(hexdec(bin2hex($nodeMsb)) | 0x010000), + 6, + '0', + STR_PAD_LEFT + ) + ); + + // Recombine the node bytes. + $node = $nodeMsb . $nodeLsb; + + return new Hexadecimal(str_pad(bin2hex($node), 12, '0', STR_PAD_LEFT)); + } +} diff --git a/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php b/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php new file mode 100644 index 000000000..0f7536a82 --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php @@ -0,0 +1,73 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Node; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; + +use function dechex; +use function hexdec; +use function str_pad; +use function substr; + +use const STR_PAD_LEFT; + +/** + * StaticNodeProvider provides a static node value with the multicast bit set + * + * @link http://tools.ietf.org/html/rfc4122#section-4.5 RFC 4122, § 4.5: Node IDs that Do Not Identify the Host + */ +class StaticNodeProvider implements NodeProviderInterface +{ + private Hexadecimal $node; + + /** + * @param Hexadecimal $node The static node value to use + */ + public function __construct(Hexadecimal $node) + { + if (strlen($node->toString()) > 12) { + throw new InvalidArgumentException( + 'Static node value cannot be greater than 12 hexadecimal characters' + ); + } + + $this->node = $this->setMulticastBit($node); + } + + public function getNode(): Hexadecimal + { + return $this->node; + } + + /** + * Set the multicast bit for the static node value + */ + private function setMulticastBit(Hexadecimal $node): Hexadecimal + { + $nodeHex = str_pad($node->toString(), 12, '0', STR_PAD_LEFT); + $firstOctet = substr($nodeHex, 0, 2); + + $firstOctet = str_pad( + dechex(hexdec($firstOctet) | 0x01), + 2, + '0', + STR_PAD_LEFT + ); + + return new Hexadecimal($firstOctet . substr($nodeHex, 2)); + } +} diff --git a/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php b/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php new file mode 100644 index 000000000..a03c93b4d --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php @@ -0,0 +1,193 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Node; + +use Ramsey\Uuid\Exception\NodeException; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Type\Hexadecimal; + +use function array_filter; +use function array_map; +use function array_walk; +use function count; +use function ob_get_clean; +use function ob_start; +use function preg_match; +use function preg_match_all; +use function reset; +use function str_contains; +use function str_replace; +use function strtolower; +use function strtoupper; +use function substr; + +use const GLOB_NOSORT; +use const PREG_PATTERN_ORDER; + +/** + * SystemNodeProvider retrieves the system node ID, if possible + * + * The system node ID, or host ID, is often the same as the MAC address for a + * network interface on the host. + */ +class SystemNodeProvider implements NodeProviderInterface +{ + /** + * Pattern to match nodes in ifconfig and ipconfig output. + */ + private const IFCONFIG_PATTERN = '/[^:]([0-9a-f]{2}([:-])[0-9a-f]{2}(\2[0-9a-f]{2}){4})[^:]/i'; + + /** + * Pattern to match nodes in sysfs stream output. + */ + private const SYSFS_PATTERN = '/^([0-9a-f]{2}:){5}[0-9a-f]{2}$/i'; + + public function getNode(): Hexadecimal + { + $node = $this->getNodeFromSystem(); + + if ($node === '') { + throw new NodeException( + 'Unable to fetch a node for this system' + ); + } + + return new Hexadecimal($node); + } + + /** + * Returns the system node, if it can find it + */ + protected function getNodeFromSystem(): string + { + static $node = null; + + if ($node !== null) { + return (string) $node; + } + + // First, try a Linux-specific approach. + $node = $this->getSysfs(); + + if ($node === '') { + // Search ifconfig output for MAC addresses & return the first one. + $node = $this->getIfconfig(); + } + + $node = str_replace([':', '-'], '', $node); + + return $node; + } + + /** + * Returns the network interface configuration for the system + * + * @codeCoverageIgnore + */ + protected function getIfconfig(): string + { + $disabledFunctions = strtolower((string) ini_get('disable_functions')); + + if (str_contains($disabledFunctions, 'passthru')) { + return ''; + } + + /** + * @psalm-suppress UnnecessaryVarAnnotation + * @var string $phpOs + */ + $phpOs = constant('PHP_OS'); + + ob_start(); + switch (strtoupper(substr($phpOs, 0, 3))) { + case 'WIN': + passthru('ipconfig /all 2>&1'); + + break; + case 'DAR': + passthru('ifconfig 2>&1'); + + break; + case 'FRE': + passthru('netstat -i -f link 2>&1'); + + break; + case 'LIN': + default: + passthru('netstat -ie 2>&1'); + + break; + } + + $ifconfig = (string) ob_get_clean(); + + if (preg_match_all(self::IFCONFIG_PATTERN, $ifconfig, $matches, PREG_PATTERN_ORDER)) { + foreach ($matches[1] as $iface) { + if ($iface !== '00:00:00:00:00:00' && $iface !== '00-00-00-00-00-00') { + return $iface; + } + } + } + + return ''; + } + + /** + * Returns MAC address from the first system interface via the sysfs interface + */ + protected function getSysfs(): string + { + $mac = ''; + + /** + * @psalm-suppress UnnecessaryVarAnnotation + * @var string $phpOs + */ + $phpOs = constant('PHP_OS'); + + if (strtoupper($phpOs) === 'LINUX') { + $addressPaths = glob('/sys/class/net/*/address', GLOB_NOSORT); + + if ($addressPaths === false || count($addressPaths) === 0) { + return ''; + } + + /** @var array $macs */ + $macs = []; + + array_walk($addressPaths, function (string $addressPath) use (&$macs): void { + if (is_readable($addressPath)) { + $macs[] = file_get_contents($addressPath); + } + }); + + /** @var callable $trim */ + $trim = 'trim'; + + $macs = array_map($trim, $macs); + + // Remove invalid entries. + $macs = array_filter($macs, function (string $address) { + return $address !== '00:00:00:00:00:00' + && preg_match(self::SYSFS_PATTERN, $address); + }); + + /** @var string|bool $mac */ + $mac = reset($macs); + } + + return (string) $mac; + } +} diff --git a/vendor/ramsey/uuid/src/Provider/NodeProviderInterface.php b/vendor/ramsey/uuid/src/Provider/NodeProviderInterface.php new file mode 100644 index 000000000..d536b4558 --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/NodeProviderInterface.php @@ -0,0 +1,30 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider; + +use Ramsey\Uuid\Type\Hexadecimal; + +/** + * A node provider retrieves or generates a node ID + */ +interface NodeProviderInterface +{ + /** + * Returns a node ID + * + * @return Hexadecimal The node ID as a hexadecimal string + */ + public function getNode(): Hexadecimal; +} diff --git a/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php b/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php new file mode 100644 index 000000000..526c8ff46 --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php @@ -0,0 +1,57 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Time; + +use Ramsey\Uuid\Provider\TimeProviderInterface; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +/** + * FixedTimeProvider uses a known time to provide the time + * + * This provider allows the use of a previously-generated, or known, time + * when generating time-based UUIDs. + */ +class FixedTimeProvider implements TimeProviderInterface +{ + public function __construct(private Time $time) + { + } + + /** + * Sets the `usec` component of the time + * + * @param int|string|IntegerObject $value The `usec` value to set + */ + public function setUsec($value): void + { + $this->time = new Time($this->time->getSeconds(), $value); + } + + /** + * Sets the `sec` component of the time + * + * @param int|string|IntegerObject $value The `sec` value to set + */ + public function setSec($value): void + { + $this->time = new Time($value, $this->time->getMicroseconds()); + } + + public function getTime(): Time + { + return $this->time; + } +} diff --git a/vendor/ramsey/uuid/src/Provider/Time/SystemTimeProvider.php b/vendor/ramsey/uuid/src/Provider/Time/SystemTimeProvider.php new file mode 100644 index 000000000..3a1e09cb4 --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/Time/SystemTimeProvider.php @@ -0,0 +1,33 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider\Time; + +use Ramsey\Uuid\Provider\TimeProviderInterface; +use Ramsey\Uuid\Type\Time; + +use function gettimeofday; + +/** + * SystemTimeProvider retrieves the current time using built-in PHP functions + */ +class SystemTimeProvider implements TimeProviderInterface +{ + public function getTime(): Time + { + $time = gettimeofday(); + + return new Time($time['sec'], $time['usec']); + } +} diff --git a/vendor/ramsey/uuid/src/Provider/TimeProviderInterface.php b/vendor/ramsey/uuid/src/Provider/TimeProviderInterface.php new file mode 100644 index 000000000..43588e0bd --- /dev/null +++ b/vendor/ramsey/uuid/src/Provider/TimeProviderInterface.php @@ -0,0 +1,28 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Provider; + +use Ramsey\Uuid\Type\Time; + +/** + * A time provider retrieves the current time + */ +interface TimeProviderInterface +{ + /** + * Returns a time object + */ + public function getTime(): Time; +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/Fields.php b/vendor/ramsey/uuid/src/Rfc4122/Fields.php new file mode 100644 index 000000000..9acf810c2 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/Fields.php @@ -0,0 +1,195 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Fields\SerializableFieldsTrait; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Uuid; + +use function bin2hex; +use function dechex; +use function hexdec; +use function sprintf; +use function str_pad; +use function strlen; +use function substr; +use function unpack; + +use const STR_PAD_LEFT; + +/** + * RFC 4122 variant UUIDs are comprised of a set of named fields + * + * Internally, this class represents the fields together as a 16-byte binary + * string. + * + * @psalm-immutable + */ +final class Fields implements FieldsInterface +{ + use MaxTrait; + use NilTrait; + use SerializableFieldsTrait; + use VariantTrait; + use VersionTrait; + + /** + * @param string $bytes A 16-byte binary string representation of a UUID + * + * @throws InvalidArgumentException if the byte string is not exactly 16 bytes + * @throws InvalidArgumentException if the byte string does not represent an RFC 4122 UUID + * @throws InvalidArgumentException if the byte string does not contain a valid version + */ + public function __construct(private string $bytes) + { + if (strlen($this->bytes) !== 16) { + throw new InvalidArgumentException( + 'The byte string must be 16 bytes long; ' + . 'received ' . strlen($this->bytes) . ' bytes' + ); + } + + if (!$this->isCorrectVariant()) { + throw new InvalidArgumentException( + 'The byte string received does not conform to the RFC 4122 variant' + ); + } + + if (!$this->isCorrectVersion()) { + throw new InvalidArgumentException( + 'The byte string received does not contain a valid RFC 4122 version' + ); + } + } + + public function getBytes(): string + { + return $this->bytes; + } + + public function getClockSeq(): Hexadecimal + { + if ($this->isMax()) { + $clockSeq = 0xffff; + } elseif ($this->isNil()) { + $clockSeq = 0x0000; + } else { + $clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff; + } + + return new Hexadecimal(str_pad(dechex($clockSeq), 4, '0', STR_PAD_LEFT)); + } + + public function getClockSeqHiAndReserved(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 8, 1))); + } + + public function getClockSeqLow(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 9, 1))); + } + + public function getNode(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 10))); + } + + public function getTimeHiAndVersion(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 6, 2))); + } + + public function getTimeLow(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 0, 4))); + } + + public function getTimeMid(): Hexadecimal + { + return new Hexadecimal(bin2hex(substr($this->bytes, 4, 2))); + } + + /** + * Returns the full 60-bit timestamp, without the version + * + * For version 2 UUIDs, the time_low field is the local identifier and + * should not be returned as part of the time. For this reason, we set the + * bottom 32 bits of the timestamp to 0's. As a result, there is some loss + * of fidelity of the timestamp, for version 2 UUIDs. The timestamp can be + * off by a range of 0 to 429.4967295 seconds (or 7 minutes, 9 seconds, and + * 496730 microseconds). + * + * For version 6 UUIDs, the timestamp order is reversed from the typical RFC + * 4122 order (the time bits are in the correct bit order, so that it is + * monotonically increasing). In returning the timestamp value, we put the + * bits in the order: time_low + time_mid + time_hi. + */ + public function getTimestamp(): Hexadecimal + { + $timestamp = match ($this->getVersion()) { + Uuid::UUID_TYPE_DCE_SECURITY => sprintf( + '%03x%04s%08s', + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, + $this->getTimeMid()->toString(), + '' + ), + Uuid::UUID_TYPE_REORDERED_TIME => sprintf( + '%08s%04s%03x', + $this->getTimeLow()->toString(), + $this->getTimeMid()->toString(), + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff + ), + // The Unix timestamp in version 7 UUIDs is a 48-bit number, + // but for consistency, we will return a 60-bit number, padded + // to the left with zeros. + Uuid::UUID_TYPE_UNIX_TIME => sprintf( + '%011s%04s', + $this->getTimeLow()->toString(), + $this->getTimeMid()->toString(), + ), + default => sprintf( + '%03x%04s%08s', + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, + $this->getTimeMid()->toString(), + $this->getTimeLow()->toString() + ), + }; + + return new Hexadecimal($timestamp); + } + + public function getVersion(): ?int + { + if ($this->isNil() || $this->isMax()) { + return null; + } + + /** @var int[] $parts */ + $parts = unpack('n*', $this->bytes); + + return $parts[4] >> 12; + } + + private function isCorrectVariant(): bool + { + if ($this->isNil() || $this->isMax()) { + return true; + } + + return $this->getVariant() === Uuid::RFC_4122; + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php b/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php new file mode 100644 index 000000000..2241cf574 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php @@ -0,0 +1,128 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Fields\FieldsInterface as BaseFieldsInterface; +use Ramsey\Uuid\Type\Hexadecimal; + +/** + * RFC 4122 defines fields for a specific variant of UUID + * + * The fields of an RFC 4122 variant UUID are: + * + * * **time_low**: The low field of the timestamp, an unsigned 32-bit integer + * * **time_mid**: The middle field of the timestamp, an unsigned 16-bit integer + * * **time_hi_and_version**: The high field of the timestamp multiplexed with + * the version number, an unsigned 16-bit integer + * * **clock_seq_hi_and_reserved**: The high field of the clock sequence + * multiplexed with the variant, an unsigned 8-bit integer + * * **clock_seq_low**: The low field of the clock sequence, an unsigned + * 8-bit integer + * * **node**: The spatially unique node identifier, an unsigned 48-bit + * integer + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1 RFC 4122, § 4.1: Format + * + * @psalm-immutable + */ +interface FieldsInterface extends BaseFieldsInterface +{ + /** + * Returns the full 16-bit clock sequence, with the variant bits (two most + * significant bits) masked out + */ + public function getClockSeq(): Hexadecimal; + + /** + * Returns the high field of the clock sequence multiplexed with the variant + */ + public function getClockSeqHiAndReserved(): Hexadecimal; + + /** + * Returns the low field of the clock sequence + */ + public function getClockSeqLow(): Hexadecimal; + + /** + * Returns the node field + */ + public function getNode(): Hexadecimal; + + /** + * Returns the high field of the timestamp multiplexed with the version + */ + public function getTimeHiAndVersion(): Hexadecimal; + + /** + * Returns the low field of the timestamp + */ + public function getTimeLow(): Hexadecimal; + + /** + * Returns the middle field of the timestamp + */ + public function getTimeMid(): Hexadecimal; + + /** + * Returns the full 60-bit timestamp, without the version + */ + public function getTimestamp(): Hexadecimal; + + /** + * Returns the variant + * + * The variant number describes the layout of the UUID. The variant + * number has the following meaning: + * + * - 0 - Reserved for NCS backward compatibility + * - 2 - The RFC 4122 variant + * - 6 - Reserved, Microsoft Corporation backward compatibility + * - 7 - Reserved for future definition + * + * For RFC 4122 variant UUIDs, this value should always be the integer `2`. + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + */ + public function getVariant(): int; + + /** + * Returns the version + * + * The version number describes how the UUID was generated and has the + * following meaning: + * + * 1. Gregorian time UUID + * 2. DCE security UUID + * 3. Name-based UUID hashed with MD5 + * 4. Randomly generated UUID + * 5. Name-based UUID hashed with SHA-1 + * 6. Reordered time UUID + * 7. Unix Epoch time UUID + * + * This returns `null` if the UUID is not an RFC 4122 variant, since version + * is only meaningful for this variant. + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + */ + public function getVersion(): ?int; + + /** + * Returns true if these fields represent a nil UUID + * + * The nil UUID is special form of UUID that is specified to have all 128 + * bits set to zero. + */ + public function isNil(): bool; +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php b/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php new file mode 100644 index 000000000..dedb72798 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php @@ -0,0 +1,41 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +/** + * Provides common functionality for max UUIDs + * + * The max UUID is special form of UUID that is specified to have all 128 bits + * set to one. It is the inverse of the nil UUID. + * + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.10 Max UUID + * + * @psalm-immutable + */ +trait MaxTrait +{ + /** + * Returns the bytes that comprise the fields + */ + abstract public function getBytes(): string; + + /** + * Returns true if the byte string represents a max UUID + */ + public function isMax(): bool + { + return $this->getBytes() === "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"; + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php b/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php new file mode 100644 index 000000000..e5ffa72c6 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php @@ -0,0 +1,27 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Uuid; + +/** + * The max UUID is special form of UUID that is specified to have all 128 bits + * set to one + * + * @psalm-immutable + */ +final class MaxUuid extends Uuid implements UuidInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/NilTrait.php b/vendor/ramsey/uuid/src/Rfc4122/NilTrait.php new file mode 100644 index 000000000..9a9774d89 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/NilTrait.php @@ -0,0 +1,41 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +/** + * Provides common functionality for nil UUIDs + * + * The nil UUID is special form of UUID that is specified to have all 128 bits + * set to zero. + * + * @link https://tools.ietf.org/html/rfc4122#section-4.1.7 RFC 4122, § 4.1.7: Nil UUID + * + * @psalm-immutable + */ +trait NilTrait +{ + /** + * Returns the bytes that comprise the fields + */ + abstract public function getBytes(): string; + + /** + * Returns true if the byte string represents a nil UUID + */ + public function isNil(): bool + { + return $this->getBytes() === "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/NilUuid.php b/vendor/ramsey/uuid/src/Rfc4122/NilUuid.php new file mode 100644 index 000000000..c49b9945d --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/NilUuid.php @@ -0,0 +1,27 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Uuid; + +/** + * The nil UUID is special form of UUID that is specified to have all 128 bits + * set to zero + * + * @psalm-immutable + */ +final class NilUuid extends Uuid implements UuidInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php b/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php new file mode 100644 index 000000000..5d939fac6 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php @@ -0,0 +1,55 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use DateTimeImmutable; +use DateTimeInterface; +use Ramsey\Uuid\Exception\DateTimeException; +use Throwable; + +use function str_pad; + +use const STR_PAD_LEFT; + +/** + * Provides common functionality for getting the time from a time-based UUID + * + * @psalm-immutable + */ +trait TimeTrait +{ + /** + * Returns a DateTimeInterface object representing the timestamp associated + * with the UUID + * + * @return DateTimeImmutable A PHP DateTimeImmutable instance representing + * the timestamp of a time-based UUID + */ + public function getDateTime(): DateTimeInterface + { + $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); + + try { + return new DateTimeImmutable( + '@' + . $time->getSeconds()->toString() + . '.' + . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) + ); + } catch (Throwable $e) { + throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); + } + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php b/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php new file mode 100644 index 000000000..2c2677db7 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php @@ -0,0 +1,118 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\Time\UnixTimeConverter; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\UnableToBuildUuidException; +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Ramsey\Uuid\Math\BrickMathCalculator; +use Ramsey\Uuid\Rfc4122\UuidInterface as Rfc4122UuidInterface; +use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; +use Throwable; + +/** + * UuidBuilder builds instances of RFC 4122 UUIDs + * + * @psalm-immutable + */ +class UuidBuilder implements UuidBuilderInterface +{ + private TimeConverterInterface $unixTimeConverter; + + /** + * Constructs the DefaultUuidBuilder + * + * @param NumberConverterInterface $numberConverter The number converter to + * use when constructing the Uuid + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting Gregorian time extracted from version 1, 2, and 6 + * UUIDs to Unix timestamps + * @param TimeConverterInterface|null $unixTimeConverter The time converter + * to use for converter Unix Epoch time extracted from version 7 UUIDs + * to Unix timestamps + */ + public function __construct( + private NumberConverterInterface $numberConverter, + private TimeConverterInterface $timeConverter, + ?TimeConverterInterface $unixTimeConverter = null + ) { + $this->unixTimeConverter = $unixTimeConverter ?? new UnixTimeConverter(new BrickMathCalculator()); + } + + /** + * Builds and returns a Uuid + * + * @param CodecInterface $codec The codec to use for building this Uuid instance + * @param string $bytes The byte string from which to construct a UUID + * + * @return Rfc4122UuidInterface UuidBuilder returns instances of Rfc4122UuidInterface + * + * @psalm-pure + */ + public function build(CodecInterface $codec, string $bytes): UuidInterface + { + try { + /** @var Fields $fields */ + $fields = $this->buildFields($bytes); + + if ($fields->isNil()) { + return new NilUuid($fields, $this->numberConverter, $codec, $this->timeConverter); + } + + if ($fields->isMax()) { + return new MaxUuid($fields, $this->numberConverter, $codec, $this->timeConverter); + } + + switch ($fields->getVersion()) { + case Uuid::UUID_TYPE_TIME: + return new UuidV1($fields, $this->numberConverter, $codec, $this->timeConverter); + case Uuid::UUID_TYPE_DCE_SECURITY: + return new UuidV2($fields, $this->numberConverter, $codec, $this->timeConverter); + case Uuid::UUID_TYPE_HASH_MD5: + return new UuidV3($fields, $this->numberConverter, $codec, $this->timeConverter); + case Uuid::UUID_TYPE_RANDOM: + return new UuidV4($fields, $this->numberConverter, $codec, $this->timeConverter); + case Uuid::UUID_TYPE_HASH_SHA1: + return new UuidV5($fields, $this->numberConverter, $codec, $this->timeConverter); + case Uuid::UUID_TYPE_REORDERED_TIME: + return new UuidV6($fields, $this->numberConverter, $codec, $this->timeConverter); + case Uuid::UUID_TYPE_UNIX_TIME: + return new UuidV7($fields, $this->numberConverter, $codec, $this->unixTimeConverter); + case Uuid::UUID_TYPE_CUSTOM: + return new UuidV8($fields, $this->numberConverter, $codec, $this->timeConverter); + } + + throw new UnsupportedOperationException( + 'The UUID version in the given fields is not supported ' + . 'by this UUID builder' + ); + } catch (Throwable $e) { + throw new UnableToBuildUuidException($e->getMessage(), (int) $e->getCode(), $e); + } + } + + /** + * Proxy method to allow injecting a mock, for testing + */ + protected function buildFields(string $bytes): FieldsInterface + { + return new Fields($bytes); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php b/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php new file mode 100644 index 000000000..e80f33bef --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php @@ -0,0 +1,29 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\UuidInterface as BaseUuidInterface; + +/** + * Also known as a Leach-Salz variant UUID, an RFC 4122 variant UUID is a + * universally unique identifier defined by RFC 4122 + * + * @link https://tools.ietf.org/html/rfc4122 RFC 4122 + * + * @psalm-immutable + */ +interface UuidInterface extends BaseUuidInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php new file mode 100644 index 000000000..515c038d9 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php @@ -0,0 +1,60 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; + +/** + * Gregorian time, or version 1, UUIDs include timestamp, clock sequence, and node + * values that are combined into a 128-bit unsigned integer + * + * @psalm-immutable + */ +final class UuidV1 extends Uuid implements UuidInterface +{ + use TimeTrait; + + /** + * Creates a version 1 (Gregorian time) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_TIME) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV1 must represent a ' + . 'version 1 (time-based) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php new file mode 100644 index 000000000..c8ccbe422 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php @@ -0,0 +1,115 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Uuid; + +use function hexdec; + +/** + * DCE Security version, or version 2, UUIDs include local domain identifier, + * local ID for the specified domain, and node values that are combined into a + * 128-bit unsigned integer + * + * It is important to note that a version 2 UUID suffers from some loss of + * fidelity of the timestamp, due to replacing the time_low field with the + * local identifier. When constructing the timestamp value for date + * purposes, we replace the local identifier bits with zeros. As a result, + * the timestamp can be off by a range of 0 to 429.4967295 seconds (or 7 + * minutes, 9 seconds, and 496730 microseconds). + * + * Astute observers might note this value directly corresponds to 2^32 - 1, + * or 0xffffffff. The local identifier is 32-bits, and we have set each of + * these bits to 0, so the maximum range of timestamp drift is 0x00000000 + * to 0xffffffff (counted in 100-nanosecond intervals). + * + * @link https://publications.opengroup.org/c311 DCE 1.1: Authentication and Security Services + * @link https://publications.opengroup.org/c706 DCE 1.1: Remote Procedure Call + * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap5.htm#tagcjh_08_02_01_01 DCE 1.1: Auth & Sec, §5.2.1.1 + * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1: Auth & Sec, §11.5.1.1 + * @link https://pubs.opengroup.org/onlinepubs/9629399/apdxa.htm DCE 1.1: RPC, Appendix A + * @link https://github.com/google/uuid Go package for UUIDs (includes DCE implementation) + * + * @psalm-immutable + */ +final class UuidV2 extends Uuid implements UuidInterface +{ + use TimeTrait; + + /** + * Creates a version 2 (DCE Security) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_DCE_SECURITY) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV2 must represent a ' + . 'version 2 (DCE Security) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } + + /** + * Returns the local domain used to create this version 2 UUID + */ + public function getLocalDomain(): int + { + /** @var Rfc4122FieldsInterface $fields */ + $fields = $this->getFields(); + + return (int) hexdec($fields->getClockSeqLow()->toString()); + } + + /** + * Returns the string name of the local domain + */ + public function getLocalDomainName(): string + { + return Uuid::DCE_DOMAIN_NAMES[$this->getLocalDomain()]; + } + + /** + * Returns the local identifier for the domain used to create this version 2 UUID + */ + public function getLocalIdentifier(): IntegerObject + { + /** @var Rfc4122FieldsInterface $fields */ + $fields = $this->getFields(); + + return new IntegerObject( + $this->numberConverter->fromHex($fields->getTimeLow()->toString()) + ); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV3.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV3.php new file mode 100644 index 000000000..deaa54eb0 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV3.php @@ -0,0 +1,58 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; + +/** + * Version 3 UUIDs are named-based, using combination of a namespace and name + * that are hashed into a 128-bit unsigned integer using MD5 + * + * @psalm-immutable + */ +final class UuidV3 extends Uuid implements UuidInterface +{ + /** + * Creates a version 3 (name-based, MD5-hashed) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_HASH_MD5) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV3 must represent a ' + . 'version 3 (name-based, MD5-hashed) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV4.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV4.php new file mode 100644 index 000000000..2e5724620 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV4.php @@ -0,0 +1,58 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; + +/** + * Random, or version 4, UUIDs are randomly or pseudo-randomly generated 128-bit + * integers + * + * @psalm-immutable + */ +final class UuidV4 extends Uuid implements UuidInterface +{ + /** + * Creates a version 4 (random) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_RANDOM) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV4 must represent a ' + . 'version 4 (random) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV5.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV5.php new file mode 100644 index 000000000..2ef6ab3f1 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV5.php @@ -0,0 +1,58 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; + +/** + * Version 5 UUIDs are named-based, using combination of a namespace and name + * that are hashed into a 128-bit unsigned integer using SHA1 + * + * @psalm-immutable + */ +final class UuidV5 extends Uuid implements UuidInterface +{ + /** + * Creates a version 5 (name-based, SHA1-hashed) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_HASH_SHA1) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV5 must represent a ' + . 'version 5 (named-based, SHA1-hashed) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php new file mode 100644 index 000000000..7e3743391 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php @@ -0,0 +1,29 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Nonstandard\UuidV6 as NonstandardUuidV6; + +/** + * Reordered time, or version 6, UUIDs include timestamp, clock sequence, and + * node values that are combined into a 128-bit unsigned integer + * + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.6 UUID Version 6 + * + * @psalm-immutable + */ +final class UuidV6 extends NonstandardUuidV6 implements UuidInterface +{ +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php new file mode 100644 index 000000000..5b524c486 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php @@ -0,0 +1,62 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; + +/** + * Unix Epoch time, or version 7, UUIDs include a timestamp in milliseconds + * since the Unix Epoch, along with random bytes + * + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.7 UUID Version 7 + * + * @psalm-immutable + */ +final class UuidV7 extends Uuid implements UuidInterface +{ + use TimeTrait; + + /** + * Creates a version 7 (Unix Epoch time) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_UNIX_TIME) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV7 must represent a ' + . 'version 7 (Unix Epoch time) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/UuidV8.php b/vendor/ramsey/uuid/src/Rfc4122/UuidV8.php new file mode 100644 index 000000000..78b0290c7 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/UuidV8.php @@ -0,0 +1,65 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; + +/** + * Version 8, Custom UUIDs provide an RFC 4122 compatible format for + * experimental or vendor-specific uses + * + * The only requirement for version 8 UUIDs is that the version and variant bits + * must be set. Otherwise, implementations are free to set the other bits + * according to their needs. As a result, the uniqueness of version 8 UUIDs is + * implementation-specific and should not be assumed. + * + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.8 UUID Version 8 + * + * @psalm-immutable + */ +final class UuidV8 extends Uuid implements UuidInterface +{ + /** + * Creates a version 8 (custom) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_CUSTOM) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV8 must represent a ' + . 'version 8 (custom) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/Validator.php b/vendor/ramsey/uuid/src/Rfc4122/Validator.php new file mode 100644 index 000000000..e82a11e6e --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/Validator.php @@ -0,0 +1,50 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\Validator\ValidatorInterface; + +use function preg_match; +use function str_replace; + +/** + * Rfc4122\Validator validates strings as UUIDs of the RFC 4122 variant + * + * @psalm-immutable + */ +final class Validator implements ValidatorInterface +{ + private const VALID_PATTERN = '\A[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-' + . '[1-8][0-9A-Fa-f]{3}-[ABab89][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}\z'; + + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function getPattern(): string + { + return self::VALID_PATTERN; + } + + public function validate(string $uuid): bool + { + $uuid = str_replace(['urn:', 'uuid:', 'URN:', 'UUID:', '{', '}'], '', $uuid); + $uuid = strtolower($uuid); + + return $uuid === Uuid::NIL || $uuid === Uuid::MAX || preg_match('/' . self::VALID_PATTERN . '/Dms', $uuid); + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php b/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php new file mode 100644 index 000000000..1041de51e --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php @@ -0,0 +1,94 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Exception\InvalidBytesException; +use Ramsey\Uuid\Uuid; + +use function decbin; +use function str_pad; +use function str_starts_with; +use function strlen; +use function substr; +use function unpack; + +use const STR_PAD_LEFT; + +/** + * Provides common functionality for handling the variant, as defined by RFC 4122 + * + * @psalm-immutable + */ +trait VariantTrait +{ + /** + * Returns the bytes that comprise the fields + */ + abstract public function getBytes(): string; + + /** + * Returns the variant identifier, according to RFC 4122, for the given bytes + * + * The following values may be returned: + * + * - `0` -- Reserved, NCS backward compatibility. + * - `2` -- The variant specified in RFC 4122. + * - `6` -- Reserved, Microsoft Corporation backward compatibility. + * - `7` -- Reserved for future definition. + * + * @link https://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + * + * @return int The variant identifier, according to RFC 4122 + */ + public function getVariant(): int + { + if (strlen($this->getBytes()) !== 16) { + throw new InvalidBytesException('Invalid number of bytes'); + } + + if ($this->isMax() || $this->isNil()) { + // RFC 4122 defines these special types of UUID, so we will consider + // them as belonging to the RFC 4122 variant. + return Uuid::RFC_4122; + } + + /** @var int[] $parts */ + $parts = unpack('n*', $this->getBytes()); + + // $parts[5] is a 16-bit, unsigned integer containing the variant bits + // of the UUID. We convert this integer into a string containing a + // binary representation, padded to 16 characters. We analyze the first + // three characters (three most-significant bits) to determine the + // variant. + $binary = str_pad( + decbin($parts[5]), + 16, + '0', + STR_PAD_LEFT + ); + + $msb = substr($binary, 0, 3); + + if ($msb === '111') { + return Uuid::RESERVED_FUTURE; + } elseif ($msb === '110') { + return Uuid::RESERVED_MICROSOFT; + } elseif (str_starts_with($msb, '10')) { + return Uuid::RFC_4122; + } + + return Uuid::RESERVED_NCS; + } +} diff --git a/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php b/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php new file mode 100644 index 000000000..0195e46c7 --- /dev/null +++ b/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php @@ -0,0 +1,60 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Uuid; + +/** + * Provides common functionality for handling the version, as defined by RFC 4122 + * + * @psalm-immutable + */ +trait VersionTrait +{ + /** + * Returns the version + */ + abstract public function getVersion(): ?int; + + /** + * Returns true if these fields represent a max UUID + */ + abstract public function isMax(): bool; + + /** + * Returns true if these fields represent a nil UUID + */ + abstract public function isNil(): bool; + + /** + * Returns true if the version matches one of those defined by RFC 4122 + * + * @return bool True if the UUID version is valid, false otherwise + */ + private function isCorrectVersion(): bool + { + if ($this->isNil() || $this->isMax()) { + return true; + } + + return match ($this->getVersion()) { + Uuid::UUID_TYPE_TIME, Uuid::UUID_TYPE_DCE_SECURITY, + Uuid::UUID_TYPE_HASH_MD5, Uuid::UUID_TYPE_RANDOM, + Uuid::UUID_TYPE_HASH_SHA1, Uuid::UUID_TYPE_REORDERED_TIME, + Uuid::UUID_TYPE_UNIX_TIME, Uuid::UUID_TYPE_CUSTOM => true, + default => false, + }; + } +} diff --git a/vendor/ramsey/uuid/src/Type/Decimal.php b/vendor/ramsey/uuid/src/Type/Decimal.php new file mode 100644 index 000000000..acc5e754b --- /dev/null +++ b/vendor/ramsey/uuid/src/Type/Decimal.php @@ -0,0 +1,129 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Type; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use ValueError; + +use function is_numeric; +use function sprintf; +use function str_starts_with; + +/** + * A value object representing a decimal + * + * This class exists for type-safety purposes, to ensure that decimals + * returned from ramsey/uuid methods as strings are truly decimals and not some + * other kind of string. + * + * To support values as true decimals and not as floats or doubles, we store the + * decimals as strings. + * + * @psalm-immutable + */ +final class Decimal implements NumberInterface +{ + private string $value; + private bool $isNegative = false; + + public function __construct(float | int | string | self $value) + { + $value = (string) $value; + + if (!is_numeric($value)) { + throw new InvalidArgumentException( + 'Value must be a signed decimal or a string containing only ' + . 'digits 0-9 and, optionally, a decimal point or sign (+ or -)' + ); + } + + // Remove the leading +-symbol. + if (str_starts_with($value, '+')) { + $value = substr($value, 1); + } + + // For cases like `-0` or `-0.0000`, convert the value to `0`. + if (abs((float) $value) === 0.0) { + $value = '0'; + } + + if (str_starts_with($value, '-')) { + $this->isNegative = true; + } + + $this->value = $value; + } + + public function isNegative(): bool + { + return $this->isNegative; + } + + public function toString(): string + { + return $this->value; + } + + public function __toString(): string + { + return $this->toString(); + } + + public function jsonSerialize(): string + { + return $this->toString(); + } + + public function serialize(): string + { + return $this->toString(); + } + + /** + * @return array{string: string} + */ + public function __serialize(): array + { + return ['string' => $this->toString()]; + } + + /** + * Constructs the object from a serialized string representation + * + * @param string $data The serialized string representation of the object + * + * @psalm-suppress UnusedMethodCall + */ + public function unserialize(string $data): void + { + $this->__construct($data); + } + + /** + * @param array{string?: string} $data + * + * @psalm-suppress UnusedMethodCall + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['string'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->unserialize($data['string']); + } +} diff --git a/vendor/ramsey/uuid/src/Type/Hexadecimal.php b/vendor/ramsey/uuid/src/Type/Hexadecimal.php new file mode 100644 index 000000000..bf71ec4b1 --- /dev/null +++ b/vendor/ramsey/uuid/src/Type/Hexadecimal.php @@ -0,0 +1,115 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Type; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use ValueError; + +use function preg_match; +use function sprintf; +use function substr; + +/** + * A value object representing a hexadecimal number + * + * This class exists for type-safety purposes, to ensure that hexadecimal numbers + * returned from ramsey/uuid methods as strings are truly hexadecimal and not some + * other kind of string. + * + * @psalm-immutable + */ +final class Hexadecimal implements TypeInterface +{ + private string $value; + + /** + * @param self|string $value The hexadecimal value to store + */ + public function __construct(self | string $value) + { + $this->value = $value instanceof self ? (string) $value : $this->prepareValue($value); + } + + public function toString(): string + { + return $this->value; + } + + public function __toString(): string + { + return $this->toString(); + } + + public function jsonSerialize(): string + { + return $this->toString(); + } + + public function serialize(): string + { + return $this->toString(); + } + + /** + * @return array{string: string} + */ + public function __serialize(): array + { + return ['string' => $this->toString()]; + } + + /** + * Constructs the object from a serialized string representation + * + * @param string $data The serialized string representation of the object + * + * @psalm-suppress UnusedMethodCall + */ + public function unserialize(string $data): void + { + $this->__construct($data); + } + + /** + * @param array{string?: string} $data + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['string'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->unserialize($data['string']); + } + + private function prepareValue(string $value): string + { + $value = strtolower($value); + + if (str_starts_with($value, '0x')) { + $value = substr($value, 2); + } + + if (!preg_match('/^[A-Fa-f0-9]+$/', $value)) { + throw new InvalidArgumentException( + 'Value must be a hexadecimal number' + ); + } + + return $value; + } +} diff --git a/vendor/ramsey/uuid/src/Type/Integer.php b/vendor/ramsey/uuid/src/Type/Integer.php new file mode 100644 index 000000000..50dac9934 --- /dev/null +++ b/vendor/ramsey/uuid/src/Type/Integer.php @@ -0,0 +1,158 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Type; + +use Ramsey\Uuid\Exception\InvalidArgumentException; +use ValueError; + +use function assert; +use function is_numeric; +use function preg_match; +use function sprintf; +use function substr; + +/** + * A value object representing an integer + * + * This class exists for type-safety purposes, to ensure that integers + * returned from ramsey/uuid methods as strings are truly integers and not some + * other kind of string. + * + * To support large integers beyond PHP_INT_MAX and PHP_INT_MIN on both 64-bit + * and 32-bit systems, we store the integers as strings. + * + * @psalm-immutable + */ +final class Integer implements NumberInterface +{ + /** + * @psalm-var numeric-string + */ + private string $value; + + private bool $isNegative = false; + + public function __construct(float | int | string | self $value) + { + $this->value = $value instanceof self ? (string) $value : $this->prepareValue($value); + } + + public function isNegative(): bool + { + return $this->isNegative; + } + + /** + * @psalm-return numeric-string + */ + public function toString(): string + { + return $this->value; + } + + /** + * @psalm-return numeric-string + */ + public function __toString(): string + { + return $this->toString(); + } + + public function jsonSerialize(): string + { + return $this->toString(); + } + + public function serialize(): string + { + return $this->toString(); + } + + /** + * @return array{string: string} + */ + public function __serialize(): array + { + return ['string' => $this->toString()]; + } + + /** + * Constructs the object from a serialized string representation + * + * @param string $data The serialized string representation of the object + * + * @psalm-suppress UnusedMethodCall + */ + public function unserialize(string $data): void + { + $this->__construct($data); + } + + /** + * @param array{string?: string} $data + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['string'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->unserialize($data['string']); + } + + /** + * @return numeric-string + */ + private function prepareValue(float | int | string $value): string + { + $value = (string) $value; + $sign = '+'; + + // If the value contains a sign, remove it for digit pattern check. + if (str_starts_with($value, '-') || str_starts_with($value, '+')) { + $sign = substr($value, 0, 1); + $value = substr($value, 1); + } + + if (!preg_match('/^\d+$/', $value)) { + throw new InvalidArgumentException( + 'Value must be a signed integer or a string containing only ' + . 'digits 0-9 and, optionally, a sign (+ or -)' + ); + } + + // Trim any leading zeros. + $value = ltrim($value, '0'); + + // Set to zero if the string is empty after trimming zeros. + if ($value === '') { + $value = '0'; + } + + // Add the negative sign back to the value. + if ($sign === '-' && $value !== '0') { + $value = $sign . $value; + + /** @psalm-suppress InaccessibleProperty */ + $this->isNegative = true; + } + + assert(is_numeric($value)); + + return $value; + } +} diff --git a/vendor/ramsey/uuid/src/Type/NumberInterface.php b/vendor/ramsey/uuid/src/Type/NumberInterface.php new file mode 100644 index 000000000..bf4ae9db8 --- /dev/null +++ b/vendor/ramsey/uuid/src/Type/NumberInterface.php @@ -0,0 +1,28 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Type; + +/** + * NumberInterface ensures consistency in numeric values returned by ramsey/uuid + * + * @psalm-immutable + */ +interface NumberInterface extends TypeInterface +{ + /** + * Returns true if this number is less than zero + */ + public function isNegative(): bool; +} diff --git a/vendor/ramsey/uuid/src/Type/Time.php b/vendor/ramsey/uuid/src/Type/Time.php new file mode 100644 index 000000000..0cedb4476 --- /dev/null +++ b/vendor/ramsey/uuid/src/Type/Time.php @@ -0,0 +1,128 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Type; + +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use ValueError; + +use function json_decode; +use function json_encode; +use function sprintf; + +/** + * A value object representing a timestamp + * + * This class exists for type-safety purposes, to ensure that timestamps used + * by ramsey/uuid are truly timestamp integers and not some other kind of string + * or integer. + * + * @psalm-immutable + */ +final class Time implements TypeInterface +{ + private IntegerObject $seconds; + private IntegerObject $microseconds; + + public function __construct( + float | int | string | IntegerObject $seconds, + float | int | string | IntegerObject $microseconds = 0, + ) { + $this->seconds = new IntegerObject($seconds); + $this->microseconds = new IntegerObject($microseconds); + } + + public function getSeconds(): IntegerObject + { + return $this->seconds; + } + + public function getMicroseconds(): IntegerObject + { + return $this->microseconds; + } + + public function toString(): string + { + return $this->seconds->toString() . '.' . sprintf('%06s', $this->microseconds->toString()); + } + + public function __toString(): string + { + return $this->toString(); + } + + /** + * @return string[] + */ + public function jsonSerialize(): array + { + return [ + 'seconds' => $this->getSeconds()->toString(), + 'microseconds' => $this->getMicroseconds()->toString(), + ]; + } + + public function serialize(): string + { + return (string) json_encode($this); + } + + /** + * @return array{seconds: string, microseconds: string} + */ + public function __serialize(): array + { + return [ + 'seconds' => $this->getSeconds()->toString(), + 'microseconds' => $this->getMicroseconds()->toString(), + ]; + } + + /** + * Constructs the object from a serialized string representation + * + * @param string $data The serialized string representation of the object + * + * @psalm-suppress UnusedMethodCall + */ + public function unserialize(string $data): void + { + /** @var array{seconds?: int|float|string, microseconds?: int|float|string} $time */ + $time = json_decode($data, true); + + if (!isset($time['seconds']) || !isset($time['microseconds'])) { + throw new UnsupportedOperationException( + 'Attempted to unserialize an invalid value' + ); + } + + $this->__construct($time['seconds'], $time['microseconds']); + } + + /** + * @param array{seconds?: string, microseconds?: string} $data + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['seconds']) || !isset($data['microseconds'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->__construct($data['seconds'], $data['microseconds']); + } +} diff --git a/vendor/ramsey/uuid/src/Type/TypeInterface.php b/vendor/ramsey/uuid/src/Type/TypeInterface.php new file mode 100644 index 000000000..da2d8b203 --- /dev/null +++ b/vendor/ramsey/uuid/src/Type/TypeInterface.php @@ -0,0 +1,30 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Type; + +use JsonSerializable; +use Serializable; + +/** + * TypeInterface ensures consistency in typed values returned by ramsey/uuid + * + * @psalm-immutable + */ +interface TypeInterface extends JsonSerializable, Serializable +{ + public function toString(): string; + + public function __toString(): string; +} diff --git a/vendor/ramsey/uuid/src/Uuid.php b/vendor/ramsey/uuid/src/Uuid.php new file mode 100644 index 000000000..e0384a50c --- /dev/null +++ b/vendor/ramsey/uuid/src/Uuid.php @@ -0,0 +1,758 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use BadMethodCallException; +use DateTimeInterface; +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\UnsupportedOperationException; +use Ramsey\Uuid\Fields\FieldsInterface; +use Ramsey\Uuid\Lazy\LazyUuidFromString; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use ValueError; + +use function assert; +use function bin2hex; +use function method_exists; +use function preg_match; +use function sprintf; +use function str_replace; +use function strcmp; +use function strlen; +use function strtolower; +use function substr; + +/** + * Uuid provides constants and static methods for working with and generating UUIDs + * + * @psalm-immutable + */ +class Uuid implements UuidInterface +{ + use DeprecatedUuidMethodsTrait; + + /** + * When this namespace is specified, the name string is a fully-qualified + * domain name + * + * @link http://tools.ietf.org/html/rfc4122#appendix-C RFC 4122, Appendix C: Some Name Space IDs + */ + public const NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; + + /** + * When this namespace is specified, the name string is a URL + * + * @link http://tools.ietf.org/html/rfc4122#appendix-C RFC 4122, Appendix C: Some Name Space IDs + */ + public const NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; + + /** + * When this namespace is specified, the name string is an ISO OID + * + * @link http://tools.ietf.org/html/rfc4122#appendix-C RFC 4122, Appendix C: Some Name Space IDs + */ + public const NAMESPACE_OID = '6ba7b812-9dad-11d1-80b4-00c04fd430c8'; + + /** + * When this namespace is specified, the name string is an X.500 DN in DER + * or a text output format + * + * @link http://tools.ietf.org/html/rfc4122#appendix-C RFC 4122, Appendix C: Some Name Space IDs + */ + public const NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8'; + + /** + * The nil UUID is a special form of UUID that is specified to have all 128 + * bits set to zero + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.7 RFC 4122, § 4.1.7: Nil UUID + */ + public const NIL = '00000000-0000-0000-0000-000000000000'; + + /** + * The max UUID is a special form of UUID that is specified to have all 128 + * bits set to one + * + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.10 Max UUID + */ + public const MAX = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; + + /** + * Variant: reserved, NCS backward compatibility + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + */ + public const RESERVED_NCS = 0; + + /** + * Variant: the UUID layout specified in RFC 4122 + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + */ + public const RFC_4122 = 2; + + /** + * Variant: reserved, Microsoft Corporation backward compatibility + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + */ + public const RESERVED_MICROSOFT = 6; + + /** + * Variant: reserved for future definition + * + * @link http://tools.ietf.org/html/rfc4122#section-4.1.1 RFC 4122, § 4.1.1: Variant + */ + public const RESERVED_FUTURE = 7; + + /** + * @deprecated Use {@see ValidatorInterface::getPattern()} instead. + */ + public const VALID_PATTERN = '^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$'; + + /** + * Version 1 (Gregorian time) UUID + * + * @link https://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + */ + public const UUID_TYPE_TIME = 1; + + /** + * Version 2 (DCE Security) UUID + * + * @link https://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + */ + public const UUID_TYPE_DCE_SECURITY = 2; + + /** + * @deprecated Use {@see Uuid::UUID_TYPE_DCE_SECURITY} instead. + */ + public const UUID_TYPE_IDENTIFIER = 2; + + /** + * Version 3 (name-based and hashed with MD5) UUID + * + * @link https://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + */ + public const UUID_TYPE_HASH_MD5 = 3; + + /** + * Version 4 (random) UUID + * + * @link https://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + */ + public const UUID_TYPE_RANDOM = 4; + + /** + * Version 5 (name-based and hashed with SHA1) UUID + * + * @link https://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version + */ + public const UUID_TYPE_HASH_SHA1 = 5; + + /** + * @deprecated Use {@see Uuid::UUID_TYPE_REORDERED_TIME} instead. + */ + public const UUID_TYPE_PEABODY = 6; + + /** + * Version 6 (reordered time) UUID + * + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.6 UUID Version 6 + */ + public const UUID_TYPE_REORDERED_TIME = 6; + + /** + * Version 7 (Unix Epoch time) UUID + * + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.7 UUID Version 7 + */ + public const UUID_TYPE_UNIX_TIME = 7; + + /** + * @link https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.8 UUID Version 8 + */ + public const UUID_TYPE_CUSTOM = 8; + + /** + * DCE Security principal domain + * + * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 + */ + public const DCE_DOMAIN_PERSON = 0; + + /** + * DCE Security group domain + * + * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 + */ + public const DCE_DOMAIN_GROUP = 1; + + /** + * DCE Security organization domain + * + * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 + */ + public const DCE_DOMAIN_ORG = 2; + + /** + * DCE Security domain string names + * + * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 + */ + public const DCE_DOMAIN_NAMES = [ + self::DCE_DOMAIN_PERSON => 'person', + self::DCE_DOMAIN_GROUP => 'group', + self::DCE_DOMAIN_ORG => 'org', + ]; + + private static ?UuidFactoryInterface $factory = null; + + /** + * @var bool flag to detect if the UUID factory was replaced internally, + * which disables all optimizations for the default/happy path internal + * scenarios + */ + private static bool $factoryReplaced = false; + + protected CodecInterface $codec; + protected NumberConverterInterface $numberConverter; + protected Rfc4122FieldsInterface $fields; + protected TimeConverterInterface $timeConverter; + + /** + * Creates a universally unique identifier (UUID) from an array of fields + * + * Unless you're making advanced use of this library to generate identifiers + * that deviate from RFC 4122, you probably do not want to instantiate a + * UUID directly. Use the static methods, instead: + * + * ``` + * use Ramsey\Uuid\Uuid; + * + * $timeBasedUuid = Uuid::uuid1(); + * $namespaceMd5Uuid = Uuid::uuid3(Uuid::NAMESPACE_URL, 'http://php.net/'); + * $randomUuid = Uuid::uuid4(); + * $namespaceSha1Uuid = Uuid::uuid5(Uuid::NAMESPACE_URL, 'http://php.net/'); + * ``` + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + $this->fields = $fields; + $this->codec = $codec; + $this->numberConverter = $numberConverter; + $this->timeConverter = $timeConverter; + } + + /** + * @psalm-return non-empty-string + */ + public function __toString(): string + { + return $this->toString(); + } + + /** + * Converts the UUID to a string for JSON serialization + */ + public function jsonSerialize(): string + { + return $this->toString(); + } + + /** + * Converts the UUID to a string for PHP serialization + */ + public function serialize(): string + { + return $this->codec->encode($this); + } + + /** + * @return array{bytes: string} + */ + public function __serialize(): array + { + return ['bytes' => $this->serialize()]; + } + + /** + * Re-constructs the object from its serialized form + * + * @param string $data The serialized PHP string to unserialize into + * a UuidInterface instance + */ + public function unserialize(string $data): void + { + if (strlen($data) === 16) { + /** @var Uuid $uuid */ + $uuid = self::getFactory()->fromBytes($data); + } else { + /** @var Uuid $uuid */ + $uuid = self::getFactory()->fromString($data); + } + + $this->codec = $uuid->codec; + $this->numberConverter = $uuid->numberConverter; + $this->fields = $uuid->fields; + $this->timeConverter = $uuid->timeConverter; + } + + /** + * @param array{bytes?: string} $data + */ + public function __unserialize(array $data): void + { + // @codeCoverageIgnoreStart + if (!isset($data['bytes'])) { + throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); + } + // @codeCoverageIgnoreEnd + + $this->unserialize($data['bytes']); + } + + public function compareTo(UuidInterface $other): int + { + $compare = strcmp($this->toString(), $other->toString()); + + if ($compare < 0) { + return -1; + } + + if ($compare > 0) { + return 1; + } + + return 0; + } + + public function equals(?object $other): bool + { + if (!$other instanceof UuidInterface) { + return false; + } + + return $this->compareTo($other) === 0; + } + + /** + * @psalm-return non-empty-string + */ + public function getBytes(): string + { + return $this->codec->encodeBinary($this); + } + + public function getFields(): FieldsInterface + { + return $this->fields; + } + + public function getHex(): Hexadecimal + { + return new Hexadecimal(str_replace('-', '', $this->toString())); + } + + public function getInteger(): IntegerObject + { + return new IntegerObject($this->numberConverter->fromHex($this->getHex()->toString())); + } + + public function getUrn(): string + { + return 'urn:uuid:' . $this->toString(); + } + + /** + * @psalm-return non-empty-string + */ + public function toString(): string + { + return $this->codec->encode($this); + } + + /** + * Returns the factory used to create UUIDs + */ + public static function getFactory(): UuidFactoryInterface + { + if (self::$factory === null) { + self::$factory = new UuidFactory(); + } + + return self::$factory; + } + + /** + * Sets the factory used to create UUIDs + * + * @param UuidFactoryInterface $factory A factory that will be used by this + * class to create UUIDs + */ + public static function setFactory(UuidFactoryInterface $factory): void + { + // Note: non-strict equality is intentional here. If the factory is configured differently, every assumption + // around purity is broken, and we have to internally decide everything differently. + // phpcs:ignore SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedNotEqualOperator + self::$factoryReplaced = ($factory != new UuidFactory()); + + self::$factory = $factory; + } + + /** + * Creates a UUID from a byte string + * + * @param string $bytes A binary string + * + * @return UuidInterface A UuidInterface instance created from a binary + * string representation + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + * + * @psalm-suppress ImpureStaticProperty we know that the factory being replaced can lead to massive + * havoc across all consumers: that should never happen, and + * is generally to be discouraged. Until the factory is kept + * un-replaced, this method is effectively pure. + */ + public static function fromBytes(string $bytes): UuidInterface + { + if (!self::$factoryReplaced && strlen($bytes) === 16) { + $base16Uuid = bin2hex($bytes); + + // Note: we are calling `fromString` internally because we don't know if the given `$bytes` is a valid UUID + return self::fromString( + substr($base16Uuid, 0, 8) + . '-' + . substr($base16Uuid, 8, 4) + . '-' + . substr($base16Uuid, 12, 4) + . '-' + . substr($base16Uuid, 16, 4) + . '-' + . substr($base16Uuid, 20, 12) + ); + } + + return self::getFactory()->fromBytes($bytes); + } + + /** + * Creates a UUID from the string standard representation + * + * @param string $uuid A hexadecimal string + * + * @return UuidInterface A UuidInterface instance created from a hexadecimal + * string representation + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + * + * @psalm-suppress ImpureStaticProperty we know that the factory being replaced can lead to massive + * havoc across all consumers: that should never happen, and + * is generally to be discouraged. Until the factory is kept + * un-replaced, this method is effectively pure. + */ + public static function fromString(string $uuid): UuidInterface + { + $uuid = strtolower($uuid); + if (!self::$factoryReplaced && preg_match(LazyUuidFromString::VALID_REGEX, $uuid) === 1) { + assert($uuid !== ''); + + return new LazyUuidFromString($uuid); + } + + return self::getFactory()->fromString($uuid); + } + + /** + * Creates a UUID from a DateTimeInterface instance + * + * @param DateTimeInterface $dateTime The date and time + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 1 UUID created from a DateTimeInterface instance + */ + public static function fromDateTime( + DateTimeInterface $dateTime, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface { + return self::getFactory()->fromDateTime($dateTime, $node, $clockSeq); + } + + /** + * Creates a UUID from the Hexadecimal object + * + * @param Hexadecimal $hex Hexadecimal object representing a hexadecimal number + * + * @return UuidInterface A UuidInterface instance created from the Hexadecimal + * object representing a hexadecimal number + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + * @psalm-suppress MixedInferredReturnType,MixedReturnStatement + */ + public static function fromHexadecimal(Hexadecimal $hex): UuidInterface + { + $factory = self::getFactory(); + + if (method_exists($factory, 'fromHexadecimal')) { + /** + * @phpstan-ignore-next-line + * @psalm-suppress UndefinedInterfaceMethod + */ + return self::getFactory()->fromHexadecimal($hex); + } + + throw new BadMethodCallException('The method fromHexadecimal() does not exist on the provided factory'); + } + + /** + * Creates a UUID from a 128-bit integer string + * + * @param string $integer String representation of 128-bit integer + * + * @return UuidInterface A UuidInterface instance created from the string + * representation of a 128-bit integer + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + */ + public static function fromInteger(string $integer): UuidInterface + { + /** @psalm-suppress ImpureMethodCall */ + return self::getFactory()->fromInteger($integer); + } + + /** + * Returns true if the provided string is a valid UUID + * + * @param string $uuid A string to validate as a UUID + * + * @return bool True if the string is a valid UUID, false otherwise + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + * + * @psalm-assert-if-true =non-empty-string $uuid + */ + public static function isValid(string $uuid): bool + { + /** @psalm-suppress ImpureMethodCall */ + return self::getFactory()->getValidator()->validate($uuid); + } + + /** + * Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, + * and the current time + * + * @param Hexadecimal|int|string|null $node A 48-bit number representing the + * hardware address; this number may be represented as an integer or a + * hexadecimal string + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates that + * could arise when the clock is set backwards in time or if the node ID + * changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 1 UUID + */ + public static function uuid1($node = null, ?int $clockSeq = null): UuidInterface + { + return self::getFactory()->uuid1($node, $clockSeq); + } + + /** + * Returns a version 2 (DCE Security) UUID from a local domain, local + * identifier, host ID, clock sequence, and the current time + * + * @param int $localDomain The local domain to use when generating bytes, + * according to DCE Security + * @param IntegerObject|null $localIdentifier The local identifier for the + * given domain; this may be a UID or GID on POSIX systems, if the local + * domain is person or group, or it may be a site-defined identifier + * if the local domain is org + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes (in a version 2 UUID, the lower 8 bits of this number + * are replaced with the domain). + * + * @return UuidInterface A UuidInterface instance that represents a + * version 2 UUID + */ + public static function uuid2( + int $localDomain, + ?IntegerObject $localIdentifier = null, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface { + return self::getFactory()->uuid2($localDomain, $localIdentifier, $node, $clockSeq); + } + + /** + * Returns a version 3 (name-based) UUID based on the MD5 hash of a + * namespace ID and a name + * + * @param string|UuidInterface $ns The namespace (must be a valid UUID) + * @param string $name The name to use for creating a UUID + * + * @return UuidInterface A UuidInterface instance that represents a + * version 3 UUID + * + * @psalm-suppress ImpureMethodCall we know that the factory being replaced can lead to massive + * havoc across all consumers: that should never happen, and + * is generally to be discouraged. Until the factory is kept + * un-replaced, this method is effectively pure. + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + */ + public static function uuid3($ns, string $name): UuidInterface + { + return self::getFactory()->uuid3($ns, $name); + } + + /** + * Returns a version 4 (random) UUID + * + * @return UuidInterface A UuidInterface instance that represents a + * version 4 UUID + */ + public static function uuid4(): UuidInterface + { + return self::getFactory()->uuid4(); + } + + /** + * Returns a version 5 (name-based) UUID based on the SHA-1 hash of a + * namespace ID and a name + * + * @param string|UuidInterface $ns The namespace (must be a valid UUID) + * @param string $name The name to use for creating a UUID + * + * @return UuidInterface A UuidInterface instance that represents a + * version 5 UUID + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + * + * @psalm-suppress ImpureMethodCall we know that the factory being replaced can lead to massive + * havoc across all consumers: that should never happen, and + * is generally to be discouraged. Until the factory is kept + * un-replaced, this method is effectively pure. + */ + public static function uuid5($ns, string $name): UuidInterface + { + return self::getFactory()->uuid5($ns, $name); + } + + /** + * Returns a version 6 (reordered time) UUID from a host ID, sequence number, + * and the current time + * + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates that + * could arise when the clock is set backwards in time or if the node ID + * changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 6 UUID + */ + public static function uuid6( + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface { + return self::getFactory()->uuid6($node, $clockSeq); + } + + /** + * Returns a version 7 (Unix Epoch time) UUID + * + * @param DateTimeInterface|null $dateTime An optional date/time from which + * to create the version 7 UUID. If not provided, the UUID is generated + * using the current date/time. + * + * @return UuidInterface A UuidInterface instance that represents a + * version 7 UUID + */ + public static function uuid7(?DateTimeInterface $dateTime = null): UuidInterface + { + $factory = self::getFactory(); + + if (method_exists($factory, 'uuid7')) { + /** @var UuidInterface */ + return $factory->uuid7($dateTime); + } + + throw new UnsupportedOperationException( + 'The provided factory does not support the uuid7() method', + ); + } + + /** + * Returns a version 8 (custom) UUID + * + * The bytes provided may contain any value according to your application's + * needs. Be aware, however, that other applications may not understand the + * semantics of the value. + * + * @param string $bytes A 16-byte octet string. This is an open blob + * of data that you may fill with 128 bits of information. Be aware, + * however, bits 48 through 51 will be replaced with the UUID version + * field, and bits 64 and 65 will be replaced with the UUID variant. You + * MUST NOT rely on these bits for your application needs. + * + * @return UuidInterface A UuidInterface instance that represents a + * version 8 UUID + */ + public static function uuid8(string $bytes): UuidInterface + { + $factory = self::getFactory(); + + if (method_exists($factory, 'uuid8')) { + /** @var UuidInterface */ + return $factory->uuid8($bytes); + } + + throw new UnsupportedOperationException( + 'The provided factory does not support the uuid8() method', + ); + } +} diff --git a/vendor/ramsey/uuid/src/UuidFactory.php b/vendor/ramsey/uuid/src/UuidFactory.php new file mode 100644 index 000000000..1b06ea6ed --- /dev/null +++ b/vendor/ramsey/uuid/src/UuidFactory.php @@ -0,0 +1,513 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use DateTimeInterface; +use Ramsey\Uuid\Builder\UuidBuilderInterface; +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Generator\DceSecurityGeneratorInterface; +use Ramsey\Uuid\Generator\DefaultTimeGenerator; +use Ramsey\Uuid\Generator\NameGeneratorInterface; +use Ramsey\Uuid\Generator\RandomGeneratorInterface; +use Ramsey\Uuid\Generator\TimeGeneratorInterface; +use Ramsey\Uuid\Generator\UnixTimeGenerator; +use Ramsey\Uuid\Lazy\LazyUuidFromString; +use Ramsey\Uuid\Provider\NodeProviderInterface; +use Ramsey\Uuid\Provider\Time\FixedTimeProvider; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; +use Ramsey\Uuid\Validator\ValidatorInterface; + +use function bin2hex; +use function hex2bin; +use function pack; +use function str_pad; +use function strtolower; +use function substr; +use function substr_replace; +use function unpack; + +use const STR_PAD_LEFT; + +class UuidFactory implements UuidFactoryInterface +{ + private CodecInterface $codec; + private DceSecurityGeneratorInterface $dceSecurityGenerator; + private NameGeneratorInterface $nameGenerator; + private NodeProviderInterface $nodeProvider; + private NumberConverterInterface $numberConverter; + private RandomGeneratorInterface $randomGenerator; + private TimeConverterInterface $timeConverter; + private TimeGeneratorInterface $timeGenerator; + private TimeGeneratorInterface $unixTimeGenerator; + private UuidBuilderInterface $uuidBuilder; + private ValidatorInterface $validator; + + /** + * @var bool whether the feature set was provided from outside, or we can + * operate under "default" assumptions + */ + private bool $isDefaultFeatureSet; + + /** + * @param FeatureSet|null $features A set of available features in the current environment + */ + public function __construct(?FeatureSet $features = null) + { + $this->isDefaultFeatureSet = $features === null; + + $features = $features ?: new FeatureSet(); + + $this->codec = $features->getCodec(); + $this->dceSecurityGenerator = $features->getDceSecurityGenerator(); + $this->nameGenerator = $features->getNameGenerator(); + $this->nodeProvider = $features->getNodeProvider(); + $this->numberConverter = $features->getNumberConverter(); + $this->randomGenerator = $features->getRandomGenerator(); + $this->timeConverter = $features->getTimeConverter(); + $this->timeGenerator = $features->getTimeGenerator(); + $this->uuidBuilder = $features->getBuilder(); + $this->validator = $features->getValidator(); + $this->unixTimeGenerator = $features->getUnixTimeGenerator(); + } + + /** + * Returns the codec used by this factory + */ + public function getCodec(): CodecInterface + { + return $this->codec; + } + + /** + * Sets the codec to use for this factory + * + * @param CodecInterface $codec A UUID encoder-decoder + */ + public function setCodec(CodecInterface $codec): void + { + $this->isDefaultFeatureSet = false; + + $this->codec = $codec; + } + + /** + * Returns the name generator used by this factory + */ + public function getNameGenerator(): NameGeneratorInterface + { + return $this->nameGenerator; + } + + /** + * Sets the name generator to use for this factory + * + * @param NameGeneratorInterface $nameGenerator A generator to generate + * binary data, based on a namespace and name + */ + public function setNameGenerator(NameGeneratorInterface $nameGenerator): void + { + $this->isDefaultFeatureSet = false; + + $this->nameGenerator = $nameGenerator; + } + + /** + * Returns the node provider used by this factory + */ + public function getNodeProvider(): NodeProviderInterface + { + return $this->nodeProvider; + } + + /** + * Returns the random generator used by this factory + */ + public function getRandomGenerator(): RandomGeneratorInterface + { + return $this->randomGenerator; + } + + /** + * Returns the time generator used by this factory + */ + public function getTimeGenerator(): TimeGeneratorInterface + { + return $this->timeGenerator; + } + + /** + * Sets the time generator to use for this factory + * + * @param TimeGeneratorInterface $generator A generator to generate binary + * data, based on the time + */ + public function setTimeGenerator(TimeGeneratorInterface $generator): void + { + $this->isDefaultFeatureSet = false; + + $this->timeGenerator = $generator; + } + + /** + * Returns the DCE Security generator used by this factory + */ + public function getDceSecurityGenerator(): DceSecurityGeneratorInterface + { + return $this->dceSecurityGenerator; + } + + /** + * Sets the DCE Security generator to use for this factory + * + * @param DceSecurityGeneratorInterface $generator A generator to generate + * binary data, based on a local domain and local identifier + */ + public function setDceSecurityGenerator(DceSecurityGeneratorInterface $generator): void + { + $this->isDefaultFeatureSet = false; + + $this->dceSecurityGenerator = $generator; + } + + /** + * Returns the number converter used by this factory + */ + public function getNumberConverter(): NumberConverterInterface + { + return $this->numberConverter; + } + + /** + * Sets the random generator to use for this factory + * + * @param RandomGeneratorInterface $generator A generator to generate binary + * data, based on some random input + */ + public function setRandomGenerator(RandomGeneratorInterface $generator): void + { + $this->isDefaultFeatureSet = false; + + $this->randomGenerator = $generator; + } + + /** + * Sets the number converter to use for this factory + * + * @param NumberConverterInterface $converter A converter to use for working + * with large integers (i.e. integers greater than PHP_INT_MAX) + */ + public function setNumberConverter(NumberConverterInterface $converter): void + { + $this->isDefaultFeatureSet = false; + + $this->numberConverter = $converter; + } + + /** + * Returns the UUID builder used by this factory + */ + public function getUuidBuilder(): UuidBuilderInterface + { + return $this->uuidBuilder; + } + + /** + * Sets the UUID builder to use for this factory + * + * @param UuidBuilderInterface $builder A builder for constructing instances + * of UuidInterface + */ + public function setUuidBuilder(UuidBuilderInterface $builder): void + { + $this->isDefaultFeatureSet = false; + + $this->uuidBuilder = $builder; + } + + /** + * @psalm-mutation-free + */ + public function getValidator(): ValidatorInterface + { + return $this->validator; + } + + /** + * Sets the validator to use for this factory + * + * @param ValidatorInterface $validator A validator to use for validating + * whether a string is a valid UUID + */ + public function setValidator(ValidatorInterface $validator): void + { + $this->isDefaultFeatureSet = false; + + $this->validator = $validator; + } + + /** + * @psalm-pure + */ + public function fromBytes(string $bytes): UuidInterface + { + return $this->codec->decodeBytes($bytes); + } + + /** + * @psalm-pure + */ + public function fromString(string $uuid): UuidInterface + { + $uuid = strtolower($uuid); + + return $this->codec->decode($uuid); + } + + /** + * @psalm-pure + */ + public function fromInteger(string $integer): UuidInterface + { + $hex = $this->numberConverter->toHex($integer); + $hex = str_pad($hex, 32, '0', STR_PAD_LEFT); + + return $this->fromString($hex); + } + + public function fromDateTime( + DateTimeInterface $dateTime, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface { + $timeProvider = new FixedTimeProvider( + new Time($dateTime->format('U'), $dateTime->format('u')) + ); + + $timeGenerator = new DefaultTimeGenerator( + $this->nodeProvider, + $this->timeConverter, + $timeProvider + ); + + $nodeHex = $node ? $node->toString() : null; + + $bytes = $timeGenerator->generate($nodeHex, $clockSeq); + + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_TIME); + } + + /** + * @psalm-pure + */ + public function fromHexadecimal(Hexadecimal $hex): UuidInterface + { + return $this->codec->decode($hex->__toString()); + } + + /** + * @inheritDoc + */ + public function uuid1($node = null, ?int $clockSeq = null): UuidInterface + { + $bytes = $this->timeGenerator->generate($node, $clockSeq); + + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_TIME); + } + + public function uuid2( + int $localDomain, + ?IntegerObject $localIdentifier = null, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface { + $bytes = $this->dceSecurityGenerator->generate( + $localDomain, + $localIdentifier, + $node, + $clockSeq + ); + + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_DCE_SECURITY); + } + + /** + * @inheritDoc + * @psalm-pure + */ + public function uuid3($ns, string $name): UuidInterface + { + return $this->uuidFromNsAndName($ns, $name, Uuid::UUID_TYPE_HASH_MD5, 'md5'); + } + + public function uuid4(): UuidInterface + { + $bytes = $this->randomGenerator->generate(16); + + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_RANDOM); + } + + /** + * @inheritDoc + * @psalm-pure + */ + public function uuid5($ns, string $name): UuidInterface + { + return $this->uuidFromNsAndName($ns, $name, Uuid::UUID_TYPE_HASH_SHA1, 'sha1'); + } + + public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInterface + { + $nodeHex = $node ? $node->toString() : null; + $bytes = $this->timeGenerator->generate($nodeHex, $clockSeq); + + // Rearrange the bytes, according to the UUID version 6 specification. + $v6 = $bytes[6] . $bytes[7] . $bytes[4] . $bytes[5] + . $bytes[0] . $bytes[1] . $bytes[2] . $bytes[3]; + $v6 = bin2hex($v6); + + // Drop the first four bits, while adding an empty four bits for the + // version field. This allows us to reconstruct the correct time from + // the bytes of this UUID. + $v6Bytes = hex2bin(substr($v6, 1, 12) . '0' . substr($v6, -3)); + $v6Bytes .= substr($bytes, 8); + + return $this->uuidFromBytesAndVersion($v6Bytes, Uuid::UUID_TYPE_REORDERED_TIME); + } + + /** + * Returns a version 7 (Unix Epoch time) UUID + * + * @param DateTimeInterface|null $dateTime An optional date/time from which + * to create the version 7 UUID. If not provided, the UUID is generated + * using the current date/time. + * + * @return UuidInterface A UuidInterface instance that represents a + * version 7 UUID + */ + public function uuid7(?DateTimeInterface $dateTime = null): UuidInterface + { + assert($this->unixTimeGenerator instanceof UnixTimeGenerator); + $bytes = $this->unixTimeGenerator->generate(null, null, $dateTime); + + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_UNIX_TIME); + } + + /** + * Returns a version 8 (Custom) UUID + * + * The bytes provided may contain any value according to your application's + * needs. Be aware, however, that other applications may not understand the + * semantics of the value. + * + * @param string $bytes A 16-byte octet string. This is an open blob + * of data that you may fill with 128 bits of information. Be aware, + * however, bits 48 through 51 will be replaced with the UUID version + * field, and bits 64 and 65 will be replaced with the UUID variant. You + * MUST NOT rely on these bits for your application needs. + * + * @return UuidInterface A UuidInterface instance that represents a + * version 8 UUID + */ + public function uuid8(string $bytes): UuidInterface + { + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_CUSTOM); + } + + /** + * Returns a Uuid created from the provided byte string + * + * Uses the configured builder and codec and the provided byte string to + * construct a Uuid object. + * + * @param string $bytes The byte string from which to construct a UUID + * + * @return UuidInterface An instance of UuidInterface, created from the + * provided bytes + * + * @psalm-pure + */ + public function uuid(string $bytes): UuidInterface + { + /** @psalm-suppress ImpurePropertyFetch */ + return $this->uuidBuilder->build($this->codec, $bytes); + } + + /** + * Returns a version 3 or 5 namespaced Uuid + * + * @param string|UuidInterface $ns The namespace (must be a valid UUID) + * @param string $name The name to hash together with the namespace + * @param int $version The version of UUID to create (3 or 5) + * @param string $hashAlgorithm The hashing algorithm to use when hashing + * together the namespace and name + * + * @return UuidInterface An instance of UuidInterface, created by hashing + * together the provided namespace and name + * + * @psalm-pure + */ + private function uuidFromNsAndName( + UuidInterface | string $ns, + string $name, + int $version, + string $hashAlgorithm + ): UuidInterface { + if (!($ns instanceof UuidInterface)) { + $ns = $this->fromString($ns); + } + + $bytes = $this->nameGenerator->generate($ns, $name, $hashAlgorithm); + + return $this->uuidFromBytesAndVersion(substr($bytes, 0, 16), $version); + } + + /** + * Returns an RFC 4122 variant Uuid, created from the provided bytes and version + * + * @param string $bytes The byte string to convert to a UUID + * @param int $version The RFC 4122 version to apply to the UUID + * + * @return UuidInterface An instance of UuidInterface, created from the + * byte string and version + * + * @psalm-pure + */ + private function uuidFromBytesAndVersion(string $bytes, int $version): UuidInterface + { + /** @var array $unpackedTime */ + $unpackedTime = unpack('n*', substr($bytes, 6, 2)); + $timeHi = (int) $unpackedTime[1]; + $timeHiAndVersion = pack('n*', BinaryUtils::applyVersion($timeHi, $version)); + + /** @var array $unpackedClockSeq */ + $unpackedClockSeq = unpack('n*', substr($bytes, 8, 2)); + $clockSeqHi = (int) $unpackedClockSeq[1]; + $clockSeqHiAndReserved = pack('n*', BinaryUtils::applyVariant($clockSeqHi)); + + $bytes = substr_replace($bytes, $timeHiAndVersion, 6, 2); + $bytes = substr_replace($bytes, $clockSeqHiAndReserved, 8, 2); + + if ($this->isDefaultFeatureSet) { + return LazyUuidFromString::fromBytes($bytes); + } + + /** @psalm-suppress ImpureVariable */ + return $this->uuid($bytes); + } +} diff --git a/vendor/ramsey/uuid/src/UuidFactoryInterface.php b/vendor/ramsey/uuid/src/UuidFactoryInterface.php new file mode 100644 index 000000000..d99fc9d58 --- /dev/null +++ b/vendor/ramsey/uuid/src/UuidFactoryInterface.php @@ -0,0 +1,182 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use DateTimeInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Validator\ValidatorInterface; + +/** + * UuidFactoryInterface defines common functionality all `UuidFactory` instances + * must implement + */ +interface UuidFactoryInterface +{ + /** + * Creates a UUID from a byte string + * + * @param string $bytes A binary string + * + * @return UuidInterface A UuidInterface instance created from a binary + * string representation + * + * @psalm-pure + */ + public function fromBytes(string $bytes): UuidInterface; + + /** + * Creates a UUID from a DateTimeInterface instance + * + * @param DateTimeInterface $dateTime The date and time + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 1 UUID created from a DateTimeInterface instance + */ + public function fromDateTime( + DateTimeInterface $dateTime, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface; + + /** + * Creates a UUID from a 128-bit integer string + * + * @param string $integer String representation of 128-bit integer + * + * @return UuidInterface A UuidInterface instance created from the string + * representation of a 128-bit integer + * + * @psalm-pure + */ + public function fromInteger(string $integer): UuidInterface; + + /** + * Creates a UUID from the string standard representation + * + * @param string $uuid A hexadecimal string + * + * @return UuidInterface A UuidInterface instance created from a hexadecimal + * string representation + * + * @psalm-pure + */ + public function fromString(string $uuid): UuidInterface; + + /** + * Returns the validator to use for the factory + * + * @psalm-mutation-free + */ + public function getValidator(): ValidatorInterface; + + /** + * Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, + * and the current time + * + * @param Hexadecimal|int|string|null $node A 48-bit number representing the + * hardware address; this number may be represented as an integer or a + * hexadecimal string + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 1 UUID + */ + public function uuid1($node = null, ?int $clockSeq = null): UuidInterface; + + /** + * Returns a version 2 (DCE Security) UUID from a local domain, local + * identifier, host ID, clock sequence, and the current time + * + * @param int $localDomain The local domain to use when generating bytes, + * according to DCE Security + * @param IntegerObject|null $localIdentifier The local identifier for the + * given domain; this may be a UID or GID on POSIX systems, if the local + * domain is person or group, or it may be a site-defined identifier + * if the local domain is org + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 2 UUID + */ + public function uuid2( + int $localDomain, + ?IntegerObject $localIdentifier = null, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface; + + /** + * Returns a version 3 (name-based) UUID based on the MD5 hash of a + * namespace ID and a name + * + * @param string|UuidInterface $ns The namespace (must be a valid UUID) + * @param string $name The name to use for creating a UUID + * + * @return UuidInterface A UuidInterface instance that represents a + * version 3 UUID + * + * @psalm-pure + */ + public function uuid3($ns, string $name): UuidInterface; + + /** + * Returns a version 4 (random) UUID + * + * @return UuidInterface A UuidInterface instance that represents a + * version 4 UUID + */ + public function uuid4(): UuidInterface; + + /** + * Returns a version 5 (name-based) UUID based on the SHA-1 hash of a + * namespace ID and a name + * + * @param string|UuidInterface $ns The namespace (must be a valid UUID) + * @param string $name The name to use for creating a UUID + * + * @return UuidInterface A UuidInterface instance that represents a + * version 5 UUID + * + * @psalm-pure + */ + public function uuid5($ns, string $name): UuidInterface; + + /** + * Returns a version 6 (reordered time) UUID from a host ID, sequence number, + * and the current time + * + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 6 UUID + */ + public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInterface; +} diff --git a/vendor/ramsey/uuid/src/UuidInterface.php b/vendor/ramsey/uuid/src/UuidInterface.php new file mode 100644 index 000000000..0a9780805 --- /dev/null +++ b/vendor/ramsey/uuid/src/UuidInterface.php @@ -0,0 +1,109 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use JsonSerializable; +use Ramsey\Uuid\Fields\FieldsInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Serializable; +use Stringable; + +/** + * A UUID is a universally unique identifier adhering to an agreed-upon + * representation format and standard for generation + * + * @psalm-immutable + */ +interface UuidInterface extends + DeprecatedUuidInterface, + JsonSerializable, + Serializable, + Stringable +{ + /** + * Returns -1, 0, or 1 if the UUID is less than, equal to, or greater than + * the other UUID + * + * The first of two UUIDs is greater than the second if the most + * significant field in which the UUIDs differ is greater for the first + * UUID. + * + * * Q. What's the value of being able to sort UUIDs? + * * A. Use them as keys in a B-Tree or similar mapping. + * + * @param UuidInterface $other The UUID to compare + * + * @return int -1, 0, or 1 if the UUID is less than, equal to, or greater than $other + */ + public function compareTo(UuidInterface $other): int; + + /** + * Returns true if the UUID is equal to the provided object + * + * The result is true if and only if the argument is not null, is a UUID + * object, has the same variant, and contains the same value, bit for bit, + * as the UUID. + * + * @param object|null $other An object to test for equality with this UUID + * + * @return bool True if the other object is equal to this UUID + */ + public function equals(?object $other): bool; + + /** + * Returns the binary string representation of the UUID + * + * @psalm-return non-empty-string + */ + public function getBytes(): string; + + /** + * Returns the fields that comprise this UUID + */ + public function getFields(): FieldsInterface; + + /** + * Returns the hexadecimal representation of the UUID + */ + public function getHex(): Hexadecimal; + + /** + * Returns the integer representation of the UUID + */ + public function getInteger(): IntegerObject; + + /** + * Returns the string standard representation of the UUID as a URN + * + * @link http://en.wikipedia.org/wiki/Uniform_Resource_Name Uniform Resource Name + * @link https://tools.ietf.org/html/rfc4122#section-3 RFC 4122, § 3: Namespace Registration Template + */ + public function getUrn(): string; + + /** + * Returns the string standard representation of the UUID + * + * @psalm-return non-empty-string + */ + public function toString(): string; + + /** + * Casts the UUID to the string standard representation + * + * @psalm-return non-empty-string + */ + public function __toString(): string; +} diff --git a/vendor/ramsey/uuid/src/Validator/GenericValidator.php b/vendor/ramsey/uuid/src/Validator/GenericValidator.php new file mode 100644 index 000000000..fd6095511 --- /dev/null +++ b/vendor/ramsey/uuid/src/Validator/GenericValidator.php @@ -0,0 +1,50 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Validator; + +use Ramsey\Uuid\Uuid; + +use function preg_match; +use function str_replace; + +/** + * GenericValidator validates strings as UUIDs of any variant + * + * @psalm-immutable + */ +final class GenericValidator implements ValidatorInterface +{ + /** + * Regular expression pattern for matching a UUID of any variant. + */ + private const VALID_PATTERN = '\A[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\z'; + + /** + * @psalm-return non-empty-string + * @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty + * @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty + */ + public function getPattern(): string + { + return self::VALID_PATTERN; + } + + public function validate(string $uuid): bool + { + $uuid = str_replace(['urn:', 'uuid:', 'URN:', 'UUID:', '{', '}'], '', $uuid); + + return $uuid === Uuid::NIL || preg_match('/' . self::VALID_PATTERN . '/Dms', $uuid); + } +} diff --git a/vendor/ramsey/uuid/src/Validator/ValidatorInterface.php b/vendor/ramsey/uuid/src/Validator/ValidatorInterface.php new file mode 100644 index 000000000..3d4bd6f28 --- /dev/null +++ b/vendor/ramsey/uuid/src/Validator/ValidatorInterface.php @@ -0,0 +1,41 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Validator; + +/** + * A validator validates a string as a proper UUID + * + * @psalm-immutable + */ +interface ValidatorInterface +{ + /** + * Returns the regular expression pattern used by this validator + * + * @return string The regular expression pattern this validator uses + * + * @psalm-return non-empty-string + */ + public function getPattern(): string; + + /** + * Returns true if the provided string represents a UUID + * + * @param string $uuid The string to validate as a UUID + * + * @return bool True if the string is a valid UUID, false otherwise + */ + public function validate(string $uuid): bool; +} diff --git a/vendor/ramsey/uuid/src/functions.php b/vendor/ramsey/uuid/src/functions.php new file mode 100644 index 000000000..1b3ce00f7 --- /dev/null +++ b/vendor/ramsey/uuid/src/functions.php @@ -0,0 +1,158 @@ + + * @license http://opensource.org/licenses/MIT MIT + * phpcs:disable Squiz.Functions.GlobalFunction + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid; + +use DateTimeInterface; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; + +/** + * Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, + * and the current time + * + * @param Hexadecimal|int|string|null $node A 48-bit number representing the + * hardware address; this number may be represented as an integer or a + * hexadecimal string + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates that + * could arise when the clock is set backwards in time or if the node ID + * changes + * + * @return non-empty-string Version 1 UUID as a string + */ +function v1($node = null, ?int $clockSeq = null): string +{ + return Uuid::uuid1($node, $clockSeq)->toString(); +} + +/** + * Returns a version 2 (DCE Security) UUID from a local domain, local + * identifier, host ID, clock sequence, and the current time + * + * @param int $localDomain The local domain to use when generating bytes, + * according to DCE Security + * @param IntegerObject|null $localIdentifier The local identifier for the + * given domain; this may be a UID or GID on POSIX systems, if the local + * domain is person or group, or it may be a site-defined identifier + * if the local domain is org + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return non-empty-string Version 2 UUID as a string + */ +function v2( + int $localDomain, + ?IntegerObject $localIdentifier = null, + ?Hexadecimal $node = null, + ?int $clockSeq = null +): string { + return Uuid::uuid2($localDomain, $localIdentifier, $node, $clockSeq)->toString(); +} + +/** + * Returns a version 3 (name-based) UUID based on the MD5 hash of a + * namespace ID and a name + * + * @param string|UuidInterface $ns The namespace (must be a valid UUID) + * + * @return non-empty-string Version 3 UUID as a string + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + */ +function v3($ns, string $name): string +{ + return Uuid::uuid3($ns, $name)->toString(); +} + +/** + * Returns a version 4 (random) UUID + * + * @return non-empty-string Version 4 UUID as a string + */ +function v4(): string +{ + return Uuid::uuid4()->toString(); +} + +/** + * Returns a version 5 (name-based) UUID based on the SHA-1 hash of a + * namespace ID and a name + * + * @param string|UuidInterface $ns The namespace (must be a valid UUID) + * + * @return non-empty-string Version 5 UUID as a string + * + * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, + * but under constant factory setups, this method operates in functionally pure manners + */ +function v5($ns, string $name): string +{ + return Uuid::uuid5($ns, $name)->toString(); +} + +/** + * Returns a version 6 (reordered time) UUID from a host ID, sequence number, + * and the current time + * + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates that + * could arise when the clock is set backwards in time or if the node ID + * changes + * + * @return non-empty-string Version 6 UUID as a string + */ +function v6(?Hexadecimal $node = null, ?int $clockSeq = null): string +{ + return Uuid::uuid6($node, $clockSeq)->toString(); +} + +/** + * Returns a version 7 (Unix Epoch time) UUID + * + * @param DateTimeInterface|null $dateTime An optional date/time from which + * to create the version 7 UUID. If not provided, the UUID is generated + * using the current date/time. + * + * @return non-empty-string Version 7 UUID as a string + */ +function v7(?DateTimeInterface $dateTime = null): string +{ + return Uuid::uuid7($dateTime)->toString(); +} + +/** + * Returns a version 8 (custom) UUID + * + * The bytes provided may contain any value according to your application's + * needs. Be aware, however, that other applications may not understand the + * semantics of the value. + * + * @param string $bytes A 16-byte octet string. This is an open blob + * of data that you may fill with 128 bits of information. Be aware, + * however, bits 48 through 51 will be replaced with the UUID version + * field, and bits 64 and 65 will be replaced with the UUID variant. You + * MUST NOT rely on these bits for your application needs. + * + * @return non-empty-string Version 8 UUID as a string + */ +function v8(string $bytes): string +{ + return Uuid::uuid8($bytes)->toString(); +} diff --git a/vendor/symfony/deprecation-contracts/CHANGELOG.md b/vendor/symfony/deprecation-contracts/CHANGELOG.md new file mode 100644 index 000000000..7932e2613 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/CHANGELOG.md @@ -0,0 +1,5 @@ +CHANGELOG +========= + +The changelog is maintained for all Symfony contracts at the following URL: +https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/deprecation-contracts/LICENSE b/vendor/symfony/deprecation-contracts/LICENSE new file mode 100644 index 000000000..0ed3a2465 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020-present Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/symfony/deprecation-contracts/README.md b/vendor/symfony/deprecation-contracts/README.md new file mode 100644 index 000000000..9814864c0 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/README.md @@ -0,0 +1,26 @@ +Symfony Deprecation Contracts +============================= + +A generic function and convention to trigger deprecation notices. + +This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices. + +By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component, +the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments. + +The function requires at least 3 arguments: + - the name of the Composer package that is triggering the deprecation + - the version of the package that introduced the deprecation + - the message of the deprecation + - more arguments can be provided: they will be inserted in the message using `printf()` formatting + +Example: +```php +trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin'); +``` + +This will generate the following message: +`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.` + +While not recommended, the deprecation notices can be completely ignored by declaring an empty +`function trigger_deprecation() {}` in your application. diff --git a/vendor/symfony/deprecation-contracts/composer.json b/vendor/symfony/deprecation-contracts/composer.json new file mode 100644 index 000000000..c6d02d874 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/composer.json @@ -0,0 +1,35 @@ +{ + "name": "symfony/deprecation-contracts", + "type": "library", + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "require": { + "php": ">=8.1" + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + } +} diff --git a/vendor/symfony/deprecation-contracts/function.php b/vendor/symfony/deprecation-contracts/function.php new file mode 100644 index 000000000..2d56512ba --- /dev/null +++ b/vendor/symfony/deprecation-contracts/function.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +if (!function_exists('trigger_deprecation')) { + /** + * Triggers a silenced deprecation notice. + * + * @param string $package The name of the Composer package that is triggering the deprecation + * @param string $version The version of the package that introduced the deprecation + * @param string $message The message of the deprecation + * @param mixed ...$args Values to insert in the message using printf() formatting + * + * @author Nicolas Grekas + */ + function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void + { + @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED); + } +} diff --git a/views/css/buckaroo3.admin.css b/views/css/buckaroo3.admin.css index 46f8a3de5..5186a5422 100644 --- a/views/css/buckaroo3.admin.css +++ b/views/css/buckaroo3.admin.css @@ -1,13 +1,4 @@ -legend.test { - background-color: #FFF000; - color: #585A69; -} - -legend.active { - background-color: #97C600; - color: white; -} -.buckaroo-field-description { - font-size: 12px; - margin-top: 3px; +#subtab-AdminBuckaroo_B > a > i.mi-buckaroo, #subtab-AdminBuckaroo > a > i.mi-buckaroo { + background: url(../img/buckaroo-menu-logo.png) no-repeat scroll center center / contain transparent; + width: 16px; } \ No newline at end of file diff --git a/views/css/buckaroo3.css b/views/css/buckaroo3.css index d91c33167..14033e590 100644 --- a/views/css/buckaroo3.css +++ b/views/css/buckaroo3.css @@ -281,13 +281,26 @@ .form-control-middle { width: 70px; - display: inline + display: inline; + background-color: #f8f9fa; + border: 1px solid #ced4da; + border-radius: .25rem; + color: #495057; } .form-control-small { - width: 50px; - display: inline + width: 54px !important; + display: inline; + background-color: #f8f9fa; + border: 1px solid #ced4da; + border-radius: .25rem; + color: #495057; +} +.form-control-large{ + background-color: #f8f9fa; + border: 1px solid #ced4da; + border-radius: .25rem; + color: #495057; } - .padding-right-button { margin: 7px; } @@ -318,7 +331,35 @@ p.payment_module a.buckaroo_paylink:after { outline: 0.1875rem solid #FF0000; } /*iDeal slidedown div*/ - +#bk-ideal-form { + margin-bottom: 15px; +} +.bk-method-issuer { + display: flex; + vertical-align: middle; + margin-bottom: 5px; +} +.bk-credit-card { + display: flex; + vertical-align: middle; + margin-bottom: 5px; +} +.bk-issuer-logo { + max-height: 25px; + width: auto; + margin: 0 5px; +} +.bk-creditcard-logo { + max-height: 25px; + width: auto; + margin: 0 5px; +} +.bk-issuer-label { + display: flex; + align-items: center; + justify-content: space-between; + margin: 0; +} .bankRadioBtn { margin-left: 20px; @@ -340,4 +381,110 @@ table.bankdetails td.label, table.bankdetails td.labelvalue { .buckaroo-validation-message { color:#FF0000; margin-top:5px; -} \ No newline at end of file +} + +.payment-option label img { + float: left; + margin-right: 10px; + max-height: 25px; + width: 32px; +} + +/* paybybank,ideal, creditcards */ + +.bk-toggle-down { + background-image: url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.293 9.293a1 1 0 0 1 1.414 0L12 14.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414z' fill='%230D0D0D'/%3E%3C/svg%3E%0A"); +} +.bk-toggle-up { + background-image: url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.293 7.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414L12 9.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l6-6z' fill='%230D0D0D'/%3E%3C/svg%3E%0A"); +} + +.bk-toggle { + height: 20px; + width: 20px; +} +.bk-toggle-wrap { + display: flex; + align-items: center; + cursor: pointer; +} +@media screen and (max-width: 768px) { + .bk-method-selector .bk-issuer-label img { + max-width: 25px; + margin: 0 5px; + } + .bk-method-selector .bk-method-issuer { + display: flex; + } + .bk-method-selector .bk-issuer-label { + flex: 1; + text-align: left; + } +} +@media screen and (min-width: 768px) { + .bk-creditcard-selector img, .bk-ideal-selector img{ + max-width: 25px; + margin: 0 5px; + } + + .bk-creditcard-selector .bk-issuer-label, .bk-ideal-selector .bk-issuer-label { + flex: 1; + text-align: left; + } + .bk-method-toggle-list { + display: flex; + justify-content: center; + height: 20px; + margin:10px 0; + } + + .bk-toggle-text { + margin-left: 10px; + font-weight: bold; + } + .bk-paybybank-selector { + display: flex; + flex-wrap: wrap; + } + .bk-paybybank-selector .bk-method-issuer { + flex: 25% 0; + min-width: 55px; + } + + .bk-paybybank-selector .bk-issuer-label strong { + display: block; + text-align: center; + font-size: 12px; + flex: 100% 0 0; + color: #6d6d6d; + } + + .bk-paybybank-selector input:checked + .bk-issuer-label strong { + color: #000; + } + + .bk-paybybank-selector input:checked + .bk-issuer-label { + background-color: #EDEDED; + border-radius: 5px; + } + .bk-paybybank-selector .bk-issuer-label{ + padding-bottom: 5px; + cursor: pointer; + display: flex; + flex-direction: column; + padding-top: 5px; + text-align: center; + } + + + .bk-paybybank-selector .bk-issuer-label img { + padding: 10px 20px; + width: 70px; + } + + .bk-paybybank-selector input { + display:none; + } +} + +/* end paybybank, ideal, creditcards */ diff --git a/views/css/buckaroo3.vue.css b/views/css/buckaroo3.vue.css new file mode 100644 index 000000000..f3176e6ed --- /dev/null +++ b/views/css/buckaroo3.vue.css @@ -0,0 +1,5 @@ +@import"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap";.fa,.fas,.far,.fal,.fad,.fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.3333333333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:solid .08em #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fas.fa-pull-left,.far.fa-pull-left,.fal.fa-pull-left,.fab.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fas.fa-pull-right,.far.fa-pull-right,.fal.fa-pull-right,.fab.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scale(-1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-flip-both{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-abacus:before{content:"\f640"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acorn:before{content:"\f6ae"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-conditioner:before{content:"\f8f4"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-alarm-clock:before{content:"\f34e"}.fa-alarm-exclamation:before{content:"\f843"}.fa-alarm-plus:before{content:"\f844"}.fa-alarm-snooze:before{content:"\f845"}.fa-album:before{content:"\f89f"}.fa-album-collection:before{content:"\f8a0"}.fa-algolia:before{content:"\f36c"}.fa-alicorn:before{content:"\f6b0"}.fa-alien:before{content:"\f8f5"}.fa-alien-monster:before{content:"\f8f6"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-align-slash:before{content:"\f846"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-amp-guitar:before{content:"\f8a1"}.fa-analytics:before{content:"\f643"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angel:before{content:"\f779"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-crate:before{content:"\f6b1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-alt-down:before{content:"\f354"}.fa-arrow-alt-from-bottom:before{content:"\f346"}.fa-arrow-alt-from-left:before{content:"\f347"}.fa-arrow-alt-from-right:before{content:"\f348"}.fa-arrow-alt-from-top:before{content:"\f349"}.fa-arrow-alt-left:before{content:"\f355"}.fa-arrow-alt-right:before{content:"\f356"}.fa-arrow-alt-square-down:before{content:"\f350"}.fa-arrow-alt-square-left:before{content:"\f351"}.fa-arrow-alt-square-right:before{content:"\f352"}.fa-arrow-alt-square-up:before{content:"\f353"}.fa-arrow-alt-to-bottom:before{content:"\f34a"}.fa-arrow-alt-to-left:before{content:"\f34b"}.fa-arrow-alt-to-right:before{content:"\f34c"}.fa-arrow-alt-to-top:before{content:"\f34d"}.fa-arrow-alt-up:before{content:"\f357"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-from-bottom:before{content:"\f342"}.fa-arrow-from-left:before{content:"\f343"}.fa-arrow-from-right:before{content:"\f344"}.fa-arrow-from-top:before{content:"\f345"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-square-down:before{content:"\f339"}.fa-arrow-square-left:before{content:"\f33a"}.fa-arrow-square-right:before{content:"\f33b"}.fa-arrow-square-up:before{content:"\f33c"}.fa-arrow-to-bottom:before{content:"\f33d"}.fa-arrow-to-left:before{content:"\f33e"}.fa-arrow-to-right:before{content:"\f340"}.fa-arrow-to-top:before{content:"\f341"}.fa-arrow-up:before{content:"\f062"}.fa-arrows:before{content:"\f047"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-arrows-h:before{content:"\f07e"}.fa-arrows-v:before{content:"\f07d"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-atom-alt:before{content:"\f5d3"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-axe:before{content:"\f6b2"}.fa-axe-battle:before{content:"\f6b3"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backpack:before{content:"\f5d4"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-bacteria:before{content:"\e059"}.fa-bacterium:before{content:"\e05a"}.fa-badge:before{content:"\f335"}.fa-badge-check:before{content:"\f336"}.fa-badge-dollar:before{content:"\f645"}.fa-badge-percent:before{content:"\f646"}.fa-badge-sheriff:before{content:"\f8a2"}.fa-badger-honey:before{content:"\f6b4"}.fa-bags-shopping:before{content:"\f847"}.fa-bahai:before{content:"\f666"}.fa-balance-scale:before{content:"\f24e"}.fa-balance-scale-left:before{content:"\f515"}.fa-balance-scale-right:before{content:"\f516"}.fa-ball-pile:before{content:"\f77e"}.fa-ballot:before{content:"\f732"}.fa-ballot-check:before{content:"\f733"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-banjo:before{content:"\f8a3"}.fa-barcode:before{content:"\f02a"}.fa-barcode-alt:before{content:"\f463"}.fa-barcode-read:before{content:"\f464"}.fa-barcode-scan:before{content:"\f465"}.fa-bars:before{content:"\f0c9"}.fa-baseball:before{content:"\f432"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-basketball-hoop:before{content:"\f435"}.fa-bat:before{content:"\f6b5"}.fa-bath:before{content:"\f2cd"}.fa-battery-bolt:before{content:"\f376"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-slash:before{content:"\f377"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-bed-alt:before{content:"\f8f7"}.fa-bed-bunk:before{content:"\f8f8"}.fa-bed-empty:before{content:"\f8f9"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-exclamation:before{content:"\f848"}.fa-bell-on:before{content:"\f8fa"}.fa-bell-plus:before{content:"\f849"}.fa-bell-school:before{content:"\f5d5"}.fa-bell-school-slash:before{content:"\f5d6"}.fa-bell-slash:before{content:"\f1f6"}.fa-bells:before{content:"\f77f"}.fa-betamax:before{content:"\f8a4"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-biking:before{content:"\f84a"}.fa-biking-mountain:before{content:"\f84b"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blanket:before{content:"\f498"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blinds:before{content:"\f8fb"}.fa-blinds-open:before{content:"\f8fc"}.fa-blinds-raised:before{content:"\f8fd"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bone-break:before{content:"\f5d8"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-alt:before{content:"\f5d9"}.fa-book-dead:before{content:"\f6b7"}.fa-book-heart:before{content:"\f499"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-book-spells:before{content:"\f6b8"}.fa-book-user:before{content:"\f7e7"}.fa-bookmark:before{content:"\f02e"}.fa-books:before{content:"\f5db"}.fa-books-medical:before{content:"\f7e8"}.fa-boombox:before{content:"\f8a5"}.fa-boot:before{content:"\f782"}.fa-booth-curtain:before{content:"\f734"}.fa-bootstrap:before{content:"\f836"}.fa-border-all:before{content:"\f84c"}.fa-border-bottom:before{content:"\f84d"}.fa-border-center-h:before{content:"\f89c"}.fa-border-center-v:before{content:"\f89d"}.fa-border-inner:before{content:"\f84e"}.fa-border-left:before{content:"\f84f"}.fa-border-none:before{content:"\f850"}.fa-border-outer:before{content:"\f851"}.fa-border-right:before{content:"\f852"}.fa-border-style:before{content:"\f853"}.fa-border-style-alt:before{content:"\f854"}.fa-border-top:before{content:"\f855"}.fa-bow-arrow:before{content:"\f6b9"}.fa-bowling-ball:before{content:"\f436"}.fa-bowling-pins:before{content:"\f437"}.fa-box:before{content:"\f466"}.fa-box-alt:before{content:"\f49a"}.fa-box-ballot:before{content:"\f735"}.fa-box-check:before{content:"\f467"}.fa-box-fragile:before{content:"\f49b"}.fa-box-full:before{content:"\f49c"}.fa-box-heart:before{content:"\f49d"}.fa-box-open:before{content:"\f49e"}.fa-box-tissue:before{content:"\e05b"}.fa-box-up:before{content:"\f49f"}.fa-box-usd:before{content:"\f4a0"}.fa-boxes:before{content:"\f468"}.fa-boxes-alt:before{content:"\f4a1"}.fa-boxing-glove:before{content:"\f438"}.fa-brackets:before{content:"\f7e9"}.fa-brackets-curly:before{content:"\f7ea"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-loaf:before{content:"\f7eb"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-bring-forward:before{content:"\f856"}.fa-bring-front:before{content:"\f857"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-browser:before{content:"\f37e"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-bullseye-arrow:before{content:"\f648"}.fa-bullseye-pointer:before{content:"\f649"}.fa-burger-soda:before{content:"\f858"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-burrito:before{content:"\f7ed"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-bus-school:before{content:"\f5dd"}.fa-business-time:before{content:"\f64a"}.fa-buy-n-large:before{content:"\f8a6"}.fa-buysellads:before{content:"\f20d"}.fa-cabinet-filing:before{content:"\f64b"}.fa-cactus:before{content:"\f8a7"}.fa-calculator:before{content:"\f1ec"}.fa-calculator-alt:before{content:"\f64c"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-edit:before{content:"\f333"}.fa-calendar-exclamation:before{content:"\f334"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-star:before{content:"\f736"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camcorder:before{content:"\f8a8"}.fa-camera:before{content:"\f030"}.fa-camera-alt:before{content:"\f332"}.fa-camera-home:before{content:"\f8fe"}.fa-camera-movie:before{content:"\f8a9"}.fa-camera-polaroid:before{content:"\f8aa"}.fa-camera-retro:before{content:"\f083"}.fa-campfire:before{content:"\f6ba"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candle-holder:before{content:"\f6bc"}.fa-candy-cane:before{content:"\f786"}.fa-candy-corn:before{content:"\f6bd"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-building:before{content:"\f859"}.fa-car-bump:before{content:"\f5e0"}.fa-car-bus:before{content:"\f85a"}.fa-car-crash:before{content:"\f5e1"}.fa-car-garage:before{content:"\f5e2"}.fa-car-mechanic:before{content:"\f5e3"}.fa-car-side:before{content:"\f5e4"}.fa-car-tilt:before{content:"\f5e5"}.fa-car-wash:before{content:"\f5e6"}.fa-caravan:before{content:"\f8ff"}.fa-caravan-alt:before{content:"\e000"}.fa-caret-circle-down:before{content:"\f32d"}.fa-caret-circle-left:before{content:"\f32e"}.fa-caret-circle-right:before{content:"\f330"}.fa-caret-circle-up:before{content:"\f331"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cars:before{content:"\f85b"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cassette-tape:before{content:"\f8ab"}.fa-cat:before{content:"\f6be"}.fa-cat-space:before{content:"\e001"}.fa-cauldron:before{content:"\f6bf"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-cctv:before{content:"\f8ac"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chair-office:before{content:"\f6c1"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-line-down:before{content:"\f64d"}.fa-chart-network:before{content:"\f78a"}.fa-chart-pie:before{content:"\f200"}.fa-chart-pie-alt:before{content:"\f64e"}.fa-chart-scatter:before{content:"\f7ee"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-cheese-swiss:before{content:"\f7f0"}.fa-cheeseburger:before{content:"\f7f1"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-bishop-alt:before{content:"\f43b"}.fa-chess-board:before{content:"\f43c"}.fa-chess-clock:before{content:"\f43d"}.fa-chess-clock-alt:before{content:"\f43e"}.fa-chess-king:before{content:"\f43f"}.fa-chess-king-alt:before{content:"\f440"}.fa-chess-knight:before{content:"\f441"}.fa-chess-knight-alt:before{content:"\f442"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-pawn-alt:before{content:"\f444"}.fa-chess-queen:before{content:"\f445"}.fa-chess-queen-alt:before{content:"\f446"}.fa-chess-rook:before{content:"\f447"}.fa-chess-rook-alt:before{content:"\f448"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-double-down:before{content:"\f322"}.fa-chevron-double-left:before{content:"\f323"}.fa-chevron-double-right:before{content:"\f324"}.fa-chevron-double-up:before{content:"\f325"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-square-down:before{content:"\f329"}.fa-chevron-square-left:before{content:"\f32a"}.fa-chevron-square-right:before{content:"\f32b"}.fa-chevron-square-up:before{content:"\f32c"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chimney:before{content:"\f78b"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clarinet:before{content:"\f8ad"}.fa-claw-marks:before{content:"\f6c2"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clipboard-list-check:before{content:"\f737"}.fa-clipboard-prescription:before{content:"\f5e8"}.fa-clipboard-user:before{content:"\f7f3"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-drizzle:before{content:"\f738"}.fa-cloud-hail:before{content:"\f739"}.fa-cloud-hail-mixed:before{content:"\f73a"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-music:before{content:"\f8ae"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-rainbow:before{content:"\f73e"}.fa-cloud-showers:before{content:"\f73f"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sleet:before{content:"\f741"}.fa-cloud-snow:before{content:"\f742"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload:before{content:"\f0ee"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudflare:before{content:"\e07d"}.fa-clouds:before{content:"\f744"}.fa-clouds-moon:before{content:"\f745"}.fa-clouds-sun:before{content:"\f746"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-club:before{content:"\f327"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-code-commit:before{content:"\f386"}.fa-code-merge:before{content:"\f387"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-coffee-pot:before{content:"\e002"}.fa-coffee-togo:before{content:"\f6c5"}.fa-coffin:before{content:"\f6c6"}.fa-coffin-cross:before{content:"\e051"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coin:before{content:"\f85c"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comet:before{content:"\e003"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-alt-check:before{content:"\f4a2"}.fa-comment-alt-dollar:before{content:"\f650"}.fa-comment-alt-dots:before{content:"\f4a3"}.fa-comment-alt-edit:before{content:"\f4a4"}.fa-comment-alt-exclamation:before{content:"\f4a5"}.fa-comment-alt-lines:before{content:"\f4a6"}.fa-comment-alt-medical:before{content:"\f7f4"}.fa-comment-alt-minus:before{content:"\f4a7"}.fa-comment-alt-music:before{content:"\f8af"}.fa-comment-alt-plus:before{content:"\f4a8"}.fa-comment-alt-slash:before{content:"\f4a9"}.fa-comment-alt-smile:before{content:"\f4aa"}.fa-comment-alt-times:before{content:"\f4ab"}.fa-comment-check:before{content:"\f4ac"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-edit:before{content:"\f4ae"}.fa-comment-exclamation:before{content:"\f4af"}.fa-comment-lines:before{content:"\f4b0"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-minus:before{content:"\f4b1"}.fa-comment-music:before{content:"\f8b0"}.fa-comment-plus:before{content:"\f4b2"}.fa-comment-slash:before{content:"\f4b3"}.fa-comment-smile:before{content:"\f4b4"}.fa-comment-times:before{content:"\f4b5"}.fa-comments:before{content:"\f086"}.fa-comments-alt:before{content:"\f4b6"}.fa-comments-alt-dollar:before{content:"\f652"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compass-slash:before{content:"\f5e9"}.fa-compress:before{content:"\f066"}.fa-compress-alt:before{content:"\f422"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-compress-wide:before{content:"\f326"}.fa-computer-classic:before{content:"\f8b1"}.fa-computer-speaker:before{content:"\f8b2"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-construction:before{content:"\f85d"}.fa-container-storage:before{content:"\f4b7"}.fa-contao:before{content:"\f26d"}.fa-conveyor-belt:before{content:"\f46e"}.fa-conveyor-belt-alt:before{content:"\f46f"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-corn:before{content:"\f6c7"}.fa-cotton-bureau:before{content:"\f89e"}.fa-couch:before{content:"\f4b8"}.fa-cow:before{content:"\f6c8"}.fa-cowbell:before{content:"\f8b3"}.fa-cowbell-more:before{content:"\f8b4"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-credit-card-blank:before{content:"\f389"}.fa-credit-card-front:before{content:"\f38a"}.fa-cricket:before{content:"\f449"}.fa-critical-role:before{content:"\f6c9"}.fa-croissant:before{content:"\f7f6"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-crutches:before{content:"\f7f8"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-curling:before{content:"\f44a"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dagger:before{content:"\f6cb"}.fa-dailymotion:before{content:"\e052"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-debug:before{content:"\f7f9"}.fa-deer:before{content:"\f78e"}.fa-deer-rudolph:before{content:"\f78f"}.fa-deezer:before{content:"\e077"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-desktop-alt:before{content:"\f390"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dewpoint:before{content:"\f748"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diamond:before{content:"\f219"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d10:before{content:"\f6cd"}.fa-dice-d12:before{content:"\f6ce"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d4:before{content:"\f6d0"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-d8:before{content:"\f6d2"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digging:before{content:"\f85e"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-diploma:before{content:"\f5ea"}.fa-directions:before{content:"\f5eb"}.fa-disc-drive:before{content:"\f8b5"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-disease:before{content:"\f7fa"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-do-not-enter:before{content:"\f5ec"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dog-leashed:before{content:"\f6d4"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-empty:before{content:"\f473"}.fa-dolly-flatbed:before{content:"\f474"}.fa-dolly-flatbed-alt:before{content:"\f475"}.fa-dolly-flatbed-empty:before{content:"\f476"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-circle:before{content:"\f5ed"}.fa-draw-polygon:before{content:"\f5ee"}.fa-draw-square:before{content:"\f5ef"}.fa-dreidel:before{content:"\f792"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-drone:before{content:"\f85f"}.fa-drone-alt:before{content:"\f860"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick:before{content:"\f6d6"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dryer:before{content:"\f861"}.fa-dryer-alt:before{content:"\f862"}.fa-duck:before{content:"\f6d8"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-ear:before{content:"\f5f0"}.fa-ear-muffs:before{content:"\f795"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-eclipse:before{content:"\f749"}.fa-eclipse-alt:before{content:"\f74a"}.fa-edge:before{content:"\f282"}.fa-edge-legacy:before{content:"\e078"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-egg-fried:before{content:"\f7fc"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-elephant:before{content:"\f6da"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-h-alt:before{content:"\f39b"}.fa-ellipsis-v:before{content:"\f142"}.fa-ellipsis-v-alt:before{content:"\f39c"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-empty-set:before{content:"\f656"}.fa-engine-warning:before{content:"\f5f2"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-dollar:before{content:"\f657"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange:before{content:"\f0ec"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-square:before{content:"\f321"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-alt:before{content:"\f424"}.fa-expand-arrows:before{content:"\f31d"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expand-wide:before{content:"\f320"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link:before{content:"\f08e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square:before{content:"\f14c"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-evil:before{content:"\f6db"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fan:before{content:"\f863"}.fa-fan-table:before{content:"\e004"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-farm:before{content:"\f864"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-faucet:before{content:"\e005"}.fa-faucet-drip:before{content:"\e006"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-field-hockey:before{content:"\f44c"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-certificate:before{content:"\f5f3"}.fa-file-chart-line:before{content:"\f659"}.fa-file-chart-pie:before{content:"\f65a"}.fa-file-check:before{content:"\f316"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-edit:before{content:"\f31c"}.fa-file-excel:before{content:"\f1c3"}.fa-file-exclamation:before{content:"\f31a"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-minus:before{content:"\f318"}.fa-file-music:before{content:"\f8b6"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-plus:before{content:"\f319"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-search:before{content:"\f865"}.fa-file-signature:before{content:"\f573"}.fa-file-spreadsheet:before{content:"\f65b"}.fa-file-times:before{content:"\f317"}.fa-file-upload:before{content:"\f574"}.fa-file-user:before{content:"\f65c"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-files-medical:before{content:"\f7fd"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-film-alt:before{content:"\f3a0"}.fa-film-canister:before{content:"\f8b7"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-fire-smoke:before{content:"\f74b"}.fa-firefox:before{content:"\f269"}.fa-firefox-browser:before{content:"\e007"}.fa-fireplace:before{content:"\f79a"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fish-cooked:before{content:"\f7fe"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-alt:before{content:"\f74c"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flame:before{content:"\f6df"}.fa-flashlight:before{content:"\f8b8"}.fa-flask:before{content:"\f0c3"}.fa-flask-poison:before{content:"\f6e0"}.fa-flask-potion:before{content:"\f6e1"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flower:before{content:"\f7ff"}.fa-flower-daffodil:before{content:"\f800"}.fa-flower-tulip:before{content:"\f801"}.fa-flushed:before{content:"\f579"}.fa-flute:before{content:"\f8b9"}.fa-flux-capacitor:before{content:"\f8ba"}.fa-fly:before{content:"\f417"}.fa-fog:before{content:"\f74e"}.fa-folder:before{content:"\f07b"}.fa-folder-download:before{content:"\e053"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-folder-times:before{content:"\f65f"}.fa-folder-tree:before{content:"\f802"}.fa-folder-upload:before{content:"\e054"}.fa-folders:before{content:"\f660"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-font-case:before{content:"\f866"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-football-helmet:before{content:"\f44f"}.fa-forklift:before{content:"\f47a"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-fragile:before{content:"\f4bb"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-french-fries:before{content:"\f803"}.fa-frog:before{content:"\f52e"}.fa-frosty-head:before{content:"\f79b"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-function:before{content:"\f661"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-galaxy:before{content:"\e008"}.fa-game-board:before{content:"\f867"}.fa-game-board-alt:before{content:"\f868"}.fa-game-console-handheld:before{content:"\f8bb"}.fa-gamepad:before{content:"\f11b"}.fa-gamepad-alt:before{content:"\f8bc"}.fa-garage:before{content:"\e009"}.fa-garage-car:before{content:"\e00a"}.fa-garage-open:before{content:"\e00b"}.fa-gas-pump:before{content:"\f52f"}.fa-gas-pump-slash:before{content:"\f5f4"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gift-card:before{content:"\f663"}.fa-gifts:before{content:"\f79c"}.fa-gingerbread-man:before{content:"\f79d"}.fa-git:before{content:"\f1d3"}.fa-git-alt:before{content:"\f841"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass:before{content:"\f804"}.fa-glass-champagne:before{content:"\f79e"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-citrus:before{content:"\f869"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glass-whiskey-rocks:before{content:"\f7a1"}.fa-glasses:before{content:"\f530"}.fa-glasses-alt:before{content:"\f5f5"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-globe-snow:before{content:"\f7a3"}.fa-globe-stand:before{content:"\f5f6"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-golf-club:before{content:"\f451"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-pay:before{content:"\e079"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gramophone:before{content:"\f8bd"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guilded:before{content:"\e07e"}.fa-guitar:before{content:"\f7a6"}.fa-guitar-electric:before{content:"\f8be"}.fa-guitars:before{content:"\f8bf"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-h1:before{content:"\f313"}.fa-h2:before{content:"\f314"}.fa-h3:before{content:"\f315"}.fa-h4:before{content:"\f86a"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hammer-war:before{content:"\f6e4"}.fa-hamsa:before{content:"\f665"}.fa-hand-heart:before{content:"\f4bc"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-box:before{content:"\f47b"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-magic:before{content:"\f6e5"}.fa-hand-holding-medical:before{content:"\e05c"}.fa-hand-holding-seedling:before{content:"\f4bf"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-holding-water:before{content:"\f4c1"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-receiving:before{content:"\f47c"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-sparkles:before{content:"\e05d"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-heart:before{content:"\f4c3"}.fa-hands-helping:before{content:"\f4c4"}.fa-hands-usd:before{content:"\f4c5"}.fa-hands-wash:before{content:"\e05e"}.fa-handshake:before{content:"\f2b5"}.fa-handshake-alt:before{content:"\f4c6"}.fa-handshake-alt-slash:before{content:"\e05f"}.fa-handshake-slash:before{content:"\e060"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-chef:before{content:"\f86b"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-santa:before{content:"\f7a7"}.fa-hat-winter:before{content:"\f7a8"}.fa-hat-witch:before{content:"\f6e7"}.fa-hat-wizard:before{content:"\f6e8"}.fa-hdd:before{content:"\f0a0"}.fa-head-side:before{content:"\f6e9"}.fa-head-side-brain:before{content:"\f808"}.fa-head-side-cough:before{content:"\e061"}.fa-head-side-cough-slash:before{content:"\e062"}.fa-head-side-headphones:before{content:"\f8c2"}.fa-head-side-mask:before{content:"\e063"}.fa-head-side-medical:before{content:"\f809"}.fa-head-side-virus:before{content:"\e064"}.fa-head-vr:before{content:"\f6ea"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heart-circle:before{content:"\f4c7"}.fa-heart-rate:before{content:"\f5f8"}.fa-heart-square:before{content:"\f4c8"}.fa-heartbeat:before{content:"\f21e"}.fa-heat:before{content:"\e00c"}.fa-helicopter:before{content:"\f533"}.fa-helmet-battle:before{content:"\f6eb"}.fa-hexagon:before{content:"\f312"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hive:before{content:"\e07f"}.fa-hockey-mask:before{content:"\f6ee"}.fa-hockey-puck:before{content:"\f453"}.fa-hockey-sticks:before{content:"\f454"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-home-alt:before{content:"\f80a"}.fa-home-heart:before{content:"\f4c9"}.fa-home-lg:before{content:"\f80b"}.fa-home-lg-alt:before{content:"\f80c"}.fa-hood-cloak:before{content:"\f6ef"}.fa-hooli:before{content:"\f427"}.fa-horizontal-rule:before{content:"\f86c"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-horse-saddle:before{content:"\f8c3"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hospital-user:before{content:"\f80d"}.fa-hospitals:before{content:"\f80e"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house:before{content:"\e00d"}.fa-house-damage:before{content:"\f6f1"}.fa-house-day:before{content:"\e00e"}.fa-house-flood:before{content:"\f74f"}.fa-house-leave:before{content:"\e00f"}.fa-house-night:before{content:"\e010"}.fa-house-return:before{content:"\e011"}.fa-house-signal:before{content:"\e012"}.fa-house-user:before{content:"\e065"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-humidity:before{content:"\f750"}.fa-hurricane:before{content:"\f751"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-ice-skate:before{content:"\f7ac"}.fa-icicles:before{content:"\f7ad"}.fa-icons:before{content:"\f86d"}.fa-icons-alt:before{content:"\f86e"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-ideal:before{content:"\e013"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-image-polaroid:before{content:"\f8c4"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-inbox-in:before{content:"\f310"}.fa-inbox-out:before{content:"\f311"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-industry-alt:before{content:"\f3b3"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-info-square:before{content:"\f30f"}.fa-inhaler:before{content:"\f5f9"}.fa-innosoft:before{content:"\e080"}.fa-instagram:before{content:"\f16d"}.fa-instagram-square:before{content:"\e055"}.fa-instalod:before{content:"\e081"}.fa-integral:before{content:"\f667"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-intersection:before{content:"\f668"}.fa-inventory:before{content:"\f480"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-island-tropical:before{content:"\f811"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-jack-o-lantern:before{content:"\f30e"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-joystick:before{content:"\f8c5"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-jug:before{content:"\f8c6"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-kazoo:before{content:"\f8c7"}.fa-kerning:before{content:"\f86f"}.fa-key:before{content:"\f084"}.fa-key-skeleton:before{content:"\f6f3"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-keynote:before{content:"\f66c"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kidneys:before{content:"\f5fb"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kite:before{content:"\f6f4"}.fa-kiwi-bird:before{content:"\f535"}.fa-knife-kitchen:before{content:"\f6f5"}.fa-korvue:before{content:"\f42f"}.fa-lambda:before{content:"\f66e"}.fa-lamp:before{content:"\f4ca"}.fa-lamp-desk:before{content:"\e014"}.fa-lamp-floor:before{content:"\e015"}.fa-landmark:before{content:"\f66f"}.fa-landmark-alt:before{content:"\f752"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-house:before{content:"\e066"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lasso:before{content:"\f8c8"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-layer-minus:before{content:"\f5fe"}.fa-layer-plus:before{content:"\f5ff"}.fa-leaf:before{content:"\f06c"}.fa-leaf-heart:before{content:"\f4cb"}.fa-leaf-maple:before{content:"\f6f6"}.fa-leaf-oak:before{content:"\f6f7"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down:before{content:"\f149"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up:before{content:"\f148"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-light-ceiling:before{content:"\e016"}.fa-light-switch:before{content:"\e017"}.fa-light-switch-off:before{content:"\e018"}.fa-light-switch-on:before{content:"\e019"}.fa-lightbulb:before{content:"\f0eb"}.fa-lightbulb-dollar:before{content:"\f670"}.fa-lightbulb-exclamation:before{content:"\f671"}.fa-lightbulb-on:before{content:"\f672"}.fa-lightbulb-slash:before{content:"\f673"}.fa-lights-holiday:before{content:"\f7b2"}.fa-line:before{content:"\f3c0"}.fa-line-columns:before{content:"\f870"}.fa-line-height:before{content:"\f871"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lips:before{content:"\f600"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-music:before{content:"\f8c9"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location:before{content:"\f601"}.fa-location-arrow:before{content:"\f124"}.fa-location-circle:before{content:"\f602"}.fa-location-slash:before{content:"\f603"}.fa-lock:before{content:"\f023"}.fa-lock-alt:before{content:"\f30d"}.fa-lock-open:before{content:"\f3c1"}.fa-lock-open-alt:before{content:"\f3c2"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-long-arrow-up:before{content:"\f176"}.fa-loveseat:before{content:"\f4cc"}.fa-low-vision:before{content:"\f2a8"}.fa-luchador:before{content:"\f455"}.fa-luggage-cart:before{content:"\f59d"}.fa-lungs:before{content:"\f604"}.fa-lungs-virus:before{content:"\e067"}.fa-lyft:before{content:"\f3c3"}.fa-mace:before{content:"\f6f8"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailbox:before{content:"\f813"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-mandolin:before{content:"\f6f9"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-marker-alt-slash:before{content:"\f605"}.fa-map-marker-check:before{content:"\f606"}.fa-map-marker-edit:before{content:"\f607"}.fa-map-marker-exclamation:before{content:"\f608"}.fa-map-marker-minus:before{content:"\f609"}.fa-map-marker-plus:before{content:"\f60a"}.fa-map-marker-question:before{content:"\f60b"}.fa-map-marker-slash:before{content:"\f60c"}.fa-map-marker-smile:before{content:"\f60d"}.fa-map-marker-times:before{content:"\f60e"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-mdb:before{content:"\f8ca"}.fa-meat:before{content:"\f814"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaphone:before{content:"\f675"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microblog:before{content:"\e01a"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microphone-stand:before{content:"\f8cb"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-microwave:before{content:"\e01b"}.fa-mind-share:before{content:"\f677"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-hexagon:before{content:"\f307"}.fa-minus-octagon:before{content:"\f308"}.fa-minus-square:before{content:"\f146"}.fa-mistletoe:before{content:"\f7b4"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mixer:before{content:"\e056"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-mobile-android:before{content:"\f3ce"}.fa-mobile-android-alt:before{content:"\f3cf"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-money-check-edit:before{content:"\f872"}.fa-money-check-edit-alt:before{content:"\f873"}.fa-monitor-heart-rate:before{content:"\f611"}.fa-monkey:before{content:"\f6fb"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-moon-cloud:before{content:"\f754"}.fa-moon-stars:before{content:"\f755"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mountains:before{content:"\f6fd"}.fa-mouse:before{content:"\f8cc"}.fa-mouse-alt:before{content:"\f8cd"}.fa-mouse-pointer:before{content:"\f245"}.fa-mp3-player:before{content:"\f8ce"}.fa-mug:before{content:"\f874"}.fa-mug-hot:before{content:"\f7b6"}.fa-mug-marshmallows:before{content:"\f7b7"}.fa-mug-tea:before{content:"\f875"}.fa-music:before{content:"\f001"}.fa-music-alt:before{content:"\f8cf"}.fa-music-alt-slash:before{content:"\f8d0"}.fa-music-slash:before{content:"\f8d1"}.fa-napster:before{content:"\f3d2"}.fa-narwhal:before{content:"\f6fe"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-octagon:before{content:"\f306"}.fa-octopus-deploy:before{content:"\e082"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-oil-temp:before{content:"\f614"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-omega:before{content:"\f67a"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-orcid:before{content:"\f8d2"}.fa-ornament:before{content:"\f7b8"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-outlet:before{content:"\e01c"}.fa-oven:before{content:"\e01d"}.fa-overline:before{content:"\f876"}.fa-page-break:before{content:"\f877"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-brush-alt:before{content:"\f5a9"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-pallet-alt:before{content:"\f483"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-paragraph-rtl:before{content:"\f878"}.fa-parking:before{content:"\f540"}.fa-parking-circle:before{content:"\f615"}.fa-parking-circle-slash:before{content:"\f616"}.fa-parking-slash:before{content:"\f617"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paw-alt:before{content:"\f701"}.fa-paw-claws:before{content:"\f702"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pegasus:before{content:"\f703"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil:before{content:"\f040"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-paintbrush:before{content:"\f618"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-pennant:before{content:"\f456"}.fa-penny-arcade:before{content:"\f704"}.fa-people-arrows:before{content:"\e068"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-perbyte:before{content:"\e083"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-person-carry:before{content:"\f4cf"}.fa-person-dolly:before{content:"\f4d0"}.fa-person-dolly-empty:before{content:"\f4d1"}.fa-person-sign:before{content:"\f757"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before{content:"\f879"}.fa-phone-laptop:before{content:"\f87a"}.fa-phone-office:before{content:"\f67d"}.fa-phone-plus:before{content:"\f4d2"}.fa-phone-rotary:before{content:"\f8d3"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-square-alt:before{content:"\f87b"}.fa-phone-volume:before{content:"\f2a0"}.fa-photo-video:before{content:"\f87c"}.fa-php:before{content:"\f457"}.fa-pi:before{content:"\f67e"}.fa-piano:before{content:"\f8d4"}.fa-piano-keyboard:before{content:"\f8d5"}.fa-pie:before{content:"\f705"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-square:before{content:"\e01e"}.fa-pig:before{content:"\f706"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza:before{content:"\f817"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-alt:before{content:"\f3de"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-plane-slash:before{content:"\e069"}.fa-planet-moon:before{content:"\e01f"}.fa-planet-ringed:before{content:"\e020"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-hexagon:before{content:"\f300"}.fa-plus-octagon:before{content:"\f301"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-podium:before{content:"\f680"}.fa-podium-star:before{content:"\f758"}.fa-police-box:before{content:"\e021"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poll-people:before{content:"\f759"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-popcorn:before{content:"\f819"}.fa-portal-enter:before{content:"\e022"}.fa-portal-exit:before{content:"\e023"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-presentation:before{content:"\f685"}.fa-print:before{content:"\f02f"}.fa-print-search:before{content:"\f81a"}.fa-print-slash:before{content:"\f686"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-projector:before{content:"\f8d6"}.fa-pump-medical:before{content:"\e06a"}.fa-pump-soap:before{content:"\e06b"}.fa-pumpkin:before{content:"\f707"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-question-square:before{content:"\f2fd"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-rabbit:before{content:"\f708"}.fa-rabbit-fast:before{content:"\f709"}.fa-racquet:before{content:"\f45a"}.fa-radar:before{content:"\e024"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-radio:before{content:"\f8d7"}.fa-radio-alt:before{content:"\f8d8"}.fa-rainbow:before{content:"\f75b"}.fa-raindrops:before{content:"\f75c"}.fa-ram:before{content:"\f70a"}.fa-ramp-loading:before{content:"\f4d4"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-raygun:before{content:"\e025"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-rectangle-landscape:before{content:"\f2fa"}.fa-rectangle-portrait:before{content:"\f2fb"}.fa-rectangle-wide:before{content:"\f2fc"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-refrigerator:before{content:"\e026"}.fa-registered:before{content:"\f25d"}.fa-remove-format:before{content:"\f87d"}.fa-renren:before{content:"\f18b"}.fa-repeat:before{content:"\f363"}.fa-repeat-1:before{content:"\f365"}.fa-repeat-1-alt:before{content:"\f366"}.fa-repeat-alt:before{content:"\f364"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-retweet-alt:before{content:"\f361"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-rings-wedding:before{content:"\f81b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocket-launch:before{content:"\e027"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-route-highway:before{content:"\f61a"}.fa-route-interstate:before{content:"\f61b"}.fa-router:before{content:"\f8da"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-triangle:before{content:"\f61c"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-rust:before{content:"\e07a"}.fa-rv:before{content:"\f7be"}.fa-sack:before{content:"\f81c"}.fa-sack-dollar:before{content:"\f81d"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salad:before{content:"\f81e"}.fa-salesforce:before{content:"\f83b"}.fa-sandwich:before{content:"\f81f"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-sausage:before{content:"\f820"}.fa-save:before{content:"\f0c7"}.fa-sax-hot:before{content:"\f8db"}.fa-saxophone:before{content:"\f8dc"}.fa-scalpel:before{content:"\f61d"}.fa-scalpel-path:before{content:"\f61e"}.fa-scanner:before{content:"\f488"}.fa-scanner-image:before{content:"\f8f3"}.fa-scanner-keyboard:before{content:"\f489"}.fa-scanner-touchscreen:before{content:"\f48a"}.fa-scarecrow:before{content:"\f70d"}.fa-scarf:before{content:"\f7c1"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-scroll-old:before{content:"\f70f"}.fa-scrubber:before{content:"\f2f8"}.fa-scythe:before{content:"\f710"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-send-back:before{content:"\f87e"}.fa-send-backward:before{content:"\f87f"}.fa-sensor:before{content:"\e028"}.fa-sensor-alert:before{content:"\e029"}.fa-sensor-fire:before{content:"\e02a"}.fa-sensor-on:before{content:"\e02b"}.fa-sensor-smoke:before{content:"\e02c"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-all:before{content:"\f367"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-sheep:before{content:"\f711"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield:before{content:"\f132"}.fa-shield-alt:before{content:"\f3ed"}.fa-shield-check:before{content:"\f2f7"}.fa-shield-cross:before{content:"\f712"}.fa-shield-virus:before{content:"\e06c"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shipping-timed:before{content:"\f48c"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shish-kebab:before{content:"\f821"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopify:before{content:"\e057"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shovel:before{content:"\f713"}.fa-shovel-snow:before{content:"\f7c3"}.fa-shower:before{content:"\f2cc"}.fa-shredder:before{content:"\f68a"}.fa-shuttle-van:before{content:"\f5b6"}.fa-shuttlecock:before{content:"\f45b"}.fa-sickle:before{content:"\f822"}.fa-sigma:before{content:"\f68b"}.fa-sign:before{content:"\f4d9"}.fa-sign-in:before{content:"\f090"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out:before{content:"\f08b"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signal-1:before{content:"\f68c"}.fa-signal-2:before{content:"\f68d"}.fa-signal-3:before{content:"\f68e"}.fa-signal-4:before{content:"\f68f"}.fa-signal-alt:before{content:"\f690"}.fa-signal-alt-1:before{content:"\f691"}.fa-signal-alt-2:before{content:"\f692"}.fa-signal-alt-3:before{content:"\f693"}.fa-signal-alt-slash:before{content:"\f694"}.fa-signal-slash:before{content:"\f695"}.fa-signal-stream:before{content:"\f8dd"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sink:before{content:"\e06d"}.fa-siren:before{content:"\e02d"}.fa-siren-on:before{content:"\e02e"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-skeleton:before{content:"\f620"}.fa-sketch:before{content:"\f7c6"}.fa-ski-jump:before{content:"\f7c7"}.fa-ski-lift:before{content:"\f7c8"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-cow:before{content:"\f8de"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sledding:before{content:"\f7cb"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-sliders-h-square:before{content:"\f3f0"}.fa-sliders-v:before{content:"\f3f1"}.fa-sliders-v-square:before{content:"\f3f2"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-plus:before{content:"\f5b9"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoke:before{content:"\f760"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snake:before{content:"\f716"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snooze:before{content:"\f880"}.fa-snow-blowing:before{content:"\f761"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowflakes:before{content:"\f7cf"}.fa-snowman:before{content:"\f7d0"}.fa-snowmobile:before{content:"\f7d1"}.fa-snowplow:before{content:"\f7d2"}.fa-soap:before{content:"\e06e"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-solar-system:before{content:"\e02f"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-sort-alt:before{content:"\f883"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-down-alt:before{content:"\f884"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-amount-up-alt:before{content:"\f885"}.fa-sort-circle:before{content:"\e030"}.fa-sort-circle-down:before{content:"\e031"}.fa-sort-circle-up:before{content:"\e032"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-sort-shapes-down:before{content:"\f888"}.fa-sort-shapes-down-alt:before{content:"\f889"}.fa-sort-shapes-up:before{content:"\f88a"}.fa-sort-shapes-up-alt:before{content:"\f88b"}.fa-sort-size-down:before{content:"\f88c"}.fa-sort-size-down-alt:before{content:"\f88d"}.fa-sort-size-up:before{content:"\f88e"}.fa-sort-size-up-alt:before{content:"\f88f"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-soup:before{content:"\f823"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-space-station-moon:before{content:"\e033"}.fa-space-station-moon-alt:before{content:"\e034"}.fa-spade:before{content:"\f2f4"}.fa-sparkles:before{content:"\f890"}.fa-speakap:before{content:"\f3f3"}.fa-speaker:before{content:"\f8df"}.fa-speaker-deck:before{content:"\f83c"}.fa-speakers:before{content:"\f8e0"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spider-black-widow:before{content:"\f718"}.fa-spider-web:before{content:"\f719"}.fa-spinner:before{content:"\f110"}.fa-spinner-third:before{content:"\f3f4"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-sprinkler:before{content:"\e035"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root:before{content:"\f697"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-squirrel:before{content:"\f71a"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stackpath:before{content:"\f842"}.fa-staff:before{content:"\f71b"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-christmas:before{content:"\f7d4"}.fa-star-exclamation:before{content:"\f2f3"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-star-shooting:before{content:"\e036"}.fa-starfighter:before{content:"\e037"}.fa-starfighter-alt:before{content:"\e038"}.fa-stars:before{content:"\f762"}.fa-starship:before{content:"\e039"}.fa-starship-freighter:before{content:"\e03a"}.fa-staylinked:before{content:"\f3f5"}.fa-steak:before{content:"\f824"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-steering-wheel:before{content:"\f622"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stocking:before{content:"\f7d5"}.fa-stomach:before{content:"\f623"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-stopwatch-20:before{content:"\e06f"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-store-alt-slash:before{content:"\e070"}.fa-store-slash:before{content:"\e071"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-stretcher:before{content:"\f825"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-sun-cloud:before{content:"\f763"}.fa-sun-dust:before{content:"\f764"}.fa-sun-haze:before{content:"\f765"}.fa-sunglasses:before{content:"\f892"}.fa-sunrise:before{content:"\f766"}.fa-sunset:before{content:"\f767"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swift:before{content:"\f8e1"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-sword:before{content:"\f71c"}.fa-sword-laser:before{content:"\e03b"}.fa-sword-laser-alt:before{content:"\e03c"}.fa-swords:before{content:"\f71d"}.fa-swords-laser:before{content:"\e03d"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablet-android:before{content:"\f3fb"}.fa-tablet-android-alt:before{content:"\f3fc"}.fa-tablet-rugged:before{content:"\f48f"}.fa-tablets:before{content:"\f490"}.fa-tachometer:before{content:"\f0e4"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tachometer-alt-average:before{content:"\f624"}.fa-tachometer-alt-fast:before{content:"\f625"}.fa-tachometer-alt-fastest:before{content:"\f626"}.fa-tachometer-alt-slow:before{content:"\f627"}.fa-tachometer-alt-slowest:before{content:"\f628"}.fa-tachometer-average:before{content:"\f629"}.fa-tachometer-fast:before{content:"\f62a"}.fa-tachometer-fastest:before{content:"\f62b"}.fa-tachometer-slow:before{content:"\f62c"}.fa-tachometer-slowest:before{content:"\f62d"}.fa-taco:before{content:"\f826"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tally:before{content:"\f69c"}.fa-tanakh:before{content:"\f827"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-tasks-alt:before{content:"\f828"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-telescope:before{content:"\e03e"}.fa-temperature-down:before{content:"\e03f"}.fa-temperature-frigid:before{content:"\f768"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-hot:before{content:"\f76a"}.fa-temperature-low:before{content:"\f76b"}.fa-temperature-up:before{content:"\e040"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-tennis-ball:before{content:"\f45e"}.fa-terminal:before{content:"\f120"}.fa-text:before{content:"\f893"}.fa-text-height:before{content:"\f034"}.fa-text-size:before{content:"\f894"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-theta:before{content:"\f69e"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-thunderstorm:before{content:"\f76c"}.fa-thunderstorm-moon:before{content:"\f76d"}.fa-thunderstorm-sun:before{content:"\f76e"}.fa-ticket:before{content:"\f145"}.fa-ticket-alt:before{content:"\f3ff"}.fa-tiktok:before{content:"\e07b"}.fa-tilde:before{content:"\f69f"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-times-hexagon:before{content:"\f2ee"}.fa-times-octagon:before{content:"\f2f0"}.fa-times-square:before{content:"\f2d3"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tire:before{content:"\f631"}.fa-tire-flat:before{content:"\f632"}.fa-tire-pressure-warning:before{content:"\f633"}.fa-tire-rugged:before{content:"\f634"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toilet-paper-alt:before{content:"\f71f"}.fa-toilet-paper-slash:before{content:"\e072"}.fa-tombstone:before{content:"\f720"}.fa-tombstone-alt:before{content:"\f721"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-toothbrush:before{content:"\f635"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tornado:before{content:"\f76f"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-cone:before{content:"\f636"}.fa-traffic-light:before{content:"\f637"}.fa-traffic-light-go:before{content:"\f638"}.fa-traffic-light-slow:before{content:"\f639"}.fa-traffic-light-stop:before{content:"\f63a"}.fa-trailer:before{content:"\e041"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-transporter:before{content:"\e042"}.fa-transporter-1:before{content:"\e043"}.fa-transporter-2:before{content:"\e044"}.fa-transporter-3:before{content:"\e045"}.fa-transporter-empty:before{content:"\e046"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-trash-undo:before{content:"\f895"}.fa-trash-undo-alt:before{content:"\f896"}.fa-treasure-chest:before{content:"\f723"}.fa-tree:before{content:"\f1bb"}.fa-tree-alt:before{content:"\f400"}.fa-tree-christmas:before{content:"\f7db"}.fa-tree-decorated:before{content:"\f7dc"}.fa-tree-large:before{content:"\f7dd"}.fa-tree-palm:before{content:"\f82b"}.fa-trees:before{content:"\f724"}.fa-trello:before{content:"\f181"}.fa-triangle:before{content:"\f2ec"}.fa-triangle-music:before{content:"\f8e2"}.fa-trophy:before{content:"\f091"}.fa-trophy-alt:before{content:"\f2eb"}.fa-truck:before{content:"\f0d1"}.fa-truck-container:before{content:"\f4dc"}.fa-truck-couch:before{content:"\f4dd"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-truck-plow:before{content:"\f7de"}.fa-truck-ramp:before{content:"\f4e0"}.fa-trumpet:before{content:"\f8e3"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-turkey:before{content:"\f725"}.fa-turntable:before{content:"\f8e4"}.fa-turtle:before{content:"\f726"}.fa-tv:before{content:"\f26c"}.fa-tv-alt:before{content:"\f8e5"}.fa-tv-music:before{content:"\f8e6"}.fa-tv-retro:before{content:"\f401"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typewriter:before{content:"\f8e7"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-ufo:before{content:"\e047"}.fa-ufo-beam:before{content:"\e048"}.fa-uikit:before{content:"\f403"}.fa-umbraco:before{content:"\f8e8"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-uncharted:before{content:"\e084"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-unicorn:before{content:"\f727"}.fa-union:before{content:"\f6a2"}.fa-uniregistry:before{content:"\f404"}.fa-unity:before{content:"\e049"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-unsplash:before{content:"\e07c"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-usb-drive:before{content:"\f8e9"}.fa-usd-circle:before{content:"\f2e8"}.fa-usd-square:before{content:"\f2e9"}.fa-user:before{content:"\f007"}.fa-user-alien:before{content:"\e04a"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-chart:before{content:"\f6a3"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-cowboy:before{content:"\f8ea"}.fa-user-crown:before{content:"\f6a4"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-hard-hat:before{content:"\f82c"}.fa-user-headset:before{content:"\f82d"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-md-chat:before{content:"\f82e"}.fa-user-minus:before{content:"\f503"}.fa-user-music:before{content:"\f8eb"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-robot:before{content:"\e04b"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-user-unlock:before{content:"\e058"}.fa-user-visor:before{content:"\e04c"}.fa-users:before{content:"\f0c0"}.fa-users-class:before{content:"\f63d"}.fa-users-cog:before{content:"\f509"}.fa-users-crown:before{content:"\f6a5"}.fa-users-medical:before{content:"\f830"}.fa-users-slash:before{content:"\e073"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-fork:before{content:"\f2e3"}.fa-utensil-knife:before{content:"\f2e4"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-utensils-alt:before{content:"\f2e6"}.fa-vaadin:before{content:"\f408"}.fa-vacuum:before{content:"\e04d"}.fa-vacuum-robot:before{content:"\e04e"}.fa-value-absolute:before{content:"\f6a6"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-vest:before{content:"\e085"}.fa-vest-patches:before{content:"\e086"}.fa-vhs:before{content:"\f8ec"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-plus:before{content:"\f4e1"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-violin:before{content:"\f8ed"}.fa-virus:before{content:"\e074"}.fa-virus-slash:before{content:"\e075"}.fa-viruses:before{content:"\e076"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-voicemail:before{content:"\f897"}.fa-volcano:before{content:"\f770"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume:before{content:"\f6a8"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-slash:before{content:"\f2e2"}.fa-volume-up:before{content:"\f028"}.fa-vote-nay:before{content:"\f771"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-wagon-covered:before{content:"\f8ee"}.fa-walker:before{content:"\f831"}.fa-walkie-talkie:before{content:"\f8ef"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-wand:before{content:"\f72a"}.fa-wand-magic:before{content:"\f72b"}.fa-warehouse:before{content:"\f494"}.fa-warehouse-alt:before{content:"\f495"}.fa-washer:before{content:"\f898"}.fa-watch:before{content:"\f2e1"}.fa-watch-calculator:before{content:"\f8f0"}.fa-watch-fitness:before{content:"\f63e"}.fa-watchman-monitoring:before{content:"\e087"}.fa-water:before{content:"\f773"}.fa-water-lower:before{content:"\f774"}.fa-water-rise:before{content:"\f775"}.fa-wave-sine:before{content:"\f899"}.fa-wave-square:before{content:"\f83e"}.fa-wave-triangle:before{content:"\f89a"}.fa-waveform:before{content:"\f8f1"}.fa-waveform-path:before{content:"\f8f2"}.fa-waze:before{content:"\f83f"}.fa-webcam:before{content:"\f832"}.fa-webcam-slash:before{content:"\f833"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whale:before{content:"\f72c"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheat:before{content:"\f72d"}.fa-wheelchair:before{content:"\f193"}.fa-whistle:before{content:"\f460"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wifi-1:before{content:"\f6aa"}.fa-wifi-2:before{content:"\f6ab"}.fa-wifi-slash:before{content:"\f6ac"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-wind-turbine:before{content:"\f89b"}.fa-wind-warning:before{content:"\f776"}.fa-window:before{content:"\f40e"}.fa-window-alt:before{content:"\f40f"}.fa-window-close:before{content:"\f410"}.fa-window-frame:before{content:"\e04f"}.fa-window-frame-open:before{content:"\e050"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-windsock:before{content:"\f777"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wodu:before{content:"\e088"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wreath:before{content:"\f7e2"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url(/modules/buckaroo3/views/fonts/fa-brands-400-731b74d3.eot);src:url(/modules/buckaroo3/views/fonts/fa-brands-400-731b74d3.eot?#iefix) format("embedded-opentype"),url(/modules/buckaroo3/views/fonts/fa-brands-400-39c658ef.woff2) format("woff2"),url(/modules/buckaroo3/views/fonts/fa-brands-400-2731bb66.woff) format("woff"),url(/modules/buckaroo3/views/fonts/fa-brands-400-e428f5fa.ttf) format("truetype"),url(/modules/buckaroo3/views/media/fa-brands-400-d23f598c.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands";font-weight:400}@font-face{font-family:"Font Awesome 5 Pro";font-style:normal;font-weight:300;font-display:block;src:url(/modules/buckaroo3/views/fonts/fa-light-300-8a6cde2b.eot);src:url(/modules/buckaroo3/views/fonts/fa-light-300-8a6cde2b.eot?#iefix) format("embedded-opentype"),url(/modules/buckaroo3/views/fonts/fa-light-300-1ddc6ae0.woff2) format("woff2"),url(/modules/buckaroo3/views/fonts/fa-light-300-c422c702.woff) format("woff"),url(/modules/buckaroo3/views/fonts/fa-light-300-b5f9cd44.ttf) format("truetype"),url(/modules/buckaroo3/views/media/fa-light-300-fbc3c033.svg#fontawesome) format("svg")}.fal{font-family:"Font Awesome 5 Pro";font-weight:300}@font-face{font-family:"Font Awesome 5 Pro";font-style:normal;font-weight:400;font-display:block;src:url(/modules/buckaroo3/views/fonts/fa-regular-400-dba63457.eot);src:url(/modules/buckaroo3/views/fonts/fa-regular-400-dba63457.eot?#iefix) format("embedded-opentype"),url(/modules/buckaroo3/views/fonts/fa-regular-400-3bbb0df8.woff2) format("woff2"),url(/modules/buckaroo3/views/fonts/fa-regular-400-22205953.woff) format("woff"),url(/modules/buckaroo3/views/fonts/fa-regular-400-0d2ab101.ttf) format("truetype"),url(/modules/buckaroo3/views/media/fa-regular-400-08afc1e4.svg#fontawesome) format("svg")}.far{font-family:"Font Awesome 5 Pro";font-weight:400}@font-face{font-family:"Font Awesome 5 Pro";font-style:normal;font-weight:900;font-display:block;src:url(/modules/buckaroo3/views/fonts/fa-solid-900-e4ebf08b.eot);src:url(/modules/buckaroo3/views/fonts/fa-solid-900-e4ebf08b.eot?#iefix) format("embedded-opentype"),url(/modules/buckaroo3/views/fonts/fa-solid-900-8d4d2904.woff2) format("woff2"),url(/modules/buckaroo3/views/fonts/fa-solid-900-3e7eb8c8.woff) format("woff"),url(/modules/buckaroo3/views/fonts/fa-solid-900-79fc8a96.ttf) format("truetype"),url(/modules/buckaroo3/views/media/fa-solid-900-42f940e3.svg#fontawesome) format("svg")}.fa,.fas{font-family:"Font Awesome 5 Pro";font-weight:900}/*! +* Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com +* License - https://fontawesome.com/license (Commercial License) +*/@font-face{font-family:"Font Awesome 5 Duotone";font-style:normal;font-weight:900;font-display:block;src:url(/modules/buckaroo3/views/fonts/fa-duotone-900-571c49e5.eot);src:url(/modules/buckaroo3/views/fonts/fa-duotone-900-571c49e5.eot?#iefix) format("embedded-opentype"),url(/modules/buckaroo3/views/fonts/fa-duotone-900-84f582c8.woff2) format("woff2"),url(/modules/buckaroo3/views/fonts/fa-duotone-900-e8a74216.woff) format("woff"),url(/modules/buckaroo3/views/fonts/fa-duotone-900-5eb0df34.ttf) format("truetype"),url(/modules/buckaroo3/views/media/fa-duotone-900-b9d6463f.svg#fontawesome) format("svg")}.fad{position:relative;font-family:"Font Awesome 5 Duotone";font-weight:900}.fad:before{position:absolute;color:var(--fa-primary-color, inherit);opacity:1;opacity:var(--fa-primary-opacity, 1)}.fad:after{color:var(--fa-secondary-color, inherit);opacity:.4;opacity:var(--fa-secondary-opacity, .4)}.fa-swap-opacity .fad:before,.fad.fa-swap-opacity:before{opacity:.4;opacity:var(--fa-secondary-opacity, .4)}.fa-swap-opacity .fad:after,.fad.fa-swap-opacity:after{opacity:1;opacity:var(--fa-primary-opacity, 1)}.fad.fa-inverse{color:#fff}.fad.fa-stack-1x,.fad.fa-stack-2x{position:absolute}.fad.fa-stack-1x:before,.fad.fa-stack-2x:before,.fad.fa-fw:before{left:50%;transform:translate(-50%)}.fad.fa-abacus:after{content:"\10f640"}.fad.fa-acorn:after{content:"\10f6ae"}.fad.fa-ad:after{content:"\10f641"}.fad.fa-address-book:after{content:"\10f2b9"}.fad.fa-address-card:after{content:"\10f2bb"}.fad.fa-adjust:after{content:"\10f042"}.fad.fa-air-conditioner:after{content:"\10f8f4"}.fad.fa-air-freshener:after{content:"\10f5d0"}.fad.fa-alarm-clock:after{content:"\10f34e"}.fad.fa-alarm-exclamation:after{content:"\10f843"}.fad.fa-alarm-plus:after{content:"\10f844"}.fad.fa-alarm-snooze:after{content:"\10f845"}.fad.fa-album:after{content:"\10f89f"}.fad.fa-album-collection:after{content:"\10f8a0"}.fad.fa-alicorn:after{content:"\10f6b0"}.fad.fa-alien:after{content:"\10f8f5"}.fad.fa-alien-monster:after{content:"\10f8f6"}.fad.fa-align-center:after{content:"\10f037"}.fad.fa-align-justify:after{content:"\10f039"}.fad.fa-align-left:after{content:"\10f036"}.fad.fa-align-right:after{content:"\10f038"}.fad.fa-align-slash:after{content:"\10f846"}.fad.fa-allergies:after{content:"\10f461"}.fad.fa-ambulance:after{content:"\10f0f9"}.fad.fa-american-sign-language-interpreting:after{content:"\10f2a3"}.fad.fa-amp-guitar:after{content:"\10f8a1"}.fad.fa-analytics:after{content:"\10f643"}.fad.fa-anchor:after{content:"\10f13d"}.fad.fa-angel:after{content:"\10f779"}.fad.fa-angle-double-down:after{content:"\10f103"}.fad.fa-angle-double-left:after{content:"\10f100"}.fad.fa-angle-double-right:after{content:"\10f101"}.fad.fa-angle-double-up:after{content:"\10f102"}.fad.fa-angle-down:after{content:"\10f107"}.fad.fa-angle-left:after{content:"\10f104"}.fad.fa-angle-right:after{content:"\10f105"}.fad.fa-angle-up:after{content:"\10f106"}.fad.fa-angry:after{content:"\10f556"}.fad.fa-ankh:after{content:"\10f644"}.fad.fa-apple-alt:after{content:"\10f5d1"}.fad.fa-apple-crate:after{content:"\10f6b1"}.fad.fa-archive:after{content:"\10f187"}.fad.fa-archway:after{content:"\10f557"}.fad.fa-arrow-alt-circle-down:after{content:"\10f358"}.fad.fa-arrow-alt-circle-left:after{content:"\10f359"}.fad.fa-arrow-alt-circle-right:after{content:"\10f35a"}.fad.fa-arrow-alt-circle-up:after{content:"\10f35b"}.fad.fa-arrow-alt-down:after{content:"\10f354"}.fad.fa-arrow-alt-from-bottom:after{content:"\10f346"}.fad.fa-arrow-alt-from-left:after{content:"\10f347"}.fad.fa-arrow-alt-from-right:after{content:"\10f348"}.fad.fa-arrow-alt-from-top:after{content:"\10f349"}.fad.fa-arrow-alt-left:after{content:"\10f355"}.fad.fa-arrow-alt-right:after{content:"\10f356"}.fad.fa-arrow-alt-square-down:after{content:"\10f350"}.fad.fa-arrow-alt-square-left:after{content:"\10f351"}.fad.fa-arrow-alt-square-right:after{content:"\10f352"}.fad.fa-arrow-alt-square-up:after{content:"\10f353"}.fad.fa-arrow-alt-to-bottom:after{content:"\10f34a"}.fad.fa-arrow-alt-to-left:after{content:"\10f34b"}.fad.fa-arrow-alt-to-right:after{content:"\10f34c"}.fad.fa-arrow-alt-to-top:after{content:"\10f34d"}.fad.fa-arrow-alt-up:after{content:"\10f357"}.fad.fa-arrow-circle-down:after{content:"\10f0ab"}.fad.fa-arrow-circle-left:after{content:"\10f0a8"}.fad.fa-arrow-circle-right:after{content:"\10f0a9"}.fad.fa-arrow-circle-up:after{content:"\10f0aa"}.fad.fa-arrow-down:after{content:"\10f063"}.fad.fa-arrow-from-bottom:after{content:"\10f342"}.fad.fa-arrow-from-left:after{content:"\10f343"}.fad.fa-arrow-from-right:after{content:"\10f344"}.fad.fa-arrow-from-top:after{content:"\10f345"}.fad.fa-arrow-left:after{content:"\10f060"}.fad.fa-arrow-right:after{content:"\10f061"}.fad.fa-arrow-square-down:after{content:"\10f339"}.fad.fa-arrow-square-left:after{content:"\10f33a"}.fad.fa-arrow-square-right:after{content:"\10f33b"}.fad.fa-arrow-square-up:after{content:"\10f33c"}.fad.fa-arrow-to-bottom:after{content:"\10f33d"}.fad.fa-arrow-to-left:after{content:"\10f33e"}.fad.fa-arrow-to-right:after{content:"\10f340"}.fad.fa-arrow-to-top:after{content:"\10f341"}.fad.fa-arrow-up:after{content:"\10f062"}.fad.fa-arrows:after{content:"\10f047"}.fad.fa-arrows-alt:after{content:"\10f0b2"}.fad.fa-arrows-alt-h:after{content:"\10f337"}.fad.fa-arrows-alt-v:after{content:"\10f338"}.fad.fa-arrows-h:after{content:"\10f07e"}.fad.fa-arrows-v:after{content:"\10f07d"}.fad.fa-assistive-listening-systems:after{content:"\10f2a2"}.fad.fa-asterisk:after{content:"\10f069"}.fad.fa-at:after{content:"\10f1fa"}.fad.fa-atlas:after{content:"\10f558"}.fad.fa-atom:after{content:"\10f5d2"}.fad.fa-atom-alt:after{content:"\10f5d3"}.fad.fa-audio-description:after{content:"\10f29e"}.fad.fa-award:after{content:"\10f559"}.fad.fa-axe:after{content:"\10f6b2"}.fad.fa-axe-battle:after{content:"\10f6b3"}.fad.fa-baby:after{content:"\10f77c"}.fad.fa-baby-carriage:after{content:"\10f77d"}.fad.fa-backpack:after{content:"\10f5d4"}.fad.fa-backspace:after{content:"\10f55a"}.fad.fa-backward:after{content:"\10f04a"}.fad.fa-bacon:after{content:"\10f7e5"}.fad.fa-bacteria:after{content:"\10e059"}.fad.fa-bacterium:after{content:"\10e05a"}.fad.fa-badge:after{content:"\10f335"}.fad.fa-badge-check:after{content:"\10f336"}.fad.fa-badge-dollar:after{content:"\10f645"}.fad.fa-badge-percent:after{content:"\10f646"}.fad.fa-badge-sheriff:after{content:"\10f8a2"}.fad.fa-badger-honey:after{content:"\10f6b4"}.fad.fa-bags-shopping:after{content:"\10f847"}.fad.fa-bahai:after{content:"\10f666"}.fad.fa-balance-scale:after{content:"\10f24e"}.fad.fa-balance-scale-left:after{content:"\10f515"}.fad.fa-balance-scale-right:after{content:"\10f516"}.fad.fa-ball-pile:after{content:"\10f77e"}.fad.fa-ballot:after{content:"\10f732"}.fad.fa-ballot-check:after{content:"\10f733"}.fad.fa-ban:after{content:"\10f05e"}.fad.fa-band-aid:after{content:"\10f462"}.fad.fa-banjo:after{content:"\10f8a3"}.fad.fa-barcode:after{content:"\10f02a"}.fad.fa-barcode-alt:after{content:"\10f463"}.fad.fa-barcode-read:after{content:"\10f464"}.fad.fa-barcode-scan:after{content:"\10f465"}.fad.fa-bars:after{content:"\10f0c9"}.fad.fa-baseball:after{content:"\10f432"}.fad.fa-baseball-ball:after{content:"\10f433"}.fad.fa-basketball-ball:after{content:"\10f434"}.fad.fa-basketball-hoop:after{content:"\10f435"}.fad.fa-bat:after{content:"\10f6b5"}.fad.fa-bath:after{content:"\10f2cd"}.fad.fa-battery-bolt:after{content:"\10f376"}.fad.fa-battery-empty:after{content:"\10f244"}.fad.fa-battery-full:after{content:"\10f240"}.fad.fa-battery-half:after{content:"\10f242"}.fad.fa-battery-quarter:after{content:"\10f243"}.fad.fa-battery-slash:after{content:"\10f377"}.fad.fa-battery-three-quarters:after{content:"\10f241"}.fad.fa-bed:after{content:"\10f236"}.fad.fa-bed-alt:after{content:"\10f8f7"}.fad.fa-bed-bunk:after{content:"\10f8f8"}.fad.fa-bed-empty:after{content:"\10f8f9"}.fad.fa-beer:after{content:"\10f0fc"}.fad.fa-bell:after{content:"\10f0f3"}.fad.fa-bell-exclamation:after{content:"\10f848"}.fad.fa-bell-on:after{content:"\10f8fa"}.fad.fa-bell-plus:after{content:"\10f849"}.fad.fa-bell-school:after{content:"\10f5d5"}.fad.fa-bell-school-slash:after{content:"\10f5d6"}.fad.fa-bell-slash:after{content:"\10f1f6"}.fad.fa-bells:after{content:"\10f77f"}.fad.fa-betamax:after{content:"\10f8a4"}.fad.fa-bezier-curve:after{content:"\10f55b"}.fad.fa-bible:after{content:"\10f647"}.fad.fa-bicycle:after{content:"\10f206"}.fad.fa-biking:after{content:"\10f84a"}.fad.fa-biking-mountain:after{content:"\10f84b"}.fad.fa-binoculars:after{content:"\10f1e5"}.fad.fa-biohazard:after{content:"\10f780"}.fad.fa-birthday-cake:after{content:"\10f1fd"}.fad.fa-blanket:after{content:"\10f498"}.fad.fa-blender:after{content:"\10f517"}.fad.fa-blender-phone:after{content:"\10f6b6"}.fad.fa-blind:after{content:"\10f29d"}.fad.fa-blinds:after{content:"\10f8fb"}.fad.fa-blinds-open:after{content:"\10f8fc"}.fad.fa-blinds-raised:after{content:"\10f8fd"}.fad.fa-blog:after{content:"\10f781"}.fad.fa-bold:after{content:"\10f032"}.fad.fa-bolt:after{content:"\10f0e7"}.fad.fa-bomb:after{content:"\10f1e2"}.fad.fa-bone:after{content:"\10f5d7"}.fad.fa-bone-break:after{content:"\10f5d8"}.fad.fa-bong:after{content:"\10f55c"}.fad.fa-book:after{content:"\10f02d"}.fad.fa-book-alt:after{content:"\10f5d9"}.fad.fa-book-dead:after{content:"\10f6b7"}.fad.fa-book-heart:after{content:"\10f499"}.fad.fa-book-medical:after{content:"\10f7e6"}.fad.fa-book-open:after{content:"\10f518"}.fad.fa-book-reader:after{content:"\10f5da"}.fad.fa-book-spells:after{content:"\10f6b8"}.fad.fa-book-user:after{content:"\10f7e7"}.fad.fa-bookmark:after{content:"\10f02e"}.fad.fa-books:after{content:"\10f5db"}.fad.fa-books-medical:after{content:"\10f7e8"}.fad.fa-boombox:after{content:"\10f8a5"}.fad.fa-boot:after{content:"\10f782"}.fad.fa-booth-curtain:after{content:"\10f734"}.fad.fa-border-all:after{content:"\10f84c"}.fad.fa-border-bottom:after{content:"\10f84d"}.fad.fa-border-center-h:after{content:"\10f89c"}.fad.fa-border-center-v:after{content:"\10f89d"}.fad.fa-border-inner:after{content:"\10f84e"}.fad.fa-border-left:after{content:"\10f84f"}.fad.fa-border-none:after{content:"\10f850"}.fad.fa-border-outer:after{content:"\10f851"}.fad.fa-border-right:after{content:"\10f852"}.fad.fa-border-style:after{content:"\10f853"}.fad.fa-border-style-alt:after{content:"\10f854"}.fad.fa-border-top:after{content:"\10f855"}.fad.fa-bow-arrow:after{content:"\10f6b9"}.fad.fa-bowling-ball:after{content:"\10f436"}.fad.fa-bowling-pins:after{content:"\10f437"}.fad.fa-box:after{content:"\10f466"}.fad.fa-box-alt:after{content:"\10f49a"}.fad.fa-box-ballot:after{content:"\10f735"}.fad.fa-box-check:after{content:"\10f467"}.fad.fa-box-fragile:after{content:"\10f49b"}.fad.fa-box-full:after{content:"\10f49c"}.fad.fa-box-heart:after{content:"\10f49d"}.fad.fa-box-open:after{content:"\10f49e"}.fad.fa-box-tissue:after{content:"\10e05b"}.fad.fa-box-up:after{content:"\10f49f"}.fad.fa-box-usd:after{content:"\10f4a0"}.fad.fa-boxes:after{content:"\10f468"}.fad.fa-boxes-alt:after{content:"\10f4a1"}.fad.fa-boxing-glove:after{content:"\10f438"}.fad.fa-brackets:after{content:"\10f7e9"}.fad.fa-brackets-curly:after{content:"\10f7ea"}.fad.fa-braille:after{content:"\10f2a1"}.fad.fa-brain:after{content:"\10f5dc"}.fad.fa-bread-loaf:after{content:"\10f7eb"}.fad.fa-bread-slice:after{content:"\10f7ec"}.fad.fa-briefcase:after{content:"\10f0b1"}.fad.fa-briefcase-medical:after{content:"\10f469"}.fad.fa-bring-forward:after{content:"\10f856"}.fad.fa-bring-front:after{content:"\10f857"}.fad.fa-broadcast-tower:after{content:"\10f519"}.fad.fa-broom:after{content:"\10f51a"}.fad.fa-browser:after{content:"\10f37e"}.fad.fa-brush:after{content:"\10f55d"}.fad.fa-bug:after{content:"\10f188"}.fad.fa-building:after{content:"\10f1ad"}.fad.fa-bullhorn:after{content:"\10f0a1"}.fad.fa-bullseye:after{content:"\10f140"}.fad.fa-bullseye-arrow:after{content:"\10f648"}.fad.fa-bullseye-pointer:after{content:"\10f649"}.fad.fa-burger-soda:after{content:"\10f858"}.fad.fa-burn:after{content:"\10f46a"}.fad.fa-burrito:after{content:"\10f7ed"}.fad.fa-bus:after{content:"\10f207"}.fad.fa-bus-alt:after{content:"\10f55e"}.fad.fa-bus-school:after{content:"\10f5dd"}.fad.fa-business-time:after{content:"\10f64a"}.fad.fa-cabinet-filing:after{content:"\10f64b"}.fad.fa-cactus:after{content:"\10f8a7"}.fad.fa-calculator:after{content:"\10f1ec"}.fad.fa-calculator-alt:after{content:"\10f64c"}.fad.fa-calendar:after{content:"\10f133"}.fad.fa-calendar-alt:after{content:"\10f073"}.fad.fa-calendar-check:after{content:"\10f274"}.fad.fa-calendar-day:after{content:"\10f783"}.fad.fa-calendar-edit:after{content:"\10f333"}.fad.fa-calendar-exclamation:after{content:"\10f334"}.fad.fa-calendar-minus:after{content:"\10f272"}.fad.fa-calendar-plus:after{content:"\10f271"}.fad.fa-calendar-star:after{content:"\10f736"}.fad.fa-calendar-times:after{content:"\10f273"}.fad.fa-calendar-week:after{content:"\10f784"}.fad.fa-camcorder:after{content:"\10f8a8"}.fad.fa-camera:after{content:"\10f030"}.fad.fa-camera-alt:after{content:"\10f332"}.fad.fa-camera-home:after{content:"\10f8fe"}.fad.fa-camera-movie:after{content:"\10f8a9"}.fad.fa-camera-polaroid:after{content:"\10f8aa"}.fad.fa-camera-retro:after{content:"\10f083"}.fad.fa-campfire:after{content:"\10f6ba"}.fad.fa-campground:after{content:"\10f6bb"}.fad.fa-candle-holder:after{content:"\10f6bc"}.fad.fa-candy-cane:after{content:"\10f786"}.fad.fa-candy-corn:after{content:"\10f6bd"}.fad.fa-cannabis:after{content:"\10f55f"}.fad.fa-capsules:after{content:"\10f46b"}.fad.fa-car:after{content:"\10f1b9"}.fad.fa-car-alt:after{content:"\10f5de"}.fad.fa-car-battery:after{content:"\10f5df"}.fad.fa-car-building:after{content:"\10f859"}.fad.fa-car-bump:after{content:"\10f5e0"}.fad.fa-car-bus:after{content:"\10f85a"}.fad.fa-car-crash:after{content:"\10f5e1"}.fad.fa-car-garage:after{content:"\10f5e2"}.fad.fa-car-mechanic:after{content:"\10f5e3"}.fad.fa-car-side:after{content:"\10f5e4"}.fad.fa-car-tilt:after{content:"\10f5e5"}.fad.fa-car-wash:after{content:"\10f5e6"}.fad.fa-caravan:after{content:"\10f8ff"}.fad.fa-caravan-alt:after{content:"\10e000"}.fad.fa-caret-circle-down:after{content:"\10f32d"}.fad.fa-caret-circle-left:after{content:"\10f32e"}.fad.fa-caret-circle-right:after{content:"\10f330"}.fad.fa-caret-circle-up:after{content:"\10f331"}.fad.fa-caret-down:after{content:"\10f0d7"}.fad.fa-caret-left:after{content:"\10f0d9"}.fad.fa-caret-right:after{content:"\10f0da"}.fad.fa-caret-square-down:after{content:"\10f150"}.fad.fa-caret-square-left:after{content:"\10f191"}.fad.fa-caret-square-right:after{content:"\10f152"}.fad.fa-caret-square-up:after{content:"\10f151"}.fad.fa-caret-up:after{content:"\10f0d8"}.fad.fa-carrot:after{content:"\10f787"}.fad.fa-cars:after{content:"\10f85b"}.fad.fa-cart-arrow-down:after{content:"\10f218"}.fad.fa-cart-plus:after{content:"\10f217"}.fad.fa-cash-register:after{content:"\10f788"}.fad.fa-cassette-tape:after{content:"\10f8ab"}.fad.fa-cat:after{content:"\10f6be"}.fad.fa-cat-space:after{content:"\10e001"}.fad.fa-cauldron:after{content:"\10f6bf"}.fad.fa-cctv:after{content:"\10f8ac"}.fad.fa-certificate:after{content:"\10f0a3"}.fad.fa-chair:after{content:"\10f6c0"}.fad.fa-chair-office:after{content:"\10f6c1"}.fad.fa-chalkboard:after{content:"\10f51b"}.fad.fa-chalkboard-teacher:after{content:"\10f51c"}.fad.fa-charging-station:after{content:"\10f5e7"}.fad.fa-chart-area:after{content:"\10f1fe"}.fad.fa-chart-bar:after{content:"\10f080"}.fad.fa-chart-line:after{content:"\10f201"}.fad.fa-chart-line-down:after{content:"\10f64d"}.fad.fa-chart-network:after{content:"\10f78a"}.fad.fa-chart-pie:after{content:"\10f200"}.fad.fa-chart-pie-alt:after{content:"\10f64e"}.fad.fa-chart-scatter:after{content:"\10f7ee"}.fad.fa-check:after{content:"\10f00c"}.fad.fa-check-circle:after{content:"\10f058"}.fad.fa-check-double:after{content:"\10f560"}.fad.fa-check-square:after{content:"\10f14a"}.fad.fa-cheese:after{content:"\10f7ef"}.fad.fa-cheese-swiss:after{content:"\10f7f0"}.fad.fa-cheeseburger:after{content:"\10f7f1"}.fad.fa-chess:after{content:"\10f439"}.fad.fa-chess-bishop:after{content:"\10f43a"}.fad.fa-chess-bishop-alt:after{content:"\10f43b"}.fad.fa-chess-board:after{content:"\10f43c"}.fad.fa-chess-clock:after{content:"\10f43d"}.fad.fa-chess-clock-alt:after{content:"\10f43e"}.fad.fa-chess-king:after{content:"\10f43f"}.fad.fa-chess-king-alt:after{content:"\10f440"}.fad.fa-chess-knight:after{content:"\10f441"}.fad.fa-chess-knight-alt:after{content:"\10f442"}.fad.fa-chess-pawn:after{content:"\10f443"}.fad.fa-chess-pawn-alt:after{content:"\10f444"}.fad.fa-chess-queen:after{content:"\10f445"}.fad.fa-chess-queen-alt:after{content:"\10f446"}.fad.fa-chess-rook:after{content:"\10f447"}.fad.fa-chess-rook-alt:after{content:"\10f448"}.fad.fa-chevron-circle-down:after{content:"\10f13a"}.fad.fa-chevron-circle-left:after{content:"\10f137"}.fad.fa-chevron-circle-right:after{content:"\10f138"}.fad.fa-chevron-circle-up:after{content:"\10f139"}.fad.fa-chevron-double-down:after{content:"\10f322"}.fad.fa-chevron-double-left:after{content:"\10f323"}.fad.fa-chevron-double-right:after{content:"\10f324"}.fad.fa-chevron-double-up:after{content:"\10f325"}.fad.fa-chevron-down:after{content:"\10f078"}.fad.fa-chevron-left:after{content:"\10f053"}.fad.fa-chevron-right:after{content:"\10f054"}.fad.fa-chevron-square-down:after{content:"\10f329"}.fad.fa-chevron-square-left:after{content:"\10f32a"}.fad.fa-chevron-square-right:after{content:"\10f32b"}.fad.fa-chevron-square-up:after{content:"\10f32c"}.fad.fa-chevron-up:after{content:"\10f077"}.fad.fa-child:after{content:"\10f1ae"}.fad.fa-chimney:after{content:"\10f78b"}.fad.fa-church:after{content:"\10f51d"}.fad.fa-circle:after{content:"\10f111"}.fad.fa-circle-notch:after{content:"\10f1ce"}.fad.fa-city:after{content:"\10f64f"}.fad.fa-clarinet:after{content:"\10f8ad"}.fad.fa-claw-marks:after{content:"\10f6c2"}.fad.fa-clinic-medical:after{content:"\10f7f2"}.fad.fa-clipboard:after{content:"\10f328"}.fad.fa-clipboard-check:after{content:"\10f46c"}.fad.fa-clipboard-list:after{content:"\10f46d"}.fad.fa-clipboard-list-check:after{content:"\10f737"}.fad.fa-clipboard-prescription:after{content:"\10f5e8"}.fad.fa-clipboard-user:after{content:"\10f7f3"}.fad.fa-clock:after{content:"\10f017"}.fad.fa-clone:after{content:"\10f24d"}.fad.fa-closed-captioning:after{content:"\10f20a"}.fad.fa-cloud:after{content:"\10f0c2"}.fad.fa-cloud-download:after{content:"\10f0ed"}.fad.fa-cloud-download-alt:after{content:"\10f381"}.fad.fa-cloud-drizzle:after{content:"\10f738"}.fad.fa-cloud-hail:after{content:"\10f739"}.fad.fa-cloud-hail-mixed:after{content:"\10f73a"}.fad.fa-cloud-meatball:after{content:"\10f73b"}.fad.fa-cloud-moon:after{content:"\10f6c3"}.fad.fa-cloud-moon-rain:after{content:"\10f73c"}.fad.fa-cloud-music:after{content:"\10f8ae"}.fad.fa-cloud-rain:after{content:"\10f73d"}.fad.fa-cloud-rainbow:after{content:"\10f73e"}.fad.fa-cloud-showers:after{content:"\10f73f"}.fad.fa-cloud-showers-heavy:after{content:"\10f740"}.fad.fa-cloud-sleet:after{content:"\10f741"}.fad.fa-cloud-snow:after{content:"\10f742"}.fad.fa-cloud-sun:after{content:"\10f6c4"}.fad.fa-cloud-sun-rain:after{content:"\10f743"}.fad.fa-cloud-upload:after{content:"\10f0ee"}.fad.fa-cloud-upload-alt:after{content:"\10f382"}.fad.fa-clouds:after{content:"\10f744"}.fad.fa-clouds-moon:after{content:"\10f745"}.fad.fa-clouds-sun:after{content:"\10f746"}.fad.fa-club:after{content:"\10f327"}.fad.fa-cocktail:after{content:"\10f561"}.fad.fa-code:after{content:"\10f121"}.fad.fa-code-branch:after{content:"\10f126"}.fad.fa-code-commit:after{content:"\10f386"}.fad.fa-code-merge:after{content:"\10f387"}.fad.fa-coffee:after{content:"\10f0f4"}.fad.fa-coffee-pot:after{content:"\10e002"}.fad.fa-coffee-togo:after{content:"\10f6c5"}.fad.fa-coffin:after{content:"\10f6c6"}.fad.fa-coffin-cross:after{content:"\10e051"}.fad.fa-cog:after{content:"\10f013"}.fad.fa-cogs:after{content:"\10f085"}.fad.fa-coin:after{content:"\10f85c"}.fad.fa-coins:after{content:"\10f51e"}.fad.fa-columns:after{content:"\10f0db"}.fad.fa-comet:after{content:"\10e003"}.fad.fa-comment:after{content:"\10f075"}.fad.fa-comment-alt:after{content:"\10f27a"}.fad.fa-comment-alt-check:after{content:"\10f4a2"}.fad.fa-comment-alt-dollar:after{content:"\10f650"}.fad.fa-comment-alt-dots:after{content:"\10f4a3"}.fad.fa-comment-alt-edit:after{content:"\10f4a4"}.fad.fa-comment-alt-exclamation:after{content:"\10f4a5"}.fad.fa-comment-alt-lines:after{content:"\10f4a6"}.fad.fa-comment-alt-medical:after{content:"\10f7f4"}.fad.fa-comment-alt-minus:after{content:"\10f4a7"}.fad.fa-comment-alt-music:after{content:"\10f8af"}.fad.fa-comment-alt-plus:after{content:"\10f4a8"}.fad.fa-comment-alt-slash:after{content:"\10f4a9"}.fad.fa-comment-alt-smile:after{content:"\10f4aa"}.fad.fa-comment-alt-times:after{content:"\10f4ab"}.fad.fa-comment-check:after{content:"\10f4ac"}.fad.fa-comment-dollar:after{content:"\10f651"}.fad.fa-comment-dots:after{content:"\10f4ad"}.fad.fa-comment-edit:after{content:"\10f4ae"}.fad.fa-comment-exclamation:after{content:"\10f4af"}.fad.fa-comment-lines:after{content:"\10f4b0"}.fad.fa-comment-medical:after{content:"\10f7f5"}.fad.fa-comment-minus:after{content:"\10f4b1"}.fad.fa-comment-music:after{content:"\10f8b0"}.fad.fa-comment-plus:after{content:"\10f4b2"}.fad.fa-comment-slash:after{content:"\10f4b3"}.fad.fa-comment-smile:after{content:"\10f4b4"}.fad.fa-comment-times:after{content:"\10f4b5"}.fad.fa-comments:after{content:"\10f086"}.fad.fa-comments-alt:after{content:"\10f4b6"}.fad.fa-comments-alt-dollar:after{content:"\10f652"}.fad.fa-comments-dollar:after{content:"\10f653"}.fad.fa-compact-disc:after{content:"\10f51f"}.fad.fa-compass:after{content:"\10f14e"}.fad.fa-compass-slash:after{content:"\10f5e9"}.fad.fa-compress:after{content:"\10f066"}.fad.fa-compress-alt:after{content:"\10f422"}.fad.fa-compress-arrows-alt:after{content:"\10f78c"}.fad.fa-compress-wide:after{content:"\10f326"}.fad.fa-computer-classic:after{content:"\10f8b1"}.fad.fa-computer-speaker:after{content:"\10f8b2"}.fad.fa-concierge-bell:after{content:"\10f562"}.fad.fa-construction:after{content:"\10f85d"}.fad.fa-container-storage:after{content:"\10f4b7"}.fad.fa-conveyor-belt:after{content:"\10f46e"}.fad.fa-conveyor-belt-alt:after{content:"\10f46f"}.fad.fa-cookie:after{content:"\10f563"}.fad.fa-cookie-bite:after{content:"\10f564"}.fad.fa-copy:after{content:"\10f0c5"}.fad.fa-copyright:after{content:"\10f1f9"}.fad.fa-corn:after{content:"\10f6c7"}.fad.fa-couch:after{content:"\10f4b8"}.fad.fa-cow:after{content:"\10f6c8"}.fad.fa-cowbell:after{content:"\10f8b3"}.fad.fa-cowbell-more:after{content:"\10f8b4"}.fad.fa-credit-card:after{content:"\10f09d"}.fad.fa-credit-card-blank:after{content:"\10f389"}.fad.fa-credit-card-front:after{content:"\10f38a"}.fad.fa-cricket:after{content:"\10f449"}.fad.fa-croissant:after{content:"\10f7f6"}.fad.fa-crop:after{content:"\10f125"}.fad.fa-crop-alt:after{content:"\10f565"}.fad.fa-cross:after{content:"\10f654"}.fad.fa-crosshairs:after{content:"\10f05b"}.fad.fa-crow:after{content:"\10f520"}.fad.fa-crown:after{content:"\10f521"}.fad.fa-crutch:after{content:"\10f7f7"}.fad.fa-crutches:after{content:"\10f7f8"}.fad.fa-cube:after{content:"\10f1b2"}.fad.fa-cubes:after{content:"\10f1b3"}.fad.fa-curling:after{content:"\10f44a"}.fad.fa-cut:after{content:"\10f0c4"}.fad.fa-dagger:after{content:"\10f6cb"}.fad.fa-database:after{content:"\10f1c0"}.fad.fa-deaf:after{content:"\10f2a4"}.fad.fa-debug:after{content:"\10f7f9"}.fad.fa-deer:after{content:"\10f78e"}.fad.fa-deer-rudolph:after{content:"\10f78f"}.fad.fa-democrat:after{content:"\10f747"}.fad.fa-desktop:after{content:"\10f108"}.fad.fa-desktop-alt:after{content:"\10f390"}.fad.fa-dewpoint:after{content:"\10f748"}.fad.fa-dharmachakra:after{content:"\10f655"}.fad.fa-diagnoses:after{content:"\10f470"}.fad.fa-diamond:after{content:"\10f219"}.fad.fa-dice:after{content:"\10f522"}.fad.fa-dice-d10:after{content:"\10f6cd"}.fad.fa-dice-d12:after{content:"\10f6ce"}.fad.fa-dice-d20:after{content:"\10f6cf"}.fad.fa-dice-d4:after{content:"\10f6d0"}.fad.fa-dice-d6:after{content:"\10f6d1"}.fad.fa-dice-d8:after{content:"\10f6d2"}.fad.fa-dice-five:after{content:"\10f523"}.fad.fa-dice-four:after{content:"\10f524"}.fad.fa-dice-one:after{content:"\10f525"}.fad.fa-dice-six:after{content:"\10f526"}.fad.fa-dice-three:after{content:"\10f527"}.fad.fa-dice-two:after{content:"\10f528"}.fad.fa-digging:after{content:"\10f85e"}.fad.fa-digital-tachograph:after{content:"\10f566"}.fad.fa-diploma:after{content:"\10f5ea"}.fad.fa-directions:after{content:"\10f5eb"}.fad.fa-disc-drive:after{content:"\10f8b5"}.fad.fa-disease:after{content:"\10f7fa"}.fad.fa-divide:after{content:"\10f529"}.fad.fa-dizzy:after{content:"\10f567"}.fad.fa-dna:after{content:"\10f471"}.fad.fa-do-not-enter:after{content:"\10f5ec"}.fad.fa-dog:after{content:"\10f6d3"}.fad.fa-dog-leashed:after{content:"\10f6d4"}.fad.fa-dollar-sign:after{content:"\10f155"}.fad.fa-dolly:after{content:"\10f472"}.fad.fa-dolly-empty:after{content:"\10f473"}.fad.fa-dolly-flatbed:after{content:"\10f474"}.fad.fa-dolly-flatbed-alt:after{content:"\10f475"}.fad.fa-dolly-flatbed-empty:after{content:"\10f476"}.fad.fa-donate:after{content:"\10f4b9"}.fad.fa-door-closed:after{content:"\10f52a"}.fad.fa-door-open:after{content:"\10f52b"}.fad.fa-dot-circle:after{content:"\10f192"}.fad.fa-dove:after{content:"\10f4ba"}.fad.fa-download:after{content:"\10f019"}.fad.fa-drafting-compass:after{content:"\10f568"}.fad.fa-dragon:after{content:"\10f6d5"}.fad.fa-draw-circle:after{content:"\10f5ed"}.fad.fa-draw-polygon:after{content:"\10f5ee"}.fad.fa-draw-square:after{content:"\10f5ef"}.fad.fa-dreidel:after{content:"\10f792"}.fad.fa-drone:after{content:"\10f85f"}.fad.fa-drone-alt:after{content:"\10f860"}.fad.fa-drum:after{content:"\10f569"}.fad.fa-drum-steelpan:after{content:"\10f56a"}.fad.fa-drumstick:after{content:"\10f6d6"}.fad.fa-drumstick-bite:after{content:"\10f6d7"}.fad.fa-dryer:after{content:"\10f861"}.fad.fa-dryer-alt:after{content:"\10f862"}.fad.fa-duck:after{content:"\10f6d8"}.fad.fa-dumbbell:after{content:"\10f44b"}.fad.fa-dumpster:after{content:"\10f793"}.fad.fa-dumpster-fire:after{content:"\10f794"}.fad.fa-dungeon:after{content:"\10f6d9"}.fad.fa-ear:after{content:"\10f5f0"}.fad.fa-ear-muffs:after{content:"\10f795"}.fad.fa-eclipse:after{content:"\10f749"}.fad.fa-eclipse-alt:after{content:"\10f74a"}.fad.fa-edit:after{content:"\10f044"}.fad.fa-egg:after{content:"\10f7fb"}.fad.fa-egg-fried:after{content:"\10f7fc"}.fad.fa-eject:after{content:"\10f052"}.fad.fa-elephant:after{content:"\10f6da"}.fad.fa-ellipsis-h:after{content:"\10f141"}.fad.fa-ellipsis-h-alt:after{content:"\10f39b"}.fad.fa-ellipsis-v:after{content:"\10f142"}.fad.fa-ellipsis-v-alt:after{content:"\10f39c"}.fad.fa-empty-set:after{content:"\10f656"}.fad.fa-engine-warning:after{content:"\10f5f2"}.fad.fa-envelope:after{content:"\10f0e0"}.fad.fa-envelope-open:after{content:"\10f2b6"}.fad.fa-envelope-open-dollar:after{content:"\10f657"}.fad.fa-envelope-open-text:after{content:"\10f658"}.fad.fa-envelope-square:after{content:"\10f199"}.fad.fa-equals:after{content:"\10f52c"}.fad.fa-eraser:after{content:"\10f12d"}.fad.fa-ethernet:after{content:"\10f796"}.fad.fa-euro-sign:after{content:"\10f153"}.fad.fa-exchange:after{content:"\10f0ec"}.fad.fa-exchange-alt:after{content:"\10f362"}.fad.fa-exclamation:after{content:"\10f12a"}.fad.fa-exclamation-circle:after{content:"\10f06a"}.fad.fa-exclamation-square:after{content:"\10f321"}.fad.fa-exclamation-triangle:after{content:"\10f071"}.fad.fa-expand:after{content:"\10f065"}.fad.fa-expand-alt:after{content:"\10f424"}.fad.fa-expand-arrows:after{content:"\10f31d"}.fad.fa-expand-arrows-alt:after{content:"\10f31e"}.fad.fa-expand-wide:after{content:"\10f320"}.fad.fa-external-link:after{content:"\10f08e"}.fad.fa-external-link-alt:after{content:"\10f35d"}.fad.fa-external-link-square:after{content:"\10f14c"}.fad.fa-external-link-square-alt:after{content:"\10f360"}.fad.fa-eye:after{content:"\10f06e"}.fad.fa-eye-dropper:after{content:"\10f1fb"}.fad.fa-eye-evil:after{content:"\10f6db"}.fad.fa-eye-slash:after{content:"\10f070"}.fad.fa-fan:after{content:"\10f863"}.fad.fa-fan-table:after{content:"\10e004"}.fad.fa-farm:after{content:"\10f864"}.fad.fa-fast-backward:after{content:"\10f049"}.fad.fa-fast-forward:after{content:"\10f050"}.fad.fa-faucet:after{content:"\10e005"}.fad.fa-faucet-drip:after{content:"\10e006"}.fad.fa-fax:after{content:"\10f1ac"}.fad.fa-feather:after{content:"\10f52d"}.fad.fa-feather-alt:after{content:"\10f56b"}.fad.fa-female:after{content:"\10f182"}.fad.fa-field-hockey:after{content:"\10f44c"}.fad.fa-fighter-jet:after{content:"\10f0fb"}.fad.fa-file:after{content:"\10f15b"}.fad.fa-file-alt:after{content:"\10f15c"}.fad.fa-file-archive:after{content:"\10f1c6"}.fad.fa-file-audio:after{content:"\10f1c7"}.fad.fa-file-certificate:after{content:"\10f5f3"}.fad.fa-file-chart-line:after{content:"\10f659"}.fad.fa-file-chart-pie:after{content:"\10f65a"}.fad.fa-file-check:after{content:"\10f316"}.fad.fa-file-code:after{content:"\10f1c9"}.fad.fa-file-contract:after{content:"\10f56c"}.fad.fa-file-csv:after{content:"\10f6dd"}.fad.fa-file-download:after{content:"\10f56d"}.fad.fa-file-edit:after{content:"\10f31c"}.fad.fa-file-excel:after{content:"\10f1c3"}.fad.fa-file-exclamation:after{content:"\10f31a"}.fad.fa-file-export:after{content:"\10f56e"}.fad.fa-file-image:after{content:"\10f1c5"}.fad.fa-file-import:after{content:"\10f56f"}.fad.fa-file-invoice:after{content:"\10f570"}.fad.fa-file-invoice-dollar:after{content:"\10f571"}.fad.fa-file-medical:after{content:"\10f477"}.fad.fa-file-medical-alt:after{content:"\10f478"}.fad.fa-file-minus:after{content:"\10f318"}.fad.fa-file-music:after{content:"\10f8b6"}.fad.fa-file-pdf:after{content:"\10f1c1"}.fad.fa-file-plus:after{content:"\10f319"}.fad.fa-file-powerpoint:after{content:"\10f1c4"}.fad.fa-file-prescription:after{content:"\10f572"}.fad.fa-file-search:after{content:"\10f865"}.fad.fa-file-signature:after{content:"\10f573"}.fad.fa-file-spreadsheet:after{content:"\10f65b"}.fad.fa-file-times:after{content:"\10f317"}.fad.fa-file-upload:after{content:"\10f574"}.fad.fa-file-user:after{content:"\10f65c"}.fad.fa-file-video:after{content:"\10f1c8"}.fad.fa-file-word:after{content:"\10f1c2"}.fad.fa-files-medical:after{content:"\10f7fd"}.fad.fa-fill:after{content:"\10f575"}.fad.fa-fill-drip:after{content:"\10f576"}.fad.fa-film:after{content:"\10f008"}.fad.fa-film-alt:after{content:"\10f3a0"}.fad.fa-film-canister:after{content:"\10f8b7"}.fad.fa-filter:after{content:"\10f0b0"}.fad.fa-fingerprint:after{content:"\10f577"}.fad.fa-fire:after{content:"\10f06d"}.fad.fa-fire-alt:after{content:"\10f7e4"}.fad.fa-fire-extinguisher:after{content:"\10f134"}.fad.fa-fire-smoke:after{content:"\10f74b"}.fad.fa-fireplace:after{content:"\10f79a"}.fad.fa-first-aid:after{content:"\10f479"}.fad.fa-fish:after{content:"\10f578"}.fad.fa-fish-cooked:after{content:"\10f7fe"}.fad.fa-fist-raised:after{content:"\10f6de"}.fad.fa-flag:after{content:"\10f024"}.fad.fa-flag-alt:after{content:"\10f74c"}.fad.fa-flag-checkered:after{content:"\10f11e"}.fad.fa-flag-usa:after{content:"\10f74d"}.fad.fa-flame:after{content:"\10f6df"}.fad.fa-flashlight:after{content:"\10f8b8"}.fad.fa-flask:after{content:"\10f0c3"}.fad.fa-flask-poison:after{content:"\10f6e0"}.fad.fa-flask-potion:after{content:"\10f6e1"}.fad.fa-flower:after{content:"\10f7ff"}.fad.fa-flower-daffodil:after{content:"\10f800"}.fad.fa-flower-tulip:after{content:"\10f801"}.fad.fa-flushed:after{content:"\10f579"}.fad.fa-flute:after{content:"\10f8b9"}.fad.fa-flux-capacitor:after{content:"\10f8ba"}.fad.fa-fog:after{content:"\10f74e"}.fad.fa-folder:after{content:"\10f07b"}.fad.fa-folder-download:after{content:"\10e053"}.fad.fa-folder-minus:after{content:"\10f65d"}.fad.fa-folder-open:after{content:"\10f07c"}.fad.fa-folder-plus:after{content:"\10f65e"}.fad.fa-folder-times:after{content:"\10f65f"}.fad.fa-folder-tree:after{content:"\10f802"}.fad.fa-folder-upload:after{content:"\10e054"}.fad.fa-folders:after{content:"\10f660"}.fad.fa-font:after{content:"\10f031"}.fad.fa-font-awesome-logo-full:after{content:"\10f4e6"}.fad.fa-font-case:after{content:"\10f866"}.fad.fa-football-ball:after{content:"\10f44e"}.fad.fa-football-helmet:after{content:"\10f44f"}.fad.fa-forklift:after{content:"\10f47a"}.fad.fa-forward:after{content:"\10f04e"}.fad.fa-fragile:after{content:"\10f4bb"}.fad.fa-french-fries:after{content:"\10f803"}.fad.fa-frog:after{content:"\10f52e"}.fad.fa-frosty-head:after{content:"\10f79b"}.fad.fa-frown:after{content:"\10f119"}.fad.fa-frown-open:after{content:"\10f57a"}.fad.fa-function:after{content:"\10f661"}.fad.fa-funnel-dollar:after{content:"\10f662"}.fad.fa-futbol:after{content:"\10f1e3"}.fad.fa-galaxy:after{content:"\10e008"}.fad.fa-game-board:after{content:"\10f867"}.fad.fa-game-board-alt:after{content:"\10f868"}.fad.fa-game-console-handheld:after{content:"\10f8bb"}.fad.fa-gamepad:after{content:"\10f11b"}.fad.fa-gamepad-alt:after{content:"\10f8bc"}.fad.fa-garage:after{content:"\10e009"}.fad.fa-garage-car:after{content:"\10e00a"}.fad.fa-garage-open:after{content:"\10e00b"}.fad.fa-gas-pump:after{content:"\10f52f"}.fad.fa-gas-pump-slash:after{content:"\10f5f4"}.fad.fa-gavel:after{content:"\10f0e3"}.fad.fa-gem:after{content:"\10f3a5"}.fad.fa-genderless:after{content:"\10f22d"}.fad.fa-ghost:after{content:"\10f6e2"}.fad.fa-gift:after{content:"\10f06b"}.fad.fa-gift-card:after{content:"\10f663"}.fad.fa-gifts:after{content:"\10f79c"}.fad.fa-gingerbread-man:after{content:"\10f79d"}.fad.fa-glass:after{content:"\10f804"}.fad.fa-glass-champagne:after{content:"\10f79e"}.fad.fa-glass-cheers:after{content:"\10f79f"}.fad.fa-glass-citrus:after{content:"\10f869"}.fad.fa-glass-martini:after{content:"\10f000"}.fad.fa-glass-martini-alt:after{content:"\10f57b"}.fad.fa-glass-whiskey:after{content:"\10f7a0"}.fad.fa-glass-whiskey-rocks:after{content:"\10f7a1"}.fad.fa-glasses:after{content:"\10f530"}.fad.fa-glasses-alt:after{content:"\10f5f5"}.fad.fa-globe:after{content:"\10f0ac"}.fad.fa-globe-africa:after{content:"\10f57c"}.fad.fa-globe-americas:after{content:"\10f57d"}.fad.fa-globe-asia:after{content:"\10f57e"}.fad.fa-globe-europe:after{content:"\10f7a2"}.fad.fa-globe-snow:after{content:"\10f7a3"}.fad.fa-globe-stand:after{content:"\10f5f6"}.fad.fa-golf-ball:after{content:"\10f450"}.fad.fa-golf-club:after{content:"\10f451"}.fad.fa-gopuram:after{content:"\10f664"}.fad.fa-graduation-cap:after{content:"\10f19d"}.fad.fa-gramophone:after{content:"\10f8bd"}.fad.fa-greater-than:after{content:"\10f531"}.fad.fa-greater-than-equal:after{content:"\10f532"}.fad.fa-grimace:after{content:"\10f57f"}.fad.fa-grin:after{content:"\10f580"}.fad.fa-grin-alt:after{content:"\10f581"}.fad.fa-grin-beam:after{content:"\10f582"}.fad.fa-grin-beam-sweat:after{content:"\10f583"}.fad.fa-grin-hearts:after{content:"\10f584"}.fad.fa-grin-squint:after{content:"\10f585"}.fad.fa-grin-squint-tears:after{content:"\10f586"}.fad.fa-grin-stars:after{content:"\10f587"}.fad.fa-grin-tears:after{content:"\10f588"}.fad.fa-grin-tongue:after{content:"\10f589"}.fad.fa-grin-tongue-squint:after{content:"\10f58a"}.fad.fa-grin-tongue-wink:after{content:"\10f58b"}.fad.fa-grin-wink:after{content:"\10f58c"}.fad.fa-grip-horizontal:after{content:"\10f58d"}.fad.fa-grip-lines:after{content:"\10f7a4"}.fad.fa-grip-lines-vertical:after{content:"\10f7a5"}.fad.fa-grip-vertical:after{content:"\10f58e"}.fad.fa-guitar:after{content:"\10f7a6"}.fad.fa-guitar-electric:after{content:"\10f8be"}.fad.fa-guitars:after{content:"\10f8bf"}.fad.fa-h-square:after{content:"\10f0fd"}.fad.fa-h1:after{content:"\10f313"}.fad.fa-h2:after{content:"\10f314"}.fad.fa-h3:after{content:"\10f315"}.fad.fa-h4:after{content:"\10f86a"}.fad.fa-hamburger:after{content:"\10f805"}.fad.fa-hammer:after{content:"\10f6e3"}.fad.fa-hammer-war:after{content:"\10f6e4"}.fad.fa-hamsa:after{content:"\10f665"}.fad.fa-hand-heart:after{content:"\10f4bc"}.fad.fa-hand-holding:after{content:"\10f4bd"}.fad.fa-hand-holding-box:after{content:"\10f47b"}.fad.fa-hand-holding-heart:after{content:"\10f4be"}.fad.fa-hand-holding-magic:after{content:"\10f6e5"}.fad.fa-hand-holding-medical:after{content:"\10e05c"}.fad.fa-hand-holding-seedling:after{content:"\10f4bf"}.fad.fa-hand-holding-usd:after{content:"\10f4c0"}.fad.fa-hand-holding-water:after{content:"\10f4c1"}.fad.fa-hand-lizard:after{content:"\10f258"}.fad.fa-hand-middle-finger:after{content:"\10f806"}.fad.fa-hand-paper:after{content:"\10f256"}.fad.fa-hand-peace:after{content:"\10f25b"}.fad.fa-hand-point-down:after{content:"\10f0a7"}.fad.fa-hand-point-left:after{content:"\10f0a5"}.fad.fa-hand-point-right:after{content:"\10f0a4"}.fad.fa-hand-point-up:after{content:"\10f0a6"}.fad.fa-hand-pointer:after{content:"\10f25a"}.fad.fa-hand-receiving:after{content:"\10f47c"}.fad.fa-hand-rock:after{content:"\10f255"}.fad.fa-hand-scissors:after{content:"\10f257"}.fad.fa-hand-sparkles:after{content:"\10e05d"}.fad.fa-hand-spock:after{content:"\10f259"}.fad.fa-hands:after{content:"\10f4c2"}.fad.fa-hands-heart:after{content:"\10f4c3"}.fad.fa-hands-helping:after{content:"\10f4c4"}.fad.fa-hands-usd:after{content:"\10f4c5"}.fad.fa-hands-wash:after{content:"\10e05e"}.fad.fa-handshake:after{content:"\10f2b5"}.fad.fa-handshake-alt:after{content:"\10f4c6"}.fad.fa-handshake-alt-slash:after{content:"\10e05f"}.fad.fa-handshake-slash:after{content:"\10e060"}.fad.fa-hanukiah:after{content:"\10f6e6"}.fad.fa-hard-hat:after{content:"\10f807"}.fad.fa-hashtag:after{content:"\10f292"}.fad.fa-hat-chef:after{content:"\10f86b"}.fad.fa-hat-cowboy:after{content:"\10f8c0"}.fad.fa-hat-cowboy-side:after{content:"\10f8c1"}.fad.fa-hat-santa:after{content:"\10f7a7"}.fad.fa-hat-winter:after{content:"\10f7a8"}.fad.fa-hat-witch:after{content:"\10f6e7"}.fad.fa-hat-wizard:after{content:"\10f6e8"}.fad.fa-hdd:after{content:"\10f0a0"}.fad.fa-head-side:after{content:"\10f6e9"}.fad.fa-head-side-brain:after{content:"\10f808"}.fad.fa-head-side-cough:after{content:"\10e061"}.fad.fa-head-side-cough-slash:after{content:"\10e062"}.fad.fa-head-side-headphones:after{content:"\10f8c2"}.fad.fa-head-side-mask:after{content:"\10e063"}.fad.fa-head-side-medical:after{content:"\10f809"}.fad.fa-head-side-virus:after{content:"\10e064"}.fad.fa-head-vr:after{content:"\10f6ea"}.fad.fa-heading:after{content:"\10f1dc"}.fad.fa-headphones:after{content:"\10f025"}.fad.fa-headphones-alt:after{content:"\10f58f"}.fad.fa-headset:after{content:"\10f590"}.fad.fa-heart:after{content:"\10f004"}.fad.fa-heart-broken:after{content:"\10f7a9"}.fad.fa-heart-circle:after{content:"\10f4c7"}.fad.fa-heart-rate:after{content:"\10f5f8"}.fad.fa-heart-square:after{content:"\10f4c8"}.fad.fa-heartbeat:after{content:"\10f21e"}.fad.fa-heat:after{content:"\10e00c"}.fad.fa-helicopter:after{content:"\10f533"}.fad.fa-helmet-battle:after{content:"\10f6eb"}.fad.fa-hexagon:after{content:"\10f312"}.fad.fa-highlighter:after{content:"\10f591"}.fad.fa-hiking:after{content:"\10f6ec"}.fad.fa-hippo:after{content:"\10f6ed"}.fad.fa-history:after{content:"\10f1da"}.fad.fa-hockey-mask:after{content:"\10f6ee"}.fad.fa-hockey-puck:after{content:"\10f453"}.fad.fa-hockey-sticks:after{content:"\10f454"}.fad.fa-holly-berry:after{content:"\10f7aa"}.fad.fa-home:after{content:"\10f015"}.fad.fa-home-alt:after{content:"\10f80a"}.fad.fa-home-heart:after{content:"\10f4c9"}.fad.fa-home-lg:after{content:"\10f80b"}.fad.fa-home-lg-alt:after{content:"\10f80c"}.fad.fa-hood-cloak:after{content:"\10f6ef"}.fad.fa-horizontal-rule:after{content:"\10f86c"}.fad.fa-horse:after{content:"\10f6f0"}.fad.fa-horse-head:after{content:"\10f7ab"}.fad.fa-horse-saddle:after{content:"\10f8c3"}.fad.fa-hospital:after{content:"\10f0f8"}.fad.fa-hospital-alt:after{content:"\10f47d"}.fad.fa-hospital-symbol:after{content:"\10f47e"}.fad.fa-hospital-user:after{content:"\10f80d"}.fad.fa-hospitals:after{content:"\10f80e"}.fad.fa-hot-tub:after{content:"\10f593"}.fad.fa-hotdog:after{content:"\10f80f"}.fad.fa-hotel:after{content:"\10f594"}.fad.fa-hourglass:after{content:"\10f254"}.fad.fa-hourglass-end:after{content:"\10f253"}.fad.fa-hourglass-half:after{content:"\10f252"}.fad.fa-hourglass-start:after{content:"\10f251"}.fad.fa-house:after{content:"\10e00d"}.fad.fa-house-damage:after{content:"\10f6f1"}.fad.fa-house-day:after{content:"\10e00e"}.fad.fa-house-flood:after{content:"\10f74f"}.fad.fa-house-leave:after{content:"\10e00f"}.fad.fa-house-night:after{content:"\10e010"}.fad.fa-house-return:after{content:"\10e011"}.fad.fa-house-signal:after{content:"\10e012"}.fad.fa-house-user:after{content:"\10e065"}.fad.fa-hryvnia:after{content:"\10f6f2"}.fad.fa-humidity:after{content:"\10f750"}.fad.fa-hurricane:after{content:"\10f751"}.fad.fa-i-cursor:after{content:"\10f246"}.fad.fa-ice-cream:after{content:"\10f810"}.fad.fa-ice-skate:after{content:"\10f7ac"}.fad.fa-icicles:after{content:"\10f7ad"}.fad.fa-icons:after{content:"\10f86d"}.fad.fa-icons-alt:after{content:"\10f86e"}.fad.fa-id-badge:after{content:"\10f2c1"}.fad.fa-id-card:after{content:"\10f2c2"}.fad.fa-id-card-alt:after{content:"\10f47f"}.fad.fa-igloo:after{content:"\10f7ae"}.fad.fa-image:after{content:"\10f03e"}.fad.fa-image-polaroid:after{content:"\10f8c4"}.fad.fa-images:after{content:"\10f302"}.fad.fa-inbox:after{content:"\10f01c"}.fad.fa-inbox-in:after{content:"\10f310"}.fad.fa-inbox-out:after{content:"\10f311"}.fad.fa-indent:after{content:"\10f03c"}.fad.fa-industry:after{content:"\10f275"}.fad.fa-industry-alt:after{content:"\10f3b3"}.fad.fa-infinity:after{content:"\10f534"}.fad.fa-info:after{content:"\10f129"}.fad.fa-info-circle:after{content:"\10f05a"}.fad.fa-info-square:after{content:"\10f30f"}.fad.fa-inhaler:after{content:"\10f5f9"}.fad.fa-integral:after{content:"\10f667"}.fad.fa-intersection:after{content:"\10f668"}.fad.fa-inventory:after{content:"\10f480"}.fad.fa-island-tropical:after{content:"\10f811"}.fad.fa-italic:after{content:"\10f033"}.fad.fa-jack-o-lantern:after{content:"\10f30e"}.fad.fa-jedi:after{content:"\10f669"}.fad.fa-joint:after{content:"\10f595"}.fad.fa-journal-whills:after{content:"\10f66a"}.fad.fa-joystick:after{content:"\10f8c5"}.fad.fa-jug:after{content:"\10f8c6"}.fad.fa-kaaba:after{content:"\10f66b"}.fad.fa-kazoo:after{content:"\10f8c7"}.fad.fa-kerning:after{content:"\10f86f"}.fad.fa-key:after{content:"\10f084"}.fad.fa-key-skeleton:after{content:"\10f6f3"}.fad.fa-keyboard:after{content:"\10f11c"}.fad.fa-keynote:after{content:"\10f66c"}.fad.fa-khanda:after{content:"\10f66d"}.fad.fa-kidneys:after{content:"\10f5fb"}.fad.fa-kiss:after{content:"\10f596"}.fad.fa-kiss-beam:after{content:"\10f597"}.fad.fa-kiss-wink-heart:after{content:"\10f598"}.fad.fa-kite:after{content:"\10f6f4"}.fad.fa-kiwi-bird:after{content:"\10f535"}.fad.fa-knife-kitchen:after{content:"\10f6f5"}.fad.fa-lambda:after{content:"\10f66e"}.fad.fa-lamp:after{content:"\10f4ca"}.fad.fa-lamp-desk:after{content:"\10e014"}.fad.fa-lamp-floor:after{content:"\10e015"}.fad.fa-landmark:after{content:"\10f66f"}.fad.fa-landmark-alt:after{content:"\10f752"}.fad.fa-language:after{content:"\10f1ab"}.fad.fa-laptop:after{content:"\10f109"}.fad.fa-laptop-code:after{content:"\10f5fc"}.fad.fa-laptop-house:after{content:"\10e066"}.fad.fa-laptop-medical:after{content:"\10f812"}.fad.fa-lasso:after{content:"\10f8c8"}.fad.fa-laugh:after{content:"\10f599"}.fad.fa-laugh-beam:after{content:"\10f59a"}.fad.fa-laugh-squint:after{content:"\10f59b"}.fad.fa-laugh-wink:after{content:"\10f59c"}.fad.fa-layer-group:after{content:"\10f5fd"}.fad.fa-layer-minus:after{content:"\10f5fe"}.fad.fa-layer-plus:after{content:"\10f5ff"}.fad.fa-leaf:after{content:"\10f06c"}.fad.fa-leaf-heart:after{content:"\10f4cb"}.fad.fa-leaf-maple:after{content:"\10f6f6"}.fad.fa-leaf-oak:after{content:"\10f6f7"}.fad.fa-lemon:after{content:"\10f094"}.fad.fa-less-than:after{content:"\10f536"}.fad.fa-less-than-equal:after{content:"\10f537"}.fad.fa-level-down:after{content:"\10f149"}.fad.fa-level-down-alt:after{content:"\10f3be"}.fad.fa-level-up:after{content:"\10f148"}.fad.fa-level-up-alt:after{content:"\10f3bf"}.fad.fa-life-ring:after{content:"\10f1cd"}.fad.fa-light-ceiling:after{content:"\10e016"}.fad.fa-light-switch:after{content:"\10e017"}.fad.fa-light-switch-off:after{content:"\10e018"}.fad.fa-light-switch-on:after{content:"\10e019"}.fad.fa-lightbulb:after{content:"\10f0eb"}.fad.fa-lightbulb-dollar:after{content:"\10f670"}.fad.fa-lightbulb-exclamation:after{content:"\10f671"}.fad.fa-lightbulb-on:after{content:"\10f672"}.fad.fa-lightbulb-slash:after{content:"\10f673"}.fad.fa-lights-holiday:after{content:"\10f7b2"}.fad.fa-line-columns:after{content:"\10f870"}.fad.fa-line-height:after{content:"\10f871"}.fad.fa-link:after{content:"\10f0c1"}.fad.fa-lips:after{content:"\10f600"}.fad.fa-lira-sign:after{content:"\10f195"}.fad.fa-list:after{content:"\10f03a"}.fad.fa-list-alt:after{content:"\10f022"}.fad.fa-list-music:after{content:"\10f8c9"}.fad.fa-list-ol:after{content:"\10f0cb"}.fad.fa-list-ul:after{content:"\10f0ca"}.fad.fa-location:after{content:"\10f601"}.fad.fa-location-arrow:after{content:"\10f124"}.fad.fa-location-circle:after{content:"\10f602"}.fad.fa-location-slash:after{content:"\10f603"}.fad.fa-lock:after{content:"\10f023"}.fad.fa-lock-alt:after{content:"\10f30d"}.fad.fa-lock-open:after{content:"\10f3c1"}.fad.fa-lock-open-alt:after{content:"\10f3c2"}.fad.fa-long-arrow-alt-down:after{content:"\10f309"}.fad.fa-long-arrow-alt-left:after{content:"\10f30a"}.fad.fa-long-arrow-alt-right:after{content:"\10f30b"}.fad.fa-long-arrow-alt-up:after{content:"\10f30c"}.fad.fa-long-arrow-down:after{content:"\10f175"}.fad.fa-long-arrow-left:after{content:"\10f177"}.fad.fa-long-arrow-right:after{content:"\10f178"}.fad.fa-long-arrow-up:after{content:"\10f176"}.fad.fa-loveseat:after{content:"\10f4cc"}.fad.fa-low-vision:after{content:"\10f2a8"}.fad.fa-luchador:after{content:"\10f455"}.fad.fa-luggage-cart:after{content:"\10f59d"}.fad.fa-lungs:after{content:"\10f604"}.fad.fa-lungs-virus:after{content:"\10e067"}.fad.fa-mace:after{content:"\10f6f8"}.fad.fa-magic:after{content:"\10f0d0"}.fad.fa-magnet:after{content:"\10f076"}.fad.fa-mail-bulk:after{content:"\10f674"}.fad.fa-mailbox:after{content:"\10f813"}.fad.fa-male:after{content:"\10f183"}.fad.fa-mandolin:after{content:"\10f6f9"}.fad.fa-map:after{content:"\10f279"}.fad.fa-map-marked:after{content:"\10f59f"}.fad.fa-map-marked-alt:after{content:"\10f5a0"}.fad.fa-map-marker:after{content:"\10f041"}.fad.fa-map-marker-alt:after{content:"\10f3c5"}.fad.fa-map-marker-alt-slash:after{content:"\10f605"}.fad.fa-map-marker-check:after{content:"\10f606"}.fad.fa-map-marker-edit:after{content:"\10f607"}.fad.fa-map-marker-exclamation:after{content:"\10f608"}.fad.fa-map-marker-minus:after{content:"\10f609"}.fad.fa-map-marker-plus:after{content:"\10f60a"}.fad.fa-map-marker-question:after{content:"\10f60b"}.fad.fa-map-marker-slash:after{content:"\10f60c"}.fad.fa-map-marker-smile:after{content:"\10f60d"}.fad.fa-map-marker-times:after{content:"\10f60e"}.fad.fa-map-pin:after{content:"\10f276"}.fad.fa-map-signs:after{content:"\10f277"}.fad.fa-marker:after{content:"\10f5a1"}.fad.fa-mars:after{content:"\10f222"}.fad.fa-mars-double:after{content:"\10f227"}.fad.fa-mars-stroke:after{content:"\10f229"}.fad.fa-mars-stroke-h:after{content:"\10f22b"}.fad.fa-mars-stroke-v:after{content:"\10f22a"}.fad.fa-mask:after{content:"\10f6fa"}.fad.fa-meat:after{content:"\10f814"}.fad.fa-medal:after{content:"\10f5a2"}.fad.fa-medkit:after{content:"\10f0fa"}.fad.fa-megaphone:after{content:"\10f675"}.fad.fa-meh:after{content:"\10f11a"}.fad.fa-meh-blank:after{content:"\10f5a4"}.fad.fa-meh-rolling-eyes:after{content:"\10f5a5"}.fad.fa-memory:after{content:"\10f538"}.fad.fa-menorah:after{content:"\10f676"}.fad.fa-mercury:after{content:"\10f223"}.fad.fa-meteor:after{content:"\10f753"}.fad.fa-microchip:after{content:"\10f2db"}.fad.fa-microphone:after{content:"\10f130"}.fad.fa-microphone-alt:after{content:"\10f3c9"}.fad.fa-microphone-alt-slash:after{content:"\10f539"}.fad.fa-microphone-slash:after{content:"\10f131"}.fad.fa-microphone-stand:after{content:"\10f8cb"}.fad.fa-microscope:after{content:"\10f610"}.fad.fa-microwave:after{content:"\10e01b"}.fad.fa-mind-share:after{content:"\10f677"}.fad.fa-minus:after{content:"\10f068"}.fad.fa-minus-circle:after{content:"\10f056"}.fad.fa-minus-hexagon:after{content:"\10f307"}.fad.fa-minus-octagon:after{content:"\10f308"}.fad.fa-minus-square:after{content:"\10f146"}.fad.fa-mistletoe:after{content:"\10f7b4"}.fad.fa-mitten:after{content:"\10f7b5"}.fad.fa-mobile:after{content:"\10f10b"}.fad.fa-mobile-alt:after{content:"\10f3cd"}.fad.fa-mobile-android:after{content:"\10f3ce"}.fad.fa-mobile-android-alt:after{content:"\10f3cf"}.fad.fa-money-bill:after{content:"\10f0d6"}.fad.fa-money-bill-alt:after{content:"\10f3d1"}.fad.fa-money-bill-wave:after{content:"\10f53a"}.fad.fa-money-bill-wave-alt:after{content:"\10f53b"}.fad.fa-money-check:after{content:"\10f53c"}.fad.fa-money-check-alt:after{content:"\10f53d"}.fad.fa-money-check-edit:after{content:"\10f872"}.fad.fa-money-check-edit-alt:after{content:"\10f873"}.fad.fa-monitor-heart-rate:after{content:"\10f611"}.fad.fa-monkey:after{content:"\10f6fb"}.fad.fa-monument:after{content:"\10f5a6"}.fad.fa-moon:after{content:"\10f186"}.fad.fa-moon-cloud:after{content:"\10f754"}.fad.fa-moon-stars:after{content:"\10f755"}.fad.fa-mortar-pestle:after{content:"\10f5a7"}.fad.fa-mosque:after{content:"\10f678"}.fad.fa-motorcycle:after{content:"\10f21c"}.fad.fa-mountain:after{content:"\10f6fc"}.fad.fa-mountains:after{content:"\10f6fd"}.fad.fa-mouse:after{content:"\10f8cc"}.fad.fa-mouse-alt:after{content:"\10f8cd"}.fad.fa-mouse-pointer:after{content:"\10f245"}.fad.fa-mp3-player:after{content:"\10f8ce"}.fad.fa-mug:after{content:"\10f874"}.fad.fa-mug-hot:after{content:"\10f7b6"}.fad.fa-mug-marshmallows:after{content:"\10f7b7"}.fad.fa-mug-tea:after{content:"\10f875"}.fad.fa-music:after{content:"\10f001"}.fad.fa-music-alt:after{content:"\10f8cf"}.fad.fa-music-alt-slash:after{content:"\10f8d0"}.fad.fa-music-slash:after{content:"\10f8d1"}.fad.fa-narwhal:after{content:"\10f6fe"}.fad.fa-network-wired:after{content:"\10f6ff"}.fad.fa-neuter:after{content:"\10f22c"}.fad.fa-newspaper:after{content:"\10f1ea"}.fad.fa-not-equal:after{content:"\10f53e"}.fad.fa-notes-medical:after{content:"\10f481"}.fad.fa-object-group:after{content:"\10f247"}.fad.fa-object-ungroup:after{content:"\10f248"}.fad.fa-octagon:after{content:"\10f306"}.fad.fa-oil-can:after{content:"\10f613"}.fad.fa-oil-temp:after{content:"\10f614"}.fad.fa-om:after{content:"\10f679"}.fad.fa-omega:after{content:"\10f67a"}.fad.fa-ornament:after{content:"\10f7b8"}.fad.fa-otter:after{content:"\10f700"}.fad.fa-outdent:after{content:"\10f03b"}.fad.fa-outlet:after{content:"\10e01c"}.fad.fa-oven:after{content:"\10e01d"}.fad.fa-overline:after{content:"\10f876"}.fad.fa-page-break:after{content:"\10f877"}.fad.fa-pager:after{content:"\10f815"}.fad.fa-paint-brush:after{content:"\10f1fc"}.fad.fa-paint-brush-alt:after{content:"\10f5a9"}.fad.fa-paint-roller:after{content:"\10f5aa"}.fad.fa-palette:after{content:"\10f53f"}.fad.fa-pallet:after{content:"\10f482"}.fad.fa-pallet-alt:after{content:"\10f483"}.fad.fa-paper-plane:after{content:"\10f1d8"}.fad.fa-paperclip:after{content:"\10f0c6"}.fad.fa-parachute-box:after{content:"\10f4cd"}.fad.fa-paragraph:after{content:"\10f1dd"}.fad.fa-paragraph-rtl:after{content:"\10f878"}.fad.fa-parking:after{content:"\10f540"}.fad.fa-parking-circle:after{content:"\10f615"}.fad.fa-parking-circle-slash:after{content:"\10f616"}.fad.fa-parking-slash:after{content:"\10f617"}.fad.fa-passport:after{content:"\10f5ab"}.fad.fa-pastafarianism:after{content:"\10f67b"}.fad.fa-paste:after{content:"\10f0ea"}.fad.fa-pause:after{content:"\10f04c"}.fad.fa-pause-circle:after{content:"\10f28b"}.fad.fa-paw:after{content:"\10f1b0"}.fad.fa-paw-alt:after{content:"\10f701"}.fad.fa-paw-claws:after{content:"\10f702"}.fad.fa-peace:after{content:"\10f67c"}.fad.fa-pegasus:after{content:"\10f703"}.fad.fa-pen:after{content:"\10f304"}.fad.fa-pen-alt:after{content:"\10f305"}.fad.fa-pen-fancy:after{content:"\10f5ac"}.fad.fa-pen-nib:after{content:"\10f5ad"}.fad.fa-pen-square:after{content:"\10f14b"}.fad.fa-pencil:after{content:"\10f040"}.fad.fa-pencil-alt:after{content:"\10f303"}.fad.fa-pencil-paintbrush:after{content:"\10f618"}.fad.fa-pencil-ruler:after{content:"\10f5ae"}.fad.fa-pennant:after{content:"\10f456"}.fad.fa-people-arrows:after{content:"\10e068"}.fad.fa-people-carry:after{content:"\10f4ce"}.fad.fa-pepper-hot:after{content:"\10f816"}.fad.fa-percent:after{content:"\10f295"}.fad.fa-percentage:after{content:"\10f541"}.fad.fa-person-booth:after{content:"\10f756"}.fad.fa-person-carry:after{content:"\10f4cf"}.fad.fa-person-dolly:after{content:"\10f4d0"}.fad.fa-person-dolly-empty:after{content:"\10f4d1"}.fad.fa-person-sign:after{content:"\10f757"}.fad.fa-phone:after{content:"\10f095"}.fad.fa-phone-alt:after{content:"\10f879"}.fad.fa-phone-laptop:after{content:"\10f87a"}.fad.fa-phone-office:after{content:"\10f67d"}.fad.fa-phone-plus:after{content:"\10f4d2"}.fad.fa-phone-rotary:after{content:"\10f8d3"}.fad.fa-phone-slash:after{content:"\10f3dd"}.fad.fa-phone-square:after{content:"\10f098"}.fad.fa-phone-square-alt:after{content:"\10f87b"}.fad.fa-phone-volume:after{content:"\10f2a0"}.fad.fa-photo-video:after{content:"\10f87c"}.fad.fa-pi:after{content:"\10f67e"}.fad.fa-piano:after{content:"\10f8d4"}.fad.fa-piano-keyboard:after{content:"\10f8d5"}.fad.fa-pie:after{content:"\10f705"}.fad.fa-pig:after{content:"\10f706"}.fad.fa-piggy-bank:after{content:"\10f4d3"}.fad.fa-pills:after{content:"\10f484"}.fad.fa-pizza:after{content:"\10f817"}.fad.fa-pizza-slice:after{content:"\10f818"}.fad.fa-place-of-worship:after{content:"\10f67f"}.fad.fa-plane:after{content:"\10f072"}.fad.fa-plane-alt:after{content:"\10f3de"}.fad.fa-plane-arrival:after{content:"\10f5af"}.fad.fa-plane-departure:after{content:"\10f5b0"}.fad.fa-plane-slash:after{content:"\10e069"}.fad.fa-planet-moon:after{content:"\10e01f"}.fad.fa-planet-ringed:after{content:"\10e020"}.fad.fa-play:after{content:"\10f04b"}.fad.fa-play-circle:after{content:"\10f144"}.fad.fa-plug:after{content:"\10f1e6"}.fad.fa-plus:after{content:"\10f067"}.fad.fa-plus-circle:after{content:"\10f055"}.fad.fa-plus-hexagon:after{content:"\10f300"}.fad.fa-plus-octagon:after{content:"\10f301"}.fad.fa-plus-square:after{content:"\10f0fe"}.fad.fa-podcast:after{content:"\10f2ce"}.fad.fa-podium:after{content:"\10f680"}.fad.fa-podium-star:after{content:"\10f758"}.fad.fa-police-box:after{content:"\10e021"}.fad.fa-poll:after{content:"\10f681"}.fad.fa-poll-h:after{content:"\10f682"}.fad.fa-poll-people:after{content:"\10f759"}.fad.fa-poo:after{content:"\10f2fe"}.fad.fa-poo-storm:after{content:"\10f75a"}.fad.fa-poop:after{content:"\10f619"}.fad.fa-popcorn:after{content:"\10f819"}.fad.fa-portal-enter:after{content:"\10e022"}.fad.fa-portal-exit:after{content:"\10e023"}.fad.fa-portrait:after{content:"\10f3e0"}.fad.fa-pound-sign:after{content:"\10f154"}.fad.fa-power-off:after{content:"\10f011"}.fad.fa-pray:after{content:"\10f683"}.fad.fa-praying-hands:after{content:"\10f684"}.fad.fa-prescription:after{content:"\10f5b1"}.fad.fa-prescription-bottle:after{content:"\10f485"}.fad.fa-prescription-bottle-alt:after{content:"\10f486"}.fad.fa-presentation:after{content:"\10f685"}.fad.fa-print:after{content:"\10f02f"}.fad.fa-print-search:after{content:"\10f81a"}.fad.fa-print-slash:after{content:"\10f686"}.fad.fa-procedures:after{content:"\10f487"}.fad.fa-project-diagram:after{content:"\10f542"}.fad.fa-projector:after{content:"\10f8d6"}.fad.fa-pump-medical:after{content:"\10e06a"}.fad.fa-pump-soap:after{content:"\10e06b"}.fad.fa-pumpkin:after{content:"\10f707"}.fad.fa-puzzle-piece:after{content:"\10f12e"}.fad.fa-qrcode:after{content:"\10f029"}.fad.fa-question:after{content:"\10f128"}.fad.fa-question-circle:after{content:"\10f059"}.fad.fa-question-square:after{content:"\10f2fd"}.fad.fa-quidditch:after{content:"\10f458"}.fad.fa-quote-left:after{content:"\10f10d"}.fad.fa-quote-right:after{content:"\10f10e"}.fad.fa-quran:after{content:"\10f687"}.fad.fa-rabbit:after{content:"\10f708"}.fad.fa-rabbit-fast:after{content:"\10f709"}.fad.fa-racquet:after{content:"\10f45a"}.fad.fa-radar:after{content:"\10e024"}.fad.fa-radiation:after{content:"\10f7b9"}.fad.fa-radiation-alt:after{content:"\10f7ba"}.fad.fa-radio:after{content:"\10f8d7"}.fad.fa-radio-alt:after{content:"\10f8d8"}.fad.fa-rainbow:after{content:"\10f75b"}.fad.fa-raindrops:after{content:"\10f75c"}.fad.fa-ram:after{content:"\10f70a"}.fad.fa-ramp-loading:after{content:"\10f4d4"}.fad.fa-random:after{content:"\10f074"}.fad.fa-raygun:after{content:"\10e025"}.fad.fa-receipt:after{content:"\10f543"}.fad.fa-record-vinyl:after{content:"\10f8d9"}.fad.fa-rectangle-landscape:after{content:"\10f2fa"}.fad.fa-rectangle-portrait:after{content:"\10f2fb"}.fad.fa-rectangle-wide:after{content:"\10f2fc"}.fad.fa-recycle:after{content:"\10f1b8"}.fad.fa-redo:after{content:"\10f01e"}.fad.fa-redo-alt:after{content:"\10f2f9"}.fad.fa-refrigerator:after{content:"\10e026"}.fad.fa-registered:after{content:"\10f25d"}.fad.fa-remove-format:after{content:"\10f87d"}.fad.fa-repeat:after{content:"\10f363"}.fad.fa-repeat-1:after{content:"\10f365"}.fad.fa-repeat-1-alt:after{content:"\10f366"}.fad.fa-repeat-alt:after{content:"\10f364"}.fad.fa-reply:after{content:"\10f3e5"}.fad.fa-reply-all:after{content:"\10f122"}.fad.fa-republican:after{content:"\10f75e"}.fad.fa-restroom:after{content:"\10f7bd"}.fad.fa-retweet:after{content:"\10f079"}.fad.fa-retweet-alt:after{content:"\10f361"}.fad.fa-ribbon:after{content:"\10f4d6"}.fad.fa-ring:after{content:"\10f70b"}.fad.fa-rings-wedding:after{content:"\10f81b"}.fad.fa-road:after{content:"\10f018"}.fad.fa-robot:after{content:"\10f544"}.fad.fa-rocket:after{content:"\10f135"}.fad.fa-rocket-launch:after{content:"\10e027"}.fad.fa-route:after{content:"\10f4d7"}.fad.fa-route-highway:after{content:"\10f61a"}.fad.fa-route-interstate:after{content:"\10f61b"}.fad.fa-router:after{content:"\10f8da"}.fad.fa-rss:after{content:"\10f09e"}.fad.fa-rss-square:after{content:"\10f143"}.fad.fa-ruble-sign:after{content:"\10f158"}.fad.fa-ruler:after{content:"\10f545"}.fad.fa-ruler-combined:after{content:"\10f546"}.fad.fa-ruler-horizontal:after{content:"\10f547"}.fad.fa-ruler-triangle:after{content:"\10f61c"}.fad.fa-ruler-vertical:after{content:"\10f548"}.fad.fa-running:after{content:"\10f70c"}.fad.fa-rupee-sign:after{content:"\10f156"}.fad.fa-rv:after{content:"\10f7be"}.fad.fa-sack:after{content:"\10f81c"}.fad.fa-sack-dollar:after{content:"\10f81d"}.fad.fa-sad-cry:after{content:"\10f5b3"}.fad.fa-sad-tear:after{content:"\10f5b4"}.fad.fa-salad:after{content:"\10f81e"}.fad.fa-sandwich:after{content:"\10f81f"}.fad.fa-satellite:after{content:"\10f7bf"}.fad.fa-satellite-dish:after{content:"\10f7c0"}.fad.fa-sausage:after{content:"\10f820"}.fad.fa-save:after{content:"\10f0c7"}.fad.fa-sax-hot:after{content:"\10f8db"}.fad.fa-saxophone:after{content:"\10f8dc"}.fad.fa-scalpel:after{content:"\10f61d"}.fad.fa-scalpel-path:after{content:"\10f61e"}.fad.fa-scanner:after{content:"\10f488"}.fad.fa-scanner-image:after{content:"\10f8f3"}.fad.fa-scanner-keyboard:after{content:"\10f489"}.fad.fa-scanner-touchscreen:after{content:"\10f48a"}.fad.fa-scarecrow:after{content:"\10f70d"}.fad.fa-scarf:after{content:"\10f7c1"}.fad.fa-school:after{content:"\10f549"}.fad.fa-screwdriver:after{content:"\10f54a"}.fad.fa-scroll:after{content:"\10f70e"}.fad.fa-scroll-old:after{content:"\10f70f"}.fad.fa-scrubber:after{content:"\10f2f8"}.fad.fa-scythe:after{content:"\10f710"}.fad.fa-sd-card:after{content:"\10f7c2"}.fad.fa-search:after{content:"\10f002"}.fad.fa-search-dollar:after{content:"\10f688"}.fad.fa-search-location:after{content:"\10f689"}.fad.fa-search-minus:after{content:"\10f010"}.fad.fa-search-plus:after{content:"\10f00e"}.fad.fa-seedling:after{content:"\10f4d8"}.fad.fa-send-back:after{content:"\10f87e"}.fad.fa-send-backward:after{content:"\10f87f"}.fad.fa-sensor:after{content:"\10e028"}.fad.fa-sensor-alert:after{content:"\10e029"}.fad.fa-sensor-fire:after{content:"\10e02a"}.fad.fa-sensor-on:after{content:"\10e02b"}.fad.fa-sensor-smoke:after{content:"\10e02c"}.fad.fa-server:after{content:"\10f233"}.fad.fa-shapes:after{content:"\10f61f"}.fad.fa-share:after{content:"\10f064"}.fad.fa-share-all:after{content:"\10f367"}.fad.fa-share-alt:after{content:"\10f1e0"}.fad.fa-share-alt-square:after{content:"\10f1e1"}.fad.fa-share-square:after{content:"\10f14d"}.fad.fa-sheep:after{content:"\10f711"}.fad.fa-shekel-sign:after{content:"\10f20b"}.fad.fa-shield:after{content:"\10f132"}.fad.fa-shield-alt:after{content:"\10f3ed"}.fad.fa-shield-check:after{content:"\10f2f7"}.fad.fa-shield-cross:after{content:"\10f712"}.fad.fa-shield-virus:after{content:"\10e06c"}.fad.fa-ship:after{content:"\10f21a"}.fad.fa-shipping-fast:after{content:"\10f48b"}.fad.fa-shipping-timed:after{content:"\10f48c"}.fad.fa-shish-kebab:after{content:"\10f821"}.fad.fa-shoe-prints:after{content:"\10f54b"}.fad.fa-shopping-bag:after{content:"\10f290"}.fad.fa-shopping-basket:after{content:"\10f291"}.fad.fa-shopping-cart:after{content:"\10f07a"}.fad.fa-shovel:after{content:"\10f713"}.fad.fa-shovel-snow:after{content:"\10f7c3"}.fad.fa-shower:after{content:"\10f2cc"}.fad.fa-shredder:after{content:"\10f68a"}.fad.fa-shuttle-van:after{content:"\10f5b6"}.fad.fa-shuttlecock:after{content:"\10f45b"}.fad.fa-sickle:after{content:"\10f822"}.fad.fa-sigma:after{content:"\10f68b"}.fad.fa-sign:after{content:"\10f4d9"}.fad.fa-sign-in:after{content:"\10f090"}.fad.fa-sign-in-alt:after{content:"\10f2f6"}.fad.fa-sign-language:after{content:"\10f2a7"}.fad.fa-sign-out:after{content:"\10f08b"}.fad.fa-sign-out-alt:after{content:"\10f2f5"}.fad.fa-signal:after{content:"\10f012"}.fad.fa-signal-1:after{content:"\10f68c"}.fad.fa-signal-2:after{content:"\10f68d"}.fad.fa-signal-3:after{content:"\10f68e"}.fad.fa-signal-4:after{content:"\10f68f"}.fad.fa-signal-alt:after{content:"\10f690"}.fad.fa-signal-alt-1:after{content:"\10f691"}.fad.fa-signal-alt-2:after{content:"\10f692"}.fad.fa-signal-alt-3:after{content:"\10f693"}.fad.fa-signal-alt-slash:after{content:"\10f694"}.fad.fa-signal-slash:after{content:"\10f695"}.fad.fa-signal-stream:after{content:"\10f8dd"}.fad.fa-signature:after{content:"\10f5b7"}.fad.fa-sim-card:after{content:"\10f7c4"}.fad.fa-sink:after{content:"\10e06d"}.fad.fa-siren:after{content:"\10e02d"}.fad.fa-siren-on:after{content:"\10e02e"}.fad.fa-sitemap:after{content:"\10f0e8"}.fad.fa-skating:after{content:"\10f7c5"}.fad.fa-skeleton:after{content:"\10f620"}.fad.fa-ski-jump:after{content:"\10f7c7"}.fad.fa-ski-lift:after{content:"\10f7c8"}.fad.fa-skiing:after{content:"\10f7c9"}.fad.fa-skiing-nordic:after{content:"\10f7ca"}.fad.fa-skull:after{content:"\10f54c"}.fad.fa-skull-cow:after{content:"\10f8de"}.fad.fa-skull-crossbones:after{content:"\10f714"}.fad.fa-slash:after{content:"\10f715"}.fad.fa-sledding:after{content:"\10f7cb"}.fad.fa-sleigh:after{content:"\10f7cc"}.fad.fa-sliders-h:after{content:"\10f1de"}.fad.fa-sliders-h-square:after{content:"\10f3f0"}.fad.fa-sliders-v:after{content:"\10f3f1"}.fad.fa-sliders-v-square:after{content:"\10f3f2"}.fad.fa-smile:after{content:"\10f118"}.fad.fa-smile-beam:after{content:"\10f5b8"}.fad.fa-smile-plus:after{content:"\10f5b9"}.fad.fa-smile-wink:after{content:"\10f4da"}.fad.fa-smog:after{content:"\10f75f"}.fad.fa-smoke:after{content:"\10f760"}.fad.fa-smoking:after{content:"\10f48d"}.fad.fa-smoking-ban:after{content:"\10f54d"}.fad.fa-sms:after{content:"\10f7cd"}.fad.fa-snake:after{content:"\10f716"}.fad.fa-snooze:after{content:"\10f880"}.fad.fa-snow-blowing:after{content:"\10f761"}.fad.fa-snowboarding:after{content:"\10f7ce"}.fad.fa-snowflake:after{content:"\10f2dc"}.fad.fa-snowflakes:after{content:"\10f7cf"}.fad.fa-snowman:after{content:"\10f7d0"}.fad.fa-snowmobile:after{content:"\10f7d1"}.fad.fa-snowplow:after{content:"\10f7d2"}.fad.fa-soap:after{content:"\10e06e"}.fad.fa-socks:after{content:"\10f696"}.fad.fa-solar-panel:after{content:"\10f5ba"}.fad.fa-solar-system:after{content:"\10e02f"}.fad.fa-sort:after{content:"\10f0dc"}.fad.fa-sort-alpha-down:after{content:"\10f15d"}.fad.fa-sort-alpha-down-alt:after{content:"\10f881"}.fad.fa-sort-alpha-up:after{content:"\10f15e"}.fad.fa-sort-alpha-up-alt:after{content:"\10f882"}.fad.fa-sort-alt:after{content:"\10f883"}.fad.fa-sort-amount-down:after{content:"\10f160"}.fad.fa-sort-amount-down-alt:after{content:"\10f884"}.fad.fa-sort-amount-up:after{content:"\10f161"}.fad.fa-sort-amount-up-alt:after{content:"\10f885"}.fad.fa-sort-circle:after{content:"\10e030"}.fad.fa-sort-circle-down:after{content:"\10e031"}.fad.fa-sort-circle-up:after{content:"\10e032"}.fad.fa-sort-down:after{content:"\10f0dd"}.fad.fa-sort-numeric-down:after{content:"\10f162"}.fad.fa-sort-numeric-down-alt:after{content:"\10f886"}.fad.fa-sort-numeric-up:after{content:"\10f163"}.fad.fa-sort-numeric-up-alt:after{content:"\10f887"}.fad.fa-sort-shapes-down:after{content:"\10f888"}.fad.fa-sort-shapes-down-alt:after{content:"\10f889"}.fad.fa-sort-shapes-up:after{content:"\10f88a"}.fad.fa-sort-shapes-up-alt:after{content:"\10f88b"}.fad.fa-sort-size-down:after{content:"\10f88c"}.fad.fa-sort-size-down-alt:after{content:"\10f88d"}.fad.fa-sort-size-up:after{content:"\10f88e"}.fad.fa-sort-size-up-alt:after{content:"\10f88f"}.fad.fa-sort-up:after{content:"\10f0de"}.fad.fa-soup:after{content:"\10f823"}.fad.fa-spa:after{content:"\10f5bb"}.fad.fa-space-shuttle:after{content:"\10f197"}.fad.fa-space-station-moon:after{content:"\10e033"}.fad.fa-space-station-moon-alt:after{content:"\10e034"}.fad.fa-spade:after{content:"\10f2f4"}.fad.fa-sparkles:after{content:"\10f890"}.fad.fa-speaker:after{content:"\10f8df"}.fad.fa-speakers:after{content:"\10f8e0"}.fad.fa-spell-check:after{content:"\10f891"}.fad.fa-spider:after{content:"\10f717"}.fad.fa-spider-black-widow:after{content:"\10f718"}.fad.fa-spider-web:after{content:"\10f719"}.fad.fa-spinner:after{content:"\10f110"}.fad.fa-spinner-third:after{content:"\10f3f4"}.fad.fa-splotch:after{content:"\10f5bc"}.fad.fa-spray-can:after{content:"\10f5bd"}.fad.fa-sprinkler:after{content:"\10e035"}.fad.fa-square:after{content:"\10f0c8"}.fad.fa-square-full:after{content:"\10f45c"}.fad.fa-square-root:after{content:"\10f697"}.fad.fa-square-root-alt:after{content:"\10f698"}.fad.fa-squirrel:after{content:"\10f71a"}.fad.fa-staff:after{content:"\10f71b"}.fad.fa-stamp:after{content:"\10f5bf"}.fad.fa-star:after{content:"\10f005"}.fad.fa-star-and-crescent:after{content:"\10f699"}.fad.fa-star-christmas:after{content:"\10f7d4"}.fad.fa-star-exclamation:after{content:"\10f2f3"}.fad.fa-star-half:after{content:"\10f089"}.fad.fa-star-half-alt:after{content:"\10f5c0"}.fad.fa-star-of-david:after{content:"\10f69a"}.fad.fa-star-of-life:after{content:"\10f621"}.fad.fa-star-shooting:after{content:"\10e036"}.fad.fa-starfighter:after{content:"\10e037"}.fad.fa-starfighter-alt:after{content:"\10e038"}.fad.fa-stars:after{content:"\10f762"}.fad.fa-starship:after{content:"\10e039"}.fad.fa-starship-freighter:after{content:"\10e03a"}.fad.fa-steak:after{content:"\10f824"}.fad.fa-steering-wheel:after{content:"\10f622"}.fad.fa-step-backward:after{content:"\10f048"}.fad.fa-step-forward:after{content:"\10f051"}.fad.fa-stethoscope:after{content:"\10f0f1"}.fad.fa-sticky-note:after{content:"\10f249"}.fad.fa-stocking:after{content:"\10f7d5"}.fad.fa-stomach:after{content:"\10f623"}.fad.fa-stop:after{content:"\10f04d"}.fad.fa-stop-circle:after{content:"\10f28d"}.fad.fa-stopwatch:after{content:"\10f2f2"}.fad.fa-stopwatch-20:after{content:"\10e06f"}.fad.fa-store:after{content:"\10f54e"}.fad.fa-store-alt:after{content:"\10f54f"}.fad.fa-store-alt-slash:after{content:"\10e070"}.fad.fa-store-slash:after{content:"\10e071"}.fad.fa-stream:after{content:"\10f550"}.fad.fa-street-view:after{content:"\10f21d"}.fad.fa-stretcher:after{content:"\10f825"}.fad.fa-strikethrough:after{content:"\10f0cc"}.fad.fa-stroopwafel:after{content:"\10f551"}.fad.fa-subscript:after{content:"\10f12c"}.fad.fa-subway:after{content:"\10f239"}.fad.fa-suitcase:after{content:"\10f0f2"}.fad.fa-suitcase-rolling:after{content:"\10f5c1"}.fad.fa-sun:after{content:"\10f185"}.fad.fa-sun-cloud:after{content:"\10f763"}.fad.fa-sun-dust:after{content:"\10f764"}.fad.fa-sun-haze:after{content:"\10f765"}.fad.fa-sunglasses:after{content:"\10f892"}.fad.fa-sunrise:after{content:"\10f766"}.fad.fa-sunset:after{content:"\10f767"}.fad.fa-superscript:after{content:"\10f12b"}.fad.fa-surprise:after{content:"\10f5c2"}.fad.fa-swatchbook:after{content:"\10f5c3"}.fad.fa-swimmer:after{content:"\10f5c4"}.fad.fa-swimming-pool:after{content:"\10f5c5"}.fad.fa-sword:after{content:"\10f71c"}.fad.fa-sword-laser:after{content:"\10e03b"}.fad.fa-sword-laser-alt:after{content:"\10e03c"}.fad.fa-swords:after{content:"\10f71d"}.fad.fa-swords-laser:after{content:"\10e03d"}.fad.fa-synagogue:after{content:"\10f69b"}.fad.fa-sync:after{content:"\10f021"}.fad.fa-sync-alt:after{content:"\10f2f1"}.fad.fa-syringe:after{content:"\10f48e"}.fad.fa-table:after{content:"\10f0ce"}.fad.fa-table-tennis:after{content:"\10f45d"}.fad.fa-tablet:after{content:"\10f10a"}.fad.fa-tablet-alt:after{content:"\10f3fa"}.fad.fa-tablet-android:after{content:"\10f3fb"}.fad.fa-tablet-android-alt:after{content:"\10f3fc"}.fad.fa-tablet-rugged:after{content:"\10f48f"}.fad.fa-tablets:after{content:"\10f490"}.fad.fa-tachometer:after{content:"\10f0e4"}.fad.fa-tachometer-alt:after{content:"\10f3fd"}.fad.fa-tachometer-alt-average:after{content:"\10f624"}.fad.fa-tachometer-alt-fast:after{content:"\10f625"}.fad.fa-tachometer-alt-fastest:after{content:"\10f626"}.fad.fa-tachometer-alt-slow:after{content:"\10f627"}.fad.fa-tachometer-alt-slowest:after{content:"\10f628"}.fad.fa-tachometer-average:after{content:"\10f629"}.fad.fa-tachometer-fast:after{content:"\10f62a"}.fad.fa-tachometer-fastest:after{content:"\10f62b"}.fad.fa-tachometer-slow:after{content:"\10f62c"}.fad.fa-tachometer-slowest:after{content:"\10f62d"}.fad.fa-taco:after{content:"\10f826"}.fad.fa-tag:after{content:"\10f02b"}.fad.fa-tags:after{content:"\10f02c"}.fad.fa-tally:after{content:"\10f69c"}.fad.fa-tanakh:after{content:"\10f827"}.fad.fa-tape:after{content:"\10f4db"}.fad.fa-tasks:after{content:"\10f0ae"}.fad.fa-tasks-alt:after{content:"\10f828"}.fad.fa-taxi:after{content:"\10f1ba"}.fad.fa-teeth:after{content:"\10f62e"}.fad.fa-teeth-open:after{content:"\10f62f"}.fad.fa-telescope:after{content:"\10e03e"}.fad.fa-temperature-down:after{content:"\10e03f"}.fad.fa-temperature-frigid:after{content:"\10f768"}.fad.fa-temperature-high:after{content:"\10f769"}.fad.fa-temperature-hot:after{content:"\10f76a"}.fad.fa-temperature-low:after{content:"\10f76b"}.fad.fa-temperature-up:after{content:"\10e040"}.fad.fa-tenge:after{content:"\10f7d7"}.fad.fa-tennis-ball:after{content:"\10f45e"}.fad.fa-terminal:after{content:"\10f120"}.fad.fa-text:after{content:"\10f893"}.fad.fa-text-height:after{content:"\10f034"}.fad.fa-text-size:after{content:"\10f894"}.fad.fa-text-width:after{content:"\10f035"}.fad.fa-th:after{content:"\10f00a"}.fad.fa-th-large:after{content:"\10f009"}.fad.fa-th-list:after{content:"\10f00b"}.fad.fa-theater-masks:after{content:"\10f630"}.fad.fa-thermometer:after{content:"\10f491"}.fad.fa-thermometer-empty:after{content:"\10f2cb"}.fad.fa-thermometer-full:after{content:"\10f2c7"}.fad.fa-thermometer-half:after{content:"\10f2c9"}.fad.fa-thermometer-quarter:after{content:"\10f2ca"}.fad.fa-thermometer-three-quarters:after{content:"\10f2c8"}.fad.fa-theta:after{content:"\10f69e"}.fad.fa-thumbs-down:after{content:"\10f165"}.fad.fa-thumbs-up:after{content:"\10f164"}.fad.fa-thumbtack:after{content:"\10f08d"}.fad.fa-thunderstorm:after{content:"\10f76c"}.fad.fa-thunderstorm-moon:after{content:"\10f76d"}.fad.fa-thunderstorm-sun:after{content:"\10f76e"}.fad.fa-ticket:after{content:"\10f145"}.fad.fa-ticket-alt:after{content:"\10f3ff"}.fad.fa-tilde:after{content:"\10f69f"}.fad.fa-times:after{content:"\10f00d"}.fad.fa-times-circle:after{content:"\10f057"}.fad.fa-times-hexagon:after{content:"\10f2ee"}.fad.fa-times-octagon:after{content:"\10f2f0"}.fad.fa-times-square:after{content:"\10f2d3"}.fad.fa-tint:after{content:"\10f043"}.fad.fa-tint-slash:after{content:"\10f5c7"}.fad.fa-tire:after{content:"\10f631"}.fad.fa-tire-flat:after{content:"\10f632"}.fad.fa-tire-pressure-warning:after{content:"\10f633"}.fad.fa-tire-rugged:after{content:"\10f634"}.fad.fa-tired:after{content:"\10f5c8"}.fad.fa-toggle-off:after{content:"\10f204"}.fad.fa-toggle-on:after{content:"\10f205"}.fad.fa-toilet:after{content:"\10f7d8"}.fad.fa-toilet-paper:after{content:"\10f71e"}.fad.fa-toilet-paper-alt:after{content:"\10f71f"}.fad.fa-toilet-paper-slash:after{content:"\10e072"}.fad.fa-tombstone:after{content:"\10f720"}.fad.fa-tombstone-alt:after{content:"\10f721"}.fad.fa-toolbox:after{content:"\10f552"}.fad.fa-tools:after{content:"\10f7d9"}.fad.fa-tooth:after{content:"\10f5c9"}.fad.fa-toothbrush:after{content:"\10f635"}.fad.fa-torah:after{content:"\10f6a0"}.fad.fa-torii-gate:after{content:"\10f6a1"}.fad.fa-tornado:after{content:"\10f76f"}.fad.fa-tractor:after{content:"\10f722"}.fad.fa-trademark:after{content:"\10f25c"}.fad.fa-traffic-cone:after{content:"\10f636"}.fad.fa-traffic-light:after{content:"\10f637"}.fad.fa-traffic-light-go:after{content:"\10f638"}.fad.fa-traffic-light-slow:after{content:"\10f639"}.fad.fa-traffic-light-stop:after{content:"\10f63a"}.fad.fa-trailer:after{content:"\10e041"}.fad.fa-train:after{content:"\10f238"}.fad.fa-tram:after{content:"\10f7da"}.fad.fa-transgender:after{content:"\10f224"}.fad.fa-transgender-alt:after{content:"\10f225"}.fad.fa-transporter:after{content:"\10e042"}.fad.fa-transporter-1:after{content:"\10e043"}.fad.fa-transporter-2:after{content:"\10e044"}.fad.fa-transporter-3:after{content:"\10e045"}.fad.fa-transporter-empty:after{content:"\10e046"}.fad.fa-trash:after{content:"\10f1f8"}.fad.fa-trash-alt:after{content:"\10f2ed"}.fad.fa-trash-restore:after{content:"\10f829"}.fad.fa-trash-restore-alt:after{content:"\10f82a"}.fad.fa-trash-undo:after{content:"\10f895"}.fad.fa-trash-undo-alt:after{content:"\10f896"}.fad.fa-treasure-chest:after{content:"\10f723"}.fad.fa-tree:after{content:"\10f1bb"}.fad.fa-tree-alt:after{content:"\10f400"}.fad.fa-tree-christmas:after{content:"\10f7db"}.fad.fa-tree-decorated:after{content:"\10f7dc"}.fad.fa-tree-large:after{content:"\10f7dd"}.fad.fa-tree-palm:after{content:"\10f82b"}.fad.fa-trees:after{content:"\10f724"}.fad.fa-triangle:after{content:"\10f2ec"}.fad.fa-triangle-music:after{content:"\10f8e2"}.fad.fa-trophy:after{content:"\10f091"}.fad.fa-trophy-alt:after{content:"\10f2eb"}.fad.fa-truck:after{content:"\10f0d1"}.fad.fa-truck-container:after{content:"\10f4dc"}.fad.fa-truck-couch:after{content:"\10f4dd"}.fad.fa-truck-loading:after{content:"\10f4de"}.fad.fa-truck-monster:after{content:"\10f63b"}.fad.fa-truck-moving:after{content:"\10f4df"}.fad.fa-truck-pickup:after{content:"\10f63c"}.fad.fa-truck-plow:after{content:"\10f7de"}.fad.fa-truck-ramp:after{content:"\10f4e0"}.fad.fa-trumpet:after{content:"\10f8e3"}.fad.fa-tshirt:after{content:"\10f553"}.fad.fa-tty:after{content:"\10f1e4"}.fad.fa-turkey:after{content:"\10f725"}.fad.fa-turntable:after{content:"\10f8e4"}.fad.fa-turtle:after{content:"\10f726"}.fad.fa-tv:after{content:"\10f26c"}.fad.fa-tv-alt:after{content:"\10f8e5"}.fad.fa-tv-music:after{content:"\10f8e6"}.fad.fa-tv-retro:after{content:"\10f401"}.fad.fa-typewriter:after{content:"\10f8e7"}.fad.fa-ufo:after{content:"\10e047"}.fad.fa-ufo-beam:after{content:"\10e048"}.fad.fa-umbrella:after{content:"\10f0e9"}.fad.fa-umbrella-beach:after{content:"\10f5ca"}.fad.fa-underline:after{content:"\10f0cd"}.fad.fa-undo:after{content:"\10f0e2"}.fad.fa-undo-alt:after{content:"\10f2ea"}.fad.fa-unicorn:after{content:"\10f727"}.fad.fa-union:after{content:"\10f6a2"}.fad.fa-universal-access:after{content:"\10f29a"}.fad.fa-university:after{content:"\10f19c"}.fad.fa-unlink:after{content:"\10f127"}.fad.fa-unlock:after{content:"\10f09c"}.fad.fa-unlock-alt:after{content:"\10f13e"}.fad.fa-upload:after{content:"\10f093"}.fad.fa-usb-drive:after{content:"\10f8e9"}.fad.fa-usd-circle:after{content:"\10f2e8"}.fad.fa-usd-square:after{content:"\10f2e9"}.fad.fa-user:after{content:"\10f007"}.fad.fa-user-alien:after{content:"\10e04a"}.fad.fa-user-alt:after{content:"\10f406"}.fad.fa-user-alt-slash:after{content:"\10f4fa"}.fad.fa-user-astronaut:after{content:"\10f4fb"}.fad.fa-user-chart:after{content:"\10f6a3"}.fad.fa-user-check:after{content:"\10f4fc"}.fad.fa-user-circle:after{content:"\10f2bd"}.fad.fa-user-clock:after{content:"\10f4fd"}.fad.fa-user-cog:after{content:"\10f4fe"}.fad.fa-user-cowboy:after{content:"\10f8ea"}.fad.fa-user-crown:after{content:"\10f6a4"}.fad.fa-user-edit:after{content:"\10f4ff"}.fad.fa-user-friends:after{content:"\10f500"}.fad.fa-user-graduate:after{content:"\10f501"}.fad.fa-user-hard-hat:after{content:"\10f82c"}.fad.fa-user-headset:after{content:"\10f82d"}.fad.fa-user-injured:after{content:"\10f728"}.fad.fa-user-lock:after{content:"\10f502"}.fad.fa-user-md:after{content:"\10f0f0"}.fad.fa-user-md-chat:after{content:"\10f82e"}.fad.fa-user-minus:after{content:"\10f503"}.fad.fa-user-music:after{content:"\10f8eb"}.fad.fa-user-ninja:after{content:"\10f504"}.fad.fa-user-nurse:after{content:"\10f82f"}.fad.fa-user-plus:after{content:"\10f234"}.fad.fa-user-robot:after{content:"\10e04b"}.fad.fa-user-secret:after{content:"\10f21b"}.fad.fa-user-shield:after{content:"\10f505"}.fad.fa-user-slash:after{content:"\10f506"}.fad.fa-user-tag:after{content:"\10f507"}.fad.fa-user-tie:after{content:"\10f508"}.fad.fa-user-times:after{content:"\10f235"}.fad.fa-user-unlock:after{content:"\10e058"}.fad.fa-user-visor:after{content:"\10e04c"}.fad.fa-users:after{content:"\10f0c0"}.fad.fa-users-class:after{content:"\10f63d"}.fad.fa-users-cog:after{content:"\10f509"}.fad.fa-users-crown:after{content:"\10f6a5"}.fad.fa-users-medical:after{content:"\10f830"}.fad.fa-users-slash:after{content:"\10e073"}.fad.fa-utensil-fork:after{content:"\10f2e3"}.fad.fa-utensil-knife:after{content:"\10f2e4"}.fad.fa-utensil-spoon:after{content:"\10f2e5"}.fad.fa-utensils:after{content:"\10f2e7"}.fad.fa-utensils-alt:after{content:"\10f2e6"}.fad.fa-vacuum:after{content:"\10e04d"}.fad.fa-vacuum-robot:after{content:"\10e04e"}.fad.fa-value-absolute:after{content:"\10f6a6"}.fad.fa-vector-square:after{content:"\10f5cb"}.fad.fa-venus:after{content:"\10f221"}.fad.fa-venus-double:after{content:"\10f226"}.fad.fa-venus-mars:after{content:"\10f228"}.fad.fa-vest:after{content:"\10e085"}.fad.fa-vest-patches:after{content:"\10e086"}.fad.fa-vhs:after{content:"\10f8ec"}.fad.fa-vial:after{content:"\10f492"}.fad.fa-vials:after{content:"\10f493"}.fad.fa-video:after{content:"\10f03d"}.fad.fa-video-plus:after{content:"\10f4e1"}.fad.fa-video-slash:after{content:"\10f4e2"}.fad.fa-vihara:after{content:"\10f6a7"}.fad.fa-violin:after{content:"\10f8ed"}.fad.fa-virus:after{content:"\10e074"}.fad.fa-virus-slash:after{content:"\10e075"}.fad.fa-viruses:after{content:"\10e076"}.fad.fa-voicemail:after{content:"\10f897"}.fad.fa-volcano:after{content:"\10f770"}.fad.fa-volleyball-ball:after{content:"\10f45f"}.fad.fa-volume:after{content:"\10f6a8"}.fad.fa-volume-down:after{content:"\10f027"}.fad.fa-volume-mute:after{content:"\10f6a9"}.fad.fa-volume-off:after{content:"\10f026"}.fad.fa-volume-slash:after{content:"\10f2e2"}.fad.fa-volume-up:after{content:"\10f028"}.fad.fa-vote-nay:after{content:"\10f771"}.fad.fa-vote-yea:after{content:"\10f772"}.fad.fa-vr-cardboard:after{content:"\10f729"}.fad.fa-wagon-covered:after{content:"\10f8ee"}.fad.fa-walker:after{content:"\10f831"}.fad.fa-walkie-talkie:after{content:"\10f8ef"}.fad.fa-walking:after{content:"\10f554"}.fad.fa-wallet:after{content:"\10f555"}.fad.fa-wand:after{content:"\10f72a"}.fad.fa-wand-magic:after{content:"\10f72b"}.fad.fa-warehouse:after{content:"\10f494"}.fad.fa-warehouse-alt:after{content:"\10f495"}.fad.fa-washer:after{content:"\10f898"}.fad.fa-watch:after{content:"\10f2e1"}.fad.fa-watch-calculator:after{content:"\10f8f0"}.fad.fa-watch-fitness:after{content:"\10f63e"}.fad.fa-water:after{content:"\10f773"}.fad.fa-water-lower:after{content:"\10f774"}.fad.fa-water-rise:after{content:"\10f775"}.fad.fa-wave-sine:after{content:"\10f899"}.fad.fa-wave-square:after{content:"\10f83e"}.fad.fa-wave-triangle:after{content:"\10f89a"}.fad.fa-waveform:after{content:"\10f8f1"}.fad.fa-waveform-path:after{content:"\10f8f2"}.fad.fa-webcam:after{content:"\10f832"}.fad.fa-webcam-slash:after{content:"\10f833"}.fad.fa-weight:after{content:"\10f496"}.fad.fa-weight-hanging:after{content:"\10f5cd"}.fad.fa-whale:after{content:"\10f72c"}.fad.fa-wheat:after{content:"\10f72d"}.fad.fa-wheelchair:after{content:"\10f193"}.fad.fa-whistle:after{content:"\10f460"}.fad.fa-wifi:after{content:"\10f1eb"}.fad.fa-wifi-1:after{content:"\10f6aa"}.fad.fa-wifi-2:after{content:"\10f6ab"}.fad.fa-wifi-slash:after{content:"\10f6ac"}.fad.fa-wind:after{content:"\10f72e"}.fad.fa-wind-turbine:after{content:"\10f89b"}.fad.fa-wind-warning:after{content:"\10f776"}.fad.fa-window:after{content:"\10f40e"}.fad.fa-window-alt:after{content:"\10f40f"}.fad.fa-window-close:after{content:"\10f410"}.fad.fa-window-frame:after{content:"\10e04f"}.fad.fa-window-frame-open:after{content:"\10e050"}.fad.fa-window-maximize:after{content:"\10f2d0"}.fad.fa-window-minimize:after{content:"\10f2d1"}.fad.fa-window-restore:after{content:"\10f2d2"}.fad.fa-windsock:after{content:"\10f777"}.fad.fa-wine-bottle:after{content:"\10f72f"}.fad.fa-wine-glass:after{content:"\10f4e3"}.fad.fa-wine-glass-alt:after{content:"\10f5ce"}.fad.fa-won-sign:after{content:"\10f159"}.fad.fa-wreath:after{content:"\10f7e2"}.fad.fa-wrench:after{content:"\10f0ad"}.fad.fa-x-ray:after{content:"\10f497"}.fad.fa-yen-sign:after{content:"\10f157"}.fad.fa-yin-yang:after{content:"\10f6ad"}/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com +*/*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Open Sans,sans-serif;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}.absolute{position:absolute!important}.relative{position:relative!important}.-right-2{right:-.5rem!important}.-top-2{top:-.5rem!important}.left-1{left:.25rem!important}.right-3{right:.75rem!important}.top-2{top:.5rem!important}.z-10{z-index:10!important}.m-1{margin:.25rem!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-8{margin-top:2rem!important;margin-bottom:2rem!important}.mr-1{margin-right:.25rem!important}.mr-2{margin-right:.5rem!important}.mt-1{margin-top:.25rem!important}.\!block,.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.grid{display:grid!important}.h-0{height:0px!important}.h-12{height:3rem!important}.h-16{height:4rem!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-9{height:2.25rem!important}.h-\[640px\]{height:640px!important}.h-full{height:100%!important}.max-h-96{max-height:24rem!important}.\!w-full{width:100%!important}.w-1\/2{width:50%!important}.w-1\/3{width:33.333333%!important}.w-11{width:2.75rem!important}.w-12{width:3rem!important}.w-36{width:9rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.origin-\[0\]{transform-origin:0!important}.-translate-y-4{--tw-translate-y: -1rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-y-0{--tw-translate-y: 0px !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-y-3{--tw-translate-y: .75rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-75{--tw-scale-x: .75 !important;--tw-scale-y: .75 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite!important}.cursor-move{cursor:move!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.\!appearance-none,.appearance-none{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-4{gap:1rem!important}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.75rem * var(--tw-space-x-reverse))!important;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1rem * var(--tw-space-x-reverse))!important;margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.25rem * var(--tw-space-y-reverse))!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))!important}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))!important}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0 !important;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-scroll{overflow-y:scroll!important}.\!rounded-lg{border-radius:.5rem!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.rounded-xl{border-radius:.75rem!important}.rounded-l{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-r{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.\!border,.border{border-width:1px!important}.border-0{border-width:0px!important}.border-2{border-width:2px!important}.border-b{border-bottom-width:1px!important}.border-l-2{border-left-width:2px!important}.border-r{border-right-width:1px!important}.\!border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity))!important}.border-blue-500{--tw-border-opacity: 1 !important;border-color:rgb(59 130 246 / var(--tw-border-opacity))!important}.border-gray-100{--tw-border-opacity: 1 !important;border-color:rgb(243 244 246 / var(--tw-border-opacity))!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity))!important}.border-gray-400{--tw-border-opacity: 1 !important;border-color:rgb(156 163 175 / var(--tw-border-opacity))!important}.border-green-400{--tw-border-opacity: 1 !important;border-color:rgb(74 222 128 / var(--tw-border-opacity))!important}.border-green-600{--tw-border-opacity: 1 !important;border-color:rgb(22 163 74 / var(--tw-border-opacity))!important}.border-orange-400{--tw-border-opacity: 1 !important;border-color:rgb(251 146 60 / var(--tw-border-opacity))!important}.border-orange-500{--tw-border-opacity: 1 !important;border-color:rgb(249 115 22 / var(--tw-border-opacity))!important}.border-red-400{--tw-border-opacity: 1 !important;border-color:rgb(248 113 113 / var(--tw-border-opacity))!important}.\!bg-transparent{background-color:transparent!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity))!important}.bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity))!important}.bg-fifthly{--tw-bg-opacity: 1 !important;background-color:rgb(52 49 63 / var(--tw-bg-opacity))!important}.bg-gray-100{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity))!important}.bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity))!important}.bg-gray-800{--tw-bg-opacity: 1 !important;background-color:rgb(31 41 55 / var(--tw-bg-opacity))!important}.bg-green-500{--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity))!important}.bg-primary{--tw-bg-opacity: 1 !important;background-color:rgb(39 58 138 / var(--tw-bg-opacity))!important}.bg-secondary{--tw-bg-opacity: 1 !important;background-color:rgb(75 113 252 / var(--tw-bg-opacity))!important}.bg-sixthly{--tw-bg-opacity: 1 !important;background-color:rgb(42 40 51 / var(--tw-bg-opacity))!important}.bg-thirdly{--tw-bg-opacity: 1 !important;background-color:rgb(251 251 252 / var(--tw-bg-opacity))!important}.bg-transparent{background-color:transparent!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.bg-yellow-400{--tw-bg-opacity: 1 !important;background-color:rgb(250 204 21 / var(--tw-bg-opacity))!important}.bg-yellow-500{--tw-bg-opacity: 1 !important;background-color:rgb(234 179 8 / var(--tw-bg-opacity))!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-2\.5{padding:.625rem!important}.p-3{padding:.75rem!important}.p-5{padding:1.25rem!important}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.\!px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}.px-1{padding-left:.25rem!important;padding-right:.25rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.px-8{padding-left:2rem!important;padding-right:2rem!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.\!pb-2{padding-bottom:.5rem!important}.\!pb-2\.5{padding-bottom:.625rem!important}.\!pt-4{padding-top:1rem!important}.pb-2{padding-bottom:.5rem!important}.pb-2\.5{padding-bottom:.625rem!important}.pb-5{padding-bottom:1.25rem!important}.pt-4{padding-top:1rem!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-\[10px\]{font-size:10px!important}.text-\[8px\]{font-size:8px!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-bold{font-weight:700!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.leading-loose{line-height:2!important}.leading-relaxed{line-height:1.625!important}.\!text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity))!important}.text-eightly{--tw-text-opacity: 1 !important;color:rgb(215 214 217 / var(--tw-text-opacity))!important}.text-fourthly{--tw-text-opacity: 1 !important;color:rgb(236 179 144 / var(--tw-text-opacity))!important}.text-gray-400{--tw-text-opacity: 1 !important;color:rgb(156 163 175 / var(--tw-text-opacity))!important}.text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity))!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity))!important}.text-gray-800{--tw-text-opacity: 1 !important;color:rgb(31 41 55 / var(--tw-text-opacity))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity))!important}.text-green-500{--tw-text-opacity: 1 !important;color:rgb(34 197 94 / var(--tw-text-opacity))!important}.text-green-600{--tw-text-opacity: 1 !important;color:rgb(22 163 74 / var(--tw-text-opacity))!important}.text-green-700{--tw-text-opacity: 1 !important;color:rgb(21 128 61 / var(--tw-text-opacity))!important}.text-orange-500{--tw-text-opacity: 1 !important;color:rgb(249 115 22 / var(--tw-text-opacity))!important}.text-primary{--tw-text-opacity: 1 !important;color:rgb(39 58 138 / var(--tw-text-opacity))!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity))!important}.text-red-600{--tw-text-opacity: 1 !important;color:rgb(220 38 38 / var(--tw-text-opacity))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.opacity-25{opacity:.25!important}.opacity-75{opacity:.75!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06)) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-150{transition-duration:.15s!important}.duration-200{transition-duration:.2s!important}.duration-300{transition-duration:.3s!important}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}.toast-title{font-weight:700}.toast-message{-ms-word-wrap:break-word;word-wrap:break-word}.toast-message a,.toast-message label{color:#fff}.toast-message a:hover{color:#ccc;text-decoration:none}.toast-close-button{position:relative;right:-.3em;top:-.3em;float:right;font-size:20px;font-weight:700;color:#fff;-webkit-text-shadow:0 1px 0 #fff;text-shadow:0 1px 0 #fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);line-height:1}.toast-close-button:focus,.toast-close-button:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}.rtl .toast-close-button{left:-.3em;float:left;right:.3em}button.toast-close-button{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.toast-top-center{top:0;right:0;width:100%}.toast-bottom-center{bottom:0;right:0;width:100%}.toast-top-full-width{top:0;right:0;width:100%}.toast-bottom-full-width{bottom:0;right:0;width:100%}.toast-top-left{top:12px;left:12px}.toast-top-right{top:12px;right:12px}.toast-bottom-right{right:12px;bottom:12px}.toast-bottom-left{bottom:12px;left:12px}#toast-container{position:fixed;z-index:999999;pointer-events:none}#toast-container *{box-sizing:border-box}#toast-container>div{position:relative;pointer-events:auto;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;border-radius:3px;background-position:15px center;background-repeat:no-repeat;box-shadow:0 0 12px #999;color:#fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80)}#toast-container>div.rtl{direction:rtl;padding:15px 50px 15px 15px;background-position:right 15px center}#toast-container>div:hover{box-shadow:0 0 12px #000;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>.toast-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=)!important}#toast-container>.toast-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=)!important}#toast-container>.toast-success{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==)!important}#toast-container>.toast-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=)!important}#toast-container.toast-bottom-center>div,#toast-container.toast-top-center>div{width:300px;margin-left:auto;margin-right:auto}#toast-container.toast-bottom-full-width>div,#toast-container.toast-top-full-width>div{width:96%;margin-left:auto;margin-right:auto}.toast{background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}.toast-progress{position:absolute;left:0;bottom:0;height:4px;background-color:#000;opacity:.4;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}@media all and (max-width: 240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width: 241px) and (max-width: 480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width: 481px) and (max-width: 768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}#toast-container>div.rtl{padding:15px 50px 15px 15px}}h2.h2-title{margin:0}.after\:absolute:after{content:var(--tw-content)!important;position:absolute!important}.after\:left-\[2px\]:after{content:var(--tw-content)!important;left:2px!important}.after\:top-\[2px\]:after{content:var(--tw-content)!important;top:2px!important}.after\:h-5:after{content:var(--tw-content)!important;height:1.25rem!important}.after\:w-5:after{content:var(--tw-content)!important;width:1.25rem!important}.after\:rounded-full:after{content:var(--tw-content)!important;border-radius:9999px!important}.after\:border:after{content:var(--tw-content)!important;border-width:1px!important}.after\:border-gray-300:after{content:var(--tw-content)!important;--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity))!important}.after\:bg-white:after{content:var(--tw-content)!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.after\:transition-all:after{content:var(--tw-content)!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.after\:content-\[\'\'\]:after{--tw-content: "" !important;content:var(--tw-content)!important}.hover\:bg-black:hover{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity))!important}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity))!important}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1 !important;background-color:rgb(37 99 235 / var(--tw-bg-opacity))!important}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity))!important}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(31 41 55 / var(--tw-bg-opacity))!important}.hover\:bg-green-400:hover{--tw-bg-opacity: 1 !important;background-color:rgb(74 222 128 / var(--tw-bg-opacity))!important}.hover\:bg-green-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity))!important}.hover\:bg-orange-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(249 115 22 / var(--tw-bg-opacity))!important}.hover\:bg-primary:hover{--tw-bg-opacity: 1 !important;background-color:rgb(39 58 138 / var(--tw-bg-opacity))!important}.hover\:bg-red-400:hover{--tw-bg-opacity: 1 !important;background-color:rgb(248 113 113 / var(--tw-bg-opacity))!important}.hover\:bg-secondary:hover{--tw-bg-opacity: 1 !important;background-color:rgb(75 113 252 / var(--tw-bg-opacity))!important}.hover\:bg-seventhly:hover{--tw-bg-opacity: 1 !important;background-color:rgb(68 65 79 / var(--tw-bg-opacity))!important}.hover\:bg-sixthly:hover{--tw-bg-opacity: 1 !important;background-color:rgb(42 40 51 / var(--tw-bg-opacity))!important}.hover\:bg-transparent:hover{background-color:transparent!important}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1 !important;background-color:rgb(250 204 21 / var(--tw-bg-opacity))!important}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(234 179 8 / var(--tw-bg-opacity))!important}.hover\:font-bold:hover{font-weight:700!important}.hover\:text-gray-700:hover{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity))!important}.hover\:text-red-500:hover{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity))!important}.hover\:text-white:hover{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.focus\:border-primary:focus{--tw-border-opacity: 1 !important;border-color:rgb(39 58 138 / var(--tw-border-opacity))!important}.focus\:bg-transparent:focus{background-color:transparent!important}.focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.peer:checked~.peer-checked\:bg-primary{--tw-bg-opacity: 1 !important;background-color:rgb(39 58 138 / var(--tw-bg-opacity))!important}.peer:checked~.peer-checked\:after\:translate-x-full:after{content:var(--tw-content)!important;--tw-translate-x: 100% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:checked~.peer-checked\:after\:border-white:after{content:var(--tw-content)!important;--tw-border-opacity: 1 !important;border-color:rgb(255 255 255 / var(--tw-border-opacity))!important}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:top-1\/2{top:50%!important}.peer:placeholder-shown~.peer-placeholder-shown\:top-1\/2{top:50%!important}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:top-8{top:2rem!important}.peer:placeholder-shown~.peer-placeholder-shown\:top-8{top:2rem!important}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:-translate-y-1\/2{--tw-translate-y: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:placeholder-shown~.peer-placeholder-shown\:-translate-y-1\/2{--tw-translate-y: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:focus~.peer-focus\:top-2{top:.5rem!important}.peer:focus~.peer-focus\:-translate-y-4{--tw-translate-y: -1rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:focus~.peer-focus\:scale-75{--tw-scale-x: .75 !important;--tw-scale-y: .75 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:focus~.peer-focus\:px-2{padding-left:.5rem!important;padding-right:.5rem!important}.peer:focus~.peer-focus\:text-primary{--tw-text-opacity: 1 !important;color:rgb(39 58 138 / var(--tw-text-opacity))!important}.peer:focus~.peer-focus\:outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.peer:focus~.peer-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.peer:focus~.peer-focus\:ring-secondary{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(75 113 252 / var(--tw-ring-opacity)) !important}@media (prefers-color-scheme: dark){.dark\:border-gray-600{--tw-border-opacity: 1 !important;border-color:rgb(75 85 99 / var(--tw-border-opacity))!important}}@media (min-width: 768px){.md\:block{display:block!important}.md\:inline{display:inline!important}.md\:flex{display:flex!important}.md\:h-0{height:0px!important}.md\:h-full{height:100%!important}.md\:min-h-screen{min-height:100vh!important}.md\:w-1\/3{width:33.333333%!important}.md\:w-1\/4{width:25%!important}.md\:w-1\/5{width:20%!important}.md\:w-3\/4{width:75%!important}.md\:w-4\/5{width:80%!important}.md\:w-52{width:13rem!important}.md\:w-80{width:20rem!important}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.md\:flex-row{flex-direction:row!important}.md\:flex-col{flex-direction:column!important}.md\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.md\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(0px * var(--tw-space-y-reverse))!important}.md\:border-l-2{border-left-width:2px!important}.md\:border-primary{--tw-border-opacity: 1 !important;border-color:rgb(39 58 138 / var(--tw-border-opacity))!important}.md\:p-5{padding:1.25rem!important}.md\:p-8{padding:2rem!important}.md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.md\:text-left{text-align:left!important}.md\:text-2xl{font-size:1.5rem!important;line-height:2rem!important}.md\:text-base{font-size:1rem!important;line-height:1.5rem!important}.md\:text-sm{font-size:.875rem!important;line-height:1.25rem!important}}@media (min-width: 1024px){.lg\:flex{display:flex!important}.lg\:h-full{height:100%!important}.lg\:w-1\/5{width:20%!important}.lg\:w-4\/5{width:80%!important}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}}img[data-v-ee182caf]{width:100px}.hidden-radio:checked+label[data-v-ee182caf]{border:2px solid #007bff;padding:5px;border-radius:8px}.radio-image-wrapper[data-v-ee182caf]{position:relative}.radio-image-wrapper label[data-v-ee182caf]{transition:border .2s}.hidden-radio:checked+label[data-v-ee182caf]:after{content:"\2713";position:absolute;top:0;right:0;background-color:#007bff;color:#fff;padding:2px 6px;border-radius:50%}.hidden-radio[data-v-ee182caf]{position:absolute;opacity:0;width:0;height:0;margin:0;padding:0;z-index:-1} diff --git a/views/css/index.php b/views/css/index.php index c8e9f2af3..97ec565fb 100644 --- a/views/css/index.php +++ b/views/css/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/views/css/tab.css b/views/css/tab.css deleted file mode 100644 index 28b545863..000000000 --- a/views/css/tab.css +++ /dev/null @@ -1,3 +0,0 @@ -.icon-AdminBuckaroolog:before, .icon-AdminParentBuckaroolog:before { - content: "\f0c9"; -} \ No newline at end of file diff --git a/views/fonts/fa-brands-400-2731bb66.woff b/views/fonts/fa-brands-400-2731bb66.woff new file mode 100644 index 000000000..e6a44f83e Binary files /dev/null and b/views/fonts/fa-brands-400-2731bb66.woff differ diff --git a/views/fonts/fa-brands-400-39c658ef.woff2 b/views/fonts/fa-brands-400-39c658ef.woff2 new file mode 100644 index 000000000..c851402da Binary files /dev/null and b/views/fonts/fa-brands-400-39c658ef.woff2 differ diff --git a/views/fonts/fa-brands-400-731b74d3.eot b/views/fonts/fa-brands-400-731b74d3.eot new file mode 100644 index 000000000..1ee7a5648 Binary files /dev/null and b/views/fonts/fa-brands-400-731b74d3.eot differ diff --git a/views/fonts/fa-brands-400-e428f5fa.ttf b/views/fonts/fa-brands-400-e428f5fa.ttf new file mode 100644 index 000000000..032f907e2 Binary files /dev/null and b/views/fonts/fa-brands-400-e428f5fa.ttf differ diff --git a/views/fonts/fa-duotone-900-571c49e5.eot b/views/fonts/fa-duotone-900-571c49e5.eot new file mode 100644 index 000000000..b4a9aa8b2 Binary files /dev/null and b/views/fonts/fa-duotone-900-571c49e5.eot differ diff --git a/views/fonts/fa-duotone-900-5eb0df34.ttf b/views/fonts/fa-duotone-900-5eb0df34.ttf new file mode 100644 index 000000000..bc8c92bec Binary files /dev/null and b/views/fonts/fa-duotone-900-5eb0df34.ttf differ diff --git a/views/fonts/fa-duotone-900-84f582c8.woff2 b/views/fonts/fa-duotone-900-84f582c8.woff2 new file mode 100644 index 000000000..ac0d45be6 Binary files /dev/null and b/views/fonts/fa-duotone-900-84f582c8.woff2 differ diff --git a/views/fonts/fa-duotone-900-e8a74216.woff b/views/fonts/fa-duotone-900-e8a74216.woff new file mode 100644 index 000000000..09cc0ba54 Binary files /dev/null and b/views/fonts/fa-duotone-900-e8a74216.woff differ diff --git a/views/fonts/fa-light-300-1ddc6ae0.woff2 b/views/fonts/fa-light-300-1ddc6ae0.woff2 new file mode 100644 index 000000000..fbdeaaa98 Binary files /dev/null and b/views/fonts/fa-light-300-1ddc6ae0.woff2 differ diff --git a/views/fonts/fa-light-300-8a6cde2b.eot b/views/fonts/fa-light-300-8a6cde2b.eot new file mode 100644 index 000000000..fd2cfc79a Binary files /dev/null and b/views/fonts/fa-light-300-8a6cde2b.eot differ diff --git a/views/fonts/fa-light-300-b5f9cd44.ttf b/views/fonts/fa-light-300-b5f9cd44.ttf new file mode 100644 index 000000000..ea1f36c79 Binary files /dev/null and b/views/fonts/fa-light-300-b5f9cd44.ttf differ diff --git a/views/fonts/fa-light-300-c422c702.woff b/views/fonts/fa-light-300-c422c702.woff new file mode 100644 index 000000000..da6981a74 Binary files /dev/null and b/views/fonts/fa-light-300-c422c702.woff differ diff --git a/views/fonts/fa-regular-400-0d2ab101.ttf b/views/fonts/fa-regular-400-0d2ab101.ttf new file mode 100644 index 000000000..2d03c198b Binary files /dev/null and b/views/fonts/fa-regular-400-0d2ab101.ttf differ diff --git a/views/fonts/fa-regular-400-22205953.woff b/views/fonts/fa-regular-400-22205953.woff new file mode 100644 index 000000000..012f42c6b Binary files /dev/null and b/views/fonts/fa-regular-400-22205953.woff differ diff --git a/views/fonts/fa-regular-400-3bbb0df8.woff2 b/views/fonts/fa-regular-400-3bbb0df8.woff2 new file mode 100644 index 000000000..70fc754f4 Binary files /dev/null and b/views/fonts/fa-regular-400-3bbb0df8.woff2 differ diff --git a/views/fonts/fa-regular-400-dba63457.eot b/views/fonts/fa-regular-400-dba63457.eot new file mode 100644 index 000000000..c0bf92e98 Binary files /dev/null and b/views/fonts/fa-regular-400-dba63457.eot differ diff --git a/views/fonts/fa-solid-900-3e7eb8c8.woff b/views/fonts/fa-solid-900-3e7eb8c8.woff new file mode 100644 index 000000000..45f5cd54c Binary files /dev/null and b/views/fonts/fa-solid-900-3e7eb8c8.woff differ diff --git a/views/fonts/fa-solid-900-79fc8a96.ttf b/views/fonts/fa-solid-900-79fc8a96.ttf new file mode 100644 index 000000000..e6330e6aa Binary files /dev/null and b/views/fonts/fa-solid-900-79fc8a96.ttf differ diff --git a/views/fonts/fa-solid-900-8d4d2904.woff2 b/views/fonts/fa-solid-900-8d4d2904.woff2 new file mode 100644 index 000000000..dff46edd0 Binary files /dev/null and b/views/fonts/fa-solid-900-8d4d2904.woff2 differ diff --git a/views/fonts/fa-solid-900-e4ebf08b.eot b/views/fonts/fa-solid-900-e4ebf08b.eot new file mode 100644 index 000000000..ddbd2a570 Binary files /dev/null and b/views/fonts/fa-solid-900-e4ebf08b.eot differ diff --git a/views/fonts/index.php b/views/fonts/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/views/fonts/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/views/img/buckaroo-menu-logo.png b/views/img/buckaroo-menu-logo.png new file mode 100644 index 000000000..78f22f84d Binary files /dev/null and b/views/img/buckaroo-menu-logo.png differ diff --git a/views/img/buckaroo.gif b/views/img/buckaroo.gif deleted file mode 100644 index f78b7c0de..000000000 Binary files a/views/img/buckaroo.gif and /dev/null differ diff --git a/views/img/buckaroo/Bunq_blank.svg b/views/img/buckaroo/Bunq_blank.svg new file mode 100644 index 000000000..6840e0737 --- /dev/null +++ b/views/img/buckaroo/Bunq_blank.svg @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/AMEX.svg b/views/img/buckaroo/Creditcard issuers/SVG/AMEX.svg new file mode 100644 index 000000000..9a56fc880 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/AMEX.svg @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/CarteBancaire.svg b/views/img/buckaroo/Creditcard issuers/SVG/CarteBancaire.svg new file mode 100644 index 000000000..ca8667572 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/CarteBancaire.svg @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/CarteBleue.svg b/views/img/buckaroo/Creditcard issuers/SVG/CarteBleue.svg new file mode 100644 index 000000000..bc1fba27e --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/CarteBleue.svg @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/Dankort.svg b/views/img/buckaroo/Creditcard issuers/SVG/Dankort.svg new file mode 100644 index 000000000..d707efb99 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/Dankort.svg @@ -0,0 +1,76 @@ + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/Maestro.svg b/views/img/buckaroo/Creditcard issuers/SVG/Maestro.svg new file mode 100644 index 000000000..60bc981b4 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/Maestro.svg @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/MasterCard.svg b/views/img/buckaroo/Creditcard issuers/SVG/MasterCard.svg new file mode 100644 index 000000000..83cab56d0 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/MasterCard.svg @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/Nexi.svg b/views/img/buckaroo/Creditcard issuers/SVG/Nexi.svg new file mode 100644 index 000000000..6a55a21d0 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/Nexi.svg @@ -0,0 +1,151 @@ + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/Postepay.svg b/views/img/buckaroo/Creditcard issuers/SVG/Postepay.svg new file mode 100644 index 000000000..1f3544573 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/Postepay.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/VPay.svg b/views/img/buckaroo/Creditcard issuers/SVG/VPay.svg new file mode 100644 index 000000000..d6234211d --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/VPay.svg @@ -0,0 +1,1668 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/Visa.svg b/views/img/buckaroo/Creditcard issuers/SVG/Visa.svg new file mode 100644 index 000000000..8c25142ab --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/Visa.svg @@ -0,0 +1,419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/VisaElectron.svg b/views/img/buckaroo/Creditcard issuers/SVG/VisaElectron.svg new file mode 100644 index 000000000..d7c526397 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/VisaElectron.svg @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Creditcard issuers/SVG/index.php b/views/img/buckaroo/Creditcard issuers/SVG/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/Creditcard issuers/SVG/index.php @@ -0,0 +1,11 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Giftcards/SVG/Boekenbon.svg b/views/img/buckaroo/Giftcards/SVG/Boekenbon.svg new file mode 100644 index 000000000..efd4d2bfd --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/Boekenbon.svg @@ -0,0 +1,80 @@ + + + + + +BOEK +BON +EN + diff --git a/views/img/buckaroo/Giftcards/SVG/CJP.svg b/views/img/buckaroo/Giftcards/SVG/CJP.svg new file mode 100644 index 000000000..577915d6a --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/CJP.svg @@ -0,0 +1,81 @@ + + + + + + + + + diff --git a/views/img/buckaroo/Giftcards/SVG/FashionCheque.svg b/views/img/buckaroo/Giftcards/SVG/FashionCheque.svg new file mode 100644 index 000000000..a967d6f5f --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/FashionCheque.svg @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + F + C + + diff --git a/views/img/buckaroo/Giftcards/SVG/FashionGiftcard.svg b/views/img/buckaroo/Giftcards/SVG/FashionGiftcard.svg new file mode 100644 index 000000000..9538b4bcf --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/FashionGiftcard.svg @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + +G I F T C A R D + diff --git a/views/img/buckaroo/Giftcards/SVG/NationaleBioscoopBon.svg b/views/img/buckaroo/Giftcards/SVG/NationaleBioscoopBon.svg new file mode 100644 index 000000000..a30d01201 --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/NationaleBioscoopBon.svg @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Giftcards/SVG/NationaleEntertainmentCard.svg b/views/img/buckaroo/Giftcards/SVG/NationaleEntertainmentCard.svg new file mode 100644 index 000000000..8b95ad4b3 --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/NationaleEntertainmentCard.svg @@ -0,0 +1,2342 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Giftcards/SVG/NationaleTuinbon.svg b/views/img/buckaroo/Giftcards/SVG/NationaleTuinbon.svg new file mode 100644 index 000000000..b2f6fcbde --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/NationaleTuinbon.svg @@ -0,0 +1,1385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Giftcards/SVG/PodiumCadeaukaart.svg b/views/img/buckaroo/Giftcards/SVG/PodiumCadeaukaart.svg new file mode 100644 index 000000000..b5a0a2e48 --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/PodiumCadeaukaart.svg @@ -0,0 +1,3245 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Giftcards/SVG/Sport&FitCadeau.svg b/views/img/buckaroo/Giftcards/SVG/Sport&FitCadeau.svg new file mode 100644 index 000000000..8d65249bc --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/Sport&FitCadeau.svg @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + +SPOR +T +& +FIT +C +ADEAU + diff --git a/views/img/buckaroo/Giftcards/SVG/VVVGiftcard.svg b/views/img/buckaroo/Giftcards/SVG/VVVGiftcard.svg new file mode 100644 index 000000000..c5941a040 --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/VVVGiftcard.svg @@ -0,0 +1,320 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Giftcards/SVG/index.php b/views/img/buckaroo/Giftcards/SVG/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/Giftcards/SVG/index.php @@ -0,0 +1,11 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/views/img/buckaroo/Identification methods/SVG/iDIN.svg b/views/img/buckaroo/Identification methods/SVG/iDIN.svg new file mode 100644 index 000000000..e364a0405 --- /dev/null +++ b/views/img/buckaroo/Identification methods/SVG/iDIN.svg @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Identification methods/SVG/index.php b/views/img/buckaroo/Identification methods/SVG/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/Identification methods/SVG/index.php @@ -0,0 +1,11 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/views/img/buckaroo/PayByBank issuers/ABNAMRO.svg b/views/img/buckaroo/PayByBank issuers/ABNAMRO.svg new file mode 100644 index 000000000..ec9eb1a04 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/ABNAMRO.svg @@ -0,0 +1,71 @@ + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/ASNBank.svg b/views/img/buckaroo/PayByBank issuers/ASNBank.svg new file mode 100644 index 000000000..24c248930 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/ASNBank.svg @@ -0,0 +1,92 @@ + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/Bunq.svg b/views/img/buckaroo/PayByBank issuers/Bunq.svg new file mode 100644 index 000000000..afb3d5159 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/Bunq.svg @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/ING.svg b/views/img/buckaroo/PayByBank issuers/ING.svg new file mode 100644 index 000000000..a1dfa7f3c --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/ING.svg @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/KNAB.svg b/views/img/buckaroo/PayByBank issuers/KNAB.svg new file mode 100644 index 000000000..5841cc302 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/KNAB.svg @@ -0,0 +1,175 @@ + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/Rabobank.svg b/views/img/buckaroo/PayByBank issuers/Rabobank.svg new file mode 100644 index 000000000..9bf0a57cb --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/Rabobank.svg @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/RegioBank.svg b/views/img/buckaroo/PayByBank issuers/RegioBank.svg new file mode 100644 index 000000000..bb7460801 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/RegioBank.svg @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/Revolut.svg b/views/img/buckaroo/PayByBank issuers/Revolut.svg new file mode 100644 index 000000000..8e033aab7 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/Revolut.svg @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/SNS.svg b/views/img/buckaroo/PayByBank issuers/SNS.svg new file mode 100644 index 000000000..5dd884a7e --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/SNS.svg @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/Triodos.svg b/views/img/buckaroo/PayByBank issuers/Triodos.svg new file mode 100644 index 000000000..0565d48d0 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/Triodos.svg @@ -0,0 +1,157 @@ + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/Vouchers.svg b/views/img/buckaroo/PayByBank issuers/Vouchers.svg new file mode 100644 index 000000000..412bad1b0 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/Vouchers.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/YourSafe.svg b/views/img/buckaroo/PayByBank issuers/YourSafe.svg new file mode 100644 index 000000000..f729f4b09 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/YourSafe.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + diff --git a/views/img/buckaroo/PayByBank issuers/index.php b/views/img/buckaroo/PayByBank issuers/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/index.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/views/img/buckaroo/PayByBank issuers/vanLanschot.svg b/views/img/buckaroo/PayByBank issuers/vanLanschot.svg new file mode 100644 index 000000000..7bf36f5d1 --- /dev/null +++ b/views/img/buckaroo/PayByBank issuers/vanLanschot.svg @@ -0,0 +1,576 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo_images/buckaroo_transfer.png b/views/img/buckaroo/Payment methods/PNG/buckaroo_transfer.png similarity index 100% rename from views/img/buckaroo_images/buckaroo_transfer.png rename to views/img/buckaroo/Payment methods/PNG/buckaroo_transfer.png diff --git a/views/img/buckaroo/Payment methods/PNG/index.php b/views/img/buckaroo/Payment methods/PNG/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/Payment methods/PNG/index.php @@ -0,0 +1,11 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Alipay.svg b/views/img/buckaroo/Payment methods/SVG/Alipay.svg new file mode 100644 index 000000000..e967179ad --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Alipay.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/ApplePay.svg b/views/img/buckaroo/Payment methods/SVG/ApplePay.svg new file mode 100644 index 000000000..d68d6ccd9 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/ApplePay.svg @@ -0,0 +1,177 @@ + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Bancontact.svg b/views/img/buckaroo/Payment methods/SVG/Bancontact.svg new file mode 100644 index 000000000..474fe043d --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Bancontact.svg @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Belfius.svg b/views/img/buckaroo/Payment methods/SVG/Belfius.svg new file mode 100644 index 000000000..1288b52ce --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Belfius.svg @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Billink.svg b/views/img/buckaroo/Payment methods/SVG/Billink.svg new file mode 100644 index 000000000..4586ec1f0 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Billink.svg @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/BuckarooVoucher.svg b/views/img/buckaroo/Payment methods/SVG/BuckarooVoucher.svg new file mode 100644 index 000000000..412bad1b0 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/BuckarooVoucher.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/CreditClick.svg b/views/img/buckaroo/Payment methods/SVG/CreditClick.svg new file mode 100644 index 000000000..60ae43967 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/CreditClick.svg @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Creditcards.svg b/views/img/buckaroo/Payment methods/SVG/Creditcards.svg new file mode 100644 index 000000000..afd988976 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Creditcards.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/EPS.svg b/views/img/buckaroo/Payment methods/SVG/EPS.svg new file mode 100644 index 000000000..c1f119a0e --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/EPS.svg @@ -0,0 +1,84 @@ + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Giftcards.svg b/views/img/buckaroo/Payment methods/SVG/Giftcards.svg new file mode 100644 index 000000000..9737932e5 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Giftcards.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Giropay.svg b/views/img/buckaroo/Payment methods/SVG/Giropay.svg new file mode 100644 index 000000000..c61f48248 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Giropay.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/In3.svg b/views/img/buckaroo/Payment methods/SVG/In3.svg new file mode 100644 index 000000000..8faf06a06 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/In3.svg @@ -0,0 +1,156 @@ + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/In3_ideal.svg b/views/img/buckaroo/Payment methods/SVG/In3_ideal.svg new file mode 100644 index 000000000..6ea4318a0 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/In3_ideal.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/KBC.svg b/views/img/buckaroo/Payment methods/SVG/KBC.svg new file mode 100644 index 000000000..975bcf537 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/KBC.svg @@ -0,0 +1,182 @@ + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Klarna.svg b/views/img/buckaroo/Payment methods/SVG/Klarna.svg new file mode 100644 index 000000000..19be23598 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Klarna.svg @@ -0,0 +1,157 @@ + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/MBWay.svg b/views/img/buckaroo/Payment methods/SVG/MBWay.svg new file mode 100644 index 000000000..2237c8243 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/MBWay.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/views/img/buckaroo/Payment methods/SVG/Multibanco.svg b/views/img/buckaroo/Payment methods/SVG/Multibanco.svg new file mode 100644 index 000000000..d046eec8d --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Multibanco.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/views/img/buckaroo/Payment methods/SVG/PayByBank.gif b/views/img/buckaroo/Payment methods/SVG/PayByBank.gif new file mode 100644 index 000000000..51160655f Binary files /dev/null and b/views/img/buckaroo/Payment methods/SVG/PayByBank.gif differ diff --git a/views/img/buckaroo/Payment methods/SVG/PayPal.svg b/views/img/buckaroo/Payment methods/SVG/PayPal.svg new file mode 100644 index 000000000..8cdc10551 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/PayPal.svg @@ -0,0 +1,102 @@ + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/PayPerEmail.svg b/views/img/buckaroo/Payment methods/SVG/PayPerEmail.svg new file mode 100644 index 000000000..b2026c0a6 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/PayPerEmail.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Payconiq.svg b/views/img/buckaroo/Payment methods/SVG/Payconiq.svg new file mode 100644 index 000000000..ce861fdc0 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Payconiq.svg @@ -0,0 +1,173 @@ + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Przelewy24.svg b/views/img/buckaroo/Payment methods/SVG/Przelewy24.svg new file mode 100644 index 000000000..6658780e7 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Przelewy24.svg @@ -0,0 +1,175 @@ + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/SEPA-credittransfer.svg b/views/img/buckaroo/Payment methods/SVG/SEPA-credittransfer.svg new file mode 100644 index 000000000..22863484a --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/SEPA-credittransfer.svg @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/SEPA-directdebit.svg b/views/img/buckaroo/Payment methods/SVG/SEPA-directdebit.svg new file mode 100644 index 000000000..12a76fc86 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/SEPA-directdebit.svg @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Sofort.svg b/views/img/buckaroo/Payment methods/SVG/Sofort.svg new file mode 100644 index 000000000..4e80a6e06 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Sofort.svg @@ -0,0 +1,156 @@ + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Tinka.svg b/views/img/buckaroo/Payment methods/SVG/Tinka.svg new file mode 100644 index 000000000..bb1df0d9a --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Tinka.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Trustly.svg b/views/img/buckaroo/Payment methods/SVG/Trustly.svg new file mode 100644 index 000000000..d3fab7b02 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Trustly.svg @@ -0,0 +1,153 @@ + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/Vouchers.svg b/views/img/buckaroo/Payment methods/SVG/Vouchers.svg new file mode 100644 index 000000000..412bad1b0 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/Vouchers.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/WeChat Pay.svg b/views/img/buckaroo/Payment methods/SVG/WeChat Pay.svg new file mode 100644 index 000000000..b52da5fbb --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/WeChat Pay.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/iDEAL.svg b/views/img/buckaroo/Payment methods/SVG/iDEAL.svg new file mode 100644 index 000000000..8a044b60c --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/iDEAL.svg @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/iDIN.svg b/views/img/buckaroo/Payment methods/SVG/iDIN.svg new file mode 100644 index 000000000..e364a0405 --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/iDIN.svg @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/Payment methods/SVG/index.php b/views/img/buckaroo/Payment methods/SVG/index.php new file mode 100644 index 000000000..97ec565fb --- /dev/null +++ b/views/img/buckaroo/Payment methods/SVG/index.php @@ -0,0 +1,25 @@ + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/views/img/buckaroo/Payment methods/index.php b/views/img/buckaroo/Payment methods/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/Payment methods/index.php @@ -0,0 +1,11 @@ + + +

+ +# Buckaroo Media + +### About +The Buckaroo Media repository is used to keep the various logos of payment methods up-to-date as well as the Buckaroo logos. All images are free to use for Buckaroo merchants and partners. + +In 2005 Buckaroo started as a Payment Service Provider in the Netherlands. In 2020 Buckaroo also opened an office in Belgium. Buckaroo was the first payment provider who offered iDEAL. The range of payment methods was quickly expanded with SEPA direct debit and credit cards. A few years later, SEPA direct debit and credit cards were added to our services. We now offer over 40 payment methods and giftcards. We’re a strategic payment partner for 12,500 businesses and organizations. We offer solutions for any question concerning payments. + +### Additional information +- **Knowledge base & FAQ:** Available in [Dutch](https://support.buckaroo.nl/categorieen/plugins/magento-2) or [English](https://support.buckaroo.eu/categories/plugins/magento-2). +- **Support:** https://support.buckaroo.eu/contact +- **Contact:** [support@buckaroo.nl](mailto:support@buckaroo.nl) or [+31 (0)30 711 50 50](tel:+310307115050) + +# Logos payment methods +| Method | .PNG | .SVG | +| ------------- | ------------- | ------------ | +| [AfterPay](https://www.buckaroo.eu/solutions/payment-methods/afterpay) | ![AfterPay](Payment%20methods/PNG/AfterPay.png) | ![AfterPay](Payment%20methods/SVG/AfterPay.svg) | +| [Alipay](https://www.buckaroo.eu/solutions/payment-methods/alipay) | ![Alipay](Payment%20methods/PNG/AliPay.png) | ![Alipay](Payment%20methods/SVG/Alipay.svg) | +| [Apple Pay](https://www.buckaroo.eu/solutions/payment-methods/apple-pay) | ![Apple Pay](Payment%20methods/PNG/ApplePay.png) | ![Apple Pay](Payment%20methods/SVG/Apple%20Pay.svg) | +| [Bancontact](https://www.buckaroo.eu/solutions/payment-methods/bancontact) | ![Bancontact](Payment%20methods/PNG/Bancontact.png) | ![Bancontact](Payment%20methods/SVG/Bancontact.svg) | +| [Belfius](https://www.buckaroo.eu/solutions/payment-methods/belfius) | ![Belfius](Payment%20methods/PNG/Belfius.png) | ![Belfius](Payment%20methods/SVG/Belfius.svg) | +| [Billink](https://www.buckaroo.eu/solutions/payment-methods/billink) | ![Belfius](Payment%20methods/PNG/Billink.png) | ![Billink](Payment%20methods/SVG/Billink.svg) | +| [Buckaroo Voucher](https://docs.buckaroo.io/docs/buckaroo-voucher) | ![Buckaroo Voucher](Payment%20methods/PNG/BuckarooVoucher.png) | ![Buckaroo Voucher](Payment%20methods/SVG/BuckarooVoucher.svg) | +| [Creditcards](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Creditcards](Payment%20methods/PNG/CreditCards.png) | ![Creditcards](Payment%20methods/SVG/CreditCards.svg) | +| [EPS](https://www.buckaroo.eu/solutions/payment-methods/eps) | ![EPS](Payment%20methods/PNG/EPS.png) | ![EPS](Payment%20methods/SVG/EPS.svg) | +| [Giftcards](https://www.buckaroo.eu/solutions/payment-methods/giftcards) | ![Giftcards](Payment%20methods/PNG/Giftcards.png) | ![Giftcards](Payment%20methods/SVG/Giftcards.svg) | +| [Giropay](https://www.buckaroo.eu/solutions/payment-methods/giropay) | ![Giropay](Payment%20methods/PNG/Giropay.png) | ![Giropay](Payment%20methods/SVG/Giropay.svg) | +| [iDEAL](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![iDEAL](Payment%20methods/PNG/iDEAL.png) | ![iDEAL](Payment%20methods/SVG/iDEAL.svg) | +| [In3](https://www.buckaroo.eu/solutions/payment-methods/in3) | ![In3](Payment%20methods/PNG/In3.png) | ![In3](Payment%20methods/SVG/In3.svg) | +| [KBC](https://www.buckaroo.eu/solutions/payment-methods/kbc) | ![KBC](Payment%20methods/PNG/KBC.png) | ![KBC](Payment%20methods/SVG/KBC.svg) | +| [Klarna](https://www.buckaroo.eu/solutions/payment-methods/klarna) | ![Klarna](Payment%20methods/PNG/Klarna.png) | ![Klarna](Payment%20methods/SVG/Klarna.svg) | +| [PayPal](https://www.buckaroo.eu/solutions/payment-methods/paypal) | ![PayPal](Payment%20methods/PNG/PayPal.png) | ![PayPal](Payment%20methods/SVG/PayPal.svg) | +| [PayPerEmail](https://www.buckaroo.eu/solutions/payperemail) | ![PayPerEmail](Payment%20methods/PNG/PayPerEmail.png) | ![PayPerEmail](Payment%20methods/SVG/PayPerEmail.svg) | +| [Payconiq](https://www.buckaroo.eu/solutions/payment-methods/payconiq) | ![Payconiq](Payment%20methods/PNG/Payconic.png) | ![Payconiq](Payment%20methods/SVG/Payconiq.svg) | +| [Przelewy24](https://www.buckaroo.eu/solutions/payment-methods/przelewy24) | ![Przelewy24](Payment%20methods/PNG/Przelewy24.png) | ![Przelewy24](Payment%20methods/SVG/Przelewy24.svg) | +| [SEPA Credit Transfer](https://www.buckaroo.eu/solutions/payment-methods/sepa-credit-transfer) | ![SEPA Credit Transfer](Payment%20methods/PNG/SEPA-credittransfer.png) | ![SEPA Credit Transfer](Payment%20methods/SVG/SEPA-credittransfer.svg) | +| [SEPA Direct Debit](https://www.buckaroo.eu/solutions/payment-methods/sepa-direct-debit) | ![SEPA Direct Debit](Payment%20methods/PNG/SEPA-directdebit.png) | ![SEPA Direct Debit](Payment%20methods/SVG/SEPA-directdebit.svg) | +| [Sofort](https://www.buckaroo.eu/solutions/payment-methods/sofort) | ![Sofort](Payment%20methods/PNG/Sofort.png) | ![Sofort](Payment%20methods/SVG/Sofort.svg) | +| [Tinka](https://www.buckaroo.eu/solutions/payment-methods/tinka) | ![Tinka](Payment%20methods/PNG/tinka.png) | ![Tinka](Payment%20methods/SVG/Tinka.svg) | +| [Trustly](https://www.buckaroo.eu/solutions/payment-methods/trustly) | ![Tinka](Payment%20methods/PNG/Trustly.png) | ![Tinka](Payment%20methods/SVG/Trustly.svg) | +| [WeChat Pay](https://www.buckaroo.eu/solutions/payment-methods/wechat-pay) | ![WeChat Pay](Payment%20methods/PNG/WeChatPay.png) | ![WeChat Pay](Payment%20methods/SVG/WeChat%20Pay.svg) | + +# Logos creditcard issuers +| Method | .PNG | .SVG | +| ------------- | ------------- | ------------ | +| [American Express](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![American Express](Creditcard%20issuers/PNG/AmericanExpress.png) | ![American Express](Creditcard%20issuers/SVG/AMEX.svg) | +| [Carte bancaire](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Carte bancaire](Creditcard%20issuers/PNG/CarteBancaire.png) | ![Carte bancaire](Creditcard%20issuers/SVG/CarteBancaire.svg) | +| [Carte Bleue](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Carte Bleue](Creditcard%20issuers/PNG/CarteBleue.png) | ![Carte Bleue](Creditcard%20issuers/SVG/CarteBleue.svg) | +| [Dankort](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Dankort](Creditcard%20issuers/PNG/Dankort.png) | ![Dankort](Creditcard%20issuers/SVG/Dankort.svg) | +| [Maestro](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Maestro](Creditcard%20issuers/PNG/Maestro.png) | ![Maestro](Creditcard%20issuers/SVG/Maestro.svg) | +| [Mastercard](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Mastercard](Creditcard%20issuers/PNG/Mastercard.png) | ![Mastercard](Creditcard%20issuers/SVG/MasterCard.svg) | +| [Nexi](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Nexi](Creditcard%20issuers/PNG/Nexi.png) | ![Nexi](Creditcard%20issuers/SVG/Nexi.svg) | +| [Postepay](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Postpay](Creditcard%20issuers/PNG/PostePay.png) | ![Postpay](Creditcard%20issuers/SVG/Postepay.svg) | +| [VISA](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![VISA](Creditcard%20issuers/PNG/VISA.png) | ![VISA](Creditcard%20issuers/SVG/Visa.svg) | +| [Visa Electron](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![Visa Electron](Creditcard%20issuers/PNG/VISAelectron.png) | ![Visa Electron](Creditcard%20issuers/SVG/VisaElectron.svg) | +| [V PAY](https://www.buckaroo.eu/solutions/payment-methods/creditcards) | ![V PAY](Creditcard%20issuers/PNG/VPAY.png) | ![V PAY](Creditcard%20issuers/SVG/VPay.svg) | + +# Logos iDEAL issuers +| Method | .PNG | .SVG | +| ------------- | ------------- | ------------ | +| [ABN AMRO](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![ABN AMRO](iDEAL%20bank%20issuers/PNG/ABNAMRO.png) | ![ABN AMRO](iDEAL%20bank%20issuers/SVG/ABNAMRO.svg) | +| [ASN Bank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![ASN Bank](iDEAL%20bank%20issuers/PNG/ASNBANK.png) | ![ASN Bank](iDEAL%20bank%20issuers/SVG/ASNBank.svg) | +| [bunq](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![bunq](iDEAL%20bank%20issuers/PNG/Bunq.png) | ![bunq](iDEAL%20bank%20issuers/SVG/Bunq.svg) | +| [ING](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![ING](iDEAL%20bank%20issuers/PNG/ING.png) | ![ING](iDEAL%20bank%20issuers/SVG/ING.svg) | +| [KNAB](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![KNAB](iDEAL%20bank%20issuers/PNG/KNAB.png) | ![KNAB](iDEAL%20bank%20issuers/SVG/KNAB.svg) | +| [Rabobank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Rabobank](iDEAL%20bank%20issuers/PNG/Rabobank.png) | ![Rabobank](iDEAL%20bank%20issuers/SVG/Rabobank.svg) | +| [RegioBank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![RegioBank](iDEAL%20bank%20issuers/PNG/Regiobank.png) | ![RegioBank](iDEAL%20bank%20issuers/SVG/RegioBank.svg) | +| [Revolut](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Revolut](iDEAL%20bank%20issuers/PNG/Revolut.png) | ![Revolut](iDEAL%20bank%20issuers/SVG/Revolut.svg) | +| [SNS Bank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![SNS Bank](iDEAL%20bank%20issuers/PNG/SNS.png) | ![SNS Bank](iDEAL%20bank%20issuers/SVG/SNS.svg) | +| [Triodos Bank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Triodos Bank](iDEAL%20bank%20issuers/PNG/Triodos.png) | ![Triodos Bank](iDEAL%20bank%20issuers/SVG/Triodos.svg) | +| [Van Lanschot](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Triodos Bank](iDEAL%20bank%20issuers/PNG/vanLanschot.png) | ![Triodos Bank](iDEAL%20bank%20issuers/SVG/vanLanschot.svg) | +| [Yoursafe](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Yoursafe](iDEAL%20bank%20issuers/PNG/YourSafe.png) | ![Yoursafe](iDEAL%20bank%20issuers/SVG/YourSafe.svg) | + +# Alternative logos iDEAL issuers +| Method | .PNG | .SVG | .PNG blank | .SVG blank | +| ------------- | ------------- | ------------ | ------------- | ------------ | +| [ABN AMRO](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![ABN AMRO](iDEAL%20bank%20issuers/PNG%20Alternative/ABNAMRO.png) | ![ABN AMRO](iDEAL%20bank%20issuers/SVG%20Alternative/ABNAMRO.svg) | ![ABN AMRO](iDEAL%20bank%20issuers/PNG%20Alternative/ABNAMRO_blank.png) | ![ABN AMRO](iDEAL%20bank%20issuers/SVG%20Alternative/ABNAMRO_blank.svg) | +| [ASN Bank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![ASN Bank](iDEAL%20bank%20issuers/PNG%20Alternative/ASNBANK.png) | ![ASN Bank](iDEAL%20bank%20issuers/SVG%20Alternative/ASNBank.svg) | ![ASN Bank](iDEAL%20bank%20issuers/PNG%20Alternative/ASNBANK_blank.png) | ![ASN Bank](iDEAL%20bank%20issuers/SVG%20Alternative/ASNBank_blank.svg) | +| [Bunq](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Bunq](iDEAL%20bank%20issuers/PNG%20Alternative/Bunq.png) | ![Bunq](iDEAL%20bank%20issuers/SVG%20Alternative/Bunq.svg) | ![Bunq](iDEAL%20bank%20issuers/PNG%20Alternative/Bunq_blank.png) | ![Bunq](iDEAL%20bank%20issuers/SVG%20Alternative/Bunq_blank.svg) | +| [ING](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![ING](iDEAL%20bank%20issuers/PNG%20Alternative/ING.png) | ![ING](iDEAL%20bank%20issuers/SVG%20Alternative/ING.svg) | ![ING](iDEAL%20bank%20issuers/PNG%20Alternative/ING_blank.png) | ![ING](iDEAL%20bank%20issuers/SVG%20Alternative/ING_blank.svg) | +| [KNAB](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![KNAB](iDEAL%20bank%20issuers/PNG%20Alternative/KNAB.png) | ![KNAB](iDEAL%20bank%20issuers/SVG%20Alternative/KNAB.svg) | ![KNAB](iDEAL%20bank%20issuers/PNG%20Alternative/KNAB_blank.png) | ![KNAB](iDEAL%20bank%20issuers/SVG%20Alternative/KNAB_blank.svg) | +| [Rabobank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Rabobank](iDEAL%20bank%20issuers/PNG%20Alternative/Rabobank.png) | ![Rabobank](iDEAL%20bank%20issuers/SVG%20Alternative/Rabobank.svg) | ![Rabobank](iDEAL%20bank%20issuers/PNG%20Alternative/Rabobank_blank.png) | ![Rabobank](iDEAL%20bank%20issuers/SVG%20Alternative/Rabobank_blank.svg) | +| [Regiobank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Rabobank](iDEAL%20bank%20issuers/PNG%20Alternative/Regiobank.png) | ![Regiobank](iDEAL%20bank%20issuers/SVG%20Alternative/Regiobank.svg) | ![Regiobank](iDEAL%20bank%20issuers/PNG%20Alternative/Regiobank_blank.png) | ![Regiobank](iDEAL%20bank%20issuers/SVG%20Alternative/Regiobank_blank.svg) | +| [Revolut](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Revolut](iDEAL%20bank%20issuers/PNG%20Alternative/Revolut.png) | ![Revolut](iDEAL%20bank%20issuers/SVG%20Alternative/Revolut.svg) | ![Revolut](iDEAL%20bank%20issuers/PNG%20Alternative/Revolut_blank.png) | ![Revolut](iDEAL%20bank%20issuers/SVG%20Alternative/Revolut_blank.svg) | +| [SNS Bank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![SNS Bank](iDEAL%20bank%20issuers/PNG%20Alternative/SNS.png) | ![SNS Bank](iDEAL%20bank%20issuers/SVG%20Alternative/SNS.svg) | ![SNS Bank](iDEAL%20bank%20issuers/PNG%20Alternative/SNS_blank.png) | ![SNS Bank](iDEAL%20bank%20issuers/SVG%20Alternative/SNS_blank.svg) | +| [Triodos Bank](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Triodos Bank](iDEAL%20bank%20issuers/PNG%20Alternative/Triodos.png) | ![Triodos Bank](iDEAL%20bank%20issuers/SVG%20Alternative/Triodos.svg) | ![Triodos Bank](iDEAL%20bank%20issuers/PNG%20Alternative/Triodos_blank.png) | ![Triodos Bank](iDEAL%20bank%20issuers/SVG%20Alternative/Triodos_blank.svg) | +| [Van Lanschot](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Van Lanschot](iDEAL%20bank%20issuers/PNG%20Alternative/vanLanschot.png) | ![Van Lanschot](iDEAL%20bank%20issuers/SVG%20Alternative/vanLanschot.svg) | ![Van Lanschot](iDEAL%20bank%20issuers/PNG%20Alternative/vanLanschot_blank.png) | ![Van Lanschot](iDEAL%20bank%20issuers/SVG%20Alternative/vanLanschot_blank.svg) | +| [Yoursafe](https://www.buckaroo.eu/solutions/payment-methods/ideal) | ![Yoursafe](iDEAL%20bank%20issuers/PNG%20Alternative/YourSafe.png) | ![Yoursafe](iDEAL%20bank%20issuers/SVG%20Alternative/YourSafe.svg) | ![Yoursafe](iDEAL%20bank%20issuers/PNG%20Alternative/YourSafe_blank.png) | ![Yoursafe](iDEAL%20bank%20issuers/SVG%20Alternative/YourSafe.svg) | + +# Logos identification methods +| Method | .PNG | .SVG | +| ------------- | ------------- | ------------ | +| [iDIN](https://www.buckaroo.eu/solutions/payment-methods/idin) | ![iDIN](Identification%20methods/PNG/iDIN.png) | ![iDIN](Identification%20methods/SVG/iDIN.svg) | +| [PiM](https://www.buckaroo.nl/oplossingen/betaalmethoden/pim) | ![PiM](Identification%20methods/PNG/PiM.png) | ![PiM](Identification%20methods/SVG/PIM.svg) | diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/ABNAMRO.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/ABNAMRO.svg new file mode 100644 index 000000000..ec9eb1a04 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/ABNAMRO.svg @@ -0,0 +1,71 @@ + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/ASNBank.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/ASNBank.svg new file mode 100644 index 000000000..24c248930 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/ASNBank.svg @@ -0,0 +1,92 @@ + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/Bunq.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/Bunq.svg new file mode 100644 index 000000000..afb3d5159 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/Bunq.svg @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/ING.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/ING.svg new file mode 100644 index 000000000..a1dfa7f3c --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/ING.svg @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/KNAB.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/KNAB.svg new file mode 100644 index 000000000..5841cc302 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/KNAB.svg @@ -0,0 +1,175 @@ + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/NN.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/NN.svg new file mode 100644 index 000000000..d17a279ee --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/NN.svg @@ -0,0 +1,943 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/Rabobank.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/Rabobank.svg new file mode 100644 index 000000000..9bf0a57cb --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/Rabobank.svg @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/RegioBank.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/RegioBank.svg new file mode 100644 index 000000000..bb7460801 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/RegioBank.svg @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/Revolut.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/Revolut.svg new file mode 100644 index 000000000..8e033aab7 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/Revolut.svg @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/SNS.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/SNS.svg new file mode 100644 index 000000000..5dd884a7e --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/SNS.svg @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/Triodos.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/Triodos.svg new file mode 100644 index 000000000..0565d48d0 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/Triodos.svg @@ -0,0 +1,157 @@ + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/Vouchers.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/Vouchers.svg new file mode 100644 index 000000000..412bad1b0 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/Vouchers.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/YourSafe.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/YourSafe.svg new file mode 100644 index 000000000..f729f4b09 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/YourSafe.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/index.php b/views/img/buckaroo/iDEAL bank issuers/SVG/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/index.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/views/img/buckaroo/iDEAL bank issuers/SVG/vanLanschot.svg b/views/img/buckaroo/iDEAL bank issuers/SVG/vanLanschot.svg new file mode 100644 index 000000000..7bf36f5d1 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/SVG/vanLanschot.svg @@ -0,0 +1,576 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/img/buckaroo/iDEAL bank issuers/index.php b/views/img/buckaroo/iDEAL bank issuers/index.php new file mode 100644 index 000000000..88355f610 --- /dev/null +++ b/views/img/buckaroo/iDEAL bank issuers/index.php @@ -0,0 +1,11 @@ + - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) - */ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/views/img/buckaroo_images/ideal/logo_abn_s.gif b/views/img/buckaroo_images/ideal/logo_abn_s.gif deleted file mode 100644 index 6d26e8ae6..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_abn_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_asn.gif b/views/img/buckaroo_images/ideal/logo_asn.gif deleted file mode 100644 index bf21847ae..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_asn.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_bunq.png b/views/img/buckaroo_images/ideal/logo_bunq.png deleted file mode 100644 index e69f4cd70..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_bunq.png and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_fortis_s.gif b/views/img/buckaroo_images/ideal/logo_fortis_s.gif deleted file mode 100644 index f3bc2fdd0..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_fortis_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_friesland_s.gif b/views/img/buckaroo_images/ideal/logo_friesland_s.gif deleted file mode 100644 index db0261550..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_friesland_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_ing_s.gif b/views/img/buckaroo_images/ideal/logo_ing_s.gif deleted file mode 100644 index 82be96bd8..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_ing_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_knab_s.gif b/views/img/buckaroo_images/ideal/logo_knab_s.gif deleted file mode 100644 index 898f3b854..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_knab_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_lanschot.gif b/views/img/buckaroo_images/ideal/logo_lanschot.gif deleted file mode 100644 index 66298e6bb..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_lanschot.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_lanschot_s.gif b/views/img/buckaroo_images/ideal/logo_lanschot_s.gif deleted file mode 100644 index 9046b9e0e..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_lanschot_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_rabo_s.gif b/views/img/buckaroo_images/ideal/logo_rabo_s.gif deleted file mode 100644 index 0fc7dd064..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_rabo_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_sns_s.gif b/views/img/buckaroo_images/ideal/logo_sns_s.gif deleted file mode 100644 index b18c4c1f4..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_sns_s.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/logo_triodos.gif b/views/img/buckaroo_images/ideal/logo_triodos.gif deleted file mode 100644 index dfcde8bb3..000000000 Binary files a/views/img/buckaroo_images/ideal/logo_triodos.gif and /dev/null differ diff --git a/views/img/buckaroo_images/ideal/vanLanschot.png b/views/img/buckaroo_images/ideal/vanLanschot.png deleted file mode 100644 index b9507a4ed..000000000 Binary files a/views/img/buckaroo_images/ideal/vanLanschot.png and /dev/null differ diff --git a/views/img/buckaroo_images/idin.png b/views/img/buckaroo_images/idin.png deleted file mode 100644 index ec1190c75..000000000 Binary files a/views/img/buckaroo_images/idin.png and /dev/null differ diff --git a/views/img/buckaroo_images/index.php b/views/img/buckaroo_images/index.php deleted file mode 100644 index e5ee62b38..000000000 --- a/views/img/buckaroo_images/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) - */ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/views/img/buckaroo_images/kbc.png b/views/img/buckaroo_images/kbc.png deleted file mode 100644 index d7c2f5ca8..000000000 Binary files a/views/img/buckaroo_images/kbc.png and /dev/null differ diff --git a/views/img/buckaroo_images/logo_afterpay.jpg b/views/img/buckaroo_images/logo_afterpay.jpg deleted file mode 100644 index 55a7e9743..000000000 Binary files a/views/img/buckaroo_images/logo_afterpay.jpg and /dev/null differ diff --git a/views/img/buckaroo_images/mistercash.png b/views/img/buckaroo_images/mistercash.png deleted file mode 100644 index 2276feb3b..000000000 Binary files a/views/img/buckaroo_images/mistercash.png and /dev/null differ diff --git a/views/img/buckaroo_images/paypal.png b/views/img/buckaroo_images/paypal.png deleted file mode 100644 index 0b4dc3435..000000000 Binary files a/views/img/buckaroo_images/paypal.png and /dev/null differ diff --git a/views/img/buckaroo_images/paysafecard.gif b/views/img/buckaroo_images/paysafecard.gif deleted file mode 100644 index 3e3eb6d5c..000000000 Binary files a/views/img/buckaroo_images/paysafecard.gif and /dev/null differ diff --git a/views/img/buckaroo_images/paysafecard.png b/views/img/buckaroo_images/paysafecard.png deleted file mode 100644 index 44fe063f9..000000000 Binary files a/views/img/buckaroo_images/paysafecard.png and /dev/null differ diff --git a/views/img/buckaroo_images/sepa_dd.png b/views/img/buckaroo_images/sepa_dd.png deleted file mode 100644 index 1b00d2380..000000000 Binary files a/views/img/buckaroo_images/sepa_dd.png and /dev/null differ diff --git a/views/img/buckaroo_images/sofort.png b/views/img/buckaroo_images/sofort.png deleted file mode 100644 index 5e2cae8fc..000000000 Binary files a/views/img/buckaroo_images/sofort.png and /dev/null differ diff --git a/views/img/buckaroo_images/transfer.jpg b/views/img/buckaroo_images/transfer.jpg deleted file mode 100644 index c3a67d073..000000000 Binary files a/views/img/buckaroo_images/transfer.jpg and /dev/null differ diff --git a/views/img/buckaroo_images/transfer.png b/views/img/buckaroo_images/transfer.png deleted file mode 100644 index fc3b65249..000000000 Binary files a/views/img/buckaroo_images/transfer.png and /dev/null differ diff --git a/views/img/buckaroo_images/transfer2.png b/views/img/buckaroo_images/transfer2.png deleted file mode 100644 index b23d04dad..000000000 Binary files a/views/img/buckaroo_images/transfer2.png and /dev/null differ diff --git a/views/img/buckaroo_images/transfergarant.png b/views/img/buckaroo_images/transfergarant.png deleted file mode 100644 index d48a622d3..000000000 Binary files a/views/img/buckaroo_images/transfergarant.png and /dev/null differ diff --git a/views/img/index.php b/views/img/index.php index c8e9f2af3..88355f610 100644 --- a/views/img/index.php +++ b/views/img/index.php @@ -1,28 +1,11 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/views/img/logo.png b/views/img/logo.png new file mode 100644 index 000000000..2994f0858 Binary files /dev/null and b/views/img/logo.png differ diff --git a/views/index.php b/views/index.php index 6ef29d251..42d646f15 100644 --- a/views/index.php +++ b/views/index.php @@ -1,28 +1,25 @@ - -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../../../../../'); -exit; \ No newline at end of file + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../../../../../'); +exit; diff --git a/views/js/buckaroo.admin.js b/views/js/buckaroo.admin.js deleted file mode 100644 index 84387da56..000000000 --- a/views/js/buckaroo.admin.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * - * - * - * NOTICE OF LICENSE - * - * This source file is subject to the Academic Free License (AFL 3.0) - * It is available through the world-wide-web at this URL: - * http://opensource.org/licenses/afl-3.0.php - * - * @author Buckaroo.nl - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) - */ -$(document).ready(function () { - $(".hidable.disabled").hide(); - $(".enabledisable").change(function () { - if ($(this).val() == 0) { - $(this).parents("fieldset").children("legend").removeClass("test").removeClass("active"); - $(this).parents("fieldset").children(".hidable").hide(); - } else { - if ($(this).parents("fieldset").find(".mode").val() == 0) { - $(this).parents("fieldset").children("legend").addClass("active"); - } else { - $(this).parents("fieldset").children("legend").addClass("test"); - } - ; - - $(this).parents("fieldset").children(".hidable").show(); - } - }); - $(".mode").change(function () { - if ($(this).val() == 0) { - $(this).parents("fieldset").children("legend").addClass("active").removeClass("test"); - } else { - $(this).parents("fieldset").children("legend").addClass("test").removeClass("active"); - } - }); -}); \ No newline at end of file diff --git a/views/js/buckaroo.js b/views/js/buckaroo.js index 29ee9e356..70b896807 100644 --- a/views/js/buckaroo.js +++ b/views/js/buckaroo.js @@ -39,12 +39,12 @@ $bkjq(function($) { }); var paymentMethodValidation; paymentMethodValidation={ - methodSelector: null, // selected method notation from from 'action' attribute + methodSelector: null, // selected method notation from 'action' attribute formPointer: null, // JS form object pointer valid: true, requiredAll: function() { that = this; - this.formPointer.find('label.required').parent().nextAll().children().not('.buckaroo-validation-message').each(function() { + this.formPointer.find('label.required').parent().nextAll().find('input').not('.buckaroo-validation-message').each(function() { let invalid = !validateRequired($(this).val()); if(invalid === true) { @@ -73,8 +73,24 @@ paymentMethodValidation={ if(dateInvalid === true) { this.valid = false; + } else { + let day = $("#customerbirthdate_d_billing_digi").val(); + let month = $("#customerbirthdate_m_billing_digi").val() - 1; // months are 0-based in JavaScript + let year = $("#customerbirthdate_y_billing_digi").val(); + + let inputDate = new Date(year, month, day); // create a date object from input + let now = new Date(); + let eighteenYearsAgo = new Date(now.getFullYear() - 18, now.getMonth(), now.getDate()); + + let ageInvalid = inputDate > eighteenYearsAgo; + this.displayMessage($("#customerbirthdate_y_billing_digi"), buckarooMessages.validation.age, !ageInvalid); + + if(ageInvalid === true) { + this.valid = false; + } } } + if ($("#customerbirthdate_d_shipping_digi").val()) { let dateInvalidShipping = !isValidDate($("#customerbirthdate_d_shipping_digi").val() + $("#customerbirthdate_m_shipping_digi").val() + $("#customerbirthdate_y_shipping_digi").val()); this.displayMessage($("#customerbirthdate_d_shipping_digi"), buckarooMessages.validation.date, !dateInvalidShipping); @@ -98,11 +114,31 @@ paymentMethodValidation={ this.valid = false; } }, - init: function (e) { + billinkTrigger: function () { + if ($("#customerbirthdate_d_billing_billink").val()) { + let dateInvalid = !isValidDate($("#customerbirthdate_d_billing_billink").val() + $("#customerbirthdate_m_billing_billink").val() + $("#customerbirthdate_y_billing_billink").val()); + this.displayMessage($("#customerbirthdate_d_billing_billink"), buckarooMessages.validation.date, !dateInvalid); + + if(dateInvalid === true) { + this.valid = false; + } + } + }, + payPerEmailTrigger: function () { + if ($("#customerbirthdate_d_billing_payperemail").val()) { + let dateInvalid = !isValidDate($("#customerbirthdate_d_billing_payperemail").val() + $("#customerbirthdate_m_billing_payperemail").val() + $("#customerbirthdate_y_billing_payperemail").val()); + this.displayMessage($("#customerbirthdate_d_billing_payperemail"), buckarooMessages.validation.date, !dateInvalid); + + if(dateInvalid === true) { + this.valid = false; + } + } + }, + init: function (e) { this.valid = true; $('.buckaroo-validation-message').remove(); // we validate all at the required fields pertaining to a selected method/form - this.requiredAll(); + this.requiredAll(); // we validate based on the selected method switch (this.methodSelector){ @@ -113,6 +149,12 @@ paymentMethodValidation={ case 'afterpay&service=digi': this.afterpayDigiTrigger(); break; + case 'billink': + this.billinkTrigger(); + break; + case 'payperemail': + this.payPerEmailTrigger(); + break; default: } if (this.valid) { @@ -179,38 +221,38 @@ $(document).ready(function () { $('input[name="payment-option"]').on('change', function () { var $nextDiv = $(this).closest('.payment-option').parent().next(); - var paymentFee, - paymentFeeDisplay; + var paymentFee; + let buckarooKey; if ($nextDiv.hasClass('js-payment-option-form')) { paymentFee = $nextDiv.find('input[name="payment-fee-price"]').val(); - paymentFeeDisplay = $nextDiv.find('input[name="payment-fee-price-display"]').val(); - if(buckarooKey = $nextDiv.find('input[name="buckarooKey"]').val()){ - if(buckarooFees[buckarooKey] != undefined){ + buckarooKey = $nextDiv.find('input[name="buckarooKey"]').val() + if (buckarooKey) { + if (buckarooFees[buckarooKey] !== undefined) { paymentFee = buckarooFees[buckarooKey]['buckarooFee']; - paymentFeeDisplay = buckarooFees[buckarooKey]['buckarooFeeDisplay']; } } } else { paymentFee = $nextDiv.next().find('input[name="payment-fee-price"]').val(); - paymentFeeDisplay = $nextDiv.next().find('input[name="payment-fee-price-display"]').val(); - } - - $('#cart-subtotal-buckarooFee').html(''); - $.ajax({ - url: buckarooAjaxUrl, - method: 'GET', - data: { - 'paymentFee': paymentFee, - ajax: 1, - action: 'getTotalCartPrice' - }, - success: function (response) { - response = jQuery.parseJSON(response); - $('.card-block.cart-summary-totals').replaceWith(response.cart_summary_totals); - var paymentFeeHtml = ''; - if(paymentFee != undefined && paymentFee >0){ - paymentFeeHtml = '
Buckaroo Fee ' + paymentFeeDisplay + '
'; - } + } + + if (!paymentFee) { + $('#cart-subtotal-buckarooFee').remove(); + } + + $.ajax({ + url: buckarooAjaxUrl, + method: 'GET', + data: { + 'paymentFee': paymentFee, + ajax: 1, + action: 'getTotalCartPrice' + }, + success: function (response) { + response = jQuery.parseJSON(response); + $('.card-block.cart-summary-totals').replaceWith(response.cart_summary_totals); + var paymentFeeHtml = ''; + if(response && response.paymentFee !== undefined){ + paymentFeeHtml = '
Buckaroo Fee ' + response.paymentFee + '
'; if($('#cart-subtotal-buckarooFee').length == 0){ $('.cart-summary-subtotals-container').append($('
' + paymentFeeHtml + '
')); @@ -218,6 +260,144 @@ $(document).ready(function () { $('#cart-subtotal-buckarooFee').html(paymentFeeHtml); } } - }) + } + }) }) -}); \ No newline at end of file + + new BuckarooCheckout().listen(); + new BuckarooPayByBank().init(); + new BuckarooApplePay().init(); +}); + +class BuckarooCheckout { + static MOBILE_WIDTH = 768; + static SHOW_MORE_BANKS = 5; + + listen() { + this.toggleMethods(); + } + + toggleMethods() { + this.initMethod(); + jQuery('body').on('click', '.bk-toggle-wrap', (event) => this.handleToggle(event)); + jQuery(window).on('resize', this.showAllIssuers.bind(this)); + } + + handleToggle(event) { + const toggleWrap = jQuery(event.currentTarget); + const parentSelector = toggleWrap.closest('.additional-information').find('.bk-method-selector'); + + const toggle = toggleWrap.find('.bk-toggle'); + const isDown = toggle.hasClass('bk-toggle-down'); + const textElement = toggleWrap.find('.bk-toggle-text'); + + if (isDown) { + textElement.text(textElement.attr('text-less')); + parentSelector.children().show(); + } else { + textElement.text(textElement.attr('text-more')); + this.hideExcessIssuers(parentSelector); + } + + toggle.toggleClass('bk-toggle-down bk-toggle-up'); + } + + hideExcessIssuers(selector) { + const isPayByBank = selector.hasClass('bk-paybybank-selector'); + const selectedIssuer = isPayByBank ? selector.find('input:checked') : null; + + if (isPayByBank && selectedIssuer && selectedIssuer.length) { + selector.children().not(selectedIssuer.closest('.bk-method-issuer')).hide(); + } else { + selector.children(`:nth-child(n+${BuckarooCheckout.SHOW_MORE_BANKS})`).hide(); + } + } + + initMethod() { + jQuery('.bk-method-selector').each((_, elem) => { + const selector = jQuery(elem); + this.hideExcessIssuers(selector); + }); + + this.showAllIssuers(); + } + + showAllIssuers = () => { + if (jQuery(window).width() < BuckarooCheckout.MOBILE_WIDTH) { + jQuery('.bk-toggle-wrap').hide(); + if (jQuery('.bk-toggle-down').length) { + jQuery('.bk-toggle-down').addClass('bk-toggle-up').removeClass('bk-toggle-down'); + jQuery('.bk-method-selector').children().show(); + jQuery('.bk-toggle-text').text(jQuery('.bk-toggle-text').attr('text-less')); + } else { + jQuery('.bk-toggle-wrap').show(); + } + } + } +} + +class BuckarooPayByBank { + + isMobile = jQuery(window).width() < BuckarooCheckout.MOBILE_WIDTH; + + init() { + this.showInput(); + this.startListeners(); + } + + startListeners() { + jQuery(window).on('resize', this.toggleInputToShow.bind(this)); + jQuery('.bk-paybybank-mobile select').on('change', this.syncWithRadioGroup.bind(this)); + jQuery('.bk-paybybank-not-mobile input').on('change', this.syncWithSelect.bind(this)); + } + + toggleInputToShow() { + let isMobile = jQuery(window).width() < BuckarooCheckout.MOBILE_WIDTH; + + if (this.isMobile !== isMobile) { + this.isMobile = isMobile; + this.showInput(); + } + } + + showInput() { + jQuery('.bk-paybybank-mobile').toggle(this.isMobile); + jQuery('.bk-paybybank-not-mobile').toggle(!this.isMobile); + } + + syncWithRadioGroup() { + const value = jQuery('.bk-paybybank-mobile select').val(); + if(value === "0") { + return; + } + const radioWithValue = jQuery(`.bk-paybybank-selector input[value="${value}"]`); + radioWithValue.prop('checked', true); + this.changeIcon(value); + } + syncWithSelect() { + const value = jQuery('.bk-paybybank-not-mobile input:checked').val(); + jQuery('.bk-paybybank-mobile select').val(value); + this.changeIcon(value); + } + + changeIcon(issuer) { + const img = $(`.bk-paybybank-not-mobile #paybybank_issuer_${issuer}`) + .closest('.bk-method-issuer') + .find('img').attr('src'); + + jQuery('[data-module-name="PAYBYBANK"]') + .closest('.payment-option') + .find('img').attr('src', img) + } +} +class BuckarooApplePay { + get isApplePayAvailable(){ + return !!(window.ApplePaySession && ApplePaySession.canMakePayments()); + } + init(){ + this.togglePayment(this.isApplePayAvailable) + } + togglePayment(value = false) { + jQuery('[data-module-name="applepay"]').closest('.payment-option').toggle(value); + } +} diff --git a/views/js/buckaroo.vue.js b/views/js/buckaroo.vue.js new file mode 100644 index 000000000..6c63d4f5f --- /dev/null +++ b/views/js/buckaroo.vue.js @@ -0,0 +1,95 @@ +var kI=Object.defineProperty;var LI=(e,n,r)=>n in e?kI(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var cb=(e,n,r)=>(LI(e,typeof n!="symbol"?n+"":n,r),r);var Wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function I0(e){var n=e.default;if(typeof n=="function"){var r=function(){return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,a.get?a:{enumerable:!0,get:function(){return e[s]}})}),r}var sg={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(e,n){(function(){var r,s="4.17.21",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",v=1,_=2,w=4,T=1,P=2,M=1,S=2,I=4,B=8,R=16,$=32,G=64,m=128,Y=256,j=512,K=30,re="...",pe=800,q=16,le=1,Fe=2,Ee=3,Ae=1/0,$e=9007199254740991,tt=17976931348623157e292,Rt=0/0,ot=4294967295,mt=ot-1,zt=ot>>>1,Zt=[["ary",m],["bind",M],["bindKey",S],["curry",B],["curryRight",R],["flip",j],["partial",$],["partialRight",G],["rearg",Y]],Dt="[object Arguments]",dt="[object Array]",Lt="[object AsyncFunction]",en="[object Boolean]",It="[object Date]",Ht="[object DOMException]",gn="[object Error]",X="[object Function]",L="[object GeneratorFunction]",N="[object Map]",z="[object Number]",se="[object Null]",ae="[object Object]",Ce="[object Promise]",Re="[object Proxy]",Le="[object RegExp]",_e="[object Set]",oe="[object String]",he="[object Symbol]",je="[object Undefined]",we="[object WeakMap]",Je="[object WeakSet]",yt="[object ArrayBuffer]",ut="[object DataView]",ue="[object Float32Array]",de="[object Float64Array]",ye="[object Int8Array]",Ne="[object Int16Array]",Be="[object Int32Array]",qe="[object Uint8Array]",Xe="[object Uint8ClampedArray]",ht="[object Uint16Array]",tn="[object Uint32Array]",at=/\b__p \+= '';/g,Qe=/\b(__p \+=) '' \+/g,rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,Ct=/[&<>"']/g,Kn=RegExp(bt.source),Ni=RegExp(Ct.source),dr=/<%-([\s\S]+?)%>/g,Dn=/<%([\s\S]+?)%>/g,ua=/<%=([\s\S]+?)%>/g,sp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rc=/^\w*$/,sc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ks=/[\\^$.*+?()[\]{}|]/g,Ri=RegExp(Ks.source),Eo=/^\s+/,ca=/\s/,ip=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,op=/\{\n\/\* \[wrapped with (.+)\] \*/,ap=/,? & /,ic=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lp=/[()=,{}\[\]\/\s]/,up=/\\(\\)?/g,oc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ac=/\w*$/,Di=/^[-+]0x[0-9a-f]+$/i,lc=/^0b[01]+$/i,cl=/^\[object .+?Constructor\]$/,fl=/^0o[0-7]+$/i,fa=/^(?:0|[1-9]\d*)$/,uc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,wo=/['\n\r\u2028\u2029\\]/g,So="\\ud800-\\udfff",cc="\\u0300-\\u036f",fc="\\ufe20-\\ufe2f",dc="\\u20d0-\\u20ff",pc=cc+fc+dc,pa="\\u2700-\\u27bf",hc="a-z\\xdf-\\xf6\\xf8-\\xff",cp="\\xac\\xb1\\xd7\\xf7",gc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mc="\\u2000-\\u206f",dl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pl="A-Z\\xc0-\\xd6\\xd8-\\xde",or="\\ufe0e\\ufe0f",ui=cp+gc+mc+dl,Mi="['\u2019]",fp="["+So+"]",vc="["+ui+"]",$i="["+pc+"]",hl="\\d+",ha="["+pa+"]",gl="["+hc+"]",yc="[^"+So+ui+hl+pa+hc+pl+"]",ml="\\ud83c[\\udffb-\\udfff]",qr="(?:"+$i+"|"+ml+")",vl="[^"+So+"]",ci="(?:\\ud83c[\\udde6-\\uddff]){2}",yl="[\\ud800-\\udbff][\\udc00-\\udfff]",Fi="["+pl+"]",zs="\\u200d",Ys="(?:"+gl+"|"+yc+")",bl="(?:"+Fi+"|"+yc+")",bc="(?:"+Mi+"(?:d|ll|m|re|s|t|ve))?",Bi="(?:"+Mi+"(?:D|LL|M|RE|S|T|VE))?",_l=qr+"?",ga="["+or+"]?",_c="(?:"+zs+"(?:"+[vl,ci,yl].join("|")+")"+ga+_l+")*",xc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xl=ga+_l+_c,pp="(?:"+[ha,ci,yl].join("|")+")"+xl,hp="(?:"+[vl+$i+"?",$i,ci,yl,fp].join("|")+")",El=RegExp(Mi,"g"),gp=RegExp($i,"g"),wl=RegExp(ml+"(?="+ml+")|"+hp+xl,"g"),mp=RegExp([Fi+"?"+gl+"+"+bc+"(?="+[vc,Fi,"$"].join("|")+")",bl+"+"+Bi+"(?="+[vc,Fi+Ys,"$"].join("|")+")",Fi+"?"+Ys+"+"+bc,Fi+"+"+Bi,dp,xc,hl,pp].join("|"),"g"),vp=RegExp("["+zs+So+pc+or+"]"),yp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_p=-1,mn={};mn[ue]=mn[de]=mn[ye]=mn[Ne]=mn[Be]=mn[qe]=mn[Xe]=mn[ht]=mn[tn]=!0,mn[Dt]=mn[dt]=mn[yt]=mn[en]=mn[ut]=mn[It]=mn[gn]=mn[X]=mn[N]=mn[z]=mn[ae]=mn[Le]=mn[_e]=mn[oe]=mn[we]=!1;var un={};un[Dt]=un[dt]=un[yt]=un[ut]=un[en]=un[It]=un[ue]=un[de]=un[ye]=un[Ne]=un[Be]=un[N]=un[z]=un[ae]=un[Le]=un[_e]=un[oe]=un[he]=un[qe]=un[Xe]=un[ht]=un[tn]=!0,un[gn]=un[X]=un[we]=!1;var Ec={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Sl={"&":"&","<":"<",">":">",'"':""","'":"'"},wc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Sc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tl=parseFloat,xp=parseInt,Tc=typeof Wo=="object"&&Wo&&Wo.Object===Object&&Wo,Ep=typeof self=="object"&&self&&self.Object===Object&&self,Tn=Tc||Ep||Function("return this")(),ma=n&&!n.nodeType&&n,Ps=ma&&!0&&e&&!e.nodeType&&e,Cc=Ps&&Ps.exports===ma,Cl=Cc&&Tc.process,Rr=function(){try{var H=Ps&&Ps.require&&Ps.require("util").types;return H||Cl&&Cl.binding&&Cl.binding("util")}catch{}}(),c=Rr&&Rr.isArrayBuffer,g=Rr&&Rr.isDate,b=Rr&&Rr.isMap,E=Rr&&Rr.isRegExp,A=Rr&&Rr.isSet,O=Rr&&Rr.isTypedArray;function D(H,ee,Z){switch(Z.length){case 0:return H.call(ee);case 1:return H.call(ee,Z[0]);case 2:return H.call(ee,Z[0],Z[1]);case 3:return H.call(ee,Z[0],Z[1],Z[2])}return H.apply(ee,Z)}function J(H,ee,Z,Te){for(var Oe=-1,ze=H==null?0:H.length;++Oe-1}function Me(H,ee,Z){for(var Te=-1,Oe=H==null?0:H.length;++Te-1;);return Z}function Oo(H,ee){for(var Z=H.length;Z--&&fn(ee,H[Z],0)>-1;);return Z}function es(H,ee){for(var Z=H.length,Te=0;Z--;)H[Z]===ee&&++Te;return Te}var Ui=Dr(Ec),wp=Dr(Sl);function Sp(H){return"\\"+Sc[H]}function Ac(H,ee){return H==null?r:H[ee]}function Mr(H){return vp.test(H)}function Ol(H){return yp.test(H)}function Js(H){for(var ee,Z=[];!(ee=H.next()).done;)Z.push(ee.value);return Z}function ya(H){var ee=-1,Z=Array(H.size);return H.forEach(function(Te,Oe){Z[++ee]=[Oe,Te]}),Z}function Io(H,ee){return function(Z){return H(ee(Z))}}function ts(H,ee){for(var Z=-1,Te=H.length,Oe=0,ze=[];++Z-1}function nS(i,u){var h=this.__data__,x=jc(h,i);return x<0?(++this.size,h.push([i,u])):h[x][1]=u,this}pi.prototype.clear=qw,pi.prototype.delete=Zw,pi.prototype.get=eS,pi.prototype.has=tS,pi.prototype.set=nS;function hi(i){var u=-1,h=i==null?0:i.length;for(this.clear();++u=u?i:u)),i}function bs(i,u,h,x,k,U){var Q,te=u&v,fe=u&_,Ie=u&w;if(h&&(Q=k?h(i,x,k,U):h(i)),Q!==r)return Q;if(!An(i))return i;var Pe=Tt(i);if(Pe){if(Q=oT(i),!te)return $r(i,Q)}else{var De=gr(i),He=De==X||De==L;if(Ki(i))return ty(i,te);if(De==ae||De==Dt||He&&!k){if(Q=fe||He?{}:_y(i),!te)return fe?XS(i,yS(Q,i)):YS(i,kv(Q,i))}else{if(!un[De])return k?i:{};Q=aT(i,De,te)}}U||(U=new Rs);var et=U.get(i);if(et)return et;U.set(i,Q),Xy(i)?i.forEach(function(ft){Q.add(bs(ft,u,h,ft,i,U))}):zy(i)&&i.forEach(function(ft,Wt){Q.set(Wt,bs(ft,u,h,Wt,i,U))});var ct=Ie?fe?Qp:Xp:fe?Br:nr,Nt=Pe?r:ct(i);return V(Nt||i,function(ft,Wt){Nt&&(Wt=ft,ft=i[Wt]),Ml(Q,Wt,bs(ft,u,h,Wt,i,U))}),Q}function bS(i){var u=nr(i);return function(h){return Lv(h,i,u)}}function Lv(i,u,h){var x=h.length;if(i==null)return!x;for(i=We(i);x--;){var k=h[x],U=u[k],Q=i[k];if(Q===r&&!(k in i)||!U(Q))return!1}return!0}function Nv(i,u,h){if(typeof i!="function")throw new Mt(o);return Wl(function(){i.apply(r,h)},u)}function $l(i,u,h,x){var k=-1,U=me,Q=!0,te=i.length,fe=[],Ie=u.length;if(!te)return fe;h&&(u=Ge(u,xr(h))),x?(U=Me,Q=!1):u.length>=a&&(U=Ao,Q=!1,u=new Lo(u));e:for(;++kk?0:k+h),x=x===r||x>k?k:kt(x),x<0&&(x+=k),x=h>x?0:Jy(x);h0&&h(te)?u>1?ar(te,u-1,h,x,k):St(k,te):x||(k[k.length]=te)}return k}var kp=ay(),Mv=ay(!0);function Zs(i,u){return i&&kp(i,u,nr)}function Lp(i,u){return i&&Mv(i,u,nr)}function Wc(i,u){return Se(u,function(h){return bi(i[h])})}function Ro(i,u){u=Vi(u,i);for(var h=0,x=u.length;i!=null&&hu}function ES(i,u){return i!=null&&_t.call(i,u)}function wS(i,u){return i!=null&&u in We(i)}function SS(i,u,h){return i>=hr(u,h)&&i=120&&Pe.length>=120)?new Lo(Q&&Pe):r}Pe=i[0];var De=-1,He=te[0];e:for(;++De-1;)te!==i&&Rc.call(te,fe,1),Rc.call(i,fe,1);return i}function zv(i,u){for(var h=i?u.length:0,x=h-1;h--;){var k=u[h];if(h==x||k!==U){var U=k;yi(k)?Rc.call(i,k,1):Hp(i,k)}}return i}function Bp(i,u){return i+$c(Av()*(u-i+1))}function $S(i,u,h,x){for(var k=-1,U=Qn(Mc((u-i)/(h||1)),0),Q=Z(U);U--;)Q[x?U:++k]=i,i+=h;return Q}function Up(i,u){var h="";if(!i||u<1||u>$e)return h;do u%2&&(h+=i),u=$c(u/2),u&&(i+=i);while(u);return h}function $t(i,u){return rh(wy(i,u,Ur),i+"")}function FS(i){return Pv(Aa(i))}function BS(i,u){var h=Aa(i);return ef(h,No(u,0,h.length))}function Ul(i,u,h,x){if(!An(i))return i;u=Vi(u,i);for(var k=-1,U=u.length,Q=U-1,te=i;te!=null&&++kk?0:k+u),h=h>k?k:h,h<0&&(h+=k),k=u>h?0:h-u>>>0,u>>>=0;for(var U=Z(k);++x>>1,Q=i[U];Q!==null&&!rs(Q)&&(h?Q<=u:Q=a){var Ie=u?null:ZS(i);if(Ie)return di(Ie);Q=!1,k=Ao,fe=new Lo}else fe=u?[]:te;e:for(;++x=x?i:_s(i,u,h)}var ey=Pw||function(i){return Tn.clearTimeout(i)};function ty(i,u){if(u)return i.slice();var h=i.length,x=Ev?Ev(h):new i.constructor(h);return i.copy(x),x}function Kp(i){var u=new i.constructor(i.byteLength);return new Lc(u).set(new Lc(i)),u}function VS(i,u){var h=u?Kp(i.buffer):i.buffer;return new i.constructor(h,i.byteOffset,i.byteLength)}function GS(i){var u=new i.constructor(i.source,ac.exec(i));return u.lastIndex=i.lastIndex,u}function KS(i){return Dl?We(Dl.call(i)):{}}function ny(i,u){var h=u?Kp(i.buffer):i.buffer;return new i.constructor(h,i.byteOffset,i.length)}function ry(i,u){if(i!==u){var h=i!==r,x=i===null,k=i===i,U=rs(i),Q=u!==r,te=u===null,fe=u===u,Ie=rs(u);if(!te&&!Ie&&!U&&i>u||U&&Q&&fe&&!te&&!Ie||x&&Q&&fe||!h&&fe||!k)return 1;if(!x&&!U&&!Ie&&i=te)return fe;var Ie=h[x];return fe*(Ie=="desc"?-1:1)}}return i.index-u.index}function sy(i,u,h,x){for(var k=-1,U=i.length,Q=h.length,te=-1,fe=u.length,Ie=Qn(U-Q,0),Pe=Z(fe+Ie),De=!x;++te1?h[k-1]:r,Q=k>2?h[2]:r;for(U=i.length>3&&typeof U=="function"?(k--,U):r,Q&&Tr(h[0],h[1],Q)&&(U=k<3?r:U,k=1),u=We(u);++x-1?k[U?u[Q]:Q]:r}}function cy(i){return vi(function(u){var h=u.length,x=h,k=ys.prototype.thru;for(i&&u.reverse();x--;){var U=u[x];if(typeof U!="function")throw new Mt(o);if(k&&!Q&&qc(U)=="wrapper")var Q=new ys([],!0)}for(x=Q?x:h;++x1&&Yt.reverse(),Pe&&fete))return!1;var Ie=U.get(i),Pe=U.get(u);if(Ie&&Pe)return Ie==u&&Pe==i;var De=-1,He=!0,et=h&P?new Lo:r;for(U.set(i,u),U.set(u,i);++De1?"& ":"")+u[x],u=u.join(h>2?", ":" "),i.replace(ip,`{ +/* [wrapped with `+u+`] */ +`)}function uT(i){return Tt(i)||$o(i)||!!(Tv&&i&&i[Tv])}function yi(i,u){var h=typeof i;return u=u==null?$e:u,!!u&&(h=="number"||h!="symbol"&&fa.test(i))&&i>-1&&i%1==0&&i0){if(++u>=pe)return arguments[0]}else u=0;return i.apply(r,arguments)}}function ef(i,u){var h=-1,x=i.length,k=x-1;for(u=u===r?x:u;++h1?i[u-1]:r;return h=typeof h=="function"?(i.pop(),h):r,Dy(i,h)});function My(i){var u=F(i);return u.__chain__=!0,u}function _C(i,u){return u(i),i}function tf(i,u){return u(i)}var xC=vi(function(i){var u=i.length,h=u?i[0]:0,x=this.__wrapped__,k=function(U){return Pp(U,i)};return u>1||this.__actions__.length||!(x instanceof Vt)||!yi(h)?this.thru(k):(x=x.slice(h,+h+(u?1:0)),x.__actions__.push({func:tf,args:[k],thisArg:r}),new ys(x,this.__chain__).thru(function(U){return u&&!U.length&&U.push(r),U}))});function EC(){return My(this)}function wC(){return new ys(this.value(),this.__chain__)}function SC(){this.__values__===r&&(this.__values__=Qy(this.value()));var i=this.__index__>=this.__values__.length,u=i?r:this.__values__[this.__index__++];return{done:i,value:u}}function TC(){return this}function CC(i){for(var u,h=this;h instanceof Uc;){var x=Iy(h);x.__index__=0,x.__values__=r,u?k.__wrapped__=x:u=x;var k=x;h=h.__wrapped__}return k.__wrapped__=i,u}function AC(){var i=this.__wrapped__;if(i instanceof Vt){var u=i;return this.__actions__.length&&(u=new Vt(this)),u=u.reverse(),u.__actions__.push({func:tf,args:[sh],thisArg:r}),new ys(u,this.__chain__)}return this.thru(sh)}function OC(){return qv(this.__wrapped__,this.__actions__)}var IC=zc(function(i,u,h){_t.call(i,h)?++i[h]:gi(i,h,1)});function PC(i,u,h){var x=Tt(i)?be:_S;return h&&Tr(i,u,h)&&(u=r),x(i,lt(u,3))}function kC(i,u){var h=Tt(i)?Se:Dv;return h(i,lt(u,3))}var LC=uy(Py),NC=uy(ky);function RC(i,u){return ar(nf(i,u),1)}function DC(i,u){return ar(nf(i,u),Ae)}function MC(i,u,h){return h=h===r?1:kt(h),ar(nf(i,u),h)}function $y(i,u){var h=Tt(i)?V:Hi;return h(i,lt(u,3))}function Fy(i,u){var h=Tt(i)?ie:Rv;return h(i,lt(u,3))}var $C=zc(function(i,u,h){_t.call(i,h)?i[h].push(u):gi(i,h,[u])});function FC(i,u,h,x){i=Fr(i)?i:Aa(i),h=h&&!x?kt(h):0;var k=i.length;return h<0&&(h=Qn(k+h,0)),lf(i)?h<=k&&i.indexOf(u,h)>-1:!!k&&fn(i,u,h)>-1}var BC=$t(function(i,u,h){var x=-1,k=typeof u=="function",U=Fr(i)?Z(i.length):[];return Hi(i,function(Q){U[++x]=k?D(u,Q,h):Fl(Q,u,h)}),U}),UC=zc(function(i,u,h){gi(i,h,u)});function nf(i,u){var h=Tt(i)?Ge:jv;return h(i,lt(u,3))}function jC(i,u,h,x){return i==null?[]:(Tt(u)||(u=u==null?[]:[u]),h=x?r:h,Tt(h)||(h=h==null?[]:[h]),Gv(i,u,h))}var HC=zc(function(i,u,h){i[h?0:1].push(u)},function(){return[[],[]]});function WC(i,u,h){var x=Tt(i)?xt:ks,k=arguments.length<3;return x(i,lt(u,4),h,k,Hi)}function VC(i,u,h){var x=Tt(i)?zn:ks,k=arguments.length<3;return x(i,lt(u,4),h,k,Rv)}function GC(i,u){var h=Tt(i)?Se:Dv;return h(i,of(lt(u,3)))}function KC(i){var u=Tt(i)?Pv:FS;return u(i)}function zC(i,u,h){(h?Tr(i,u,h):u===r)?u=1:u=kt(u);var x=Tt(i)?gS:BS;return x(i,u)}function YC(i){var u=Tt(i)?mS:jS;return u(i)}function XC(i){if(i==null)return 0;if(Fr(i))return lf(i)?qs(i):i.length;var u=gr(i);return u==N||u==_e?i.size:Mp(i).length}function QC(i,u,h){var x=Tt(i)?Cn:HS;return h&&Tr(i,u,h)&&(u=r),x(i,lt(u,3))}var JC=$t(function(i,u){if(i==null)return[];var h=u.length;return h>1&&Tr(i,u[0],u[1])?u=[]:h>2&&Tr(u[0],u[1],u[2])&&(u=[u[0]]),Gv(i,ar(u,1),[])}),rf=kw||function(){return Tn.Date.now()};function qC(i,u){if(typeof u!="function")throw new Mt(o);return i=kt(i),function(){if(--i<1)return u.apply(this,arguments)}}function By(i,u,h){return u=h?r:u,u=i&&u==null?i.length:u,mi(i,m,r,r,r,r,u)}function Uy(i,u){var h;if(typeof u!="function")throw new Mt(o);return i=kt(i),function(){return--i>0&&(h=u.apply(this,arguments)),i<=1&&(u=r),h}}var oh=$t(function(i,u,h){var x=M;if(h.length){var k=ts(h,Ta(oh));x|=$}return mi(i,x,u,h,k)}),jy=$t(function(i,u,h){var x=M|S;if(h.length){var k=ts(h,Ta(jy));x|=$}return mi(u,x,i,h,k)});function Hy(i,u,h){u=h?r:u;var x=mi(i,B,r,r,r,r,r,u);return x.placeholder=Hy.placeholder,x}function Wy(i,u,h){u=h?r:u;var x=mi(i,R,r,r,r,r,r,u);return x.placeholder=Wy.placeholder,x}function Vy(i,u,h){var x,k,U,Q,te,fe,Ie=0,Pe=!1,De=!1,He=!0;if(typeof i!="function")throw new Mt(o);u=Es(u)||0,An(h)&&(Pe=!!h.leading,De="maxWait"in h,U=De?Qn(Es(h.maxWait)||0,u):U,He="trailing"in h?!!h.trailing:He);function et($n){var Ms=x,xi=k;return x=k=r,Ie=$n,Q=i.apply(xi,Ms),Q}function ct($n){return Ie=$n,te=Wl(Wt,u),Pe?et($n):Q}function Nt($n){var Ms=$n-fe,xi=$n-Ie,ub=u-Ms;return De?hr(ub,U-xi):ub}function ft($n){var Ms=$n-fe,xi=$n-Ie;return fe===r||Ms>=u||Ms<0||De&&xi>=U}function Wt(){var $n=rf();if(ft($n))return Yt($n);te=Wl(Wt,Nt($n))}function Yt($n){return te=r,He&&x?et($n):(x=k=r,Q)}function ss(){te!==r&&ey(te),Ie=0,x=fe=k=te=r}function Cr(){return te===r?Q:Yt(rf())}function is(){var $n=rf(),Ms=ft($n);if(x=arguments,k=this,fe=$n,Ms){if(te===r)return ct(fe);if(De)return ey(te),te=Wl(Wt,u),et(fe)}return te===r&&(te=Wl(Wt,u)),Q}return is.cancel=ss,is.flush=Cr,is}var ZC=$t(function(i,u){return Nv(i,1,u)}),eA=$t(function(i,u,h){return Nv(i,Es(u)||0,h)});function tA(i){return mi(i,j)}function sf(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new Mt(o);var h=function(){var x=arguments,k=u?u.apply(this,x):x[0],U=h.cache;if(U.has(k))return U.get(k);var Q=i.apply(this,x);return h.cache=U.set(k,Q)||U,Q};return h.cache=new(sf.Cache||hi),h}sf.Cache=hi;function of(i){if(typeof i!="function")throw new Mt(o);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function nA(i){return Uy(2,i)}var rA=WS(function(i,u){u=u.length==1&&Tt(u[0])?Ge(u[0],xr(lt())):Ge(ar(u,1),xr(lt()));var h=u.length;return $t(function(x){for(var k=-1,U=hr(x.length,h);++k=u}),$o=Fv(function(){return arguments}())?Fv:function(i){return Pn(i)&&_t.call(i,"callee")&&!Sv.call(i,"callee")},Tt=Z.isArray,yA=c?xr(c):CS;function Fr(i){return i!=null&&af(i.length)&&!bi(i)}function Mn(i){return Pn(i)&&Fr(i)}function bA(i){return i===!0||i===!1||Pn(i)&&Sr(i)==en}var Ki=Nw||yh,_A=g?xr(g):AS;function xA(i){return Pn(i)&&i.nodeType===1&&!Vl(i)}function EA(i){if(i==null)return!0;if(Fr(i)&&(Tt(i)||typeof i=="string"||typeof i.splice=="function"||Ki(i)||Ca(i)||$o(i)))return!i.length;var u=gr(i);if(u==N||u==_e)return!i.size;if(Hl(i))return!Mp(i).length;for(var h in i)if(_t.call(i,h))return!1;return!0}function wA(i,u){return Bl(i,u)}function SA(i,u,h){h=typeof h=="function"?h:r;var x=h?h(i,u):r;return x===r?Bl(i,u,r,h):!!x}function lh(i){if(!Pn(i))return!1;var u=Sr(i);return u==gn||u==Ht||typeof i.message=="string"&&typeof i.name=="string"&&!Vl(i)}function TA(i){return typeof i=="number"&&Cv(i)}function bi(i){if(!An(i))return!1;var u=Sr(i);return u==X||u==L||u==Lt||u==Re}function Ky(i){return typeof i=="number"&&i==kt(i)}function af(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=$e}function An(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function Pn(i){return i!=null&&typeof i=="object"}var zy=b?xr(b):IS;function CA(i,u){return i===u||Dp(i,u,qp(u))}function AA(i,u,h){return h=typeof h=="function"?h:r,Dp(i,u,qp(u),h)}function OA(i){return Yy(i)&&i!=+i}function IA(i){if(dT(i))throw new Oe(l);return Bv(i)}function PA(i){return i===null}function kA(i){return i==null}function Yy(i){return typeof i=="number"||Pn(i)&&Sr(i)==z}function Vl(i){if(!Pn(i)||Sr(i)!=ae)return!1;var u=Nc(i);if(u===null)return!0;var h=_t.call(u,"constructor")&&u.constructor;return typeof h=="function"&&h instanceof h&&Ns.call(h)==Aw}var uh=E?xr(E):PS;function LA(i){return Ky(i)&&i>=-$e&&i<=$e}var Xy=A?xr(A):kS;function lf(i){return typeof i=="string"||!Tt(i)&&Pn(i)&&Sr(i)==oe}function rs(i){return typeof i=="symbol"||Pn(i)&&Sr(i)==he}var Ca=O?xr(O):LS;function NA(i){return i===r}function RA(i){return Pn(i)&&gr(i)==we}function DA(i){return Pn(i)&&Sr(i)==Je}var MA=Jc($p),$A=Jc(function(i,u){return i<=u});function Qy(i){if(!i)return[];if(Fr(i))return lf(i)?Er(i):$r(i);if(kl&&i[kl])return Js(i[kl]());var u=gr(i),h=u==N?ya:u==_e?di:Aa;return h(i)}function _i(i){if(!i)return i===0?i:0;if(i=Es(i),i===Ae||i===-Ae){var u=i<0?-1:1;return u*tt}return i===i?i:0}function kt(i){var u=_i(i),h=u%1;return u===u?h?u-h:u:0}function Jy(i){return i?No(kt(i),0,ot):0}function Es(i){if(typeof i=="number")return i;if(rs(i))return Rt;if(An(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=An(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=vs(i);var h=lc.test(i);return h||fl.test(i)?xp(i.slice(2),h?2:8):Di.test(i)?Rt:+i}function qy(i){return ei(i,Br(i))}function FA(i){return i?No(kt(i),-$e,$e):i===0?i:0}function cn(i){return i==null?"":ns(i)}var BA=wa(function(i,u){if(Hl(u)||Fr(u)){ei(u,nr(u),i);return}for(var h in u)_t.call(u,h)&&Ml(i,h,u[h])}),Zy=wa(function(i,u){ei(u,Br(u),i)}),uf=wa(function(i,u,h,x){ei(u,Br(u),i,x)}),UA=wa(function(i,u,h,x){ei(u,nr(u),i,x)}),jA=vi(Pp);function HA(i,u){var h=Ea(i);return u==null?h:kv(h,u)}var WA=$t(function(i,u){i=We(i);var h=-1,x=u.length,k=x>2?u[2]:r;for(k&&Tr(u[0],u[1],k)&&(x=1);++h1),U}),ei(i,Qp(i),h),x&&(h=bs(h,v|_|w,eT));for(var k=u.length;k--;)Hp(h,u[k]);return h});function aO(i,u){return tb(i,of(lt(u)))}var lO=vi(function(i,u){return i==null?{}:DS(i,u)});function tb(i,u){if(i==null)return{};var h=Ge(Qp(i),function(x){return[x]});return u=lt(u),Kv(i,h,function(x,k){return u(x,k[0])})}function uO(i,u,h){u=Vi(u,i);var x=-1,k=u.length;for(k||(k=1,i=r);++xu){var x=i;i=u,u=x}if(h||i%1||u%1){var k=Av();return hr(i+k*(u-i+Tl("1e-"+((k+"").length-1))),u)}return Bp(i,u)}var _O=Sa(function(i,u,h){return u=u.toLowerCase(),i+(h?sb(u):u)});function sb(i){return dh(cn(i).toLowerCase())}function ib(i){return i=cn(i),i&&i.replace(uc,Ui).replace(gp,"")}function xO(i,u,h){i=cn(i),u=ns(u);var x=i.length;h=h===r?x:No(kt(h),0,x);var k=h;return h-=u.length,h>=0&&i.slice(h,k)==u}function EO(i){return i=cn(i),i&&Ni.test(i)?i.replace(Ct,wp):i}function wO(i){return i=cn(i),i&&Ri.test(i)?i.replace(Ks,"\\$&"):i}var SO=Sa(function(i,u,h){return i+(h?"-":"")+u.toLowerCase()}),TO=Sa(function(i,u,h){return i+(h?" ":"")+u.toLowerCase()}),CO=ly("toLowerCase");function AO(i,u,h){i=cn(i),u=kt(u);var x=u?qs(i):0;if(!u||x>=u)return i;var k=(u-x)/2;return Qc($c(k),h)+i+Qc(Mc(k),h)}function OO(i,u,h){i=cn(i),u=kt(u);var x=u?qs(i):0;return u&&x>>0,h?(i=cn(i),i&&(typeof u=="string"||u!=null&&!uh(u))&&(u=ns(u),!u&&Mr(i))?Gi(Er(i),0,h):i.split(u,h)):[]}var DO=Sa(function(i,u,h){return i+(h?" ":"")+dh(u)});function MO(i,u,h){return i=cn(i),h=h==null?0:No(kt(h),0,i.length),u=ns(u),i.slice(h,h+u.length)==u}function $O(i,u,h){var x=F.templateSettings;h&&Tr(i,u,h)&&(u=r),i=cn(i),u=uf({},u,x,gy);var k=uf({},u.imports,x.imports,gy),U=nr(k),Q=Al(k,U),te,fe,Ie=0,Pe=u.interpolate||da,De="__p += '",He=Pt((u.escape||da).source+"|"+Pe.source+"|"+(Pe===ua?oc:da).source+"|"+(u.evaluate||da).source+"|$","g"),et="//# sourceURL="+(_t.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_p+"]")+` +`;i.replace(He,function(ft,Wt,Yt,ss,Cr,is){return Yt||(Yt=ss),De+=i.slice(Ie,is).replace(wo,Sp),Wt&&(te=!0,De+=`' + +__e(`+Wt+`) + +'`),Cr&&(fe=!0,De+=`'; +`+Cr+`; +__p += '`),Yt&&(De+=`' + +((__t = (`+Yt+`)) == null ? '' : __t) + +'`),Ie=is+ft.length,ft}),De+=`'; +`;var ct=_t.call(u,"variable")&&u.variable;if(!ct)De=`with (obj) { +`+De+` +} +`;else if(lp.test(ct))throw new Oe(f);De=(fe?De.replace(at,""):De).replace(Qe,"$1").replace(rt,"$1;"),De="function("+(ct||"obj")+`) { +`+(ct?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+De+`return __p +}`;var Nt=ab(function(){return ze(U,et+"return "+De).apply(r,Q)});if(Nt.source=De,lh(Nt))throw Nt;return Nt}function FO(i){return cn(i).toLowerCase()}function BO(i){return cn(i).toUpperCase()}function UO(i,u,h){if(i=cn(i),i&&(h||u===r))return vs(i);if(!i||!(u=ns(u)))return i;var x=Er(i),k=Er(u),U=an(x,k),Q=Oo(x,k)+1;return Gi(x,U,Q).join("")}function jO(i,u,h){if(i=cn(i),i&&(h||u===r))return i.slice(0,Oc(i)+1);if(!i||!(u=ns(u)))return i;var x=Er(i),k=Oo(x,Er(u))+1;return Gi(x,0,k).join("")}function HO(i,u,h){if(i=cn(i),i&&(h||u===r))return i.replace(Eo,"");if(!i||!(u=ns(u)))return i;var x=Er(i),k=an(x,Er(u));return Gi(x,k).join("")}function WO(i,u){var h=K,x=re;if(An(u)){var k="separator"in u?u.separator:k;h="length"in u?kt(u.length):h,x="omission"in u?ns(u.omission):x}i=cn(i);var U=i.length;if(Mr(i)){var Q=Er(i);U=Q.length}if(h>=U)return i;var te=h-qs(x);if(te<1)return x;var fe=Q?Gi(Q,0,te).join(""):i.slice(0,te);if(k===r)return fe+x;if(Q&&(te+=fe.length-te),uh(k)){if(i.slice(te).search(k)){var Ie,Pe=fe;for(k.global||(k=Pt(k.source,cn(ac.exec(k))+"g")),k.lastIndex=0;Ie=k.exec(Pe);)var De=Ie.index;fe=fe.slice(0,De===r?te:De)}}else if(i.indexOf(ns(k),te)!=te){var He=fe.lastIndexOf(k);He>-1&&(fe=fe.slice(0,He))}return fe+x}function VO(i){return i=cn(i),i&&Kn.test(i)?i.replace(bt,Pl):i}var GO=Sa(function(i,u,h){return i+(h?" ":"")+u.toUpperCase()}),dh=ly("toUpperCase");function ob(i,u,h){return i=cn(i),u=h?r:u,u===r?Ol(i)?ne(i):Bt(i):i.match(u)||[]}var ab=$t(function(i,u){try{return D(i,r,u)}catch(h){return lh(h)?h:new Oe(h)}}),KO=vi(function(i,u){return V(u,function(h){h=ti(h),gi(i,h,oh(i[h],i))}),i});function zO(i){var u=i==null?0:i.length,h=lt();return i=u?Ge(i,function(x){if(typeof x[1]!="function")throw new Mt(o);return[h(x[0]),x[1]]}):[],$t(function(x){for(var k=-1;++k$e)return[];var h=ot,x=hr(i,ot);u=lt(u),i-=ot;for(var k=Co(x,u);++h0||u<0)?new Vt(h):(i<0?h=h.takeRight(-i):i&&(h=h.drop(i)),u!==r&&(u=kt(u),h=u<0?h.dropRight(-u):h.take(u-i)),h)},Vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Vt.prototype.toArray=function(){return this.take(ot)},Zs(Vt.prototype,function(i,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),x=/^(?:head|last)$/.test(u),k=F[x?"take"+(u=="last"?"Right":""):u],U=x||/^find/.test(u);!k||(F.prototype[u]=function(){var Q=this.__wrapped__,te=x?[1]:arguments,fe=Q instanceof Vt,Ie=te[0],Pe=fe||Tt(Q),De=function(Wt){var Yt=k.apply(F,St([Wt],te));return x&&He?Yt[0]:Yt};Pe&&h&&typeof Ie=="function"&&Ie.length!=1&&(fe=Pe=!1);var He=this.__chain__,et=!!this.__actions__.length,ct=U&&!He,Nt=fe&&!et;if(!U&&Pe){Q=Nt?Q:new Vt(this);var ft=i.apply(Q,te);return ft.__actions__.push({func:tf,args:[De],thisArg:r}),new ys(ft,He)}return ct&&Nt?i.apply(this,te):(ft=this.thru(De),ct?x?ft.value()[0]:ft.value():ft)})}),V(["pop","push","shift","sort","splice","unshift"],function(i){var u=Yn[i],h=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",x=/^(?:pop|shift)$/.test(i);F.prototype[i]=function(){var k=arguments;if(x&&!this.__chain__){var U=this.value();return u.apply(Tt(U)?U:[],k)}return this[h](function(Q){return u.apply(Tt(Q)?Q:[],k)})}}),Zs(Vt.prototype,function(i,u){var h=F[u];if(h){var x=h.name+"";_t.call(xa,x)||(xa[x]=[]),xa[x].push({name:u,func:h})}}),xa[Yc(r,S).name]=[{name:"wrapper",func:r}],Vt.prototype.clone=Vw,Vt.prototype.reverse=Gw,Vt.prototype.value=Kw,F.prototype.at=xC,F.prototype.chain=EC,F.prototype.commit=wC,F.prototype.next=SC,F.prototype.plant=CC,F.prototype.reverse=AC,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=OC,F.prototype.first=F.prototype.head,kl&&(F.prototype[kl]=TC),F},ve=ge();Ps?((Ps.exports=ve)._=ve,ma._=ve):Tn._=ve}).call(Wo)})(sg,sg.exports);const NI=sg.exports;var P0={exports:{}},Kg={exports:{}},k0=function(n,r){return function(){for(var a=new Array(arguments.length),l=0;l"u"}function DI(e){return e!==null&&!Vf(e)&&e.constructor!==null&&!Vf(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var L0=sa("ArrayBuffer");function MI(e){var n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&L0(e.buffer),n}function $I(e){return typeof e=="string"}function FI(e){return typeof e=="number"}function N0(e){return e!==null&&typeof e=="object"}function Lf(e){if(Yg(e)!=="object")return!1;var n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}var BI=sa("Date"),UI=sa("File"),jI=sa("Blob"),HI=sa("FileList");function Qg(e){return zg.call(e)==="[object Function]"}function WI(e){return N0(e)&&Qg(e.pipe)}function VI(e){var n="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||zg.call(e)===n||Qg(e.toString)&&e.toString()===n)}var GI=sa("URLSearchParams");function KI(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function zI(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Jg(e,n){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Xg(e))for(var r=0,s=e.length;r0;)l=s[a],o[l]||(n[l]=e[l],o[l]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n}function qI(e,n,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;var s=e.indexOf(n,r);return s!==-1&&s===r}function ZI(e){if(!e)return null;var n=e.length;if(Vf(n))return null;for(var r=new Array(n);n-- >0;)r[n]=e[n];return r}var eP=function(e){return function(n){return e&&n instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),fr={isArray:Xg,isArrayBuffer:L0,isBuffer:DI,isFormData:VI,isArrayBufferView:MI,isString:$I,isNumber:FI,isObject:N0,isPlainObject:Lf,isUndefined:Vf,isDate:BI,isFile:UI,isBlob:jI,isFunction:Qg,isStream:WI,isURLSearchParams:GI,isStandardBrowserEnv:zI,forEach:Jg,merge:ig,extend:YI,trim:KI,stripBOM:XI,inherits:QI,toFlatObject:JI,kindOf:Yg,kindOfTest:sa,endsWith:qI,toArray:ZI,isTypedArray:eP,isFileList:HI},Oa=fr;function fb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var R0=function(n,r,s){if(!r)return n;var a;if(s)a=s(r);else if(Oa.isURLSearchParams(r))a=r.toString();else{var l=[];Oa.forEach(r,function(d,p){d===null||typeof d>"u"||(Oa.isArray(d)?p=p+"[]":d=[d],Oa.forEach(d,function(v){Oa.isDate(v)?v=v.toISOString():Oa.isObject(v)&&(v=JSON.stringify(v)),l.push(fb(p)+"="+fb(v))}))}),a=l.join("&")}if(a){var o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n},tP=fr;function vd(){this.handlers=[]}vd.prototype.use=function(n,r,s){return this.handlers.push({fulfilled:n,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1};vd.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)};vd.prototype.forEach=function(n){tP.forEach(this.handlers,function(s){s!==null&&n(s)})};var nP=vd,rP=fr,sP=function(n,r){rP.forEach(n,function(a,l){l!==r&&l.toUpperCase()===r.toUpperCase()&&(n[r]=a,delete n[l])})},D0=fr;function Ga(e,n,r,s,a){Error.call(this),this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),a&&(this.response=a)}D0.inherits(Ga,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var M0=Ga.prototype,$0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){$0[e]={value:e}});Object.defineProperties(Ga,$0);Object.defineProperty(M0,"isAxiosError",{value:!0});Ga.from=function(e,n,r,s,a,l){var o=Object.create(M0);return D0.toFlatObject(e,o,function(d){return d!==Error.prototype}),Ga.call(o,e.message,n,r,s,a),o.name=e.name,l&&Object.assign(o,l),o};var rl=Ga,F0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$s=fr;function iP(e,n){n=n||new FormData;var r=[];function s(l){return l===null?"":$s.isDate(l)?l.toISOString():$s.isArrayBuffer(l)||$s.isTypedArray(l)?typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function a(l,o){if($s.isPlainObject(l)||$s.isArray(l)){if(r.indexOf(l)!==-1)throw Error("Circular reference detected in "+o);r.push(l),$s.forEach(l,function(d,p){if(!$s.isUndefined(d)){var y=o?o+"."+p:p,v;if(d&&!o&&typeof d=="object"){if($s.endsWith(p,"{}"))d=JSON.stringify(d);else if($s.endsWith(p,"[]")&&(v=$s.toArray(d))){v.forEach(function(_){!$s.isUndefined(_)&&n.append(y,s(_))});return}}a(d,y)}}),r.pop()}else n.append(o,s(l))}return a(e),n}var B0=iP,bh,db;function oP(){if(db)return bh;db=1;var e=rl;return bh=function(r,s,a){var l=a.config.validateStatus;!a.status||!l||l(a.status)?r(a):s(new e("Request failed with status code "+a.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))},bh}var _h,pb;function aP(){if(pb)return _h;pb=1;var e=fr;return _h=e.isStandardBrowserEnv()?function(){return{write:function(s,a,l,o,f,d){var p=[];p.push(s+"="+encodeURIComponent(a)),e.isNumber(l)&&p.push("expires="+new Date(l).toGMTString()),e.isString(o)&&p.push("path="+o),e.isString(f)&&p.push("domain="+f),d===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(s){var a=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),_h}var lP=function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)},uP=function(n,r){return r?n.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):n},cP=lP,fP=uP,U0=function(n,r){return n&&!cP(r)?fP(n,r):r},xh,hb;function dP(){if(hb)return xh;hb=1;var e=fr,n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return xh=function(s){var a={},l,o,f;return s&&e.forEach(s.split(` +`),function(p){if(f=p.indexOf(":"),l=e.trim(p.substr(0,f)).toLowerCase(),o=e.trim(p.substr(f+1)),l){if(a[l]&&n.indexOf(l)>=0)return;l==="set-cookie"?a[l]=(a[l]?a[l]:[]).concat([o]):a[l]=a[l]?a[l]+", "+o:o}}),a},xh}var Eh,gb;function pP(){if(gb)return Eh;gb=1;var e=fr;return Eh=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),a;function l(o){var f=o;return r&&(s.setAttribute("href",f),f=s.href),s.setAttribute("href",f),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return a=l(window.location.href),function(f){var d=e.isString(f)?l(f):f;return d.protocol===a.protocol&&d.host===a.host}}():function(){return function(){return!0}}(),Eh}var wh,mb;function yd(){if(mb)return wh;mb=1;var e=rl,n=fr;function r(s){e.call(this,s==null?"canceled":s,e.ERR_CANCELED),this.name="CanceledError"}return n.inherits(r,e,{__CANCEL__:!0}),wh=r,wh}var Sh,vb;function hP(){return vb||(vb=1,Sh=function(n){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}),Sh}var Th,yb;function bb(){if(yb)return Th;yb=1;var e=fr,n=oP(),r=aP(),s=R0,a=U0,l=dP(),o=pP(),f=F0,d=rl,p=yd(),y=hP();return Th=function(_){return new Promise(function(T,P){var M=_.data,S=_.headers,I=_.responseType,B;function R(){_.cancelToken&&_.cancelToken.unsubscribe(B),_.signal&&_.signal.removeEventListener("abort",B)}e.isFormData(M)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var $=new XMLHttpRequest;if(_.auth){var G=_.auth.username||"",m=_.auth.password?unescape(encodeURIComponent(_.auth.password)):"";S.Authorization="Basic "+btoa(G+":"+m)}var Y=a(_.baseURL,_.url);$.open(_.method.toUpperCase(),s(Y,_.params,_.paramsSerializer),!0),$.timeout=_.timeout;function j(){if(!!$){var pe="getAllResponseHeaders"in $?l($.getAllResponseHeaders()):null,q=!I||I==="text"||I==="json"?$.responseText:$.response,le={data:q,status:$.status,statusText:$.statusText,headers:pe,config:_,request:$};n(function(Ee){T(Ee),R()},function(Ee){P(Ee),R()},le),$=null}}if("onloadend"in $?$.onloadend=j:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(j)},$.onabort=function(){!$||(P(new d("Request aborted",d.ECONNABORTED,_,$)),$=null)},$.onerror=function(){P(new d("Network Error",d.ERR_NETWORK,_,$,$)),$=null},$.ontimeout=function(){var q=_.timeout?"timeout of "+_.timeout+"ms exceeded":"timeout exceeded",le=_.transitional||f;_.timeoutErrorMessage&&(q=_.timeoutErrorMessage),P(new d(q,le.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,_,$)),$=null},e.isStandardBrowserEnv()){var K=(_.withCredentials||o(Y))&&_.xsrfCookieName?r.read(_.xsrfCookieName):void 0;K&&(S[_.xsrfHeaderName]=K)}"setRequestHeader"in $&&e.forEach(S,function(q,le){typeof M>"u"&&le.toLowerCase()==="content-type"?delete S[le]:$.setRequestHeader(le,q)}),e.isUndefined(_.withCredentials)||($.withCredentials=!!_.withCredentials),I&&I!=="json"&&($.responseType=_.responseType),typeof _.onDownloadProgress=="function"&&$.addEventListener("progress",_.onDownloadProgress),typeof _.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",_.onUploadProgress),(_.cancelToken||_.signal)&&(B=function(pe){!$||(P(!pe||pe&&pe.type?new p:pe),$.abort(),$=null)},_.cancelToken&&_.cancelToken.subscribe(B),_.signal&&(_.signal.aborted?B():_.signal.addEventListener("abort",B))),M||(M=null);var re=y(Y);if(re&&["http","https","file"].indexOf(re)===-1){P(new d("Unsupported protocol "+re+":",d.ERR_BAD_REQUEST,_));return}$.send(M)})},Th}var Ch,_b;function gP(){return _b||(_b=1,Ch=null),Ch}var rr=fr,xb=sP,Eb=rl,mP=F0,vP=B0,yP={"Content-Type":"application/x-www-form-urlencoded"};function wb(e,n){!rr.isUndefined(e)&&rr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=n)}function bP(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=bb()),e}function _P(e,n,r){if(rr.isString(e))try{return(n||JSON.parse)(e),rr.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}var bd={transitional:mP,adapter:bP(),transformRequest:[function(n,r){if(xb(r,"Accept"),xb(r,"Content-Type"),rr.isFormData(n)||rr.isArrayBuffer(n)||rr.isBuffer(n)||rr.isStream(n)||rr.isFile(n)||rr.isBlob(n))return n;if(rr.isArrayBufferView(n))return n.buffer;if(rr.isURLSearchParams(n))return wb(r,"application/x-www-form-urlencoded;charset=utf-8"),n.toString();var s=rr.isObject(n),a=r&&r["Content-Type"],l;if((l=rr.isFileList(n))||s&&a==="multipart/form-data"){var o=this.env&&this.env.FormData;return vP(l?{"files[]":n}:n,o&&new o)}else if(s||a==="application/json")return wb(r,"application/json"),_P(n);return n}],transformResponse:[function(n){var r=this.transitional||bd.transitional,s=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,l=!s&&this.responseType==="json";if(l||a&&rr.isString(n)&&n.length)try{return JSON.parse(n)}catch(o){if(l)throw o.name==="SyntaxError"?Eb.from(o,Eb.ERR_BAD_RESPONSE,this,null,this.response):o}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gP()},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rr.forEach(["delete","get","head"],function(n){bd.headers[n]={}});rr.forEach(["post","put","patch"],function(n){bd.headers[n]=rr.merge(yP)});var qg=bd,xP=fr,EP=qg,wP=function(n,r,s){var a=this||EP;return xP.forEach(s,function(o){n=o.call(a,n,r)}),n},Ah,Sb;function j0(){return Sb||(Sb=1,Ah=function(n){return!!(n&&n.__CANCEL__)}),Ah}var Tb=fr,Oh=wP,SP=j0(),TP=qg,CP=yd();function Ih(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CP}var AP=function(n){Ih(n),n.headers=n.headers||{},n.data=Oh.call(n,n.data,n.headers,n.transformRequest),n.headers=Tb.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),Tb.forEach(["delete","get","head","post","put","patch","common"],function(a){delete n.headers[a]});var r=n.adapter||TP.adapter;return r(n).then(function(a){return Ih(n),a.data=Oh.call(n,a.data,a.headers,n.transformResponse),a},function(a){return SP(a)||(Ih(n),a&&a.response&&(a.response.data=Oh.call(n,a.response.data,a.response.headers,n.transformResponse))),Promise.reject(a)})},os=fr,H0=function(n,r){r=r||{};var s={};function a(y,v){return os.isPlainObject(y)&&os.isPlainObject(v)?os.merge(y,v):os.isPlainObject(v)?os.merge({},v):os.isArray(v)?v.slice():v}function l(y){if(os.isUndefined(r[y])){if(!os.isUndefined(n[y]))return a(void 0,n[y])}else return a(n[y],r[y])}function o(y){if(!os.isUndefined(r[y]))return a(void 0,r[y])}function f(y){if(os.isUndefined(r[y])){if(!os.isUndefined(n[y]))return a(void 0,n[y])}else return a(void 0,r[y])}function d(y){if(y in r)return a(n[y],r[y]);if(y in n)return a(void 0,n[y])}var p={url:o,method:o,data:o,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:d};return os.forEach(Object.keys(n).concat(Object.keys(r)),function(v){var _=p[v]||l,w=_(v);os.isUndefined(w)&&_!==d||(s[v]=w)}),s},Ph,Cb;function W0(){return Cb||(Cb=1,Ph={version:"0.27.2"}),Ph}var OP=W0().version,qi=rl,Zg={};["object","boolean","number","function","string","symbol"].forEach(function(e,n){Zg[e]=function(s){return typeof s===e||"a"+(n<1?"n ":" ")+e}});var Ab={};Zg.transitional=function(n,r,s){function a(l,o){return"[Axios v"+OP+"] Transitional option '"+l+"'"+o+(s?". "+s:"")}return function(l,o,f){if(n===!1)throw new qi(a(o," has been removed"+(r?" in "+r:"")),qi.ERR_DEPRECATED);return r&&!Ab[o]&&(Ab[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(l,o,f):!0}};function IP(e,n,r){if(typeof e!="object")throw new qi("options must be an object",qi.ERR_BAD_OPTION_VALUE);for(var s=Object.keys(e),a=s.length;a-- >0;){var l=s[a],o=n[l];if(o){var f=e[l],d=f===void 0||o(f,l,e);if(d!==!0)throw new qi("option "+l+" must be "+d,qi.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new qi("Unknown option "+l,qi.ERR_BAD_OPTION)}}var PP={assertOptions:IP,validators:Zg},V0=fr,kP=R0,Ob=nP,Ib=AP,_d=H0,LP=U0,G0=PP,Ia=G0.validators;function Ka(e){this.defaults=e,this.interceptors={request:new Ob,response:new Ob}}Ka.prototype.request=function(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=_d(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var s=r.transitional;s!==void 0&&G0.assertOptions(s,{silentJSONParsing:Ia.transitional(Ia.boolean),forcedJSONParsing:Ia.transitional(Ia.boolean),clarifyTimeoutError:Ia.transitional(Ia.boolean)},!1);var a=[],l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(l=l&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});var o=[];this.interceptors.response.forEach(function(w){o.push(w.fulfilled,w.rejected)});var f;if(!l){var d=[Ib,void 0];for(Array.prototype.unshift.apply(d,a),d=d.concat(o),f=Promise.resolve(r);d.length;)f=f.then(d.shift(),d.shift());return f}for(var p=r;a.length;){var y=a.shift(),v=a.shift();try{p=y(p)}catch(_){v(_);break}}try{f=Ib(p)}catch(_){return Promise.reject(_)}for(;o.length;)f=f.then(o.shift(),o.shift());return f};Ka.prototype.getUri=function(n){n=_d(this.defaults,n);var r=LP(n.baseURL,n.url);return kP(r,n.params,n.paramsSerializer)};V0.forEach(["delete","get","head","options"],function(n){Ka.prototype[n]=function(r,s){return this.request(_d(s||{},{method:n,url:r,data:(s||{}).data}))}});V0.forEach(["post","put","patch"],function(n){function r(s){return function(l,o,f){return this.request(_d(f||{},{method:n,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:o}))}}Ka.prototype[n]=r(),Ka.prototype[n+"Form"]=r(!0)});var NP=Ka,kh,Pb;function RP(){if(Pb)return kh;Pb=1;var e=yd();function n(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(o){s=o});var a=this;this.promise.then(function(l){if(!!a._listeners){var o,f=a._listeners.length;for(o=0;o!!r[a.toLowerCase()]:a=>!!r[a]}const pn={},Ua=[],kr=()=>{},Rf=()=>!1,UP=/^on[^a-z]/,ia=e=>UP.test(e),em=e=>e.startsWith("onUpdate:"),qt=Object.assign,tm=(e,n)=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)},jP=Object.prototype.hasOwnProperty,nn=(e,n)=>jP.call(e,n),Ke=Array.isArray,ja=e=>sl(e)==="[object Map]",oa=e=>sl(e)==="[object Set]",Rb=e=>sl(e)==="[object Date]",HP=e=>sl(e)==="[object RegExp]",gt=e=>typeof e=="function",Ot=e=>typeof e=="string",lo=e=>typeof e=="symbol",hn=e=>e!==null&&typeof e=="object",nm=e=>hn(e)&>(e.then)&>(e.catch),Y0=Object.prototype.toString,sl=e=>Y0.call(e),WP=e=>sl(e).slice(8,-1),X0=e=>sl(e)==="[object Object]",rm=e=>Ot(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xo=Jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),VP=Jr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),xd=e=>{const n=Object.create(null);return r=>n[r]||(n[r]=e(r))},GP=/-(\w)/g,Un=xd(e=>e.replace(GP,(n,r)=>r?r.toUpperCase():"")),KP=/\B([A-Z])/g,fs=xd(e=>e.replace(KP,"-$1").toLowerCase()),vo=xd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qo=xd(e=>e?`on${vo(e)}`:""),za=(e,n)=>!Object.is(e,n),Ha=(e,n)=>{for(let r=0;r{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value:r})},Kf=e=>{const n=parseFloat(e);return isNaN(n)?e:n},zf=e=>{const n=Ot(e)?Number(e):NaN;return isNaN(n)?e:n};let Db;const og=()=>Db||(Db=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),zP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",YP=Jr(zP);function il(e){if(Ke(e)){const n={};for(let r=0;r{if(r){const s=r.split(QP);s.length>1&&(n[s[0].trim()]=s[1].trim())}}),n}function Jt(e){let n="";if(Ot(e))n=e;else if(Ke(e))for(let r=0;ruo(r,n))}const ce=e=>Ot(e)?e:e==null?"":Ke(e)||hn(e)&&(e.toString===Y0||!gt(e.toString))?JSON.stringify(e,Z0,2):String(e),Z0=(e,n)=>n&&n.__v_isRef?Z0(e,n.value):ja(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[s,a])=>(r[`${s} =>`]=a,r),{})}:oa(n)?{[`Set(${n.size})`]:[...n.values()]}:hn(n)&&!Ke(n)&&!X0(n)?String(n):n;let us;class wd{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=us,!n&&us&&(this.index=(us.scopes||(us.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const r=us;try{return us=this,n()}finally{us=r}}}on(){us=this}off(){us=this.parent}stop(n){if(this._active){let r,s;for(r=0,s=this.effects.length;r{const n=new Set(e);return n.w=0,n.n=0,n},t1=e=>(e.w&co)>0,n1=e=>(e.n&co)>0,a2=({deps:e})=>{if(e.length)for(let n=0;n{const{deps:n}=e;if(n.length){let r=0;for(let s=0;s{(y==="length"||y>=d)&&f.push(p)})}else switch(r!==void 0&&f.push(o.get(r)),n){case"add":Ke(e)?rm(r)&&f.push(o.get("length")):(f.push(o.get(Jo)),ja(e)&&f.push(o.get(lg)));break;case"delete":Ke(e)||(f.push(o.get(Jo)),ja(e)&&f.push(o.get(lg)));break;case"set":ja(e)&&f.push(o.get(Jo));break}if(f.length===1)f[0]&&ug(f[0]);else{const d=[];for(const p of f)p&&d.push(...p);ug(om(d))}}function ug(e,n){const r=Ke(e)?e:[...e];for(const s of r)s.computed&&$b(s);for(const s of r)s.computed||$b(s)}function $b(e,n){(e!==js||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function u2(e,n){var r;return(r=Yf.get(e))==null?void 0:r.get(n)}const c2=Jr("__proto__,__v_isRef,__isVue"),a1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lo)),f2=Td(),d2=Td(!1,!0),p2=Td(!0),h2=Td(!0,!0),Fb=g2();function g2(){const e={};return["includes","indexOf","lastIndexOf"].forEach(n=>{e[n]=function(...r){const s=Kt(this);for(let l=0,o=this.length;l{e[n]=function(...r){al();const s=Kt(this)[n].apply(this,r);return ll(),s}}),e}function m2(e){const n=Kt(this);return Qr(n,"has",e),n.hasOwnProperty(e)}function Td(e=!1,n=!1){return function(s,a,l){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return n;if(a==="__v_raw"&&l===(e?n?h1:p1:n?d1:f1).get(s))return s;const o=Ke(s);if(!e){if(o&&nn(Fb,a))return Reflect.get(Fb,a,l);if(a==="hasOwnProperty")return m2}const f=Reflect.get(s,a,l);return(lo(a)?a1.has(a):c2(a))||(e||Qr(s,"get",a),n)?f:Bn(f)?o&&rm(a)?f:f.value:hn(f)?e?Od(f):Du(f):f}}const v2=l1(),y2=l1(!0);function l1(e=!1){return function(r,s,a,l){let o=r[s];if(fo(o)&&Bn(o)&&!Bn(a))return!1;if(!e&&(!Ya(a)&&!fo(a)&&(o=Kt(o),a=Kt(a)),!Ke(r)&&Bn(o)&&!Bn(a)))return o.value=a,!0;const f=Ke(r)&&rm(s)?Number(s)e,Cd=e=>Reflect.getPrototypeOf(e);function cf(e,n,r=!1,s=!1){e=e.__v_raw;const a=Kt(e),l=Kt(n);r||(n!==l&&Qr(a,"get",n),Qr(a,"get",l));const{has:o}=Cd(a),f=s?am:r?um:_u;if(o.call(a,n))return f(e.get(n));if(o.call(a,l))return f(e.get(l));e!==a&&e.get(n)}function ff(e,n=!1){const r=this.__v_raw,s=Kt(r),a=Kt(e);return n||(e!==a&&Qr(s,"has",e),Qr(s,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function df(e,n=!1){return e=e.__v_raw,!n&&Qr(Kt(e),"iterate",Jo),Reflect.get(e,"size",e)}function Bb(e){e=Kt(e);const n=Kt(this);return Cd(n).has.call(n,e)||(n.add(e),Oi(n,"add",e,e)),this}function Ub(e,n){n=Kt(n);const r=Kt(this),{has:s,get:a}=Cd(r);let l=s.call(r,e);l||(e=Kt(e),l=s.call(r,e));const o=a.call(r,e);return r.set(e,n),l?za(n,o)&&Oi(r,"set",e,n):Oi(r,"add",e,n),this}function jb(e){const n=Kt(this),{has:r,get:s}=Cd(n);let a=r.call(n,e);a||(e=Kt(e),a=r.call(n,e)),s&&s.call(n,e);const l=n.delete(e);return a&&Oi(n,"delete",e,void 0),l}function Hb(){const e=Kt(this),n=e.size!==0,r=e.clear();return n&&Oi(e,"clear",void 0,void 0),r}function pf(e,n){return function(s,a){const l=this,o=l.__v_raw,f=Kt(o),d=n?am:e?um:_u;return!e&&Qr(f,"iterate",Jo),o.forEach((p,y)=>s.call(a,d(p),d(y),l))}}function hf(e,n,r){return function(...s){const a=this.__v_raw,l=Kt(a),o=ja(l),f=e==="entries"||e===Symbol.iterator&&o,d=e==="keys"&&o,p=a[e](...s),y=r?am:n?um:_u;return!n&&Qr(l,"iterate",d?lg:Jo),{next(){const{value:v,done:_}=p.next();return _?{value:v,done:_}:{value:f?[y(v[0]),y(v[1])]:y(v),done:_}},[Symbol.iterator](){return this}}}}function zi(e){return function(...n){return e==="delete"?!1:this}}function S2(){const e={get(l){return cf(this,l)},get size(){return df(this)},has:ff,add:Bb,set:Ub,delete:jb,clear:Hb,forEach:pf(!1,!1)},n={get(l){return cf(this,l,!1,!0)},get size(){return df(this)},has:ff,add:Bb,set:Ub,delete:jb,clear:Hb,forEach:pf(!1,!0)},r={get(l){return cf(this,l,!0)},get size(){return df(this,!0)},has(l){return ff.call(this,l,!0)},add:zi("add"),set:zi("set"),delete:zi("delete"),clear:zi("clear"),forEach:pf(!0,!1)},s={get(l){return cf(this,l,!0,!0)},get size(){return df(this,!0)},has(l){return ff.call(this,l,!0)},add:zi("add"),set:zi("set"),delete:zi("delete"),clear:zi("clear"),forEach:pf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=hf(l,!1,!1),r[l]=hf(l,!0,!1),n[l]=hf(l,!1,!0),s[l]=hf(l,!0,!0)}),[e,r,n,s]}const[T2,C2,A2,O2]=S2();function Ad(e,n){const r=n?e?O2:A2:e?C2:T2;return(s,a,l)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(nn(r,a)&&a in s?r:s,a,l)}const I2={get:Ad(!1,!1)},P2={get:Ad(!1,!0)},k2={get:Ad(!0,!1)},L2={get:Ad(!0,!0)},f1=new WeakMap,d1=new WeakMap,p1=new WeakMap,h1=new WeakMap;function N2(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function R2(e){return e.__v_skip||!Object.isExtensible(e)?0:N2(WP(e))}function Du(e){return fo(e)?e:Id(e,!1,u1,I2,f1)}function lm(e){return Id(e,!1,E2,P2,d1)}function Od(e){return Id(e,!0,c1,k2,p1)}function g1(e){return Id(e,!0,w2,L2,h1)}function Id(e,n,r,s,a){if(!hn(e)||e.__v_raw&&!(n&&e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const o=R2(e);if(o===0)return e;const f=new Proxy(e,o===2?s:r);return a.set(e,f),f}function so(e){return fo(e)?so(e.__v_raw):!!(e&&e.__v_isReactive)}function fo(e){return!!(e&&e.__v_isReadonly)}function Ya(e){return!!(e&&e.__v_isShallow)}function Pd(e){return so(e)||fo(e)}function Kt(e){const n=e&&e.__v_raw;return n?Kt(n):e}function kd(e){return Gf(e,"__v_skip",!0),e}const _u=e=>hn(e)?Du(e):e,um=e=>hn(e)?Od(e):e;function cm(e){ro&&js&&(e=Kt(e),o1(e.dep||(e.dep=om())))}function Ld(e,n){e=Kt(e);const r=e.dep;r&&ug(r)}function Bn(e){return!!(e&&e.__v_isRef===!0)}function it(e){return m1(e,!1)}function fm(e){return m1(e,!0)}function m1(e,n){return Bn(e)?e:new D2(e,n)}class D2{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:Kt(n),this._value=r?n:_u(n)}get value(){return cm(this),this._value}set value(n){const r=this.__v_isShallow||Ya(n)||fo(n);n=r?n:Kt(n),za(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:_u(n),Ld(this))}}function v1(e){Ld(e)}function Mu(e){return Bn(e)?e.value:e}function y1(e){return gt(e)?e():Mu(e)}const M2={get:(e,n,r)=>Mu(Reflect.get(e,n,r)),set:(e,n,r,s)=>{const a=e[n];return Bn(a)&&!Bn(r)?(a.value=r,!0):Reflect.set(e,n,r,s)}};function Nd(e){return so(e)?e:new Proxy(e,M2)}class $2{constructor(n){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:s}=n(()=>cm(this),()=>Ld(this));this._get=r,this._set=s}get value(){return this._get()}set value(n){this._set(n)}}function b1(e){return new $2(e)}function _1(e){const n=Ke(e)?new Array(e.length):{};for(const r in e)n[r]=E1(e,r);return n}class F2{constructor(n,r,s){this._object=n,this._key=r,this._defaultValue=s,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return u2(Kt(this._object),this._key)}}class B2{constructor(n){this._getter=n,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function x1(e,n,r){return Bn(e)?e:gt(e)?new B2(e):hn(e)&&arguments.length>1?E1(e,n,r):it(e)}function E1(e,n,r){const s=e[n];return Bn(s)?s:new F2(e,n,r)}class U2{constructor(n,r,s,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ol(n,()=>{this._dirty||(this._dirty=!0,Ld(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=s}get value(){const n=Kt(this);return cm(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function j2(e,n,r=!1){let s,a;const l=gt(e);return l?(s=e,a=kr):(s=e.get,a=e.set),new U2(s,a,l||!a,r)}function w1(e,...n){}function S1(e,n){}function oi(e,n,r,s){let a;try{a=s?e(...s):e()}catch(l){yo(l,n,r)}return a}function zr(e,n,r,s){if(gt(e)){const l=oi(e,n,r,s);return l&&nm(l)&&l.catch(o=>{yo(o,n,r)}),l}const a=[];for(let l=0;l>>1;Eu(vr[s])ii&&vr.splice(n,1)}function Md(e){Ke(e)?Wa.push(...e):(!Si||!Si.includes(e,e.allowRecurse?Vo+1:Vo))&&Wa.push(e),C1()}function Wb(e,n=xu?ii+1:0){for(;nEu(r)-Eu(s)),Vo=0;Voe.id==null?1/0:e.id,G2=(e,n)=>{const r=Eu(e)-Eu(n);if(r===0){if(e.pre&&!n.pre)return-1;if(n.pre&&!e.pre)return 1}return r};function A1(e){cg=!1,xu=!0,vr.sort(G2);const n=kr;try{for(ii=0;iiGo.emit(a,...l)),gf=[]):typeof window<"u"&&window.HTMLElement&&!((s=(r=window.navigator)==null?void 0:r.userAgent)!=null&&s.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{pm(l,n)}),setTimeout(()=>{Go||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,gf=[])},3e3)):gf=[]}function K2(e,n,...r){if(e.isUnmounted)return;const s=e.vnode.props||pn;let a=r;const l=n.startsWith("update:"),o=l&&n.slice(7);if(o&&o in s){const y=`${o==="modelValue"?"model":o}Modifiers`,{number:v,trim:_}=s[y]||pn;_&&(a=r.map(w=>Ot(w)?w.trim():w)),v&&(a=r.map(Kf))}let f,d=s[f=Qo(n)]||s[f=Qo(Un(n))];!d&&l&&(d=s[f=Qo(fs(n))]),d&&zr(d,e,6,a);const p=s[f+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,zr(p,e,6,a)}}function O1(e,n,r=!1){const s=n.emitsCache,a=s.get(e);if(a!==void 0)return a;const l=e.emits;let o={},f=!1;if(!gt(e)){const d=p=>{const y=O1(p,n,!0);y&&(f=!0,qt(o,y))};!r&&n.mixins.length&&n.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!l&&!f?(hn(e)&&s.set(e,null),null):(Ke(l)?l.forEach(d=>o[d]=null):qt(o,l),hn(e)&&s.set(e,o),o)}function $d(e,n){return!e||!ia(n)?!1:(n=n.slice(2).replace(/Once$/,""),nn(e,n[0].toLowerCase()+n.slice(1))||nn(e,fs(n))||nn(e,n))}let sr=null,Fd=null;function wu(e){const n=sr;return sr=e,Fd=e&&e.type.__scopeId||null,n}function I1(e){Fd=e}function P1(){Fd=null}const k1=e=>Pr;function Pr(e,n=sr,r){if(!n||e._n)return e;const s=(...a)=>{s._d&&qf(-1);const l=wu(n);let o;try{o=e(...a)}finally{wu(l),s._d&&qf(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Df(e){const{type:n,vnode:r,proxy:s,withProxy:a,props:l,propsOptions:[o],slots:f,attrs:d,emit:p,render:y,renderCache:v,data:_,setupState:w,ctx:T,inheritAttrs:P}=e;let M,S;const I=wu(e);try{if(r.shapeFlag&4){const R=a||s;M=cs(y.call(R,R,v,l,w,_,T)),S=d}else{const R=n;M=cs(R.length>1?R(l,{attrs:d,slots:f,emit:p}):R(l,null)),S=n.props?d:Y2(d)}}catch(R){uu.length=0,yo(R,e,1),M=vt(cr)}let B=M;if(S&&P!==!1){const R=Object.keys(S),{shapeFlag:$}=B;R.length&&$&7&&(o&&R.some(em)&&(S=X2(S,o)),B=Vs(B,S))}return r.dirs&&(B=Vs(B),B.dirs=B.dirs?B.dirs.concat(r.dirs):r.dirs),r.transition&&(B.transition=r.transition),M=B,wu(I),M}function z2(e){let n;for(let r=0;r{let n;for(const r in e)(r==="class"||r==="style"||ia(r))&&((n||(n={}))[r]=e[r]);return n},X2=(e,n)=>{const r={};for(const s in e)(!em(s)||!(s.slice(9)in n))&&(r[s]=e[s]);return r};function Q2(e,n,r){const{props:s,children:a,component:l}=e,{props:o,children:f,patchFlag:d}=n,p=l.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return s?Vb(s,o,p):!!o;if(d&8){const y=n.dynamicProps;for(let v=0;ve.__isSuspense,J2={name:"Suspense",__isSuspense:!0,process(e,n,r,s,a,l,o,f,d,p){e==null?q2(n,r,s,a,l,o,f,d,p):Z2(e,n,r,s,a,o,f,d,p)},hydrate:ek,create:gm,normalize:tk},N1=J2;function Su(e,n){const r=e.props&&e.props[n];gt(r)&&r()}function q2(e,n,r,s,a,l,o,f,d){const{p,o:{createElement:y}}=d,v=y("div"),_=e.suspense=gm(e,a,s,n,v,r,l,o,f,d);p(null,_.pendingBranch=e.ssContent,v,null,s,_,l,o),_.deps>0?(Su(e,"onPending"),Su(e,"onFallback"),p(null,e.ssFallback,n,r,s,null,l,o),Va(_,e.ssFallback)):_.resolve(!1,!0)}function Z2(e,n,r,s,a,l,o,f,{p:d,um:p,o:{createElement:y}}){const v=n.suspense=e.suspense;v.vnode=n,n.el=e.el;const _=n.ssContent,w=n.ssFallback,{activeBranch:T,pendingBranch:P,isInFallback:M,isHydrating:S}=v;if(P)v.pendingBranch=_,Hs(_,P)?(d(P,_,v.hiddenContainer,null,a,v,l,o,f),v.deps<=0?v.resolve():M&&(d(T,w,r,s,a,null,l,o,f),Va(v,w))):(v.pendingId++,S?(v.isHydrating=!1,v.activeBranch=P):p(P,a,v),v.deps=0,v.effects.length=0,v.hiddenContainer=y("div"),M?(d(null,_,v.hiddenContainer,null,a,v,l,o,f),v.deps<=0?v.resolve():(d(T,w,r,s,a,null,l,o,f),Va(v,w))):T&&Hs(_,T)?(d(T,_,r,s,a,v,l,o,f),v.resolve(!0)):(d(null,_,v.hiddenContainer,null,a,v,l,o,f),v.deps<=0&&v.resolve()));else if(T&&Hs(_,T))d(T,_,r,s,a,v,l,o,f),Va(v,_);else if(Su(n,"onPending"),v.pendingBranch=_,v.pendingId++,d(null,_,v.hiddenContainer,null,a,v,l,o,f),v.deps<=0)v.resolve();else{const{timeout:I,pendingId:B}=v;I>0?setTimeout(()=>{v.pendingId===B&&v.fallback(w)},I):I===0&&v.fallback(w)}}function gm(e,n,r,s,a,l,o,f,d,p,y=!1){const{p:v,m:_,um:w,n:T,o:{parentNode:P,remove:M}}=p;let S;const I=nk(e);I&&n!=null&&n.pendingBranch&&(S=n.pendingId,n.deps++);const B=e.props?zf(e.props.timeout):void 0,R={vnode:e,parent:n,parentComponent:r,isSVG:o,container:s,hiddenContainer:a,anchor:l,deps:0,pendingId:0,timeout:typeof B=="number"?B:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:y,isUnmounted:!1,effects:[],resolve($=!1,G=!1){const{vnode:m,activeBranch:Y,pendingBranch:j,pendingId:K,effects:re,parentComponent:pe,container:q}=R;if(R.isHydrating)R.isHydrating=!1;else if(!$){const Ee=Y&&j.transition&&j.transition.mode==="out-in";Ee&&(Y.transition.afterLeave=()=>{K===R.pendingId&&_(j,q,Ae,0)});let{anchor:Ae}=R;Y&&(Ae=T(Y),w(Y,pe,R,!0)),Ee||_(j,q,Ae,0)}Va(R,j),R.pendingBranch=null,R.isInFallback=!1;let le=R.parent,Fe=!1;for(;le;){if(le.pendingBranch){le.effects.push(...re),Fe=!0;break}le=le.parent}Fe||Md(re),R.effects=[],I&&n&&n.pendingBranch&&S===n.pendingId&&(n.deps--,n.deps===0&&!G&&n.resolve()),Su(m,"onResolve")},fallback($){if(!R.pendingBranch)return;const{vnode:G,activeBranch:m,parentComponent:Y,container:j,isSVG:K}=R;Su(G,"onFallback");const re=T(m),pe=()=>{!R.isInFallback||(v(null,$,j,re,Y,null,K,f,d),Va(R,$))},q=$.transition&&$.transition.mode==="out-in";q&&(m.transition.afterLeave=pe),R.isInFallback=!0,w(m,Y,null,!0),q||pe()},move($,G,m){R.activeBranch&&_(R.activeBranch,$,G,m),R.container=$},next(){return R.activeBranch&&T(R.activeBranch)},registerDep($,G){const m=!!R.pendingBranch;m&&R.deps++;const Y=$.vnode.el;$.asyncDep.catch(j=>{yo(j,$,0)}).then(j=>{if($.isUnmounted||R.isUnmounted||R.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:K}=$;vg($,j,!1),Y&&(K.el=Y);const re=!Y&&$.subTree.el;G($,K,P(Y||$.subTree.el),Y?null:T($.subTree),R,o,d),re&&M(re),hm($,K.el),m&&--R.deps===0&&R.resolve()})},unmount($,G){R.isUnmounted=!0,R.activeBranch&&w(R.activeBranch,r,$,G),R.pendingBranch&&w(R.pendingBranch,r,$,G)}};return R}function ek(e,n,r,s,a,l,o,f,d){const p=n.suspense=gm(n,s,r,e.parentNode,document.createElement("div"),null,a,l,o,f,!0),y=d(e,p.pendingBranch=n.ssContent,r,p,l,o);return p.deps===0&&p.resolve(!1,!0),y}function tk(e){const{shapeFlag:n,children:r}=e,s=n&32;e.ssContent=Gb(s?r.default:r),e.ssFallback=s?Gb(r.fallback):vt(cr)}function Gb(e){let n;if(gt(e)){const r=na&&e._c;r&&(e._d=!1,xe()),e=e(),r&&(e._d=!0,n=Gr,_x())}return Ke(e)&&(e=z2(e)),e=cs(e),n&&!e.dynamicChildren&&(e.dynamicChildren=n.filter(r=>r!==e)),e}function R1(e,n){n&&n.pendingBranch?Ke(e)?n.effects.push(...e):n.effects.push(e):Md(e)}function Va(e,n){e.activeBranch=n;const{vnode:r,parentComponent:s}=e,a=r.el=n.el;s&&s.subTree===r&&(s.vnode.el=a,hm(s,a))}function nk(e){var n;return((n=e.props)==null?void 0:n.suspensible)!=null&&e.props.suspensible!==!1}function D1(e,n){return $u(e,null,n)}function mm(e,n){return $u(e,null,{flush:"post"})}function M1(e,n){return $u(e,null,{flush:"sync"})}const mf={};function Yr(e,n,r){return $u(e,n,r)}function $u(e,n,{immediate:r,deep:s,flush:a,onTrack:l,onTrigger:o}=pn){var f;const d=Sd()===((f=Wn)==null?void 0:f.scope)?Wn:null;let p,y=!1,v=!1;if(Bn(e)?(p=()=>e.value,y=Ya(e)):so(e)?(p=()=>e,s=!0):Ke(e)?(v=!0,y=e.some(R=>so(R)||Ya(R)),p=()=>e.map(R=>{if(Bn(R))return R.value;if(so(R))return zo(R);if(gt(R))return oi(R,d,2)})):gt(e)?n?p=()=>oi(e,d,2):p=()=>{if(!(d&&d.isUnmounted))return _&&_(),zr(e,d,3,[w])}:p=kr,n&&s){const R=p;p=()=>zo(R())}let _,w=R=>{_=I.onStop=()=>{oi(R,d,4)}},T;if(Xa)if(w=kr,n?r&&zr(n,d,3,[p(),v?[]:void 0,w]):p(),a==="sync"){const R=Fm();T=R.__watcherHandles||(R.__watcherHandles=[])}else return kr;let P=v?new Array(e.length).fill(mf):mf;const M=()=>{if(!!I.active)if(n){const R=I.run();(s||y||(v?R.some(($,G)=>za($,P[G])):za(R,P)))&&(_&&_(),zr(n,d,3,[R,P===mf?void 0:v&&P[0]===mf?[]:P,w]),P=R)}else I.run()};M.allowRecurse=!!n;let S;a==="sync"?S=M:a==="post"?S=()=>ur(M,d&&d.suspense):(M.pre=!0,d&&(M.id=d.uid),S=()=>Dd(M));const I=new ol(p,S);n?r?M():P=I.run():a==="post"?ur(I.run.bind(I),d&&d.suspense):I.run();const B=()=>{I.stop(),d&&d.scope&&tm(d.scope.effects,I)};return T&&T.push(B),B}function rk(e,n,r){const s=this.proxy,a=Ot(e)?e.includes(".")?$1(s,e):()=>s[e]:e.bind(s,s);let l;gt(n)?l=n:(l=n.handler,r=n);const o=Wn;ho(this);const f=$u(a,l.bind(s),r);return o?ho(o):oo(),f}function $1(e,n){const r=n.split(".");return()=>{let s=e;for(let a=0;a{zo(r,n)});else if(X0(e))for(const r in e)zo(e[r],n);return e}function on(e,n){const r=sr;if(r===null)return e;const s=Gd(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0}),ju(()=>{e.isUnmounting=!0}),e}const ws=[Function,Array],Ud={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ws,onEnter:ws,onAfterEnter:ws,onEnterCancelled:ws,onBeforeLeave:ws,onLeave:ws,onAfterLeave:ws,onLeaveCancelled:ws,onBeforeAppear:ws,onAppear:ws,onAfterAppear:ws,onAppearCancelled:ws},sk={name:"BaseTransition",props:Ud,setup(e,{slots:n}){const r=Nr(),s=Bd();let a;return()=>{const l=n.default&&Fu(n.default(),!0);if(!l||!l.length)return;let o=l[0];if(l.length>1){for(const P of l)if(P.type!==cr){o=P;break}}const f=Kt(e),{mode:d}=f;if(s.isLeaving)return Rh(o);const p=Kb(o);if(!p)return Rh(o);const y=ta(p,f,s,r);po(p,y);const v=r.subTree,_=v&&Kb(v);let w=!1;const{getTransitionKey:T}=p.type;if(T){const P=T();a===void 0?a=P:P!==a&&(a=P,w=!0)}if(_&&_.type!==cr&&(!Hs(p,_)||w)){const P=ta(_,f,s,r);if(po(_,P),d==="out-in")return s.isLeaving=!0,P.afterLeave=()=>{s.isLeaving=!1,r.update.active!==!1&&r.update()},Rh(o);d==="in-out"&&p.type!==cr&&(P.delayLeave=(M,S,I)=>{const B=F1(s,_);B[String(_.key)]=_,M._leaveCb=()=>{S(),M._leaveCb=void 0,delete y.delayedLeave},y.delayedLeave=I})}return o}}},vm=sk;function F1(e,n){const{leavingVNodes:r}=e;let s=r.get(n.type);return s||(s=Object.create(null),r.set(n.type,s)),s}function ta(e,n,r,s){const{appear:a,mode:l,persisted:o=!1,onBeforeEnter:f,onEnter:d,onAfterEnter:p,onEnterCancelled:y,onBeforeLeave:v,onLeave:_,onAfterLeave:w,onLeaveCancelled:T,onBeforeAppear:P,onAppear:M,onAfterAppear:S,onAppearCancelled:I}=n,B=String(e.key),R=F1(r,e),$=(Y,j)=>{Y&&zr(Y,s,9,j)},G=(Y,j)=>{const K=j[1];$(Y,j),Ke(Y)?Y.every(re=>re.length<=1)&&K():Y.length<=1&&K()},m={mode:l,persisted:o,beforeEnter(Y){let j=f;if(!r.isMounted)if(a)j=P||f;else return;Y._leaveCb&&Y._leaveCb(!0);const K=R[B];K&&Hs(e,K)&&K.el._leaveCb&&K.el._leaveCb(),$(j,[Y])},enter(Y){let j=d,K=p,re=y;if(!r.isMounted)if(a)j=M||d,K=S||p,re=I||y;else return;let pe=!1;const q=Y._enterCb=le=>{pe||(pe=!0,le?$(re,[Y]):$(K,[Y]),m.delayedLeave&&m.delayedLeave(),Y._enterCb=void 0)};j?G(j,[Y,q]):q()},leave(Y,j){const K=String(e.key);if(Y._enterCb&&Y._enterCb(!0),r.isUnmounting)return j();$(v,[Y]);let re=!1;const pe=Y._leaveCb=q=>{re||(re=!0,j(),q?$(T,[Y]):$(w,[Y]),Y._leaveCb=void 0,R[K]===e&&delete R[K])};R[K]=e,_?G(_,[Y,pe]):pe()},clone(Y){return ta(Y,n,r,s)}};return m}function Rh(e){if(Bu(e))return e=Vs(e),e.children=null,e}function Kb(e){return Bu(e)?e.children?e.children[0]:void 0:e}function po(e,n){e.shapeFlag&6&&e.component?po(e.component.subTree,n):e.shapeFlag&128?(e.ssContent.transition=n.clone(e.ssContent),e.ssFallback.transition=n.clone(e.ssFallback)):e.transition=n}function Fu(e,n=!1,r){let s=[],a=0;for(let l=0;l1)for(let l=0;lqt({name:e.name},n,{setup:e}))():e}const qo=e=>!!e.type.__asyncLoader;function B1(e){gt(e)&&(e={loader:e});const{loader:n,loadingComponent:r,errorComponent:s,delay:a=200,timeout:l,suspensible:o=!0,onError:f}=e;let d=null,p,y=0;const v=()=>(y++,d=null,_()),_=()=>{let w;return d||(w=d=n().catch(T=>{if(T=T instanceof Error?T:new Error(String(T)),f)return new Promise((P,M)=>{f(T,()=>P(v()),()=>M(T),y+1)});throw T}).then(T=>w!==d&&d?d:(T&&(T.__esModule||T[Symbol.toStringTag]==="Module")&&(T=T.default),p=T,T)))};return jd({name:"AsyncComponentWrapper",__asyncLoader:_,get __asyncResolved(){return p},setup(){const w=Wn;if(p)return()=>Dh(p,w);const T=I=>{d=null,yo(I,w,13,!s)};if(o&&w.suspense||Xa)return _().then(I=>()=>Dh(I,w)).catch(I=>(T(I),()=>s?vt(s,{error:I}):null));const P=it(!1),M=it(),S=it(!!a);return a&&setTimeout(()=>{S.value=!1},a),l!=null&&setTimeout(()=>{if(!P.value&&!M.value){const I=new Error(`Async component timed out after ${l}ms.`);T(I),M.value=I}},l),_().then(()=>{P.value=!0,w.parent&&Bu(w.parent.vnode)&&Dd(w.parent.update)}).catch(I=>{T(I),M.value=I}),()=>{if(P.value&&p)return Dh(p,w);if(M.value&&s)return vt(s,{error:M.value});if(r&&!S.value)return vt(r)}}})}function Dh(e,n){const{ref:r,props:s,children:a,ce:l}=n.vnode,o=vt(e,s,a);return o.ref=r,o.ce=l,delete n.vnode.ce,o}const Bu=e=>e.type.__isKeepAlive,ik={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:n}){const r=Nr(),s=r.ctx;if(!s.renderer)return()=>{const I=n.default&&n.default();return I&&I.length===1?I[0]:I};const a=new Map,l=new Set;let o=null;const f=r.suspense,{renderer:{p:d,m:p,um:y,o:{createElement:v}}}=s,_=v("div");s.activate=(I,B,R,$,G)=>{const m=I.component;p(I,B,R,0,f),d(m.vnode,I,B,R,m,f,$,I.slotScopeIds,G),ur(()=>{m.isDeactivated=!1,m.a&&Ha(m.a);const Y=I.props&&I.props.onVnodeMounted;Y&&Vr(Y,m.parent,I)},f)},s.deactivate=I=>{const B=I.component;p(I,_,null,1,f),ur(()=>{B.da&&Ha(B.da);const R=I.props&&I.props.onVnodeUnmounted;R&&Vr(R,B.parent,I),B.isDeactivated=!0},f)};function w(I){Mh(I),y(I,r,f,!0)}function T(I){a.forEach((B,R)=>{const $=bg(B.type);$&&(!I||!I($))&&P(R)})}function P(I){const B=a.get(I);!o||!Hs(B,o)?w(B):o&&Mh(o),a.delete(I),l.delete(I)}Yr(()=>[e.include,e.exclude],([I,B])=>{I&&T(R=>eu(I,R)),B&&T(R=>!eu(B,R))},{flush:"post",deep:!0});let M=null;const S=()=>{M!=null&&a.set(M,$h(r.subTree))};return aa(S),Uu(S),ju(()=>{a.forEach(I=>{const{subTree:B,suspense:R}=r,$=$h(B);if(I.type===$.type&&I.key===$.key){Mh($);const G=$.component.da;G&&ur(G,R);return}w(I)})}),()=>{if(M=null,!n.default)return null;const I=n.default(),B=I[0];if(I.length>1)return o=null,I;if(!Pi(B)||!(B.shapeFlag&4)&&!(B.shapeFlag&128))return o=null,B;let R=$h(B);const $=R.type,G=bg(qo(R)?R.type.__asyncResolved||{}:$),{include:m,exclude:Y,max:j}=e;if(m&&(!G||!eu(m,G))||Y&&G&&eu(Y,G))return o=R,B;const K=R.key==null?$:R.key,re=a.get(K);return R.el&&(R=Vs(R),B.shapeFlag&128&&(B.ssContent=R)),M=K,re?(R.el=re.el,R.component=re.component,R.transition&&po(R,R.transition),R.shapeFlag|=512,l.delete(K),l.add(K)):(l.add(K),j&&l.size>parseInt(j,10)&&P(l.values().next().value)),R.shapeFlag|=256,o=R,L1(B.type)?B:R}}},U1=ik;function eu(e,n){return Ke(e)?e.some(r=>eu(r,n)):Ot(e)?e.split(",").includes(n):HP(e)?e.test(n):!1}function ym(e,n){j1(e,"a",n)}function bm(e,n){j1(e,"da",n)}function j1(e,n,r=Wn){const s=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Hd(n,s,r),r){let a=r.parent;for(;a&&a.parent;)Bu(a.parent.vnode)&&ok(s,n,r,a),a=a.parent}}function ok(e,n,r,s){const a=Hd(n,e,s,!0);ul(()=>{tm(s[n],a)},r)}function Mh(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function $h(e){return e.shapeFlag&128?e.ssContent:e}function Hd(e,n,r=Wn,s=!1){if(r){const a=r[e]||(r[e]=[]),l=n.__weh||(n.__weh=(...o)=>{if(r.isUnmounted)return;al(),ho(r);const f=zr(n,r,e,o);return oo(),ll(),f});return s?a.unshift(l):a.push(l),l}}const ki=e=>(n,r=Wn)=>(!Xa||e==="sp")&&Hd(e,(...s)=>n(...s),r),Wd=ki("bm"),aa=ki("m"),_m=ki("bu"),Uu=ki("u"),ju=ki("bum"),ul=ki("um"),xm=ki("sp"),Em=ki("rtg"),wm=ki("rtc");function Sm(e,n=Wn){Hd("ec",e,n)}const Tm="components",ak="directives";function rn(e,n){return Cm(Tm,e,!0,n)||e}const H1=Symbol.for("v-ndc");function W1(e){return Ot(e)?Cm(Tm,e,!1)||e:e||H1}function V1(e){return Cm(ak,e)}function Cm(e,n,r=!0,s=!1){const a=sr||Wn;if(a){const l=a.type;if(e===Tm){const f=bg(l,!1);if(f&&(f===n||f===Un(n)||f===vo(Un(n))))return l}const o=zb(a[e]||l[e],n)||zb(a.appContext[e],n);return!o&&s?l:o}}function zb(e,n){return e&&(e[n]||e[Un(n)]||e[vo(Un(n))])}function Lr(e,n,r,s){let a;const l=r&&r[s];if(Ke(e)||Ot(e)){a=new Array(e.length);for(let o=0,f=e.length;on(o,f,void 0,l&&l[f]));else{const o=Object.keys(e);a=new Array(o.length);for(let f=0,d=o.length;f{const l=s.fn(...a);return l&&(l.key=s.key),l}:s.fn)}return e}function Hu(e,n,r={},s,a){if(sr.isCE||sr.parent&&qo(sr.parent)&&sr.parent.isCE)return n!=="default"&&(r.name=n),vt("slot",r,s&&s());let l=e[n];l&&l._c&&(l._d=!1),xe();const o=l&&K1(l(r)),f=In(Xt,{key:r.key||o&&o.key||`_${n}`},o||(s?s():[]),o&&e._===1?64:-2);return!a&&f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),l&&l._c&&(l._d=!0),f}function K1(e){return e.some(n=>Pi(n)?!(n.type===cr||n.type===Xt&&!K1(n.children)):!0)?e:null}function z1(e,n){const r={};for(const s in e)r[n&&/[A-Z]/.test(s)?`on:${s}`:Qo(s)]=e[s];return r}const fg=e=>e?Cx(e)?Gd(e)||e.proxy:fg(e.parent):null,au=qt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fg(e.parent),$root:e=>fg(e.root),$emit:e=>e.emit,$options:e=>Am(e),$forceUpdate:e=>e.f||(e.f=()=>Dd(e.update)),$nextTick:e=>e.n||(e.n=Rd.bind(e.proxy)),$watch:e=>rk.bind(e)}),Fh=(e,n)=>e!==pn&&!e.__isScriptSetup&&nn(e,n),dg={get({_:e},n){const{ctx:r,setupState:s,data:a,props:l,accessCache:o,type:f,appContext:d}=e;let p;if(n[0]!=="$"){const w=o[n];if(w!==void 0)switch(w){case 1:return s[n];case 2:return a[n];case 4:return r[n];case 3:return l[n]}else{if(Fh(s,n))return o[n]=1,s[n];if(a!==pn&&nn(a,n))return o[n]=2,a[n];if((p=e.propsOptions[0])&&nn(p,n))return o[n]=3,l[n];if(r!==pn&&nn(r,n))return o[n]=4,r[n];pg&&(o[n]=0)}}const y=au[n];let v,_;if(y)return n==="$attrs"&&Qr(e,"get",n),y(e);if((v=f.__cssModules)&&(v=v[n]))return v;if(r!==pn&&nn(r,n))return o[n]=4,r[n];if(_=d.config.globalProperties,nn(_,n))return _[n]},set({_:e},n,r){const{data:s,setupState:a,ctx:l}=e;return Fh(a,n)?(a[n]=r,!0):s!==pn&&nn(s,n)?(s[n]=r,!0):nn(e.props,n)||n[0]==="$"&&n.slice(1)in e?!1:(l[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:s,appContext:a,propsOptions:l}},o){let f;return!!r[o]||e!==pn&&nn(e,o)||Fh(n,o)||(f=l[0])&&nn(f,o)||nn(s,o)||nn(au,o)||nn(a.config.globalProperties,o)},defineProperty(e,n,r){return r.get!=null?e._.accessCache[n]=0:nn(r,"value")&&this.set(e,n,r.value,null),Reflect.defineProperty(e,n,r)}},lk=qt({},dg,{get(e,n){if(n!==Symbol.unscopables)return dg.get(e,n,e)},has(e,n){return n[0]!=="_"&&!YP(n)}});function Y1(){return null}function X1(){return null}function Q1(e){}function J1(e){}function q1(){return null}function Z1(){}function ex(e,n){return null}function tx(){return sx().slots}function nx(){return sx().attrs}function rx(e,n,r){const s=Nr();if(r&&r.local){const a=it(e[n]);return Yr(()=>e[n],l=>a.value=l),Yr(a,l=>{l!==e[n]&&s.emit(`update:${n}`,l)}),a}else return{__v_isRef:!0,get value(){return e[n]},set value(a){s.emit(`update:${n}`,a)}}}function sx(){const e=Nr();return e.setupContext||(e.setupContext=Px(e))}function Tu(e){return Ke(e)?e.reduce((n,r)=>(n[r]=null,n),{}):e}function ix(e,n){const r=Tu(e);for(const s in n){if(s.startsWith("__skip"))continue;let a=r[s];a?Ke(a)||gt(a)?a=r[s]={type:a,default:n[s]}:a.default=n[s]:a===null&&(a=r[s]={default:n[s]}),a&&n[`__skip_${s}`]&&(a.skipFactory=!0)}return r}function ox(e,n){return!e||!n?e||n:Ke(e)&&Ke(n)?e.concat(n):qt({},Tu(e),Tu(n))}function ax(e,n){const r={};for(const s in e)n.includes(s)||Object.defineProperty(r,s,{enumerable:!0,get:()=>e[s]});return r}function lx(e){const n=Nr();let r=e();return oo(),nm(r)&&(r=r.catch(s=>{throw ho(n),s})),[r,()=>ho(n)]}let pg=!0;function uk(e){const n=Am(e),r=e.proxy,s=e.ctx;pg=!1,n.beforeCreate&&Yb(n.beforeCreate,e,"bc");const{data:a,computed:l,methods:o,watch:f,provide:d,inject:p,created:y,beforeMount:v,mounted:_,beforeUpdate:w,updated:T,activated:P,deactivated:M,beforeDestroy:S,beforeUnmount:I,destroyed:B,unmounted:R,render:$,renderTracked:G,renderTriggered:m,errorCaptured:Y,serverPrefetch:j,expose:K,inheritAttrs:re,components:pe,directives:q,filters:le}=n;if(p&&ck(p,s,null),o)for(const Ae in o){const $e=o[Ae];gt($e)&&(s[Ae]=$e.bind(r))}if(a){const Ae=a.call(r,r);hn(Ae)&&(e.data=Du(Ae))}if(pg=!0,l)for(const Ae in l){const $e=l[Ae],tt=gt($e)?$e.bind(r,r):gt($e.get)?$e.get.bind(r,r):kr,Rt=!gt($e)&>($e.set)?$e.set.bind(r):kr,ot=Jn({get:tt,set:Rt});Object.defineProperty(s,Ae,{enumerable:!0,configurable:!0,get:()=>ot.value,set:mt=>ot.value=mt})}if(f)for(const Ae in f)ux(f[Ae],s,r,Ae);if(d){const Ae=gt(d)?d.call(r):d;Reflect.ownKeys(Ae).forEach($e=>{Ci($e,Ae[$e])})}y&&Yb(y,e,"c");function Ee(Ae,$e){Ke($e)?$e.forEach(tt=>Ae(tt.bind(r))):$e&&Ae($e.bind(r))}if(Ee(Wd,v),Ee(aa,_),Ee(_m,w),Ee(Uu,T),Ee(ym,P),Ee(bm,M),Ee(Sm,Y),Ee(wm,G),Ee(Em,m),Ee(ju,I),Ee(ul,R),Ee(xm,j),Ke(K))if(K.length){const Ae=e.exposed||(e.exposed={});K.forEach($e=>{Object.defineProperty(Ae,$e,{get:()=>r[$e],set:tt=>r[$e]=tt})})}else e.exposed||(e.exposed={});$&&e.render===kr&&(e.render=$),re!=null&&(e.inheritAttrs=re),pe&&(e.components=pe),q&&(e.directives=q)}function ck(e,n,r=kr){Ke(e)&&(e=hg(e));for(const s in e){const a=e[s];let l;hn(a)?"default"in a?l=vn(a.from||s,a.default,!0):l=vn(a.from||s):l=vn(a),Bn(l)?Object.defineProperty(n,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):n[s]=l}}function Yb(e,n,r){zr(Ke(e)?e.map(s=>s.bind(n.proxy)):e.bind(n.proxy),n,r)}function ux(e,n,r,s){const a=s.includes(".")?$1(r,s):()=>r[s];if(Ot(e)){const l=n[e];gt(l)&&Yr(a,l)}else if(gt(e))Yr(a,e.bind(r));else if(hn(e))if(Ke(e))e.forEach(l=>ux(l,n,r,s));else{const l=gt(e.handler)?e.handler.bind(r):n[e.handler];gt(l)&&Yr(a,l,e)}}function Am(e){const n=e.type,{mixins:r,extends:s}=n,{mixins:a,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,f=l.get(n);let d;return f?d=f:!a.length&&!r&&!s?d=n:(d={},a.length&&a.forEach(p=>Qf(d,p,o,!0)),Qf(d,n,o)),hn(n)&&l.set(n,d),d}function Qf(e,n,r,s=!1){const{mixins:a,extends:l}=n;l&&Qf(e,l,r,!0),a&&a.forEach(o=>Qf(e,o,r,!0));for(const o in n)if(!(s&&o==="expose")){const f=fk[o]||r&&r[o];e[o]=f?f(e[o],n[o]):n[o]}return e}const fk={data:Xb,props:Qb,emits:Qb,methods:tu,computed:tu,beforeCreate:Ar,created:Ar,beforeMount:Ar,mounted:Ar,beforeUpdate:Ar,updated:Ar,beforeDestroy:Ar,beforeUnmount:Ar,destroyed:Ar,unmounted:Ar,activated:Ar,deactivated:Ar,errorCaptured:Ar,serverPrefetch:Ar,components:tu,directives:tu,watch:pk,provide:Xb,inject:dk};function Xb(e,n){return n?e?function(){return qt(gt(e)?e.call(this,this):e,gt(n)?n.call(this,this):n)}:n:e}function dk(e,n){return tu(hg(e),hg(n))}function hg(e){if(Ke(e)){const n={};for(let r=0;r1)return r&>(n)?n.call(s&&s.proxy):n}}function fx(){return!!(Wn||sr||Cu)}function mk(e,n,r,s=!1){const a={},l={};Gf(l,Vd,1),e.propsDefaults=Object.create(null),dx(e,n,a,l);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=s?a:lm(a):e.type.props?e.props=a:e.props=l,e.attrs=l}function vk(e,n,r,s){const{props:a,attrs:l,vnode:{patchFlag:o}}=e,f=Kt(a),[d]=e.propsOptions;let p=!1;if((s||o>0)&&!(o&16)){if(o&8){const y=e.vnode.dynamicProps;for(let v=0;v{d=!0;const[_,w]=px(v,n,!0);qt(o,_),w&&f.push(...w)};!r&&n.mixins.length&&n.mixins.forEach(y),e.extends&&y(e.extends),e.mixins&&e.mixins.forEach(y)}if(!l&&!d)return hn(e)&&s.set(e,Ua),Ua;if(Ke(l))for(let y=0;y-1,w[1]=P<0||T-1||nn(w,"default"))&&f.push(v)}}}const p=[o,f];return hn(e)&&s.set(e,p),p}function Jb(e){return e[0]!=="$"}function qb(e){const n=e&&e.toString().match(/^\s*(function|class) (\w+)/);return n?n[2]:e===null?"null":""}function Zb(e,n){return qb(e)===qb(n)}function e_(e,n){return Ke(n)?n.findIndex(r=>Zb(r,e)):gt(n)&&Zb(n,e)?0:-1}const hx=e=>e[0]==="_"||e==="$stable",Om=e=>Ke(e)?e.map(cs):[cs(e)],yk=(e,n,r)=>{if(n._n)return n;const s=Pr((...a)=>Om(n(...a)),r);return s._c=!1,s},gx=(e,n,r)=>{const s=e._ctx;for(const a in e){if(hx(a))continue;const l=e[a];if(gt(l))n[a]=yk(a,l,s);else if(l!=null){const o=Om(l);n[a]=()=>o}}},mx=(e,n)=>{const r=Om(n);e.slots.default=()=>r},bk=(e,n)=>{if(e.vnode.shapeFlag&32){const r=n._;r?(e.slots=Kt(n),Gf(n,"_",r)):gx(n,e.slots={})}else e.slots={},n&&mx(e,n);Gf(e.slots,Vd,1)},_k=(e,n,r)=>{const{vnode:s,slots:a}=e;let l=!0,o=pn;if(s.shapeFlag&32){const f=n._;f?r&&f===1?l=!1:(qt(a,n),!r&&f===1&&delete a._):(l=!n.$stable,gx(n,a)),o=n}else n&&(mx(e,n),o={default:1});if(l)for(const f in a)!hx(f)&&!(f in o)&&delete a[f]};function Jf(e,n,r,s,a=!1){if(Ke(e)){e.forEach((_,w)=>Jf(_,n&&(Ke(n)?n[w]:n),r,s,a));return}if(qo(s)&&!a)return;const l=s.shapeFlag&4?Gd(s.component)||s.component.proxy:s.el,o=a?null:l,{i:f,r:d}=e,p=n&&n.r,y=f.refs===pn?f.refs={}:f.refs,v=f.setupState;if(p!=null&&p!==d&&(Ot(p)?(y[p]=null,nn(v,p)&&(v[p]=null)):Bn(p)&&(p.value=null)),gt(d))oi(d,f,12,[o,y]);else{const _=Ot(d),w=Bn(d);if(_||w){const T=()=>{if(e.f){const P=_?nn(v,d)?v[d]:y[d]:d.value;a?Ke(P)&&tm(P,l):Ke(P)?P.includes(l)||P.push(l):_?(y[d]=[l],nn(v,d)&&(v[d]=y[d])):(d.value=[l],e.k&&(y[e.k]=d.value))}else _?(y[d]=o,nn(v,d)&&(v[d]=o)):w&&(d.value=o,e.k&&(y[e.k]=o))};o?(T.id=-1,ur(T,r)):T()}}}let Yi=!1;const vf=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",yf=e=>e.nodeType===8;function xk(e){const{mt:n,p:r,o:{patchProp:s,createText:a,nextSibling:l,parentNode:o,remove:f,insert:d,createComment:p}}=e,y=(S,I)=>{if(!I.hasChildNodes()){r(null,S,I),Xf(),I._vnode=S;return}Yi=!1,v(I.firstChild,S,null,null,null),Xf(),I._vnode=S,Yi&&console.error("Hydration completed but contains mismatches.")},v=(S,I,B,R,$,G=!1)=>{const m=yf(S)&&S.data==="[",Y=()=>P(S,I,B,R,$,m),{type:j,ref:K,shapeFlag:re,patchFlag:pe}=I;let q=S.nodeType;I.el=S,pe===-2&&(G=!1,I.dynamicChildren=null);let le=null;switch(j){case Ii:q!==3?I.children===""?(d(I.el=a(""),o(S),S),le=S):le=Y():(S.data!==I.children&&(Yi=!0,S.data=I.children),le=l(S));break;case cr:q!==8||m?le=Y():le=l(S);break;case io:if(m&&(S=l(S),q=S.nodeType),q===1||q===3){le=S;const Fe=!I.children.length;for(let Ee=0;Ee{G=G||!!I.dynamicChildren;const{type:m,props:Y,patchFlag:j,shapeFlag:K,dirs:re}=I,pe=m==="input"&&re||m==="option";if(pe||j!==-1){if(re&&ri(I,null,B,"created"),Y)if(pe||!G||j&48)for(const le in Y)(pe&&le.endsWith("value")||ia(le)&&!Xo(le))&&s(S,le,null,Y[le],!1,void 0,B);else Y.onClick&&s(S,"onClick",null,Y.onClick,!1,void 0,B);let q;if((q=Y&&Y.onVnodeBeforeMount)&&Vr(q,B,I),re&&ri(I,null,B,"beforeMount"),((q=Y&&Y.onVnodeMounted)||re)&&R1(()=>{q&&Vr(q,B,I),re&&ri(I,null,B,"mounted")},R),K&16&&!(Y&&(Y.innerHTML||Y.textContent))){let le=w(S.firstChild,I,S,B,R,$,G);for(;le;){Yi=!0;const Fe=le;le=le.nextSibling,f(Fe)}}else K&8&&S.textContent!==I.children&&(Yi=!0,S.textContent=I.children)}return S.nextSibling},w=(S,I,B,R,$,G,m)=>{m=m||!!I.dynamicChildren;const Y=I.children,j=Y.length;for(let K=0;K{const{slotScopeIds:m}=I;m&&($=$?$.concat(m):m);const Y=o(S),j=w(l(S),I,Y,B,R,$,G);return j&&yf(j)&&j.data==="]"?l(I.anchor=j):(Yi=!0,d(I.anchor=p("]"),Y,j),j)},P=(S,I,B,R,$,G)=>{if(Yi=!0,I.el=null,G){const j=M(S);for(;;){const K=l(S);if(K&&K!==j)f(K);else break}}const m=l(S),Y=o(S);return f(S),r(null,I,Y,m,B,R,vf(Y),$),m},M=S=>{let I=0;for(;S;)if(S=l(S),S&&yf(S)&&(S.data==="["&&I++,S.data==="]")){if(I===0)return l(S);I--}return S};return[y,v]}const ur=R1;function Im(e){return vx(e)}function Pm(e){return vx(e,xk)}function vx(e,n){const r=og();r.__VUE__=!0;const{insert:s,remove:a,patchProp:l,createElement:o,createText:f,createComment:d,setText:p,setElementText:y,parentNode:v,nextSibling:_,setScopeId:w=kr,insertStaticContent:T}=e,P=(X,L,N,z=null,se=null,ae=null,Ce=!1,Re=null,Le=!!L.dynamicChildren)=>{if(X===L)return;X&&!Hs(X,L)&&(z=Lt(X),mt(X,se,ae,!0),X=null),L.patchFlag===-2&&(Le=!1,L.dynamicChildren=null);const{type:_e,ref:oe,shapeFlag:he}=L;switch(_e){case Ii:M(X,L,N,z);break;case cr:S(X,L,N,z);break;case io:X==null&&I(L,N,z,Ce);break;case Xt:pe(X,L,N,z,se,ae,Ce,Re,Le);break;default:he&1?$(X,L,N,z,se,ae,Ce,Re,Le):he&6?q(X,L,N,z,se,ae,Ce,Re,Le):(he&64||he&128)&&_e.process(X,L,N,z,se,ae,Ce,Re,Le,It)}oe!=null&&se&&Jf(oe,X&&X.ref,ae,L||X,!L)},M=(X,L,N,z)=>{if(X==null)s(L.el=f(L.children),N,z);else{const se=L.el=X.el;L.children!==X.children&&p(se,L.children)}},S=(X,L,N,z)=>{X==null?s(L.el=d(L.children||""),N,z):L.el=X.el},I=(X,L,N,z)=>{[X.el,X.anchor]=T(X.children,L,N,z,X.el,X.anchor)},B=({el:X,anchor:L},N,z)=>{let se;for(;X&&X!==L;)se=_(X),s(X,N,z),X=se;s(L,N,z)},R=({el:X,anchor:L})=>{let N;for(;X&&X!==L;)N=_(X),a(X),X=N;a(L)},$=(X,L,N,z,se,ae,Ce,Re,Le)=>{Ce=Ce||L.type==="svg",X==null?G(L,N,z,se,ae,Ce,Re,Le):j(X,L,se,ae,Ce,Re,Le)},G=(X,L,N,z,se,ae,Ce,Re)=>{let Le,_e;const{type:oe,props:he,shapeFlag:je,transition:we,dirs:Je}=X;if(Le=X.el=o(X.type,ae,he&&he.is,he),je&8?y(Le,X.children):je&16&&Y(X.children,Le,null,z,se,ae&&oe!=="foreignObject",Ce,Re),Je&&ri(X,null,z,"created"),m(Le,X,X.scopeId,Ce,z),he){for(const ut in he)ut!=="value"&&!Xo(ut)&&l(Le,ut,null,he[ut],ae,X.children,z,se,dt);"value"in he&&l(Le,"value",null,he.value),(_e=he.onVnodeBeforeMount)&&Vr(_e,z,X)}Je&&ri(X,null,z,"beforeMount");const yt=(!se||se&&!se.pendingBranch)&&we&&!we.persisted;yt&&we.beforeEnter(Le),s(Le,L,N),((_e=he&&he.onVnodeMounted)||yt||Je)&&ur(()=>{_e&&Vr(_e,z,X),yt&&we.enter(Le),Je&&ri(X,null,z,"mounted")},se)},m=(X,L,N,z,se)=>{if(N&&w(X,N),z)for(let ae=0;ae{for(let _e=Le;_e{const Re=L.el=X.el;let{patchFlag:Le,dynamicChildren:_e,dirs:oe}=L;Le|=X.patchFlag&16;const he=X.props||pn,je=L.props||pn;let we;N&&Fo(N,!1),(we=je.onVnodeBeforeUpdate)&&Vr(we,N,L,X),oe&&ri(L,X,N,"beforeUpdate"),N&&Fo(N,!0);const Je=se&&L.type!=="foreignObject";if(_e?K(X.dynamicChildren,_e,Re,N,z,Je,ae):Ce||$e(X,L,Re,null,N,z,Je,ae,!1),Le>0){if(Le&16)re(Re,L,he,je,N,z,se);else if(Le&2&&he.class!==je.class&&l(Re,"class",null,je.class,se),Le&4&&l(Re,"style",he.style,je.style,se),Le&8){const yt=L.dynamicProps;for(let ut=0;ut{we&&Vr(we,N,L,X),oe&&ri(L,X,N,"updated")},z)},K=(X,L,N,z,se,ae,Ce)=>{for(let Re=0;Re{if(N!==z){if(N!==pn)for(const Re in N)!Xo(Re)&&!(Re in z)&&l(X,Re,N[Re],null,Ce,L.children,se,ae,dt);for(const Re in z){if(Xo(Re))continue;const Le=z[Re],_e=N[Re];Le!==_e&&Re!=="value"&&l(X,Re,_e,Le,Ce,L.children,se,ae,dt)}"value"in z&&l(X,"value",N.value,z.value)}},pe=(X,L,N,z,se,ae,Ce,Re,Le)=>{const _e=L.el=X?X.el:f(""),oe=L.anchor=X?X.anchor:f("");let{patchFlag:he,dynamicChildren:je,slotScopeIds:we}=L;we&&(Re=Re?Re.concat(we):we),X==null?(s(_e,N,z),s(oe,N,z),Y(L.children,N,oe,se,ae,Ce,Re,Le)):he>0&&he&64&&je&&X.dynamicChildren?(K(X.dynamicChildren,je,N,se,ae,Ce,Re),(L.key!=null||se&&L===se.subTree)&&km(X,L,!0)):$e(X,L,N,oe,se,ae,Ce,Re,Le)},q=(X,L,N,z,se,ae,Ce,Re,Le)=>{L.slotScopeIds=Re,X==null?L.shapeFlag&512?se.ctx.activate(L,N,z,Ce,Le):le(L,N,z,se,ae,Ce,Le):Fe(X,L,Le)},le=(X,L,N,z,se,ae,Ce)=>{const Re=X.component=Tx(X,z,se);if(Bu(X)&&(Re.ctx.renderer=It),Ax(Re),Re.asyncDep){if(se&&se.registerDep(Re,Ee),!X.el){const Le=Re.subTree=vt(cr);S(null,Le,L,N)}return}Ee(Re,X,L,N,se,ae,Ce)},Fe=(X,L,N)=>{const z=L.component=X.component;if(Q2(X,L,N))if(z.asyncDep&&!z.asyncResolved){Ae(z,L,N);return}else z.next=L,V2(z.update),z.update();else L.el=X.el,z.vnode=L},Ee=(X,L,N,z,se,ae,Ce)=>{const Re=()=>{if(X.isMounted){let{next:oe,bu:he,u:je,parent:we,vnode:Je}=X,yt=oe,ut;Fo(X,!1),oe?(oe.el=Je.el,Ae(X,oe,Ce)):oe=Je,he&&Ha(he),(ut=oe.props&&oe.props.onVnodeBeforeUpdate)&&Vr(ut,we,oe,Je),Fo(X,!0);const ue=Df(X),de=X.subTree;X.subTree=ue,P(de,ue,v(de.el),Lt(de),X,se,ae),oe.el=ue.el,yt===null&&hm(X,ue.el),je&&ur(je,se),(ut=oe.props&&oe.props.onVnodeUpdated)&&ur(()=>Vr(ut,we,oe,Je),se)}else{let oe;const{el:he,props:je}=L,{bm:we,m:Je,parent:yt}=X,ut=qo(L);if(Fo(X,!1),we&&Ha(we),!ut&&(oe=je&&je.onVnodeBeforeMount)&&Vr(oe,yt,L),Fo(X,!0),he&&gn){const ue=()=>{X.subTree=Df(X),gn(he,X.subTree,X,se,null)};ut?L.type.__asyncLoader().then(()=>!X.isUnmounted&&ue()):ue()}else{const ue=X.subTree=Df(X);P(null,ue,N,z,X,se,ae),L.el=ue.el}if(Je&&ur(Je,se),!ut&&(oe=je&&je.onVnodeMounted)){const ue=L;ur(()=>Vr(oe,yt,ue),se)}(L.shapeFlag&256||yt&&qo(yt.vnode)&&yt.vnode.shapeFlag&256)&&X.a&&ur(X.a,se),X.isMounted=!0,L=N=z=null}},Le=X.effect=new ol(Re,()=>Dd(_e),X.scope),_e=X.update=()=>Le.run();_e.id=X.uid,Fo(X,!0),_e()},Ae=(X,L,N)=>{L.component=X;const z=X.vnode.props;X.vnode=L,X.next=null,vk(X,L.props,z,N),_k(X,L.children,N),al(),Wb(),ll()},$e=(X,L,N,z,se,ae,Ce,Re,Le=!1)=>{const _e=X&&X.children,oe=X?X.shapeFlag:0,he=L.children,{patchFlag:je,shapeFlag:we}=L;if(je>0){if(je&128){Rt(_e,he,N,z,se,ae,Ce,Re,Le);return}else if(je&256){tt(_e,he,N,z,se,ae,Ce,Re,Le);return}}we&8?(oe&16&&dt(_e,se,ae),he!==_e&&y(N,he)):oe&16?we&16?Rt(_e,he,N,z,se,ae,Ce,Re,Le):dt(_e,se,ae,!0):(oe&8&&y(N,""),we&16&&Y(he,N,z,se,ae,Ce,Re,Le))},tt=(X,L,N,z,se,ae,Ce,Re,Le)=>{X=X||Ua,L=L||Ua;const _e=X.length,oe=L.length,he=Math.min(_e,oe);let je;for(je=0;jeoe?dt(X,se,ae,!0,!1,he):Y(L,N,z,se,ae,Ce,Re,Le,he)},Rt=(X,L,N,z,se,ae,Ce,Re,Le)=>{let _e=0;const oe=L.length;let he=X.length-1,je=oe-1;for(;_e<=he&&_e<=je;){const we=X[_e],Je=L[_e]=Le?Zi(L[_e]):cs(L[_e]);if(Hs(we,Je))P(we,Je,N,null,se,ae,Ce,Re,Le);else break;_e++}for(;_e<=he&&_e<=je;){const we=X[he],Je=L[je]=Le?Zi(L[je]):cs(L[je]);if(Hs(we,Je))P(we,Je,N,null,se,ae,Ce,Re,Le);else break;he--,je--}if(_e>he){if(_e<=je){const we=je+1,Je=weje)for(;_e<=he;)mt(X[_e],se,ae,!0),_e++;else{const we=_e,Je=_e,yt=new Map;for(_e=Je;_e<=je;_e++){const Xe=L[_e]=Le?Zi(L[_e]):cs(L[_e]);Xe.key!=null&&yt.set(Xe.key,_e)}let ut,ue=0;const de=je-Je+1;let ye=!1,Ne=0;const Be=new Array(de);for(_e=0;_e=de){mt(Xe,se,ae,!0);continue}let ht;if(Xe.key!=null)ht=yt.get(Xe.key);else for(ut=Je;ut<=je;ut++)if(Be[ut-Je]===0&&Hs(Xe,L[ut])){ht=ut;break}ht===void 0?mt(Xe,se,ae,!0):(Be[ht-Je]=_e+1,ht>=Ne?Ne=ht:ye=!0,P(Xe,L[ht],N,null,se,ae,Ce,Re,Le),ue++)}const qe=ye?Ek(Be):Ua;for(ut=qe.length-1,_e=de-1;_e>=0;_e--){const Xe=Je+_e,ht=L[Xe],tn=Xe+1{const{el:ae,type:Ce,transition:Re,children:Le,shapeFlag:_e}=X;if(_e&6){ot(X.component.subTree,L,N,z);return}if(_e&128){X.suspense.move(L,N,z);return}if(_e&64){Ce.move(X,L,N,It);return}if(Ce===Xt){s(ae,L,N);for(let he=0;heRe.enter(ae),se);else{const{leave:he,delayLeave:je,afterLeave:we}=Re,Je=()=>s(ae,L,N),yt=()=>{he(ae,()=>{Je(),we&&we()})};je?je(ae,Je,yt):yt()}else s(ae,L,N)},mt=(X,L,N,z=!1,se=!1)=>{const{type:ae,props:Ce,ref:Re,children:Le,dynamicChildren:_e,shapeFlag:oe,patchFlag:he,dirs:je}=X;if(Re!=null&&Jf(Re,null,N,X,!0),oe&256){L.ctx.deactivate(X);return}const we=oe&1&&je,Je=!qo(X);let yt;if(Je&&(yt=Ce&&Ce.onVnodeBeforeUnmount)&&Vr(yt,L,X),oe&6)Dt(X.component,N,z);else{if(oe&128){X.suspense.unmount(N,z);return}we&&ri(X,null,L,"beforeUnmount"),oe&64?X.type.remove(X,L,N,se,It,z):_e&&(ae!==Xt||he>0&&he&64)?dt(_e,L,N,!1,!0):(ae===Xt&&he&384||!se&&oe&16)&&dt(Le,L,N),z&&zt(X)}(Je&&(yt=Ce&&Ce.onVnodeUnmounted)||we)&&ur(()=>{yt&&Vr(yt,L,X),we&&ri(X,null,L,"unmounted")},N)},zt=X=>{const{type:L,el:N,anchor:z,transition:se}=X;if(L===Xt){Zt(N,z);return}if(L===io){R(X);return}const ae=()=>{a(N),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(X.shapeFlag&1&&se&&!se.persisted){const{leave:Ce,delayLeave:Re}=se,Le=()=>Ce(N,ae);Re?Re(X.el,ae,Le):Le()}else ae()},Zt=(X,L)=>{let N;for(;X!==L;)N=_(X),a(X),X=N;a(L)},Dt=(X,L,N)=>{const{bum:z,scope:se,update:ae,subTree:Ce,um:Re}=X;z&&Ha(z),se.stop(),ae&&(ae.active=!1,mt(Ce,X,L,N)),Re&&ur(Re,L),ur(()=>{X.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&X.asyncDep&&!X.asyncResolved&&X.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},dt=(X,L,N,z=!1,se=!1,ae=0)=>{for(let Ce=ae;CeX.shapeFlag&6?Lt(X.component.subTree):X.shapeFlag&128?X.suspense.next():_(X.anchor||X.el),en=(X,L,N)=>{X==null?L._vnode&&mt(L._vnode,null,null,!0):P(L._vnode||null,X,L,null,null,null,N),Wb(),Xf(),L._vnode=X},It={p:P,um:mt,m:ot,r:zt,mt:le,mc:Y,pc:$e,pbc:K,n:Lt,o:e};let Ht,gn;return n&&([Ht,gn]=n(It)),{render:en,hydrate:Ht,createApp:gk(en,Ht)}}function Fo({effect:e,update:n},r){e.allowRecurse=n.allowRecurse=r}function km(e,n,r=!1){const s=e.children,a=n.children;if(Ke(s)&&Ke(a))for(let l=0;l>1,e[r[f]]0&&(n[s]=r[l-1]),r[l]=s)}}for(l=r.length,o=r[l-1];l-- >0;)r[l]=o,o=n[o];return r}const wk=e=>e.__isTeleport,lu=e=>e&&(e.disabled||e.disabled===""),t_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mg=(e,n)=>{const r=e&&e.to;return Ot(r)?n?n(r):null:r},Sk={__isTeleport:!0,process(e,n,r,s,a,l,o,f,d,p){const{mc:y,pc:v,pbc:_,o:{insert:w,querySelector:T,createText:P,createComment:M}}=p,S=lu(n.props);let{shapeFlag:I,children:B,dynamicChildren:R}=n;if(e==null){const $=n.el=P(""),G=n.anchor=P("");w($,r,s),w(G,r,s);const m=n.target=mg(n.props,T),Y=n.targetAnchor=P("");m&&(w(Y,m),o=o||t_(m));const j=(K,re)=>{I&16&&y(B,K,re,a,l,o,f,d)};S?j(r,G):m&&j(m,Y)}else{n.el=e.el;const $=n.anchor=e.anchor,G=n.target=e.target,m=n.targetAnchor=e.targetAnchor,Y=lu(e.props),j=Y?r:G,K=Y?$:m;if(o=o||t_(G),R?(_(e.dynamicChildren,R,j,a,l,o,f),km(e,n,!0)):d||v(e,n,j,K,a,l,o,f,!1),S)Y||bf(n,r,$,p,1);else if((n.props&&n.props.to)!==(e.props&&e.props.to)){const re=n.target=mg(n.props,T);re&&bf(n,re,null,p,0)}else Y&&bf(n,G,m,p,1)}bx(n)},remove(e,n,r,s,{um:a,o:{remove:l}},o){const{shapeFlag:f,children:d,anchor:p,targetAnchor:y,target:v,props:_}=e;if(v&&l(y),(o||!lu(_))&&(l(p),f&16))for(let w=0;w0?Gr||Ua:null,_x(),na>0&&Gr&&Gr.push(e),e}function ke(e,n,r,s,a,l){return xx(C(e,n,r,s,a,l,!0))}function In(e,n,r,s,a){return xx(vt(e,n,r,s,a,!0))}function Pi(e){return e?e.__v_isVNode===!0:!1}function Hs(e,n){return e.type===n.type&&e.key===n.key}function Ex(e){}const Vd="__vInternal",wx=({key:e})=>e!=null?e:null,Mf=({ref:e,ref_key:n,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ot(e)||Bn(e)||gt(e)?{i:sr,r:e,k:n,f:!!r}:e:null);function C(e,n=null,r=null,s=0,a=null,l=e===Xt?0:1,o=!1,f=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:n,key:n&&wx(n),ref:n&&Mf(n),scopeId:Fd,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:sr};return f?(Nm(d,r),l&128&&e.normalize(d)):r&&(d.shapeFlag|=Ot(r)?8:16),na>0&&!o&&Gr&&(d.patchFlag>0||l&6)&&d.patchFlag!==32&&Gr.push(d),d}const vt=Ck;function Ck(e,n=null,r=null,s=0,a=null,l=!1){if((!e||e===H1)&&(e=cr),Pi(e)){const f=Vs(e,n,!0);return r&&Nm(f,r),na>0&&!l&&Gr&&(f.shapeFlag&6?Gr[Gr.indexOf(e)]=f:Gr.push(f)),f.patchFlag|=-2,f}if(kk(e)&&(e=e.__vccOpts),n){n=Lm(n);let{class:f,style:d}=n;f&&!Ot(f)&&(n.class=Jt(f)),hn(d)&&(Pd(d)&&!Ke(d)&&(d=qt({},d)),n.style=il(d))}const o=Ot(e)?1:L1(e)?128:wk(e)?64:hn(e)?4:gt(e)?2:0;return C(e,n,r,s,a,o,l,!0)}function Lm(e){return e?Pd(e)||Vd in e?qt({},e):e:null}function Vs(e,n,r=!1){const{props:s,ref:a,patchFlag:l,children:o}=e,f=n?Rm(s||{},n):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&wx(f),ref:n&&n.ref?r&&a?Ke(a)?a.concat(Mf(n)):[a,Mf(n)]:Mf(n):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:n&&e.type!==Xt?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vs(e.ssContent),ssFallback:e.ssFallback&&Vs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ln(e=" ",n=0){return vt(Ii,null,e,n)}function Sx(e,n){const r=vt(io,null,e);return r.staticCount=n,r}function nt(e="",n=!1){return n?(xe(),In(cr,null,e)):vt(cr,null,e)}function cs(e){return e==null||typeof e=="boolean"?vt(cr):Ke(e)?vt(Xt,null,e.slice()):typeof e=="object"?Zi(e):vt(Ii,null,String(e))}function Zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vs(e)}function Nm(e,n){let r=0;const{shapeFlag:s}=e;if(n==null)n=null;else if(Ke(n))r=16;else if(typeof n=="object")if(s&65){const a=n.default;a&&(a._c&&(a._d=!1),Nm(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(Vd in n)?n._ctx=sr:a===3&&sr&&(sr.slots._===1?n._=1:(n._=2,e.patchFlag|=1024))}else gt(n)?(n={default:n,_ctx:sr},r=32):(n=String(n),s&64?(r=16,n=[ln(n)]):r=8);e.children=n,e.shapeFlag|=r}function Rm(...e){const n={};for(let r=0;rWn||sr;let Dm,Pa,n_="__VUE_INSTANCE_SETTERS__";(Pa=og()[n_])||(Pa=og()[n_]=[]),Pa.push(e=>Wn=e),Dm=e=>{Pa.length>1?Pa.forEach(n=>n(e)):Pa[0](e)};const ho=e=>{Dm(e),e.scope.on()},oo=()=>{Wn&&Wn.scope.off(),Dm(null)};function Cx(e){return e.vnode.shapeFlag&4}let Xa=!1;function Ax(e,n=!1){Xa=n;const{props:r,children:s}=e.vnode,a=Cx(e);mk(e,r,a,n),bk(e,s);const l=a?Ik(e,n):void 0;return Xa=!1,l}function Ik(e,n){const r=e.type;e.accessCache=Object.create(null),e.proxy=kd(new Proxy(e.ctx,dg));const{setup:s}=r;if(s){const a=e.setupContext=s.length>1?Px(e):null;ho(e),al();const l=oi(s,e,0,[e.props,a]);if(ll(),oo(),nm(l)){if(l.then(oo,oo),n)return l.then(o=>{vg(e,o,n)}).catch(o=>{yo(o,e,0)});e.asyncDep=l}else vg(e,l,n)}else Ix(e,n)}function vg(e,n,r){gt(n)?e.type.__ssrInlineRender?e.ssrRender=n:e.render=n:hn(n)&&(e.setupState=Nd(n)),Ix(e,r)}let Zf,yg;function Mm(e){Zf=e,yg=n=>{n.render._rc&&(n.withProxy=new Proxy(n.ctx,lk))}}const Ox=()=>!Zf;function Ix(e,n,r){const s=e.type;if(!e.render){if(!n&&Zf&&!s.render){const a=s.template||Am(e).template;if(a){const{isCustomElement:l,compilerOptions:o}=e.appContext.config,{delimiters:f,compilerOptions:d}=s,p=qt(qt({isCustomElement:l,delimiters:f},o),d);s.render=Zf(a,p)}}e.render=s.render||kr,yg&&yg(e)}ho(e),al(),uk(e),ll(),oo()}function Pk(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(n,r){return Qr(e,"get","$attrs"),n[r]}}))}function Px(e){const n=r=>{e.exposed=r||{}};return{get attrs(){return Pk(e)},slots:e.slots,emit:e.emit,expose:n}}function Gd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nd(kd(e.exposed)),{get(n,r){if(r in n)return n[r];if(r in au)return au[r](e)},has(n,r){return r in n||r in au}}))}function bg(e,n=!0){return gt(e)?e.displayName||e.name:e.name||n&&e.__name}function kk(e){return gt(e)&&"__vccOpts"in e}const Jn=(e,n)=>j2(e,n,Xa);function Wu(e,n,r){const s=arguments.length;return s===2?hn(n)&&!Ke(n)?Pi(n)?vt(e,null,[n]):vt(e,n):vt(e,null,n):(s>3?r=Array.prototype.slice.call(arguments,2):s===3&&Pi(r)&&(r=[r]),vt(e,n,r))}const $m=Symbol.for("v-scx"),Fm=()=>vn($m);function kx(){}function Lx(e,n,r,s){const a=r[s];if(a&&Bm(a,e))return a;const l=n();return l.memo=e.slice(),r[s]=l}function Bm(e,n){const r=e.memo;if(r.length!=n.length)return!1;for(let s=0;s0&&Gr&&Gr.push(e),!0}const Um="3.3.4",Lk={createComponentInstance:Tx,setupComponent:Ax,renderComponentRoot:Df,setCurrentRenderingInstance:wu,isVNode:Pi,normalizeVNode:cs},Nx=Lk,Rx=null,Dx=null,Nk="http://www.w3.org/2000/svg",Ko=typeof document<"u"?document:null,r_=Ko&&Ko.createElement("template"),Rk={insert:(e,n,r)=>{n.insertBefore(e,r||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,r,s)=>{const a=n?Ko.createElementNS(Nk,e):Ko.createElement(e,r?{is:r}:void 0);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>Ko.createTextNode(e),createComment:e=>Ko.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ko.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,r,s,a,l){const o=r?r.previousSibling:n.lastChild;if(a&&(a===l||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),r),!(a===l||!(a=a.nextSibling)););else{r_.innerHTML=s?`${e}`:e;const f=r_.content;if(s){const d=f.firstChild;for(;d.firstChild;)f.appendChild(d.firstChild);f.removeChild(d)}n.insertBefore(f,r)}return[o?o.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}};function Dk(e,n,r){const s=e._vtc;s&&(n=(n?[n,...s]:[...s]).join(" ")),n==null?e.removeAttribute("class"):r?e.setAttribute("class",n):e.className=n}function Mk(e,n,r){const s=e.style,a=Ot(r);if(r&&!a){if(n&&!Ot(n))for(const l in n)r[l]==null&&_g(s,l,"");for(const l in r)_g(s,l,r[l])}else{const l=s.display;a?n!==r&&(s.cssText=r):n&&e.removeAttribute("style"),"_vod"in e&&(s.display=l)}}const s_=/\s*!important$/;function _g(e,n,r){if(Ke(r))r.forEach(s=>_g(e,n,s));else if(r==null&&(r=""),n.startsWith("--"))e.setProperty(n,r);else{const s=$k(e,n);s_.test(r)?e.setProperty(fs(s),r.replace(s_,""),"important"):e[s]=r}}const i_=["Webkit","Moz","ms"],Bh={};function $k(e,n){const r=Bh[n];if(r)return r;let s=Un(n);if(s!=="filter"&&s in e)return Bh[n]=s;s=vo(s);for(let a=0;aUh||(Wk.then(()=>Uh=0),Uh=Date.now());function Gk(e,n){const r=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=r.attached)return;zr(Kk(s,r.value),n,5,[s])};return r.value=e,r.attached=Vk(),r}function Kk(e,n){if(Ke(n)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},n.map(s=>a=>!a._stopped&&s&&s(a))}else return n}const l_=/^on[a-z]/,zk=(e,n,r,s,a=!1,l,o,f,d)=>{n==="class"?Dk(e,s,a):n==="style"?Mk(e,r,s):ia(n)?em(n)||jk(e,n,r,s,o):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):Yk(e,n,s,a))?Bk(e,n,s,l,o,f,d):(n==="true-value"?e._trueValue=s:n==="false-value"&&(e._falseValue=s),Fk(e,n,s,a))};function Yk(e,n,r,s){return s?!!(n==="innerHTML"||n==="textContent"||n in e&&l_.test(n)&>(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&e.tagName==="INPUT"||n==="type"&&e.tagName==="TEXTAREA"||l_.test(n)&&Ot(r)?!1:n in e}function jm(e,n){const r=jd(e);class s extends Vu{constructor(l){super(r,l,n)}}return s.def=r,s}const Mx=e=>jm(e,Hm),Xk=typeof HTMLElement<"u"?HTMLElement:class{};class Vu extends Xk{constructor(n,r={},s){super(),this._def=n,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Rd(()=>{this._connected||(ed(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s{for(const a of s)this._setAttr(a.attributeName)}).observe(this,{attributes:!0});const n=(s,a=!1)=>{const{props:l,styles:o}=s;let f;if(l&&!Ke(l))for(const d in l){const p=l[d];(p===Number||p&&p.type===Number)&&(d in this._props&&(this._props[d]=zf(this._props[d])),(f||(f=Object.create(null)))[Un(d)]=!0)}this._numberProps=f,a&&this._resolveProps(s),this._applyStyles(o),this._update()},r=this._def.__asyncLoader;r?r().then(s=>n(s,!0)):n(this._def)}_resolveProps(n){const{props:r}=n,s=Ke(r)?r:Object.keys(r||{});for(const a of Object.keys(this))a[0]!=="_"&&s.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of s.map(Un))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(l){this._setProp(a,l)}})}_setAttr(n){let r=this.getAttribute(n);const s=Un(n);this._numberProps&&this._numberProps[s]&&(r=zf(r)),this._setProp(s,r,!1)}_getProp(n){return this._props[n]}_setProp(n,r,s=!0,a=!0){r!==this._props[n]&&(this._props[n]=r,a&&this._instance&&this._update(),s&&(r===!0?this.setAttribute(fs(n),""):typeof r=="string"||typeof r=="number"?this.setAttribute(fs(n),r+""):r||this.removeAttribute(fs(n))))}_update(){ed(this._createVNode(),this.shadowRoot)}_createVNode(){const n=vt(this._def,qt({},this._props));return this._instance||(n.ce=r=>{this._instance=r,r.isCE=!0;const s=(l,o)=>{this.dispatchEvent(new CustomEvent(l,{detail:o}))};r.emit=(l,...o)=>{s(l,o),fs(l)!==l&&s(fs(l),o)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof Vu){r.parent=a._instance,r.provides=a._instance.provides;break}}),n}_applyStyles(n){n&&n.forEach(r=>{const s=document.createElement("style");s.textContent=r,this.shadowRoot.appendChild(s)})}}function $x(e="$style"){{const n=Nr();if(!n)return pn;const r=n.type.__cssModules;if(!r)return pn;const s=r[e];return s||pn}}function Fx(e){const n=Nr();if(!n)return;const r=n.ut=(a=e(n.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${n.uid}"]`)).forEach(l=>Eg(l,a))},s=()=>{const a=e(n.proxy);xg(n.subTree,a),r(a)};mm(s),aa(()=>{const a=new MutationObserver(s);a.observe(n.subTree.el.parentNode,{childList:!0}),ul(()=>a.disconnect())})}function xg(e,n){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{xg(r.activeBranch,n)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Eg(e.el,n);else if(e.type===Xt)e.children.forEach(r=>xg(r,n));else if(e.type===io){let{el:r,anchor:s}=e;for(;r&&(Eg(r,n),r!==s);)r=r.nextSibling}}function Eg(e,n){if(e.nodeType===1){const r=e.style;for(const s in n)r.setProperty(`--${s}`,n[s])}}const Xi="transition",Gl="animation",bo=(e,{slots:n})=>Wu(vm,Ux(e),n);bo.displayName="Transition";const Bx={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Qk=bo.props=qt({},Ud,Bx),Bo=(e,n=[])=>{Ke(e)?e.forEach(r=>r(...n)):e&&e(...n)},u_=e=>e?Ke(e)?e.some(n=>n.length>1):e.length>1:!1;function Ux(e){const n={};for(const pe in e)pe in Bx||(n[pe]=e[pe]);if(e.css===!1)return n;const{name:r="v",type:s,duration:a,enterFromClass:l=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:f=`${r}-enter-to`,appearFromClass:d=l,appearActiveClass:p=o,appearToClass:y=f,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:_=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,T=Jk(a),P=T&&T[0],M=T&&T[1],{onBeforeEnter:S,onEnter:I,onEnterCancelled:B,onLeave:R,onLeaveCancelled:$,onBeforeAppear:G=S,onAppear:m=I,onAppearCancelled:Y=B}=n,j=(pe,q,le)=>{Ji(pe,q?y:f),Ji(pe,q?p:o),le&&le()},K=(pe,q)=>{pe._isLeaving=!1,Ji(pe,v),Ji(pe,w),Ji(pe,_),q&&q()},re=pe=>(q,le)=>{const Fe=pe?m:I,Ee=()=>j(q,pe,le);Bo(Fe,[q,Ee]),c_(()=>{Ji(q,pe?d:l),wi(q,pe?y:f),u_(Fe)||f_(q,s,P,Ee)})};return qt(n,{onBeforeEnter(pe){Bo(S,[pe]),wi(pe,l),wi(pe,o)},onBeforeAppear(pe){Bo(G,[pe]),wi(pe,d),wi(pe,p)},onEnter:re(!1),onAppear:re(!0),onLeave(pe,q){pe._isLeaving=!0;const le=()=>K(pe,q);wi(pe,v),Hx(),wi(pe,_),c_(()=>{!pe._isLeaving||(Ji(pe,v),wi(pe,w),u_(R)||f_(pe,s,M,le))}),Bo(R,[pe,le])},onEnterCancelled(pe){j(pe,!1),Bo(B,[pe])},onAppearCancelled(pe){j(pe,!0),Bo(Y,[pe])},onLeaveCancelled(pe){K(pe),Bo($,[pe])}})}function Jk(e){if(e==null)return null;if(hn(e))return[jh(e.enter),jh(e.leave)];{const n=jh(e);return[n,n]}}function jh(e){return zf(e)}function wi(e,n){n.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(n)}function Ji(e,n){n.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:r}=e;r&&(r.delete(n),r.size||(e._vtc=void 0))}function c_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qk=0;function f_(e,n,r,s){const a=e._endId=++qk,l=()=>{a===e._endId&&s()};if(r)return setTimeout(l,r);const{type:o,timeout:f,propCount:d}=jx(e,n);if(!o)return s();const p=o+"end";let y=0;const v=()=>{e.removeEventListener(p,_),l()},_=w=>{w.target===e&&++y>=d&&v()};setTimeout(()=>{y(r[T]||"").split(", "),a=s(`${Xi}Delay`),l=s(`${Xi}Duration`),o=d_(a,l),f=s(`${Gl}Delay`),d=s(`${Gl}Duration`),p=d_(f,d);let y=null,v=0,_=0;n===Xi?o>0&&(y=Xi,v=o,_=l.length):n===Gl?p>0&&(y=Gl,v=p,_=d.length):(v=Math.max(o,p),y=v>0?o>p?Xi:Gl:null,_=y?y===Xi?l.length:d.length:0);const w=y===Xi&&/\b(transform|all)(,|$)/.test(s(`${Xi}Property`).toString());return{type:y,timeout:v,propCount:_,hasTransform:w}}function d_(e,n){for(;e.lengthp_(r)+p_(e[s])))}function p_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Hx(){return document.body.offsetHeight}const Wx=new WeakMap,Vx=new WeakMap,Gx={name:"TransitionGroup",props:qt({},Qk,{tag:String,moveClass:String}),setup(e,{slots:n}){const r=Nr(),s=Bd();let a,l;return Uu(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!rL(a[0].el,r.vnode.el,o))return;a.forEach(eL),a.forEach(tL);const f=a.filter(nL);Hx(),f.forEach(d=>{const p=d.el,y=p.style;wi(p,o),y.transform=y.webkitTransform=y.transitionDuration="";const v=p._moveCb=_=>{_&&_.target!==p||(!_||/transform$/.test(_.propertyName))&&(p.removeEventListener("transitionend",v),p._moveCb=null,Ji(p,o))};p.addEventListener("transitionend",v)})}),()=>{const o=Kt(e),f=Ux(o);let d=o.tag||Xt;a=l,l=n.default?Fu(n.default()):[];for(let p=0;pdelete e.mode;Gx.props;const Kx=Gx;function eL(e){const n=e.el;n._moveCb&&n._moveCb(),n._enterCb&&n._enterCb()}function tL(e){Vx.set(e,e.el.getBoundingClientRect())}function nL(e){const n=Wx.get(e),r=Vx.get(e),s=n.left-r.left,a=n.top-r.top;if(s||a){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${s}px,${a}px)`,l.transitionDuration="0s",e}}function rL(e,n,r){const s=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(f=>f&&s.classList.remove(f))}),r.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const a=n.nodeType===1?n:n.parentNode;a.appendChild(s);const{hasTransform:l}=jx(s);return a.removeChild(s),l}const go=e=>{const n=e.props["onUpdate:modelValue"]||!1;return Ke(n)?r=>Ha(n,r):n};function sL(e){e.target.composing=!0}function h_(e){const n=e.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const Vn={created(e,{modifiers:{lazy:n,trim:r,number:s}},a){e._assign=go(a);const l=s||a.props&&a.props.type==="number";Ti(e,n?"change":"input",o=>{if(o.target.composing)return;let f=e.value;r&&(f=f.trim()),l&&(f=Kf(f)),e._assign(f)}),r&&Ti(e,"change",()=>{e.value=e.value.trim()}),n||(Ti(e,"compositionstart",sL),Ti(e,"compositionend",h_),Ti(e,"change",h_))},mounted(e,{value:n}){e.value=n==null?"":n},beforeUpdate(e,{value:n,modifiers:{lazy:r,trim:s,number:a}},l){if(e._assign=go(l),e.composing||document.activeElement===e&&e.type!=="range"&&(r||s&&e.value.trim()===n||(a||e.type==="number")&&Kf(e.value)===n))return;const o=n==null?"":n;e.value!==o&&(e.value=o)}},Gu={deep:!0,created(e,n,r){e._assign=go(r),Ti(e,"change",()=>{const s=e._modelValue,a=Qa(e),l=e.checked,o=e._assign;if(Ke(s)){const f=Ed(s,a),d=f!==-1;if(l&&!d)o(s.concat(a));else if(!l&&d){const p=[...s];p.splice(f,1),o(p)}}else if(oa(s)){const f=new Set(s);l?f.add(a):f.delete(a),o(f)}else o(zx(e,l))})},mounted:g_,beforeUpdate(e,n,r){e._assign=go(r),g_(e,n,r)}};function g_(e,{value:n,oldValue:r},s){e._modelValue=n,Ke(n)?e.checked=Ed(n,s.props.value)>-1:oa(n)?e.checked=n.has(s.props.value):n!==r&&(e.checked=uo(n,zx(e,!0)))}const Ku={created(e,{value:n},r){e.checked=uo(n,r.props.value),e._assign=go(r),Ti(e,"change",()=>{e._assign(Qa(e))})},beforeUpdate(e,{value:n,oldValue:r},s){e._assign=go(s),n!==r&&(e.checked=uo(n,s.props.value))}},ps={deep:!0,created(e,{value:n,modifiers:{number:r}},s){const a=oa(n);Ti(e,"change",()=>{const l=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Kf(Qa(o)):Qa(o));e._assign(e.multiple?a?new Set(l):l:l[0])}),e._assign=go(s)},mounted(e,{value:n}){m_(e,n)},beforeUpdate(e,n,r){e._assign=go(r)},updated(e,{value:n}){m_(e,n)}};function m_(e,n){const r=e.multiple;if(!(r&&!Ke(n)&&!oa(n))){for(let s=0,a=e.options.length;s-1:l.selected=n.has(o);else if(uo(Qa(l),n)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qa(e){return"_value"in e?e._value:e.value}function zx(e,n){const r=n?"_trueValue":"_falseValue";return r in e?e[r]:n}const Au={created(e,n,r){_f(e,n,r,null,"created")},mounted(e,n,r){_f(e,n,r,null,"mounted")},beforeUpdate(e,n,r,s){_f(e,n,r,s,"beforeUpdate")},updated(e,n,r,s){_f(e,n,r,s,"updated")}};function Yx(e,n){switch(e){case"SELECT":return ps;case"TEXTAREA":return Vn;default:switch(n){case"checkbox":return Gu;case"radio":return Ku;default:return Vn}}}function _f(e,n,r,s,a){const o=Yx(e.tagName,r.props&&r.props.type)[a];o&&o(e,n,r,s)}function iL(){Vn.getSSRProps=({value:e})=>({value:e}),Ku.getSSRProps=({value:e},n)=>{if(n.props&&uo(n.props.value,e))return{checked:!0}},Gu.getSSRProps=({value:e},n)=>{if(Ke(e)){if(n.props&&Ed(e,n.props.value)>-1)return{checked:!0}}else if(oa(e)){if(n.props&&e.has(n.props.value))return{checked:!0}}else if(e)return{checked:!0}},Au.getSSRProps=(e,n)=>{if(typeof n.type!="string")return;const r=Yx(n.type.toUpperCase(),n.props&&n.props.type);if(r.getSSRProps)return r.getSSRProps(e,n)}}const oL=["ctrl","shift","alt","meta"],aL={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,n)=>oL.some(r=>e[`${r}Key`]&&!n.includes(r))},Xx=(e,n)=>(r,...s)=>{for(let a=0;ar=>{if(!("key"in r))return;const s=fs(r.key);if(n.some(a=>a===s||lL[a]===s))return e(r)},Kd={beforeMount(e,{value:n},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&n?r.beforeEnter(e):Kl(e,n)},mounted(e,{value:n},{transition:r}){r&&n&&r.enter(e)},updated(e,{value:n,oldValue:r},{transition:s}){!n!=!r&&(s?n?(s.beforeEnter(e),Kl(e,!0),s.enter(e)):s.leave(e,()=>{Kl(e,!1)}):Kl(e,n))},beforeUnmount(e,{value:n}){Kl(e,n)}};function Kl(e,n){e.style.display=n?e._vod:"none"}function uL(){Kd.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Jx=qt({patchProp:zk},Rk);let cu,v_=!1;function qx(){return cu||(cu=Im(Jx))}function Zx(){return cu=v_?cu:Pm(Jx),v_=!0,cu}const ed=(...e)=>{qx().render(...e)},Hm=(...e)=>{Zx().hydrate(...e)},Wm=(...e)=>{const n=qx().createApp(...e),{mount:r}=n;return n.mount=s=>{const a=tE(s);if(!a)return;const l=n._component;!gt(l)&&!l.render&&!l.template&&(l.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},n},eE=(...e)=>{const n=Zx().createApp(...e),{mount:r}=n;return n.mount=s=>{const a=tE(s);if(a)return r(a,!0,a instanceof SVGElement)},n};function tE(e){return Ot(e)?document.querySelector(e):e}let y_=!1;const nE=()=>{y_||(y_=!0,iL(),uL())},cL=Object.freeze(Object.defineProperty({__proto__:null,Transition:bo,TransitionGroup:Kx,VueElement:Vu,createApp:Wm,createSSRApp:eE,defineCustomElement:jm,defineSSRCustomElement:Mx,hydrate:Hm,initDirectivesForSSR:nE,render:ed,useCssModule:$x,useCssVars:Fx,vModelCheckbox:Gu,vModelDynamic:Au,vModelRadio:Ku,vModelSelect:ps,vModelText:Vn,vShow:Kd,withKeys:Qx,withModifiers:Xx,EffectScope:wd,ReactiveEffect:ol,customRef:b1,effect:r1,effectScope:sm,getCurrentScope:Sd,isProxy:Pd,isReactive:so,isReadonly:fo,isRef:Bn,isShallow:Ya,markRaw:kd,onScopeDispose:im,proxyRefs:Nd,reactive:Du,readonly:Od,ref:it,shallowReactive:lm,shallowReadonly:g1,shallowRef:fm,stop:s1,toRaw:Kt,toRef:x1,toRefs:_1,toValue:y1,triggerRef:v1,unref:Mu,camelize:Un,capitalize:vo,normalizeClass:Jt,normalizeProps:J0,normalizeStyle:il,toDisplayString:ce,toHandlerKey:Qo,BaseTransition:vm,BaseTransitionPropsValidators:Ud,Comment:cr,Fragment:Xt,KeepAlive:U1,Static:io,Suspense:N1,Teleport:yx,Text:Ii,assertNumber:S1,callWithAsyncErrorHandling:zr,callWithErrorHandling:oi,cloneVNode:Vs,compatUtils:Dx,computed:Jn,createBlock:In,createCommentVNode:nt,createElementBlock:ke,createElementVNode:C,createHydrationRenderer:Pm,createPropsRestProxy:ax,createRenderer:Im,createSlots:G1,createStaticVNode:Sx,createTextVNode:ln,createVNode:vt,defineAsyncComponent:B1,defineComponent:jd,defineEmits:X1,defineExpose:Q1,defineModel:Z1,defineOptions:J1,defineProps:Y1,defineSlots:q1,get devtools(){return Go},getCurrentInstance:Nr,getTransitionRawChildren:Fu,guardReactiveProps:Lm,h:Wu,handleError:yo,hasInjectionContext:fx,initCustomFormatter:kx,inject:vn,isMemoSame:Bm,isRuntimeOnly:Ox,isVNode:Pi,mergeDefaults:ix,mergeModels:ox,mergeProps:Rm,nextTick:Rd,onActivated:ym,onBeforeMount:Wd,onBeforeUnmount:ju,onBeforeUpdate:_m,onDeactivated:bm,onErrorCaptured:Sm,onMounted:aa,onRenderTracked:wm,onRenderTriggered:Em,onServerPrefetch:xm,onUnmounted:ul,onUpdated:Uu,openBlock:xe,popScopeId:P1,provide:Ci,pushScopeId:I1,queuePostFlushCb:Md,registerRuntimeCompiler:Mm,renderList:Lr,renderSlot:Hu,resolveComponent:rn,resolveDirective:V1,resolveDynamicComponent:W1,resolveFilter:Rx,resolveTransitionHooks:ta,setBlockTracking:qf,setDevtoolsHook:pm,setTransitionHooks:po,ssrContextKey:$m,ssrUtils:Nx,toHandlers:z1,transformVNodeArgs:Ex,useAttrs:nx,useModel:rx,useSSRContext:Fm,useSlots:tx,useTransitionState:Bd,version:Um,warn:w1,watch:Yr,watchEffect:D1,watchPostEffect:mm,watchSyncEffect:M1,withAsyncContext:lx,withCtx:Pr,withDefaults:ex,withDirectives:on,withMemo:Lx,withScopeId:k1},Symbol.toStringTag,{value:"Module"}));function Vm(e){throw e}function rE(e){}function Sn(e,n,r,s){const a=e,l=new SyntaxError(String(a));return l.code=e,l.loc=n,l}const Ou=Symbol(""),fu=Symbol(""),Gm=Symbol(""),td=Symbol(""),sE=Symbol(""),ra=Symbol(""),iE=Symbol(""),oE=Symbol(""),Km=Symbol(""),zm=Symbol(""),zu=Symbol(""),Ym=Symbol(""),aE=Symbol(""),Xm=Symbol(""),nd=Symbol(""),Qm=Symbol(""),Jm=Symbol(""),qm=Symbol(""),Zm=Symbol(""),lE=Symbol(""),uE=Symbol(""),zd=Symbol(""),rd=Symbol(""),ev=Symbol(""),tv=Symbol(""),Iu=Symbol(""),Yu=Symbol(""),nv=Symbol(""),wg=Symbol(""),fL=Symbol(""),Sg=Symbol(""),sd=Symbol(""),dL=Symbol(""),pL=Symbol(""),rv=Symbol(""),hL=Symbol(""),gL=Symbol(""),sv=Symbol(""),cE=Symbol(""),Ja={[Ou]:"Fragment",[fu]:"Teleport",[Gm]:"Suspense",[td]:"KeepAlive",[sE]:"BaseTransition",[ra]:"openBlock",[iE]:"createBlock",[oE]:"createElementBlock",[Km]:"createVNode",[zm]:"createElementVNode",[zu]:"createCommentVNode",[Ym]:"createTextVNode",[aE]:"createStaticVNode",[Xm]:"resolveComponent",[nd]:"resolveDynamicComponent",[Qm]:"resolveDirective",[Jm]:"resolveFilter",[qm]:"withDirectives",[Zm]:"renderList",[lE]:"renderSlot",[uE]:"createSlots",[zd]:"toDisplayString",[rd]:"mergeProps",[ev]:"normalizeClass",[tv]:"normalizeStyle",[Iu]:"normalizeProps",[Yu]:"guardReactiveProps",[nv]:"toHandlers",[wg]:"camelize",[fL]:"capitalize",[Sg]:"toHandlerKey",[sd]:"setBlockTracking",[dL]:"pushScopeId",[pL]:"popScopeId",[rv]:"withCtx",[hL]:"unref",[gL]:"isRef",[sv]:"withMemo",[cE]:"isMemoSame"};function mL(e){Object.getOwnPropertySymbols(e).forEach(n=>{Ja[n]=e[n]})}const hs={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function vL(e,n=hs){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:n}}function Pu(e,n,r,s,a,l,o,f=!1,d=!1,p=!1,y=hs){return e&&(f?(e.helper(ra),e.helper(el(e.inSSR,p))):e.helper(Za(e.inSSR,p)),o&&e.helper(qm)),{type:13,tag:n,props:r,children:s,patchFlag:a,dynamicProps:l,directives:o,isBlock:f,disableTracking:d,isComponent:p,loc:y}}function Xu(e,n=hs){return{type:17,loc:n,elements:e}}function Cs(e,n=hs){return{type:15,loc:n,properties:e}}function Rn(e,n){return{type:16,loc:hs,key:Ot(e)?Ft(e,!0):e,value:n}}function Ft(e,n=!1,r=hs,s=0){return{type:4,loc:r,content:e,isStatic:n,constType:n?3:s}}function Ws(e,n=hs){return{type:8,loc:n,children:e}}function Hn(e,n=[],r=hs){return{type:14,loc:r,callee:e,arguments:n}}function qa(e,n=void 0,r=!1,s=!1,a=hs){return{type:18,params:e,returns:n,newline:r,isSlot:s,loc:a}}function Tg(e,n,r,s=!0){return{type:19,test:e,consequent:n,alternate:r,newline:s,loc:hs}}function yL(e,n,r=!1){return{type:20,index:e,value:n,isVNode:r,loc:hs}}function bL(e){return{type:21,body:e,loc:hs}}function Za(e,n){return e||n?Km:zm}function el(e,n){return e||n?iE:oE}function iv(e,{helper:n,removeHelper:r,inSSR:s}){e.isBlock||(e.isBlock=!0,r(Za(s,e.isComponent)),n(ra),n(el(s,e.isComponent)))}const Kr=e=>e.type===4&&e.isStatic,Ma=(e,n)=>e===n||e===fs(n);function fE(e){if(Ma(e,"Teleport"))return fu;if(Ma(e,"Suspense"))return Gm;if(Ma(e,"KeepAlive"))return td;if(Ma(e,"BaseTransition"))return sE}const _L=/^\d|[^\$\w]/,ov=e=>!_L.test(e),xL=/[A-Za-z_$\xA0-\uFFFF]/,EL=/[\.\?\w$\xA0-\uFFFF]/,wL=/\s+[.[]\s*|\s*[.[]\s+/g,SL=e=>{e=e.trim().replace(wL,o=>o.trim());let n=0,r=[],s=0,a=0,l=null;for(let o=0;on.type===7&&n.name==="bind"&&(!n.arg||n.arg.type!==4||!n.arg.isStatic))}function Hh(e){return e.type===5||e.type===2}function CL(e){return e.type===7&&e.name==="slot"}function ad(e){return e.type===1&&e.tagType===3}function ld(e){return e.type===1&&e.tagType===2}const AL=new Set([Iu,Yu]);function hE(e,n=[]){if(e&&!Ot(e)&&e.type===14){const r=e.callee;if(!Ot(r)&&AL.has(r))return hE(e.arguments[0],n.concat(e))}return[e,n]}function ud(e,n,r){let s,a=e.type===13?e.props:e.arguments[2],l=[],o;if(a&&!Ot(a)&&a.type===14){const f=hE(a);a=f[0],l=f[1],o=l[l.length-1]}if(a==null||Ot(a))s=Cs([n]);else if(a.type===14){const f=a.arguments[0];!Ot(f)&&f.type===15?b_(n,f)||f.properties.unshift(n):a.callee===nv?s=Hn(r.helper(rd),[Cs([n]),a]):a.arguments.unshift(Cs([n])),!s&&(s=a)}else a.type===15?(b_(n,a)||a.properties.unshift(n),s=a):(s=Hn(r.helper(rd),[Cs([n]),a]),o&&o.callee===Yu&&(o=l[l.length-2]));e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function b_(e,n){let r=!1;if(e.key.type===4){const s=e.key.content;r=n.properties.some(a=>a.key.type===4&&a.key.content===s)}return r}function ku(e,n){return`_${n}_${e.replace(/[^\w]/g,(r,s)=>r==="-"?"_":e.charCodeAt(s).toString())}`}function OL(e){return e.type===14&&e.callee===sv?e.arguments[1].returns:e}function __(e,n){const r=n.options?n.options.compatConfig:n.compatConfig,s=r&&r[e];return e==="MODE"?s||3:s}function Zo(e,n){const r=__("MODE",n),s=__(e,n);return r===3?s===!0:s!==!1}function Lu(e,n,r,...s){return Zo(e,n)}const IL=/&(gt|lt|amp|apos|quot);/g,PL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},x_={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Rf,isPreTag:Rf,isCustomElement:Rf,decodeEntities:e=>e.replace(IL,(n,r)=>PL[r]),onError:Vm,onWarn:rE,comments:!1};function kL(e,n={}){const r=LL(e,n),s=ds(r);return vL(av(r,0,[]),Os(r,s))}function LL(e,n){const r=qt({},x_);let s;for(s in n)r[s]=n[s]===void 0?x_[s]:n[s];return{options:r,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:r.onWarn}}function av(e,n,r){const s=Xd(r),a=s?s.ns:0,l=[];for(;!jL(e,n,r);){const f=e.source;let d;if(n===0||n===1){if(!e.inVPre&&br(f,e.options.delimiters[0]))d=BL(e,n);else if(n===0&&f[0]==="<")if(f.length===1)dn(e,5,1);else if(f[1]==="!")br(f,"=0;){const p=o[f];p&&p.type===9&&(d+=p.branches.length)}return()=>{if(l)s.codegenNode=A_(a,d,r);else{const p=fN(s.codegenNode);p.alternate=A_(a,d+s.branches.length-1,r)}}}));function cN(e,n,r,s){if(n.name!=="else"&&(!n.exp||!n.exp.content.trim())){const a=n.exp?n.exp.loc:e.loc;r.onError(Sn(28,n.loc)),n.exp=Ft("true",!1,a)}if(n.name==="if"){const a=C_(e,n),l={type:9,loc:e.loc,branches:[a]};if(r.replaceNode(l),s)return s(l,a,!0)}else{const a=r.parent.children;let l=a.indexOf(e);for(;l-->=-1;){const o=a[l];if(o&&o.type===3){r.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){r.removeNode(o);continue}if(o&&o.type===9){n.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&r.onError(Sn(30,e.loc)),r.removeNode();const f=C_(e,n);o.branches.push(f);const d=s&&s(o,f,!1);Qd(f,r),d&&d(),r.currentNode=null}else r.onError(Sn(30,e.loc));break}}}function C_(e,n){const r=e.tagType===3;return{type:10,loc:e.loc,condition:n.name==="else"?void 0:n.exp,children:r&&!Ts(e,"for")?e.children:[e],userKey:Yd(e,"key"),isTemplateIf:r}}function A_(e,n,r){return e.condition?Tg(e.condition,O_(e,n,r),Hn(r.helper(zu),['""',"true"])):O_(e,n,r)}function O_(e,n,r){const{helper:s}=r,a=Rn("key",Ft(`${n}`,!1,hs,2)),{children:l}=e,o=l[0];if(l.length!==1||o.type!==1)if(l.length===1&&o.type===11){const d=o.codegenNode;return ud(d,a,r),d}else{let d=64;return Pu(r,s(Ou),Cs([a]),l,d+"",void 0,void 0,!0,!1,!1,e.loc)}else{const d=o.codegenNode,p=OL(d);return p.type===13&&iv(p,r),ud(p,a,r),d}}function fN(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const dN=xE("for",(e,n,r)=>{const{helper:s,removeHelper:a}=r;return pN(e,n,r,l=>{const o=Hn(s(Zm),[l.source]),f=ad(e),d=Ts(e,"memo"),p=Yd(e,"key"),y=p&&(p.type===6?Ft(p.value.content,!0):p.exp),v=p?Rn("key",y):null,_=l.source.type===4&&l.source.constType>0,w=_?64:p?128:256;return l.codegenNode=Pu(r,s(Ou),void 0,o,w+"",void 0,void 0,!0,!_,!1,e.loc),()=>{let T;const{children:P}=l,M=P.length!==1||P[0].type!==1,S=ld(e)?e:f&&e.children.length===1&&ld(e.children[0])?e.children[0]:null;if(S?(T=S.codegenNode,f&&v&&ud(T,v,r)):M?T=Pu(r,s(Ou),v?Cs([v]):void 0,e.children,64+"",void 0,void 0,!0,void 0,!1):(T=P[0].codegenNode,f&&v&&ud(T,v,r),T.isBlock!==!_&&(T.isBlock?(a(ra),a(el(r.inSSR,T.isComponent))):a(Za(r.inSSR,T.isComponent))),T.isBlock=!_,T.isBlock?(s(ra),s(el(r.inSSR,T.isComponent))):s(Za(r.inSSR,T.isComponent))),d){const I=qa(Og(l.parseResult,[Ft("_cached")]));I.body=bL([Ws(["const _memo = (",d.exp,")"]),Ws(["if (_cached",...y?[" && _cached.key === ",y]:[],` && ${r.helperString(cE)}(_cached, _memo)) return _cached`]),Ws(["const _item = ",T]),Ft("_item.memo = _memo"),Ft("return _item")]),o.arguments.push(I,Ft("_cache"),Ft(String(r.cached++)))}else o.arguments.push(qa(Og(l.parseResult),T,!0))}})});function pN(e,n,r,s){if(!n.exp){r.onError(Sn(31,n.loc));return}const a=TE(n.exp);if(!a){r.onError(Sn(32,n.loc));return}const{addIdentifiers:l,removeIdentifiers:o,scopes:f}=r,{source:d,value:p,key:y,index:v}=a,_={type:11,loc:n.loc,source:d,valueAlias:p,keyAlias:y,objectIndexAlias:v,parseResult:a,children:ad(e)?e.children:[e]};r.replaceNode(_),f.vFor++;const w=s&&s(_);return()=>{f.vFor--,w&&w()}}const hN=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,I_=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,gN=/^\(|\)$/g;function TE(e,n){const r=e.loc,s=e.content,a=s.match(hN);if(!a)return;const[,l,o]=a,f={source:xf(r,o.trim(),s.indexOf(o,l.length)),value:void 0,key:void 0,index:void 0};let d=l.trim().replace(gN,"").trim();const p=l.indexOf(d),y=d.match(I_);if(y){d=d.replace(I_,"").trim();const v=y[1].trim();let _;if(v&&(_=s.indexOf(v,p+d.length),f.key=xf(r,v,_)),y[2]){const w=y[2].trim();w&&(f.index=xf(r,w,s.indexOf(w,f.key?_+v.length:p+d.length)))}}return d&&(f.value=xf(r,d,p)),f}function xf(e,n,r){return Ft(n,!1,pE(e,r,n.length))}function Og({value:e,key:n,index:r},s=[]){return mN([e,n,r,...s])}function mN(e){let n=e.length;for(;n--&&!e[n];);return e.slice(0,n+1).map((r,s)=>r||Ft("_".repeat(s+1),!1))}const P_=Ft("undefined",!1),vN=(e,n)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const r=Ts(e,"slot");if(r)return r.exp,n.scopes.vSlot++,()=>{n.scopes.vSlot--}}},yN=(e,n,r)=>qa(e,n,!1,!0,n.length?n[0].loc:r);function bN(e,n,r=yN){n.helper(rv);const{children:s,loc:a}=e,l=[],o=[];let f=n.scopes.vSlot>0||n.scopes.vFor>0;const d=Ts(e,"slot",!0);if(d){const{arg:M,exp:S}=d;M&&!Kr(M)&&(f=!0),l.push(Rn(M||Ft("default",!0),r(S,s,a)))}let p=!1,y=!1;const v=[],_=new Set;let w=0;for(let M=0;M{const B=r(S,I,a);return n.compatConfig&&(B.isNonScopedSlot=!0),Rn("default",B)};p?v.length&&v.some(S=>CE(S))&&(y?n.onError(Sn(39,v[0].loc)):l.push(M(void 0,v))):l.push(M(void 0,s))}const T=f?2:Ff(e.children)?3:1;let P=Cs(l.concat(Rn("_",Ft(T+"",!1))),a);return o.length&&(P=Hn(n.helper(uE),[P,Xu(o)])),{slots:P,hasDynamicSlots:f}}function Ef(e,n,r){const s=[Rn("name",e),Rn("fn",n)];return r!=null&&s.push(Rn("key",Ft(String(r),!0))),Cs(s)}function Ff(e){for(let n=0;nfunction(){if(e=n.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:a}=e,l=e.tagType===1;let o=l?xN(e,n):`"${s}"`;const f=hn(o)&&o.callee===nd;let d,p,y,v=0,_,w,T,P=f||o===fu||o===Gm||!l&&(s==="svg"||s==="foreignObject");if(a.length>0){const M=OE(e,n,void 0,l,f);d=M.props,v=M.patchFlag,w=M.dynamicPropNames;const S=M.directives;T=S&&S.length?Xu(S.map(I=>wN(I,n))):void 0,M.shouldUseBlock&&(P=!0)}if(e.children.length>0)if(o===td&&(P=!0,v|=1024),l&&o!==fu&&o!==td){const{slots:S,hasDynamicSlots:I}=bN(e,n);p=S,I&&(v|=1024)}else if(e.children.length===1&&o!==fu){const S=e.children[0],I=S.type,B=I===5||I===8;B&&As(S,n)===0&&(v|=1),B||I===2?p=S:p=e.children}else p=e.children;v!==0&&(y=String(v),w&&w.length&&(_=SN(w))),e.codegenNode=Pu(n,o,d,p,y,_,T,!!P,!1,l,e.loc)};function xN(e,n,r=!1){let{tag:s}=e;const a=Ig(s),l=Yd(e,"is");if(l)if(a||Zo("COMPILER_IS_ON_ELEMENT",n)){const d=l.type===6?l.value&&Ft(l.value.content,!0):l.exp;if(d)return Hn(n.helper(nd),[d])}else l.type===6&&l.value.content.startsWith("vue:")&&(s=l.value.content.slice(4));const o=!a&&Ts(e,"is");if(o&&o.exp)return Hn(n.helper(nd),[o.exp]);const f=fE(s)||n.isBuiltInComponent(s);return f?(r||n.helper(f),f):(n.helper(Xm),n.components.add(s),ku(s,"component"))}function OE(e,n,r=e.props,s,a,l=!1){const{tag:o,loc:f,children:d}=e;let p=[];const y=[],v=[],_=d.length>0;let w=!1,T=0,P=!1,M=!1,S=!1,I=!1,B=!1,R=!1;const $=[],G=j=>{p.length&&(y.push(Cs(k_(p),f)),p=[]),j&&y.push(j)},m=({key:j,value:K})=>{if(Kr(j)){const re=j.content,pe=ia(re);if(pe&&(!s||a)&&re.toLowerCase()!=="onclick"&&re!=="onUpdate:modelValue"&&!Xo(re)&&(I=!0),pe&&Xo(re)&&(R=!0),K.type===20||(K.type===4||K.type===8)&&As(K,n)>0)return;re==="ref"?P=!0:re==="class"?M=!0:re==="style"?S=!0:re!=="key"&&!$.includes(re)&&$.push(re),s&&(re==="class"||re==="style")&&!$.includes(re)&&$.push(re)}else B=!0};for(let j=0;j0&&p.push(Rn(Ft("ref_for",!0),Ft("true")))),pe==="is"&&(Ig(o)||q&&q.content.startsWith("vue:")||Zo("COMPILER_IS_ON_ELEMENT",n)))continue;p.push(Rn(Ft(pe,!0,pE(re,0,pe.length)),Ft(q?q.content:"",le,q?q.loc:re)))}else{const{name:re,arg:pe,exp:q,loc:le}=K,Fe=re==="bind",Ee=re==="on";if(re==="slot"){s||n.onError(Sn(40,le));continue}if(re==="once"||re==="memo"||re==="is"||Fe&&Yo(pe,"is")&&(Ig(o)||Zo("COMPILER_IS_ON_ELEMENT",n))||Ee&&l)continue;if((Fe&&Yo(pe,"key")||Ee&&_&&Yo(pe,"vue:before-update"))&&(w=!0),Fe&&Yo(pe,"ref")&&n.scopes.vFor>0&&p.push(Rn(Ft("ref_for",!0),Ft("true"))),!pe&&(Fe||Ee)){if(B=!0,q)if(Fe){if(G(),Zo("COMPILER_V_BIND_OBJECT_ORDER",n)){y.unshift(q);continue}y.push(q)}else G({type:14,loc:le,callee:n.helper(nv),arguments:s?[q]:[q,"true"]});else n.onError(Sn(Fe?34:35,le));continue}const Ae=n.directiveTransforms[re];if(Ae){const{props:$e,needRuntime:tt}=Ae(K,e,n);!l&&$e.forEach(m),Ee&&pe&&!Kr(pe)?G(Cs($e,f)):p.push(...$e),tt&&(v.push(K),lo(tt)&&AE.set(K,tt))}else VP(re)||(v.push(K),_&&(w=!0))}}let Y;if(y.length?(G(),y.length>1?Y=Hn(n.helper(rd),y,f):Y=y[0]):p.length&&(Y=Cs(k_(p),f)),B?T|=16:(M&&!s&&(T|=2),S&&!s&&(T|=4),$.length&&(T|=8),I&&(T|=32)),!w&&(T===0||T===32)&&(P||R||v.length>0)&&(T|=512),!n.inSSR&&Y)switch(Y.type){case 15:let j=-1,K=-1,re=!1;for(let le=0;leRn(o,l)),a))}return Xu(r,e.loc)}function SN(e){let n="[";for(let r=0,s=e.length;r{if(ld(e)){const{children:r,loc:s}=e,{slotName:a,slotProps:l}=CN(e,n),o=[n.prefixIdentifiers?"_ctx.$slots":"$slots",a,"{}","undefined","true"];let f=2;l&&(o[2]=l,f=3),r.length&&(o[3]=qa([],r,!1,!1,s),f=4),n.scopeId&&!n.slotted&&(f=5),o.splice(f),e.codegenNode=Hn(n.helper(lE),o,s)}};function CN(e,n){let r='"default"',s;const a=[];for(let l=0;l0){const{props:l,directives:o}=OE(e,n,a,!1,!1);s=l,o.length&&n.onError(Sn(36,o[0].loc))}return{slotName:r,slotProps:s}}const AN=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,IE=(e,n,r,s)=>{const{loc:a,modifiers:l,arg:o}=e;!e.exp&&!l.length&&r.onError(Sn(35,a));let f;if(o.type===4)if(o.isStatic){let v=o.content;v.startsWith("vue:")&&(v=`vnode-${v.slice(4)}`);const _=n.tagType!==0||v.startsWith("vnode")||!/[A-Z]/.test(v)?Qo(Un(v)):`on:${v}`;f=Ft(_,!0,o.loc)}else f=Ws([`${r.helperString(Sg)}(`,o,")"]);else f=o,f.children.unshift(`${r.helperString(Sg)}(`),f.children.push(")");let d=e.exp;d&&!d.content.trim()&&(d=void 0);let p=r.cacheHandlers&&!d&&!r.inVOnce;if(d){const v=dE(d.content),_=!(v||AN.test(d.content)),w=d.content.includes(";");(_||p&&v)&&(d=Ws([`${_?"$event":"(...args)"} => ${w?"{":"("}`,d,w?"}":")"]))}let y={props:[Rn(f,d||Ft("() => {}",!1,a))]};return s&&(y=s(y)),p&&(y.props[0].value=r.cache(y.props[0].value)),y.props.forEach(v=>v.key.isHandlerKey=!0),y},ON=(e,n,r)=>{const{exp:s,modifiers:a,loc:l}=e,o=e.arg;return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),a.includes("camel")&&(o.type===4?o.isStatic?o.content=Un(o.content):o.content=`${r.helperString(wg)}(${o.content})`:(o.children.unshift(`${r.helperString(wg)}(`),o.children.push(")"))),r.inSSR||(a.includes("prop")&&L_(o,"."),a.includes("attr")&&L_(o,"^")),!s||s.type===4&&!s.content.trim()?(r.onError(Sn(34,l)),{props:[Rn(o,Ft("",!0,l))]}):{props:[Rn(o,s)]}},L_=(e,n)=>{e.type===4?e.isStatic?e.content=n+e.content:e.content=`\`${n}\${${e.content}}\``:(e.children.unshift(`'${n}' + (`),e.children.push(")"))},IN=(e,n)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const r=e.children;let s,a=!1;for(let l=0;ll.type===7&&!n.directiveTransforms[l.name])&&e.tag!=="template")))for(let l=0;l{if(e.type===1&&Ts(e,"once",!0))return N_.has(e)||n.inVOnce||n.inSSR?void 0:(N_.add(e),n.inVOnce=!0,n.helper(sd),()=>{n.inVOnce=!1;const r=n.currentNode;r.codegenNode&&(r.codegenNode=n.cache(r.codegenNode,!0))})},PE=(e,n,r)=>{const{exp:s,arg:a}=e;if(!s)return r.onError(Sn(41,e.loc)),wf();const l=s.loc.source,o=s.type===4?s.content:l,f=r.bindingMetadata[l];if(f==="props"||f==="props-aliased")return r.onError(Sn(44,s.loc)),wf();const d=!1;if(!o.trim()||!dE(o)&&!d)return r.onError(Sn(42,s.loc)),wf();const p=a||Ft("modelValue",!0),y=a?Kr(a)?`onUpdate:${Un(a.content)}`:Ws(['"onUpdate:" + ',a]):"onUpdate:modelValue";let v;const _=r.isTS?"($event: any)":"$event";v=Ws([`${_} => ((`,s,") = $event)"]);const w=[Rn(p,e.exp),Rn(y,v)];if(e.modifiers.length&&n.tagType===1){const T=e.modifiers.map(M=>(ov(M)?M:JSON.stringify(M))+": true").join(", "),P=a?Kr(a)?`${a.content}Modifiers`:Ws([a,' + "Modifiers"']):"modelModifiers";w.push(Rn(P,Ft(`{ ${T} }`,!1,e.loc,2)))}return wf(w)};function wf(e=[]){return{props:e}}const kN=/[\w).+\-_$\]]/,LN=(e,n)=>{!Zo("COMPILER_FILTER",n)||(e.type===5&&fd(e.content,n),e.type===1&&e.props.forEach(r=>{r.type===7&&r.name!=="for"&&r.exp&&fd(r.exp,n)}))};function fd(e,n){if(e.type===4)R_(e,n);else for(let r=0;r=0&&(I=r.charAt(S),I===" ");S--);(!I||!kN.test(I))&&(o=!0)}}T===void 0?T=r.slice(0,w).trim():y!==0&&M();function M(){P.push(r.slice(y,w).trim()),y=w+1}if(P.length){for(w=0;w{if(e.type===1){const r=Ts(e,"memo");return!r||D_.has(e)?void 0:(D_.add(e),()=>{const s=e.codegenNode||n.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&iv(s,n),e.codegenNode=Hn(n.helper(sv),[r.exp,qa(void 0,s),"_cache",String(n.cached++)]))})}};function DN(e){return[[PN,uN,RN,dN,LN,TN,_N,vN,IN],{on:IE,bind:ON,model:PE}]}function MN(e,n={}){const r=n.onError||Vm,s=n.mode==="module";n.prefixIdentifiers===!0?r(Sn(47)):s&&r(Sn(48));const a=!1;n.cacheHandlers&&r(Sn(49)),n.scopeId&&!s&&r(Sn(50));const l=Ot(e)?kL(e,n):e,[o,f]=DN();return GL(l,qt({},n,{prefixIdentifiers:a,nodeTransforms:[...o,...n.nodeTransforms||[]],directiveTransforms:qt({},f,n.directiveTransforms||{})})),YL(l,qt({},n,{prefixIdentifiers:a}))}const $N=()=>({props:[]}),kE=Symbol(""),LE=Symbol(""),NE=Symbol(""),RE=Symbol(""),Pg=Symbol(""),DE=Symbol(""),ME=Symbol(""),$E=Symbol(""),FE=Symbol(""),BE=Symbol("");mL({[kE]:"vModelRadio",[LE]:"vModelCheckbox",[NE]:"vModelText",[RE]:"vModelSelect",[Pg]:"vModelDynamic",[DE]:"withModifiers",[ME]:"withKeys",[$E]:"vShow",[FE]:"Transition",[BE]:"TransitionGroup"});let ka;function FN(e,n=!1){return ka||(ka=document.createElement("div")),n?(ka.innerHTML=`
`,ka.children[0].getAttribute("foo")):(ka.innerHTML=e,ka.textContent)}const BN=Jr("style,iframe,script,noscript",!0),UN={isVoidTag:r2,isNativeTag:e=>t2(e)||n2(e),isPreTag:e=>e==="pre",decodeEntities:FN,isBuiltInComponent:e=>{if(Ma(e,"Transition"))return FE;if(Ma(e,"TransitionGroup"))return BE},getNamespace(e,n){let r=n?n.ns:0;if(n&&r===2)if(n.tag==="annotation-xml"){if(e==="svg")return 1;n.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(n.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else n&&r===1&&(n.tag==="foreignObject"||n.tag==="desc"||n.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r},getTextMode({tag:e,ns:n}){if(n===0){if(e==="textarea"||e==="title")return 1;if(BN(e))return 2}return 0}},jN=e=>{e.type===1&&e.props.forEach((n,r)=>{n.type===6&&n.name==="style"&&n.value&&(e.props[r]={type:7,name:"bind",arg:Ft("style",!0,n.loc),exp:HN(n.value.content,n.loc),modifiers:[],loc:n.loc})})},HN=(e,n)=>{const r=Q0(e);return Ft(JSON.stringify(r),!1,n,3)};function ao(e,n){return Sn(e,n)}const WN=(e,n,r)=>{const{exp:s,loc:a}=e;return s||r.onError(ao(53,a)),n.children.length&&(r.onError(ao(54,a)),n.children.length=0),{props:[Rn(Ft("innerHTML",!0,a),s||Ft("",!0))]}},VN=(e,n,r)=>{const{exp:s,loc:a}=e;return s||r.onError(ao(55,a)),n.children.length&&(r.onError(ao(56,a)),n.children.length=0),{props:[Rn(Ft("textContent",!0),s?As(s,r)>0?s:Hn(r.helperString(zd),[s],a):Ft("",!0))]}},GN=(e,n,r)=>{const s=PE(e,n,r);if(!s.props.length||n.tagType===1)return s;e.arg&&r.onError(ao(58,e.arg.loc));const{tag:a}=n,l=r.isCustomElement(a);if(a==="input"||a==="textarea"||a==="select"||l){let o=NE,f=!1;if(a==="input"||l){const d=Yd(n,"type");if(d){if(d.type===7)o=Pg;else if(d.value)switch(d.value.content){case"radio":o=kE;break;case"checkbox":o=LE;break;case"file":f=!0,r.onError(ao(59,e.loc));break}}else TL(n)&&(o=Pg)}else a==="select"&&(o=RE);f||(s.needRuntime=r.helper(o))}else r.onError(ao(57,e.loc));return s.props=s.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),s},KN=Jr("passive,once,capture"),zN=Jr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),YN=Jr("left,right"),UE=Jr("onkeyup,onkeydown,onkeypress",!0),XN=(e,n,r,s)=>{const a=[],l=[],o=[];for(let f=0;fKr(e)&&e.content.toLowerCase()==="onclick"?Ft(n,!0):e.type!==4?Ws(["(",e,`) === "onClick" ? "${n}" : (`,e,")"]):e,QN=(e,n,r)=>IE(e,n,r,s=>{const{modifiers:a}=e;if(!a.length)return s;let{key:l,value:o}=s.props[0];const{keyModifiers:f,nonKeyModifiers:d,eventOptionModifiers:p}=XN(l,a,r,e.loc);if(d.includes("right")&&(l=M_(l,"onContextmenu")),d.includes("middle")&&(l=M_(l,"onMouseup")),d.length&&(o=Hn(r.helper(DE),[o,JSON.stringify(d)])),f.length&&(!Kr(l)||UE(l.content))&&(o=Hn(r.helper(ME),[o,JSON.stringify(f)])),p.length){const y=p.map(vo).join("");l=Kr(l)?Ft(`${l.content}${y}`,!0):Ws(["(",l,`) + "${y}"`])}return{props:[Rn(l,o)]}}),JN=(e,n,r)=>{const{exp:s,loc:a}=e;return s||r.onError(ao(61,a)),{props:[],needRuntime:r.helper($E)}},qN=(e,n)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&n.removeNode()},ZN=[jN],eR={cloak:$N,html:WN,text:VN,model:GN,on:QN,show:JN};function tR(e,n={}){return MN(e,qt({},UN,n,{nodeTransforms:[qN,...ZN,...n.nodeTransforms||[]],directiveTransforms:qt({},eR,n.directiveTransforms||{}),transformHoist:null}))}const $_=Object.create(null);function jE(e,n){if(!Ot(e))if(e.nodeType)e=e.innerHTML;else return kr;const r=e,s=$_[r];if(s)return s;if(e[0]==="#"){const f=document.querySelector(e);e=f?f.innerHTML:""}const a=qt({hoistStatic:!0,onError:void 0,onWarn:kr},n);!a.isCustomElement&&typeof customElements<"u"&&(a.isCustomElement=f=>!!customElements.get(f));const{code:l}=tR(e,a),o=new Function("Vue",l)(cL);return o._rc=!0,$_[r]=o}Mm(jE);const nR=Object.freeze(Object.defineProperty({__proto__:null,compile:jE,EffectScope:wd,ReactiveEffect:ol,customRef:b1,effect:r1,effectScope:sm,getCurrentScope:Sd,isProxy:Pd,isReactive:so,isReadonly:fo,isRef:Bn,isShallow:Ya,markRaw:kd,onScopeDispose:im,proxyRefs:Nd,reactive:Du,readonly:Od,ref:it,shallowReactive:lm,shallowReadonly:g1,shallowRef:fm,stop:s1,toRaw:Kt,toRef:x1,toRefs:_1,toValue:y1,triggerRef:v1,unref:Mu,camelize:Un,capitalize:vo,normalizeClass:Jt,normalizeProps:J0,normalizeStyle:il,toDisplayString:ce,toHandlerKey:Qo,BaseTransition:vm,BaseTransitionPropsValidators:Ud,Comment:cr,Fragment:Xt,KeepAlive:U1,Static:io,Suspense:N1,Teleport:yx,Text:Ii,assertNumber:S1,callWithAsyncErrorHandling:zr,callWithErrorHandling:oi,cloneVNode:Vs,compatUtils:Dx,computed:Jn,createBlock:In,createCommentVNode:nt,createElementBlock:ke,createElementVNode:C,createHydrationRenderer:Pm,createPropsRestProxy:ax,createRenderer:Im,createSlots:G1,createStaticVNode:Sx,createTextVNode:ln,createVNode:vt,defineAsyncComponent:B1,defineComponent:jd,defineEmits:X1,defineExpose:Q1,defineModel:Z1,defineOptions:J1,defineProps:Y1,defineSlots:q1,get devtools(){return Go},getCurrentInstance:Nr,getTransitionRawChildren:Fu,guardReactiveProps:Lm,h:Wu,handleError:yo,hasInjectionContext:fx,initCustomFormatter:kx,inject:vn,isMemoSame:Bm,isRuntimeOnly:Ox,isVNode:Pi,mergeDefaults:ix,mergeModels:ox,mergeProps:Rm,nextTick:Rd,onActivated:ym,onBeforeMount:Wd,onBeforeUnmount:ju,onBeforeUpdate:_m,onDeactivated:bm,onErrorCaptured:Sm,onMounted:aa,onRenderTracked:wm,onRenderTriggered:Em,onServerPrefetch:xm,onUnmounted:ul,onUpdated:Uu,openBlock:xe,popScopeId:P1,provide:Ci,pushScopeId:I1,queuePostFlushCb:Md,registerRuntimeCompiler:Mm,renderList:Lr,renderSlot:Hu,resolveComponent:rn,resolveDirective:V1,resolveDynamicComponent:W1,resolveFilter:Rx,resolveTransitionHooks:ta,setBlockTracking:qf,setDevtoolsHook:pm,setTransitionHooks:po,ssrContextKey:$m,ssrUtils:Nx,toHandlers:z1,transformVNodeArgs:Ex,useAttrs:nx,useModel:rx,useSSRContext:Fm,useSlots:tx,useTransitionState:Bd,version:Um,warn:w1,watch:Yr,watchEffect:D1,watchPostEffect:mm,watchSyncEffect:M1,withAsyncContext:lx,withCtx:Pr,withDefaults:ex,withDirectives:on,withMemo:Lx,withScopeId:k1,Transition:bo,TransitionGroup:Kx,VueElement:Vu,createApp:Wm,createSSRApp:eE,defineCustomElement:jm,defineSSRCustomElement:Mx,hydrate:Hm,initDirectivesForSSR:nE,render:ed,useCssModule:$x,useCssVars:Fx,vModelCheckbox:Gu,vModelDynamic:Au,vModelRadio:Ku,vModelSelect:ps,vModelText:Vn,vShow:Kd,withKeys:Qx,withModifiers:Xx},Symbol.toStringTag,{value:"Module"}));/*! + * shared v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const kg=typeof window<"u",rR=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",_o=e=>rR?Symbol(e):e,sR=(e,n,r)=>iR({l:e,k:n,s:r}),iR=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),qn=e=>typeof e=="number"&&isFinite(e),oR=e=>cv(e)==="[object Date]",mo=e=>cv(e)==="[object RegExp]",qd=e=>wt(e)&&Object.keys(e).length===0;function aR(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const ir=Object.assign;let F_;const pu=()=>F_||(F_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function B_(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const lR=Object.prototype.hasOwnProperty;function uv(e,n){return lR.call(e,n)}const bn=Array.isArray,Fn=e=>typeof e=="function",Ve=e=>typeof e=="string",Qt=e=>typeof e=="boolean",_n=e=>e!==null&&typeof e=="object",HE=Object.prototype.toString,cv=e=>HE.call(e),wt=e=>cv(e)==="[object Object]",uR=e=>e==null?"":bn(e)||wt(e)&&e.toString===HE?JSON.stringify(e,null,2):String(e);/*! + * message-compiler v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const sn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Zd(e,n,r={}){const{domain:s,messages:a,args:l}=r,o=e,f=new SyntaxError(String(o));return f.code=e,n&&(f.location=n),f.domain=s,f}function cR(e){throw e}function fR(e,n,r){return{line:e,column:n,offset:r}}function Lg(e,n,r){const s={start:e,end:n};return r!=null&&(s.source=r),s}const Ei=" ",dR="\r",Ir=` +`,pR=String.fromCharCode(8232),hR=String.fromCharCode(8233);function gR(e){const n=e;let r=0,s=1,a=1,l=0;const o=m=>n[m]===dR&&n[m+1]===Ir,f=m=>n[m]===Ir,d=m=>n[m]===hR,p=m=>n[m]===pR,y=m=>o(m)||f(m)||d(m)||p(m),v=()=>r,_=()=>s,w=()=>a,T=()=>l,P=m=>o(m)||d(m)||p(m)?Ir:n[m],M=()=>P(r),S=()=>P(r+l);function I(){return l=0,y(r)&&(s++,a=0),o(r)&&r++,r++,a++,n[r]}function B(){return o(r+l)&&l++,l++,n[r+l]}function R(){r=0,s=1,a=1,l=0}function $(m=0){l=m}function G(){const m=r+l;for(;m!==r;)I();l=0}return{index:v,line:_,column:w,peekOffset:T,charAt:P,currentChar:M,currentPeek:S,next:I,peek:B,reset:R,resetPeek:$,skipToPeek:G}}const Qi=void 0,U_="'",mR="tokenizer";function vR(e,n={}){const r=n.location!==!1,s=gR(e),a=()=>s.index(),l=()=>fR(s.line(),s.column(),s.index()),o=l(),f=a(),d={currentType:14,offset:f,startLoc:o,endLoc:o,lastType:14,lastOffset:f,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},p=()=>d,{onError:y}=n;function v(L,N,z,...se){const ae=p();if(N.column+=z,N.offset+=z,y){const Ce=Lg(ae.startLoc,N),Re=Zd(L,Ce,{domain:mR,args:se});y(Re)}}function _(L,N,z){L.endLoc=l(),L.currentType=N;const se={type:N};return r&&(se.loc=Lg(L.startLoc,L.endLoc)),z!=null&&(se.value=z),se}const w=L=>_(L,14);function T(L,N){return L.currentChar()===N?(L.next(),N):(v(sn.EXPECTED_TOKEN,l(),0,N),"")}function P(L){let N="";for(;L.currentPeek()===Ei||L.currentPeek()===Ir;)N+=L.currentPeek(),L.peek();return N}function M(L){const N=P(L);return L.skipToPeek(),N}function S(L){if(L===Qi)return!1;const N=L.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N===95}function I(L){if(L===Qi)return!1;const N=L.charCodeAt(0);return N>=48&&N<=57}function B(L,N){const{currentType:z}=N;if(z!==2)return!1;P(L);const se=S(L.currentPeek());return L.resetPeek(),se}function R(L,N){const{currentType:z}=N;if(z!==2)return!1;P(L);const se=L.currentPeek()==="-"?L.peek():L.currentPeek(),ae=I(se);return L.resetPeek(),ae}function $(L,N){const{currentType:z}=N;if(z!==2)return!1;P(L);const se=L.currentPeek()===U_;return L.resetPeek(),se}function G(L,N){const{currentType:z}=N;if(z!==8)return!1;P(L);const se=L.currentPeek()===".";return L.resetPeek(),se}function m(L,N){const{currentType:z}=N;if(z!==9)return!1;P(L);const se=S(L.currentPeek());return L.resetPeek(),se}function Y(L,N){const{currentType:z}=N;if(!(z===8||z===12))return!1;P(L);const se=L.currentPeek()===":";return L.resetPeek(),se}function j(L,N){const{currentType:z}=N;if(z!==10)return!1;const se=()=>{const Ce=L.currentPeek();return Ce==="{"?S(L.peek()):Ce==="@"||Ce==="%"||Ce==="|"||Ce===":"||Ce==="."||Ce===Ei||!Ce?!1:Ce===Ir?(L.peek(),se()):S(Ce)},ae=se();return L.resetPeek(),ae}function K(L){P(L);const N=L.currentPeek()==="|";return L.resetPeek(),N}function re(L){const N=P(L),z=L.currentPeek()==="%"&&L.peek()==="{";return L.resetPeek(),{isModulo:z,hasSpace:N.length>0}}function pe(L,N=!0){const z=(ae=!1,Ce="",Re=!1)=>{const Le=L.currentPeek();return Le==="{"?Ce==="%"?!1:ae:Le==="@"||!Le?Ce==="%"?!0:ae:Le==="%"?(L.peek(),z(ae,"%",!0)):Le==="|"?Ce==="%"||Re?!0:!(Ce===Ei||Ce===Ir):Le===Ei?(L.peek(),z(!0,Ei,Re)):Le===Ir?(L.peek(),z(!0,Ir,Re)):!0},se=z();return N&&L.resetPeek(),se}function q(L,N){const z=L.currentChar();return z===Qi?Qi:N(z)?(L.next(),z):null}function le(L){return q(L,z=>{const se=z.charCodeAt(0);return se>=97&&se<=122||se>=65&&se<=90||se>=48&&se<=57||se===95||se===36})}function Fe(L){return q(L,z=>{const se=z.charCodeAt(0);return se>=48&&se<=57})}function Ee(L){return q(L,z=>{const se=z.charCodeAt(0);return se>=48&&se<=57||se>=65&&se<=70||se>=97&&se<=102})}function Ae(L){let N="",z="";for(;N=Fe(L);)z+=N;return z}function $e(L){M(L);const N=L.currentChar();return N!=="%"&&v(sn.EXPECTED_TOKEN,l(),0,N),L.next(),"%"}function tt(L){let N="";for(;;){const z=L.currentChar();if(z==="{"||z==="}"||z==="@"||z==="|"||!z)break;if(z==="%")if(pe(L))N+=z,L.next();else break;else if(z===Ei||z===Ir)if(pe(L))N+=z,L.next();else{if(K(L))break;N+=z,L.next()}else N+=z,L.next()}return N}function Rt(L){M(L);let N="",z="";for(;N=le(L);)z+=N;return L.currentChar()===Qi&&v(sn.UNTERMINATED_CLOSING_BRACE,l(),0),z}function ot(L){M(L);let N="";return L.currentChar()==="-"?(L.next(),N+=`-${Ae(L)}`):N+=Ae(L),L.currentChar()===Qi&&v(sn.UNTERMINATED_CLOSING_BRACE,l(),0),N}function mt(L){M(L),T(L,"'");let N="",z="";const se=Ce=>Ce!==U_&&Ce!==Ir;for(;N=q(L,se);)N==="\\"?z+=zt(L):z+=N;const ae=L.currentChar();return ae===Ir||ae===Qi?(v(sn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),ae===Ir&&(L.next(),T(L,"'")),z):(T(L,"'"),z)}function zt(L){const N=L.currentChar();switch(N){case"\\":case"'":return L.next(),`\\${N}`;case"u":return Zt(L,N,4);case"U":return Zt(L,N,6);default:return v(sn.UNKNOWN_ESCAPE_SEQUENCE,l(),0,N),""}}function Zt(L,N,z){T(L,N);let se="";for(let ae=0;aeae!=="{"&&ae!=="}"&&ae!==Ei&&ae!==Ir;for(;N=q(L,se);)z+=N;return z}function dt(L){let N="",z="";for(;N=le(L);)z+=N;return z}function Lt(L){const N=(z=!1,se)=>{const ae=L.currentChar();return ae==="{"||ae==="%"||ae==="@"||ae==="|"||!ae||ae===Ei?se:ae===Ir?(se+=ae,L.next(),N(z,se)):(se+=ae,L.next(),N(!0,se))};return N(!1,"")}function en(L){M(L);const N=T(L,"|");return M(L),N}function It(L,N){let z=null;switch(L.currentChar()){case"{":return N.braceNest>=1&&v(sn.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),L.next(),z=_(N,2,"{"),M(L),N.braceNest++,z;case"}":return N.braceNest>0&&N.currentType===2&&v(sn.EMPTY_PLACEHOLDER,l(),0),L.next(),z=_(N,3,"}"),N.braceNest--,N.braceNest>0&&M(L),N.inLinked&&N.braceNest===0&&(N.inLinked=!1),z;case"@":return N.braceNest>0&&v(sn.UNTERMINATED_CLOSING_BRACE,l(),0),z=Ht(L,N)||w(N),N.braceNest=0,z;default:let ae=!0,Ce=!0,Re=!0;if(K(L))return N.braceNest>0&&v(sn.UNTERMINATED_CLOSING_BRACE,l(),0),z=_(N,1,en(L)),N.braceNest=0,N.inLinked=!1,z;if(N.braceNest>0&&(N.currentType===5||N.currentType===6||N.currentType===7))return v(sn.UNTERMINATED_CLOSING_BRACE,l(),0),N.braceNest=0,gn(L,N);if(ae=B(L,N))return z=_(N,5,Rt(L)),M(L),z;if(Ce=R(L,N))return z=_(N,6,ot(L)),M(L),z;if(Re=$(L,N))return z=_(N,7,mt(L)),M(L),z;if(!ae&&!Ce&&!Re)return z=_(N,13,Dt(L)),v(sn.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,z.value),M(L),z;break}return z}function Ht(L,N){const{currentType:z}=N;let se=null;const ae=L.currentChar();switch((z===8||z===9||z===12||z===10)&&(ae===Ir||ae===Ei)&&v(sn.INVALID_LINKED_FORMAT,l(),0),ae){case"@":return L.next(),se=_(N,8,"@"),N.inLinked=!0,se;case".":return M(L),L.next(),_(N,9,".");case":":return M(L),L.next(),_(N,10,":");default:return K(L)?(se=_(N,1,en(L)),N.braceNest=0,N.inLinked=!1,se):G(L,N)||Y(L,N)?(M(L),Ht(L,N)):m(L,N)?(M(L),_(N,12,dt(L))):j(L,N)?(M(L),ae==="{"?It(L,N)||se:_(N,11,Lt(L))):(z===8&&v(sn.INVALID_LINKED_FORMAT,l(),0),N.braceNest=0,N.inLinked=!1,gn(L,N))}}function gn(L,N){let z={type:14};if(N.braceNest>0)return It(L,N)||w(N);if(N.inLinked)return Ht(L,N)||w(N);switch(L.currentChar()){case"{":return It(L,N)||w(N);case"}":return v(sn.UNBALANCED_CLOSING_BRACE,l(),0),L.next(),_(N,3,"}");case"@":return Ht(L,N)||w(N);default:if(K(L))return z=_(N,1,en(L)),N.braceNest=0,N.inLinked=!1,z;const{isModulo:ae,hasSpace:Ce}=re(L);if(ae)return Ce?_(N,0,tt(L)):_(N,4,$e(L));if(pe(L))return _(N,0,tt(L));break}return z}function X(){const{currentType:L,offset:N,startLoc:z,endLoc:se}=d;return d.lastType=L,d.lastOffset=N,d.lastStartLoc=z,d.lastEndLoc=se,d.offset=a(),d.startLoc=l(),s.currentChar()===Qi?_(d,14):gn(s,d)}return{nextToken:X,currentOffset:a,currentPosition:l,context:p}}const yR="parser",bR=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function _R(e,n,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(n||r,16);return s<=55295||s>=57344?String.fromCodePoint(s):"\uFFFD"}}}function xR(e={}){const n=e.location!==!1,{onError:r}=e;function s(S,I,B,R,...$){const G=S.currentPosition();if(G.offset+=R,G.column+=R,r){const m=Lg(B,G),Y=Zd(I,m,{domain:yR,args:$});r(Y)}}function a(S,I,B){const R={type:S,start:I,end:I};return n&&(R.loc={start:B,end:B}),R}function l(S,I,B,R){S.end=I,R&&(S.type=R),n&&S.loc&&(S.loc.end=B)}function o(S,I){const B=S.context(),R=a(3,B.offset,B.startLoc);return R.value=I,l(R,S.currentOffset(),S.currentPosition()),R}function f(S,I){const B=S.context(),{lastOffset:R,lastStartLoc:$}=B,G=a(5,R,$);return G.index=parseInt(I,10),S.nextToken(),l(G,S.currentOffset(),S.currentPosition()),G}function d(S,I){const B=S.context(),{lastOffset:R,lastStartLoc:$}=B,G=a(4,R,$);return G.key=I,S.nextToken(),l(G,S.currentOffset(),S.currentPosition()),G}function p(S,I){const B=S.context(),{lastOffset:R,lastStartLoc:$}=B,G=a(9,R,$);return G.value=I.replace(bR,_R),S.nextToken(),l(G,S.currentOffset(),S.currentPosition()),G}function y(S){const I=S.nextToken(),B=S.context(),{lastOffset:R,lastStartLoc:$}=B,G=a(8,R,$);return I.type!==12?(s(S,sn.UNEXPECTED_EMPTY_LINKED_MODIFIER,B.lastStartLoc,0),G.value="",l(G,R,$),{nextConsumeToken:I,node:G}):(I.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,B.lastStartLoc,0,ni(I)),G.value=I.value||"",l(G,S.currentOffset(),S.currentPosition()),{node:G})}function v(S,I){const B=S.context(),R=a(7,B.offset,B.startLoc);return R.value=I,l(R,S.currentOffset(),S.currentPosition()),R}function _(S){const I=S.context(),B=a(6,I.offset,I.startLoc);let R=S.nextToken();if(R.type===9){const $=y(S);B.modifier=$.node,R=$.nextConsumeToken||S.nextToken()}switch(R.type!==10&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(R)),R=S.nextToken(),R.type===2&&(R=S.nextToken()),R.type){case 11:R.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(R)),B.key=v(S,R.value||"");break;case 5:R.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(R)),B.key=d(S,R.value||"");break;case 6:R.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(R)),B.key=f(S,R.value||"");break;case 7:R.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(R)),B.key=p(S,R.value||"");break;default:s(S,sn.UNEXPECTED_EMPTY_LINKED_KEY,I.lastStartLoc,0);const $=S.context(),G=a(7,$.offset,$.startLoc);return G.value="",l(G,$.offset,$.startLoc),B.key=G,l(B,$.offset,$.startLoc),{nextConsumeToken:R,node:B}}return l(B,S.currentOffset(),S.currentPosition()),{node:B}}function w(S){const I=S.context(),B=I.currentType===1?S.currentOffset():I.offset,R=I.currentType===1?I.endLoc:I.startLoc,$=a(2,B,R);$.items=[];let G=null;do{const j=G||S.nextToken();switch(G=null,j.type){case 0:j.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(j)),$.items.push(o(S,j.value||""));break;case 6:j.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(j)),$.items.push(f(S,j.value||""));break;case 5:j.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(j)),$.items.push(d(S,j.value||""));break;case 7:j.value==null&&s(S,sn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,ni(j)),$.items.push(p(S,j.value||""));break;case 8:const K=_(S);$.items.push(K.node),G=K.nextConsumeToken||null;break}}while(I.currentType!==14&&I.currentType!==1);const m=I.currentType===1?I.lastOffset:S.currentOffset(),Y=I.currentType===1?I.lastEndLoc:S.currentPosition();return l($,m,Y),$}function T(S,I,B,R){const $=S.context();let G=R.items.length===0;const m=a(1,I,B);m.cases=[],m.cases.push(R);do{const Y=w(S);G||(G=Y.items.length===0),m.cases.push(Y)}while($.currentType!==14);return G&&s(S,sn.MUST_HAVE_MESSAGES_IN_PLURAL,B,0),l(m,S.currentOffset(),S.currentPosition()),m}function P(S){const I=S.context(),{offset:B,startLoc:R}=I,$=w(S);return I.currentType===14?$:T(S,B,R,$)}function M(S){const I=vR(S,ir({},e)),B=I.context(),R=a(0,B.offset,B.startLoc);return n&&R.loc&&(R.loc.source=S),R.body=P(I),B.currentType!==14&&s(I,sn.UNEXPECTED_LEXICAL_ANALYSIS,B.lastStartLoc,0,S[B.offset]||""),l(R,I.currentOffset(),I.currentPosition()),R}return{parse:M}}function ni(e){if(e.type===14)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"\u2026":n}function ER(e,n={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:l=>(r.helpers.add(l),l)}}function j_(e,n){for(let r=0;ro;function d(P,M){o.code+=P}function p(P,M=!0){const S=M?a:"";d(l?S+" ".repeat(P):S)}function y(P=!0){const M=++o.indentLevel;P&&p(M)}function v(P=!0){const M=--o.indentLevel;P&&p(M)}function _(){p(o.indentLevel)}return{context:f,push:d,indent:y,deindent:v,newline:_,helper:P=>`_${P}`,needIndent:()=>o.needIndent}}function TR(e,n){const{helper:r}=e;e.push(`${r("linked")}(`),tl(e,n.key),n.modifier?(e.push(", "),tl(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function CR(e,n){const{helper:r,needIndent:s}=e;e.push(`${r("normalize")}([`),e.indent(s());const a=n.items.length;for(let l=0;l1){e.push(`${r("plural")}([`),e.indent(s());const a=n.cases.length;for(let l=0;l{const r=Ve(n.mode)?n.mode:"normal",s=Ve(n.filename)?n.filename:"message.intl",a=!!n.sourceMap,l=n.breakLineCode!=null?n.breakLineCode:r==="arrow"?";":` +`,o=n.needIndent?n.needIndent:r!=="arrow",f=e.helpers||[],d=SR(e,{mode:r,filename:s,sourceMap:a,breakLineCode:l,needIndent:o});d.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(o),f.length>0&&(d.push(`const { ${f.map(v=>`${v}: _${v}`).join(", ")} } = ctx`),d.newline()),d.push("return "),tl(d,e),d.deindent(o),d.push("}");const{code:p,map:y}=d.context();return{ast:e,code:p,map:y?y.toJSON():void 0}};function PR(e,n={}){const r=ir({},n),a=xR(r).parse(e);return wR(a,r),IR(a,r)}/*! + * devtools-if v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const WE={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! + * core-base v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const xo=[];xo[0]={w:[0],i:[3,0],["["]:[4],o:[7]};xo[1]={w:[1],["."]:[2],["["]:[4],o:[7]};xo[2]={w:[2],i:[3,0],[0]:[3,0]};xo[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};xo[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};xo[5]={["'"]:[4,0],o:8,l:[5,0]};xo[6]={['"']:[4,0],o:8,l:[6,0]};const kR=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function LR(e){return kR.test(e)}function NR(e){const n=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return n===r&&(n===34||n===39)?e.slice(1,-1):e}function RR(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function DR(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:LR(n)?NR(n):"*"+n}function MR(e){const n=[];let r=-1,s=0,a=0,l,o,f,d,p,y,v;const _=[];_[0]=()=>{o===void 0?o=f:o+=f},_[1]=()=>{o!==void 0&&(n.push(o),o=void 0)},_[2]=()=>{_[0](),a++},_[3]=()=>{if(a>0)a--,s=4,_[0]();else{if(a=0,o===void 0||(o=DR(o),o===!1))return!1;_[1]()}};function w(){const T=e[r+1];if(s===5&&T==="'"||s===6&&T==='"')return r++,f="\\"+T,_[0](),!0}for(;s!==null;)if(r++,l=e[r],!(l==="\\"&&w())){if(d=RR(l),v=xo[s],p=v[d]||v.l||8,p===8||(s=p[0],p[1]!==void 0&&(y=_[p[1]],y&&(f=l,y()===!1))))return;if(s===7)return n}}const H_=new Map;function $R(e,n){return _n(e)?e[n]:null}function FR(e,n){if(!_n(e))return null;let r=H_.get(n);if(r||(r=MR(n),r&&H_.set(n,r)),!r)return null;const s=r.length;let a=e,l=0;for(;le,UR=e=>"",jR="text",HR=e=>e.length===0?"":e.join(""),WR=uR;function W_(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function VR(e){const n=qn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(qn(e.named.count)||qn(e.named.n))?qn(e.named.count)?e.named.count:qn(e.named.n)?e.named.n:n:n}function GR(e,n){n.count||(n.count=e),n.n||(n.n=e)}function KR(e={}){const n=e.locale,r=VR(e),s=_n(e.pluralRules)&&Ve(n)&&Fn(e.pluralRules[n])?e.pluralRules[n]:W_,a=_n(e.pluralRules)&&Ve(n)&&Fn(e.pluralRules[n])?W_:void 0,l=S=>S[s(r,S.length,a)],o=e.list||[],f=S=>o[S],d=e.named||{};qn(e.pluralIndex)&&GR(r,d);const p=S=>d[S];function y(S){const I=Fn(e.messages)?e.messages(S):_n(e.messages)?e.messages[S]:!1;return I||(e.parent?e.parent.message(S):UR)}const v=S=>e.modifiers?e.modifiers[S]:BR,_=wt(e.processor)&&Fn(e.processor.normalize)?e.processor.normalize:HR,w=wt(e.processor)&&Fn(e.processor.interpolate)?e.processor.interpolate:WR,T=wt(e.processor)&&Ve(e.processor.type)?e.processor.type:jR,M={list:f,named:p,plural:l,linked:(S,...I)=>{const[B,R]=I;let $="text",G="";I.length===1?_n(B)?(G=B.modifier||G,$=B.type||$):Ve(B)&&(G=B||G):I.length===2&&(Ve(B)&&(G=B||G),Ve(R)&&($=R||$));let m=y(S)(M);return $==="vnode"&&bn(m)&&G&&(m=m[0]),G?v(G)(m,$):m},message:y,type:T,interpolate:w,normalize:_};return M}let Ru=null;function zR(e){Ru=e}function YR(e,n,r){Ru&&Ru.emit(WE.I18nInit,{timestamp:Date.now(),i18n:e,version:n,meta:r})}const XR=QR(WE.FunctionTranslate);function QR(e){return n=>Ru&&Ru.emit(e,n)}const JR={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function qR(e,n,r){return[...new Set([r,...bn(n)?n:_n(n)?Object.keys(n):Ve(n)?[n]:[r]])]}function VE(e,n,r){const s=Ve(r)?r:Ju,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(s);if(!l){l=[];let o=[r];for(;bn(o);)o=V_(l,o,n);const f=bn(n)||!wt(n)?n:n.default?n.default:null;o=Ve(f)?[f]:f,bn(o)&&V_(l,o,!1),a.__localeChainCache.set(s,l)}return l}function V_(e,n,r){let s=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function nD(){return{upper:(e,n)=>n==="text"&&Ve(e)?e.toUpperCase():n==="vnode"&&_n(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&Ve(e)?e.toLowerCase():n==="vnode"&&_n(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&Ve(e)?K_(e):n==="vnode"&&_n(e)&&"__v_isVNode"in e?K_(e.children):e}}let GE;function rD(e){GE=e}let KE;function sD(e){KE=e}let zE;function iD(e){zE=e}let YE=null;const z_=e=>{YE=e},oD=()=>YE;let XE=null;const Y_=e=>{XE=e},aD=()=>XE;let X_=0;function lD(e={}){const n=Ve(e.version)?e.version:tD,r=Ve(e.locale)?e.locale:Ju,s=bn(e.fallbackLocale)||wt(e.fallbackLocale)||Ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=wt(e.messages)?e.messages:{[r]:{}},l=wt(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},o=wt(e.numberFormats)?e.numberFormats:{[r]:{}},f=ir({},e.modifiers||{},nD()),d=e.pluralRules||{},p=Fn(e.missing)?e.missing:null,y=Qt(e.missingWarn)||mo(e.missingWarn)?e.missingWarn:!0,v=Qt(e.fallbackWarn)||mo(e.fallbackWarn)?e.fallbackWarn:!0,_=!!e.fallbackFormat,w=!!e.unresolving,T=Fn(e.postTranslation)?e.postTranslation:null,P=wt(e.processor)?e.processor:null,M=Qt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,I=Fn(e.messageCompiler)?e.messageCompiler:GE,B=Fn(e.messageResolver)?e.messageResolver:KE||$R,R=Fn(e.localeFallbacker)?e.localeFallbacker:zE||qR,$=_n(e.fallbackContext)?e.fallbackContext:void 0,G=Fn(e.onWarn)?e.onWarn:aR,m=e,Y=_n(m.__datetimeFormatters)?m.__datetimeFormatters:new Map,j=_n(m.__numberFormatters)?m.__numberFormatters:new Map,K=_n(m.__meta)?m.__meta:{};X_++;const re={version:n,cid:X_,locale:r,fallbackLocale:s,messages:a,modifiers:f,pluralRules:d,missing:p,missingWarn:y,fallbackWarn:v,fallbackFormat:_,unresolving:w,postTranslation:T,processor:P,warnHtmlMessage:M,escapeParameter:S,messageCompiler:I,messageResolver:B,localeFallbacker:R,fallbackContext:$,onWarn:G,__meta:K};return re.datetimeFormats=l,re.numberFormats=o,re.__datetimeFormatters=Y,re.__numberFormatters=j,__INTLIFY_PROD_DEVTOOLS__&&YR(re,n,K),re}function dv(e,n,r,s,a){const{missing:l,onWarn:o}=e;if(l!==null){const f=l(e,r,n,a);return Ve(f)?f:n}else return n}function Yl(e,n,r){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,r,n)}const uD=e=>e;let Q_=Object.create(null);function cD(e,n={}){{const s=(n.onCacheKey||uD)(e),a=Q_[s];if(a)return a;let l=!1;const o=n.onError||cR;n.onError=p=>{l=!0,o(p)};const{code:f}=PR(e,n),d=new Function(`return ${f}`)();return l?d:Q_[s]=d}}let QE=sn.__EXTEND_POINT__;const Vh=()=>++QE,$a={INVALID_ARGUMENT:QE,INVALID_DATE_ARGUMENT:Vh(),INVALID_ISO_DATE_ARGUMENT:Vh(),__EXTEND_POINT__:Vh()};function Fa(e){return Zd(e,null,void 0)}const J_=()=>"",si=e=>Fn(e);function q_(e,...n){const{fallbackFormat:r,postTranslation:s,unresolving:a,messageCompiler:l,fallbackLocale:o,messages:f}=e,[d,p]=Ng(...n),y=Qt(p.missingWarn)?p.missingWarn:e.missingWarn,v=Qt(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,_=Qt(p.escapeParameter)?p.escapeParameter:e.escapeParameter,w=!!p.resolvedMessage,T=Ve(p.default)||Qt(p.default)?Qt(p.default)?l?d:()=>d:p.default:r?l?d:()=>d:"",P=r||T!=="",M=Ve(p.locale)?p.locale:e.locale;_&&fD(p);let[S,I,B]=w?[d,M,f[M]||{}]:JE(e,d,M,o,v,y),R=S,$=d;if(!w&&!(Ve(R)||si(R))&&P&&(R=T,$=R),!w&&(!(Ve(R)||si(R))||!Ve(I)))return a?ep:d;let G=!1;const m=()=>{G=!0},Y=si(R)?R:qE(e,d,I,R,$,m);if(G)return R;const j=hD(e,I,B,p),K=KR(j),re=dD(e,Y,K),pe=s?s(re,d):re;if(__INTLIFY_PROD_DEVTOOLS__){const q={timestamp:Date.now(),key:Ve(d)?d:si(R)?R.key:"",locale:I||(si(R)?R.locale:""),format:Ve(R)?R:si(R)?R.source:"",message:pe};q.meta=ir({},e.__meta,oD()||{}),XR(q)}return pe}function fD(e){bn(e.list)?e.list=e.list.map(n=>Ve(n)?B_(n):n):_n(e.named)&&Object.keys(e.named).forEach(n=>{Ve(e.named[n])&&(e.named[n]=B_(e.named[n]))})}function JE(e,n,r,s,a,l){const{messages:o,onWarn:f,messageResolver:d,localeFallbacker:p}=e,y=p(e,s,r);let v={},_,w=null;const T="translate";for(let P=0;Ps;return p.locale=r,p.key=n,p}const d=o(s,pD(e,r,a,s,f,l));return d.locale=r,d.key=n,d.source=s,d}function dD(e,n,r){return n(r)}function Ng(...e){const[n,r,s]=e,a={};if(!Ve(n)&&!qn(n)&&!si(n))throw Fa($a.INVALID_ARGUMENT);const l=qn(n)?String(n):(si(n),n);return qn(r)?a.plural=r:Ve(r)?a.default=r:wt(r)&&!qd(r)?a.named=r:bn(r)&&(a.list=r),qn(s)?a.plural=s:Ve(s)?a.default=s:wt(s)&&ir(a,s),[l,a]}function pD(e,n,r,s,a,l){return{warnHtmlMessage:a,onError:o=>{throw l&&l(o),o},onCacheKey:o=>sR(n,r,o)}}function hD(e,n,r,s){const{modifiers:a,pluralRules:l,messageResolver:o,fallbackLocale:f,fallbackWarn:d,missingWarn:p,fallbackContext:y}=e,_={locale:n,modifiers:a,pluralRules:l,messages:w=>{let T=o(r,w);if(T==null&&y){const[,,P]=JE(y,w,n,f,d,p);T=o(P,w)}if(Ve(T)){let P=!1;const S=qE(e,w,n,T,w,()=>{P=!0});return P?J_:S}else return si(T)?T:J_}};return e.processor&&(_.processor=e.processor),s.list&&(_.list=s.list),s.named&&(_.named=s.named),qn(s.plural)&&(_.pluralIndex=s.plural),_}function Z_(e,...n){const{datetimeFormats:r,unresolving:s,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:f}=e,[d,p,y,v]=Rg(...n),_=Qt(y.missingWarn)?y.missingWarn:e.missingWarn;Qt(y.fallbackWarn)?y.fallbackWarn:e.fallbackWarn;const w=!!y.part,T=Ve(y.locale)?y.locale:e.locale,P=o(e,a,T);if(!Ve(d)||d==="")return new Intl.DateTimeFormat(T,v).format(p);let M={},S,I=null;const B="datetime format";for(let G=0;G{ZE.includes(d)?o[d]=r[d]:l[d]=r[d]}),Ve(s)?l.locale=s:wt(s)&&(o=s),wt(a)&&(o=a),[l.key||"",f,l,o]}function e0(e,n,r){const s=e;for(const a in r){const l=`${n}__${a}`;!s.__datetimeFormatters.has(l)||s.__datetimeFormatters.delete(l)}}function t0(e,...n){const{numberFormats:r,unresolving:s,fallbackLocale:a,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:f}=e,[d,p,y,v]=Dg(...n),_=Qt(y.missingWarn)?y.missingWarn:e.missingWarn;Qt(y.fallbackWarn)?y.fallbackWarn:e.fallbackWarn;const w=!!y.part,T=Ve(y.locale)?y.locale:e.locale,P=o(e,a,T);if(!Ve(d)||d==="")return new Intl.NumberFormat(T,v).format(p);let M={},S,I=null;const B="number format";for(let G=0;G{ew.includes(d)?o[d]=r[d]:l[d]=r[d]}),Ve(s)?l.locale=s:wt(s)&&(o=s),wt(a)&&(o=a),[l.key||"",f,l,o]}function n0(e,n,r){const s=e;for(const a in r){const l=`${n}__${a}`;!s.__numberFormatters.has(l)||s.__numberFormatters.delete(l)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(pu().__INTLIFY_PROD_DEVTOOLS__=!1);/*! + * vue-i18n v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const gD="9.2.2";function mD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(pu().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(pu().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(pu().__INTLIFY_PROD_DEVTOOLS__=!1)}JR.__EXTEND_POINT__;let tw=sn.__EXTEND_POINT__;const jr=()=>++tw,Gn={UNEXPECTED_RETURN_TYPE:tw,INVALID_ARGUMENT:jr(),MUST_BE_CALL_SETUP_TOP:jr(),NOT_INSLALLED:jr(),NOT_AVAILABLE_IN_LEGACY_MODE:jr(),REQUIRED_VALUE:jr(),INVALID_VALUE:jr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:jr(),NOT_INSLALLED_WITH_PROVIDE:jr(),UNEXPECTED_ERROR:jr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:jr(),BRIDGE_SUPPORT_VUE_2_ONLY:jr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:jr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:jr(),__EXTEND_POINT__:jr()};function er(e,...n){return Zd(e,null,void 0)}const Mg=_o("__transrateVNode"),$g=_o("__datetimeParts"),Fg=_o("__numberParts"),nw=_o("__setPluralRules");_o("__intlifyMeta");const rw=_o("__injectWithOption");function Bg(e){if(!_n(e))return e;for(const n in e)if(!!uv(e,n))if(!n.includes("."))_n(e[n])&&Bg(e[n]);else{const r=n.split("."),s=r.length-1;let a=e;for(let l=0;l{if("locale"in f&&"resource"in f){const{locale:d,resource:p}=f;d?(o[d]=o[d]||{},hu(p,o[d])):hu(p,o)}else Ve(f)&&hu(JSON.parse(f),o)}),a==null&&l)for(const f in o)uv(o,f)&&Bg(o[f]);return o}const Sf=e=>!_n(e)||bn(e);function hu(e,n){if(Sf(e)||Sf(n))throw er(Gn.INVALID_VALUE);for(const r in e)uv(e,r)&&(Sf(e[r])||Sf(n[r])?n[r]=e[r]:hu(e[r],n[r]))}function sw(e){return e.type}function iw(e,n,r){let s=_n(n.messages)?n.messages:{};"__i18nGlobal"in r&&(s=tp(e.locale.value,{messages:s,__i18n:r.__i18nGlobal}));const a=Object.keys(s);a.length&&a.forEach(l=>{e.mergeLocaleMessage(l,s[l])});{if(_n(n.datetimeFormats)){const l=Object.keys(n.datetimeFormats);l.length&&l.forEach(o=>{e.mergeDateTimeFormat(o,n.datetimeFormats[o])})}if(_n(n.numberFormats)){const l=Object.keys(n.numberFormats);l.length&&l.forEach(o=>{e.mergeNumberFormat(o,n.numberFormats[o])})}}}function r0(e){return vt(Ii,null,e,0)}const s0="__INTLIFY_META__";let i0=0;function o0(e){return(n,r,s,a)=>e(r,s,Nr()||void 0,a)}const vD=()=>{const e=Nr();let n=null;return e&&(n=sw(e)[s0])?{[s0]:n}:null};function pv(e={},n){const{__root:r}=e,s=r===void 0;let a=Qt(e.inheritLocale)?e.inheritLocale:!0;const l=it(r&&a?r.locale.value:Ve(e.locale)?e.locale:Ju),o=it(r&&a?r.fallbackLocale.value:Ve(e.fallbackLocale)||bn(e.fallbackLocale)||wt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),f=it(tp(l.value,e)),d=it(wt(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),p=it(wt(e.numberFormats)?e.numberFormats:{[l.value]:{}});let y=r?r.missingWarn:Qt(e.missingWarn)||mo(e.missingWarn)?e.missingWarn:!0,v=r?r.fallbackWarn:Qt(e.fallbackWarn)||mo(e.fallbackWarn)?e.fallbackWarn:!0,_=r?r.fallbackRoot:Qt(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,T=Fn(e.missing)?e.missing:null,P=Fn(e.missing)?o0(e.missing):null,M=Fn(e.postTranslation)?e.postTranslation:null,S=r?r.warnHtmlMessage:Qt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter;const B=r?r.modifiers:wt(e.modifiers)?e.modifiers:{};let R=e.pluralRules||r&&r.pluralRules,$;$=(()=>{s&&Y_(null);const oe={version:gD,locale:l.value,fallbackLocale:o.value,messages:f.value,modifiers:B,pluralRules:R,missing:P===null?void 0:P,missingWarn:y,fallbackWarn:v,fallbackFormat:w,unresolving:!0,postTranslation:M===null?void 0:M,warnHtmlMessage:S,escapeParameter:I,messageResolver:e.messageResolver,__meta:{framework:"vue"}};oe.datetimeFormats=d.value,oe.numberFormats=p.value,oe.__datetimeFormatters=wt($)?$.__datetimeFormatters:void 0,oe.__numberFormatters=wt($)?$.__numberFormatters:void 0;const he=lD(oe);return s&&Y_(he),he})(),Yl($,l.value,o.value);function m(){return[l.value,o.value,f.value,d.value,p.value]}const Y=Jn({get:()=>l.value,set:oe=>{l.value=oe,$.locale=l.value}}),j=Jn({get:()=>o.value,set:oe=>{o.value=oe,$.fallbackLocale=o.value,Yl($,l.value,oe)}}),K=Jn(()=>f.value),re=Jn(()=>d.value),pe=Jn(()=>p.value);function q(){return Fn(M)?M:null}function le(oe){M=oe,$.postTranslation=oe}function Fe(){return T}function Ee(oe){oe!==null&&(P=o0(oe)),T=oe,$.missing=P}const Ae=(oe,he,je,we,Je,yt)=>{m();let ut;if(__INTLIFY_PROD_DEVTOOLS__)try{z_(vD()),s||($.fallbackContext=r?aD():void 0),ut=oe($)}finally{z_(null),s||($.fallbackContext=void 0)}else ut=oe($);if(qn(ut)&&ut===ep){const[ue,de]=he();return r&&_?we(r):Je(ue)}else{if(yt(ut))return ut;throw er(Gn.UNEXPECTED_RETURN_TYPE)}};function $e(...oe){return Ae(he=>Reflect.apply(q_,null,[he,...oe]),()=>Ng(...oe),"translate",he=>Reflect.apply(he.t,he,[...oe]),he=>he,he=>Ve(he))}function tt(...oe){const[he,je,we]=oe;if(we&&!_n(we))throw er(Gn.INVALID_ARGUMENT);return $e(he,je,ir({resolvedMessage:!0},we||{}))}function Rt(...oe){return Ae(he=>Reflect.apply(Z_,null,[he,...oe]),()=>Rg(...oe),"datetime format",he=>Reflect.apply(he.d,he,[...oe]),()=>G_,he=>Ve(he))}function ot(...oe){return Ae(he=>Reflect.apply(t0,null,[he,...oe]),()=>Dg(...oe),"number format",he=>Reflect.apply(he.n,he,[...oe]),()=>G_,he=>Ve(he))}function mt(oe){return oe.map(he=>Ve(he)||qn(he)||Qt(he)?r0(String(he)):he)}const Zt={normalize:mt,interpolate:oe=>oe,type:"vnode"};function Dt(...oe){return Ae(he=>{let je;const we=he;try{we.processor=Zt,je=Reflect.apply(q_,null,[we,...oe])}finally{we.processor=null}return je},()=>Ng(...oe),"translate",he=>he[Mg](...oe),he=>[r0(he)],he=>bn(he))}function dt(...oe){return Ae(he=>Reflect.apply(t0,null,[he,...oe]),()=>Dg(...oe),"number format",he=>he[Fg](...oe),()=>[],he=>Ve(he)||bn(he))}function Lt(...oe){return Ae(he=>Reflect.apply(Z_,null,[he,...oe]),()=>Rg(...oe),"datetime format",he=>he[$g](...oe),()=>[],he=>Ve(he)||bn(he))}function en(oe){R=oe,$.pluralRules=R}function It(oe,he){const je=Ve(he)?he:l.value,we=X(je);return $.messageResolver(we,oe)!==null}function Ht(oe){let he=null;const je=VE($,o.value,l.value);for(let we=0;we{a&&(l.value=oe,$.locale=oe,Yl($,l.value,o.value))}),Yr(r.fallbackLocale,oe=>{a&&(o.value=oe,$.fallbackLocale=oe,Yl($,l.value,o.value))}));const _e={id:i0,locale:Y,fallbackLocale:j,get inheritLocale(){return a},set inheritLocale(oe){a=oe,oe&&r&&(l.value=r.locale.value,o.value=r.fallbackLocale.value,Yl($,l.value,o.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return B},get pluralRules(){return R||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(oe){y=oe,$.missingWarn=y},get fallbackWarn(){return v},set fallbackWarn(oe){v=oe,$.fallbackWarn=v},get fallbackRoot(){return _},set fallbackRoot(oe){_=oe},get fallbackFormat(){return w},set fallbackFormat(oe){w=oe,$.fallbackFormat=w},get warnHtmlMessage(){return S},set warnHtmlMessage(oe){S=oe,$.warnHtmlMessage=oe},get escapeParameter(){return I},set escapeParameter(oe){I=oe,$.escapeParameter=oe},t:$e,getLocaleMessage:X,setLocaleMessage:L,mergeLocaleMessage:N,getPostTranslationHandler:q,setPostTranslationHandler:le,getMissingHandler:Fe,setMissingHandler:Ee,[nw]:en};return _e.datetimeFormats=re,_e.numberFormats=pe,_e.rt=tt,_e.te=It,_e.tm=gn,_e.d=Rt,_e.n=ot,_e.getDateTimeFormat=z,_e.setDateTimeFormat=se,_e.mergeDateTimeFormat=ae,_e.getNumberFormat=Ce,_e.setNumberFormat=Re,_e.mergeNumberFormat=Le,_e[rw]=e.__injectWithOption,_e[Mg]=Dt,_e[$g]=Lt,_e[Fg]=dt,_e}function yD(e){const n=Ve(e.locale)?e.locale:Ju,r=Ve(e.fallbackLocale)||bn(e.fallbackLocale)||wt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,s=Fn(e.missing)?e.missing:void 0,a=Qt(e.silentTranslationWarn)||mo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=Qt(e.silentFallbackWarn)||mo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Qt(e.fallbackRoot)?e.fallbackRoot:!0,f=!!e.formatFallbackMessages,d=wt(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,y=Fn(e.postTranslation)?e.postTranslation:void 0,v=Ve(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,_=!!e.escapeParameterHtml,w=Qt(e.sync)?e.sync:!0;let T=e.messages;if(wt(e.sharedMessages)){const $=e.sharedMessages;T=Object.keys($).reduce((m,Y)=>{const j=m[Y]||(m[Y]={});return ir(j,$[Y]),m},T||{})}const{__i18n:P,__root:M,__injectWithOption:S}=e,I=e.datetimeFormats,B=e.numberFormats,R=e.flatJson;return{locale:n,fallbackLocale:r,messages:T,flatJson:R,datetimeFormats:I,numberFormats:B,missing:s,missingWarn:a,fallbackWarn:l,fallbackRoot:o,fallbackFormat:f,modifiers:d,pluralRules:p,postTranslation:y,warnHtmlMessage:v,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:w,__i18n:P,__root:M,__injectWithOption:S}}function Ug(e={},n){{const r=pv(yD(e)),s={id:r.id,get locale(){return r.locale.value},set locale(a){r.locale.value=a},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(a){r.fallbackLocale.value=a},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return r.getMissingHandler()},set missing(a){r.setMissingHandler(a)},get silentTranslationWarn(){return Qt(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(a){r.missingWarn=Qt(a)?!a:a},get silentFallbackWarn(){return Qt(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(a){r.fallbackWarn=Qt(a)?!a:a},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(a){r.fallbackFormat=a},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(a){r.setPostTranslationHandler(a)},get sync(){return r.inheritLocale},set sync(a){r.inheritLocale=a},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){r.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(a){r.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...a){const[l,o,f]=a,d={};let p=null,y=null;if(!Ve(l))throw er(Gn.INVALID_ARGUMENT);const v=l;return Ve(o)?d.locale=o:bn(o)?p=o:wt(o)&&(y=o),bn(f)?p=f:wt(f)&&(y=f),Reflect.apply(r.t,r,[v,p||y||{},d])},rt(...a){return Reflect.apply(r.rt,r,[...a])},tc(...a){const[l,o,f]=a,d={plural:1};let p=null,y=null;if(!Ve(l))throw er(Gn.INVALID_ARGUMENT);const v=l;return Ve(o)?d.locale=o:qn(o)?d.plural=o:bn(o)?p=o:wt(o)&&(y=o),Ve(f)?d.locale=f:bn(f)?p=f:wt(f)&&(y=f),Reflect.apply(r.t,r,[v,p||y||{},d])},te(a,l){return r.te(a,l)},tm(a){return r.tm(a)},getLocaleMessage(a){return r.getLocaleMessage(a)},setLocaleMessage(a,l){r.setLocaleMessage(a,l)},mergeLocaleMessage(a,l){r.mergeLocaleMessage(a,l)},d(...a){return Reflect.apply(r.d,r,[...a])},getDateTimeFormat(a){return r.getDateTimeFormat(a)},setDateTimeFormat(a,l){r.setDateTimeFormat(a,l)},mergeDateTimeFormat(a,l){r.mergeDateTimeFormat(a,l)},n(...a){return Reflect.apply(r.n,r,[...a])},getNumberFormat(a){return r.getNumberFormat(a)},setNumberFormat(a,l){r.setNumberFormat(a,l)},mergeNumberFormat(a,l){r.mergeNumberFormat(a,l)},getChoiceIndex(a,l){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:l}=e;l&&l(a,s)}};return s}}const hv={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function bD({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((s,a)=>s=[...s,...bn(a.children)?a.children:[a]],[]):n.reduce((r,s)=>{const a=e[s];return a&&(r[s]=a()),r},{})}function ow(e){return Xt}const a0={name:"i18n-t",props:ir({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>qn(e)||!isNaN(e)}},hv),setup(e,n){const{slots:r,attrs:s}=n,a=e.i18n||la({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(r).filter(v=>v!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Ve(e.plural)?+e.plural:e.plural);const f=bD(n,l),d=a[Mg](e.keypath,f,o),p=ir({},s),y=Ve(e.tag)||_n(e.tag)?e.tag:ow();return Wu(y,p,d)}}};function _D(e){return bn(e)&&!Ve(e[0])}function aw(e,n,r,s){const{slots:a,attrs:l}=n;return()=>{const o={part:!0};let f={};e.locale&&(o.locale=e.locale),Ve(e.format)?o.key=e.format:_n(e.format)&&(Ve(e.format.key)&&(o.key=e.format.key),f=Object.keys(e.format).reduce((_,w)=>r.includes(w)?ir({},_,{[w]:e.format[w]}):_,{}));const d=s(e.value,o,f);let p=[o.key];bn(d)?p=d.map((_,w)=>{const T=a[_.type],P=T?T({[_.type]:_.value,index:w,parts:d}):[_.value];return _D(P)&&(P[0].key=`${_.type}-${w}`),P}):Ve(d)&&(p=[d]);const y=ir({},l),v=Ve(e.tag)||_n(e.tag)?e.tag:ow();return Wu(v,y,p)}}const l0={name:"i18n-n",props:ir({value:{type:Number,required:!0},format:{type:[String,Object]}},hv),setup(e,n){const r=e.i18n||la({useScope:"parent",__useComponent:!0});return aw(e,n,ew,(...s)=>r[Fg](...s))}},u0={name:"i18n-d",props:ir({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},hv),setup(e,n){const r=e.i18n||la({useScope:"parent",__useComponent:!0});return aw(e,n,ZE,(...s)=>r[$g](...s))}};function xD(e,n){const r=e;if(e.mode==="composition")return r.__getInstance(n)||e.global;{const s=r.__getInstance(n);return s!=null?s.__composer:e.global.__composer}}function ED(e){const n=o=>{const{instance:f,modifiers:d,value:p}=o;if(!f||!f.$)throw er(Gn.UNEXPECTED_ERROR);const y=xD(e,f.$),v=c0(p);return[Reflect.apply(y.t,y,[...f0(v)]),y]};return{created:(o,f)=>{const[d,p]=n(f);kg&&e.global===p&&(o.__i18nWatcher=Yr(p.locale,()=>{f.instance&&f.instance.$forceUpdate()})),o.__composer=p,o.textContent=d},unmounted:o=>{kg&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:f})=>{if(o.__composer){const d=o.__composer,p=c0(f);o.textContent=Reflect.apply(d.t,d,[...f0(p)])}},getSSRProps:o=>{const[f]=n(o);return{textContent:f}}}}function c0(e){if(Ve(e))return{path:e};if(wt(e)){if(!("path"in e))throw er(Gn.REQUIRED_VALUE,"path");return e}else throw er(Gn.INVALID_VALUE)}function f0(e){const{path:n,locale:r,args:s,choice:a,plural:l}=e,o={},f=s||{};return Ve(r)&&(o.locale=r),qn(a)&&(o.plural=a),qn(l)&&(o.plural=l),[n,f,o]}function wD(e,n,...r){const s=wt(r[0])?r[0]:{},a=!!s.useI18nComponentName;(Qt(s.globalInstall)?s.globalInstall:!0)&&(e.component(a?"i18n":a0.name,a0),e.component(l0.name,l0),e.component(u0.name,u0)),e.directive("t",ED(n))}function SD(e,n,r){return{beforeCreate(){const s=Nr();if(!s)throw er(Gn.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const l=a.i18n;a.__i18n&&(l.__i18n=a.__i18n),l.__root=n,this===this.$root?this.$i18n=d0(e,l):(l.__injectWithOption=!0,this.$i18n=Ug(l))}else a.__i18n?this===this.$root?this.$i18n=d0(e,a):this.$i18n=Ug({__i18n:a.__i18n,__injectWithOption:!0,__root:n}):this.$i18n=e;a.__i18nGlobal&&iw(n,a,a),e.__onComponentInstanceCreated(this.$i18n),r.__setInstance(s,this.$i18n),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,o)=>this.$i18n.te(l,o),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l)},mounted(){},unmounted(){const s=Nr();if(!s)throw er(Gn.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(s),delete this.$i18n}}}function d0(e,n){e.locale=n.locale||e.locale,e.fallbackLocale=n.fallbackLocale||e.fallbackLocale,e.missing=n.missing||e.missing,e.silentTranslationWarn=n.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=n.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=n.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=n.postTranslation||e.postTranslation,e.warnHtmlInMessage=n.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=n.escapeParameterHtml||e.escapeParameterHtml,e.sync=n.sync||e.sync,e.__composer[nw](n.pluralizationRules||e.pluralizationRules);const r=tp(e.locale,{messages:n.messages,__i18n:n.__i18n});return Object.keys(r).forEach(s=>e.mergeLocaleMessage(s,r[s])),n.datetimeFormats&&Object.keys(n.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,n.datetimeFormats[s])),n.numberFormats&&Object.keys(n.numberFormats).forEach(s=>e.mergeNumberFormat(s,n.numberFormats[s])),e}const TD=_o("global-vue-i18n");function CD(e={},n){const r=__VUE_I18N_LEGACY_API__&&Qt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=Qt(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&r?!!e.allowComposition:!0,l=new Map,[o,f]=AD(e,r),d=_o("");function p(_){return l.get(_)||null}function y(_,w){l.set(_,w)}function v(_){l.delete(_)}{const _={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return a},async install(w,...T){w.__VUE_I18N_SYMBOL__=d,w.provide(w.__VUE_I18N_SYMBOL__,_),!r&&s&&MD(w,_.global),__VUE_I18N_FULL_INSTALL__&&wD(w,_,...T),__VUE_I18N_LEGACY_API__&&r&&w.mixin(SD(f,f.__composer,_));const P=w.unmount;w.unmount=()=>{_.dispose(),P()}},get global(){return f},dispose(){o.stop()},__instances:l,__getInstance:p,__setInstance:y,__deleteInstance:v};return _}}function la(e={}){const n=Nr();if(n==null)throw er(Gn.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw er(Gn.NOT_INSLALLED);const r=OD(n),s=PD(r),a=sw(n),l=ID(e,a);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!e.__useComponent){if(!r.allowComposition)throw er(Gn.NOT_AVAILABLE_IN_LEGACY_MODE);return ND(n,l,s,e)}if(l==="global")return iw(s,e,a),s;if(l==="parent"){let d=kD(r,n,e.__useComponent);return d==null&&(d=s),d}const o=r;let f=o.__getInstance(n);if(f==null){const d=ir({},e);"__i18n"in a&&(d.__i18n=a.__i18n),s&&(d.__root=s),f=pv(d),LD(o,n),o.__setInstance(n,f)}return f}function AD(e,n,r){const s=sm();{const a=__VUE_I18N_LEGACY_API__&&n?s.run(()=>Ug(e)):s.run(()=>pv(e));if(a==null)throw er(Gn.UNEXPECTED_ERROR);return[s,a]}}function OD(e){{const n=vn(e.isCE?TD:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw er(e.isCE?Gn.NOT_INSLALLED_WITH_PROVIDE:Gn.UNEXPECTED_ERROR);return n}}function ID(e,n){return qd(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function PD(e){return e.mode==="composition"?e.global:e.global.__composer}function kD(e,n,r=!1){let s=null;const a=n.root;let l=n.parent;for(;l!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const f=o.__getInstance(l);f!=null&&(s=f.__composer,r&&s&&!s[rw]&&(s=null))}if(s!=null||a===l)break;l=l.parent}return s}function LD(e,n,r){aa(()=>{},n),ul(()=>{e.__deleteInstance(n)},n)}function ND(e,n,r,s={}){const a=n==="local",l=fm(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw er(Gn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Qt(s.inheritLocale)?s.inheritLocale:!0,f=it(a&&o?r.locale.value:Ve(s.locale)?s.locale:Ju),d=it(a&&o?r.fallbackLocale.value:Ve(s.fallbackLocale)||bn(s.fallbackLocale)||wt(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:f.value),p=it(tp(f.value,s)),y=it(wt(s.datetimeFormats)?s.datetimeFormats:{[f.value]:{}}),v=it(wt(s.numberFormats)?s.numberFormats:{[f.value]:{}}),_=a?r.missingWarn:Qt(s.missingWarn)||mo(s.missingWarn)?s.missingWarn:!0,w=a?r.fallbackWarn:Qt(s.fallbackWarn)||mo(s.fallbackWarn)?s.fallbackWarn:!0,T=a?r.fallbackRoot:Qt(s.fallbackRoot)?s.fallbackRoot:!0,P=!!s.fallbackFormat,M=Fn(s.missing)?s.missing:null,S=Fn(s.postTranslation)?s.postTranslation:null,I=a?r.warnHtmlMessage:Qt(s.warnHtmlMessage)?s.warnHtmlMessage:!0,B=!!s.escapeParameter,R=a?r.modifiers:wt(s.modifiers)?s.modifiers:{},$=s.pluralRules||a&&r.pluralRules;function G(){return[f.value,d.value,p.value,y.value,v.value]}const m=Jn({get:()=>l.value?l.value.locale.value:f.value,set:N=>{l.value&&(l.value.locale.value=N),f.value=N}}),Y=Jn({get:()=>l.value?l.value.fallbackLocale.value:d.value,set:N=>{l.value&&(l.value.fallbackLocale.value=N),d.value=N}}),j=Jn(()=>l.value?l.value.messages.value:p.value),K=Jn(()=>y.value),re=Jn(()=>v.value);function pe(){return l.value?l.value.getPostTranslationHandler():S}function q(N){l.value&&l.value.setPostTranslationHandler(N)}function le(){return l.value?l.value.getMissingHandler():M}function Fe(N){l.value&&l.value.setMissingHandler(N)}function Ee(N){return G(),N()}function Ae(...N){return l.value?Ee(()=>Reflect.apply(l.value.t,null,[...N])):Ee(()=>"")}function $e(...N){return l.value?Reflect.apply(l.value.rt,null,[...N]):""}function tt(...N){return l.value?Ee(()=>Reflect.apply(l.value.d,null,[...N])):Ee(()=>"")}function Rt(...N){return l.value?Ee(()=>Reflect.apply(l.value.n,null,[...N])):Ee(()=>"")}function ot(N){return l.value?l.value.tm(N):{}}function mt(N,z){return l.value?l.value.te(N,z):!1}function zt(N){return l.value?l.value.getLocaleMessage(N):{}}function Zt(N,z){l.value&&(l.value.setLocaleMessage(N,z),p.value[N]=z)}function Dt(N,z){l.value&&l.value.mergeLocaleMessage(N,z)}function dt(N){return l.value?l.value.getDateTimeFormat(N):{}}function Lt(N,z){l.value&&(l.value.setDateTimeFormat(N,z),y.value[N]=z)}function en(N,z){l.value&&l.value.mergeDateTimeFormat(N,z)}function It(N){return l.value?l.value.getNumberFormat(N):{}}function Ht(N,z){l.value&&(l.value.setNumberFormat(N,z),v.value[N]=z)}function gn(N,z){l.value&&l.value.mergeNumberFormat(N,z)}const X={get id(){return l.value?l.value.id:-1},locale:m,fallbackLocale:Y,messages:j,datetimeFormats:K,numberFormats:re,get inheritLocale(){return l.value?l.value.inheritLocale:o},set inheritLocale(N){l.value&&(l.value.inheritLocale=N)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(p.value)},get modifiers(){return l.value?l.value.modifiers:R},get pluralRules(){return l.value?l.value.pluralRules:$},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:_},set missingWarn(N){l.value&&(l.value.missingWarn=N)},get fallbackWarn(){return l.value?l.value.fallbackWarn:w},set fallbackWarn(N){l.value&&(l.value.missingWarn=N)},get fallbackRoot(){return l.value?l.value.fallbackRoot:T},set fallbackRoot(N){l.value&&(l.value.fallbackRoot=N)},get fallbackFormat(){return l.value?l.value.fallbackFormat:P},set fallbackFormat(N){l.value&&(l.value.fallbackFormat=N)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:I},set warnHtmlMessage(N){l.value&&(l.value.warnHtmlMessage=N)},get escapeParameter(){return l.value?l.value.escapeParameter:B},set escapeParameter(N){l.value&&(l.value.escapeParameter=N)},t:Ae,getPostTranslationHandler:pe,setPostTranslationHandler:q,getMissingHandler:le,setMissingHandler:Fe,rt:$e,d:tt,n:Rt,tm:ot,te:mt,getLocaleMessage:zt,setLocaleMessage:Zt,mergeLocaleMessage:Dt,getDateTimeFormat:dt,setDateTimeFormat:Lt,mergeDateTimeFormat:en,getNumberFormat:It,setNumberFormat:Ht,mergeNumberFormat:gn};function L(N){N.locale.value=f.value,N.fallbackLocale.value=d.value,Object.keys(p.value).forEach(z=>{N.mergeLocaleMessage(z,p.value[z])}),Object.keys(y.value).forEach(z=>{N.mergeDateTimeFormat(z,y.value[z])}),Object.keys(v.value).forEach(z=>{N.mergeNumberFormat(z,v.value[z])}),N.escapeParameter=B,N.fallbackFormat=P,N.fallbackRoot=T,N.fallbackWarn=w,N.missingWarn=_,N.warnHtmlMessage=I}return Wd(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw er(Gn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const N=l.value=e.proxy.$i18n.__composer;n==="global"?(f.value=N.locale.value,d.value=N.fallbackLocale.value,p.value=N.messages.value,y.value=N.datetimeFormats.value,v.value=N.numberFormats.value):a&&L(N)}),X}const RD=["locale","fallbackLocale","availableLocales"],DD=["t","rt","d","n","tm"];function MD(e,n){const r=Object.create(null);RD.forEach(s=>{const a=Object.getOwnPropertyDescriptor(n,s);if(!a)throw er(Gn.UNEXPECTED_ERROR);const l=Bn(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,s,l)}),e.config.globalProperties.$i18n=r,DD.forEach(s=>{const a=Object.getOwnPropertyDescriptor(n,s);if(!a||!a.value)throw er(Gn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,a)})}rD(cD);sD(FR);iD(VE);mD();if(__INTLIFY_PROD_DEVTOOLS__){const e=pu();e.__INTLIFY__=!0,zR(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const $D={"buckaroo.response.invalid_parameter_originaltransaction":"Invalid parameter originaltransaction.","buckaroo.response.an_error_occurred_while_processing_the_transaction_unable_to_pay_more_with_giftcards":"An error occurred while processing the transaction: Unable to pay more with giftcards","countries.afghanistan":"Afghanistan","countries.albania":"Albania","countries.algeria":"Algeria","countries.american_samoa":"American Samoa","countries.andorra":"Andorra","countries.angola":"Angola","countries.anguilla":"Anguilla","countries.antigua_and_barbuda":"Antigua and Barbuda","countries.argentina":"Argentina","countries.armenia":"Armenia","countries.aruba":"Aruba","countries.australia":"Australia","countries.austria":"Austria","countries.azerbaijan":"Azerbaijan","countries.bahamas":"Bahamas","countries.bahrain":"Bahrain","countries.bangladesh":"Bangladesh","countries.barbados":"Barbados","countries.belarus":"Belarus","countries.belgium":"Belgium","countries.belize":"Belize","countries.benin":"Benin","countries.bermuda":"Bermuda","countries.bhutan":"Bhutan","countries.bolivia":"Bolivia","countries.bosnia_and_herzegovina":"Bosnia and Herzegovina","countries.botswana":"Botswana","countries.brazil":"Brazil","countries.brunei_darussalam":"Brunei Darussalam","countries.bulgaria":"Bulgaria","countries.burkina_faso":"Burkina Faso","countries.burundi":"Burundi","countries.cambodia":"Cambodia","countries.cameroon":"Cameroon","countries.canada":"Canada","countries.cape_verde":"Cape Verde","countries.cayman_islands":"Cayman Islands","countries.central_african_republic":"Central African Republic","countries.chad":"Chad","countries.chile":"Chile","countries.china":"China","countries.colombia":"Colombia","countries.comoros":"Comoros","countries.republic_of_the_congo":"Democratic Republic of the Congo","countries.democratic_republic_of_the_congo":"Democratic Republic of the Congo","countries.cook_islands":"Island","countries.costa_rica":"Costa Rica","countries.c\xF4te_d'ivoire":"Cote Divoire","countries.croatia":"Croatia","countries.cuba":"Cuba","countries.cura\xE7ao":"Curacao","countries.cyprus":"Cyprus","countries.czech_republic":"Czech Republic","countries.denmark":"Denmark","countries.djibouti":"Djibouti","countries.dominica":"Dominica","countries.dominican_republic":"Dominican Republic","countries.ecuador":"Ecuador","countries.egypt":"Egypt","countries.el_salvador":"El Salvador","countries.equatorial_guinea":"Equatorial Guinea","countries.eritrea":"Eritrea","countries.estonia":"Estonia","countries.ethiopia":"Ethiopia","countries.falkland_island":"Falkland Island","countries.faroe_islands":"Faroe Islands","countries.fiji":"Fiji","countries.finland":"Finland","countries.france":"France","countries.french_polynesia":"French Polynesia","countries.gabon":"Gabon","countries.gambia":"Gambia","countries.georgia":"Georgia","countries.germany":"Germany","countries.ghana":"Ghana","countries.gibraltar":"Gibraltar","countries.greece":"Greece","countries.greenland":"Greenland","countries.grenada":"Grenada","countries.guam":"Guam","countries.guatemala":"Guatemala","countries.guernsey":"Guernsey","countries.guinea":"Guinea","countries.guinea-bissau":"Guinea-Bissau","countries.guyana":"Guyana","countries.haiti":"Haiti","countries.honduras":"Honduras","countries.hong_kong":"Hong Kong","countries.hungary":"Hungary","countries.iceland":"Iceland","countries.india":"India","countries.indonesia":"Indonesia","countries.iran":"Iran","countries.iraq":"Iraq","countries.ireland":"Ireland","countries.isle_of_man":"Isle of Man","countries.israel":"Israel","countries.italy":"Italy","countries.jamaica":"Jamaica","countries.japan":"Japan","countries.jersey":"Jersey","countries.jordan":"Jordan","countries.kazakhstan":"Kazakhstan","countries.kenya":"Kenya","countries.kiribati":"Kiribati","countries.north_korea":"North Korea","countries.south_korea":"South Korea","countries.kosovo":"Kosovo","countries.kuwait":"Kuwait","countries.kyrgyzstan":"Kyrgyzstan","countries.laos":"Laos","countries.latvia":"Latvia","countries.lebanon":"Lebanon","countries.lesotho":"Lesotho","countries.liberia":"Liberia","countries.libya":"Libya","countries.liechtenstein":"Liechtenstein","countries.lithuania":"Lithuania","countries.luxembourg":"Luxembourg","countries.macau":"Macao","countries.macedonia":"Macedonia","countries.madagascar":"Madagascar","countries.malawi":"Malawi","countries.malaysia":"Malaysia","countries.maldives":"Maldives","countries.mali":"Mali","countries.malta":"Malta","countries.marshall_islands":"Marshall Islands","countries.mauritania":"Mauritania","countries.mauritius":"Mauritius","countries.mayotte":"Mayotte","countries.mexico":"Mexico","countries.micronesia":"Micronesia","countries.moldova":"Moldova","countries.monaco":"Monaco","countries.mongolia":"Mongolia","countries.montenegro":"Montenegro","countries.montserrat":"Montserrat","countries.morocco":"Morocco","countries.mozambique":"Mozambique","countries.myanmar":"Myanmar","countries.namibia":"Namibia","countries.nauru":"Nauru","countries.nepal":"Nepal","countries.netherlands":"Netherlands","countries.new_caledonia":"New Caledonia","countries.new_zealand":"New Zealand","countries.nicaragua":"Nicaragua","countries.niger":"Niger","countries.nigeria":"Nigeria","countries.niue":"Niue","countries.norfolk_island":"Norfolk Island","countries.northern_mariana_islands":"Northern Mariana Islands","countries.norway":"Norway","countries.oman":"Oman","countries.pakistan":"Pakistan","countries.palau":"Palau","countries.palestine":"Palestine","countries.panama":"Panama","countries.papua_new_guinea":"Papua New Guinea","countries.paraguay":"Paraguay","countries.peru":"Peru","countries.philippines":"Philippines","countries.pitcairn":"Pitekaien","countries.poland":"Poland","countries.portugal":"Portugal","countries.puerto_rico":"Puerto Rico","countries.qatar":"Qatar","countries.romania":"Romania","countries.russia":"Russia","countries.rwanda":"Rwanda","countries.saint_helena":"St. Helena","countries.saint_kitts_and_nevis":"Saint Kitts and Nevis","countries.saint_lucia":"Saint Lucia","countries.saint_vincent_and_the_grenadines":"Saint Vincent and the Grenadines","countries.samoa":"Samoa","countries.san_marino":"San Marino","countries.sao_tome_and_principe":"Sao Tome and Principe","countries.saudi_arabia":"Saudi Arabia","countries.senegal":"Senegal","countries.serbia":"Serbia","countries.seychelles":"Seychelles","countries.sierra_leone":"Sierra Leone","countries.singapore":"Singapore","countries.slovakia":"Slovakia","countries.slovenia":"Slovenia","countries.solomon_islands":"Solomon Islands","countries.somalia":"Somalia","countries.south_africa":"South Africa","countries.south_sudan":"South Sudan","countries.spain":"Spain","countries.sri_lanka":"Sri Lanka","countries.sudan":"Sudan","countries.suriname":"Surinam","countries.swaziland":"Swaziland","countries.sweden":"Sweden","countries.switzerland":"Switzerland","countries.syrian_arab_republic":"Syrian Arab Republic","countries.taiwan":"Taiwan","countries.tajikistan":"Tajikistan","countries.tanzania":"Tanzania","countries.thailand":"Thailand","countries.east_timor":"East Timor","countries.togo":"Togo","countries.tokelau":"Tokelau","countries.tonga":"Tonga","countries.trinidad_and_tobago":"Trinidad and Tobago","countries.tunisia":"Tunisia","countries.turkey":"Turkey","countries.turkmenistan":"Turkmenistan","countries.turks_and_caicos_islands":"Turks and Caicos Islands","countries.tuvalu":"Tuvalu","countries.uganda":"Uganda","countries.ukraine":"Ukraine","countries.united_arab_emirates":"United Arab Emirates","countries.united_kingdom":"United Kingdom","countries.united states":"United States","countries.uruguay":"Uruguay","countries.uzbekistan":"Uzbekistan","countries.vanuatu":"Vanuatu","countries.venezuela":"Venezuela","countries.vietnam":"Vietnam","countries.british_virgin_islands":"The British Virgin Islands","countries.us_virgin_islands":"US Virgin Islands","countries.wallis_and_futuna":"Wallis and Futuna","countries.western_sahara":"Western Sahara","countries.yemen":"Yemen","countries.zambia":"Zambia","countries.zimbabwe":"Zimbabwe","dashboard.channel_selector.select_channel":"Select Channel","dashboard.channel_selector.select_channel_label":"Each channel has its configuration settings.","dashboard.country_select.search_countries":"Search Countries","dashboard.menu.channel":"Channel","dashboard.menu.settings":"Settings","dashboard.menu.payment_methods":"Payment methods","dashboard.menu.verification_methods":"Verification methods","dashboard.menu.order_payment_methods":"Order Payments Methods","dashboard.pages.order_payment_methods.if_you_have_any_questions":"If you have any questions about this plugin from Buckaroo, then you can contact us by e-mail:","dashboard.pages.order_payment_methods.order_payment_methods":"Order Payment Methods","dashboard.pages.order_payment_methods.order_payment_methods_label":"Change the order of payment methods.","dashboard.pages.order_payment_methods.all_countries":"All Countries","dashboard.pages.order_payment_methods.all_coquesuntries":"All Countries","dashboard.pages.order_payment_methods.search_country":"Search country","dashboard.pages.order_payment_methods.payment_method_order_updated_successfully":"Payment method order updated successfully.","dashboard.pages.order_payment_methods.something_went_wrong":"Something went wrong.","dashboard.pages.order_payment_methods.how_to_order_payment_method":"How to change the order of the payment methods in the checkout","dashboard.pages.order_payment_methods.explanation_intro":`You can easily change the order of the payment methods by dragging them into the right place, from top to bottom. +Even setting a specific payment method order for a specific country is possible. +This so you can highlight local payment methods for customers across different countries.`,"dashboard.pages.order_payment_methods.step_one":`First select the country for which you want to change the display order of the payment methods. +Or you can select \u201CAll Countries\u201D to use a specific order of the payment methods globally.`,"dashboard.pages.order_payment_methods.step_two":`Drag and drop the payment methods in the order of your liking. +This can be done by dragging them from top to bottom with the arrow icons.`,"dashboard.pages.order_payment_methods.step_three":"Save your chosen payment methods order and check if the payment methods are showed in the correct order in the checkout of your webshop.","dashboard.pages.payments.service_code_label":"After you request your custom giftcard by Intersolve you will receive an email about your service code. If you have any questions about this do not hesitate to mail us at ","dashboard.pages.payments.configure_your_payment_name_settings":"Configure your {payment_name} settings","dashboard.pages.payments.configure_your_verification_name_settings":"Configure your {verification_name} settings","dashboard.pages.payments.modes_settings.live":"Live","dashboard.pages.payments.modes_settings.test":"Test","dashboard.pages.payments.modes_settings.off":"Off","dashboard.pages.payments.configure":"Configure","dashboard.pages.payments.settings":"Settings","dashboard.pages.payments.save":"Save","dashboard.pages.payments.mode":"Mode","dashboard.pages.payments.mode_label":'When set to "Live" you can do actual payments. When set to "Testing" you can do test transactions. This payment method will not appear when it is set to "Off".',"dashboard.pages.payments.front_label":"Front Label","dashboard.pages.payments.front_label_label":"This name will be displayed for this payment method in the checkout. When this field is empty, the standard payment method name will be displayed.","dashboard.pages.payments.payment_fee_incl_vat":"Payment fee incl. VAT","dashboard.pages.payments.payment_fee_incl_vat_label":"You can charge a fee when the customer select this payment. Specify static (e.g. 1.50). Decimals must be separated by a dot (.)","dashboard.pages.payments.order_amount_allowed":"Order amount allowed","dashboard.pages.payments.order_amount_allowed_label":"This method will only be shown when this condition is met.","dashboard.pages.payments.minimum_order_amount":"Minimum order amount","dashboard.pages.payments.maximum_order_amount":"Maximum order amount","dashboard.pages.payments.countries":"Countries","dashboard.pages.payments.countries_label":"The payment method will only be showed for selected countries. You can leave this setting empty to display the payment method for all countries.","dashboard.pages.payments.all_countries":"All Countries","dashboard.pages.payments.clear":"Clear","dashboard.pages.payments.search_country":"Search Country","dashboard.pages.payments.show_country_number_and_more":"and {country_number} more...","dashboard.pages.payments.show_less":"Show less","dashboard.pages.payments.client_side":"Client Side Encryption","dashboard.pages.payments.client_side_label":"Enable or disable client sided payment method behavior.","dashboard.pages.payments.seperate_authorize_and_capture":"Seperate authorize and capture","dashboard.pages.payments.seperate_authorize_and_capture_label":"When this option is enabled you have to manually capture the credit- or debitcard payment.","dashboard.pages.payments.allowed_creditcards":"Allowed Credit- and debitcards","dashboard.pages.payments.allowed_creditcards_label":"Only selected credit- or debitcards will be showed for this method","dashboard.pages.payments.search_creditcard":"Search Credit- or debitcard","dashboard.pages.payments.allowed_giftcards":"Allowed giftcards","dashboard.pages.payments.allowed_giftcards_label":"Only selected giftcards will this method be shown","dashboard.pages.payments.add_custom_giftcard":"Add custom giftcard","dashboard.pages.payments.search_giftcard":"Search Giftcard","dashboard.pages.payments.custom_giftcard":"Custom giftcard","dashboard.pages.payments.add":"Add","dashboard.pages.payments.edit":"Edit","dashboard.pages.payments.remove":"Remove","dashboard.pages.payments.giftcard_name":"Giftcard Name","dashboard.pages.payments.enter_giftcard_details":"Enter giftcard details","dashboard.pages.payments.service_code":"Service Code","dashboard.pages.payments.custom_icon_url":"Custom Icon URL","dashboard.pages.payments.payment_methods":"Payments methods","dashboard.pages.payments.verification_methods":"Verification methods","dashboard.pages.payments.configure_your_payment_method_settings":"Configure your payment method settings","dashboard.pages.payments.configure_your_verification_method_settings":"Configure your verification method settings","dashboard.pages.payments.customer_type":"Customer type","dashboard.pages.payments.display_type":"Button Display Type","dashboard.pages.payments.display_type_label":"This setting determines how the bank selection for this payment method will be displayed in the checkout.
You can choose between radio buttons or a dropdown selection.","dashboard.pages.payments.display_types.radio":"Radio","dashboard.pages.payments.display_types.dropdown":"Dropdown","dashboard.pages.payments.send_email_instruction":"Send payment instruction email","dashboard.pages.payments.send_email_instruction_yes":"Yes","dashboard.pages.payments.send_email_instruction_no":"No","dashboard.pages.payments.send_email_merchant":"Merchant sends email","dashboard.pages.payments.due_date":"Due date (in days)","dashboard.pages.payments.allowed_methods":"Allowed payment methods","dashboard.pages.payments.vat_type_for_wrap":"Vat type for gift wrapping","dashboard.pages.payments.vat_type_for_wrap_select":"Please select vat type for gift wrapping","dashboard.pages.payments.min_order_amount_b2b":"Minimum B2B order amount","dashboard.pages.payments.max_order_amount_b2c":"Maximum B2B order amount","dashboard.pages.payments.in3.version.label":"In3 version","dashboard.pages.payments.in3.version.v3":"V3 (iDEAL In3)","dashboard.pages.payments.in3.version.v2":"V2 (Capayabel/In3)","dashboard.pages.payments.customer.type_label":"Customer Type","dashboard.pages.payments.customer.type.both":"Both","dashboard.pages.payments.customer.type.b2c":"B2C","dashboard.pages.payments.customer.type.b2c.long":"Business-to-consumer","dashboard.pages.payments.customer.type.b2b":"B2B","dashboard.pages.payments.customer.type.b2b.long":"Business-to-Business","dashboard.pages.payments.logo":"Payment logo","dashboard.pages.payments.seller_protection":"Seller protection","dashboard.pages.payments.seller_protection_enable":"Enable PayPal Seller Protection","dashboard.pages.payments.seller_protection_enabled":"Yes","dashboard.pages.payments.seller_protection_disabled":"No","dashboard.pages.payments.idin.display_mode":"iDIN mode:","dashboard.pages.payments.idin.display_mode.product":"Specific products","dashboard.pages.payments.idin.display_mode.global":"Global","dashboard.pages.payments.idin.display_mode_label":`With this setting you can select whether iDIN is enabled for all the products in the store (globally) or only for specific products. +For specific products you also need to enable it for the products in the PrestaShop catalog.`,"dashboard.pages.settings.credentials_label":"Get your Buckaroo credentials from the Buckaroo Plaza","dashboard.pages.settings.refunds_label_label":"When enabled you can do (partial) refunds directly from your PrestaShop admin area Read more","dashboard.pages.settings.refunds_label_explanation":"This description is used for the refunds and will be visible in Buckaroo and on the bank statement of the consumer. We recommend using the webshop name so customers can easily recognize the payment.","dashboard.pages.settings.settings":"Settings","dashboard.pages.settings.settings_label":"Configure your settings","dashboard.pages.settings.mode":"Mode","dashboard.pages.settings.mode_label":"Easily change the mode","dashboard.pages.settings.no_im_testing":"No, I'm Testing","dashboard.pages.settings.when_your_shop_is_not_live_yet":"When your shop is not live yet","dashboard.pages.settings.yes_im_ready_to_receive_payments":"Yes, I'm ready to receive payments","dashboard.pages.settings.your_shop_is_live_and_ready_to_receive_real_payments":"Your shop is live and ready to receive real payments","dashboard.pages.settings.credentials":"Credentials","dashboard.pages.settings.test_connection":"Test Connection","dashboard.pages.settings.successfully_verified_the_credentials":"Successfully verified the credentials!","dashboard.pages.settings.the_credentials_are_not_valid":"The credentials are not valid!","dashboard.pages.settings.website_key":"Website key","dashboard.pages.settings.secret_key":"Secret key","dashboard.pages.settings.transaction_description":"Transaction Description","dashboard.pages.settings.transaction_description_label":'Transaction description can be filled with static text and tags like: {order_number} and {shop_name}.',"dashboard.pages.settings.example":"Example","dashboard.pages.settings.order_number":"Order number","dashboard.pages.settings.shop_name":"Shop name","dashboard.pages.settings.order_number2":"order_number","dashboard.pages.settings.shop_name2":"shop_name","dashboard.pages.settings.refunds":"Refunds","dashboard.pages.settings.refunds_label":"Refund Description","dashboard.pages.settings.return_url":"Return URL","dashboard.pages.settings.return_url_label":"Set a custom return URL after the customer finishes the payment.","dashboard.pages.settings.return_url_explanation":"When this field is left empty, the customer will return to the default PrestaShop confirmation page.","dashboard.pages.settings.checkout_url":"Checkout URL","dashboard.pages.settings.checkout_url_label":"Set a custom checkout URL after the customer cancel the payment or something went wrong during the process.","dashboard.pages.settings.checkout_url_explanation":"When this field is left empty, the customer will return to the default PrestaShop checkout page.","dashboard.pages.settings.save":"Save","dashboard.pages.settings.add":"Add","dashboard.pages.settings.remove":"Remove","dashboard.pages.settings.custom_scripts":"Custom scripts","dashboard.pages.settings.custom_scripts_label":"Add custom javascript or css to your checkout.","dashboard.pages.settings.custom_scripts_placeholder":"Javascript / CSS (https://example.com/style.css)","dashboard.pages.settings.settings_successfully_updated":"Settings successfully updated.","dashboard.pages.settings.welcome_to_buckaroo":"Welcome to Buckaroo","dashboard.pages.settings.explanation_intro":"Welcome to the configuration panel of the Buckaroo Payment app for your PrestaShop webshop. In this panel you can set the app completely to your liking. Below you will find the steps to configue the settings. For further questions, please refer to our documentation page.","dashboard.pages.settings.step_one":"Fill in your websitekey","dashboard.pages.settings.step_two":"Fill in your secretkey","dashboard.pages.settings.step_three":"Click on \u2018test connection\u2019, when oke proceed to step 4.","dashboard.pages.settings.step_four":"Configure advanced settings & payment methods","dashboard.pages.settings.step_five":"Start testing, when testing is oke you can start LIVE transactions","dashboard.pages.settings.if_you_have_any_questions":"If you have any questions about the above, you can contact us by email:","dashboard.pages.settings.if_you_have_any_questions_link":" or phone ","dashboard.pages.settings.advance_settings":"Advanced Settings","dashboard.pages.settings.hide_advance_settings":"Hide Advanced Settings","dashboard.pages.settings.re_stock_products":"Re-stock Products","dashboard.pages.settings.re_stock_products_label":"Whether refunded products should be returned to inventory (increasing the quantity in stock).","dashboard.pages.settings.generate_credit_slip":"Generate a Credit Slip","dashboard.pages.settings.generate_credit_slip_label":"Whether a credit note should be generated.","dashboard.pages.settings.generate_voucher":"Generate a Voucher","dashboard.pages.settings.generate_voucher_label":"Whether a voucher should be generated.","dashboard.pages.settings.generate_negative_payments":"Create Negative Payments on Refund","dashboard.pages.settings.generate_negative_payments_label":"Whether a negative payment does also need to be created when performing a refund.","payment_methods.applepay":"Apple Pay","payment_methods.creditcard":"Cards","payment_methods.giftcard":"Giftcard","payment_methods.ideal":"iDEAL","payment_methods.paybybank":"PayByBank","payment_methods.sepadirectdebit":"SEPA Direct Debit","payment_methods.kbc":"KBC","payment_methods.in3":"In3","payment_methods.billink":"Billink","payment_methods.eps":"EPS","payment_methods.przelewy24":"Przelewy24","payment_methods.payperemail":"PayPerEmail","payment_methods.payconiq":"Payconiq","payment_methods.tinka":"Tinka","payment_methods.paypal":"PayPal","payment_methods.bancontact":"Bancontact","payment_methods.bancontactmrcash":"Bancontact","payment_methods.sofortueberweisung":"Sofort","payment_methods.giropay":"Giropay","payment_methods.klarna":"Klarna","payment_methods.afterpay":"Riverty","payment_methods.trustly":"Trustly","payment_methods.belfius":"Belfius","payment_methods.transfer":"Transfer","payment_methods.wechatpay":"WeChatPay","payment_methods.alipay":"Alipay","payment_methods.idin":"iDIN","payment_methods.multibanco":"Multibanco","payment_methods.mbway":"MB WAY","verification_methods.idin":"iDIN"},FD={"buckaroo.response.invalid_parameter_originaltransaction":"Ongeldige parameter originaltransaction.","buckaroo.response.an_error_occurred_while_processing_the_transaction_unable_to_pay_more_with_giftcards":"Er is een fout opgetreden tijdens het verwerken van de transactie: Je kunt niet meer cadeaukaarten gebruiken","countries.afghanistan":"Afghanistan","countries.albania":"Albani\xEB","countries.algeria":"Algerije","countries.american_samoa":"Amerikaans Samoa","countries.andorra":"Andorra","countries.angola":"Angola","countries.anguilla":"Anguilla","countries.antigua_and_barbuda":"Antigua en Barbuda","countries.argentina":"Argentini\xEB","countries.armenia":"Armeni\xEB","countries.aruba":"Aruba","countries.australia":"Australi\xEB","countries.austria":"Oostenrijk","countries.azerbaijan":"Azerbeidzjan","countries.bahamas":"Bahamas","countries.bahrain":"Bahrein","countries.bangladesh":"Bangladesh","countries.barbados":"Barbados","countries.belarus":"Wit-Rusland","countries.belgium":"Belgi\xEB","countries.belize":"Belize","countries.benin":"Benin","countries.bermuda":"Bermuda","countries.bhutan":"Bhutan","countries.bolivia":"Bolivia","countries.bosnia_and_herzegovina":"Bosni\xEB en Herzegovina","countries.botswana":"Botswana","countries.brazil":"Brazili\xEB","countries.brunei_darussalam":"Brunei Darussalam","countries.bulgaria":"Bulgarije","countries.burkina_faso":"Burkina Faso","countries.burundi":"Burundi","countries.cambodia":"Cambodja","countries.cameroon":"Kameroen","countries.canada":"Canada","countries.cape_verde":"Kaapverdi\xEB","countries.cayman_islands":"Kaaimaneilanden","countries.central_african_republic":"Centraal-Afrikaanse Republiek","countries.chad":"Tsjaad","countries.chile":"Chili","countries.china":"China","countries.colombia":"Colombia","countries.comoros":"Comoren","countries.republic_of_the_congo":"Republiek Congo","countries.democratic_republic_of_the_congo":"Democratische Republiek Congo","countries.cook_islands":"Cookeilanden","countries.costa_rica":"Costa Rica","countries.c\xF4te_d'ivoire":"Ivoorkust","countries.croatia":"Kroati\xEB","countries.cuba":"Cuba","countries.cura\xE7ao":"Cura\xE7ao","countries.cyprus":"Cyprus","countries.czech_republic":"Tsjechische Republiek","countries.denmark":"Denemarken","countries.djibouti":"Djibouti","countries.dominica":"Dominica","countries.dominican_republic":"Dominicaanse Republiek","countries.ecuador":"Ecuador","countries.egypt":"Egypte","countries.el_salvador":"El Salvador","countries.equatorial_guinea":"Equatoriaal-Guinea","countries.eritrea":"Eritrea","countries.estonia":"Estland","countries.ethiopia":"Ethiopi\xEB","countries.falkland_island":"Falklandeiland","countries.faroe_islands":"Faer\xF6er Eilanden","countries.fiji":"Fiji","countries.finland":"Finland","countries.france":"Frankrijk","countries.french_polynesia":"Frans-Polynesi\xEB","countries.gabon":"Gabon","countries.gambia":"Gambia","countries.georgia":"Georgi\xEB","countries.germany":"Duitsland","countries.ghana":"Ghana","countries.gibraltar":"Gibraltar","countries.greece":"Griekenland","countries.greenland":"Groenland","countries.grenada":"Grenada","countries.guam":"Guam","countries.guatemala":"Guatemala","countries.guernsey":"Guernsey","countries.guinea":"Guinee","countries.guinea-bissau":"Guinee-Bissau","countries.guyana":"Guyana","countries.haiti":"Ha\xEFti","countries.honduras":"Honduras","countries.hong_kong":"Hongkong","countries.hungary":"Hongarije","countries.iceland":"IJsland","countries.india":"India","countries.indonesia":"Indonesi\xEB","countries.iran":"Iran","countries.iraq":"Irak","countries.ireland":"Ierland","countries.isle_of_man":"Man","countries.israel":"Isra\xEBl","countries.italy":"Itali\xEB","countries.jamaica":"Jamaica","countries.japan":"Japan","countries.jersey":"Jersey","countries.jordan":"Jordani\xEB","countries.kazakhstan":"Kazachstan","countries.kenya":"Kenia","countries.kiribati":"Kiribati","countries.north_korea":"Noord-Korea","countries.south_korea":"Zuid-Korea","countries.kosovo":"Kosovo","countries.kuwait":"Koeweit","countries.kyrgyzstan":"Kirgizi\xEB","countries.laos":"Laos","countries.latvia":"Letland","countries.lebanon":"Libanon","countries.lesotho":"Lesotho","countries.liberia":"Liberia","countries.libya":"Libi\xEB","countries.liechtenstein":"Liechtenstein","countries.lithuania":"Litouwen","countries.luxembourg":"Luxemburg","countries.macau":"Macau","countries.macedonia":"Macedoni\xEB","countries.madagascar":"Madagaskar","countries.malawi":"Malawi","countries.malaysia":"Maleisi\xEB","countries.maldives":"Maldiven","countries.mali":"Mali","countries.malta":"Malta","countries.marshall_islands":"Marshalleilanden","countries.mauritania":"Mauritani\xEB","countries.mauritius":"Mauritius","countries.mayotte":"Mayotte","countries.mexico":"Mexico","countries.micronesia":"Micronesi\xEB","countries.moldova":"Moldavi\xEB","countries.monaco":"Monaco","countries.mongolia":"Mongoli\xEB","countries.montenegro":"Montenegro","countries.montserrat":"Montserrat","countries.morocco":"Marokko","countries.mozambique":"Mozambique","countries.myanmar":"Myanmar","countries.namibia":"Namibi\xEB","countries.nauru":"Nauru","countries.nepal":"Nepal","countries.netherlands":"Nederland","countries.new_caledonia":"Nieuw-Caledoni\xEB","countries.new_zealand":"Nieuw-Zeeland","countries.nicaragua":"Nicaragua","countries.niger":"Niger","countries.nigeria":"Nigeria","countries.niue":"Niue","countries.norfolk_island":"Norfolkeiland","countries.northern_mariana_islands":"Noordelijke Marianen","countries.norway":"Noorwegen","countries.oman":"Oman","countries.pakistan":"Pakistan","countries.palau":"Palau","countries.palestine":"Palestina","countries.panama":"Panama","countries.papua_new_guinea":"Papoea-Nieuw-Guinea","countries.paraguay":"Paraguay","countries.peru":"Peru","countries.philippines":"Filipijnen","countries.pitcairn":"Pitcairn","countries.poland":"Polen","countries.portugal":"Portugal","countries.puerto_rico":"Puerto Rico","countries.qatar":"Qatar","countries.romania":"Roemeni\xEB","countries.russia":"Rusland","countries.rwanda":"Rwanda","countries.saint_helena":"Sint-Helena","countries.saint_kitts_and_nevis":"Saint Kitts en Nevis","countries.saint_lucia":"Saint Lucia","countries.saint_vincent_and_the_grenadines":"Saint Vincent en de Grenadines","countries.samoa":"Samoa","countries.san_marino":"San Marino","countries.s\xE3o_tom\xE9_and_pr\xEDncipe":"Sao Tom\xE9 en Principe","countries.saudi_arabia":"Saoedi-Arabi\xEB","countries.senegal":"Senegal","countries.serbia":"Servi\xEB","countries.seychelles":"Seychellen","countries.sierra_leone":"Sierra Leone","countries.singapore":"Singapore","countries.sint_maarten":"Sint-Maarten","countries.slovakia":"Slowakije","countries.slovenia":"Sloveni\xEB","countries.solomon_islands":"Salomonseilanden","countries.somalia":"Somali\xEB","countries.south_africa":"Zuid-Afrika","countries.south_sudan":"Zuid-Soedan","countries.spain":"Spanje","countries.sri_lanka":"Sri Lanka","countries.sudan":"Soedan","countries.suriname":"Suriname","countries.swaziland":"Swaziland","countries.sweden":"Zweden","countries.switzerland":"Zwitserland","countries.syria":"Syri\xEB","countries.taiwan":"Taiwan","countries.tajikistan":"Tadzjikistan","countries.tanzania":"Tanzania","countries.thailand":"Thailand","countries.timor-leste":"Oost-Timor","countries.togo":"Togo","countries.tonga":"Tonga","countries.trinidad_and_tobago":"Trinidad en Tobago","countries.tunisia":"Tunesi\xEB","countries.turkey":"Turkije","countries.turkmenistan":"Turkmenistan","countries.turks_and_caicos_islands":"Turks- en Caicoseilanden","countries.tuvalu":"Tuvalu","countries.uganda":"Oeganda","countries.ukraine":"Oekra\xEFne","countries.united_arab_emirates":"Verenigde Arabische Emiraten","countries.united_kingdom":"Verenigd Koninkrijk","countries.united_states":"Verenigde Staten","countries.uruguay":"Uruguay","countries.uzbekistan":"Oezbekistan","countries.vanuatu":"Vanuatu","countries.vatican_city":"Vaticaanstad","countries.venezuela":"Venezuela","countries.vietnam":"Vietnam","countries.british_virgin_islands":"Britse Maagdeneilanden","countries.us_virgin_islands":"Amerikaanse Maagdeneilanden","countries.wallis_and_futuna":"Wallis en Futuna","countries.western_sahara":"Westelijke Sahara","countries.yemen":"Jemen","countries.zambia":"Zambia","countries.zimbabwe":"Zimbabwe","dashboard.channel_selector.select_channel":"Selecteer Kanaal","dashboard.channel_selector.select_channel_label":"Elk kanaal heeft zijn eigen configuratie-instellingen.","dashboard.country_select.search_countries":"Zoek Landen","dashboard.menu.channel":"Kanaal","dashboard.menu.settings":"Instellingen","dashboard.menu.payment_methods":"Betaalmethoden","dashboard.menu.verification_methods":"Verificatiemethoden","dashboard.menu.order_payment_methods":"Betaalmethoden Volgorde","dashboard.pages.order_payment_methods.order_payment_methods":"Betaalmethode volgorde","dashboard.pages.order_payment_methods.if_you_have_any_questions":"Heeft u vragen over deze plugin van Buckaroo, dan kunt u contact met ons opnemen via e-mail:","dashboard.pages.order_payment_methods.if_you_have_any_questions_link":" of telefoon ","dashboard.pages.order_payment_methods.order_payment_methods_label":"Wijzig de volgorde van betaalmethoden","dashboard.pages.order_payment_methods.all_countries":"Alle landen","dashboard.pages.order_payment_methods.search_country":"Zoek land","dashboard.pages.order_payment_methods.payment_method_order_updated_successfully":"Betaalmethoden volgorde succesvol ge\xFCpdatet.","dashboard.pages.order_payment_methods.something_went_wrong":"Er is iets fout gegaan.","dashboard.pages.order_payment_methods.how_to_order_payment_method":"Hoe u uw betaalmethode volgorde aan kunt passen","dashboard.pages.order_payment_methods.explanation_intro":"Om de betaalmethoden per land in de juiste volgorde in te stellen, dient u aan de linkerkant van dit scherm het gewenste land te selecteren. Uw krijgt dan een overzicht van de betaalmethoden die voor dat land 'aan' staan. U kunt vervolgens de betaalmethoden in de juiste volgorde zetten door te slepen.","dashboard.pages.order_payment_methods.step_one":"Selecteer het land waarvoor u de volgorde van de betaalmethoden wilt wijzigen.","dashboard.pages.order_payment_methods.step_two":"Sleep de betaalmethoden in de volgorde van uw voorkeur.","dashboard.pages.order_payment_methods.step_three":"Sla de instellingen op en controleer in uw webshop (checkout) of alles correct weergeven wordt.","dashboard.pages.payments.configure_your_payment_name_settings":"Configureer uw instellingen voor {payment_name}","dashboard.pages.payments.configure_your_verification_name_settings":"Configureer uw instellingen voor {verification_name}","dashboard.pages.payments.modes_settings.live":"Live","dashboard.pages.payments.modes_settings.test":"Test","dashboard.pages.payments.modes_settings.off":"Uit","dashboard.pages.payments.configure":"Configuratie","dashboard.pages.payments.settings":"Instellingen","dashboard.pages.payments.save":"Opslaan","dashboard.pages.payments.mode":"Modus","dashboard.pages.payments.mode_label":'Indien ingesteld op "Live", dan kunt u daadwerkelijke betalingen doen. Indien ingesteld op "Test", dan kun je testtransacties doen. De betaalmethode verschijnt niet als deze op "Uit" staat.',"dashboard.pages.payments.front_label":"Betaalmethode naam","dashboard.pages.payments.front_label_label":"Deze naam wordt weergegeven in de checkout.","dashboard.pages.payments.payment_fee_incl_vat":"Betaalkosten incl. BTW","dashboard.pages.payments.payment_fee_incl_vat_label":"U kunt kosten in rekening brengen wanneer de klant deze betaalmethode selecteert. Specificeer statisch (bijv. 1,50). Decimalen moeten worden gescheiden door een punt (.)","dashboard.pages.payments.order_amount_allowed":"Bestelbedrag restricties","dashboard.pages.payments.order_amount_allowed_label":"Deze methode wordt alleen weergegeven als aan deze voorwaarde is voldaan.","dashboard.pages.payments.minimum_order_amount":"Minimaal toegestane bestelbedrag","dashboard.pages.payments.maximum_order_amount":"Maximaal toegestane bestelbedrag","dashboard.pages.payments.countries":"Landen","dashboard.pages.payments.countries_label":"Alleen geselecteerde landen zullen deze betaalmethode tonen, laat dit veld leeg om de methode voor alle landen in te schakelen.","dashboard.pages.payments.all_countries":"Alle landen","dashboard.pages.payments.clear":"Resetten","dashboard.pages.payments.search_country":"Zoek Land","dashboard.pages.payments.show_country_number_and_more":"en {country_number} meer...","dashboard.pages.payments.show_less":"Minder tonen","dashboard.pages.payments.client_side":"Cli\xEBnt Side Encryption","dashboard.pages.payments.client_side_label":"Gedrag van cli\xEBntzijdige betaalmethode in- of uitschakelen.","dashboard.pages.payments.seperate_authorize_and_capture":"Losse authorize en capture","dashboard.pages.payments.seperate_authorize_and_capture_label":"Wanneer deze optie is ingeschakeld, dient u de betaling van de credit- of debitcard handmatig vast te leggen (capture).","dashboard.pages.payments.allowed_creditcards":"Toegestane Cards","dashboard.pages.payments.allowed_creditcards_label":"Alleen geselecteerde credit- of debitcards worden op deze manier getoond","dashboard.pages.payments.search_creditcard":"Zoek Credit- of debitcard","dashboard.pages.payments.allowed_giftcards":"Toegestane cadeaukaarten","dashboard.pages.payments.allowed_giftcards_label":"Alleen geselecteerde cadeaukaarten worden op deze manier getoond","dashboard.pages.payments.add_custom_giftcard":"Eigen cadeaukaart toevoegen","dashboard.pages.payments.search_giftcard":"Zoek Cadeaukaart","dashboard.pages.payments.custom_giftcard":"Eigen cadeaukaart","dashboard.pages.payments.add":"Toevoegen","dashboard.pages.payments.edit":"Aanpassen","dashboard.pages.payments.remove":"Verwijderen","dashboard.pages.payments.giftcard_name":"Cadeaukaart Naam","dashboard.pages.payments.enter_giftcard_details":"Voer cadeaukaartgegevens in","dashboard.pages.payments.service_code":"Service Code","dashboard.pages.payments.custom_icon_url":"Aangepaste cadeaukaart logo URL","dashboard.pages.payments.payment_methods":"Betaalmethoden","dashboard.pages.payments.verification_methods":"Verificatiemethoden","dashboard.pages.payments.configure_your_payment_method_settings":"Configureer uw betaalmethoden instellingen","dashboard.pages.payments.configure_your_verification_method_settings":"Configureer uw instellingen voor de verificatiemethoden","dashboard.pages.payments.customer_type":"Klant type","dashboard.pages.payments.display_type":"Weergavetype","dashboard.pages.payments.display_type_label":"Deze instelling bepaalt hoe de bankselectie voor deze betaalmethode wordt weergegeven bij het afrekenen.
U kunt kiezen tussen keuzerondjes of een vervolgkeuzelijst.","dashboard.pages.payments.display_types.radio":"Radio","dashboard.pages.payments.display_types.dropdown":"Laten vallen","dashboard.pages.payments.send_email_instruction":"Stuur betalingsinstructie e-mail","dashboard.pages.payments.send_email_instruction_yes":"Ja","dashboard.pages.payments.send_email_instruction_no":"Nee","dashboard.pages.payments.send_email_merchant":"Merchant stuurt e-mail","dashboard.pages.payments.due_date":"Vervaldatum (in dagen)","dashboard.pages.payments.allowed_methods":"Toegestane betaalmethoden","dashboard.pages.payments.vat_type_for_wrap":"BTW-type voor cadeauverpakking","dashboard.pages.payments.vat_type_for_wrap_select":"Selecteer BTW-type voor cadeauverpakking","dashboard.pages.payments.min_order_amount_b2b":"Minimale B2B bestelbedrag","dashboard.pages.payments.max_order_amount_b2c":"Maximale B2B bestelbedrag","dashboard.pages.payments.in3.version.label":"In3 versie","dashboard.pages.payments.in3.version.v3":"V3 (iDEAL In3)","dashboard.pages.payments.in3.version.v2":"V2 (Capayabel/In3)","dashboard.pages.payments.customer.type_label":"Klanttype","dashboard.pages.payments.customer.type.both":"Beide","dashboard.pages.payments.customer.type.b2c":"B2C","dashboard.pages.payments.customer.type.b2c.long":"Business-to-consumer","dashboard.pages.payments.customer.type.b2b":"B2B","dashboard.pages.payments.customer.type.b2b.long":"Business-to-Business","dashboard.pages.payments.logo":"Betaalmethode logo","dashboard.pages.payments.seller_protection":"Verkopersbescherming","dashboard.pages.payments.seller_protection_enable":"Schakel de PayPal Verkopersbescherming in","dashboard.pages.payments.seller_protection_enabled":"Ja","dashboard.pages.payments.seller_protection_disabled":"Nee","dashboard.pages.payments.idin.display_mode":"iDIN modus:","dashboard.pages.payments.idin.display_mode.product":"Specifieke producten","dashboard.pages.payments.idin.display_mode.global":"Globaal","dashboard.pages.payments.idin.display_mode_label":"Met deze instelling kunt u selecteren of iDIN is ingeschakeld voor alle producten in de winkel (globaal) of alleen voor specifieke producten. Voor specifieke producten dient u het ook in te schakelen voor de producten in de PrestaShop-catalogus.","dashboard.pages.settings.credentials_label":"Haal uw Buckaroo gegevens op uit de Buckaroo Plaza","dashboard.pages.settings.refunds_label_label":"Indien ingeschakeld, kunt u (gedeeltelijke) terugbetalingen rechtstreeks vanuit uw PrestaShop-beheergebied uitvoeren Read more","dashboard.pages.settings.refunds_label_explanation":"Deze omschrijving wordt gebruikt bij de terugbetaling en zal zichtbaar zijn in Buckaroo en op het bankafschrift van de consument. Wij adviseren om de webshopnaam te gebruiken, zodat klanten de betaling gemakkelijk kunnen herkennen.","dashboard.pages.settings.settings":"Instellingen","dashboard.pages.settings.settings_label":"Configureer uw instellingen","dashboard.pages.settings.mode":"Modus","dashboard.pages.settings.mode_label":"Verander eenvoudig de modus","dashboard.pages.settings.no_im_testing":"Nee, ik wil testen","dashboard.pages.settings.when_your_shop_is_not_live_yet":"Wanneer u webwinkel nog niet live is","dashboard.pages.settings.yes_im_ready_to_receive_payments":"Ja, ik ben klaar om betalingen te ontvangen","dashboard.pages.settings.your_shop_is_live_and_ready_to_receive_real_payments":"Uw webwinkel is live en klaar om echte betalingen te ontvangen","dashboard.pages.settings.credentials":"Buckaroo gegevens","dashboard.pages.settings.test_connection":"Test Gegevens","dashboard.pages.settings.successfully_verified_the_credentials":"De gegevens zijn succesvol geverifieerd!","dashboard.pages.settings.the_credentials_are_not_valid":"De gegevens zijn onjuist!","dashboard.pages.settings.website_key":"Website key","dashboard.pages.settings.secret_key":"Secret key","dashboard.pages.settings.transaction_description":"Transactie Beschrijving","dashboard.pages.settings.transaction_description_label":'De transactiebeschrijving kan worden gevuld met een statische tekst en tags zoals: {order_number} en {shop_name}.',"dashboard.pages.settings.example":"Voorbeeld","dashboard.pages.settings.order_number":"Bestellingsnummer","dashboard.pages.settings.shop_name":"Winkelnaam","dashboard.pages.settings.order_number2":"bestellingsnummer","dashboard.pages.settings.shop_name2":"winkelnaam","dashboard.pages.settings.refunds":"Terugbetalingen","dashboard.pages.settings.refunds_label":"Terugbetaling omschrijving","dashboard.pages.settings.return_url":"Return-URL","dashboard.pages.settings.return_url_label":"Stel een aangepaste return-URL in nadat de klant de betaling heeft voltooid.","dashboard.pages.settings.return_url_explanation":"Wanneer dit veld leeg wordt gelaten, keert de klant terug naar de standaard PrestaShop bevestigingspagina.","dashboard.pages.settings.checkout_url":"Cancel-URL","dashboard.pages.settings.checkout_url_label":"Stel een aangepaste cancel-URL in nadat de klant de betaling heeft geannuleerd of als er iets mis is gegaan tijdens het proces.","dashboard.pages.settings.checkout_url_explanation":"Wanneer dit veld leeg wordt gelaten, keert de klant terug naar de standaard PrestaShop afrekenpagina.","dashboard.pages.settings.save":"Opslaan","dashboard.pages.settings.add":"Toevoegen","dashboard.pages.settings.remove":"Verwijder","dashboard.pages.settings.custom_scripts":"Aangepaste scripts","dashboard.pages.settings.custom_scripts_label":"Voeg aangepaste javascript of css code toe aan uw checkout.","dashboard.pages.settings.custom_scripts_placeholder":"Javascript / CSS (https://example.com/style.css)","dashboard.pages.settings.settings_successfully_updated":"Instellingen succesvol bijgewerkt.","dashboard.pages.settings.welcome_to_buckaroo":"Welkom bij Buckaroo","dashboard.pages.settings.explanation_intro":"Welkom bij het configuratiescherm van de Buckaroo Payment app voor jouw PrestaShop webshop. In dit scherm kunt u de app helemaal naar wens instellen. Hieronder vind u de stappen om de instellingen te configureren. Voor verdere vragen verwijzen wij u naar onze documentatie pagina.","dashboard.pages.settings.step_three":"Klik op \u2018test verbinding\u2019, indien correct ga verder naar stap 4.","dashboard.pages.settings.step_four":"Configureer de geavanceerde instellingen & Betaalmethodes","dashboard.pages.settings.step_five":"Begin met testen, als het testen goed gaat, kunt u LIVE transacties starten","dashboard.pages.settings.advance_settings":"Geavanceerde Instellingen","dashboard.pages.settings.hide_advance_settings":"Geavanceerde Instellingen Verbergen","dashboard.pages.settings.re_stock_products":"De voorraad aanvullen bij retourproducten","dashboard.pages.settings.re_stock_products_label":"Of terugbetaalde producten moeten worden teruggeplaatst in de voorraad (waardoor de voorraadhoeveelheid wordt verhoogd).","dashboard.pages.settings.generate_credit_slip":"Een creditnota genereren","dashboard.pages.settings.generate_credit_slip_label":"Of er een creditnota moet worden gegenereerd.","dashboard.pages.settings.generate_voucher":"Een voucher genereren","dashboard.pages.settings.generate_voucher_label":"Of er een voucher moet worden gegenereerd.","dashboard.pages.settings.generate_negative_payments":"Een negatieve betaling bij terugbetalingen aanmaken","dashboard.pages.settings.generate_negative_payments_label":"Of er ook een negatieve betaling moet worden gecre\xEBerd bij het uitvoeren van een terugbetaling.","payment_methods.applepay":"Apple Pay","payment_methods.creditcard":"Cards","payment_methods.giftcard":"Giftcard","payment_methods.ideal":"iDEAL","payment_methods.paybybank":"PayByBank","payment_methods.sepadirectdebit":"SEPA Direct Debit","payment_methods.kbc":"KBC","payment_methods.in3":"In3","payment_methods.billink":"Billink","payment_methods.eps":"EPS","payment_methods.przelewy24":"Przelewy24","payment_methods.payperemail":"PayPerEmail","payment_methods.payconiq":"Payconiq","payment_methods.tinka":"Tinka","payment_methods.paypal":"PayPal","payment_methods.bancontactmrcash":"Bancontact","payment_methods.sofortueberweisung":"Sofort","payment_methods.giropay":"Giropay","payment_methods.klarna":"Klarna","payment_methods.afterpay":"Riverty","payment_methods.trustly":"Trustly","payment_methods.transfer":"Transfer","payment_methods.wechatpay":"WeChatPay","payment_methods.alipay":"Alipay","payment_methods.idin":"iDIN","payment_methods.multibanco":"Multibanco","payment_methods.mbway":"MB WAY","verification_methods.idin":"iDIN"};/* + * + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) + */const BD={en:$D,nl:FD},UD=CD({legacy:!1,locale:"en",messages:BD}),xn=(e,n)=>{const r=e.__vccOpts||e;for(const[s,a]of n)r[s]=a;return r},jD={props:["color"],setup(e){const n=it("text-primary");return e.color&&(n.value=e.color),{loadingColor:n}}},HD={class:"flex justify-center"},WD=C("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),VD=C("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),GD=[WD,VD];function KD(e,n,r,s,a,l){return xe(),ke("div",HD,[(xe(),ke("svg",{class:Jt("animate-spin h-5 w-5 "+s.loadingColor),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},GD,2))])}const gv=xn(jD,[["render",KD]]);function zD(e){return Sd()?(im(e),!0):!1}function lw(e){return typeof e=="function"?e():Mu(e)}const qu=typeof window<"u",uw=()=>{},YD=XD();function XD(){var e;return qu&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function nu(e){var n;const r=lw(e);return(n=r==null?void 0:r.$el)!=null?n:r}const cw=qu?window:void 0;qu&&window.document;qu&&window.navigator;qu&&window.location;function Gh(...e){let n,r,s,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,s,a]=e,n=cw):[n,r,s,a]=e,!n)return uw;Array.isArray(r)||(r=[r]),Array.isArray(s)||(s=[s]);const l=[],o=()=>{l.forEach(y=>y()),l.length=0},f=(y,v,_,w)=>(y.addEventListener(v,_,w),()=>y.removeEventListener(v,_,w)),d=Yr(()=>[nu(n),lw(a)],([y,v])=>{o(),y&&l.push(...r.flatMap(_=>s.map(w=>f(y,_,w,v))))},{immediate:!0,flush:"post"}),p=()=>{d(),o()};return zD(p),p}let p0=!1;function QD(e,n,r={}){const{window:s=cw,ignore:a=[],capture:l=!0,detectIframe:o=!1}=r;if(!s)return;YD&&!p0&&(p0=!0,Array.from(s.document.body.children).forEach(_=>_.addEventListener("click",uw)));let f=!0;const d=_=>a.some(w=>{if(typeof w=="string")return Array.from(s.document.querySelectorAll(w)).some(T=>T===_.target||_.composedPath().includes(T));{const T=nu(w);return T&&(_.target===T||_.composedPath().includes(T))}}),y=[Gh(s,"click",_=>{const w=nu(e);if(!(!w||w===_.target||_.composedPath().includes(w))){if(_.detail===0&&(f=!d(_)),!f){f=!0;return}n(_)}},{passive:!0,capture:l}),Gh(s,"pointerdown",_=>{const w=nu(e);w&&(f=!_.composedPath().includes(w)&&!d(_))},{passive:!0}),o&&Gh(s,"blur",_=>{setTimeout(()=>{var w;const T=nu(e);((w=s.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!(T!=null&&T.contains(s.document.activeElement))&&n(_)},0)})].filter(Boolean);return()=>y.forEach(_=>_())}const fw="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAALABADAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABgj/xAAhEAACAwEAAwACAwAAAAAAAAABAgMEBQYHERIhIgAVQf/EABgBAAIDAAAAAAAAAAAAAAAAAAMGAQIE/8QAJBEAAgIBAwQCAwAAAAAAAAAAAQIDEQQFEiEABiIxE2EVMkH/2gAMAwEAAhEDEQA/AKjjqc2nC2el/rau7Yz8K1DFo1UxwQ7ZrkpMUuyNIFjaSQqEL/Kr8fopVz61qeZiRzQ/G6IwbhiPYN2tkGuDY5+qqum7tXQsHUc3Eb5omdZI72rKCQWC0wERSySAG3KLPlZN9DOzqchS4iDqr1PN5rb1+cpy1dLVh59kjiGYFilrx2NGFvotXkkVpF9AKwKK0YdLaDqmblLDA8MkqIFbarADk/s/JYiya4A9cbhzp7q7fwMPJzJIsmKMtJKpLLOWsMbjUiHYpCkBqZiefPY23qatHzJ5GPll+RG9EmNmct0sFOlHn1kihjiytBUVQIx+AEH4/wBJcn2XYl4yNKw5u3svNkS5XLAsSbI3gV74H0P7z76S9I1HKxtcwMWJyI0aFgB63FVYt9tZPJs14jxAHRXU8veQtDyfpeN7+5FZ5nR4CjesZs1Cs8RsJytaQSL7j9oxMUYYqR9ooRvpP1/k4Gl4n4TFnCU8YG1gSCPI8WDde7B4Nm/Z6Hruq5i67mLv4llYODRDWxuwRV82DVqaZSCAev/Z",dw="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAALABADAREAAhEBAxEB/8QAFwAAAwEAAAAAAAAAAAAAAAAABQYHCf/EACUQAAEDAwQCAgMAAAAAAAAAAAECAwQFERIABwgxBiETIxQyQf/EABoBAAEFAQAAAAAAAAAAAAAAAAgBAgMFBgf/xAAnEQABAwMBBwUAAAAAAAAAAAABAgMhABExBAUGCBRhcdESEzNR4f/aAAwDAQACEQMRAD8Au0Djhx1boFNSN7vAXgIMe0oxqcr8j60/bkXTfP8Aa9z32dVadyXUJDZZVcR8cx9xmu2v8QWocfW7awUSQOYVYAm4GAIEYHalnyrjpx2TSai4ORXgMQohyF5hqmo+OzajncPAjG2XY67Gkc3HfUggNKHX2/yp9PxDqS4m7QVIjmFG84kHOMHtWW7W+26cKmxKRH8kaEWDHbisIVTYiyhptIShOSmio2SALkk+tEzrWENqKkixJvk0M52bpXSVLRcnqfNB6pu5uBVY0iHOrTK2pTS2HQmnxkFSFpKVDJLYIuCR6P8AdZvU6l0XR6oNPa2Rom1BxKJEiT5r/9k=",JD={name:"LanguageSelector",setup(){const{locale:e}=la(),n=it(!1),r=it(null),s=it(e.value);return QD(r,()=>n.value=!1),{showMenu:n,languageMenuRef:r,currentLanguage:s,changeLanguage:l=>{e.value=l,n.value=!1,s.value=l}}}},qD={class:"md:px-6 w-full text-white text-sm relative"},ZD={key:0,class:"flex space-x-1"},eM=C("img",{src:fw,class:"w-4",alt:""},null,-1),tM=C("span",{class:"text-xs"},[ln("English "),C("i",{class:"fas fa-chevron-down text-[8px]"})],-1),nM=[eM,tM],rM={key:1,class:"flex space-x-1"},sM=C("img",{src:dw,class:"w-4",alt:""},null,-1),iM=C("span",{class:"text-xs"},[ln("Nederlands "),C("i",{class:"fas fa-chevron-down text-[8px]"})],-1),oM=[sM,iM],aM={key:0,ref:"languageMenuRef",class:"bg-white text-gray-800 rounded-lg inline-block shadow-xl mt-1 absolute w-1/2 overflow-hidden"},lM=C("img",{src:dw,alt:"",class:"w-4"},null,-1),uM=C("div",null,"Nederlands",-1),cM=C("img",{src:fw,alt:"",class:"w-4"},null,-1),fM=C("div",null,"English",-1);function dM(e,n,r,s,a,l){return xe(),ke("div",qD,[C("div",null,[C("div",{class:"inline-block hover:bg-sixthly p-2 cursor-pointer rounded-lg",onClick:n[0]||(n[0]=o=>s.showMenu=!s.showMenu)},[s.currentLanguage==="en"?(xe(),ke("div",ZD,nM)):nt("",!0),s.currentLanguage==="nl"?(xe(),ke("div",rM,oM)):nt("",!0)])]),vt(bo,{"enter-from-class":"opacity-0 translate-y-3","enter-to-class":"opacity-100 translate-y-0","enter-active-class":"transform transition ease-out duration-200","leave-active-class":"transform transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-3"},{default:Pr(()=>[s.showMenu?(xe(),ke("ul",aM,[s.currentLanguage!=="nl"?(xe(),ke("li",{key:0,onClick:n[1]||(n[1]=o=>s.changeLanguage("nl")),class:"p-2 flex space-x-2 cursor-pointer hover:bg-gray-200"},[lM,ln(),uM])):nt("",!0),s.currentLanguage!=="en"?(xe(),ke("li",{key:1,onClick:n[2]||(n[2]=o=>s.changeLanguage("en")),class:"p-2 flex space-x-2 cursor-pointer hover:bg-gray-200"},[cM,ln(),fM])):nt("",!0)],512)):nt("",!0)]),_:1})])}const pM=xn(JD,[["render",dM]]),hM="/modules/buckaroo3/views/media/logo-0fae5e59.png",gM={name:"Menu.vue",components:{LanguageSelector:pM},setup(e,{emit:n}){const r=vn("view"),s=vn("app");return{view:r,app:s,setView:l=>{r.value=l,n("changedView",l)}}}},mM={class:"md:border-l-2 md:border-primary space-y-5"},vM=C("div",{class:"md:px-8 md:py-5 p-5 md:w-52 w-36"},[C("img",{src:hM,alt:""})],-1),yM={class:"text-sm space-y-2 flex md:flex-col"},bM=C("i",{class:"fas fa-cogs md:text-base text-xl"},null,-1),_M={class:"md:inline block md:text-sm text-xs"},xM=C("i",{class:"fas fa-credit-card md:text-base text-xl"},null,-1),EM={class:"md:inline block md:text-sm text-xs"},wM=C("i",{class:"fas fa-badge-check md:text-base text-xl"},null,-1),SM={class:"md:inline block md:text-sm text-xs"},TM=C("i",{class:"fas fa-sort-numeric-up md:text-base text-xl"},null,-1),CM={class:"md:inline block md:text-sm text-xs"};function AM(e,n,r,s,a,l){const o=rn("LanguageSelector");return xe(),ke("div",mM,[C("div",null,[vM,vt(o)]),C("ul",yM,[C("li",{class:Jt(["text-white md:p-5 p-2 cursor-pointer transition ease-in-out duration-300 flex-1 md:text-left text-left space-y-2 md:block md:space-x-1 flex flex-col justify-center",{"bg-sixthly text-white":s.view==="settings","hover:bg-seventhly text-eightly":s.view!=="settings"}]),onClick:n[0]||(n[0]=f=>s.setView("settings"))},[bM,ln(),C("span",_M,ce(e.$t("dashboard.menu.settings")),1)],2),C("li",{class:Jt(["text-white md:p-5 p-2 cursor-pointer transition ease-in-out duration-300 flex-1 md:text-left text-left space-y-2 md:block md:space-x-1 flex flex-col justify-center",{"bg-sixthly text-white":s.view==="payment_methods","hover:bg-seventhly text-eightly":s.view!=="payment_methods"}]),onClick:n[1]||(n[1]=f=>s.setView("payment_methods"))},[xM,ln(),C("span",EM,ce(e.$t("dashboard.menu.payment_methods")),1)],2),C("li",{class:Jt(["text-white md:p-5 p-2 cursor-pointer transition ease-in-out duration-300 flex-1 md:text-left text-left space-y-2 md:block md:space-x-1 flex flex-col justify-center",{"bg-sixthly text-white":s.view==="verification_methods","hover:bg-seventhly text-eightly":s.view!=="verification_methods"}]),onClick:n[2]||(n[2]=f=>s.setView("verification_methods"))},[wM,ln(),C("span",SM,ce(e.$t("dashboard.menu.verification_methods")),1)],2),C("li",{class:Jt(["text-white md:p-5 p-2 cursor-pointer transition ease-in-out duration-300 flex-1 md:text-left text-left space-y-2 md:block md:space-x-1 flex flex-col justify-center",{"bg-sixthly text-white":s.view==="order_payment_methods","hover:bg-seventhly text-eightly":s.view!=="order_payment_methods"}]),onClick:n[3]||(n[3]=f=>s.setView("order_payment_methods"))},[TM,ln(),C("span",CM,ce(e.$t("dashboard.pages.order_payment_methods.order_payment_methods")),1)],2)])])}const OM=xn(gM,[["render",AM]]);var IM=Object.assign||function(e){for(var n,r=1;r"u"?"undefined":h0(o))==="object"?f:"")+"]",o,a)}):(typeof s>"u"?"undefined":h0(s))==="object"?Object.keys(s).forEach(function(o){return n.buildQueryParams(r+"["+o+"]",s[o],a)}):a(r,s)},this.getRoute=function(r){var s=n.contextRouting.prefix+r;if(n.routesRouting[s])return n.routesRouting[s];if(!n.routesRouting[r])throw new Error('The route "'+r+'" does not exist.');return n.routesRouting[r]},this.generate=function(r,s,a){var l=n.getRoute(r),o=s||{},f=IM({},o),d="_scheme",p="",y=!0,v="";if((l.tokens||[]).forEach(function(T){if(T[0]==="text")return p=T[1]+p,void(y=!1);if(T[0]==="variable"){var P=(l.defaults||{})[T[3]];if(y==!1||!P||(o||{})[T[3]]&&o[T[3]]!==l.defaults[T[3]]){var M;if((o||{})[T[3]])M=o[T[3]],delete f[T[3]];else if(P)M=l.defaults[T[3]];else{if(y)return;throw new Error('The route "'+r+'" requires the parameter "'+T[3]+'".')}var S=M===!0||M===!1||M==="";if(!S||!y){var I=encodeURIComponent(M).replace(/%2F/g,"/");I==="null"&&M===null&&(I=""),p=T[1]+I+p}y=!1}else P&&delete f[T[3]];return}throw new Error('The token type "'+T[0]+'" is not supported.')}),p==""&&(p="/"),(l.hosttokens||[]).forEach(function(T){var P;return T[0]==="text"?void(v=T[1]+v):void(T[0]==="variable"&&((o||{})[T[3]]?(P=o[T[3]],delete f[T[3]]):l.defaults[T[3]]&&(P=l.defaults[T[3]]),v=T[1]+P+v))}),p=n.contextRouting.base_url+p,l.requirements[d]&&n.getScheme()!==l.requirements[d]?p=l.requirements[d]+"://"+(v||n.getHost())+p:v&&n.getHost()!==v?p=n.getScheme()+"://"+v+p:a===!0&&(p=n.getScheme()+"://"+n.getHost()+p),0{const n=vn("csrfToken"),r=vn("adminUrl");let s=new UM(r,n);const a=it(),l=it(!1),o=it(),f=z0.create({baseURL:r+""}),d=v=>(l.value=!0,o.value=void 0,f.get(s.generate(e,v)).then(_=>a.value=_.data).catch(_=>{throw o.value=_,_}).finally(()=>l.value=!1)),p=(v,_)=>(l.value=!0,o.value=void 0,f.post(s.generate(e,_),v).then(w=>a.value=w.data).catch(w=>{throw o.value=w,w}).finally(()=>l.value=!1)),y=Jn(()=>o.value?o.value.message:null);return Yr(o,v=>{}),{loading:l,data:a,error:o,get:d,post:p,errorMessage:y}};var pw={exports:{}},zh={exports:{}};/*! + * jQuery JavaScript Library v3.7.0 + * https://jquery.com/ + * + * Copyright OpenJS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2023-05-11T18:29Z + */var g0;function jM(){return g0||(g0=1,function(e){(function(n,r){e.exports=n.document?r(n,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return r(s)}})(typeof window<"u"?window:Wo,function(n,r){var s=[],a=Object.getPrototypeOf,l=s.slice,o=s.flat?function(c){return s.flat.call(c)}:function(c){return s.concat.apply([],c)},f=s.push,d=s.indexOf,p={},y=p.toString,v=p.hasOwnProperty,_=v.toString,w=_.call(Object),T={},P=function(g){return typeof g=="function"&&typeof g.nodeType!="number"&&typeof g.item!="function"},M=function(g){return g!=null&&g===g.window},S=n.document,I={type:!0,src:!0,nonce:!0,noModule:!0};function B(c,g,b){b=b||S;var E,A,O=b.createElement("script");if(O.text=c,g)for(E in I)A=g[E]||g.getAttribute&&g.getAttribute(E),A&&O.setAttribute(E,A);b.head.appendChild(O).parentNode.removeChild(O)}function R(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?p[y.call(c)]||"object":typeof c}var $="3.7.0",G=/HTML$/i,m=function(c,g){return new m.fn.init(c,g)};m.fn=m.prototype={jquery:$,constructor:m,length:0,toArray:function(){return l.call(this)},get:function(c){return c==null?l.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var g=m.merge(this.constructor(),c);return g.prevObject=this,g},each:function(c){return m.each(this,c)},map:function(c){return this.pushStack(m.map(this,function(g,b){return c.call(g,b,g)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(m.grep(this,function(c,g){return(g+1)%2}))},odd:function(){return this.pushStack(m.grep(this,function(c,g){return g%2}))},eq:function(c){var g=this.length,b=+c+(c<0?g:0);return this.pushStack(b>=0&&b0&&g-1 in c}function j(c,g){return c.nodeName&&c.nodeName.toLowerCase()===g.toLowerCase()}var K=s.pop,re=s.sort,pe=s.splice,q="[\\x20\\t\\r\\n\\f]",le=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g");m.contains=function(c,g){var b=g&&g.parentNode;return c===b||!!(b&&b.nodeType===1&&(c.contains?c.contains(b):c.compareDocumentPosition&&c.compareDocumentPosition(b)&16))};var Fe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ee(c,g){return g?c==="\0"?"\uFFFD":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c}m.escapeSelector=function(c){return(c+"").replace(Fe,Ee)};var Ae=S,$e=f;(function(){var c,g,b,E,A,O=$e,D,J,V,ie,be,Se=m.expando,me=0,Me=0,Ge=Oo(),St=Oo(),xt=Oo(),zn=Oo(),Cn=function(W,ne){return W===ne&&(A=!0),0},gs="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ms="(?:\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Bt="\\["+q+"*("+ms+")(?:"+q+"*([*^$|!~]?=)"+q+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+ms+"))|)"+q+"*\\]",Xs=":("+ms+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Bt+")*)|.*)\\)|)",Ut=new RegExp(q+"+","g"),fn=new RegExp("^"+q+"*,"+q+"*"),To=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),va=new RegExp(q+"|>"),Zr=new RegExp(Xs),fi=new RegExp("^"+ms+"$"),Dr={ID:new RegExp("^#("+ms+")"),CLASS:new RegExp("^\\.("+ms+")"),TAG:new RegExp("^("+ms+"|[*])"),ATTR:new RegExp("^"+Bt),PSEUDO:new RegExp("^"+Xs),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+gs+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},ks=/^(?:input|select|textarea|button)$/i,Qs=/^h\d$/i,pr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Co=/[+~]/,Ls=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),vs=function(W,ne){var ge="0x"+W.slice(1)-65536;return ne||(ge<0?String.fromCharCode(ge+65536):String.fromCharCode(ge>>10|55296,ge&1023|56320))},xr=function(){Js()},Al=di(function(W){return W.disabled===!0&&j(W,"fieldset")},{dir:"parentNode",next:"legend"});function Ao(){try{return D.activeElement}catch{}}try{O.apply(s=l.call(Ae.childNodes),Ae.childNodes),s[Ae.childNodes.length].nodeType}catch{O={apply:function(ne,ge){$e.apply(ne,l.call(ge))},call:function(ne){$e.apply(ne,l.call(arguments,1))}}}function an(W,ne,ge,ve){var H,ee,Z,Te,Oe,ze,Ye,We=ne&&ne.ownerDocument,Pt=ne?ne.nodeType:9;if(ge=ge||[],typeof W!="string"||!W||Pt!==1&&Pt!==9&&Pt!==11)return ge;if(!ve&&(Js(ne),ne=ne||D,V)){if(Pt!==11&&(Oe=pr.exec(W)))if(H=Oe[1]){if(Pt===9)if(Z=ne.getElementById(H)){if(Z.id===H)return O.call(ge,Z),ge}else return ge;else if(We&&(Z=We.getElementById(H))&&an.contains(ne,Z)&&Z.id===H)return O.call(ge,Z),ge}else{if(Oe[2])return O.apply(ge,ne.getElementsByTagName(W)),ge;if((H=Oe[3])&&ne.getElementsByClassName)return O.apply(ge,ne.getElementsByClassName(H)),ge}if(!zn[W+" "]&&(!ie||!ie.test(W))){if(Ye=W,We=ne,Pt===1&&(va.test(W)||To.test(W))){for(We=Co.test(W)&&Ol(ne.parentNode)||ne,(We!=ne||!T.scope)&&((Te=ne.getAttribute("id"))?Te=m.escapeSelector(Te):ne.setAttribute("id",Te=Se)),ze=Io(W),ee=ze.length;ee--;)ze[ee]=(Te?"#"+Te:":scope")+" "+ts(ze[ee]);Ye=ze.join(",")}try{return O.apply(ge,We.querySelectorAll(Ye)),ge}catch{zn(W,!0)}finally{Te===Se&&ne.removeAttribute("id")}}}return Ic(W.replace(le,"$1"),ne,ge,ve)}function Oo(){var W=[];function ne(ge,ve){return W.push(ge+" ")>g.cacheLength&&delete ne[W.shift()],ne[ge+" "]=ve}return ne}function es(W){return W[Se]=!0,W}function Ui(W){var ne=D.createElement("fieldset");try{return!!W(ne)}catch{return!1}finally{ne.parentNode&&ne.parentNode.removeChild(ne),ne=null}}function wp(W){return function(ne){return j(ne,"input")&&ne.type===W}}function Sp(W){return function(ne){return(j(ne,"input")||j(ne,"button"))&&ne.type===W}}function Ac(W){return function(ne){return"form"in ne?ne.parentNode&&ne.disabled===!1?"label"in ne?"label"in ne.parentNode?ne.parentNode.disabled===W:ne.disabled===W:ne.isDisabled===W||ne.isDisabled!==!W&&Al(ne)===W:ne.disabled===W:"label"in ne?ne.disabled===W:!1}}function Mr(W){return es(function(ne){return ne=+ne,es(function(ge,ve){for(var H,ee=W([],ge.length,ne),Z=ee.length;Z--;)ge[H=ee[Z]]&&(ge[H]=!(ve[H]=ge[H]))})})}function Ol(W){return W&&typeof W.getElementsByTagName<"u"&&W}function Js(W){var ne,ge=W?W.ownerDocument||W:Ae;return ge==D||ge.nodeType!==9||!ge.documentElement||(D=ge,J=D.documentElement,V=!m.isXMLDoc(D),be=J.matches||J.webkitMatchesSelector||J.msMatchesSelector,Ae!=D&&(ne=D.defaultView)&&ne.top!==ne&&ne.addEventListener("unload",xr),T.getById=Ui(function(ve){return J.appendChild(ve).id=m.expando,!D.getElementsByName||!D.getElementsByName(m.expando).length}),T.disconnectedMatch=Ui(function(ve){return be.call(ve,"*")}),T.scope=Ui(function(){return D.querySelectorAll(":scope")}),T.cssHas=Ui(function(){try{return D.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),T.getById?(g.filter.ID=function(ve){var H=ve.replace(Ls,vs);return function(ee){return ee.getAttribute("id")===H}},g.find.ID=function(ve,H){if(typeof H.getElementById<"u"&&V){var ee=H.getElementById(ve);return ee?[ee]:[]}}):(g.filter.ID=function(ve){var H=ve.replace(Ls,vs);return function(ee){var Z=typeof ee.getAttributeNode<"u"&&ee.getAttributeNode("id");return Z&&Z.value===H}},g.find.ID=function(ve,H){if(typeof H.getElementById<"u"&&V){var ee,Z,Te,Oe=H.getElementById(ve);if(Oe){if(ee=Oe.getAttributeNode("id"),ee&&ee.value===ve)return[Oe];for(Te=H.getElementsByName(ve),Z=0;Oe=Te[Z++];)if(ee=Oe.getAttributeNode("id"),ee&&ee.value===ve)return[Oe]}return[]}}),g.find.TAG=function(ve,H){return typeof H.getElementsByTagName<"u"?H.getElementsByTagName(ve):H.querySelectorAll(ve)},g.find.CLASS=function(ve,H){if(typeof H.getElementsByClassName<"u"&&V)return H.getElementsByClassName(ve)},ie=[],Ui(function(ve){var H;J.appendChild(ve).innerHTML="",ve.querySelectorAll("[selected]").length||ie.push("\\["+q+"*(?:value|"+gs+")"),ve.querySelectorAll("[id~="+Se+"-]").length||ie.push("~="),ve.querySelectorAll("a#"+Se+"+*").length||ie.push(".#.+[+~]"),ve.querySelectorAll(":checked").length||ie.push(":checked"),H=D.createElement("input"),H.setAttribute("type","hidden"),ve.appendChild(H).setAttribute("name","D"),J.appendChild(ve).disabled=!0,ve.querySelectorAll(":disabled").length!==2&&ie.push(":enabled",":disabled"),H=D.createElement("input"),H.setAttribute("name",""),ve.appendChild(H),ve.querySelectorAll("[name='']").length||ie.push("\\["+q+"*name"+q+"*="+q+`*(?:''|"")`)}),T.cssHas||ie.push(":has"),ie=ie.length&&new RegExp(ie.join("|")),Cn=function(ve,H){if(ve===H)return A=!0,0;var ee=!ve.compareDocumentPosition-!H.compareDocumentPosition;return ee||(ee=(ve.ownerDocument||ve)==(H.ownerDocument||H)?ve.compareDocumentPosition(H):1,ee&1||!T.sortDetached&&H.compareDocumentPosition(ve)===ee?ve===D||ve.ownerDocument==Ae&&an.contains(Ae,ve)?-1:H===D||H.ownerDocument==Ae&&an.contains(Ae,H)?1:E?d.call(E,ve)-d.call(E,H):0:ee&4?-1:1)}),D}an.matches=function(W,ne){return an(W,null,null,ne)},an.matchesSelector=function(W,ne){if(Js(W),V&&!zn[ne+" "]&&(!ie||!ie.test(ne)))try{var ge=be.call(W,ne);if(ge||T.disconnectedMatch||W.document&&W.document.nodeType!==11)return ge}catch{zn(ne,!0)}return an(ne,D,null,[W]).length>0},an.contains=function(W,ne){return(W.ownerDocument||W)!=D&&Js(W),m.contains(W,ne)},an.attr=function(W,ne){(W.ownerDocument||W)!=D&&Js(W);var ge=g.attrHandle[ne.toLowerCase()],ve=ge&&v.call(g.attrHandle,ne.toLowerCase())?ge(W,ne,!V):void 0;return ve!==void 0?ve:W.getAttribute(ne)},an.error=function(W){throw new Error("Syntax error, unrecognized expression: "+W)},m.uniqueSort=function(W){var ne,ge=[],ve=0,H=0;if(A=!T.sortStable,E=!T.sortStable&&l.call(W,0),re.call(W,Cn),A){for(;ne=W[H++];)ne===W[H]&&(ve=ge.push(H));for(;ve--;)pe.call(W,ge[ve],1)}return E=null,W},m.fn.uniqueSort=function(){return this.pushStack(m.uniqueSort(l.apply(this)))},g=m.expr={cacheLength:50,createPseudo:es,match:Dr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(W){return W[1]=W[1].replace(Ls,vs),W[3]=(W[3]||W[4]||W[5]||"").replace(Ls,vs),W[2]==="~="&&(W[3]=" "+W[3]+" "),W.slice(0,4)},CHILD:function(W){return W[1]=W[1].toLowerCase(),W[1].slice(0,3)==="nth"?(W[3]||an.error(W[0]),W[4]=+(W[4]?W[5]+(W[6]||1):2*(W[3]==="even"||W[3]==="odd")),W[5]=+(W[7]+W[8]||W[3]==="odd")):W[3]&&an.error(W[0]),W},PSEUDO:function(W){var ne,ge=!W[6]&&W[2];return Dr.CHILD.test(W[0])?null:(W[3]?W[2]=W[4]||W[5]||"":ge&&Zr.test(ge)&&(ne=Io(ge,!0))&&(ne=ge.indexOf(")",ge.length-ne)-ge.length)&&(W[0]=W[0].slice(0,ne),W[2]=ge.slice(0,ne)),W.slice(0,3))}},filter:{TAG:function(W){var ne=W.replace(Ls,vs).toLowerCase();return W==="*"?function(){return!0}:function(ge){return j(ge,ne)}},CLASS:function(W){var ne=Ge[W+" "];return ne||(ne=new RegExp("(^|"+q+")"+W+"("+q+"|$)"))&&Ge(W,function(ge){return ne.test(typeof ge.className=="string"&&ge.className||typeof ge.getAttribute<"u"&&ge.getAttribute("class")||"")})},ATTR:function(W,ne,ge){return function(ve){var H=an.attr(ve,W);return H==null?ne==="!=":ne?(H+="",ne==="="?H===ge:ne==="!="?H!==ge:ne==="^="?ge&&H.indexOf(ge)===0:ne==="*="?ge&&H.indexOf(ge)>-1:ne==="$="?ge&&H.slice(-ge.length)===ge:ne==="~="?(" "+H.replace(Ut," ")+" ").indexOf(ge)>-1:ne==="|="?H===ge||H.slice(0,ge.length+1)===ge+"-":!1):!0}},CHILD:function(W,ne,ge,ve,H){var ee=W.slice(0,3)!=="nth",Z=W.slice(-4)!=="last",Te=ne==="of-type";return ve===1&&H===0?function(Oe){return!!Oe.parentNode}:function(Oe,ze,Ye){var We,Pt,st,Mt,Yn,tr=ee!==Z?"nextSibling":"previousSibling",Xn=Oe.parentNode,wr=Te&&Oe.nodeName.toLowerCase(),Ns=!Ye&&!Te,_t=!1;if(Xn){if(ee){for(;tr;){for(st=Oe;st=st[tr];)if(Te?j(st,wr):st.nodeType===1)return!1;Yn=tr=W==="only"&&!Yn&&"nextSibling"}return!0}if(Yn=[Z?Xn.firstChild:Xn.lastChild],Z&&Ns){for(Pt=Xn[Se]||(Xn[Se]={}),We=Pt[W]||[],Mt=We[0]===me&&We[1],_t=Mt&&We[2],st=Mt&&Xn.childNodes[Mt];st=++Mt&&st&&st[tr]||(_t=Mt=0)||Yn.pop();)if(st.nodeType===1&&++_t&&st===Oe){Pt[W]=[me,Mt,_t];break}}else if(Ns&&(Pt=Oe[Se]||(Oe[Se]={}),We=Pt[W]||[],Mt=We[0]===me&&We[1],_t=Mt),_t===!1)for(;(st=++Mt&&st&&st[tr]||(_t=Mt=0)||Yn.pop())&&!((Te?j(st,wr):st.nodeType===1)&&++_t&&(Ns&&(Pt=st[Se]||(st[Se]={}),Pt[W]=[me,_t]),st===Oe)););return _t-=H,_t===ve||_t%ve===0&&_t/ve>=0}}},PSEUDO:function(W,ne){var ge,ve=g.pseudos[W]||g.setFilters[W.toLowerCase()]||an.error("unsupported pseudo: "+W);return ve[Se]?ve(ne):ve.length>1?(ge=[W,W,"",ne],g.setFilters.hasOwnProperty(W.toLowerCase())?es(function(H,ee){for(var Z,Te=ve(H,ne),Oe=Te.length;Oe--;)Z=d.call(H,Te[Oe]),H[Z]=!(ee[Z]=Te[Oe])}):function(H){return ve(H,0,ge)}):ve}},pseudos:{not:es(function(W){var ne=[],ge=[],ve=Pl(W.replace(le,"$1"));return ve[Se]?es(function(H,ee,Z,Te){for(var Oe,ze=ve(H,null,Te,[]),Ye=H.length;Ye--;)(Oe=ze[Ye])&&(H[Ye]=!(ee[Ye]=Oe))}):function(H,ee,Z){return ne[0]=H,ve(ne,null,Z,ge),ne[0]=null,!ge.pop()}}),has:es(function(W){return function(ne){return an(W,ne).length>0}}),contains:es(function(W){return W=W.replace(Ls,vs),function(ne){return(ne.textContent||m.text(ne)).indexOf(W)>-1}}),lang:es(function(W){return fi.test(W||"")||an.error("unsupported lang: "+W),W=W.replace(Ls,vs).toLowerCase(),function(ne){var ge;do if(ge=V?ne.lang:ne.getAttribute("xml:lang")||ne.getAttribute("lang"))return ge=ge.toLowerCase(),ge===W||ge.indexOf(W+"-")===0;while((ne=ne.parentNode)&&ne.nodeType===1);return!1}}),target:function(W){var ne=n.location&&n.location.hash;return ne&&ne.slice(1)===W.id},root:function(W){return W===J},focus:function(W){return W===Ao()&&D.hasFocus()&&!!(W.type||W.href||~W.tabIndex)},enabled:Ac(!1),disabled:Ac(!0),checked:function(W){return j(W,"input")&&!!W.checked||j(W,"option")&&!!W.selected},selected:function(W){return W.parentNode&&W.parentNode.selectedIndex,W.selected===!0},empty:function(W){for(W=W.firstChild;W;W=W.nextSibling)if(W.nodeType<6)return!1;return!0},parent:function(W){return!g.pseudos.empty(W)},header:function(W){return Qs.test(W.nodeName)},input:function(W){return ks.test(W.nodeName)},button:function(W){return j(W,"input")&&W.type==="button"||j(W,"button")},text:function(W){var ne;return j(W,"input")&&W.type==="text"&&((ne=W.getAttribute("type"))==null||ne.toLowerCase()==="text")},first:Mr(function(){return[0]}),last:Mr(function(W,ne){return[ne-1]}),eq:Mr(function(W,ne,ge){return[ge<0?ge+ne:ge]}),even:Mr(function(W,ne){for(var ge=0;gene?ve=ne:ve=ge;--ve>=0;)W.push(ve);return W}),gt:Mr(function(W,ne,ge){for(var ve=ge<0?ge+ne:ge;++ve1?function(ne,ge,ve){for(var H=W.length;H--;)if(!W[H](ne,ge,ve))return!1;return!0}:W[0]}function Tp(W,ne,ge){for(var ve=0,H=ne.length;ve-1&&(Z[Ye]=!(Te[Ye]=Pt))}}else st=ba(st===Te?st.splice(tr,st.length):st),H?H(null,Te,st,ze):O.apply(Te,st)})}function Er(W){for(var ne,ge,ve,H=W.length,ee=g.relative[W[0].type],Z=ee||g.relative[" "],Te=ee?1:0,Oe=di(function(We){return We===ne},Z,!0),ze=di(function(We){return d.call(ne,We)>-1},Z,!0),Ye=[function(We,Pt,st){var Mt=!ee&&(st||Pt!=b)||((ne=Pt).nodeType?Oe(We,Pt,st):ze(We,Pt,st));return ne=null,Mt}];Te1&&Il(Ye),Te>1&&ts(W.slice(0,Te-1).concat({value:W[Te-2].type===" "?"*":""})).replace(le,"$1"),ge,Te0,ve=W.length>0,H=function(ee,Z,Te,Oe,ze){var Ye,We,Pt,st=0,Mt="0",Yn=ee&&[],tr=[],Xn=b,wr=ee||ve&&g.find.TAG("*",ze),Ns=me+=Xn==null?1:Math.random()||.1,_t=wr.length;for(ze&&(b=Z==D||Z||ze);Mt!==_t&&(Ye=wr[Mt])!=null;Mt++){if(ve&&Ye){for(We=0,!Z&&Ye.ownerDocument!=D&&(Js(Ye),Te=!V);Pt=W[We++];)if(Pt(Ye,Z||D,Te)){O.call(Oe,Ye);break}ze&&(me=Ns)}ge&&((Ye=!Pt&&Ye)&&st--,ee&&Yn.push(Ye))}if(st+=Mt,ge&&Mt!==st){for(We=0;Pt=ne[We++];)Pt(Yn,tr,Z,Te);if(ee){if(st>0)for(;Mt--;)Yn[Mt]||tr[Mt]||(tr[Mt]=K.call(Oe));tr=ba(tr)}O.apply(Oe,tr),ze&&!ee&&tr.length>0&&st+ne.length>1&&m.uniqueSort(Oe)}return ze&&(me=Ns,b=Xn),Yn};return ge?es(H):H}function Pl(W,ne){var ge,ve=[],H=[],ee=xt[W+" "];if(!ee){for(ne||(ne=Io(W)),ge=ne.length;ge--;)ee=Er(ne[ge]),ee[Se]?ve.push(ee):H.push(ee);ee=xt(W,Oc(H,ve)),ee.selector=W}return ee}function Ic(W,ne,ge,ve){var H,ee,Z,Te,Oe,ze=typeof W=="function"&&W,Ye=!ve&&Io(W=ze.selector||W);if(ge=ge||[],Ye.length===1){if(ee=Ye[0]=Ye[0].slice(0),ee.length>2&&(Z=ee[0]).type==="ID"&&ne.nodeType===9&&V&&g.relative[ee[1].type]){if(ne=(g.find.ID(Z.matches[0].replace(Ls,vs),ne)||[])[0],ne)ze&&(ne=ne.parentNode);else return ge;W=W.slice(ee.shift().value.length)}for(H=Dr.needsContext.test(W)?0:ee.length;H--&&(Z=ee[H],!g.relative[Te=Z.type]);)if((Oe=g.find[Te])&&(ve=Oe(Z.matches[0].replace(Ls,vs),Co.test(ee[0].type)&&Ol(ne.parentNode)||ne))){if(ee.splice(H,1),W=ve.length&&ts(ee),!W)return O.apply(ge,ve),ge;break}}return(ze||Pl(W,Ye))(ve,ne,!V,ge,!ne||Co.test(W)&&Ol(ne.parentNode)||ne),ge}T.sortStable=Se.split("").sort(Cn).join("")===Se,Js(),T.sortDetached=Ui(function(W){return W.compareDocumentPosition(D.createElement("fieldset"))&1}),m.find=an,m.expr[":"]=m.expr.pseudos,m.unique=m.uniqueSort,an.compile=Pl,an.select=Ic,an.setDocument=Js,an.escape=m.escapeSelector,an.getText=m.text,an.isXML=m.isXMLDoc,an.selectors=m.expr,an.support=m.support,an.uniqueSort=m.uniqueSort})();var tt=function(c,g,b){for(var E=[],A=b!==void 0;(c=c[g])&&c.nodeType!==9;)if(c.nodeType===1){if(A&&m(c).is(b))break;E.push(c)}return E},Rt=function(c,g){for(var b=[];c;c=c.nextSibling)c.nodeType===1&&c!==g&&b.push(c);return b},ot=m.expr.match.needsContext,mt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function zt(c,g,b){return P(g)?m.grep(c,function(E,A){return!!g.call(E,A,E)!==b}):g.nodeType?m.grep(c,function(E){return E===g!==b}):typeof g!="string"?m.grep(c,function(E){return d.call(g,E)>-1!==b}):m.filter(g,c,b)}m.filter=function(c,g,b){var E=g[0];return b&&(c=":not("+c+")"),g.length===1&&E.nodeType===1?m.find.matchesSelector(E,c)?[E]:[]:m.find.matches(c,m.grep(g,function(A){return A.nodeType===1}))},m.fn.extend({find:function(c){var g,b,E=this.length,A=this;if(typeof c!="string")return this.pushStack(m(c).filter(function(){for(g=0;g1?m.uniqueSort(b):b},filter:function(c){return this.pushStack(zt(this,c||[],!1))},not:function(c){return this.pushStack(zt(this,c||[],!0))},is:function(c){return!!zt(this,typeof c=="string"&&ot.test(c)?m(c):c||[],!1).length}});var Zt,Dt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,dt=m.fn.init=function(c,g,b){var E,A;if(!c)return this;if(b=b||Zt,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?E=[null,c,null]:E=Dt.exec(c),E&&(E[1]||!g))if(E[1]){if(g=g instanceof m?g[0]:g,m.merge(this,m.parseHTML(E[1],g&&g.nodeType?g.ownerDocument||g:S,!0)),mt.test(E[1])&&m.isPlainObject(g))for(E in g)P(this[E])?this[E](g[E]):this.attr(E,g[E]);return this}else return A=S.getElementById(E[2]),A&&(this[0]=A,this.length=1),this;else return!g||g.jquery?(g||b).find(c):this.constructor(g).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(P(c))return b.ready!==void 0?b.ready(c):c(m)}return m.makeArray(c,this)};dt.prototype=m.fn,Zt=m(S);var Lt=/^(?:parents|prev(?:Until|All))/,en={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({has:function(c){var g=m(c,this),b=g.length;return this.filter(function(){for(var E=0;E-1:b.nodeType===1&&m.find.matchesSelector(b,c))){O.push(b);break}}return this.pushStack(O.length>1?m.uniqueSort(O):O)},index:function(c){return c?typeof c=="string"?d.call(m(c),this[0]):d.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,g){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(c,g))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function It(c,g){for(;(c=c[g])&&c.nodeType!==1;);return c}m.each({parent:function(c){var g=c.parentNode;return g&&g.nodeType!==11?g:null},parents:function(c){return tt(c,"parentNode")},parentsUntil:function(c,g,b){return tt(c,"parentNode",b)},next:function(c){return It(c,"nextSibling")},prev:function(c){return It(c,"previousSibling")},nextAll:function(c){return tt(c,"nextSibling")},prevAll:function(c){return tt(c,"previousSibling")},nextUntil:function(c,g,b){return tt(c,"nextSibling",b)},prevUntil:function(c,g,b){return tt(c,"previousSibling",b)},siblings:function(c){return Rt((c.parentNode||{}).firstChild,c)},children:function(c){return Rt(c.firstChild)},contents:function(c){return c.contentDocument!=null&&a(c.contentDocument)?c.contentDocument:(j(c,"template")&&(c=c.content||c),m.merge([],c.childNodes))}},function(c,g){m.fn[c]=function(b,E){var A=m.map(this,g,b);return c.slice(-5)!=="Until"&&(E=b),E&&typeof E=="string"&&(A=m.filter(E,A)),this.length>1&&(en[c]||m.uniqueSort(A),Lt.test(c)&&A.reverse()),this.pushStack(A)}});var Ht=/[^\x20\t\r\n\f]+/g;function gn(c){var g={};return m.each(c.match(Ht)||[],function(b,E){g[E]=!0}),g}m.Callbacks=function(c){c=typeof c=="string"?gn(c):m.extend({},c);var g,b,E,A,O=[],D=[],J=-1,V=function(){for(A=A||c.once,E=g=!0;D.length;J=-1)for(b=D.shift();++J-1;)O.splice(me,1),me<=J&&J--}),this},has:function(be){return be?m.inArray(be,O)>-1:O.length>0},empty:function(){return O&&(O=[]),this},disable:function(){return A=D=[],O=b="",this},disabled:function(){return!O},lock:function(){return A=D=[],!b&&!g&&(O=b=""),this},locked:function(){return!!A},fireWith:function(be,Se){return A||(Se=Se||[],Se=[be,Se.slice?Se.slice():Se],D.push(Se),g||V()),this},fire:function(){return ie.fireWith(this,arguments),this},fired:function(){return!!E}};return ie};function X(c){return c}function L(c){throw c}function N(c,g,b,E){var A;try{c&&P(A=c.promise)?A.call(c).done(g).fail(b):c&&P(A=c.then)?A.call(c,g,b):g.apply(void 0,[c].slice(E))}catch(O){b.apply(void 0,[O])}}m.extend({Deferred:function(c){var g=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],b="pending",E={state:function(){return b},always:function(){return A.done(arguments).fail(arguments),this},catch:function(O){return E.then(null,O)},pipe:function(){var O=arguments;return m.Deferred(function(D){m.each(g,function(J,V){var ie=P(O[V[4]])&&O[V[4]];A[V[1]](function(){var be=ie&&ie.apply(this,arguments);be&&P(be.promise)?be.promise().progress(D.notify).done(D.resolve).fail(D.reject):D[V[0]+"With"](this,ie?[be]:arguments)})}),O=null}).promise()},then:function(O,D,J){var V=0;function ie(be,Se,me,Me){return function(){var Ge=this,St=arguments,xt=function(){var Cn,gs;if(!(be=V&&(me!==L&&(Ge=void 0,St=[Cn]),Se.rejectWith(Ge,St))}};be?zn():(m.Deferred.getErrorHook?zn.error=m.Deferred.getErrorHook():m.Deferred.getStackHook&&(zn.error=m.Deferred.getStackHook()),n.setTimeout(zn))}}return m.Deferred(function(be){g[0][3].add(ie(0,be,P(J)?J:X,be.notifyWith)),g[1][3].add(ie(0,be,P(O)?O:X)),g[2][3].add(ie(0,be,P(D)?D:L))}).promise()},promise:function(O){return O!=null?m.extend(O,E):E}},A={};return m.each(g,function(O,D){var J=D[2],V=D[5];E[D[1]]=J.add,V&&J.add(function(){b=V},g[3-O][2].disable,g[3-O][3].disable,g[0][2].lock,g[0][3].lock),J.add(D[3].fire),A[D[0]]=function(){return A[D[0]+"With"](this===A?void 0:this,arguments),this},A[D[0]+"With"]=J.fireWith}),E.promise(A),c&&c.call(A,A),A},when:function(c){var g=arguments.length,b=g,E=Array(b),A=l.call(arguments),O=m.Deferred(),D=function(J){return function(V){E[J]=this,A[J]=arguments.length>1?l.call(arguments):V,--g||O.resolveWith(E,A)}};if(g<=1&&(N(c,O.done(D(b)).resolve,O.reject,!g),O.state()==="pending"||P(A[b]&&A[b].then)))return O.then();for(;b--;)N(A[b],D(b),O.reject);return O.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(c,g){n.console&&n.console.warn&&c&&z.test(c.name)&&n.console.warn("jQuery.Deferred exception: "+c.message,c.stack,g)},m.readyException=function(c){n.setTimeout(function(){throw c})};var se=m.Deferred();m.fn.ready=function(c){return se.then(c).catch(function(g){m.readyException(g)}),this},m.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--m.readyWait:m.isReady)||(m.isReady=!0,!(c!==!0&&--m.readyWait>0)&&se.resolveWith(S,[m]))}}),m.ready.then=se.then;function ae(){S.removeEventListener("DOMContentLoaded",ae),n.removeEventListener("load",ae),m.ready()}S.readyState==="complete"||S.readyState!=="loading"&&!S.documentElement.doScroll?n.setTimeout(m.ready):(S.addEventListener("DOMContentLoaded",ae),n.addEventListener("load",ae));var Ce=function(c,g,b,E,A,O,D){var J=0,V=c.length,ie=b==null;if(R(b)==="object"){A=!0;for(J in b)Ce(c,g,J,b[J],!0,O,D)}else if(E!==void 0&&(A=!0,P(E)||(D=!0),ie&&(D?(g.call(c,E),g=null):(ie=g,g=function(be,Se,me){return ie.call(m(be),me)})),g))for(;J1,null,!0)},removeData:function(c){return this.each(function(){Je.remove(this,c)})}}),m.extend({queue:function(c,g,b){var E;if(c)return g=(g||"fx")+"queue",E=we.get(c,g),b&&(!E||Array.isArray(b)?E=we.access(c,g,m.makeArray(b)):E.push(b)),E||[]},dequeue:function(c,g){g=g||"fx";var b=m.queue(c,g),E=b.length,A=b.shift(),O=m._queueHooks(c,g),D=function(){m.dequeue(c,g)};A==="inprogress"&&(A=b.shift(),E--),A&&(g==="fx"&&b.unshift("inprogress"),delete O.stop,A.call(c,D,O)),!E&&O&&O.empty.fire()},_queueHooks:function(c,g){var b=g+"queueHooks";return we.get(c,b)||we.access(c,b,{empty:m.Callbacks("once memory").add(function(){we.remove(c,[g+"queue",b])})})}}),m.fn.extend({queue:function(c,g){var b=2;return typeof c!="string"&&(g=c,c="fx",b--),arguments.length\x20\t\r\n\f]*)/i,Ni=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=S.createDocumentFragment(),g=c.appendChild(S.createElement("div")),b=S.createElement("input");b.setAttribute("type","radio"),b.setAttribute("checked","checked"),b.setAttribute("name","t"),g.appendChild(b),T.checkClone=g.cloneNode(!0).cloneNode(!0).lastChild.checked,g.innerHTML="",T.noCloneChecked=!!g.cloneNode(!0).lastChild.defaultValue,g.innerHTML="",T.option=!!g.lastChild})();var dr={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};dr.tbody=dr.tfoot=dr.colgroup=dr.caption=dr.thead,dr.th=dr.td,T.option||(dr.optgroup=dr.option=[1,""]);function Dn(c,g){var b;return typeof c.getElementsByTagName<"u"?b=c.getElementsByTagName(g||"*"):typeof c.querySelectorAll<"u"?b=c.querySelectorAll(g||"*"):b=[],g===void 0||g&&j(c,g)?m.merge([c],b):b}function ua(c,g){for(var b=0,E=c.length;b-1){A&&A.push(O);continue}if(ie=Xe(O),D=Dn(Se.appendChild(O),"script"),ie&&ua(D),b)for(be=0;O=D[be++];)Ni.test(O.type||"")&&b.push(O)}return Se}var sc=/^([^.]*)(?:\.(.+)|)/;function Ks(){return!0}function Ri(){return!1}function Eo(c,g,b,E,A,O){var D,J;if(typeof g=="object"){typeof b!="string"&&(E=E||b,b=void 0);for(J in g)Eo(c,J,b,E,g[J],O);return c}if(E==null&&A==null?(A=b,E=b=void 0):A==null&&(typeof b=="string"?(A=E,E=void 0):(A=E,E=b,b=void 0)),A===!1)A=Ri;else if(!A)return c;return O===1&&(D=A,A=function(V){return m().off(V),D.apply(this,arguments)},A.guid=D.guid||(D.guid=m.guid++)),c.each(function(){m.event.add(this,g,A,E,b)})}m.event={global:{},add:function(c,g,b,E,A){var O,D,J,V,ie,be,Se,me,Me,Ge,St,xt=we.get(c);if(!!he(c))for(b.handler&&(O=b,b=O.handler,A=O.selector),A&&m.find.matchesSelector(qe,A),b.guid||(b.guid=m.guid++),(V=xt.events)||(V=xt.events=Object.create(null)),(D=xt.handle)||(D=xt.handle=function(zn){return typeof m<"u"&&m.event.triggered!==zn.type?m.event.dispatch.apply(c,arguments):void 0}),g=(g||"").match(Ht)||[""],ie=g.length;ie--;)J=sc.exec(g[ie])||[],Me=St=J[1],Ge=(J[2]||"").split(".").sort(),Me&&(Se=m.event.special[Me]||{},Me=(A?Se.delegateType:Se.bindType)||Me,Se=m.event.special[Me]||{},be=m.extend({type:Me,origType:St,data:E,handler:b,guid:b.guid,selector:A,needsContext:A&&m.expr.match.needsContext.test(A),namespace:Ge.join(".")},O),(me=V[Me])||(me=V[Me]=[],me.delegateCount=0,(!Se.setup||Se.setup.call(c,E,Ge,D)===!1)&&c.addEventListener&&c.addEventListener(Me,D)),Se.add&&(Se.add.call(c,be),be.handler.guid||(be.handler.guid=b.guid)),A?me.splice(me.delegateCount++,0,be):me.push(be),m.event.global[Me]=!0)},remove:function(c,g,b,E,A){var O,D,J,V,ie,be,Se,me,Me,Ge,St,xt=we.hasData(c)&&we.get(c);if(!(!xt||!(V=xt.events))){for(g=(g||"").match(Ht)||[""],ie=g.length;ie--;){if(J=sc.exec(g[ie])||[],Me=St=J[1],Ge=(J[2]||"").split(".").sort(),!Me){for(Me in V)m.event.remove(c,Me+g[ie],b,E,!0);continue}for(Se=m.event.special[Me]||{},Me=(E?Se.delegateType:Se.bindType)||Me,me=V[Me]||[],J=J[2]&&new RegExp("(^|\\.)"+Ge.join("\\.(?:.*\\.|)")+"(\\.|$)"),D=O=me.length;O--;)be=me[O],(A||St===be.origType)&&(!b||b.guid===be.guid)&&(!J||J.test(be.namespace))&&(!E||E===be.selector||E==="**"&&be.selector)&&(me.splice(O,1),be.selector&&me.delegateCount--,Se.remove&&Se.remove.call(c,be));D&&!me.length&&((!Se.teardown||Se.teardown.call(c,Ge,xt.handle)===!1)&&m.removeEvent(c,Me,xt.handle),delete V[Me])}m.isEmptyObject(V)&&we.remove(c,"handle events")}},dispatch:function(c){var g,b,E,A,O,D,J=new Array(arguments.length),V=m.event.fix(c),ie=(we.get(this,"events")||Object.create(null))[V.type]||[],be=m.event.special[V.type]||{};for(J[0]=V,g=1;g=1)){for(;ie!==this;ie=ie.parentNode||this)if(ie.nodeType===1&&!(c.type==="click"&&ie.disabled===!0)){for(O=[],D={},b=0;b-1:m.find(A,this,null,[ie]).length),D[A]&&O.push(E);O.length&&J.push({elem:ie,handlers:O})}}return ie=this,V\s*$/g;function ic(c,g){return j(c,"table")&&j(g.nodeType!==11?g:g.firstChild,"tr")&&m(c).children("tbody")[0]||c}function lp(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function up(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function oc(c,g){var b,E,A,O,D,J,V;if(g.nodeType===1){if(we.hasData(c)&&(O=we.get(c),V=O.events,V)){we.remove(g,"handle events");for(A in V)for(b=0,E=V[A].length;b1&&typeof Me=="string"&&!T.checkClone&&op.test(Me))return c.each(function(St){var xt=c.eq(St);Ge&&(g[0]=Me.call(this,St,xt.html())),Di(xt,g,b,E)});if(Se&&(A=rc(g,c[0].ownerDocument,!1,c,E),O=A.firstChild,A.childNodes.length===1&&(A=O),O||E)){for(D=m.map(Dn(A,"script"),lp),J=D.length;be0&&ua(D,!V&&Dn(c,"script")),J},cleanData:function(c){for(var g,b,E,A=m.event.special,O=0;(b=c[O])!==void 0;O++)if(he(b)){if(g=b[we.expando]){if(g.events)for(E in g.events)A[E]?m.event.remove(b,E):m.removeEvent(b,E,g.handle);b[we.expando]=void 0}b[Je.expando]&&(b[Je.expando]=void 0)}}}),m.fn.extend({detach:function(c){return lc(this,c,!0)},remove:function(c){return lc(this,c)},text:function(c){return Ce(this,function(g){return g===void 0?m.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=g)})},null,c,arguments.length)},append:function(){return Di(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var g=ic(this,c);g.appendChild(c)}})},prepend:function(){return Di(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var g=ic(this,c);g.insertBefore(c,g.firstChild)}})},before:function(){return Di(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return Di(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,g=0;(c=this[g])!=null;g++)c.nodeType===1&&(m.cleanData(Dn(c,!1)),c.textContent="");return this},clone:function(c,g){return c=c==null?!1:c,g=g==null?c:g,this.map(function(){return m.clone(this,c,g)})},html:function(c){return Ce(this,function(g){var b=this[0]||{},E=0,A=this.length;if(g===void 0&&b.nodeType===1)return b.innerHTML;if(typeof g=="string"&&!ip.test(g)&&!dr[(Kn.exec(g)||["",""])[1].toLowerCase()]){g=m.htmlPrefilter(g);try{for(;E=0&&(V+=Math.max(0,Math.ceil(c["offset"+g[0].toUpperCase()+g.slice(1)]-O-V-J-.5))||0),V+ie}function pl(c,g,b){var E=fa(c),A=!T.boxSizingReliable()||b,O=A&&m.css(c,"boxSizing",!1,E)==="border-box",D=O,J=wo(c,g,E),V="offset"+g[0].toUpperCase()+g.slice(1);if(cl.test(J)){if(!b)return J;J="auto"}return(!T.boxSizingReliable()&&O||!T.reliableTrDimensions()&&j(c,"tr")||J==="auto"||!parseFloat(J)&&m.css(c,"display",!1,E)==="inline")&&c.getClientRects().length&&(O=m.css(c,"boxSizing",!1,E)==="border-box",D=V in c,D&&(J=c[V])),J=parseFloat(J)||0,J+dl(c,g,b||(O?"border":"content"),D,E,J)+"px"}m.extend({cssHooks:{opacity:{get:function(c,g){if(g){var b=wo(c,"opacity");return b===""?"1":b}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(c,g,b,E){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var A,O,D,J=oe(g),V=fl.test(g),ie=c.style;if(V||(g=pa(J)),D=m.cssHooks[g]||m.cssHooks[J],b!==void 0){if(O=typeof b,O==="string"&&(A=Ne.exec(b))&&A[1]&&(b=at(c,g,A),O="number"),b==null||b!==b)return;O==="number"&&!V&&(b+=A&&A[3]||(m.cssNumber[J]?"":"px")),!T.clearCloneStyle&&b===""&&g.indexOf("background")===0&&(ie[g]="inherit"),(!D||!("set"in D)||(b=D.set(c,b,E))!==void 0)&&(V?ie.setProperty(g,b):ie[g]=b)}else return D&&"get"in D&&(A=D.get(c,!1,E))!==void 0?A:ie[g]}},css:function(c,g,b,E){var A,O,D,J=oe(g),V=fl.test(g);return V||(g=pa(J)),D=m.cssHooks[g]||m.cssHooks[J],D&&"get"in D&&(A=D.get(c,!0,b)),A===void 0&&(A=wo(c,g,E)),A==="normal"&&g in gc&&(A=gc[g]),b===""||b?(O=parseFloat(A),b===!0||isFinite(O)?O||0:A):A}}),m.each(["height","width"],function(c,g){m.cssHooks[g]={get:function(b,E,A){if(E)return hc.test(m.css(b,"display"))&&(!b.getClientRects().length||!b.getBoundingClientRect().width)?uc(b,cp,function(){return pl(b,g,A)}):pl(b,g,A)},set:function(b,E,A){var O,D=fa(b),J=!T.scrollboxSize()&&D.position==="absolute",V=J||A,ie=V&&m.css(b,"boxSizing",!1,D)==="border-box",be=A?dl(b,g,A,ie,D):0;return ie&&J&&(be-=Math.ceil(b["offset"+g[0].toUpperCase()+g.slice(1)]-parseFloat(D[g])-dl(b,g,"border",!1,D)-.5)),be&&(O=Ne.exec(E))&&(O[3]||"px")!=="px"&&(b.style[g]=E,E=m.css(b,g)),mc(b,E,be)}}}),m.cssHooks.marginLeft=So(T.reliableMarginLeft,function(c,g){if(g)return(parseFloat(wo(c,"marginLeft"))||c.getBoundingClientRect().left-uc(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(c,g){m.cssHooks[c+g]={expand:function(b){for(var E=0,A={},O=typeof b=="string"?b.split(" "):[b];E<4;E++)A[c+Be[E]+g]=O[E]||O[E-2]||O[0];return A}},c!=="margin"&&(m.cssHooks[c+g].set=mc)}),m.fn.extend({css:function(c,g){return Ce(this,function(b,E,A){var O,D,J={},V=0;if(Array.isArray(E)){for(O=fa(b),D=E.length;V1)}});function or(c,g,b,E,A){return new or.prototype.init(c,g,b,E,A)}m.Tween=or,or.prototype={constructor:or,init:function(c,g,b,E,A,O){this.elem=c,this.prop=b,this.easing=A||m.easing._default,this.options=g,this.start=this.now=this.cur(),this.end=E,this.unit=O||(m.cssNumber[b]?"":"px")},cur:function(){var c=or.propHooks[this.prop];return c&&c.get?c.get(this):or.propHooks._default.get(this)},run:function(c){var g,b=or.propHooks[this.prop];return this.options.duration?this.pos=g=m.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=g=c,this.now=(this.end-this.start)*g+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),b&&b.set?b.set(this):or.propHooks._default.set(this),this}},or.prototype.init.prototype=or.prototype,or.propHooks={_default:{get:function(c){var g;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(g=m.css(c.elem,c.prop,""),!g||g==="auto"?0:g)},set:function(c){m.fx.step[c.prop]?m.fx.step[c.prop](c):c.elem.nodeType===1&&(m.cssHooks[c.prop]||c.elem.style[pa(c.prop)]!=null)?m.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},or.propHooks.scrollTop=or.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},m.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},m.fx=or.prototype.init,m.fx.step={};var ui,Mi,fp=/^(?:toggle|show|hide)$/,vc=/queueHooks$/;function $i(){Mi&&(S.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame($i):n.setTimeout($i,m.fx.interval),m.fx.tick())}function hl(){return n.setTimeout(function(){ui=void 0}),ui=Date.now()}function ha(c,g){var b,E=0,A={height:c};for(g=g?1:0;E<4;E+=2-g)b=Be[E],A["margin"+b]=A["padding"+b]=c;return g&&(A.opacity=A.width=c),A}function gl(c,g,b){for(var E,A=(qr.tweeners[g]||[]).concat(qr.tweeners["*"]),O=0,D=A.length;O1)},removeAttr:function(c){return this.each(function(){m.removeAttr(this,c)})}}),m.extend({attr:function(c,g,b){var E,A,O=c.nodeType;if(!(O===3||O===8||O===2)){if(typeof c.getAttribute>"u")return m.prop(c,g,b);if((O!==1||!m.isXMLDoc(c))&&(A=m.attrHooks[g.toLowerCase()]||(m.expr.match.bool.test(g)?vl:void 0)),b!==void 0){if(b===null){m.removeAttr(c,g);return}return A&&"set"in A&&(E=A.set(c,b,g))!==void 0?E:(c.setAttribute(g,b+""),b)}return A&&"get"in A&&(E=A.get(c,g))!==null?E:(E=m.find.attr(c,g),E==null?void 0:E)}},attrHooks:{type:{set:function(c,g){if(!T.radioValue&&g==="radio"&&j(c,"input")){var b=c.value;return c.setAttribute("type",g),b&&(c.value=b),g}}}},removeAttr:function(c,g){var b,E=0,A=g&&g.match(Ht);if(A&&c.nodeType===1)for(;b=A[E++];)c.removeAttribute(b)}}),vl={set:function(c,g,b){return g===!1?m.removeAttr(c,b):c.setAttribute(b,b),b}},m.each(m.expr.match.bool.source.match(/\w+/g),function(c,g){var b=ci[g]||m.find.attr;ci[g]=function(E,A,O){var D,J,V=A.toLowerCase();return O||(J=ci[V],ci[V]=D,D=b(E,A,O)!=null?V:null,ci[V]=J),D}});var yl=/^(?:input|select|textarea|button)$/i,Fi=/^(?:a|area)$/i;m.fn.extend({prop:function(c,g){return Ce(this,m.prop,c,g,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[m.propFix[c]||c]})}}),m.extend({prop:function(c,g,b){var E,A,O=c.nodeType;if(!(O===3||O===8||O===2))return(O!==1||!m.isXMLDoc(c))&&(g=m.propFix[g]||g,A=m.propHooks[g]),b!==void 0?A&&"set"in A&&(E=A.set(c,b,g))!==void 0?E:c[g]=b:A&&"get"in A&&(E=A.get(c,g))!==null?E:c[g]},propHooks:{tabIndex:{get:function(c){var g=m.find.attr(c,"tabindex");return g?parseInt(g,10):yl.test(c.nodeName)||Fi.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),T.optSelected||(m.propHooks.selected={get:function(c){var g=c.parentNode;return g&&g.parentNode&&g.parentNode.selectedIndex,null},set:function(c){var g=c.parentNode;g&&(g.selectedIndex,g.parentNode&&g.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});function zs(c){var g=c.match(Ht)||[];return g.join(" ")}function Ys(c){return c.getAttribute&&c.getAttribute("class")||""}function bl(c){return Array.isArray(c)?c:typeof c=="string"?c.match(Ht)||[]:[]}m.fn.extend({addClass:function(c){var g,b,E,A,O,D;return P(c)?this.each(function(J){m(this).addClass(c.call(this,J,Ys(this)))}):(g=bl(c),g.length?this.each(function(){if(E=Ys(this),b=this.nodeType===1&&" "+zs(E)+" ",b){for(O=0;O-1;)b=b.replace(" "+A+" "," ");D=zs(b),E!==D&&this.setAttribute("class",D)}}):this):this.attr("class","")},toggleClass:function(c,g){var b,E,A,O,D=typeof c,J=D==="string"||Array.isArray(c);return P(c)?this.each(function(V){m(this).toggleClass(c.call(this,V,Ys(this),g),g)}):typeof g=="boolean"&&J?g?this.addClass(c):this.removeClass(c):(b=bl(c),this.each(function(){if(J)for(O=m(this),A=0;A-1)return!0;return!1}});var bc=/\r/g;m.fn.extend({val:function(c){var g,b,E,A=this[0];return arguments.length?(E=P(c),this.each(function(O){var D;this.nodeType===1&&(E?D=c.call(this,O,m(this).val()):D=c,D==null?D="":typeof D=="number"?D+="":Array.isArray(D)&&(D=m.map(D,function(J){return J==null?"":J+""})),g=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],(!g||!("set"in g)||g.set(this,D,"value")===void 0)&&(this.value=D))})):A?(g=m.valHooks[A.type]||m.valHooks[A.nodeName.toLowerCase()],g&&"get"in g&&(b=g.get(A,"value"))!==void 0?b:(b=A.value,typeof b=="string"?b.replace(bc,""):b==null?"":b)):void 0}}),m.extend({valHooks:{option:{get:function(c){var g=m.find.attr(c,"value");return g!=null?g:zs(m.text(c))}},select:{get:function(c){var g,b,E,A=c.options,O=c.selectedIndex,D=c.type==="select-one",J=D?null:[],V=D?O+1:A.length;for(O<0?E=V:E=D?O:0;E-1)&&(b=!0);return b||(c.selectedIndex=-1),O}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(c,g){if(Array.isArray(g))return c.checked=m.inArray(m(c).val(),g)>-1}},T.checkOn||(m.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})});var Bi=n.location,_l={guid:Date.now()},ga=/\?/;m.parseXML=function(c){var g,b;if(!c||typeof c!="string")return null;try{g=new n.DOMParser().parseFromString(c,"text/xml")}catch{}return b=g&&g.getElementsByTagName("parsererror")[0],(!g||b)&&m.error("Invalid XML: "+(b?m.map(b.childNodes,function(E){return E.textContent}).join(` +`):c)),g};var _c=/^(?:focusinfocus|focusoutblur)$/,xc=function(c){c.stopPropagation()};m.extend(m.event,{trigger:function(c,g,b,E){var A,O,D,J,V,ie,be,Se,me=[b||S],Me=v.call(c,"type")?c.type:c,Ge=v.call(c,"namespace")?c.namespace.split("."):[];if(O=Se=D=b=b||S,!(b.nodeType===3||b.nodeType===8)&&!_c.test(Me+m.event.triggered)&&(Me.indexOf(".")>-1&&(Ge=Me.split("."),Me=Ge.shift(),Ge.sort()),V=Me.indexOf(":")<0&&"on"+Me,c=c[m.expando]?c:new m.Event(Me,typeof c=="object"&&c),c.isTrigger=E?2:3,c.namespace=Ge.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+Ge.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=b),g=g==null?[c]:m.makeArray(g,[c]),be=m.event.special[Me]||{},!(!E&&be.trigger&&be.trigger.apply(b,g)===!1))){if(!E&&!be.noBubble&&!M(b)){for(J=be.delegateType||Me,_c.test(J+Me)||(O=O.parentNode);O;O=O.parentNode)me.push(O),D=O;D===(b.ownerDocument||S)&&me.push(D.defaultView||D.parentWindow||n)}for(A=0;(O=me[A++])&&!c.isPropagationStopped();)Se=O,c.type=A>1?J:be.bindType||Me,ie=(we.get(O,"events")||Object.create(null))[c.type]&&we.get(O,"handle"),ie&&ie.apply(O,g),ie=V&&O[V],ie&&ie.apply&&he(O)&&(c.result=ie.apply(O,g),c.result===!1&&c.preventDefault());return c.type=Me,!E&&!c.isDefaultPrevented()&&(!be._default||be._default.apply(me.pop(),g)===!1)&&he(b)&&V&&P(b[Me])&&!M(b)&&(D=b[V],D&&(b[V]=null),m.event.triggered=Me,c.isPropagationStopped()&&Se.addEventListener(Me,xc),b[Me](),c.isPropagationStopped()&&Se.removeEventListener(Me,xc),m.event.triggered=void 0,D&&(b[V]=D)),c.result}},simulate:function(c,g,b){var E=m.extend(new m.Event,b,{type:c,isSimulated:!0});m.event.trigger(E,null,g)}}),m.fn.extend({trigger:function(c,g){return this.each(function(){m.event.trigger(c,g,this)})},triggerHandler:function(c,g){var b=this[0];if(b)return m.event.trigger(c,g,b,!0)}});var dp=/\[\]$/,xl=/\r?\n/g,pp=/^(?:submit|button|image|reset|file)$/i,hp=/^(?:input|select|textarea|keygen)/i;function El(c,g,b,E){var A;if(Array.isArray(g))m.each(g,function(O,D){b||dp.test(c)?E(c,D):El(c+"["+(typeof D=="object"&&D!=null?O:"")+"]",D,b,E)});else if(!b&&R(g)==="object")for(A in g)El(c+"["+A+"]",g[A],b,E);else E(c,g)}m.param=function(c,g){var b,E=[],A=function(O,D){var J=P(D)?D():D;E[E.length]=encodeURIComponent(O)+"="+encodeURIComponent(J==null?"":J)};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!m.isPlainObject(c))m.each(c,function(){A(this.name,this.value)});else for(b in c)El(b,c[b],g,A);return E.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=m.prop(this,"elements");return c?m.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!m(this).is(":disabled")&&hp.test(this.nodeName)&&!pp.test(c)&&(this.checked||!Ct.test(c))}).map(function(c,g){var b=m(this).val();return b==null?null:Array.isArray(b)?m.map(b,function(E){return{name:g.name,value:E.replace(xl,`\r +`)}}):{name:g.name,value:b.replace(xl,`\r +`)}}).get()}});var gp=/%20/g,wl=/#.*$/,mp=/([?&])_=[^&]*/,vp=/^(.*?):[ \t]*([^\r\n]*)$/mg,yp=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,bp=/^(?:GET|HEAD)$/,_p=/^\/\//,mn={},un={},Ec="*/".concat("*"),Sl=S.createElement("a");Sl.href=Bi.href;function wc(c){return function(g,b){typeof g!="string"&&(b=g,g="*");var E,A=0,O=g.toLowerCase().match(Ht)||[];if(P(b))for(;E=O[A++];)E[0]==="+"?(E=E.slice(1)||"*",(c[E]=c[E]||[]).unshift(b)):(c[E]=c[E]||[]).push(b)}}function Sc(c,g,b,E){var A={},O=c===un;function D(J){var V;return A[J]=!0,m.each(c[J]||[],function(ie,be){var Se=be(g,b,E);if(typeof Se=="string"&&!O&&!A[Se])return g.dataTypes.unshift(Se),D(Se),!1;if(O)return!(V=Se)}),V}return D(g.dataTypes[0])||!A["*"]&&D("*")}function Tl(c,g){var b,E,A=m.ajaxSettings.flatOptions||{};for(b in g)g[b]!==void 0&&((A[b]?c:E||(E={}))[b]=g[b]);return E&&m.extend(!0,c,E),c}function xp(c,g,b){for(var E,A,O,D,J=c.contents,V=c.dataTypes;V[0]==="*";)V.shift(),E===void 0&&(E=c.mimeType||g.getResponseHeader("Content-Type"));if(E){for(A in J)if(J[A]&&J[A].test(E)){V.unshift(A);break}}if(V[0]in b)O=V[0];else{for(A in b){if(!V[0]||c.converters[A+" "+V[0]]){O=A;break}D||(D=A)}O=O||D}if(O)return O!==V[0]&&V.unshift(O),b[O]}function Tc(c,g,b,E){var A,O,D,J,V,ie={},be=c.dataTypes.slice();if(be[1])for(D in c.converters)ie[D.toLowerCase()]=c.converters[D];for(O=be.shift();O;)if(c.responseFields[O]&&(b[c.responseFields[O]]=g),!V&&E&&c.dataFilter&&(g=c.dataFilter(g,c.dataType)),V=O,O=be.shift(),O){if(O==="*")O=V;else if(V!=="*"&&V!==O){if(D=ie[V+" "+O]||ie["* "+O],!D){for(A in ie)if(J=A.split(" "),J[1]===O&&(D=ie[V+" "+J[0]]||ie["* "+J[0]],D)){D===!0?D=ie[A]:ie[A]!==!0&&(O=J[0],be.unshift(J[1]));break}}if(D!==!0)if(D&&c.throws)g=D(g);else try{g=D(g)}catch(Se){return{state:"parsererror",error:D?Se:"No conversion from "+V+" to "+O}}}}return{state:"success",data:g}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Bi.href,type:"GET",isLocal:yp.test(Bi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ec,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,g){return g?Tl(Tl(c,m.ajaxSettings),g):Tl(m.ajaxSettings,c)},ajaxPrefilter:wc(mn),ajaxTransport:wc(un),ajax:function(c,g){typeof c=="object"&&(g=c,c=void 0),g=g||{};var b,E,A,O,D,J,V,ie,be,Se,me=m.ajaxSetup({},g),Me=me.context||me,Ge=me.context&&(Me.nodeType||Me.jquery)?m(Me):m.event,St=m.Deferred(),xt=m.Callbacks("once memory"),zn=me.statusCode||{},Cn={},gs={},ms="canceled",Bt={readyState:0,getResponseHeader:function(Ut){var fn;if(V){if(!O)for(O={};fn=vp.exec(A);)O[fn[1].toLowerCase()+" "]=(O[fn[1].toLowerCase()+" "]||[]).concat(fn[2]);fn=O[Ut.toLowerCase()+" "]}return fn==null?null:fn.join(", ")},getAllResponseHeaders:function(){return V?A:null},setRequestHeader:function(Ut,fn){return V==null&&(Ut=gs[Ut.toLowerCase()]=gs[Ut.toLowerCase()]||Ut,Cn[Ut]=fn),this},overrideMimeType:function(Ut){return V==null&&(me.mimeType=Ut),this},statusCode:function(Ut){var fn;if(Ut)if(V)Bt.always(Ut[Bt.status]);else for(fn in Ut)zn[fn]=[zn[fn],Ut[fn]];return this},abort:function(Ut){var fn=Ut||ms;return b&&b.abort(fn),Xs(0,fn),this}};if(St.promise(Bt),me.url=((c||me.url||Bi.href)+"").replace(_p,Bi.protocol+"//"),me.type=g.method||g.type||me.method||me.type,me.dataTypes=(me.dataType||"*").toLowerCase().match(Ht)||[""],me.crossDomain==null){J=S.createElement("a");try{J.href=me.url,J.href=J.href,me.crossDomain=Sl.protocol+"//"+Sl.host!=J.protocol+"//"+J.host}catch{me.crossDomain=!0}}if(me.data&&me.processData&&typeof me.data!="string"&&(me.data=m.param(me.data,me.traditional)),Sc(mn,me,g,Bt),V)return Bt;ie=m.event&&me.global,ie&&m.active++===0&&m.event.trigger("ajaxStart"),me.type=me.type.toUpperCase(),me.hasContent=!bp.test(me.type),E=me.url.replace(wl,""),me.hasContent?me.data&&me.processData&&(me.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(me.data=me.data.replace(gp,"+")):(Se=me.url.slice(E.length),me.data&&(me.processData||typeof me.data=="string")&&(E+=(ga.test(E)?"&":"?")+me.data,delete me.data),me.cache===!1&&(E=E.replace(mp,"$1"),Se=(ga.test(E)?"&":"?")+"_="+_l.guid+++Se),me.url=E+Se),me.ifModified&&(m.lastModified[E]&&Bt.setRequestHeader("If-Modified-Since",m.lastModified[E]),m.etag[E]&&Bt.setRequestHeader("If-None-Match",m.etag[E])),(me.data&&me.hasContent&&me.contentType!==!1||g.contentType)&&Bt.setRequestHeader("Content-Type",me.contentType),Bt.setRequestHeader("Accept",me.dataTypes[0]&&me.accepts[me.dataTypes[0]]?me.accepts[me.dataTypes[0]]+(me.dataTypes[0]!=="*"?", "+Ec+"; q=0.01":""):me.accepts["*"]);for(be in me.headers)Bt.setRequestHeader(be,me.headers[be]);if(me.beforeSend&&(me.beforeSend.call(Me,Bt,me)===!1||V))return Bt.abort();if(ms="abort",xt.add(me.complete),Bt.done(me.success),Bt.fail(me.error),b=Sc(un,me,g,Bt),!b)Xs(-1,"No Transport");else{if(Bt.readyState=1,ie&&Ge.trigger("ajaxSend",[Bt,me]),V)return Bt;me.async&&me.timeout>0&&(D=n.setTimeout(function(){Bt.abort("timeout")},me.timeout));try{V=!1,b.send(Cn,Xs)}catch(Ut){if(V)throw Ut;Xs(-1,Ut)}}function Xs(Ut,fn,To,va){var Zr,fi,Dr,ks,Qs,pr=fn;V||(V=!0,D&&n.clearTimeout(D),b=void 0,A=va||"",Bt.readyState=Ut>0?4:0,Zr=Ut>=200&&Ut<300||Ut===304,To&&(ks=xp(me,Bt,To)),!Zr&&m.inArray("script",me.dataTypes)>-1&&m.inArray("json",me.dataTypes)<0&&(me.converters["text script"]=function(){}),ks=Tc(me,ks,Bt,Zr),Zr?(me.ifModified&&(Qs=Bt.getResponseHeader("Last-Modified"),Qs&&(m.lastModified[E]=Qs),Qs=Bt.getResponseHeader("etag"),Qs&&(m.etag[E]=Qs)),Ut===204||me.type==="HEAD"?pr="nocontent":Ut===304?pr="notmodified":(pr=ks.state,fi=ks.data,Dr=ks.error,Zr=!Dr)):(Dr=pr,(Ut||!pr)&&(pr="error",Ut<0&&(Ut=0))),Bt.status=Ut,Bt.statusText=(fn||pr)+"",Zr?St.resolveWith(Me,[fi,pr,Bt]):St.rejectWith(Me,[Bt,pr,Dr]),Bt.statusCode(zn),zn=void 0,ie&&Ge.trigger(Zr?"ajaxSuccess":"ajaxError",[Bt,me,Zr?fi:Dr]),xt.fireWith(Me,[Bt,pr]),ie&&(Ge.trigger("ajaxComplete",[Bt,me]),--m.active||m.event.trigger("ajaxStop")))}return Bt},getJSON:function(c,g,b){return m.get(c,g,b,"json")},getScript:function(c,g){return m.get(c,void 0,g,"script")}}),m.each(["get","post"],function(c,g){m[g]=function(b,E,A,O){return P(E)&&(O=O||A,A=E,E=void 0),m.ajax(m.extend({url:b,type:g,dataType:O,data:E,success:A},m.isPlainObject(b)&&b))}}),m.ajaxPrefilter(function(c){var g;for(g in c.headers)g.toLowerCase()==="content-type"&&(c.contentType=c.headers[g]||"")}),m._evalUrl=function(c,g,b){return m.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(E){m.globalEval(E,g,b)}})},m.fn.extend({wrapAll:function(c){var g;return this[0]&&(P(c)&&(c=c.call(this[0])),g=m(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&g.insertBefore(this[0]),g.map(function(){for(var b=this;b.firstElementChild;)b=b.firstElementChild;return b}).append(this)),this},wrapInner:function(c){return P(c)?this.each(function(g){m(this).wrapInner(c.call(this,g))}):this.each(function(){var g=m(this),b=g.contents();b.length?b.wrapAll(c):g.append(c)})},wrap:function(c){var g=P(c);return this.each(function(b){m(this).wrapAll(g?c.call(this,b):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(c){return!m.expr.pseudos.visible(c)},m.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch{}};var Ep={0:200,1223:204},Tn=m.ajaxSettings.xhr();T.cors=!!Tn&&"withCredentials"in Tn,T.ajax=Tn=!!Tn,m.ajaxTransport(function(c){var g,b;if(T.cors||Tn&&!c.crossDomain)return{send:function(E,A){var O,D=c.xhr();if(D.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(O in c.xhrFields)D[O]=c.xhrFields[O];c.mimeType&&D.overrideMimeType&&D.overrideMimeType(c.mimeType),!c.crossDomain&&!E["X-Requested-With"]&&(E["X-Requested-With"]="XMLHttpRequest");for(O in E)D.setRequestHeader(O,E[O]);g=function(J){return function(){g&&(g=b=D.onload=D.onerror=D.onabort=D.ontimeout=D.onreadystatechange=null,J==="abort"?D.abort():J==="error"?typeof D.status!="number"?A(0,"error"):A(D.status,D.statusText):A(Ep[D.status]||D.status,D.statusText,(D.responseType||"text")!=="text"||typeof D.responseText!="string"?{binary:D.response}:{text:D.responseText},D.getAllResponseHeaders()))}},D.onload=g(),b=D.onerror=D.ontimeout=g("error"),D.onabort!==void 0?D.onabort=b:D.onreadystatechange=function(){D.readyState===4&&n.setTimeout(function(){g&&b()})},g=g("abort");try{D.send(c.hasContent&&c.data||null)}catch(J){if(g)throw J}},abort:function(){g&&g()}}}),m.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(c){return m.globalEval(c),c}}}),m.ajaxPrefilter("script",function(c){c.cache===void 0&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),m.ajaxTransport("script",function(c){if(c.crossDomain||c.scriptAttrs){var g,b;return{send:function(E,A){g=m(" \ No newline at end of file diff --git a/views/templates/admin/index.php b/views/templates/admin/index.php index c8e9f2af3..97ec565fb 100644 --- a/views/templates/admin/index.php +++ b/views/templates/admin/index.php @@ -1,28 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/views/templates/front/error.tpl b/views/templates/front/error.tpl index a9c6b917b..6a08dc932 100644 --- a/views/templates/front/error.tpl +++ b/views/templates/front/error.tpl @@ -12,17 +12,14 @@ * @copyright Copyright (c) Buckaroo B.V. * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) *} -{capture name=path}{l s='Order Processing' mod='buckaroo3'}{/capture} -

{l s='Order Processing Error' mod='buckaroo3'}

-

{$error_message|escape:'html':'UTF-8'}

-
-

- {if isset($order_id)} - {l s='Return to checkout' mod='buckaroo3'} - {else} - {l s='Return to checkout' mod='buckaroo3'} - {/if} -

+{extends file='page.tpl'} +{block name='page_content'} +
+ +
+{/block} diff --git a/views/templates/front/index.php b/views/templates/front/index.php index dfdcf6779..97ec565fb 100644 --- a/views/templates/front/index.php +++ b/views/templates/front/index.php @@ -1,27 +1,25 @@ -* @copyright Copyright (c) Buckaroo B.V. -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -*/ -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this file + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); -header("Location: ../"); -exit; \ No newline at end of file +header('Location: ../'); +exit; diff --git a/views/templates/hook/buckaroolog-quicklinks.tpl b/views/templates/hook/buckaroolog-quicklinks.tpl deleted file mode 100644 index ae83eb8a2..000000000 --- a/views/templates/hook/buckaroolog-quicklinks.tpl +++ /dev/null @@ -1,19 +0,0 @@ -{* -* - * - * - * NOTICE OF LICENSE - * - * This source file is subject to the Academic Free License (AFL 3.0) - * It is available through the world-wide-web at this URL: - * http://opensource.org/licenses/afl-3.0.php - * - * @author Buckaroo.nl - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) -*} - \ No newline at end of file diff --git a/views/templates/hook/idin.tpl b/views/templates/hook/idin.tpl index 3488ea8b9..928b31531 100644 --- a/views/templates/hook/idin.tpl +++ b/views/templates/hook/idin.tpl @@ -18,15 +18,18 @@ -
-
-
-
-
-
-
-
- {if $phone == "" && $phone_mobile == ""} -
-
-
-
-
- {else} - {if $phone != ""}{/if} - {if $phone_mobile != ""}{/if} - {/if} - - -
- -
- -
- -
- -{/if} - -{************iDeal*************} -{if $ideal_enabled} - - -{/if} - - -{if $afterpay_enabled} - - -{/if} - -{***********GiroPay************} -{if $giropay_enabled} - - -{/if} - - -{***********KBC************} -{if $kbc_enabled} - - -{/if} - -{***********MisterCash*************} -{if $mistercash_enabled} - -{/if} - -{***********GiftCard*************} -{if $giftcard_enabled} - -{/if} - -{***********CreditCard*************} -{if $creditcard_enabled} - -{/if} - -{***********Sofortbanking*************} -{if $sofortbanking_enabled} - -{/if} - -{***********Transfer*************} -{if $transfer_enabled} - -{/if} - -{***********ApplePay*************} -{if $applepay_enabled} - -{/if} - -{***********Belfius*************} -{if $belfius_enabled} - -{/if} \ No newline at end of file diff --git a/views/templates/hook/payment_afterpay.tpl b/views/templates/hook/payment_afterpay.tpl index c42e1d692..cf04b5bb4 100644 --- a/views/templates/hook/payment_afterpay.tpl +++ b/views/templates/hook/payment_afterpay.tpl @@ -13,42 +13,48 @@ * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) *}
- - +
- - - {l s='Please provide additional data for AfterPay.' mod='buckaroo3'}

-
-
-
- -
+ {l s='Please provide additional data for Riverty | AfterPay.' mod='buckaroo3'}

+
+
+
- +
+ +
+
-
-
- + +
+
+ {l s='DD' mod='buckaroo3'} - {l s='MM' mod='buckaroo3'} - {l s='YYYY' mod='buckaroo3'}
@@ -56,47 +62,57 @@ {if $address_differ == 1} - -
-
-
-
- -
-
-
+
+ +
+
{l s='DD' mod='buckaroo3'} {l s='MM' mod='buckaroo3'} {l s='YYYY' mod='buckaroo3'}
{/if} - + {if $country == 'FI'}
-
-
+
+ +
+
+ class="form-control form-control-large" autocomplete="off"/> +
+
+ {/if} + {if $afterpay_show_coc} +
+
+ +
+
+
{/if} @@ -106,16 +122,22 @@
- - + + + +
-
+ style="text-decoration: underline"> + {l s='Ik accepteer de algemene voorwaarden van Riverty | AfterPay.' mod='buckaroo3'} + +
-
diff --git a/views/templates/hook/payment_billink.tpl b/views/templates/hook/payment_billink.tpl new file mode 100644 index 000000000..a87f8bfb3 --- /dev/null +++ b/views/templates/hook/payment_billink.tpl @@ -0,0 +1,64 @@ +{* +* + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) +*} +
+ +
+
+
+ +
+
+ +
+
+
+
+ +
+ {if $billink_show_coc} +
+
+ +
+
+ +
+
+ {/if} +
+
\ No newline at end of file diff --git a/views/templates/hook/payment_creditcard.tpl b/views/templates/hook/payment_creditcard.tpl new file mode 100644 index 000000000..a8a168171 --- /dev/null +++ b/views/templates/hook/payment_creditcard.tpl @@ -0,0 +1,71 @@ +{* + * + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) +*} +
+ +
+ {l s='Choose your credit or debit card' mod='buckaroo3'}

+
+ {if $creditCardDisplayMode === 'dropdown'} +

+ +

+ {else} +
+ {foreach $creditcardIssuers as $key => $issuer} +
+ + +
+ {/foreach} +
+
+
+
+ {l s='More banks' mod='buckaroo3'} +
+
+
+
+ {/if} +
+
+
\ No newline at end of file diff --git a/views/templates/hook/payment_giropay.tpl b/views/templates/hook/payment_giropay.tpl index 50cc9386f..90684a7f2 100644 --- a/views/templates/hook/payment_giropay.tpl +++ b/views/templates/hook/payment_giropay.tpl @@ -16,14 +16,18 @@
{l s='Need to fill in Bic' mod='buckaroo3'}
- +
-
-
-
+
+
+ +
+
+ +

diff --git a/views/templates/hook/payment_ideal.tpl b/views/templates/hook/payment_ideal.tpl index 4b78f7f8f..50699e0cd 100644 --- a/views/templates/hook/payment_ideal.tpl +++ b/views/templates/hook/payment_ideal.tpl @@ -12,59 +12,61 @@ * @copyright Copyright (c) Buckaroo B.V. * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) *} -
- - - {l s='Choose your bank' mod='buckaroo3'}

-
{l s='ABN AMRO' mod='buckaroo3'}
-
{l s='ASN Bank' mod='buckaroo3'}
-
{l s='ING' mod='buckaroo3'}
-
{l s='Rabobank' mod='buckaroo3'}
-
{l s='SNS Bank' mod='buckaroo3'}
-
{l s='RegioBank' mod='buckaroo3'}
-
{l s='Triodos Bank' mod='buckaroo3'}
-
{l s='Van Lanschot' mod='buckaroo3'}
-
{l s='Knab' mod='buckaroo3'}
-
{l s='Bunq' mod='buckaroo3'}
-
{l s='Handelsbanken' mod='buckaroo3'}
-
{l s='Revolut' mod='buckaroo3'}
-
+
+ + +

{l s='Choose your bank' mod='buckaroo3'}

+
+ {if $idealDisplayMode === 'dropdown'} +

+ +

+ {else} +
+ {foreach $idealIssuers as $key => $issuer} +
+ + +
+ {/foreach} +
+
+
+
+ {l s='More banks' mod='buckaroo3'} +
+
+
+
+ {/if} +
\ No newline at end of file diff --git a/views/templates/hook/payment_in3.tpl b/views/templates/hook/payment_in3.tpl new file mode 100644 index 000000000..b6d20a239 --- /dev/null +++ b/views/templates/hook/payment_in3.tpl @@ -0,0 +1,32 @@ +{* +* + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) +*} +
+
+ {l s='Phone number is required' mod='buckaroo3'} +
+ +
+ +
+
+ +
+
+ +
+
+
+
diff --git a/views/templates/hook/payment_klarna.tpl b/views/templates/hook/payment_klarna.tpl new file mode 100644 index 000000000..fe7411dd5 --- /dev/null +++ b/views/templates/hook/payment_klarna.tpl @@ -0,0 +1,32 @@ +{* +* + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) +*} +
+ +
+
+
+ +
+
+ +
+
+
+
\ No newline at end of file diff --git a/views/templates/hook/payment_paybybank.tpl b/views/templates/hook/payment_paybybank.tpl new file mode 100644 index 000000000..42bc91ac2 --- /dev/null +++ b/views/templates/hook/payment_paybybank.tpl @@ -0,0 +1,99 @@ +{* +* + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) +*} + +
+ +
+

{l s='Choose your bank' mod='buckaroo3'}

+ +
+ {if $payByBankDisplayMode === 'dropdown'} +

+ +

+ {else} + +
+
+ {foreach $paybybankIssuers as $key => $issuer} +
+ + +
+ {/foreach} +
+
+
+
+ {l s='More banks' mod='buckaroo3'} +
+
+
+
+
+ {/if} +
+
+
\ No newline at end of file diff --git a/views/templates/hook/payment_payperemail.tpl b/views/templates/hook/payment_payperemail.tpl new file mode 100644 index 000000000..75bcaf856 --- /dev/null +++ b/views/templates/hook/payment_payperemail.tpl @@ -0,0 +1,30 @@ +{* +* + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) +*} +
+ +
+ {l s='Please select gender:' mod='buckaroo3'}

+
+ +
+
+
\ No newline at end of file diff --git a/views/templates/hook/payment_sepadirectdebit.tpl b/views/templates/hook/payment_sepadirectdebit.tpl index 2f2816aa0..f0de13e3e 100644 --- a/views/templates/hook/payment_sepadirectdebit.tpl +++ b/views/templates/hook/payment_sepadirectdebit.tpl @@ -29,17 +29,17 @@
+ type="text" class="form-control form-control-large"/>
+ type="text" class="form-control form-control-large" autocomplete="off"/>
+ type="text" class="form-control form-control-large" autocomplete="off"/>
{l s='Optional' d='Shop.Forms.Labels'}
diff --git a/views/templates/hook/payment_tinka.tpl b/views/templates/hook/payment_tinka.tpl new file mode 100644 index 000000000..e9aeb4549 --- /dev/null +++ b/views/templates/hook/payment_tinka.tpl @@ -0,0 +1,37 @@ +{* +* + * + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License (AFL 3.0) + * It is available through the world-wide-web at this URL: + * http://opensource.org/licenses/afl-3.0.php + * + * @author Buckaroo.nl + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) +*} +
+ +
+
+
+
+ + {l s='DD' mod='buckaroo3'} + + {l s='MM' mod='buckaroo3'} + + {l s='YYYY' mod='buckaroo3'} +
+
+
+
\ No newline at end of file diff --git a/views/templates/hook/refund-hook.tpl b/views/templates/hook/refund-hook.tpl index 8637b3c0c..8a8b65d95 100644 --- a/views/templates/hook/refund-hook.tpl +++ b/views/templates/hook/refund-hook.tpl @@ -15,113 +15,105 @@

- {l s='Buckaroo payments & refunds' mod='buckaroo3'} ({$order->getOrderPayments()|@count|escape:'quotes':'UTF-8'}) + {l s='Buckaroo refunds' mod='buckaroo3'}

- {if $messages != ''} -
- {if $messageStatus == 0} -

{$messages|escape:'html':'UTF-8'}

- {else} -

{$messages|escape:'html':'UTF-8'}

- {/if} -
- {/if} -
+ +
+ +
+ +
+ +
+
+ + {l s='Max amount available' mod='buckaroo3'} {$maxAvailableAmount|escape:'html':'UTF-8'} +
+ +

{l s='Previous Refunds' mod='buckaroo3'}

- - - - - - - - - - {foreach from=$payments item=payment} - - - - - + + + + - - - - {foreachelse} - - - - {/foreach} + + + {foreach from=$refunds item=refund} + + + + + + + + {/foreach}
{l s='Date' mod='buckaroo3'}{l s='Payment method' mod='buckaroo3'}{l s='Transaction ID' mod='buckaroo3'}{l s='Amount' mod='buckaroo3'}
{dateFormat date=$payment->date_add full=true}{$payment->payment_method|escape:'html':'UTF-8'}{$payment->transaction_id|escape:'html':'UTF-8'}amount < 0} disabled="disabled" {/if} type="number" step="0.01" max="{$paymentInfo[$payment->id]['available_amount']|escape:'html':'UTF-8'}" value="{$paymentInfo[$payment->id]['available_amount']|escape:'html':'UTF-8'}"> - {if $payment->payment_method == 'Group transaction'} - Group transaction - {elseif $payment->amount > 0 && $paymentInfo[$payment->id]['available_amount'] == $payment->amount} - - {elseif $payment->amount > 0 && $paymentInfo[$payment->id]['available_amount'] === 0} - Fully refunded - {elseif $payment->amount > 0 && $paymentInfo[$payment->id]['available_amount'] > 0} - - {else} - {l s='Refund transaction' mod='buckaroo3'} - - {/if} - {l s='Transaction ID' mod='buckaroo3'}{l s='Status' mod='buckaroo3'}{l s='Amount' mod='buckaroo3'}{l s='Date' mod='buckaroo3'}
-
- - {l s='No payment methods are available' mod='buckaroo3'} -
-
{$refund->getKey()|escape:'html':'UTF-8'} +
+ {$refund->getStatus()|escape:'html':'UTF-8'} +
+
+ {Tools::getContextLocale(Context::getContext())->formatPrice($refund->getAmount(), Currency::getIsoCodeById($currencyId))|escape:'html':'UTF-8'} + {dateFormat date=$refund->getCreatedAt()->format('Y-m-d H:i:s') full=true} +
- + } + }) + \ No newline at end of file diff --git a/views/templates/index.php b/views/templates/index.php index af52633eb..461e542c9 100644 --- a/views/templates/index.php +++ b/views/templates/index.php @@ -1,24 +1,24 @@ - - * @copyright Copyright (c) Buckaroo B.V. - * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) - */ -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../../../../../'); -exit; \ No newline at end of file + + * @copyright Copyright (c) Buckaroo B.V. + * @license http://opensource.org/licenses/afl-3.0 Academic Free License (AFL 3.0) + */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../../../../../'); +exit;