From e6d01a9afb21719563363efed8c27573abf70f63 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Tue, 21 Jan 2025 19:15:47 +0100 Subject: [PATCH 1/4] feat(deps): Add Sylius compatibility from 1.12 to 1.14 --- .github/workflows/recipe.yaml | 30 +++------ .github/workflows/security.yaml | 13 ++-- .github/workflows/tests.yaml | 25 +++----- .php-version.dist | 2 +- Makefile | 15 +++-- README.md | 14 +++-- composer.json | 61 +++++-------------- dist/src/Entity/Order/Order.php | 2 + dist/src/Entity/Product/ProductVariant.php | 2 + dist/src/Entity/Shipping/Shipment.php | 2 + dist/src/Entity/Shipping/ShippingMethod.php | 2 + .../Entity/Shipping/ShippingSlotConfig.php | 2 + dist/src/Entity/Shipping/Slot.php | 2 + .../Common/Order/_addresses.html.twig | 9 --- docker-compose.yaml.dist | 1 - src/Entity/ProductVariantTrait.php | 1 + src/Entity/ShipmentTrait.php | 1 + src/Entity/ShippingMethodTrait.php | 2 + src/Resources/public/js/shipping-slot-js.js | 16 ++--- .../Common/Order/_addresses.html.twig | 9 --- 20 files changed, 85 insertions(+), 126 deletions(-) diff --git a/.github/workflows/recipe.yaml b/.github/workflows/recipe.yaml index 7efc86f..9b39aa6 100644 --- a/.github/workflows/recipe.yaml +++ b/.github/workflows/recipe.yaml @@ -9,24 +9,13 @@ jobs: recipe: - name: Flex recipe (PHP ${{ matrix.php }}, Sylius ${{ matrix.sylius }}) - runs-on: ubuntu-latest strategy: fail-fast: false matrix: - php: ['7.4' ,'8.0', '8.1'] - sylius: [ "~1.9.0", "~1.10.0", "~1.11.0", "~1.12.0"] - exclude: - - php: 8.1 - sylius: "~1.9.0" - - php: 8.0 - sylius: "~1.9.0" - - php: 7.4 - sylius: "~1.11.0" - - php: 7.4 - sylius: "~1.12.0" + php: ['8.1', '8.2', '8.3'] + sylius: ["~1.12.0", "~1.13.0", "1.14.0"] steps: - name: Setup PHP @@ -35,6 +24,7 @@ jobs: php-version: ${{ matrix.php }} extensions: gd, intl, json ini-values: date.timezone=UTC + tools: symfony-cli - name: Set project php-version run: | @@ -76,13 +66,13 @@ jobs: - name: Setup some requirements working-directory: ./sylius run: | - composer config --no-plugins allow-plugins true - composer config --no-plugins extra.symfony.allow-contrib true - composer config --no-plugins secure-http false - composer config --no-plugins --unset platform.php - composer config --no-plugins extra.symfony.docker false - composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]' - composer config repositories.plugin '{"type": "path", "url": "../plugin/"}' + composer config --no-plugins allow-plugins true + composer config --no-plugins extra.symfony.allow-contrib true + composer config --no-plugins secure-http false + composer config --no-plugins --unset platform.php + composer config --no-plugins extra.symfony.docker false + composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]' + composer config repositories.plugin '{"type": "path", "url": "../plugin/"}' - name: Require plugin & install all dependencies working-directory: ./sylius diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml index 4e12805..df6525a 100644 --- a/.github/workflows/security.yaml +++ b/.github/workflows/security.yaml @@ -8,14 +8,12 @@ jobs: security: - name: Security check (PHP ${{ matrix.php }}) - runs-on: ubuntu-latest strategy: fail-fast: false matrix: - php: ['7.4', '8.0', '8.1'] + php: ['8.1', '8.2', '8.3'] steps: - uses: actions/checkout@v3 @@ -23,12 +21,12 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php }} - ini-values: date.timezone=UTC + php-version: ${{ matrix.php }} + extensions: gd, intl, json - name: Set project php-version run: | - echo ${{ matrix.php }} > .php-version + echo "${{ matrix.php }}" > .php-version - name: Determine composer cache directory id: composer-cache-directory @@ -39,7 +37,7 @@ jobs: id: cache-composer with: path: ${{ steps.composer-cache-directory.outputs.directory }} - key: composer2-php:${{ matrix.php }}-${{ hashFiles('**/composer.json') }} + key: composer2-php:${{ matrix.php }}-${{ github.sha }} restore-keys: composer2-php:${{ matrix.php }}- - name: Ensure that composer cache directory exists @@ -52,3 +50,4 @@ jobs: run: composer update --prefer-dist - uses: symfonycorp/security-checker-action@v4 + diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4bf7505..35e1014 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,14 +9,12 @@ jobs: php: - name: Quality tests (PHP ${{ matrix.php }}) - runs-on: ubuntu-latest strategy: fail-fast: false matrix: - php: ['8.0', '8.1'] + php: ['8.1', '8.2', '8.3'] env: SYMFONY_ARGS: --no-tls @@ -24,26 +22,21 @@ jobs: DOCKER_INTERACTIVE_ARGS: -t steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-node@v3 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: node-version: '14' - - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php }} - ini-values: date.timezone=UTC + php-version: ${{ matrix.php }} + extensions: gd, intl, json + ini-values: date.timezone=UTC + tools: symfony-cli - name: Set project php-version run: | - echo ${{ matrix.php }} > .php-version - - - name: Install symfony CLI - run: | - curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash - sudo apt install symfony-cli + echo "${{ matrix.php }}" > .php-version - name: Determine composer cache directory id: composer-cache-directory @@ -54,7 +47,7 @@ jobs: id: cache-composer with: path: ${{ steps.composer-cache-directory.outputs.directory }} - key: composer2-php:${{ matrix.php }}-${{ hashFiles('**/composer.json') }} + key: composer2-php:${{ matrix.php }}-${{ github.sha }} restore-keys: composer2-php:${{ matrix.php }}- - name: Ensure that composer cache directory exists diff --git a/.php-version.dist b/.php-version.dist index 2983cad..cf02201 100644 --- a/.php-version.dist +++ b/.php-version.dist @@ -1 +1 @@ -8.2 +8.3 diff --git a/Makefile b/Makefile index 14b9954..dfda8c3 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ .DEFAULT_GOAL := help SHELL=/bin/bash APP_DIR=tests/Application -SYLIUS_VERSION=1.12.0 +SYLIUS_VERSION=1.14.0 SYMFONY=cd ${APP_DIR} && symfony COMPOSER=symfony composer CONSOLE=${SYMFONY} console export COMPOSE_PROJECT_NAME=shipping-slot +export MIGRATIONS_NAMESPACE=MonsieurBiz\\SyliusShippingSlotPlugin\\Migrations +export USER_UID=$(shell id -u) PLUGIN_NAME=sylius-${COMPOSE_PROJECT_NAME}-plugin -COMPOSE=docker-compose +COMPOSE=docker compose YARN=yarn ### @@ -75,13 +77,15 @@ setup_application: $(MAKE) ${APP_DIR}/php.ini (cd ${APP_DIR} && ${COMPOSER} install --no-interaction) $(MAKE) apply_dist - (cd ${APP_DIR} && ${COMPOSER} require --no-progress monsieurbiz/${PLUGIN_NAME}="*@dev") + (cd ${APP_DIR} && ${COMPOSER} require --no-progress --no-interaction monsieurbiz/${PLUGIN_NAME}="*@dev") rm -rf ${APP_DIR}/var/cache ${APP_DIR}/docker-compose.yaml: rm -f ${APP_DIR}/docker-compose.yml rm -f ${APP_DIR}/docker-compose.yaml + rm -f ${APP_DIR}/compose.yml # Remove Sylius file about Docker + rm -f ${APP_DIR}/compose.override.dist.yml # Remove Sylius file about Docker ln -s ../../docker-compose.yaml.dist ${APP_DIR}/docker-compose.yaml .PHONY: ${APP_DIR}/docker-compose.yaml @@ -133,7 +137,7 @@ test.container: ## Lint the symfony container ${CONSOLE} lint:container test.yaml: ## Lint the symfony Yaml files - ${CONSOLE} lint:yaml ../../recipes ../../src/Resources/config + ${CONSOLE} lint:yaml ../../src/Resources/config --parse-tags test.schema: ## Validate MySQL Schema ${CONSOLE} doctrine:schema:validate @@ -164,6 +168,9 @@ sylius.assets: ## Install all assets with symlinks messenger.setup: ## Setup Messenger transports ${CONSOLE} messenger:setup-transports +doctrine.diff: ## Doctrine diff + ${CONSOLE} doctrine:migration:diff --namespace="${MIGRATIONS_NAMESPACE}" + ### ### PLATFORM ### ¯¯¯¯¯¯¯¯ diff --git a/README.md b/README.md index 7b959f8..2829b91 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,14 @@ This plugin allows you to choose a delivery date and time. +## Compatibility + +| Sylius Version | PHP Version | +|----------------|-----------------| +| 1.12 | 8.1 - 8.2 - 8.3 | +| 1.13 | 8.1 - 8.2 - 8.3 | +| 1.14 | 8.1 - 8.2 - 8.3 | + ## Installation Install the plugin with `composer`: @@ -178,12 +186,6 @@ bin/console doctrine:migrations:diff bin/console doctrine:migrations:migrate ``` -## Sponsors - - -- Glacier1891 -- WahsWash - ## Contributing You can open an issue or a Pull Request if you want! 😘 diff --git a/composer.json b/composer.json index 7dfaf68..a0aaeb3 100644 --- a/composer.json +++ b/composer.json @@ -5,45 +5,19 @@ "description": "A Sylius plugin which allow you to choose a delivery date and time.", "license": "MIT", "require": { - "php": "~7.4|~8.0", - "sylius/sylius": ">=1.9 <1.13", "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", - "simshaun/recurr": "^4.0" + "php": "^8.1", + "simshaun/recurr": "^4.0", + "sylius/sylius": ">=1.12 <2.0" }, "require-dev": { - "behat/behat": "^3.6.1", - "behat/mink-selenium2-driver": "^1.4", - "dmore/behat-chrome-extension": "^1.3", - "dmore/chrome-mink-driver": "^2.7", - "doctrine/data-fixtures": "^1.4", - "ergebnis/composer-normalize": "^2.5", - "friends-of-behat/mink": "^1.8", - "friends-of-behat/mink-browserkit-driver": "^1.4", - "friends-of-behat/mink-extension": "^2.4", - "friends-of-behat/page-object-extension": "^0.3", - "friends-of-behat/symfony-extension": "^2.1", - "friends-of-behat/variadic-extension": "^1.3", - "hwi/oauth-bundle": "^1.1", - "lchrusciel/api-test-case": "^5.0", - "matthiasnoback/symfony-config-test": "^4.2", - "matthiasnoback/symfony-dependency-injection-test": "^4.1", - "mikey179/vfsstream": "^1.6", - "mockery/mockery": "^1.4", - "pamil/prophecy-common": "^0.1", - "phpspec/phpspec": "^6.1 || ^7.2", - "phpstan/phpstan": "^0.12.57", - "phpstan/phpstan-doctrine": "^0.12.19", - "phpstan/phpstan-webmozart-assert": "^0.12.7", - "phpunit/phpunit": "^8.5", - "psalm/plugin-mockery": "^0.3", - "psr/event-dispatcher": "^1.0", - "sylius-labs/coding-standard": "^3.1", - "symfony/browser-kit": "^4.4", - "symfony/debug-bundle": "^4.4", - "symfony/dotenv": "^4.4", - "symfony/flex": "^1.7", - "symfony/web-profiler-bundle": "^4.4", - "phpmd/phpmd": "@stable" + "friendsofphp/php-cs-fixer": "^3.16", + "phpspec/phpspec": "^7.0", + "phpstan/phpstan": "^1.8.4", + "phpstan/phpstan-doctrine": "^1.3.2", + "phpstan/phpstan-webmozart-assert": "^1.1", + "phpunit/phpunit": "^10.5", + "phpmd/phpmd": "^2.15" }, "prefer-stable": true, "autoload": { @@ -63,23 +37,20 @@ "phpspec": "phpspec run" }, "extra": { - "symfony": { - "docker": false, - "endpoint": [ - "https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master", - "flex://defaults" - ] - }, "branch-alias": { "dev-master": "1.0-dev" + }, + "symfony": { + "docker": false, + "endpoint": ["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master", "flex://defaults"] } }, "config": { "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true, "symfony/thanks": true, - "ergebnis/composer-normalize": true, "symfony/flex": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "ergebnis/composer-normalize": true, "php-http/discovery": true } } diff --git a/dist/src/Entity/Order/Order.php b/dist/src/Entity/Order/Order.php index abe412f..789ddf2 100644 --- a/dist/src/Entity/Order/Order.php +++ b/dist/src/Entity/Order/Order.php @@ -23,6 +23,8 @@ * @ORM\Entity * @ORM\Table(name="sylius_order") */ +#[ORM\Entity] +#[ORM\Table(name: 'sylius_order')] class Order extends SyliusOrder implements OrderInterface, MonsieurBizOrderInterface { use OrderTrait; diff --git a/dist/src/Entity/Product/ProductVariant.php b/dist/src/Entity/Product/ProductVariant.php index 68dd6a9..72c3257 100644 --- a/dist/src/Entity/Product/ProductVariant.php +++ b/dist/src/Entity/Product/ProductVariant.php @@ -23,6 +23,8 @@ * @ORM\Entity * @ORM\Table(name="sylius_product_variant") */ +#[ORM\Entity] +#[ORM\Table(name: 'sylius_product_variant')] class ProductVariant extends SyliusProductVariant implements MonsieurBizProductVariantInterface { use ProductVariantTrait; diff --git a/dist/src/Entity/Shipping/Shipment.php b/dist/src/Entity/Shipping/Shipment.php index 19857a7..21142dd 100644 --- a/dist/src/Entity/Shipping/Shipment.php +++ b/dist/src/Entity/Shipping/Shipment.php @@ -23,6 +23,8 @@ * @ORM\Entity * @ORM\Table(name="sylius_shipment") */ +#[ORM\Entity] +#[ORM\Table(name: 'sylius_shipment')] class Shipment extends SyliusShipment implements ShipmentInterface, MonsieurBizShipmentInterface { use ShipmentTrait; diff --git a/dist/src/Entity/Shipping/ShippingMethod.php b/dist/src/Entity/Shipping/ShippingMethod.php index c2a4c0a..9ff7020 100644 --- a/dist/src/Entity/Shipping/ShippingMethod.php +++ b/dist/src/Entity/Shipping/ShippingMethod.php @@ -24,6 +24,8 @@ * @ORM\Entity * @ORM\Table(name="sylius_shipping_method") */ +#[ORM\Entity] +#[ORM\Table(name: 'sylius_shipping_method')] class ShippingMethod extends SyliusShippingMethod implements ShippingMethodInterface, MonsieurBizShippingMethodInterface { use ShippingMethodTrait { diff --git a/dist/src/Entity/Shipping/ShippingSlotConfig.php b/dist/src/Entity/Shipping/ShippingSlotConfig.php index 28c08e7..873024b 100644 --- a/dist/src/Entity/Shipping/ShippingSlotConfig.php +++ b/dist/src/Entity/Shipping/ShippingSlotConfig.php @@ -20,6 +20,8 @@ * @ORM\Entity * @ORM\Table(name="monsieurbiz_shipping_slot_config") */ +#[ORM\Entity] +#[ORM\Table(name: 'monsieurbiz_shipping_slot_config')] class ShippingSlotConfig extends BaseShippingSlotConfig { } diff --git a/dist/src/Entity/Shipping/Slot.php b/dist/src/Entity/Shipping/Slot.php index 1c3c415..784d77e 100644 --- a/dist/src/Entity/Shipping/Slot.php +++ b/dist/src/Entity/Shipping/Slot.php @@ -20,6 +20,8 @@ * @ORM\Entity * @ORM\Table(name="monsieurbiz_shipping_slot_slot") */ +#[ORM\Entity] +#[ORM\Table(name: 'monsieurbiz_shipping_slot_slot')] class Slot extends BaseSlot { } diff --git a/dist/templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig b/dist/templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig index 953f8ff..08a22f4 100644 --- a/dist/templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig +++ b/dist/templates/bundles/SyliusShopBundle/Common/Order/_addresses.html.twig @@ -17,12 +17,3 @@ {% endif %} -{% if sylius_is_billing_address_missing(order) %} -
- -
-
{{ 'sylius.pay_pal.missing_billing_address_header'|trans }}
-

{{ 'sylius.pay_pal.missing_billing_address_content'|trans }}

-
-
-{% endif %} diff --git a/docker-compose.yaml.dist b/docker-compose.yaml.dist index 955683c..24d6f0c 100644 --- a/docker-compose.yaml.dist +++ b/docker-compose.yaml.dist @@ -1,4 +1,3 @@ -version: '3.8' services: database: image: mysql:8.0 diff --git a/src/Entity/ProductVariantTrait.php b/src/Entity/ProductVariantTrait.php index 3e61c0e..3d96591 100644 --- a/src/Entity/ProductVariantTrait.php +++ b/src/Entity/ProductVariantTrait.php @@ -20,6 +20,7 @@ trait ProductVariantTrait /** * @ORM\Column(name="preparation_delay", type="integer", nullable=true) */ + #[ORM\Column(name: 'preparation_delay', type: 'integer', nullable: true)] private ?int $preparationDelay = null; public function getPreparationDelay(): ?int diff --git a/src/Entity/ShipmentTrait.php b/src/Entity/ShipmentTrait.php index c70882e..e780206 100644 --- a/src/Entity/ShipmentTrait.php +++ b/src/Entity/ShipmentTrait.php @@ -20,6 +20,7 @@ trait ShipmentTrait /** * @ORM\OneToOne(targetEntity="MonsieurBiz\SyliusShippingSlotPlugin\Entity\SlotInterface", mappedBy="shipment", fetch="EAGER") */ + #[ORM\OneToOne(targetEntity: SlotInterface::class, mappedBy: 'shipment', fetch: 'EAGER')] private ?SlotInterface $slot = null; public function getSlot(): ?SlotInterface diff --git a/src/Entity/ShippingMethodTrait.php b/src/Entity/ShippingMethodTrait.php index 5dfe8c6..ff40a3a 100644 --- a/src/Entity/ShippingMethodTrait.php +++ b/src/Entity/ShippingMethodTrait.php @@ -25,6 +25,8 @@ trait ShippingMethodTrait * @ORM\ManyToOne(targetEntity="\MonsieurBiz\SyliusShippingSlotPlugin\Entity\ShippingSlotConfigInterface") * @ORM\JoinColumn(name="shipping_slot_config_id", nullable=true, referencedColumnName="id", onDelete="SET NULL") */ + #[ORM\ManyToOne(targetEntity: ShippingSlotConfigInterface::class)] + #[ORM\JoinColumn(name: 'shipping_slot_config_id', nullable: true, referencedColumnName: 'id', onDelete: 'SET NULL')] private ?ShippingSlotConfigInterface $shippingSlotConfig = null; /** diff --git a/src/Resources/public/js/shipping-slot-js.js b/src/Resources/public/js/shipping-slot-js.js index 7ab07f4..ca750c8 100644 --- a/src/Resources/public/js/shipping-slot-js.js +++ b/src/Resources/public/js/shipping-slot-js.js @@ -14,7 +14,7 @@ function t(e,t,n,a){var r=e+" ";switch(n){case"s":return t||a?"nekaj sekund":"ne //! moment.js locale configuration e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("qW9H"))},"11ZM":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var a=e%10;return e+(t[a]||t[e%100-a]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("qW9H"))},"1H0A":function(e,t,n){!function(e){"use strict"; +var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var a=e%10;return e+(t[a]||t[e%100-a]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("qW9H"))},"1H0A":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("qW9H"))},"2mad":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"3U8g":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration @@ -106,7 +106,7 @@ PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,a=arguments.length;n1&&e<5&&1!=~~(e/10)}function i(e,t,n,a){var r=e+" ";switch(n){case"s":return t||a?"pár sekund":"pár sekundami";case"ss":return t||a?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?r+(o(e)?"dny":"dní"):r+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?r+(o(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("qW9H"))},SDMJ:function(e,t,n){!function(e){"use strict"; +var t={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),a=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,a){var r=e+" ";switch(n){case"s":return t||a?"pár sekund":"pár sekundami";case"ss":return t||a?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?r+(o(e)?"dny":"dní"):r+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?r+(o(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("qW9H"))},SDMJ:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("qW9H"))},SURw:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration @@ -202,7 +202,7 @@ var t="január_február_marec_apríl_máj_jún_júl_august_september_október_no //! moment.js locale configuration var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("qW9H"))},m050:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("qW9H"))},mUuK:function(e,t,n){!function(e){"use strict"; +var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,a,r){var o=t.words[a];if(1===a.length)return"y"===a&&n?"једна година":r||n?o[0]:o[1];const i=t.correctGrammaticalCase(e,o);return"yy"===a&&n&&"годину"===i?e+" година":e+" "+i}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("qW9H"))},mUuK:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("qW9H"))},"md+Q":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration @@ -210,7 +210,7 @@ var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:" //! moment.js locale configuration e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("qW9H"))},nTVo:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("qW9H"))},nYYG:function(e,t,n){"use strict";var a=n("Rpw/"),r=n("qW9H"),o=n.n(r),i=(n("/mDZ"),n("CtUX")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.b)(t,e),t.prototype.offsetForArray=function(e){return o.a.tz(e,this.timeZoneName).utcOffset()},t.prototype.timestampToArray=function(e){return o.a.tz(e,this.timeZoneName).toArray()},t}(i.s),c=Object(i.X)({namedTimeZonedImpl:s});t.a=c},ng4s:function(e,t,n){"use strict";n.r(t),function(e){var t=n("xG4u"),a=n("kEfb"),r=n("iJY3"),o=n("jkVd"),i=n.n(o),s=n("nYYG");function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null;this.disableButtons();var a=this;this.initCalendarForAMethod(e.value,n,(function(){if(200===this.status){var r=JSON.parse(this.responseText);if(a.hideCalendars(),a.hideShippingSlotConfigContainers(),void 0!==r.events){var o,i=c(a.calendarContainers);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.classList.contains(e.value)&&a.initCalendar(s,r.events,r.timezone,e.value,n)}}catch(e){i.e(e)}finally{i.f()}}else t?a.resetSlot(e,(function(){a.enableButtons()})):a.enableButtons()}else a.enableButtons()}))}},{key:"selectSlot",value:function(e){this.disableButtons();var t,n=this,a=c(this.shippingMethodInputs);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.checked&&this.saveSlot(e,r,(function(){200===this.status?n.enableButtons():alert(n.slotSelectError)}))}}catch(e){a.e(e)}finally{a.f()}}},{key:"initCalendarForAMethod",value:function(e,t,n){var a=new XMLHttpRequest;a.onload=n;var r=this.initUrl.replace("__CODE__",e).replace("__CONFIG__",null!==t?t.value:"");a.open("get",r,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.send()}},{key:"listSlots",value:function(e,t,n,a,r){var o=new XMLHttpRequest;o.onload=r;var i=this.listSlotsUrl.replace("__CODE__",e).replace("__FROM__",t).replace("__TO__",n).replace("__CONFIG__",null!==a?a.value:"");o.open("get",i,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send()}},{key:"saveSlot",value:function(e,t,n){var a=this.getShippingSlotConfigSelect(t.value),r=new XMLHttpRequest;r.onload=n,r.open("post",this.saveSlotUrl,!0),r.setRequestHeader("X-Requested-With","XMLHttpRequest");var o=new FormData;o.append("event",JSON.stringify(e.event)),o.append("shippingMethod",t.value),o.append("shipmentIndex",t.getAttribute("tabIndex")),o.append("shippingSlotConfig",null!==a?a.value:""),r.send(o)}},{key:"resetSlot",value:function(e,t){var n=new XMLHttpRequest;n.onload=t,n.open("post",this.resetSlotUrl,!0),n.setRequestHeader("X-Requested-With","XMLHttpRequest");var a=new FormData;a.append("shipmentIndex",e.getAttribute("tabIndex")),n.send(a)}},{key:"disableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!0,n.form.classList.add("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"enableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!1,n.form.classList.remove("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"hideCalendars",value:function(){var e,t=c(this.calendarContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"hideShippingSlotConfigContainers",value:function(){var e,t=c(this.shippingSlotConfigContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"applySlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.gridSlotStyle.textColor,e.el.style.borderColor=this.gridSlotStyle.borderColor,e.el.style.backgroundColor=this.gridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.listSlotStyle.textColor,e.el.style.borderColor=this.listSlotStyle.borderColor,e.el.style.backgroundColor=this.listSlotStyle.backgroundColor)}},{key:"applySelectedSlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.selectedGridSlotStyle.textColor,e.el.style.borderColor=this.selectedGridSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedGridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.selectedListSlotStyle.textColor,e.el.style.borderColor=this.selectedListSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedListSlotStyle.backgroundColor)}},{key:"hideSlot",value:function(e){e.el.style.display="none"}},{key:"initCalendar",value:function(e,n,o,d,u){if(e.style.display="block",u){var l=Array.from(this.shippingSlotConfigContainers).find((function(e){return e.classList.contains(d)}));l&&(l.style.display="block")}var M=this;new t.a(e,Object.assign({timeZone:o,plugins:[a.a,r.a,s.a],locales:i.a,initialView:"timeGridWeek",contentHeight:"auto",allDaySlot:!1,headerToolbar:{left:"today prev,next",center:"title",right:"timeGridWeek,timeGridDay"},events:n,eventTextColor:this.gridSlotStyle.textColor,eventBackgroundColor:this.gridSlotStyle.backgroundColor,eventBorderColor:this.gridSlotStyle.borderColor,eventClick:function(e){M.applySelectedSlotStyle(e),null!==M.previousSlot&&null!==M.previousSlot.event&&M.previousSlot.event.start.valueOf()!==e.event.start.valueOf()&&M.applySlotStyle(M.previousSlot),M.previousSlot=e,M.selectSlot(e)},eventDidMount:function(e){null!==e.event&&!0===e.event.extendedProps.isCurrent?(M.applySelectedSlotStyle(e),M.previousSlot=e,M.enableButtons()):M.applySlotStyle(e)},datesSet:function(e){var t=this;M.disableButtons(),M.listSlots(d,e.startStr,e.endStr,u,(function(){if(200===this.status){var e,n=c(M.nextStepButtons);try{for(n.s();!(e=n.n()).done;)e.value.form.classList.remove("loading")}catch(e){n.e(e)}finally{n.f()}var a=JSON.parse(this.responseText);t.batchRendering((function(){var e,n=c(t.getEvents());try{for(n.s();!(e=n.n()).done;)e.value.remove()}catch(e){n.e(e)}finally{n.f()}var r,o=c(a);try{for(o.s();!(r=o.n()).done;){var i=r.value;t.addEvent(i)}}catch(e){o.e(e)}finally{o.f()}}))}else console.error("Error during slot list")}))}},this.fullCalendarConfig)).render()}},{key:"getShippingSlotConfigSelect",value:function(e){var t,n=c(this.shippingSlotConfigContainers);try{for(n.s();!(t=n.n()).done;){var a=t.value.querySelector(this.shippingSlotConfigSelectSelector);if(null!==a&&a.name.includes(e))return a}}catch(e){n.e(e)}finally{n.f()}return null}}])&&u(n.prototype,o),d&&u(n,d),e}()}.call(this,n("2mad"))},nkld:function(e,t,n){!function(e){"use strict"; +e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("qW9H"))},nYYG:function(e,t,n){"use strict";var a=n("Rpw/"),r=n("qW9H"),o=n.n(r),i=(n("/mDZ"),n("CtUX")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.b)(t,e),t.prototype.offsetForArray=function(e){return o.a.tz(e,this.timeZoneName).utcOffset()},t.prototype.timestampToArray=function(e){return o.a.tz(e,this.timeZoneName).toArray()},t}(i.s),c=Object(i.X)({namedTimeZonedImpl:s});t.a=c},ng4s:function(e,t,n){"use strict";n.r(t),function(e){var t=n("xG4u"),a=n("kEfb"),r=n("iJY3"),o=n("jkVd"),i=n.n(o),s=n("nYYG");function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null;this.disableButtons();var a=this;this.initCalendarForAMethod(e.value,n,(function(){if(200===this.status){var r=JSON.parse(this.responseText);if(a.hideCalendars(),a.hideShippingSlotConfigContainers(),void 0!==r.events){var o,i=c(a.calendarContainers);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.classList.contains(e.value)&&a.initCalendar(s,r.events,r.timezone,e.value,n)}}catch(e){i.e(e)}finally{i.f()}}else t?a.resetSlot(e,(function(){a.enableButtons()})):a.enableButtons()}else a.enableButtons()}))}},{key:"selectSlot",value:function(e){this.disableButtons();var t,n=this,a=c(this.shippingMethodInputs);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.checked&&this.saveSlot(e,r,(function(){200===this.status?n.enableButtons():alert(n.slotSelectError)}))}}catch(e){a.e(e)}finally{a.f()}}},{key:"initCalendarForAMethod",value:function(e,t,n){var a=new XMLHttpRequest;a.onload=n;var r=this.initUrl.replace("__CODE__",e).replace("__CONFIG__",null!==t?t.value:"");a.open("get",r,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.send()}},{key:"listSlots",value:function(e,t,n,a,r){var o=new XMLHttpRequest;o.onload=r;var i=this.listSlotsUrl.replace("__CODE__",e).replace("__FROM__",t).replace("__TO__",n).replace("__CONFIG__",null!==a?a.value:"");o.open("get",i,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send()}},{key:"saveSlot",value:function(e,t,n){var a=this.getShippingSlotConfigSelect(t.value),r=new XMLHttpRequest;r.onload=n,r.open("post",this.saveSlotUrl,!0),r.setRequestHeader("X-Requested-With","XMLHttpRequest");var o=new FormData;o.append("event",JSON.stringify(e.event)),o.append("shippingMethod",t.value),o.append("shipmentIndex",t.getAttribute("tabIndex")),o.append("shippingSlotConfig",null!==a?a.value:""),r.send(o)}},{key:"resetSlot",value:function(e,t){var n=new XMLHttpRequest;n.onload=t,n.open("post",this.resetSlotUrl,!0),n.setRequestHeader("X-Requested-With","XMLHttpRequest");var a=new FormData;a.append("shipmentIndex",e.getAttribute("tabIndex")),n.send(a)}},{key:"disableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!0,n.form.classList.add("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"enableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!1,n.form.classList.remove("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"hideCalendars",value:function(){var e,t=c(this.calendarContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"hideShippingSlotConfigContainers",value:function(){var e,t=c(this.shippingSlotConfigContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"applySlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.gridSlotStyle.textColor,e.el.style.borderColor=this.gridSlotStyle.borderColor,e.el.style.backgroundColor=this.gridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.listSlotStyle.textColor,e.el.style.borderColor=this.listSlotStyle.borderColor,e.el.style.backgroundColor=this.listSlotStyle.backgroundColor)}},{key:"applySelectedSlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.selectedGridSlotStyle.textColor,e.el.style.borderColor=this.selectedGridSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedGridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.selectedListSlotStyle.textColor,e.el.style.borderColor=this.selectedListSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedListSlotStyle.backgroundColor)}},{key:"hideSlot",value:function(e){e.el.style.display="none"}},{key:"initCalendar",value:function(e,n,o,d,u){if(e.style.display="block",u){var l=Array.from(this.shippingSlotConfigContainers).find((function(e){return e.classList.contains(d)}));l&&(l.style.display="block")}var M=this;new t.a(e,Object.assign({timeZone:o,plugins:[a.a,r.a,s.a],locales:i.a,initialView:"timeGridWeek",contentHeight:"auto",allDaySlot:!1,headerToolbar:{left:"today prev,next",center:"title",right:"timeGridWeek,timeGridDay"},events:n,eventTextColor:this.gridSlotStyle.textColor,eventBackgroundColor:this.gridSlotStyle.backgroundColor,eventBorderColor:this.gridSlotStyle.borderColor,eventClick:function(e){M.applySelectedSlotStyle(e),null!==M.previousSlot&&null!==M.previousSlot.event&&M.previousSlot.event.start.valueOf()!==e.event.start.valueOf()&&M.applySlotStyle(M.previousSlot),M.previousSlot=e,M.selectSlot(e)},eventDidMount:function(e){null!==e.event&&!0===e.event.extendedProps.isCurrent?(M.applySelectedSlotStyle(e),M.previousSlot=e,M.enableButtons()):M.applySlotStyle(e)},datesSet:function(e){var t=this;M.disableButtons(),M.listSlots(d,e.startStr,e.endStr,u,(function(){if(200===this.status){var e,n=c(M.nextStepButtons);try{for(n.s();!(e=n.n()).done;)e.value.form.classList.remove("loading")}catch(e){n.e(e)}finally{n.f()}var a=JSON.parse(this.responseText);t.batchRendering((function(){var e,n=c(t.getEvents());try{for(n.s();!(e=n.n()).done;)e.value.remove()}catch(e){n.e(e)}finally{n.f()}var r,o=c(a);try{for(o.s();!(r=o.n()).done;){var i=r.value;t.addEvent(i)}}catch(e){o.e(e)}finally{o.f()}}))}else console.error("Error during slot list")}))}},this.fullCalendarConfig)).render()}},{key:"getShippingSlotConfigSelect",value:function(e){var t,n=c(this.shippingSlotConfigContainers);try{for(n.s();!(t=n.n()).done;){var a=t.value.querySelector(this.shippingSlotConfigSelectSelector);if(null!==a&&a.name.includes(e))return a}}catch(e){n.e(e)}finally{n.f()}return null}}])&&u(n.prototype,o),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),e}()}.call(this,n("2mad"))},nkld:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("qW9H"))},nmio:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration @@ -232,9 +232,9 @@ e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ //! moment.js locale configuration var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("qW9H"))},phIr:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("qW9H"))},qW9H:function(e,t,n){(function(e){e.exports=function(){"use strict";var t,a;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function d(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function M(e,t){var n,a=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},E={};function x(e,t,n,a){var r=a;"string"==typeof a&&(r=function(){return this[a]()}),e&&(E[e]=r),t&&(E[t[0]]=function(){return S(r.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function H(e,t){return e.isValid()?(t=C(t,e.localeData()),q[t]=q[t]||function(e){var t,n,a,r=e.match(N);for(t=0,n=r.length;t=0&&W.test(e);)e=e.replace(W,a),W.lastIndex=0,n-=1;return e}var j={};function R(e,t){var n=e.toLowerCase();j[n]=j[n+"s"]=j[t]=e}function B(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function X(e){var t,n,a={};for(n in e)s(e,n)&&(t=B(n))&&(a[t]=e[n]);return a}var P={};function I(e,t){P[e]=t}function F(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function G(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&F(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ve(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,Q=/\d/,$=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ae=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,ce=/[+-]?\d{1,6}/,de=/\d+/,ue=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function me(e,t,n){Z[e]=D(t)?t:function(e,a){return e&&n?n:t}}function _e(e,t){return s(Z,e)?Z[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,r){return t||n||a||r}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var he,be={};function ye(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),u(t)&&(a=function(e,n){n[t]=V(e)}),n=0;n68?1900:2e3)};var We=G("FullYear",!0);function qe(e,t,n,a,r,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,a,r,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,a,r,o,i),s}function Ee(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xe(e,t,n){var a=7+t-n;return-(7+Ee(e,0,a).getUTCDay()-t)%7+a-1}function He(e,t,n,a,r){var o,i,s=1+7*(t-1)+(7+n-a)%7+xe(e,a,r);return s<=0?i=Ne(o=e-1)+s:s>Ne(e)?(o=e+1,i=s-Ne(e)):(o=e,i=s),{year:o,dayOfYear:i}}function Ce(e,t,n){var a,r,o=xe(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?a=i+je(r=e.year()-1,t,n):i>je(e.year(),t,n)?(a=i-je(e.year(),t,n),r=e.year()+1):(r=e.year(),a=i),{week:a,year:r}}function je(e,t,n){var a=xe(e,t,n),r=xe(e+1,t,n);return(Ne(e)-a+r)/7}function Re(e,t){return e.slice(t,7).concat(e.slice(0,t))}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),I("week",5),I("isoWeek",5),me("w",ae),me("ww",ae,$),me("W",ae),me("WW",ae,$),Le(["w","ww","W","WW"],(function(e,t,n,a){t[a.substr(0,1)]=V(e)})),x("d",0,"do","day"),x("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),x("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),x("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),me("d",ae),me("e",ae),me("E",ae),me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),me("dddd",(function(e,t){return t.weekdaysRegex(e)})),Le(["dd","ddd","dddd"],(function(e,t,n,a){var r=n._locale.weekdaysParse(e,a,n._strict);null!=r?t.d=r:_(n).invalidWeekday=e})),Le(["d","e","E"],(function(e,t,n,a){t[a]=V(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=pe,Fe=pe,Ue=pe;function Ve(e,t,n){var a,r,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)o=m([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=he.call(this._weekdaysParse,i))?r:null:"ddd"===t?-1!==(r=he.call(this._shortWeekdaysParse,i))?r:null:-1!==(r=he.call(this._minWeekdaysParse,i))?r:null:"dddd"===t?-1!==(r=he.call(this._weekdaysParse,i))||-1!==(r=he.call(this._shortWeekdaysParse,i))||-1!==(r=he.call(this._minWeekdaysParse,i))?r:null:"ddd"===t?-1!==(r=he.call(this._shortWeekdaysParse,i))||-1!==(r=he.call(this._weekdaysParse,i))||-1!==(r=he.call(this._minWeekdaysParse,i))?r:null:-1!==(r=he.call(this._minWeekdaysParse,i))||-1!==(r=he.call(this._weekdaysParse,i))||-1!==(r=he.call(this._shortWeekdaysParse,i))?r:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,a,r,o,i=[],s=[],c=[],d=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),a=fe(this.weekdaysMin(n,"")),r=fe(this.weekdaysShort(n,"")),o=fe(this.weekdays(n,"")),i.push(a),s.push(r),c.push(o),d.push(a),d.push(r),d.push(o);i.sort(e),s.sort(e),c.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ke(e,t){x(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Je),x("k",["kk",2],0,(function(){return this.hours()||24})),x("hmm",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+S(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),R("hour","h"),I("hour",13),me("a",Ze),me("A",Ze),me("H",ae),me("h",ae),me("k",ae),me("HH",ae,$),me("hh",ae,$),me("kk",ae,$),me("hmm",re),me("hmmss",oe),me("Hmm",re),me("Hmmss",oe),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var a=V(e);t[3]=24===a?0:a})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=V(e),_(n).bigHour=!0})),ye("hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a)),_(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(r)),_(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a))})),ye("Hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(r))}));var Qe,$e=G("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ge,monthsShort:ze,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Pe,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function at(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n0;){if(a=ot(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&at(r,n)>=t-1)break;t--}o++}return Qe}(e)}function dt(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ve(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,_(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),_(e)._overflowWeeks&&-1===t&&(t=7),_(e)._overflowWeekday&&-1===t&&(t=8),_(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,ft=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ht={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,a,r,o,i,s=e._i,c=ut.exec(s)||lt.exec(s);if(c){for(_(e).iso=!0,t=0,n=pt.length;t7)&&(c=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,d=Ce(Ot(),o,i),n=At(t.gg,e._a[0],d.year),a=At(t.w,d.week),null!=t.d?((r=t.d)<0||r>6)&&(c=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(c=!0)):r=o),a<1||a>je(n,o,i)?_(e)._overflowWeeks=!0:null!=c?_(e)._overflowWeekday=!0:(s=He(n,a,r,o,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=At(e._a[0],a[0]),(e._dayOfYear>Ne(i)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=Ee(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ee:qe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(_(e).weekdayMismatch=!0)}}function gt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],_(e).empty=!0;var t,n,a,o,i,s,c=""+e._i,d=c.length,u=0;for(a=C(e._f,e._locale).match(N)||[],t=0;t0&&_(e).unusedInput.push(i),c=c.slice(c.indexOf(n)+n.length),u+=n.length),E[o]?(n?_(e).empty=!1:_(e).unusedTokens.push(o),Ae(o,n,e)):e._strict&&!n&&_(e).unusedTokens.push(o);_(e).charsLeftOver=d-u,c.length>0&&_(e).unusedInput.push(c),e._a[3]<=12&&!0===_(e).bigHour&&e._a[3]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=_(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),vt(e),dt(e)}else Lt(e);else bt(e)}function zt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new A(dt(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,a,r,o,i,s=!1;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:h()}));function wt(e,t){var n,a;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],a=1;a=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],a=[],r=[],o=[],i=this.eras();for(e=0,t=i.length;e(o=je(e,a,r))&&(t=o),un.call(this,e,t,n,a,r))}function un(e,t,n,a,r){var o=He(e,t,n,a,r),i=Ee(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),me("N",on),me("NN",on),me("NNN",on),me("NNNN",(function(e,t){return t.erasNameRegex(e)})),me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var r=n._locale.erasParse(e,a,n._strict);r?_(n).era=r:_(n).invalidEra=e})),me("y",de),me("yy",de),me("yyy",de),me("yyyy",de),me("yo",(function(e,t){return t._eraYearOrdinalRegex||de})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,a){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),me("G",ue),me("g",ue),me("GG",ae,$),me("gg",ae,$),me("GGGG",se,te),me("gggg",se,te),me("GGGGG",ce,ne),me("ggggg",ce,ne),Le(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=V(e)})),Le(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),x("Q",0,"Qo","quarter"),R("quarter","Q"),I("quarter",7),me("Q",Q),ye("Q",(function(e,t){t[1]=3*(V(e)-1)})),x("D",["DD",2],"Do","date"),R("date","D"),I("date",9),me("D",ae),me("DD",ae,$),me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=V(e.match(ae)[0])}));var ln=G("Date",!0);x("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),I("dayOfYear",4),me("DDD",ie),me("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),x("m",["mm",2],0,"minute"),R("minute","m"),I("minute",14),me("m",ae),me("mm",ae,$),ye(["m","mm"],4);var Mn=G("Minutes",!1);x("s",["ss",2],0,"second"),R("second","s"),I("second",15),me("s",ae),me("ss",ae,$),ye(["s","ss"],5);var pn,mn,_n=G("Seconds",!1);for(x("S",0,0,(function(){return~~(this.millisecond()/100)})),x(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),x(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),x(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),x(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),x(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),x(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),I("millisecond",16),me("S",ie,Q),me("SS",ie,$),me("SSS",ie,ee),pn="SSSS";pn.length<=9;pn+="S")me(pn,de);function fn(e,t){t[6]=V(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,fn);mn=G("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var hn=A.prototype;function bn(e){return e}hn.add=Vt,hn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),a=Ht(n,this).startOf("day"),o=r.calendarFormat(this,a)||"sameElse",i=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Ot(n)))},hn.clone=function(){return new A(this)},hn.diff=function(e,t,n){var a,r,o;if(!this.isValid())return NaN;if(!(a=Ht(e,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=Qt(this,a)/12;break;case"month":o=Qt(this,a);break;case"quarter":o=Qt(this,a)/3;break;case"second":o=(this-a)/1e3;break;case"minute":o=(this-a)/6e4;break;case"hour":o=(this-a)/36e5;break;case"day":o=(this-a-r)/864e5;break;case"week":o=(this-a-r)/6048e5;break;default:o=this-a}return n?o:U(o)},hn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:an,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},hn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)},hn.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ot(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.fromNow=function(e){return this.from(Ot(),e)},hn.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ot(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.toNow=function(e){return this.to(Ot(),e)},hn.get=function(e){return D(this[e=B(e)])?this[e]():this},hn.invalidAt=function(){return _(this).overflow},hn.isAfter=function(e,t){var n=v(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a="moment",r="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(hn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),hn.toJSON=function(){return this.isValid()?this.toISOString():null},hn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hn.unix=function(){return Math.floor(this.valueOf()/1e3)},hn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hn.eraName=function(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hn.isLocal=function(){return!!this.isValid()&&!this._isUTC},hn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hn.isUtc=jt,hn.isUTC=jt,hn.zoneAbbr=function(){return this._isUTC?"UTC":""},hn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hn.dates=z("dates accessor is deprecated. Use date instead.",ln),hn.months=z("months accessor is deprecated. Use month instead",Ye),hn.years=z("years accessor is deprecated. Use year instead",We),hn.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),hn.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return L(t,this),(t=zt(t))._a?(e=t._isUTC?m(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var a,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(a=0;a0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=Y.prototype;function Ln(e,t,n,a){var r=ct(),o=m().set(a,t);return r[n](o,e)}function An(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ln(e,t,n,"month");var a,r=[];for(a=0;a<12;a++)r[a]=Ln(e,a,n,"month");return r}function vn(e,t,n,a){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,o=ct(),i=e?o._week.dow:0,s=[];if(null!=n)return Ln(t,(n+i)%7,a,"day");for(r=0;r<7;r++)s[r]=Ln(t,(r+i)%7,a,"day");return s}yn.calendar=function(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return D(a)?a.call(t,n):a},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=bn,yn.postformat=bn,yn.relativeTime=function(e,t,n,a){var r=this._relativeTime[n];return D(r)?r(e,t,n,a):r.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,a,o,i=this._eras||ct("en")._eras;for(n=0,a=i.length;n=0)return c[a]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var a,r,o;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=m([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Se.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Se.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ce(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Re(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Re(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Re(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var a,r,o;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=m([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=z("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=z("moment.langData is deprecated. Use moment.localeData instead.",ct);var gn=Math.abs;function zn(e,t,n,a){var r=Xt(t,n);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function On(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var wn=Dn("ms"),Yn=Dn("s"),Sn=Dn("m"),Nn=Dn("h"),Wn=Dn("d"),qn=Dn("w"),En=Dn("M"),xn=Dn("Q"),Hn=Dn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=Cn("milliseconds"),Rn=Cn("seconds"),Bn=Cn("minutes"),Xn=Cn("hours"),Pn=Cn("days"),In=Cn("months"),Fn=Cn("years"),Un=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,a,r){return r.relativeTime(t||1,!!n,e,a)}var Jn=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,r,o,i,s,c=Jn(this._milliseconds)/1e3,d=Jn(this._days),u=Jn(this._months),l=this.asSeconds();return l?(e=U(c/60),t=U(e/60),c%=60,e%=60,n=U(u/12),u%=12,a=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",o=Kn(this._months)!==Kn(l)?"-":"",i=Kn(this._days)!==Kn(l)?"-":"",s=Kn(this._milliseconds)!==Kn(l)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(d?i+d+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+a+"S":"")):"P0D"}var Qn=St.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Qn.add=function(e,t){return zn(this,e,t,1)},Qn.subtract=function(e,t){return zn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+On(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=wn,Qn.asSeconds=Yn,Qn.asMinutes=Sn,Qn.asHours=Nn,Qn.asDays=Wn,Qn.asWeeks=qn,Qn.asMonths=En,Qn.asQuarters=xn,Qn.asYears=Hn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Qn._bubble=function(){var e,t,n,a,r,o=this._milliseconds,i=this._days,s=this._months,c=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*Tn(kn(s)+i),i=0,s=0),c.milliseconds=o%1e3,e=U(o/1e3),c.seconds=e%60,t=U(e/60),c.minutes=t%60,n=U(t/60),c.hours=n%24,i+=U(n/24),r=U(On(i)),s+=r,i-=Tn(kn(r)),a=U(s/12),s%=12,c.days=i,c.months=s,c.years=a,this},Qn.clone=function(){return Xt(this)},Qn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=jn,Qn.seconds=Rn,Qn.minutes=Bn,Qn.hours=Xn,Qn.days=Pn,Qn.weeks=function(){return U(this.days()/7)},Qn.months=In,Qn.years=Fn,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,a,r=!1,o=Vn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),a=function(e,t,n,a){var r=Xt(e).abs(),o=Un(r.as("s")),i=Un(r.as("m")),s=Un(r.as("h")),c=Un(r.as("d")),d=Un(r.as("M")),u=Un(r.as("w")),l=Un(r.as("y")),M=o<=n.ss&&["s",o]||o0,M[4]=a,Gn.apply(null,M)}(this,!r,o,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)},Qn.toISOString=Zn,Qn.toString=Zn,Qn.toJSON=Zn,Qn.locale=$t,Qn.localeData=tn,Qn.toIsoString=z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Qn.lang=en,x("X",0,0,"unix"),x("x",0,0,"valueOf"),me("x",ue),me("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(V(e))})), +e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("qW9H"))},qW9H:function(e,t,n){(function(e){e.exports=function(){"use strict";var t,a;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function d(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function M(e,t){var n,a=[],r=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},E={};function x(e,t,n,a){var r=a;"string"==typeof a&&(r=function(){return this[a]()}),e&&(E[e]=r),t&&(E[t[0]]=function(){return S(r.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function H(e,t){return e.isValid()?(t=C(t,e.localeData()),q[t]=q[t]||function(e){var t,n,a,r=e.match(N);for(t=0,n=r.length;t=0&&W.test(e);)e=e.replace(W,a),W.lastIndex=0,n-=1;return e}var j={};function R(e,t){var n=e.toLowerCase();j[n]=j[n+"s"]=j[t]=e}function B(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function X(e){var t,n,a={};for(n in e)s(e,n)&&(t=B(n))&&(a[t]=e[n]);return a}var P={};function I(e,t){P[e]=t}function F(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function G(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&F(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ve(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,Q=/\d/,$=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ae=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,ce=/[+-]?\d{1,6}/,de=/\d+/,ue=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function me(e,t,n){Z[e]=D(t)?t:function(e,a){return e&&n?n:t}}function _e(e,t){return s(Z,e)?Z[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,r){return t||n||a||r}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var he,be={};function ye(e,t){var n,a,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=V(e)}),a=e.length,n=0;n68?1900:2e3)};var We=G("FullYear",!0);function qe(e,t,n,a,r,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,a,r,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,a,r,o,i),s}function Ee(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xe(e,t,n){var a=7+t-n;return-(7+Ee(e,0,a).getUTCDay()-t)%7+a-1}function He(e,t,n,a,r){var o,i,s=1+7*(t-1)+(7+n-a)%7+xe(e,a,r);return s<=0?i=Ne(o=e-1)+s:s>Ne(e)?(o=e+1,i=s-Ne(e)):(o=e,i=s),{year:o,dayOfYear:i}}function Ce(e,t,n){var a,r,o=xe(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?a=i+je(r=e.year()-1,t,n):i>je(e.year(),t,n)?(a=i-je(e.year(),t,n),r=e.year()+1):(r=e.year(),a=i),{week:a,year:r}}function je(e,t,n){var a=xe(e,t,n),r=xe(e+1,t,n);return(Ne(e)-a+r)/7}function Re(e,t){return e.slice(t,7).concat(e.slice(0,t))}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),I("week",5),I("isoWeek",5),me("w",ae),me("ww",ae,$),me("W",ae),me("WW",ae,$),Le(["w","ww","W","WW"],(function(e,t,n,a){t[a.substr(0,1)]=V(e)})),x("d",0,"do","day"),x("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),x("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),x("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),me("d",ae),me("e",ae),me("E",ae),me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),me("dddd",(function(e,t){return t.weekdaysRegex(e)})),Le(["dd","ddd","dddd"],(function(e,t,n,a){var r=n._locale.weekdaysParse(e,a,n._strict);null!=r?t.d=r:_(n).invalidWeekday=e})),Le(["d","e","E"],(function(e,t,n,a){t[a]=V(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=pe,Fe=pe,Ue=pe;function Ve(e,t,n){var a,r,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)o=m([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=he.call(this._weekdaysParse,i))?r:null:"ddd"===t?-1!==(r=he.call(this._shortWeekdaysParse,i))?r:null:-1!==(r=he.call(this._minWeekdaysParse,i))?r:null:"dddd"===t?-1!==(r=he.call(this._weekdaysParse,i))||-1!==(r=he.call(this._shortWeekdaysParse,i))||-1!==(r=he.call(this._minWeekdaysParse,i))?r:null:"ddd"===t?-1!==(r=he.call(this._shortWeekdaysParse,i))||-1!==(r=he.call(this._weekdaysParse,i))||-1!==(r=he.call(this._minWeekdaysParse,i))?r:null:-1!==(r=he.call(this._minWeekdaysParse,i))||-1!==(r=he.call(this._weekdaysParse,i))||-1!==(r=he.call(this._shortWeekdaysParse,i))?r:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,a,r,o,i=[],s=[],c=[],d=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),a=fe(this.weekdaysMin(n,"")),r=fe(this.weekdaysShort(n,"")),o=fe(this.weekdays(n,"")),i.push(a),s.push(r),c.push(o),d.push(a),d.push(r),d.push(o);i.sort(e),s.sort(e),c.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ke(e,t){x(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Je),x("k",["kk",2],0,(function(){return this.hours()||24})),x("hmm",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+S(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),R("hour","h"),I("hour",13),me("a",Ze),me("A",Ze),me("H",ae),me("h",ae),me("k",ae),me("HH",ae,$),me("hh",ae,$),me("kk",ae,$),me("hmm",re),me("hmmss",oe),me("Hmm",re),me("Hmmss",oe),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var a=V(e);t[3]=24===a?0:a})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=V(e),_(n).bigHour=!0})),ye("hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a)),_(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(r)),_(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a))})),ye("Hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(r))}));var Qe,$e=G("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ge,monthsShort:ze,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Pe,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function at(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n0;){if(a=ot(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&at(r,n)>=t-1)break;t--}o++}return Qe}(e)}function dt(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ve(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,_(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),_(e)._overflowWeeks&&-1===t&&(t=7),_(e)._overflowWeekday&&-1===t&&(t=8),_(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,ft=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ht={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,a,r,o,i,s=e._i,c=ut.exec(s)||lt.exec(s),d=pt.length,u=mt.length;if(c){for(_(e).iso=!0,t=0,n=d;t7)&&(c=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,d=Ce(Ot(),o,i),n=At(t.gg,e._a[0],d.year),a=At(t.w,d.week),null!=t.d?((r=t.d)<0||r>6)&&(c=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(c=!0)):r=o),a<1||a>je(n,o,i)?_(e)._overflowWeeks=!0:null!=c?_(e)._overflowWeekday=!0:(s=He(n,a,r,o,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=At(e._a[0],a[0]),(e._dayOfYear>Ne(i)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=Ee(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ee:qe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(_(e).weekdayMismatch=!0)}}function gt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],_(e).empty=!0;var t,n,a,o,i,s,c,d=""+e._i,u=d.length,l=0;for(c=(a=C(e._f,e._locale).match(N)||[]).length,t=0;t0&&_(e).unusedInput.push(i),d=d.slice(d.indexOf(n)+n.length),l+=n.length),E[o]?(n?_(e).empty=!1:_(e).unusedTokens.push(o),Ae(o,n,e)):e._strict&&!n&&_(e).unusedTokens.push(o);_(e).charsLeftOver=u-l,d.length>0&&_(e).unusedInput.push(d),e._a[3]<=12&&!0===_(e).bigHour&&e._a[3]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=_(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),vt(e),dt(e)}else Lt(e);else bt(e)}function zt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new A(dt(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,a,r,o,i,s=!1,c=e._f.length;if(0===c)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:h()}));function wt(e,t){var n,a;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],a=1;a=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],a=[],r=[],o=[],i=this.eras();for(e=0,t=i.length;e(o=je(e,a,r))&&(t=o),un.call(this,e,t,n,a,r))}function un(e,t,n,a,r){var o=He(e,t,n,a,r),i=Ee(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),me("N",on),me("NN",on),me("NNN",on),me("NNNN",(function(e,t){return t.erasNameRegex(e)})),me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var r=n._locale.erasParse(e,a,n._strict);r?_(n).era=r:_(n).invalidEra=e})),me("y",de),me("yy",de),me("yyy",de),me("yyyy",de),me("yo",(function(e,t){return t._eraYearOrdinalRegex||de})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,a){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),me("G",ue),me("g",ue),me("GG",ae,$),me("gg",ae,$),me("GGGG",se,te),me("gggg",se,te),me("GGGGG",ce,ne),me("ggggg",ce,ne),Le(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=V(e)})),Le(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),x("Q",0,"Qo","quarter"),R("quarter","Q"),I("quarter",7),me("Q",Q),ye("Q",(function(e,t){t[1]=3*(V(e)-1)})),x("D",["DD",2],"Do","date"),R("date","D"),I("date",9),me("D",ae),me("DD",ae,$),me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=V(e.match(ae)[0])}));var ln=G("Date",!0);x("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),I("dayOfYear",4),me("DDD",ie),me("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),x("m",["mm",2],0,"minute"),R("minute","m"),I("minute",14),me("m",ae),me("mm",ae,$),ye(["m","mm"],4);var Mn=G("Minutes",!1);x("s",["ss",2],0,"second"),R("second","s"),I("second",15),me("s",ae),me("ss",ae,$),ye(["s","ss"],5);var pn,mn,_n=G("Seconds",!1);for(x("S",0,0,(function(){return~~(this.millisecond()/100)})),x(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),x(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),x(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),x(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),x(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),x(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),I("millisecond",16),me("S",ie,Q),me("SS",ie,$),me("SSS",ie,ee),pn="SSSS";pn.length<=9;pn+="S")me(pn,de);function fn(e,t){t[6]=V(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,fn);mn=G("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var hn=A.prototype;function bn(e){return e}hn.add=Vt,hn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),a=Ht(n,this).startOf("day"),o=r.calendarFormat(this,a)||"sameElse",i=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Ot(n)))},hn.clone=function(){return new A(this)},hn.diff=function(e,t,n){var a,r,o;if(!this.isValid())return NaN;if(!(a=Ht(e,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=Qt(this,a)/12;break;case"month":o=Qt(this,a);break;case"quarter":o=Qt(this,a)/3;break;case"second":o=(this-a)/1e3;break;case"minute":o=(this-a)/6e4;break;case"hour":o=(this-a)/36e5;break;case"day":o=(this-a-r)/864e5;break;case"week":o=(this-a-r)/6048e5;break;default:o=this-a}return n?o:U(o)},hn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:an,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},hn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)},hn.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ot(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.fromNow=function(e){return this.from(Ot(),e)},hn.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ot(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.toNow=function(e){return this.to(Ot(),e)},hn.get=function(e){return D(this[e=B(e)])?this[e]():this},hn.invalidAt=function(){return _(this).overflow},hn.isAfter=function(e,t){var n=v(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a="moment",r="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(hn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),hn.toJSON=function(){return this.isValid()?this.toISOString():null},hn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hn.unix=function(){return Math.floor(this.valueOf()/1e3)},hn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hn.eraName=function(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hn.isLocal=function(){return!!this.isValid()&&!this._isUTC},hn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hn.isUtc=jt,hn.isUTC=jt,hn.zoneAbbr=function(){return this._isUTC?"UTC":""},hn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hn.dates=z("dates accessor is deprecated. Use date instead.",ln),hn.months=z("months accessor is deprecated. Use month instead",Ye),hn.years=z("years accessor is deprecated. Use year instead",We),hn.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),hn.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return L(t,this),(t=zt(t))._a?(e=t._isUTC?m(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var a,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(a=0;a0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=Y.prototype;function Ln(e,t,n,a){var r=ct(),o=m().set(a,t);return r[n](o,e)}function An(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ln(e,t,n,"month");var a,r=[];for(a=0;a<12;a++)r[a]=Ln(e,a,n,"month");return r}function vn(e,t,n,a){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,o=ct(),i=e?o._week.dow:0,s=[];if(null!=n)return Ln(t,(n+i)%7,a,"day");for(r=0;r<7;r++)s[r]=Ln(t,(r+i)%7,a,"day");return s}yn.calendar=function(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return D(a)?a.call(t,n):a},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=bn,yn.postformat=bn,yn.relativeTime=function(e,t,n,a){var r=this._relativeTime[n];return D(r)?r(e,t,n,a):r.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,a,o,i=this._eras||ct("en")._eras;for(n=0,a=i.length;n=0)return c[a]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var a,r,o;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=m([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Se.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Se.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ce(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Re(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Re(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Re(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var a,r,o;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=m([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=z("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=z("moment.langData is deprecated. Use moment.localeData instead.",ct);var gn=Math.abs;function zn(e,t,n,a){var r=Xt(t,n);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function On(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var wn=Dn("ms"),Yn=Dn("s"),Sn=Dn("m"),Nn=Dn("h"),Wn=Dn("d"),qn=Dn("w"),En=Dn("M"),xn=Dn("Q"),Hn=Dn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=Cn("milliseconds"),Rn=Cn("seconds"),Bn=Cn("minutes"),Xn=Cn("hours"),Pn=Cn("days"),In=Cn("months"),Fn=Cn("years"),Un=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,a,r){return r.relativeTime(t||1,!!n,e,a)}var Jn=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,r,o,i,s,c=Jn(this._milliseconds)/1e3,d=Jn(this._days),u=Jn(this._months),l=this.asSeconds();return l?(e=U(c/60),t=U(e/60),c%=60,e%=60,n=U(u/12),u%=12,a=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",o=Kn(this._months)!==Kn(l)?"-":"",i=Kn(this._days)!==Kn(l)?"-":"",s=Kn(this._milliseconds)!==Kn(l)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(d?i+d+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+a+"S":"")):"P0D"}var Qn=St.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Qn.add=function(e,t){return zn(this,e,t,1)},Qn.subtract=function(e,t){return zn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+On(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=wn,Qn.asSeconds=Yn,Qn.asMinutes=Sn,Qn.asHours=Nn,Qn.asDays=Wn,Qn.asWeeks=qn,Qn.asMonths=En,Qn.asQuarters=xn,Qn.asYears=Hn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Qn._bubble=function(){var e,t,n,a,r,o=this._milliseconds,i=this._days,s=this._months,c=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*Tn(kn(s)+i),i=0,s=0),c.milliseconds=o%1e3,e=U(o/1e3),c.seconds=e%60,t=U(e/60),c.minutes=t%60,n=U(t/60),c.hours=n%24,i+=U(n/24),r=U(On(i)),s+=r,i-=Tn(kn(r)),a=U(s/12),s%=12,c.days=i,c.months=s,c.years=a,this},Qn.clone=function(){return Xt(this)},Qn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=jn,Qn.seconds=Rn,Qn.minutes=Bn,Qn.hours=Xn,Qn.days=Pn,Qn.weeks=function(){return U(this.days()/7)},Qn.months=In,Qn.years=Fn,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,a,r=!1,o=Vn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),a=function(e,t,n,a){var r=Xt(e).abs(),o=Un(r.as("s")),i=Un(r.as("m")),s=Un(r.as("h")),c=Un(r.as("d")),d=Un(r.as("M")),u=Un(r.as("w")),l=Un(r.as("y")),M=o<=n.ss&&["s",o]||o0,M[4]=a,Gn.apply(null,M)}(this,!r,o,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)},Qn.toISOString=Zn,Qn.toString=Zn,Qn.toJSON=Zn,Qn.locale=$t,Qn.localeData=tn,Qn.toIsoString=z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Qn.lang=en,x("X",0,0,"unix"),x("x",0,0,"valueOf"),me("x",ue),me("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(V(e))})), //! moment.js -r.version="2.29.1",t=Ot,r.fn=hn,r.min=function(){var e=[].slice.call(arguments,0);return wt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return wt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=m,r.unix=function(e){return Ot(1e3*e)},r.months=function(e,t){return An(e,t,"months")},r.isDate=l,r.locale=it,r.invalid=h,r.duration=Xt,r.isMoment=v,r.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},r.parseZone=function(){return Ot.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Nt,r.monthsShort=function(e,t){return An(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},r.defineLocale=st,r.updateLocale=function(e,t){if(null!=t){var n,a,r=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(w(tt[e]._config,t)):(null!=(a=ot(e))&&(r=a._config),t=w(r,t),null==a&&(t.abbr=e),(n=new Y(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return T(tt)},r.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=hn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n("guR3")(e))},qZkY:function(e,t,n){!function(e){"use strict"; +r.version="2.29.2",t=Ot,r.fn=hn,r.min=function(){var e=[].slice.call(arguments,0);return wt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return wt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=m,r.unix=function(e){return Ot(1e3*e)},r.months=function(e,t){return An(e,t,"months")},r.isDate=l,r.locale=it,r.invalid=h,r.duration=Xt,r.isMoment=v,r.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},r.parseZone=function(){return Ot.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Nt,r.monthsShort=function(e,t){return An(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},r.defineLocale=st,r.updateLocale=function(e,t){if(null!=t){var n,a,r=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(w(tt[e]._config,t)):(null!=(a=ot(e))&&(r=a._config),t=w(r,t),null==a&&(t.abbr=e),(n=new Y(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return T(tt)},r.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=hn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n("guR3")(e))},qZkY:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("qW9H"))},qZv2:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration @@ -276,7 +276,7 @@ e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_Augus //! moment.js locale configuration function t(e,t,n){var a,r;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(a=+e,r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),a%10==1&&a%100!=11?r[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?r[1]:r[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("qW9H"))},woaT:function(e,t,n){var a={"./af":"ONZI","./af.js":"ONZI","./ar":"7wMQ","./ar-dz":"YWeR","./ar-dz.js":"YWeR","./ar-kw":"Vx+T","./ar-kw.js":"Vx+T","./ar-ly":"LhBi","./ar-ly.js":"LhBi","./ar-ma":"SURw","./ar-ma.js":"SURw","./ar-sa":"UPIY","./ar-sa.js":"UPIY","./ar-tn":"fho0","./ar-tn.js":"fho0","./ar.js":"7wMQ","./az":"t5AR","./az.js":"t5AR","./be":"wiRk","./be.js":"wiRk","./bg":"1H0A","./bg.js":"1H0A","./bm":"QeJG","./bm.js":"QeJG","./bn":"SDMJ","./bn-bd":"AU+G","./bn-bd.js":"AU+G","./bn.js":"SDMJ","./bo":"urNT","./bo.js":"urNT","./br":"TcfT","./br.js":"TcfT","./bs":"WV5Q","./bs.js":"WV5Q","./ca":"/A4F","./ca.js":"/A4F","./cs":"S9OP","./cs.js":"S9OP","./cv":"nGQU","./cv.js":"nGQU","./cy":"gXrI","./cy.js":"gXrI","./da":"O/XI","./da.js":"O/XI","./de":"4n1T","./de-at":"RaXM","./de-at.js":"RaXM","./de-ch":"CyLz","./de-ch.js":"CyLz","./de.js":"4n1T","./dv":"pGz2","./dv.js":"pGz2","./el":"qp4M","./el.js":"qp4M","./en-au":"rQsw","./en-au.js":"rQsw","./en-ca":"Q+UV","./en-ca.js":"Q+UV","./en-gb":"b8Yt","./en-gb.js":"b8Yt","./en-ie":"TOvf","./en-ie.js":"TOvf","./en-il":"wgQN","./en-il.js":"wgQN","./en-in":"4bPu","./en-in.js":"4bPu","./en-nz":"hN3A","./en-nz.js":"hN3A","./en-sg":"FpWG","./en-sg.js":"FpWG","./eo":"cuKB","./eo.js":"cuKB","./es":"+5wW","./es-do":"r0Ch","./es-do.js":"r0Ch","./es-mx":"wWBT","./es-mx.js":"wWBT","./es-us":"J+CY","./es-us.js":"J+CY","./es.js":"+5wW","./et":"X+/K","./et.js":"X+/K","./eu":"oIEf","./eu.js":"oIEf","./fa":"gytt","./fa.js":"gytt","./fi":"4puI","./fi.js":"4puI","./fil":"OMU7","./fil.js":"OMU7","./fo":"w8Y/","./fo.js":"w8Y/","./fr":"qfKt","./fr-ca":"hi1e","./fr-ca.js":"hi1e","./fr-ch":"y9jn","./fr-ch.js":"y9jn","./fr.js":"qfKt","./fy":"kO+O","./fy.js":"kO+O","./ga":"s5UX","./ga.js":"s5UX","./gd":"x9KG","./gd.js":"x9KG","./gl":"oH1e","./gl.js":"oH1e","./gom-deva":"nmio","./gom-deva.js":"nmio","./gom-latn":"cKVo","./gom-latn.js":"cKVo","./gu":"xJBA","./gu.js":"xJBA","./he":"bP9n","./he.js":"bP9n","./hi":"fnKl","./hi.js":"fnKl","./hr":"beYU","./hr.js":"beYU","./hu":"bh8R","./hu.js":"bh8R","./hy-am":"8MIC","./hy-am.js":"8MIC","./id":"Y35z","./id.js":"Y35z","./is":"Dusa","./is.js":"Dusa","./it":"aUrm","./it-ch":"PHvC","./it-ch.js":"PHvC","./it.js":"aUrm","./ja":"WS5z","./ja.js":"WS5z","./jv":"3rcl","./jv.js":"3rcl","./ka":"skIL","./ka.js":"skIL","./kk":"iJoN","./kk.js":"iJoN","./km":"HBDt","./km.js":"HBDt","./kn":"yGRW","./kn.js":"yGRW","./ko":"MYBb","./ko.js":"MYBb","./ku":"otBn","./ku.js":"otBn","./ky":"md+Q","./ky.js":"md+Q","./lb":"qZv2","./lb.js":"qZv2","./lo":"uDYm","./lo.js":"uDYm","./lt":"cS6Z","./lt.js":"cS6Z","./lv":"GZCy","./lv.js":"GZCy","./me":"jmSm","./me.js":"jmSm","./mi":"cu/R","./mi.js":"cu/R","./mk":"nTVo","./mk.js":"nTVo","./ml":"qfa3","./ml.js":"qfa3","./mn":"kNUV","./mn.js":"kNUV","./mr":"3U8g","./mr.js":"3U8g","./ms":"Pyfh","./ms-my":"nkld","./ms-my.js":"nkld","./ms.js":"Pyfh","./mt":"qZkY","./mt.js":"qZkY","./my":"o12V","./my.js":"o12V","./nb":"rzV8","./nb.js":"rzV8","./ne":"5ilX","./ne.js":"5ilX","./nl":"rhw0","./nl-be":"Z/Sf","./nl-be.js":"Z/Sf","./nl.js":"rhw0","./nn":"by7L","./nn.js":"by7L","./oc-lnc":"AUWK","./oc-lnc.js":"AUWK","./pa-in":"mUuK","./pa-in.js":"mUuK","./pl":"VUOs","./pl.js":"VUOs","./pt":"phIr","./pt-br":"el/s","./pt-br.js":"el/s","./pt.js":"phIr","./ro":"XNRy","./ro.js":"XNRy","./ru":"OIgP","./ru.js":"OIgP","./sd":"VroL","./sd.js":"VroL","./se":"PJYj","./se.js":"PJYj","./si":"+vU2","./si.js":"+vU2","./sk":"kzla","./sk.js":"kzla","./sl":"0Qj1","./sl.js":"0Qj1","./sq":"BZqS","./sq.js":"BZqS","./sr":"zGRm","./sr-cyrl":"m050","./sr-cyrl.js":"m050","./sr.js":"zGRm","./ss":"klze","./ss.js":"klze","./sv":"TPmH","./sv.js":"TPmH","./sw":"g4mW","./sw.js":"g4mW","./ta":"jB3q","./ta.js":"jB3q","./te":"DGOb","./te.js":"DGOb","./tet":"+BP5","./tet.js":"+BP5","./tg":"lqIK","./tg.js":"lqIK","./th":"0iFv","./th.js":"0iFv","./tk":"ommn","./tk.js":"ommn","./tl-ph":"qw7e","./tl-ph.js":"qw7e","./tlh":"bw+2","./tlh.js":"bw+2","./tr":"11ZM","./tr.js":"11ZM","./tzl":"xrDl","./tzl.js":"xrDl","./tzm":"p3cm","./tzm-latn":"dtwZ","./tzm-latn.js":"dtwZ","./tzm.js":"p3cm","./ug-cn":"oBS5","./ug-cn.js":"oBS5","./uk":"TWgZ","./uk.js":"TWgZ","./ur":"PpWh","./ur.js":"PpWh","./uz":"y7BX","./uz-latn":"TBMd","./uz-latn.js":"TBMd","./uz.js":"y7BX","./vi":"xave","./vi.js":"xave","./x-pseudo":"+F0M","./x-pseudo.js":"+F0M","./yo":"fLz6","./yo.js":"fLz6","./zh-cn":"FMFT","./zh-cn.js":"FMFT","./zh-hk":"sDXC","./zh-hk.js":"sDXC","./zh-mo":"K3oU","./zh-mo.js":"K3oU","./zh-tw":"5vPG","./zh-tw.js":"5vPG"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id="woaT"},x9KG:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("qW9H"))},xG4u:function(e,t,n){"use strict";n.d(t,"a",(function(){return Oe}));var a,r,o,i,s,c,d,u=n("Rpw/"),l={},M=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function m(e,t){for(var n in t)e[n]=t[n];return e}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?a.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return h(e,s,r,o,null)}function h(e,t,n,a,i){var s={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++o:i};return null==i&&null!=r.vnode&&r.vnode(s),s}function b(){return{current:null}}function y(e){return e.children}function L(e,t){this.props=e,this.context=t}function A(e,t){if(null==t)return e.__?A(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?h(_.type,_.props,_.key,null,_.__v):_)){if(_.__=n,_.__b=n.__b+1,null===(m=v[u])||m&&_.key==m.key&&_.type===m.type)v[u]=void 0;else for(p=0;p3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),j(f(de,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function le(e,t){return f(ue,{__v:e,i:t})}(se.prototype=new L).__e=function(e){var t=this,n=ie(t.__v),a=t.o.get(e);return a[0]++,function(r){var o=function(){t.props.revealOrder?(a.push(r),ce(t,e,a)):r()};n?n(o):o()}},se.prototype.render=function(e){this.u=null,this.o=new Map;var t=k(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},se.prototype.componentDidUpdate=se.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ce(e,n,t)}))};var Me="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,me="undefined"!=typeof document,_e=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(L.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var fe=r.event;function he(){}function be(){return this.cancelBubble}function ye(){return this.defaultPrevented}r.event=function(e){return fe&&(e=fe(e)),e.persist=he,e.isPropagationStopped=be,e.isDefaultPrevented=ye,e.nativeEvent=e};var Le={configurable:!0,get:function(){return this.class}},Ae=r.vnode;r.vnode=function(e){var t=e.type,n=e.props,a=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var o in a={},n){var i=n[o];me&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!_e(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&pe.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),a[o]=i)}"select"==t&&a.multiple&&Array.isArray(a.value)&&(a.value=k(n.children).forEach((function(e){e.props.selected=-1!=a.value.indexOf(e.props.value)}))),"select"==t&&null!=a.defaultValue&&(a.value=k(n.children).forEach((function(e){e.props.selected=a.multiple?-1!=a.defaultValue.indexOf(e.props.value):a.defaultValue==e.props.value}))),e.props=a,n.class!=n.className&&(Le.enumerable="className"in n,null!=n.className&&(a.class=n.className),Object.defineProperty(a,"className",Le))}e.$$typeof=Me,Ae&&Ae(e)};var ve=r.__r;r.__r=function(e){ve&&ve(e),e.__c};var ge="undefined"!=typeof globalThis?globalThis:window;ge.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):ge.FullCalendarVDom={Component:L,createElement:f,render:j,createRef:b,Fragment:y,createContext:function(e){var t=R(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,a=n.apply(this,arguments);if(t){var r=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&r.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}}return a},t},createPortal:le,flushToDom:function(){var e=r.debounceRendering,t=[];r.debounceRendering=function(e){t.push(e)},j(f(ze,{}),document.createElement("div"));for(;t.length;)t.shift()();r.debounceRendering=e},unmountComponentAtNode:function(e){j(null,e)}};var ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.render=function(){return f("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(L);var Te=n("CtUX"),Oe=function(e){function t(t,n){void 0===n&&(n={});var a=e.call(this)||this;return a.isRendering=!1,a.isRendered=!1,a.currentClassNames=[],a.customContentRenderId=0,a.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":a.renderRunner.tryDrain()}},a.handleData=function(e){a.currentData=e,a.renderRunner.request(e.calendarOptions.rerenderDelay)},a.handleRenderRequest=function(){if(a.isRendering){a.isRendered=!0;var e=a.currentData;Object(Te.xb)(Object(Te.V)(Te.f,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,r,o){return a.setClassNames(t),a.setHeight(n),Object(Te.V)(Te.g.Provider,{value:a.customContentRenderId},Object(Te.V)(Te.d,Object(u.a)({isHeightAuto:r,forPrint:o},e)))})),a.el)}else a.isRendered&&(a.isRendered=!1,Object(Te.Eb)(a.el),a.setClassNames([]),a.setHeight(""));Object(Te.bb)()},a.el=t,a.renderRunner=new Te.o(a.handleRenderRequest),new Te.e({optionOverrides:n,calendarApi:a,onAction:a.handleAction,onData:a.handleData}),a}return Object(u.b)(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){e.prototype.updateSize.call(this),Object(Te.bb)()},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Object(Te.rb)(e,this.currentClassNames)){for(var t=this.el.classList,n=0,a=this.currentClassNames;n2&&(s.children=arguments.length>3?a.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return h(e,s,r,o,null)}function h(e,t,n,a,i){var s={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++o:i};return null==i&&null!=r.vnode&&r.vnode(s),s}function b(){return{current:null}}function y(e){return e.children}function L(e,t){this.props=e,this.context=t}function A(e,t){if(null==t)return e.__?A(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?h(_.type,_.props,_.key,null,_.__v):_)){if(_.__=n,_.__b=n.__b+1,null===(m=v[u])||m&&_.key==m.key&&_.type===m.type)v[u]=void 0;else for(p=0;p3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),j(f(de,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function le(e,t){return f(ue,{__v:e,i:t})}(se.prototype=new L).__e=function(e){var t=this,n=ie(t.__v),a=t.o.get(e);return a[0]++,function(r){var o=function(){t.props.revealOrder?(a.push(r),ce(t,e,a)):r()};n?n(o):o()}},se.prototype.render=function(e){this.u=null,this.o=new Map;var t=k(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},se.prototype.componentDidUpdate=se.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ce(e,n,t)}))};var Me="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,me="undefined"!=typeof document,_e=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(L.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var fe=r.event;function he(){}function be(){return this.cancelBubble}function ye(){return this.defaultPrevented}r.event=function(e){return fe&&(e=fe(e)),e.persist=he,e.isPropagationStopped=be,e.isDefaultPrevented=ye,e.nativeEvent=e};var Le={configurable:!0,get:function(){return this.class}},Ae=r.vnode;r.vnode=function(e){var t=e.type,n=e.props,a=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var o in a={},n){var i=n[o];me&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!_e(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():r&&pe.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),a[o]=i)}"select"==t&&a.multiple&&Array.isArray(a.value)&&(a.value=k(n.children).forEach((function(e){e.props.selected=-1!=a.value.indexOf(e.props.value)}))),"select"==t&&null!=a.defaultValue&&(a.value=k(n.children).forEach((function(e){e.props.selected=a.multiple?-1!=a.defaultValue.indexOf(e.props.value):a.defaultValue==e.props.value}))),e.props=a,n.class!=n.className&&(Le.enumerable="className"in n,null!=n.className&&(a.class=n.className),Object.defineProperty(a,"className",Le))}e.$$typeof=Me,Ae&&Ae(e)};var ve=r.__r;r.__r=function(e){ve&&ve(e),e.__c};var ge="undefined"!=typeof globalThis?globalThis:window;ge.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):ge.FullCalendarVDom={Component:L,createElement:f,render:j,createRef:b,Fragment:y,createContext:function(e){var t=R(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,a=n.apply(this,arguments);if(t){var r=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&r.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}}return a},t},createPortal:le,flushToDom:function(){var e=r.debounceRendering,t=[];r.debounceRendering=function(e){t.push(e)},j(f(ze,{}),document.createElement("div"));for(;t.length;)t.shift()();r.debounceRendering=e},unmountComponentAtNode:function(e){j(null,e)}};var ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.render=function(){return f("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(L);var Te=n("CtUX"),Oe=function(e){function t(t,n){void 0===n&&(n={});var a=e.call(this)||this;return a.isRendering=!1,a.isRendered=!1,a.currentClassNames=[],a.customContentRenderId=0,a.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":a.renderRunner.tryDrain()}},a.handleData=function(e){a.currentData=e,a.renderRunner.request(e.calendarOptions.rerenderDelay)},a.handleRenderRequest=function(){if(a.isRendering){a.isRendered=!0;var e=a.currentData;Object(Te.xb)(Object(Te.V)(Te.f,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,r,o){return a.setClassNames(t),a.setHeight(n),Object(Te.V)(Te.g.Provider,{value:a.customContentRenderId},Object(Te.V)(Te.d,Object(u.a)({isHeightAuto:r,forPrint:o},e)))})),a.el)}else a.isRendered&&(a.isRendered=!1,Object(Te.Eb)(a.el),a.setClassNames([]),a.setHeight(""));Object(Te.bb)()},a.el=t,a.renderRunner=new Te.o(a.handleRenderRequest),new Te.e({optionOverrides:n,calendarApi:a,onAction:a.handleAction,onData:a.handleData}),a}return Object(u.b)(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){e.prototype.updateSize.call(this),Object(Te.bb)()},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Object(Te.rb)(e,this.currentClassNames)){for(var t=this.el.classList,n=0,a=this.currentClassNames;n=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("qW9H"))},zGRm:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("qW9H"))}}); \ No newline at end of file +var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,a,r){var o=t.words[a];if(1===a.length)return"y"===a&&n?"jedna godina":r||n?o[0]:o[1];const i=t.correctGrammaticalCase(e,o);return"yy"===a&&n&&"godinu"===i?e+" godina":e+" "+i}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("qW9H"))}}); \ No newline at end of file diff --git a/src/Resources/views/SyliusShopBundle/Common/Order/_addresses.html.twig b/src/Resources/views/SyliusShopBundle/Common/Order/_addresses.html.twig index 6d89aa0..08a22f4 100644 --- a/src/Resources/views/SyliusShopBundle/Common/Order/_addresses.html.twig +++ b/src/Resources/views/SyliusShopBundle/Common/Order/_addresses.html.twig @@ -17,12 +17,3 @@ {% endif %} -{% if sylius_is_billing_address_missing(order) %} -
- -
-
{{ 'sylius.pay_pal.missing_billing_address_header'|trans }}
-

{{ 'sylius.pay_pal.missing_billing_address_content'|trans }}

-
-
-{% endif %} From dc18b57aeab468d1b87680d320052332c17b42a0 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 23 Jan 2025 21:14:29 +0100 Subject: [PATCH 2/4] fix(tests): Fix PHP CS --- .php-cs-fixer.dist.php | 29 +++++++++++-------- src/Command/RemoveExpiredSlotsCommand.php | 2 +- src/Controller/SlotController.php | 6 ++-- src/Entity/ShippingSlotConfig.php | 4 +-- src/Entity/Slot.php | 2 +- src/Form/Type/ShippingSlotConfigsByMethod.php | 3 +- src/Generator/SlotGenerator.php | 8 ++--- 7 files changed, 29 insertions(+), 25 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 65ed83a..e992e4a 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -49,10 +49,8 @@ 'binary_operator_spaces' => true, 'blank_line_after_opening_tag' => true, 'blank_line_after_namespace' => true, + 'blank_lines_before_namespace' => true, 'blank_line_before_statement' => true, - 'braces' => [ - 'allow_single_line_closure' => true, - ], 'cast_spaces' => true, 'class_attributes_separation' => true, 'class_definition' => [ @@ -62,7 +60,7 @@ 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'comment_to_phpdoc' => true, - 'compact_nullable_typehint' => true, + 'compact_nullable_type_declaration' => true, 'concat_space' => [ 'spacing' => 'one', ], @@ -88,8 +86,12 @@ 'fully_qualified_strict_types' => true, 'function_declaration' => true, 'function_to_constant' => true, - 'function_typehint_space' => true, 'general_phpdoc_tag_rename' => true, + 'global_namespace_import' => [ + 'import_classes' => true, + 'import_constants' => false, + 'import_functions' => false, + ], 'header_comment' => [ 'header' => $header, 'location' => 'after_open', @@ -110,6 +112,7 @@ 'lowercase_static_reference' => true, 'magic_constant_casing' => true, 'method_argument_space' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -117,7 +120,7 @@ ], 'native_constant_invocation' => true, 'native_function_casing' => true, - 'new_with_braces' => true, + 'new_with_parentheses' => true, 'no_alias_functions' => true, 'no_alternative_syntax' => true, 'no_blank_lines_after_class_opening' => true, @@ -156,27 +159,27 @@ 'no_short_bool_cast' => true, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, - 'no_spaces_inside_parenthesis' => true, + 'spaces_inside_parentheses' => true, 'no_superfluous_elseif' => true, 'no_superfluous_phpdoc_tags' => [ 'allow_mixed' => true, ], 'no_unset_cast' => true, 'no_unneeded_control_parentheses' => true, - 'no_unneeded_curly_braces' => true, + 'no_unneeded_braces' => true, 'no_unneeded_final_method' => true, 'no_unset_on_property' => true, 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, + 'no_trailing_comma_in_singleline' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'non_printable_character' => true, 'normalize_index_brace' => true, + 'nullable_type_declaration_for_default_null_value' => false, 'object_operator_without_whitespace' => true, 'ordered_imports' => [ 'imports_order' => [ @@ -211,7 +214,9 @@ 'phpdoc_order' => true, 'phpdoc_return_self_reference' => true, 'phpdoc_scalar' => true, - 'phpdoc_separation' => true, + 'phpdoc_separation' => ['groups' => [ + ['ORM\\*'], ['Assert\\*'], + ]], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_tag_type' => true, 'phpdoc_to_comment' => false, @@ -231,7 +236,6 @@ 'self_accessor' => true, 'short_scalar_cast' => true, 'single_blank_line_at_eof' => true, - 'single_blank_line_before_namespace' => true, 'single_class_element_per_statement' => true, 'single_import_per_statement' => true, 'single_line_after_imports' => true, @@ -248,6 +252,7 @@ 'elements' => ['arrays'], ], 'trim_array_spaces' => true, + 'type_declaration_spaces' => true, 'unary_operator_spaces' => true, 'visibility_required' => [ 'elements' => [ diff --git a/src/Command/RemoveExpiredSlotsCommand.php b/src/Command/RemoveExpiredSlotsCommand.php index c471bc4..461dee3 100644 --- a/src/Command/RemoveExpiredSlotsCommand.php +++ b/src/Command/RemoveExpiredSlotsCommand.php @@ -48,7 +48,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { /** @var string $expirationPeriod */ $expirationPeriod = $this->parameterBag->get('monsieurbiz_sylius_shipping_slot.slot_expiration_period'); - $output->writeln(sprintf( + $output->writeln(\sprintf( 'Command will remove slots from cart that have been idle for %s.', $expirationPeriod )); diff --git a/src/Controller/SlotController.php b/src/Controller/SlotController.php index e2c7d0b..84f08a4 100644 --- a/src/Controller/SlotController.php +++ b/src/Controller/SlotController.php @@ -44,7 +44,7 @@ public function initAction(string $code, ?int $shippingSlotConfig): Response /** @var ShippingMethodInterface|null $shippingMethod */ $shippingMethod = $this->shippingMethodRepository->findOneBy(['code' => $code]); if (null === $shippingMethod) { - throw $this->createNotFoundException(sprintf('Shipping method "%s" not found', $code)); + throw $this->createNotFoundException(\sprintf('Shipping method "%s" not found', $code)); } // No need to load calendar if shipping method has no slot configuration @@ -65,12 +65,12 @@ public function listAction(string $code, string $fromDate, string $toDate, ?int /** @var ShippingMethodInterface|null $shippingMethod */ $shippingMethod = $this->shippingMethodRepository->findOneBy(['code' => $code]); if (null === $shippingMethod) { - throw $this->createNotFoundException(sprintf('Shipping method "%s" not found', $code)); + throw $this->createNotFoundException(\sprintf('Shipping method "%s" not found', $code)); } // Shipping method not compatible with shipping slots if (null === ($shippingSlotConfig = $this->getShippingSlotConfig($shippingMethod, $shippingSlotConfig))) { - throw $this->createNotFoundException(sprintf('Shipping method "%s" is not compatible with shipping slots', $code)); + throw $this->createNotFoundException(\sprintf('Shipping method "%s" is not compatible with shipping slots', $code)); } return new JsonResponse($this->slotGenerator->generateCalendarEvents( diff --git a/src/Entity/ShippingSlotConfig.php b/src/Entity/ShippingSlotConfig.php index 6edcdf3..98d08aa 100644 --- a/src/Entity/ShippingSlotConfig.php +++ b/src/Entity/ShippingSlotConfig.php @@ -154,7 +154,7 @@ public function getRecurrences( } $minDate = (new DateTime()) - ->add(new DateInterval(sprintf('PT%dM', $slotDelay))) + ->add(new DateInterval(\sprintf('PT%dM', $slotDelay))) ->setTimezone(new DateTimeZone($this->getTimezone() ?? 'UTC')) ; @@ -198,7 +198,7 @@ private function rruleToRecurrences(Rrule $rrule, ?ConstraintInterface $constrai ->transform($rrule, $constraint) ->map(function (Recurrence $recurrence) { // Update end date with the slot duration on each recurrence - $recurrence->setEnd($recurrence->getEnd()->add(new DateInterval(sprintf('PT%dM', $this->getDurationRange())))); + $recurrence->setEnd($recurrence->getEnd()->add(new DateInterval(\sprintf('PT%dM', $this->getDurationRange())))); return $recurrence; }) diff --git a/src/Entity/Slot.php b/src/Entity/Slot.php index eb7fbf4..aa32ae0 100644 --- a/src/Entity/Slot.php +++ b/src/Entity/Slot.php @@ -101,7 +101,7 @@ public function getSlotDelay(): int public function isValid(): bool { - $minDate = (new DateTime())->add(new DateInterval(sprintf('PT%dM', $this->getSlotDelay()))); // Add minutes delay + $minDate = (new DateTime())->add(new DateInterval(\sprintf('PT%dM', $this->getSlotDelay()))); // Add minutes delay // Too late the slot is not valid anymore if ($this->getTimestamp() < $minDate) { diff --git a/src/Form/Type/ShippingSlotConfigsByMethod.php b/src/Form/Type/ShippingSlotConfigsByMethod.php index 5ceb648..edaaac2 100644 --- a/src/Form/Type/ShippingSlotConfigsByMethod.php +++ b/src/Form/Type/ShippingSlotConfigsByMethod.php @@ -87,7 +87,6 @@ private function isShippingSlotMethod(ShippingMethodInterface $shippingMethod): { return null !== $shippingMethod->getCode() && $shippingMethod instanceof MonsieurBizShippingMethodInterface - && !$shippingMethod->getShippingSlotConfigs()->isEmpty() - ; + && !$shippingMethod->getShippingSlotConfigs()->isEmpty(); } } diff --git a/src/Generator/SlotGenerator.php b/src/Generator/SlotGenerator.php index edd13ee..846bbe6 100644 --- a/src/Generator/SlotGenerator.php +++ b/src/Generator/SlotGenerator.php @@ -83,18 +83,18 @@ public function createFromCheckout( /** @var ShipmentInterface|null $shipment */ $shipment = $shipments->get($shipmentIndex) ?? null; if (null === $shipment) { - throw new Exception(sprintf('Cannot find shipment index "%d"', $shipmentIndex)); + throw new Exception(\sprintf('Cannot find shipment index "%d"', $shipmentIndex)); } /** @var ShippingMethodInterface|null $shippingMethod */ $shippingMethod = $this->shippingMethodRepository->findOneBy(['code' => $shippingMethod]); if (null === $shippingMethod) { - throw new Exception(sprintf('Cannot find shipping method "%s"', $shippingMethod)); + throw new Exception(\sprintf('Cannot find shipping method "%s"', $shippingMethod)); } $shippingSlotConfig = $this->getShippingSlotConfig($shippingMethod, $shippingSlotConfig); if (null === $shippingSlotConfig) { - throw new Exception(sprintf('Cannot find slot configuration for shipping method "%s"', $shippingMethod->getName())); + throw new Exception(\sprintf('Cannot find slot configuration for shipping method "%s"', $shippingMethod->getName())); } $slot = $shipment->getSlot(); @@ -130,7 +130,7 @@ public function resetSlot(int $shipmentIndex): void /** @var ShipmentInterface|null $shipment */ $shipment = $shipments->get($shipmentIndex) ?? null; if (null === $shipment) { - throw new Exception(sprintf('Cannot find shipment index "%d"', $shipmentIndex)); + throw new Exception(\sprintf('Cannot find shipment index "%d"', $shipmentIndex)); } /** @var SlotInterface|null $slot */ From 612ba6087360e9d2adfcb795af110d48c4a3d026 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 23 Jan 2025 21:54:16 +0100 Subject: [PATCH 3/4] Remove loading after slot save error --- assets/js/app.js | 7 +++++++ src/Resources/public/js/shipping-slot-js.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/js/app.js b/assets/js/app.js index 4fd8562..0c0fbc7 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -139,6 +139,7 @@ global.MonsieurBizShippingSlotManager = class { if (shippingMethodInput.checked) { this.saveSlot(slot, shippingMethodInput, function () { if (this.status !== 200) { + shippingSlotManager.removeLoading(); alert(shippingSlotManager.slotSelectError); return; } @@ -212,6 +213,12 @@ global.MonsieurBizShippingSlotManager = class { } } + removeLoading() { + for (let button of this.nextStepButtons) { + button.form.classList.remove('loading'); + } + } + hideCalendars() { for (let calendarContariner of this.calendarContainers) { calendarContariner.style.display = "none"; diff --git a/src/Resources/public/js/shipping-slot-js.js b/src/Resources/public/js/shipping-slot-js.js index ca750c8..24c8e89 100644 --- a/src/Resources/public/js/shipping-slot-js.js +++ b/src/Resources/public/js/shipping-slot-js.js @@ -210,7 +210,7 @@ var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:" //! moment.js locale configuration e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("qW9H"))},nTVo:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("qW9H"))},nYYG:function(e,t,n){"use strict";var a=n("Rpw/"),r=n("qW9H"),o=n.n(r),i=(n("/mDZ"),n("CtUX")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.b)(t,e),t.prototype.offsetForArray=function(e){return o.a.tz(e,this.timeZoneName).utcOffset()},t.prototype.timestampToArray=function(e){return o.a.tz(e,this.timeZoneName).toArray()},t}(i.s),c=Object(i.X)({namedTimeZonedImpl:s});t.a=c},ng4s:function(e,t,n){"use strict";n.r(t),function(e){var t=n("xG4u"),a=n("kEfb"),r=n("iJY3"),o=n("jkVd"),i=n.n(o),s=n("nYYG");function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null;this.disableButtons();var a=this;this.initCalendarForAMethod(e.value,n,(function(){if(200===this.status){var r=JSON.parse(this.responseText);if(a.hideCalendars(),a.hideShippingSlotConfigContainers(),void 0!==r.events){var o,i=c(a.calendarContainers);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.classList.contains(e.value)&&a.initCalendar(s,r.events,r.timezone,e.value,n)}}catch(e){i.e(e)}finally{i.f()}}else t?a.resetSlot(e,(function(){a.enableButtons()})):a.enableButtons()}else a.enableButtons()}))}},{key:"selectSlot",value:function(e){this.disableButtons();var t,n=this,a=c(this.shippingMethodInputs);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.checked&&this.saveSlot(e,r,(function(){200===this.status?n.enableButtons():alert(n.slotSelectError)}))}}catch(e){a.e(e)}finally{a.f()}}},{key:"initCalendarForAMethod",value:function(e,t,n){var a=new XMLHttpRequest;a.onload=n;var r=this.initUrl.replace("__CODE__",e).replace("__CONFIG__",null!==t?t.value:"");a.open("get",r,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.send()}},{key:"listSlots",value:function(e,t,n,a,r){var o=new XMLHttpRequest;o.onload=r;var i=this.listSlotsUrl.replace("__CODE__",e).replace("__FROM__",t).replace("__TO__",n).replace("__CONFIG__",null!==a?a.value:"");o.open("get",i,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send()}},{key:"saveSlot",value:function(e,t,n){var a=this.getShippingSlotConfigSelect(t.value),r=new XMLHttpRequest;r.onload=n,r.open("post",this.saveSlotUrl,!0),r.setRequestHeader("X-Requested-With","XMLHttpRequest");var o=new FormData;o.append("event",JSON.stringify(e.event)),o.append("shippingMethod",t.value),o.append("shipmentIndex",t.getAttribute("tabIndex")),o.append("shippingSlotConfig",null!==a?a.value:""),r.send(o)}},{key:"resetSlot",value:function(e,t){var n=new XMLHttpRequest;n.onload=t,n.open("post",this.resetSlotUrl,!0),n.setRequestHeader("X-Requested-With","XMLHttpRequest");var a=new FormData;a.append("shipmentIndex",e.getAttribute("tabIndex")),n.send(a)}},{key:"disableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!0,n.form.classList.add("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"enableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!1,n.form.classList.remove("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"hideCalendars",value:function(){var e,t=c(this.calendarContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"hideShippingSlotConfigContainers",value:function(){var e,t=c(this.shippingSlotConfigContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"applySlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.gridSlotStyle.textColor,e.el.style.borderColor=this.gridSlotStyle.borderColor,e.el.style.backgroundColor=this.gridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.listSlotStyle.textColor,e.el.style.borderColor=this.listSlotStyle.borderColor,e.el.style.backgroundColor=this.listSlotStyle.backgroundColor)}},{key:"applySelectedSlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.selectedGridSlotStyle.textColor,e.el.style.borderColor=this.selectedGridSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedGridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.selectedListSlotStyle.textColor,e.el.style.borderColor=this.selectedListSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedListSlotStyle.backgroundColor)}},{key:"hideSlot",value:function(e){e.el.style.display="none"}},{key:"initCalendar",value:function(e,n,o,d,u){if(e.style.display="block",u){var l=Array.from(this.shippingSlotConfigContainers).find((function(e){return e.classList.contains(d)}));l&&(l.style.display="block")}var M=this;new t.a(e,Object.assign({timeZone:o,plugins:[a.a,r.a,s.a],locales:i.a,initialView:"timeGridWeek",contentHeight:"auto",allDaySlot:!1,headerToolbar:{left:"today prev,next",center:"title",right:"timeGridWeek,timeGridDay"},events:n,eventTextColor:this.gridSlotStyle.textColor,eventBackgroundColor:this.gridSlotStyle.backgroundColor,eventBorderColor:this.gridSlotStyle.borderColor,eventClick:function(e){M.applySelectedSlotStyle(e),null!==M.previousSlot&&null!==M.previousSlot.event&&M.previousSlot.event.start.valueOf()!==e.event.start.valueOf()&&M.applySlotStyle(M.previousSlot),M.previousSlot=e,M.selectSlot(e)},eventDidMount:function(e){null!==e.event&&!0===e.event.extendedProps.isCurrent?(M.applySelectedSlotStyle(e),M.previousSlot=e,M.enableButtons()):M.applySlotStyle(e)},datesSet:function(e){var t=this;M.disableButtons(),M.listSlots(d,e.startStr,e.endStr,u,(function(){if(200===this.status){var e,n=c(M.nextStepButtons);try{for(n.s();!(e=n.n()).done;)e.value.form.classList.remove("loading")}catch(e){n.e(e)}finally{n.f()}var a=JSON.parse(this.responseText);t.batchRendering((function(){var e,n=c(t.getEvents());try{for(n.s();!(e=n.n()).done;)e.value.remove()}catch(e){n.e(e)}finally{n.f()}var r,o=c(a);try{for(o.s();!(r=o.n()).done;){var i=r.value;t.addEvent(i)}}catch(e){o.e(e)}finally{o.f()}}))}else console.error("Error during slot list")}))}},this.fullCalendarConfig)).render()}},{key:"getShippingSlotConfigSelect",value:function(e){var t,n=c(this.shippingSlotConfigContainers);try{for(n.s();!(t=n.n()).done;){var a=t.value.querySelector(this.shippingSlotConfigSelectSelector);if(null!==a&&a.name.includes(e))return a}}catch(e){n.e(e)}finally{n.f()}return null}}])&&u(n.prototype,o),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),e}()}.call(this,n("2mad"))},nkld:function(e,t,n){!function(e){"use strict"; +e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("qW9H"))},nYYG:function(e,t,n){"use strict";var a=n("Rpw/"),r=n("qW9H"),o=n.n(r),i=(n("/mDZ"),n("CtUX")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.b)(t,e),t.prototype.offsetForArray=function(e){return o.a.tz(e,this.timeZoneName).utcOffset()},t.prototype.timestampToArray=function(e){return o.a.tz(e,this.timeZoneName).toArray()},t}(i.s),c=Object(i.X)({namedTimeZonedImpl:s});t.a=c},ng4s:function(e,t,n){"use strict";n.r(t),function(e){var t=n("xG4u"),a=n("kEfb"),r=n("iJY3"),o=n("jkVd"),i=n.n(o),s=n("nYYG");function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null;this.disableButtons();var a=this;this.initCalendarForAMethod(e.value,n,(function(){if(200===this.status){var r=JSON.parse(this.responseText);if(a.hideCalendars(),a.hideShippingSlotConfigContainers(),void 0!==r.events){var o,i=c(a.calendarContainers);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.classList.contains(e.value)&&a.initCalendar(s,r.events,r.timezone,e.value,n)}}catch(e){i.e(e)}finally{i.f()}}else t?a.resetSlot(e,(function(){a.enableButtons()})):a.enableButtons()}else a.enableButtons()}))}},{key:"selectSlot",value:function(e){this.disableButtons();var t,n=this,a=c(this.shippingMethodInputs);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.checked&&this.saveSlot(e,r,(function(){if(200!==this.status)return n.removeLoading(),void alert(n.slotSelectError);n.enableButtons()}))}}catch(e){a.e(e)}finally{a.f()}}},{key:"initCalendarForAMethod",value:function(e,t,n){var a=new XMLHttpRequest;a.onload=n;var r=this.initUrl.replace("__CODE__",e).replace("__CONFIG__",null!==t?t.value:"");a.open("get",r,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.send()}},{key:"listSlots",value:function(e,t,n,a,r){var o=new XMLHttpRequest;o.onload=r;var i=this.listSlotsUrl.replace("__CODE__",e).replace("__FROM__",t).replace("__TO__",n).replace("__CONFIG__",null!==a?a.value:"");o.open("get",i,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send()}},{key:"saveSlot",value:function(e,t,n){var a=this.getShippingSlotConfigSelect(t.value),r=new XMLHttpRequest;r.onload=n,r.open("post",this.saveSlotUrl,!0),r.setRequestHeader("X-Requested-With","XMLHttpRequest");var o=new FormData;o.append("event",JSON.stringify(e.event)),o.append("shippingMethod",t.value),o.append("shipmentIndex",t.getAttribute("tabIndex")),o.append("shippingSlotConfig",null!==a?a.value:""),r.send(o)}},{key:"resetSlot",value:function(e,t){var n=new XMLHttpRequest;n.onload=t,n.open("post",this.resetSlotUrl,!0),n.setRequestHeader("X-Requested-With","XMLHttpRequest");var a=new FormData;a.append("shipmentIndex",e.getAttribute("tabIndex")),n.send(a)}},{key:"disableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!0,n.form.classList.add("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"enableButtons",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disabled=!1,n.form.classList.remove("loading")}}catch(e){t.e(e)}finally{t.f()}}},{key:"removeLoading",value:function(){var e,t=c(this.nextStepButtons);try{for(t.s();!(e=t.n()).done;)e.value.form.classList.remove("loading")}catch(e){t.e(e)}finally{t.f()}}},{key:"hideCalendars",value:function(){var e,t=c(this.calendarContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"hideShippingSlotConfigContainers",value:function(){var e,t=c(this.shippingSlotConfigContainers);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}}},{key:"applySlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.gridSlotStyle.textColor,e.el.style.borderColor=this.gridSlotStyle.borderColor,e.el.style.backgroundColor=this.gridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.listSlotStyle.textColor,e.el.style.borderColor=this.listSlotStyle.borderColor,e.el.style.backgroundColor=this.listSlotStyle.backgroundColor)}},{key:"applySelectedSlotStyle",value:function(e){null!==e.el.querySelector(".fc-event-main")?(e.el.querySelector(".fc-event-main").style.color=this.selectedGridSlotStyle.textColor,e.el.style.borderColor=this.selectedGridSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedGridSlotStyle.backgroundColor):null!==e.el.querySelector(".fc-list-event-time")&&(e.el.querySelector(".fc-list-event-time").style.color=this.selectedListSlotStyle.textColor,e.el.style.borderColor=this.selectedListSlotStyle.borderColor,e.el.style.backgroundColor=this.selectedListSlotStyle.backgroundColor)}},{key:"hideSlot",value:function(e){e.el.style.display="none"}},{key:"initCalendar",value:function(e,n,o,d,u){if(e.style.display="block",u){var l=Array.from(this.shippingSlotConfigContainers).find((function(e){return e.classList.contains(d)}));l&&(l.style.display="block")}var M=this;new t.a(e,Object.assign({timeZone:o,plugins:[a.a,r.a,s.a],locales:i.a,initialView:"timeGridWeek",contentHeight:"auto",allDaySlot:!1,headerToolbar:{left:"today prev,next",center:"title",right:"timeGridWeek,timeGridDay"},events:n,eventTextColor:this.gridSlotStyle.textColor,eventBackgroundColor:this.gridSlotStyle.backgroundColor,eventBorderColor:this.gridSlotStyle.borderColor,eventClick:function(e){M.applySelectedSlotStyle(e),null!==M.previousSlot&&null!==M.previousSlot.event&&M.previousSlot.event.start.valueOf()!==e.event.start.valueOf()&&M.applySlotStyle(M.previousSlot),M.previousSlot=e,M.selectSlot(e)},eventDidMount:function(e){null!==e.event&&!0===e.event.extendedProps.isCurrent?(M.applySelectedSlotStyle(e),M.previousSlot=e,M.enableButtons()):M.applySlotStyle(e)},datesSet:function(e){var t=this;M.disableButtons(),M.listSlots(d,e.startStr,e.endStr,u,(function(){if(200===this.status){var e,n=c(M.nextStepButtons);try{for(n.s();!(e=n.n()).done;)e.value.form.classList.remove("loading")}catch(e){n.e(e)}finally{n.f()}var a=JSON.parse(this.responseText);t.batchRendering((function(){var e,n=c(t.getEvents());try{for(n.s();!(e=n.n()).done;)e.value.remove()}catch(e){n.e(e)}finally{n.f()}var r,o=c(a);try{for(o.s();!(r=o.n()).done;){var i=r.value;t.addEvent(i)}}catch(e){o.e(e)}finally{o.f()}}))}else console.error("Error during slot list")}))}},this.fullCalendarConfig)).render()}},{key:"getShippingSlotConfigSelect",value:function(e){var t,n=c(this.shippingSlotConfigContainers);try{for(n.s();!(t=n.n()).done;){var a=t.value.querySelector(this.shippingSlotConfigSelectSelector);if(null!==a&&a.name.includes(e))return a}}catch(e){n.e(e)}finally{n.f()}return null}}])&&u(n.prototype,o),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),e}()}.call(this,n("2mad"))},nkld:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("qW9H"))},nmio:function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration From c42845d5b2070930ca086d3eb933d6858d2b2e31 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 23 Jan 2025 22:11:14 +0100 Subject: [PATCH 4/4] fix(tests): fix PHP stan tests --- phpstan.neon | 17 +++++++---------- src/DependencyInjection/Configuration.php | 16 +++++++++++----- .../MonsieurBizSyliusShippingSlotExtension.php | 17 +++++++++++++++-- 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 4f38f63..4d0e355 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,18 +1,15 @@ -includes: - - vendor/phpstan/phpstan-doctrine/extension.neon - - vendor/phpstan/phpstan-webmozart-assert/extension.neon - parameters: - level: max + level: 8 paths: - %rootDir%/src/ - checkMissingIterableValueType: false - - excludes_analyse: + excludePaths: # Makes PHPStan crash - - 'src/DependencyInjection/Configuration.php' - - 'src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php' + - 'src/DependencyInjection/MonsieurBizSyliusAlertMessageExtension.php' # Test dependencies - 'tests/Application/**/*' + + ignoreErrors: + - identifier: missingType.generics + - identifier: missingType.iterableValue diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index b57030b..90a2f5e 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -13,6 +13,7 @@ namespace MonsieurBiz\SyliusShippingSlotPlugin\DependencyInjection; +use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; @@ -21,10 +22,17 @@ final class Configuration implements ConfigurationInterface public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('monsieurbiz_sylius_shipping_slot'); - $rootNode = method_exists($treeBuilder, 'getRootNode') ? - $rootNode = $treeBuilder->getRootNode() - : $treeBuilder->root('monsieurbiz_sylius_shipping_slot'); // BC layer for symfony/config 4.1 and older + /** @var ArrayNodeDefinition $rootNode */ + $rootNode = $treeBuilder->getRootNode(); + $this->addSlotConfig($rootNode); + + return $treeBuilder; + } + + private function addSlotConfig(ArrayNodeDefinition $rootNode): void + { + /** @phpstan-ignore-next-line */ $rootNode ->children() ->arrayNode('expiration') @@ -33,7 +41,5 @@ public function getConfigTreeBuilder(): TreeBuilder ->end() ->end() ; - - return $treeBuilder; } } diff --git a/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php b/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php index bc1c96e..f5b2583 100644 --- a/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php +++ b/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php @@ -20,18 +20,31 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; +/** + * @SuppressWarnings(PHPMD.LongClassName) + */ final class MonsieurBizSyliusShippingSlotExtension extends Extension implements PrependExtensionInterface { use PrependDoctrineMigrationsTrait; + /** + * @inheritdoc + */ public function load(array $config, ContainerBuilder $container): void { - $configuration = $this->processConfiguration($this->getConfiguration([], $container), $config); - $container->setParameter('monsieurbiz_sylius_shipping_slot.slot_expiration_period', $configuration['expiration']['slot']); + $configuration = $this->getConfiguration([], $container); + if (null !== $configuration) { + $config = $this->processConfiguration($configuration, $config); + $container->setParameter('monsieurbiz_sylius_shipping_slot.slot_expiration_period', $config['expiration']['slot']); + } + $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $loader->load('services.yaml'); } + /** + * @inheritdoc + */ public function getAlias(): string { return str_replace('monsieur_biz', 'monsieurbiz', parent::getAlias());