diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 15803913..91af3d56 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,8 +10,9 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - symfony: [ 6.2.*, 6.1.*, 6.0.*, 5.4.*, 5.3.*, 5.2.*, 5.1.*, 5.0.*, 4.4.*, 4.3.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*, 3.1.*, 3.0.*, 2.8.*, 2.7.*, 2.6.*, 2.5.*, 2.4.*, 2.3.*, 2.2.*, 2.1.*, 2.0.* ] + symfony: [ 6.3.*, 6.2.*, 6.1.*, 6.0.*, 5.4.*, 5.3.*, 5.2.*, 5.1.*, 5.0.*, 4.4.*, 4.3.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*, 3.1.*, 3.0.*, 2.8.*, 2.7.*, 2.6.*, 2.5.*, 2.4.*, 2.3.*, 2.2.*, 2.1.*, 2.0.* ] include: + - { symfony: 6.3.*, php: 8.2, phpunit: 9.5.* } - { symfony: 6.2.*, php: 8.1, phpunit: 9.5.* } - { symfony: 6.1.*, php: 8.1, phpunit: 9.5.* } - { symfony: 6.0.*, php: 8.0, phpunit: 9.5.* } @@ -76,8 +77,9 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - laravel: [ 9.*, 8.*, 7.*, 6.*, 5.8.*, 5.7.*, 5.6.*, 5.5.*, 5.4.*, 5.3.*, 5.2.*, 5.1.*, 5.0.*, 4.2.*, 4.1.*, 4.0.* ] + laravel: [ 10.*, 9.*, 8.*, 7.*, 6.*, 5.8.*, 5.7.*, 5.6.*, 5.5.*, 5.4.*, 5.3.*, 5.2.*, 5.1.*, 5.0.*, 4.2.*, 4.1.*, 4.0.* ] include: + - { laravel: 10.*, testbench: 8.*, php: 8.2, phpunit: 10.2.* } - { laravel: 9.*, testbench: 7.*, php: 8.1, phpunit: 9.5.* } - { laravel: 8.*, testbench: 6.*, php: 7.3, phpunit: 9.3.* } - { laravel: 7.*, testbench: 5.*, php: 7.3, phpunit: 8.4.* } diff --git a/bin/assets b/bin/assets index 1f916224..d4b4b1ea 100755 --- a/bin/assets +++ b/bin/assets @@ -25,6 +25,16 @@ foreach ($plugins as $plugin) { $content = file_get_contents($script); file_put_contents($path, $content); } + + $styles = $plugin->getStyles(); + + foreach ($styles['cdn'] as $index => $script) { + echo $script . PHP_EOL; + + $path = $plugin->getAssetsDir() . '/'. pathinfo($script, PATHINFO_BASENAME); + $content = file_get_contents($script); + file_put_contents($path, $content); + } } echo 'DONE' . PHP_EOL; diff --git a/composer.json b/composer.json index fd2b9655..8fcc96ac 100644 --- a/composer.json +++ b/composer.json @@ -40,15 +40,15 @@ "require-dev": { "ext-json": "*", "ext-mbstring": "*", - "ergebnis/composer-normalize": "^2.29", - "friendsofphp/php-cs-fixer": "^3.13", + "ergebnis/composer-normalize": "^2.31", + "friendsofphp/php-cs-fixer": "^3.17", "illuminate/routing": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", "illuminate/support": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", - "livewire/livewire": "^2.10", - "orchestra/testbench": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0", - "phpro/grumphp": "^1.15", - "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^9.5", + "livewire/livewire": "^2.12.3", + "orchestra/testbench": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0", + "phpro/grumphp": "^1.16", + "phpstan/phpstan": "^1.10.16", + "phpunit/phpunit": "^10.2.1", "symfony/config": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/console": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/dependency-injection": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", @@ -56,8 +56,8 @@ "symfony/http-kernel": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/translation": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/twig-bundle": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", - "symplify/monorepo-builder": "^11.1", - "vimeo/psalm": "^5.6" + "symplify/monorepo-builder": "^11.2.3.72", + "vimeo/psalm": "^5.12" }, "replace": { "php-flasher/flasher": "self.version", diff --git a/phpunit-laravel.xml b/phpunit-laravel.xml index a0c2882e..b1501643 100644 --- a/phpunit-laravel.xml +++ b/phpunit-laravel.xml @@ -1,12 +1,11 @@ @@ -14,10 +13,10 @@ tests/Laravel - - + + src - + diff --git a/phpunit-symfony.xml b/phpunit-symfony.xml index b690128a..ca06a285 100644 --- a/phpunit-symfony.xml +++ b/phpunit-symfony.xml @@ -1,12 +1,11 @@ @@ -14,10 +13,10 @@ tests/Symfony - - + + src - + diff --git a/phpunit.xml b/phpunit.xml index 4a1f774d..a01dbaa7 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,22 +1,21 @@ tests - - + + src - + diff --git a/src/Cli/Laravel/composer.json b/src/Cli/Laravel/composer.json index 6f70f8b2..573a2496 100644 --- a/src/Cli/Laravel/composer.json +++ b/src/Cli/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-cli": "^1.13", - "php-flasher/flasher-laravel": "^1.13" + "php-flasher/flasher-cli": "^1.15", + "php-flasher/flasher-laravel": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Cli/Prime/composer.json b/src/Cli/Prime/composer.json index 80be76d8..c0aeb0f3 100644 --- a/src/Cli/Prime/composer.json +++ b/src/Cli/Prime/composer.json @@ -38,7 +38,7 @@ "require": { "php": ">=5.3", "ext-mbstring": "*", - "php-flasher/flasher": "^1.13" + "php-flasher/flasher": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Cli/Symfony/composer.json b/src/Cli/Symfony/composer.json index 8784c0db..787bf994 100644 --- a/src/Cli/Symfony/composer.json +++ b/src/Cli/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-cli": "^1.13", - "php-flasher/flasher-symfony": "^1.13" + "php-flasher/flasher-cli": "^1.15", + "php-flasher/flasher-symfony": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Laravel/Resources/config.php b/src/Laravel/Resources/config.php index aa84e585..3c468211 100644 --- a/src/Laravel/Resources/config.php +++ b/src/Laravel/Resources/config.php @@ -50,10 +50,30 @@ return array( | field of this option. */ 'root_script' => array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.2.4/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ), + /* + |--------------------------------------------------------------------------- + | PHPFlasher Stylesheet + |--------------------------------------------------------------------------- + | This option specifies the location of the stylesheet file that is + | required by PHPFlasher to style the notifications in your Laravel application. + | + | By default, PHPFlasher uses a CDN to serve the latest version of the stylesheet. + | However, you can also choose to download the stylesheet locally or include it + | from your assets. + | + | To use the local version of the stylesheet, make sure you have the necessary + | assets in your application's public folder. Then specify the local path to + | the stylesheet file in the 'local' field of this option. + */ + 'styles' => array( + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css', + 'local' => '/vendor/flasher/flasher.min.css', + ), + /* |--------------------------------------------------------------------------- | Whether to use CDN for PHPFlasher assets or not diff --git a/src/Laravel/Support/ServiceProvider.php b/src/Laravel/Support/ServiceProvider.php index 07b32ac3..a522c6be 100644 --- a/src/Laravel/Support/ServiceProvider.php +++ b/src/Laravel/Support/ServiceProvider.php @@ -211,6 +211,8 @@ abstract class ServiceProvider extends BaseServiceProvider $config = $this->app->make('config')->get($this->plugin->getName(), array()); // @phpstan-ignore-line $this->app->extend('flasher.resource_manager', function (ResourceManagerInterface $manager) use ($plugin, $config) { + $config = $plugin->normalizeConfig($config); + $scripts = isset($config['scripts']) ? $config['scripts'] : array(); $manager->addScripts($plugin->getAlias(), $scripts); diff --git a/src/Laravel/composer.json b/src/Laravel/composer.json index 3fa47ff1..c7987c85 100644 --- a/src/Laravel/composer.json +++ b/src/Laravel/composer.json @@ -38,7 +38,7 @@ "require": { "php": ">=5.3", "illuminate/support": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", - "php-flasher/flasher": "^1.13" + "php-flasher/flasher": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Noty/Laravel/Resources/config.php b/src/Noty/Laravel/Resources/config.php index 33bb1482..0b23b5d7 100644 --- a/src/Noty/Laravel/Resources/config.php +++ b/src/Noty/Laravel/Resources/config.php @@ -8,10 +8,18 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.2.4/dist/flasher-noty.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js', ), 'local' => array( '/vendor/flasher/flasher-noty.min.js', ), ), + 'styles' => array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-noty.min.css', + ), + ), ); diff --git a/src/Noty/Laravel/composer.json b/src/Noty/Laravel/composer.json index 876cdbfc..10fc602b 100644 --- a/src/Noty/Laravel/composer.json +++ b/src/Noty/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.13", - "php-flasher/flasher-noty": "^1.13" + "php-flasher/flasher-laravel": "^1.15", + "php-flasher/flasher-noty": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Noty/Prime/NotyPlugin.php b/src/Noty/Prime/NotyPlugin.php index 7582a9ed..9b601b12 100644 --- a/src/Noty/Prime/NotyPlugin.php +++ b/src/Noty/Prime/NotyPlugin.php @@ -18,11 +18,26 @@ class NotyPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.2.4/dist/flasher-noty.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js', ), 'local' => array( '/vendor/flasher/flasher-noty.min.js', ), ); } + + /** + * {@inheritdoc} + */ + public function getStyles() + { + return array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-noty.min.css', + ), + ); + } } diff --git a/src/Noty/Prime/Resources/assets/flasher-noty.min.css b/src/Noty/Prime/Resources/assets/flasher-noty.min.css new file mode 100644 index 00000000..97da8507 --- /dev/null +++ b/src/Noty/Prime/Resources/assets/flasher-noty.min.css @@ -0,0 +1,2 @@ +#noty_layout__bottom,#noty_layout__bottomCenter,#noty_layout__bottomLeft,#noty_layout__bottomRight,#noty_layout__center,#noty_layout__centerLeft,#noty_layout__centerRight,#noty_layout__top,#noty_layout__topCenter,#noty_layout__topLeft,#noty_layout__topRight,.noty_layout_mixin{-webkit-font-smoothing:subpixel-antialiased;-webkit-backface-visibility:hidden;backface-visibility:hidden;filter:blur(0);-webkit-filter:blur(0);margin:0;max-width:90%;padding:0;position:fixed;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1);z-index:9999999}#noty_layout__top{left:5%;top:0;width:90%}#noty_layout__topLeft{left:20px;top:20px;width:325px}#noty_layout__topCenter{left:50%;top:5%;-webkit-transform:translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1);transform:translate(calc(-50% - .5px)) translateZ(0) scale(1);width:325px}#noty_layout__topRight{right:20px;top:20px;width:325px}#noty_layout__bottom{bottom:0;left:5%;width:90%}#noty_layout__bottomLeft{bottom:20px;left:20px;width:325px}#noty_layout__bottomCenter{bottom:5%;left:50%;-webkit-transform:translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1);transform:translate(calc(-50% - .5px)) translateZ(0) scale(1);width:325px}#noty_layout__bottomRight{bottom:20px;right:20px;width:325px}#noty_layout__center{left:50%;top:50%;-webkit-transform:translate(-webkit-calc(-50% - .5px),-webkit-calc(-50% - .5px)) translateZ(0) scale(1);transform:translate(calc(-50% - .5px),calc(-50% - .5px)) translateZ(0) scale(1);width:325px}#noty_layout__centerLeft{left:20px}#noty_layout__centerLeft,#noty_layout__centerRight{top:50%;-webkit-transform:translateY(-webkit-calc(-50% - .5px)) translateZ(0) scale(1);transform:translateY(calc(-50% - .5px)) translateZ(0) scale(1);width:325px}#noty_layout__centerRight{right:20px}.noty_progressbar{display:none}.noty_has_timeout.noty_has_progressbar .noty_progressbar{background-color:#646464;bottom:0;display:block;filter:alpha(opacity=10);height:3px;left:0;opacity:.2;position:absolute;width:100%}.noty_bar{-webkit-font-smoothing:subpixel-antialiased;-webkit-backface-visibility:hidden;overflow:hidden;-webkit-transform:translate(0) translateZ(0) scale(1);-ms-transform:translate(0) scale(1);transform:translate(0) scale(1)}.noty_effects_open{-webkit-animation:noty_anim_in .5s cubic-bezier(.68,-.55,.265,1.55);animation:noty_anim_in .5s cubic-bezier(.68,-.55,.265,1.55);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;opacity:0;-webkit-transform:translate(50%);-ms-transform:translate(50%);transform:translate(50%)}.noty_effects_close{-webkit-animation:noty_anim_out .5s cubic-bezier(.68,-.55,.265,1.55);animation:noty_anim_out .5s cubic-bezier(.68,-.55,.265,1.55);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.noty_fix_effects_height{-webkit-animation:noty_anim_height 75ms ease-out;animation:noty_anim_height 75ms ease-out}.noty_close_with_click{cursor:pointer}.noty_close_button{background-color:rgba(0,0,0,.05);border-radius:2px;cursor:pointer;font-weight:700;height:20px;line-height:20px;position:absolute;right:2px;text-align:center;top:2px;-webkit-transition:all .2s ease-out;transition:all .2s ease-out;width:20px}.noty_close_button:hover{background-color:rgba(0,0,0,.1)}.noty_modal{background-color:#000;height:100%;left:0;opacity:.3;position:fixed;top:0;width:100%;z-index:10000}.noty_modal.noty_modal_open{-webkit-animation:noty_modal_in .3s ease-out;animation:noty_modal_in .3s ease-out;opacity:0}.noty_modal.noty_modal_close{-webkit-animation:noty_modal_out .3s ease-out;animation:noty_modal_out .3s ease-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes noty_modal_in{to{opacity:.3}}@keyframes noty_modal_in{to{opacity:.3}}@-webkit-keyframes noty_modal_out{to{opacity:0}}@keyframes noty_modal_out{to{opacity:0}}@-webkit-keyframes noty_anim_in{to{opacity:1;-webkit-transform:translate(0);transform:translate(0)}}@keyframes noty_anim_in{to{opacity:1;-webkit-transform:translate(0);transform:translate(0)}}@-webkit-keyframes noty_anim_out{to{opacity:0;-webkit-transform:translate(50%);transform:translate(50%)}}@keyframes noty_anim_out{to{opacity:0;-webkit-transform:translate(50%);transform:translate(50%)}}@-webkit-keyframes noty_anim_height{to{height:0}}@keyframes noty_anim_height{to{height:0}} +.noty_theme__mint.noty_bar{border-radius:2px;margin:4px 0;overflow:hidden;position:relative}.noty_theme__mint.noty_bar .noty_body{font-size:14px;padding:10px}.noty_theme__mint.noty_bar .noty_buttons{padding:10px}.noty_theme__mint.noty_type__alert,.noty_theme__mint.noty_type__notification{background-color:#fff;border-bottom:1px solid #d1d1d1;color:#2f2f2f}.noty_theme__mint.noty_type__warning{background-color:#ffae42;border-bottom:1px solid #e89f3c;color:#fff}.noty_theme__mint.noty_type__error{background-color:#de636f;border-bottom:1px solid #ca5a65;color:#fff}.noty_theme__mint.noty_type__info,.noty_theme__mint.noty_type__information{background-color:#7f7eff;border-bottom:1px solid #7473e8;color:#fff}.noty_theme__mint.noty_type__success{background-color:#afc765;border-bottom:1px solid #a0b55c;color:#fff} \ No newline at end of file diff --git a/src/Noty/Prime/Resources/assets/flasher-noty.min.js b/src/Noty/Prime/Resources/assets/flasher-noty.min.js index f6a6a0a4..94f8fbd5 100644 --- a/src/Noty/Prime/Resources/assets/flasher-noty.min.js +++ b/src/Noty/Prime/Resources/assets/flasher-noty.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@flasher/flasher")):"function"==typeof define&&define.amd?define(["@flasher/flasher"],e):((t="undefined"!=typeof globalThis?globalThis:t||self).flasher=t.flasher||{},t.flasher.noty=e(t.flasher))}(this,(function(t){"use strict";var e=function(){return e=Object.assign||function(t){for(var e,o=1,n=arguments.length;o0&&void 0!==arguments[0]?arguments[0]:"",e="noty_"+t+"_";return e+="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},e.outerHeight=function(t){var e=t.offsetHeight,o=window.getComputedStyle(t);return e+=parseInt(o.marginTop)+parseInt(o.marginBottom)},e.addListener=r,e.hasClass=s,e.addClass=function(t,e){var o=u(t),n=o+e;s(o,e)||(t.className=n.substring(1))},e.removeClass=function(t,e){var o=u(t),n=void 0;s(t,e)&&(n=o.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))},e.remove=a,e.classList=u,e.visibilityChangeFlow=function(){var t=void 0,e=void 0;function o(){i.PageHidden?setTimeout((function(){Object.keys(i.Store).forEach((function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].stop()}))}),100):setTimeout((function(){Object.keys(i.Store).forEach((function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].resume()})),i.queueRenderAll()}),100)}void 0!==document.hidden?(t="hidden",e="visibilitychange"):void 0!==document.msHidden?(t="msHidden",e="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",e="webkitvisibilitychange"),e&&r(document,e,(function(){i.PageHidden=document[t],o()})),r(window,"blur",(function(){i.PageHidden=!0,o()})),r(window,"focus",(function(){i.PageHidden=!1,o()}))},e.createAudioElements=function(t){if(t.hasSound){var e=document.createElement("audio");t.options.sounds.sources.forEach((function(t){var o=document.createElement("source");o.src=t,o.type="audio/"+t.match(/\.([^.]+)$/)[1],e.appendChild(o)})),t.barDom?t.barDom.appendChild(e):document.querySelector("body").appendChild(e),e.volume=t.options.sounds.volume,t.soundPlayed||(e.play(),t.soundPlayed=!0),e.onended=function(){a(e)}}};var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(1));function r(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e=e.split(" ");for(var i=0;i=0}function a(t){t.parentNode&&t.parentNode.removeChild(t)}function u(t){return(" "+(t&&t.className||"")+" ").replace(/\s+/gi," ")}e.animationEndEvents="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e.deepExtend=function t(e){e=e||{};for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:"global",e=0,o=a;return u.hasOwnProperty(t)&&(o=u[t].maxVisible,Object.keys(l).forEach((function(o){l[o].options.queue!==t||l[o].closed||e++}))),{current:e,maxVisible:o}},e.addToQueue=function(t){u.hasOwnProperty(t.options.queue)||(u[t.options.queue]={maxVisible:a,queue:[]}),u[t.options.queue].queue.push(t)},e.removeFromQueue=function(t){if(u.hasOwnProperty(t.options.queue)){var e=[];Object.keys(u[t.options.queue].queue).forEach((function(o){u[t.options.queue].queue[o].id!==t.id&&e.push(u[t.options.queue].queue[o])})),u[t.options.queue].queue=e}},e.queueRender=c,e.queueRenderAll=function(){Object.keys(u).forEach((function(t){c(t)}))},e.ghostFix=function(t){var e=n.generateID("ghost"),o=document.createElement("div");o.setAttribute("id",e),n.css(o,{height:n.outerHeight(t.barDom)+"px"}),t.barDom.insertAdjacentHTML("afterend",o.outerHTML),n.remove(t.barDom),o=document.getElementById(e),n.addClass(o,"noty_fix_effects_height"),n.addListener(o,n.animationEndEvents,(function(){n.remove(o)}))},e.build=function(t){!function(t){if(t.options.container)t.layoutDom=document.querySelector(t.options.container);else{var e="noty_layout__"+t.options.layout;t.layoutDom=document.querySelector("div#"+e),t.layoutDom||(t.layoutDom=document.createElement("div"),t.layoutDom.setAttribute("id",e),t.layoutDom.setAttribute("role","alert"),t.layoutDom.setAttribute("aria-live","polite"),n.addClass(t.layoutDom,"noty_layout"),document.querySelector("body").appendChild(t.layoutDom))}}(t);var e=''+t.options.text+""+function(t){if(f(t)){var e=document.createElement("div");return n.addClass(e,"noty_buttons"),Object.keys(t.options.buttons).forEach((function(o){e.appendChild(t.options.buttons[o].dom)})),t.options.buttons.forEach((function(t){e.appendChild(t.dom)})),e.outerHTML}return""}(t)+'';t.barDom=document.createElement("div"),t.barDom.setAttribute("id",t.id),n.addClass(t.barDom,"noty_bar noty_type__"+t.options.type+" noty_theme__"+t.options.theme),t.barDom.innerHTML=e,p(t,"onTemplate")},e.hasButtons=f,e.handleModal=function(t){var o,r;t.options.modal&&(0===i&&(o=document.querySelector("body"),r=document.createElement("div"),n.addClass(r,"noty_modal"),o.insertBefore(r,o.firstChild),n.addClass(r,"noty_modal_open"),n.addListener(r,n.animationEndEvents,(function(){n.removeClass(r,"noty_modal_open")}))),e.DocModalCount=i+=1)},e.handleModalClose=function(t){if(t.options.modal&&i>0&&(e.DocModalCount=i-=1,i<=0)){var o=document.querySelector(".noty_modal");o&&(n.removeClass(o,"noty_modal_open"),n.addClass(o,"noty_modal_close"),n.addListener(o,n.animationEndEvents,(function(){n.remove(o)})))}},e.queueClose=d,e.dequeueClose=h,e.fire=p,e.openFlow=function(t){p(t,"afterShow"),d(t),n.addListener(t.barDom,"mouseenter",(function(){h(t)})),n.addListener(t.barDom,"mouseleave",(function(){d(t)}))},e.closeFlow=function(t){delete l[t.id],t.closing=!1,p(t,"afterClose"),n.remove(t.barDom),0!==t.layoutDom.querySelectorAll(".noty_bar").length||t.options.container||n.remove(t.layoutDom),(n.inArray("docVisible",t.options.titleCount.conditions)||n.inArray("docHidden",t.options.titleCount.conditions))&&s.decrement(),c(t.options.queue)};var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0));e.PageHidden=!1;var i=e.DocModalCount=0,r={originalTitle:null,count:0,changed:!1,timer:-1},s=e.docTitle={increment:function(){r.count++,s._update()},decrement:function(){r.count--,r.count<=0?s._clear():s._update()},_update:function(){var t=document.title;r.changed?document.title="("+r.count+") "+r.originalTitle:(r.originalTitle=t,document.title="("+r.count+") "+t,r.changed=!0)},_clear:function(){r.changed&&(r.count=0,document.title=r.originalTitle,r.changed=!1)}},a=e.DefaultMaxVisible=5,u=e.Queues={global:{maxVisible:a,queue:[]}},l=e.Store={};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";if(u.hasOwnProperty(t)){var e=u[t].queue.shift();e&&e.show()}}function f(t){return!(!t.options.buttons||!Object.keys(t.options.buttons).length)}function d(t){t.options.timeout&&(t.options.progressBar&&t.progressDom&&n.css(t.progressDom,{transition:"width "+t.options.timeout+"ms linear",width:"0%"}),clearTimeout(t.closeTimer),t.closeTimer=setTimeout((function(){t.close()}),t.options.timeout))}function h(t){t.options.timeout&&t.closeTimer&&(clearTimeout(t.closeTimer),t.closeTimer=-1,t.options.progressBar&&t.progressDom&&n.css(t.progressDom,{transition:"width 0ms linear",width:"100%"}))}function p(t,e){t.listeners.hasOwnProperty(e)&&t.listeners[e].forEach((function(e){"function"==typeof e&&e.apply(t)}))}e.Defaults={type:"alert",layout:"topRight",theme:"mint",text:"",timeout:!1,progressBar:!0,closeWith:["click"],animation:{open:"noty_effects_open",close:"noty_effects_close"},id:!1,force:!1,killer:!1,queue:"global",container:!1,buttons:[],callbacks:{beforeShow:null,onShow:null,afterShow:null,onClose:null,afterClose:null,onClick:null,onHover:null,onTemplate:null},sounds:{sources:[],volume:1,conditions:[]},titleCount:{conditions:[]},modal:!1,visibilityControl:!1}},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.NotyButton=void 0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0));function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.NotyButton=function t(e,o,r){var s=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i(this,t),this.dom=document.createElement("button"),this.dom.innerHTML=e,this.id=a.id=a.id||n.generateID("button"),this.cb=r,Object.keys(a).forEach((function(t){s.dom.setAttribute(t,a[t])})),n.addClass(this.dom,o||"noty_btn"),this}},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"/service-worker.js";return i(this,t),this.subData={},this.workerPath=e,this.listeners={onPermissionGranted:[],onPermissionDenied:[],onSubscriptionSuccess:[],onSubscriptionCancel:[],onWorkerError:[],onWorkerSuccess:[],onWorkerNotSupported:[]},this}return n(t,[{key:"on",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"fire",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.listeners.hasOwnProperty(t)&&this.listeners[t].forEach((function(t){"function"==typeof t&&t.apply(e,o)}))}},{key:"create",value:function(){console.log("NOT IMPLEMENTED YET")}},{key:"isSupported",value:function(){var t=!1;try{t=window.Notification||window.webkitNotifications||navigator.mozNotification||window.external&&void 0!==window.external.msIsSiteMode()}catch(t){}return t}},{key:"getPermissionStatus",value:function(){var t="default";if(window.Notification&&window.Notification.permissionLevel)t=window.Notification.permissionLevel;else if(window.webkitNotifications&&window.webkitNotifications.checkPermission)switch(window.webkitNotifications.checkPermission()){case 1:t="default";break;case 0:t="granted";break;default:t="denied"}else window.Notification&&window.Notification.permission?t=window.Notification.permission:navigator.mozNotification?t="granted":window.external&&void 0!==window.external.msIsSiteMode()&&(t=window.external.msIsSiteMode()?"granted":"default");return t.toString().toLowerCase()}},{key:"getEndpoint",value:function(t){var e=t.endpoint,o=t.subscriptionId;return o&&-1===e.indexOf(o)&&(e+="/"+o),e}},{key:"isSWRegistered",value:function(){try{return"activated"===navigator.serviceWorker.controller.state}catch(t){return!1}}},{key:"unregisterWorker",value:function(){var t=this;"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then((function(e){var o=!0,n=!1,i=void 0;try{for(var r,s=e[Symbol.iterator]();!(o=(r=s.next()).done);o=!0)r.value.unregister(),t.fire("onSubscriptionCancel")}catch(t){n=!0,i=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw i}}}))}},{key:"requestSubscription",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=this,n=this.getPermissionStatus(),i=function(n){"granted"===n?(t.fire("onPermissionGranted"),"serviceWorker"in navigator?navigator.serviceWorker.register(t.workerPath).then((function(){navigator.serviceWorker.ready.then((function(t){o.fire("onWorkerSuccess"),t.pushManager.subscribe({userVisibleOnly:e}).then((function(t){var e=t.getKey("p256dh"),n=t.getKey("auth");o.subData={endpoint:o.getEndpoint(t),p256dh:e?window.btoa(String.fromCharCode.apply(null,new Uint8Array(e))):null,auth:n?window.btoa(String.fromCharCode.apply(null,new Uint8Array(n))):null},o.fire("onSubscriptionSuccess",[o.subData])})).catch((function(t){o.fire("onWorkerError",[t])}))}))})):o.fire("onWorkerNotSupported")):"denied"===n&&(t.fire("onPermissionDenied"),t.unregisterWorker())};"default"===n?window.Notification&&window.Notification.requestPermission?window.Notification.requestPermission(i):window.webkitNotifications&&window.webkitNotifications.checkPermission&&window.webkitNotifications.requestPermission(i):i(n)}}]),t}()},function(t,e,o){(function(e,n){var i;i=function(){function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,s=void 0,a=void 0,u=function(t,e){m[r]=t,m[r+1]=e,2===(r+=2)&&(a?a(y):g())},l="undefined"!=typeof window?window:void 0,c=l||{},f=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var t=setTimeout;return function(){return t(y,1)}}var m=new Array(1e3);function y(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),this.options=a.deepExtend({},u.Defaults,e),u.Store[this.options.id]?u.Store[this.options.id]:(this.id=this.options.id||a.generateID("bar"),this.closeTimer=-1,this.barDom=null,this.layoutDom=null,this.progressDom=null,this.showing=!1,this.shown=!1,this.closed=!1,this.closing=!1,this.killable=this.options.timeout||this.options.closeWith.length>0,this.hasSound=this.options.sounds.sources.length>0,this.soundPlayed=!1,this.listeners={beforeShow:[],onShow:[],afterShow:[],onClose:[],afterClose:[],onClick:[],onHover:[],onTemplate:[]},this.promises={show:null,close:null},this.on("beforeShow",this.options.callbacks.beforeShow),this.on("onShow",this.options.callbacks.onShow),this.on("afterShow",this.options.callbacks.afterShow),this.on("onClose",this.options.callbacks.onClose),this.on("afterClose",this.options.callbacks.afterClose),this.on("onClick",this.options.callbacks.onClick),this.on("onHover",this.options.callbacks.onHover),this.on("onTemplate",this.options.callbacks.onTemplate),this)}return n(t,[{key:"on",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"show",value:function(){var e=this;if(this.showing||this.shown)return this;!0===this.options.killer?t.closeAll():"string"==typeof this.options.killer&&t.closeAll(this.options.killer);var o=u.getQueueCounts(this.options.queue);if(o.current>=o.maxVisible||u.PageHidden&&this.options.visibilityControl)return u.addToQueue(this),u.PageHidden&&this.hasSound&&a.inArray("docHidden",this.options.sounds.conditions)&&a.createAudioElements(this),u.PageHidden&&a.inArray("docHidden",this.options.titleCount.conditions)&&u.docTitle.increment(),this;if(u.Store[this.id]=this,u.fire(this,"beforeShow"),this.showing=!0,this.closing)return this.showing=!1,this;if(u.build(this),u.handleModal(this),this.options.force?this.layoutDom.insertBefore(this.barDom,this.layoutDom.firstChild):this.layoutDom.appendChild(this.barDom),this.hasSound&&!this.soundPlayed&&a.inArray("docVisible",this.options.sounds.conditions)&&a.createAudioElements(this),a.inArray("docVisible",this.options.titleCount.conditions)&&u.docTitle.increment(),this.shown=!0,this.closed=!1,u.hasButtons(this)&&Object.keys(this.options.buttons).forEach((function(t){var o=e.barDom.querySelector("#"+e.options.buttons[t].id);a.addListener(o,"click",(function(o){a.stopPropagation(o),e.options.buttons[t].cb(e)}))})),this.progressDom=this.barDom.querySelector(".noty_progressbar"),a.inArray("click",this.options.closeWith)&&(a.addClass(this.barDom,"noty_close_with_click"),a.addListener(this.barDom,"click",(function(t){a.stopPropagation(t),u.fire(e,"onClick"),e.close()}),!1)),a.addListener(this.barDom,"mouseenter",(function(){u.fire(e,"onHover")}),!1),this.options.timeout&&a.addClass(this.barDom,"noty_has_timeout"),this.options.progressBar&&a.addClass(this.barDom,"noty_has_progressbar"),a.inArray("button",this.options.closeWith)){a.addClass(this.barDom,"noty_close_with_button");var n=document.createElement("div");a.addClass(n,"noty_close_button"),n.innerHTML="×",this.barDom.appendChild(n),a.addListener(n,"click",(function(t){a.stopPropagation(t),e.close()}),!1)}return u.fire(this,"onShow"),null===this.options.animation.open?this.promises.show=new s.default((function(t){t()})):"function"==typeof this.options.animation.open?this.promises.show=new s.default(this.options.animation.open.bind(this)):(a.addClass(this.barDom,this.options.animation.open),this.promises.show=new s.default((function(t){a.addListener(e.barDom,a.animationEndEvents,(function(){a.removeClass(e.barDom,e.options.animation.open),t()}))}))),this.promises.show.then((function(){var t=e;setTimeout((function(){u.openFlow(t)}),100)})),this}},{key:"stop",value:function(){return u.dequeueClose(this),this}},{key:"resume",value:function(){return u.queueClose(this),this}},{key:"setTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){if(this.stop(),this.options.timeout=t,this.barDom){this.options.timeout?a.addClass(this.barDom,"noty_has_timeout"):a.removeClass(this.barDom,"noty_has_timeout");var e=this;setTimeout((function(){e.resume()}),100)}return this}))},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(this.barDom.querySelector(".noty_body").innerHTML=t),e&&(this.options.text=t),this}},{key:"setType",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.barDom){var n=a.classList(this.barDom).split(" ");n.forEach((function(t){"noty_type__"===t.substring(0,11)&&a.removeClass(e.barDom,t)})),a.addClass(this.barDom,"noty_type__"+t)}return o&&(this.options.type=t),this}},{key:"setTheme",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.barDom){var n=a.classList(this.barDom).split(" ");n.forEach((function(t){"noty_theme__"===t.substring(0,12)&&a.removeClass(e.barDom,t)})),a.addClass(this.barDom,"noty_theme__"+t)}return o&&(this.options.theme=t),this}},{key:"close",value:function(){var t=this;return this.closed?this:this.shown?(u.fire(this,"onClose"),this.closing=!0,null===this.options.animation.close||!1===this.options.animation.close?this.promises.close=new s.default((function(t){t()})):"function"==typeof this.options.animation.close?this.promises.close=new s.default(this.options.animation.close.bind(this)):(a.addClass(this.barDom,this.options.animation.close),this.promises.close=new s.default((function(e){a.addListener(t.barDom,a.animationEndEvents,(function(){t.options.force?a.remove(t.barDom):u.ghostFix(t),e()}))}))),this.promises.close.then((function(){u.closeFlow(t),u.handleModalClose(t)})),this.closed=!0,this):(u.removeFromQueue(this),this)}}],[{key:"closeAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.keys(u.Store).forEach((function(e){t?u.Store[e].options.queue===t&&u.Store[e].killable&&u.Store[e].close():u.Store[e].killable&&u.Store[e].close()})),this}},{key:"clearQueue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";return u.Queues.hasOwnProperty(t)&&(u.Queues[t].queue=[]),this}},{key:"overrideDefaults",value:function(t){return u.Defaults=a.deepExtend({},u.Defaults,t),this}},{key:"setMaxVisible",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.DefaultMaxVisible,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return u.Queues.hasOwnProperty(e)||(u.Queues[e]={maxVisible:t,queue:[]}),u.Queues[e].maxVisible=t,this}},{key:"button",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new l.NotyButton(t,e,o,n)}},{key:"version",value:function(){return"3.2.0-beta"}},{key:"Push",value:function(t){return new c.Push(t)}},{key:"Queues",get:function(){return u.Queues}},{key:"PageHidden",get:function(){return u.PageHidden}}]),t}();e.default=h,"undefined"!=typeof window&&a.visibilityChangeFlow(),t.exports=e.default},function(t,e){var o,n,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:r}catch(t){o=r}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var t=a(d);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f1)for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:"",e="noty_"+t+"_";return e+="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},e.outerHeight=function(t){var e=t.offsetHeight,o=window.getComputedStyle(t);return e+=parseInt(o.marginTop)+parseInt(o.marginBottom)},e.addListener=r,e.hasClass=s,e.addClass=function(t,e){var o=u(t),n=o+e;s(o,e)||(t.className=n.substring(1))},e.removeClass=function(t,e){var o=u(t),n=void 0;s(t,e)&&(n=o.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))},e.remove=a,e.classList=u,e.visibilityChangeFlow=function(){var t=void 0,e=void 0;function o(){i.PageHidden?setTimeout((function(){Object.keys(i.Store).forEach((function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].stop()}))}),100):setTimeout((function(){Object.keys(i.Store).forEach((function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].resume()})),i.queueRenderAll()}),100)}void 0!==document.hidden?(t="hidden",e="visibilitychange"):void 0!==document.msHidden?(t="msHidden",e="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",e="webkitvisibilitychange"),e&&r(document,e,(function(){i.PageHidden=document[t],o()})),r(window,"blur",(function(){i.PageHidden=!0,o()})),r(window,"focus",(function(){i.PageHidden=!1,o()}))},e.createAudioElements=function(t){if(t.hasSound){var e=document.createElement("audio");t.options.sounds.sources.forEach((function(t){var o=document.createElement("source");o.src=t,o.type="audio/"+t.match(/\.([^.]+)$/)[1],e.appendChild(o)})),t.barDom?t.barDom.appendChild(e):document.querySelector("body").appendChild(e),e.volume=t.options.sounds.volume,t.soundPlayed||(e.play(),t.soundPlayed=!0),e.onended=function(){a(e)}}};var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(1));function r(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e=e.split(" ");for(var i=0;i=0}function a(t){t.parentNode&&t.parentNode.removeChild(t)}function u(t){return(" "+(t&&t.className||"")+" ").replace(/\s+/gi," ")}e.animationEndEvents="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e.deepExtend=function t(e){e=e||{};for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:"global",e=0,o=a;return u.hasOwnProperty(t)&&(o=u[t].maxVisible,Object.keys(l).forEach((function(o){l[o].options.queue!==t||l[o].closed||e++}))),{current:e,maxVisible:o}},e.addToQueue=function(t){u.hasOwnProperty(t.options.queue)||(u[t.options.queue]={maxVisible:a,queue:[]}),u[t.options.queue].queue.push(t)},e.removeFromQueue=function(t){if(u.hasOwnProperty(t.options.queue)){var e=[];Object.keys(u[t.options.queue].queue).forEach((function(o){u[t.options.queue].queue[o].id!==t.id&&e.push(u[t.options.queue].queue[o])})),u[t.options.queue].queue=e}},e.queueRender=c,e.queueRenderAll=function(){Object.keys(u).forEach((function(t){c(t)}))},e.ghostFix=function(t){var e=n.generateID("ghost"),o=document.createElement("div");o.setAttribute("id",e),n.css(o,{height:n.outerHeight(t.barDom)+"px"}),t.barDom.insertAdjacentHTML("afterend",o.outerHTML),n.remove(t.barDom),o=document.getElementById(e),n.addClass(o,"noty_fix_effects_height"),n.addListener(o,n.animationEndEvents,(function(){n.remove(o)}))},e.build=function(t){!function(t){if(t.options.container)t.layoutDom=document.querySelector(t.options.container);else{var e="noty_layout__"+t.options.layout;t.layoutDom=document.querySelector("div#"+e),t.layoutDom||(t.layoutDom=document.createElement("div"),t.layoutDom.setAttribute("id",e),t.layoutDom.setAttribute("role","alert"),t.layoutDom.setAttribute("aria-live","polite"),n.addClass(t.layoutDom,"noty_layout"),document.querySelector("body").appendChild(t.layoutDom))}}(t);var e=''+t.options.text+""+function(t){if(f(t)){var e=document.createElement("div");return n.addClass(e,"noty_buttons"),Object.keys(t.options.buttons).forEach((function(o){e.appendChild(t.options.buttons[o].dom)})),t.options.buttons.forEach((function(t){e.appendChild(t.dom)})),e.outerHTML}return""}(t)+'';t.barDom=document.createElement("div"),t.barDom.setAttribute("id",t.id),n.addClass(t.barDom,"noty_bar noty_type__"+t.options.type+" noty_theme__"+t.options.theme),t.barDom.innerHTML=e,p(t,"onTemplate")},e.hasButtons=f,e.handleModal=function(t){var o,r;t.options.modal&&(0===i&&(o=document.querySelector("body"),r=document.createElement("div"),n.addClass(r,"noty_modal"),o.insertBefore(r,o.firstChild),n.addClass(r,"noty_modal_open"),n.addListener(r,n.animationEndEvents,(function(){n.removeClass(r,"noty_modal_open")}))),e.DocModalCount=i+=1)},e.handleModalClose=function(t){if(t.options.modal&&i>0&&(e.DocModalCount=i-=1,i<=0)){var o=document.querySelector(".noty_modal");o&&(n.removeClass(o,"noty_modal_open"),n.addClass(o,"noty_modal_close"),n.addListener(o,n.animationEndEvents,(function(){n.remove(o)})))}},e.queueClose=d,e.dequeueClose=h,e.fire=p,e.openFlow=function(t){p(t,"afterShow"),d(t),n.addListener(t.barDom,"mouseenter",(function(){h(t)})),n.addListener(t.barDom,"mouseleave",(function(){d(t)}))},e.closeFlow=function(t){delete l[t.id],t.closing=!1,p(t,"afterClose"),n.remove(t.barDom),0!==t.layoutDom.querySelectorAll(".noty_bar").length||t.options.container||n.remove(t.layoutDom),(n.inArray("docVisible",t.options.titleCount.conditions)||n.inArray("docHidden",t.options.titleCount.conditions))&&s.decrement(),c(t.options.queue)};var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0));e.PageHidden=!1;var i=e.DocModalCount=0,r={originalTitle:null,count:0,changed:!1,timer:-1},s=e.docTitle={increment:function(){r.count++,s._update()},decrement:function(){r.count--,r.count<=0?s._clear():s._update()},_update:function(){var t=document.title;r.changed?document.title="("+r.count+") "+r.originalTitle:(r.originalTitle=t,document.title="("+r.count+") "+t,r.changed=!0)},_clear:function(){r.changed&&(r.count=0,document.title=r.originalTitle,r.changed=!1)}},a=e.DefaultMaxVisible=5,u=e.Queues={global:{maxVisible:a,queue:[]}},l=e.Store={};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";if(u.hasOwnProperty(t)){var e=u[t].queue.shift();e&&e.show()}}function f(t){return!(!t.options.buttons||!Object.keys(t.options.buttons).length)}function d(t){t.options.timeout&&(t.options.progressBar&&t.progressDom&&n.css(t.progressDom,{transition:"width "+t.options.timeout+"ms linear",width:"0%"}),clearTimeout(t.closeTimer),t.closeTimer=setTimeout((function(){t.close()}),t.options.timeout))}function h(t){t.options.timeout&&t.closeTimer&&(clearTimeout(t.closeTimer),t.closeTimer=-1,t.options.progressBar&&t.progressDom&&n.css(t.progressDom,{transition:"width 0ms linear",width:"100%"}))}function p(t,e){t.listeners.hasOwnProperty(e)&&t.listeners[e].forEach((function(e){"function"==typeof e&&e.apply(t)}))}e.Defaults={type:"alert",layout:"topRight",theme:"mint",text:"",timeout:!1,progressBar:!0,closeWith:["click"],animation:{open:"noty_effects_open",close:"noty_effects_close"},id:!1,force:!1,killer:!1,queue:"global",container:!1,buttons:[],callbacks:{beforeShow:null,onShow:null,afterShow:null,onClose:null,afterClose:null,onClick:null,onHover:null,onTemplate:null},sounds:{sources:[],volume:1,conditions:[]},titleCount:{conditions:[]},modal:!1,visibilityControl:!1}},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.NotyButton=void 0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(o(0));e.NotyButton=function t(e,o,i){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dom=document.createElement("button"),this.dom.innerHTML=e,this.id=s.id=s.id||n.generateID("button"),this.cb=i,Object.keys(s).forEach((function(t){r.dom.setAttribute(t,s[t])})),n.addClass(this.dom,o||"noty_btn"),this}},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"/service-worker.js";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.subData={},this.workerPath=e,this.listeners={onPermissionGranted:[],onPermissionDenied:[],onSubscriptionSuccess:[],onSubscriptionCancel:[],onWorkerError:[],onWorkerSuccess:[],onWorkerNotSupported:[]},this}return n(t,[{key:"on",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"fire",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.listeners.hasOwnProperty(t)&&this.listeners[t].forEach((function(t){"function"==typeof t&&t.apply(e,o)}))}},{key:"create",value:function(){console.log("NOT IMPLEMENTED YET")}},{key:"isSupported",value:function(){var t=!1;try{t=window.Notification||window.webkitNotifications||navigator.mozNotification||window.external&&void 0!==window.external.msIsSiteMode()}catch(t){}return t}},{key:"getPermissionStatus",value:function(){var t="default";if(window.Notification&&window.Notification.permissionLevel)t=window.Notification.permissionLevel;else if(window.webkitNotifications&&window.webkitNotifications.checkPermission)switch(window.webkitNotifications.checkPermission()){case 1:t="default";break;case 0:t="granted";break;default:t="denied"}else window.Notification&&window.Notification.permission?t=window.Notification.permission:navigator.mozNotification?t="granted":window.external&&void 0!==window.external.msIsSiteMode()&&(t=window.external.msIsSiteMode()?"granted":"default");return t.toString().toLowerCase()}},{key:"getEndpoint",value:function(t){var e=t.endpoint,o=t.subscriptionId;return o&&-1===e.indexOf(o)&&(e+="/"+o),e}},{key:"isSWRegistered",value:function(){try{return"activated"===navigator.serviceWorker.controller.state}catch(t){return!1}}},{key:"unregisterWorker",value:function(){var t=this;"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then((function(e){var o=!0,n=!1,i=void 0;try{for(var r,s=e[Symbol.iterator]();!(o=(r=s.next()).done);o=!0)r.value.unregister(),t.fire("onSubscriptionCancel")}catch(t){n=!0,i=t}finally{try{!o&&s.return&&s.return()}finally{if(n)throw i}}}))}},{key:"requestSubscription",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=this,n=this.getPermissionStatus(),i=function(n){"granted"===n?(t.fire("onPermissionGranted"),"serviceWorker"in navigator?navigator.serviceWorker.register(t.workerPath).then((function(){navigator.serviceWorker.ready.then((function(t){o.fire("onWorkerSuccess"),t.pushManager.subscribe({userVisibleOnly:e}).then((function(t){var e=t.getKey("p256dh"),n=t.getKey("auth");o.subData={endpoint:o.getEndpoint(t),p256dh:e?window.btoa(String.fromCharCode.apply(null,new Uint8Array(e))):null,auth:n?window.btoa(String.fromCharCode.apply(null,new Uint8Array(n))):null},o.fire("onSubscriptionSuccess",[o.subData])})).catch((function(t){o.fire("onWorkerError",[t])}))}))})):o.fire("onWorkerNotSupported")):"denied"===n&&(t.fire("onPermissionDenied"),t.unregisterWorker())};"default"===n?window.Notification&&window.Notification.requestPermission?window.Notification.requestPermission(i):window.webkitNotifications&&window.webkitNotifications.checkPermission&&window.webkitNotifications.requestPermission(i):i(n)}}]),t}()},function(t,e,o){(function(e,n){var i;i=function(){function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,s=void 0,a=void 0,u=function(t,e){m[r]=t,m[r+1]=e,2===(r+=2)&&(a?a(v):_())},l="undefined"!=typeof window?window:void 0,c=l||{},f=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var t=setTimeout;return function(){return t(v,1)}}var m=new Array(1e3);function v(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=a.deepExtend({},u.Defaults,e),u.Store[this.options.id]?u.Store[this.options.id]:(this.id=this.options.id||a.generateID("bar"),this.closeTimer=-1,this.barDom=null,this.layoutDom=null,this.progressDom=null,this.showing=!1,this.shown=!1,this.closed=!1,this.closing=!1,this.killable=this.options.timeout||this.options.closeWith.length>0,this.hasSound=this.options.sounds.sources.length>0,this.soundPlayed=!1,this.listeners={beforeShow:[],onShow:[],afterShow:[],onClose:[],afterClose:[],onClick:[],onHover:[],onTemplate:[]},this.promises={show:null,close:null},this.on("beforeShow",this.options.callbacks.beforeShow),this.on("onShow",this.options.callbacks.onShow),this.on("afterShow",this.options.callbacks.afterShow),this.on("onClose",this.options.callbacks.onClose),this.on("afterClose",this.options.callbacks.afterClose),this.on("onClick",this.options.callbacks.onClick),this.on("onHover",this.options.callbacks.onHover),this.on("onTemplate",this.options.callbacks.onTemplate),this)}return n(t,[{key:"on",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"show",value:function(){var e=this;if(this.showing||this.shown)return this;!0===this.options.killer?t.closeAll():"string"==typeof this.options.killer&&t.closeAll(this.options.killer);var o=u.getQueueCounts(this.options.queue);if(o.current>=o.maxVisible||u.PageHidden&&this.options.visibilityControl)return u.addToQueue(this),u.PageHidden&&this.hasSound&&a.inArray("docHidden",this.options.sounds.conditions)&&a.createAudioElements(this),u.PageHidden&&a.inArray("docHidden",this.options.titleCount.conditions)&&u.docTitle.increment(),this;if(u.Store[this.id]=this,u.fire(this,"beforeShow"),this.showing=!0,this.closing)return this.showing=!1,this;if(u.build(this),u.handleModal(this),this.options.force?this.layoutDom.insertBefore(this.barDom,this.layoutDom.firstChild):this.layoutDom.appendChild(this.barDom),this.hasSound&&!this.soundPlayed&&a.inArray("docVisible",this.options.sounds.conditions)&&a.createAudioElements(this),a.inArray("docVisible",this.options.titleCount.conditions)&&u.docTitle.increment(),this.shown=!0,this.closed=!1,u.hasButtons(this)&&Object.keys(this.options.buttons).forEach((function(t){var o=e.barDom.querySelector("#"+e.options.buttons[t].id);a.addListener(o,"click",(function(o){a.stopPropagation(o),e.options.buttons[t].cb(e)}))})),this.progressDom=this.barDom.querySelector(".noty_progressbar"),a.inArray("click",this.options.closeWith)&&(a.addClass(this.barDom,"noty_close_with_click"),a.addListener(this.barDom,"click",(function(t){a.stopPropagation(t),u.fire(e,"onClick"),e.close()}),!1)),a.addListener(this.barDom,"mouseenter",(function(){u.fire(e,"onHover")}),!1),this.options.timeout&&a.addClass(this.barDom,"noty_has_timeout"),this.options.progressBar&&a.addClass(this.barDom,"noty_has_progressbar"),a.inArray("button",this.options.closeWith)){a.addClass(this.barDom,"noty_close_with_button");var n=document.createElement("div");a.addClass(n,"noty_close_button"),n.innerHTML="×",this.barDom.appendChild(n),a.addListener(n,"click",(function(t){a.stopPropagation(t),e.close()}),!1)}return u.fire(this,"onShow"),null===this.options.animation.open?this.promises.show=new s.default((function(t){t()})):"function"==typeof this.options.animation.open?this.promises.show=new s.default(this.options.animation.open.bind(this)):(a.addClass(this.barDom,this.options.animation.open),this.promises.show=new s.default((function(t){a.addListener(e.barDom,a.animationEndEvents,(function(){a.removeClass(e.barDom,e.options.animation.open),t()}))}))),this.promises.show.then((function(){var t=e;setTimeout((function(){u.openFlow(t)}),100)})),this}},{key:"stop",value:function(){return u.dequeueClose(this),this}},{key:"resume",value:function(){return u.queueClose(this),this}},{key:"setTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){if(this.stop(),this.options.timeout=t,this.barDom){this.options.timeout?a.addClass(this.barDom,"noty_has_timeout"):a.removeClass(this.barDom,"noty_has_timeout");var e=this;setTimeout((function(){e.resume()}),100)}return this}))},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(this.barDom.querySelector(".noty_body").innerHTML=t),e&&(this.options.text=t),this}},{key:"setType",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(a.classList(this.barDom).split(" ").forEach((function(t){"noty_type__"===t.substring(0,11)&&a.removeClass(e.barDom,t)})),a.addClass(this.barDom,"noty_type__"+t)),o&&(this.options.type=t),this}},{key:"setTheme",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(a.classList(this.barDom).split(" ").forEach((function(t){"noty_theme__"===t.substring(0,12)&&a.removeClass(e.barDom,t)})),a.addClass(this.barDom,"noty_theme__"+t)),o&&(this.options.theme=t),this}},{key:"close",value:function(){var t=this;return this.closed?this:this.shown?(u.fire(this,"onClose"),this.closing=!0,null===this.options.animation.close||!1===this.options.animation.close?this.promises.close=new s.default((function(t){t()})):"function"==typeof this.options.animation.close?this.promises.close=new s.default(this.options.animation.close.bind(this)):(a.addClass(this.barDom,this.options.animation.close),this.promises.close=new s.default((function(e){a.addListener(t.barDom,a.animationEndEvents,(function(){t.options.force?a.remove(t.barDom):u.ghostFix(t),e()}))}))),this.promises.close.then((function(){u.closeFlow(t),u.handleModalClose(t)})),this.closed=!0,this):(u.removeFromQueue(this),this)}}],[{key:"closeAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.keys(u.Store).forEach((function(e){t?u.Store[e].options.queue===t&&u.Store[e].killable&&u.Store[e].close():u.Store[e].killable&&u.Store[e].close()})),this}},{key:"clearQueue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";return u.Queues.hasOwnProperty(t)&&(u.Queues[t].queue=[]),this}},{key:"overrideDefaults",value:function(t){return u.Defaults=a.deepExtend({},u.Defaults,t),this}},{key:"setMaxVisible",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.DefaultMaxVisible,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return u.Queues.hasOwnProperty(e)||(u.Queues[e]={maxVisible:t,queue:[]}),u.Queues[e].maxVisible=t,this}},{key:"button",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new l.NotyButton(t,e,o,n)}},{key:"version",value:function(){return"3.2.0-beta"}},{key:"Push",value:function(t){return new c.Push(t)}},{key:"Queues",get:function(){return u.Queues}},{key:"PageHidden",get:function(){return u.PageHidden}}]),t}();e.default=d,"undefined"!=typeof window&&a.visibilityChangeFlow(),t.exports=e.default},function(t,e){var o,n,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:r}catch(t){o=r}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var t=a(d);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f1)for(var o=1;o=5.3", - "php-flasher/flasher": "^1.13" + "php-flasher/flasher": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Noty/Symfony/Resources/config/config.yaml b/src/Noty/Symfony/Resources/config/config.yaml index b9b8acda..2aa17aae 100644 --- a/src/Noty/Symfony/Resources/config/config.yaml +++ b/src/Noty/Symfony/Resources/config/config.yaml @@ -1,6 +1,12 @@ flasher_noty: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.2.4/dist/flasher-noty.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js' local: - '/vendor/flasher/flasher-noty.min.js' + + styles: + cdn: + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css' + local: + - '/vendor/flasher/flasher-noty.min.css' diff --git a/src/Noty/Symfony/composer.json b/src/Noty/Symfony/composer.json index 2a504561..134a4003 100644 --- a/src/Noty/Symfony/composer.json +++ b/src/Noty/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-noty": "^1.13", - "php-flasher/flasher-symfony": "^1.13" + "php-flasher/flasher-noty": "^1.15", + "php-flasher/flasher-symfony": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Notyf/Laravel/Resources/config.php b/src/Notyf/Laravel/Resources/config.php index fcaad624..a8555ede 100644 --- a/src/Notyf/Laravel/Resources/config.php +++ b/src/Notyf/Laravel/Resources/config.php @@ -8,10 +8,18 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.2.4/dist/flasher-notyf.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js', ), 'local' => array( '/vendor/flasher/flasher-notyf.min.js', ), ), + 'styles' => array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-notyf.min.css', + ), + ), ); diff --git a/src/Notyf/Laravel/composer.json b/src/Notyf/Laravel/composer.json index f5d8c81d..671b77be 100644 --- a/src/Notyf/Laravel/composer.json +++ b/src/Notyf/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.13", - "php-flasher/flasher-notyf": "^1.13" + "php-flasher/flasher-laravel": "^1.15", + "php-flasher/flasher-notyf": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Notyf/Prime/NotyfPlugin.php b/src/Notyf/Prime/NotyfPlugin.php index 3225bb23..4fb80abb 100644 --- a/src/Notyf/Prime/NotyfPlugin.php +++ b/src/Notyf/Prime/NotyfPlugin.php @@ -18,11 +18,26 @@ class NotyfPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.2.4/dist/flasher-notyf.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js', ), 'local' => array( '/vendor/flasher/flasher-notyf.min.js', ), ); } + + /** + * {@inheritdoc} + */ + public function getStyles() + { + return array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-notyf.min.css', + ), + ); + } } diff --git a/src/Notyf/Prime/Resources/assets/flasher-notyf.min.css b/src/Notyf/Prime/Resources/assets/flasher-notyf.min.css new file mode 100644 index 00000000..bdd85b3a --- /dev/null +++ b/src/Notyf/Prime/Resources/assets/flasher-notyf.min.css @@ -0,0 +1,2 @@ +.notyf__icon--info,.notyf__icon--warning{background:#fff;border-radius:50%;box-sizing:border-box;display:block;height:1em;margin:0 auto;position:relative;width:1em}.notyf__icon--info:after,.notyf__icon--info:before,.notyf__icon--warning:after,.notyf__icon--warning:before{border-width:0;box-sizing:border-box;content:"";position:absolute;transition:all 1s}.notyf__icon--info:after,.notyf__icon--info:before{background-color:currentColor;border-radius:.03em;left:50%;transform:translateX(-50%);width:.15em}.notyf__icon--info:before{height:.38em;top:.4em}.notyf__icon--info:after{box-shadow:-.06em .19em,-.06em .44em,.06em .44em;height:.13em;top:.21em}.notyf__icon--warning:after,.notyf__icon--warning:before{background-color:currentColor;border-radius:.03em;left:50%;transform:translateX(-50%);width:.15em}.notyf__icon--warning:before{height:.38em;top:.21em}.notyf__icon--warning:after{height:.13em;top:.65em} +@-webkit-keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@-webkit-keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@-webkit-keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}.notyf{align-items:flex-end;box-sizing:border-box;color:#fff;display:flex;flex-direction:column;height:100%;justify-content:flex-end;left:0;padding:20px;pointer-events:none;position:fixed;top:0;width:100%;z-index:9999}.notyf__icon--error,.notyf__icon--success{background:#fff;border-radius:50%;display:block;height:21px;margin:0 auto;position:relative;width:21px}.notyf__icon--error:after,.notyf__icon--error:before{background:currentColor;border-radius:3px;content:"";display:block;height:12px;left:9px;position:absolute;top:5px;width:3px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{background:currentColor;border-radius:3px;content:"";display:block;position:absolute;width:3px}.notyf__icon--success:after{height:6px;left:6px;top:9px;transform:rotate(-45deg)}.notyf__icon--success:before{height:11px;left:10px;top:5px;transform:rotate(45deg)}.notyf__toast{-webkit-animation:notyf-fadeinup .3s ease-in forwards;animation:notyf-fadeinup .3s ease-in forwards;border-radius:2px;box-shadow:0 3px 7px 0 rgba(0,0,0,.25);box-sizing:border-box;display:block;flex-shrink:0;max-width:300px;overflow:hidden;padding:0 15px;pointer-events:auto;position:relative;transform:translateY(25%)}.notyf__toast--disappear{-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s;transform:translateY(0)}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{-webkit-animation:notyf-fadeoutright .3s forwards;animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translateX(0)}.notyf__toast--disappear .notyf__message{-webkit-animation-delay:.05s;animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{-webkit-animation:ripple .4s ease-out forwards;animation:ripple .4s ease-out forwards;border-radius:50%;height:400px;position:absolute;right:0;top:0;transform:scale(0) translateY(-51%) translateX(13%);transform-origin:bottom right;width:400px;z-index:5}.notyf__wrapper{align-items:center;border-radius:3px;display:flex;padding-bottom:17px;padding-right:15px;padding-top:17px;position:relative;z-index:10}.notyf__icon{-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.3s;animation-delay:.3s;font-size:1.3em;margin-right:13px;opacity:0;text-align:center;width:22px}.notyf__dismiss{-webkit-animation:notyf-fadeinleft .3s forwards;animation:notyf-fadeinleft .3s forwards;-webkit-animation-delay:.35s;animation-delay:.35s;height:100%;margin-right:-15px;opacity:0;position:absolute;right:0;top:0;width:26px}.notyf__dismiss-btn{background-color:rgba(0,0,0,.25);border:none;cursor:pointer;height:100%;opacity:.35;outline:none;transition:opacity .2s ease,background-color .2s ease;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{background:#fff;border-radius:3px;content:"";height:12px;left:calc(50% - 1px);position:absolute;top:calc(50% - 5px);width:2px}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{background-color:rgba(0,0,0,.15);opacity:.7}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s;line-height:1.5em;opacity:0;position:relative;vertical-align:middle}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{-webkit-animation-duration:.5s;animation-duration:.5s;height:600px;width:600px}.notyf__toast{border-radius:0;box-shadow:0 -2px 7px 0 rgba(0,0,0,.13);max-width:none;width:100%}.notyf__dismiss{width:56px}} \ No newline at end of file diff --git a/src/Notyf/Prime/Resources/assets/flasher-notyf.min.js b/src/Notyf/Prime/Resources/assets/flasher-notyf.min.js index 2a26d8f3..e3d7e5cf 100644 --- a/src/Notyf/Prime/Resources/assets/flasher-notyf.min.js +++ b/src/Notyf/Prime/Resources/assets/flasher-notyf.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@flasher/flasher")):"function"==typeof define&&define.amd?define(["@flasher/flasher"],e):((t="undefined"!=typeof globalThis?globalThis:t||self).flasher=t.flasher||{},t.flasher.notyf=e(t.flasher))}(this,(function(t){"use strict";var e=[],n=[];function o(t,o){if(t&&"undefined"!=typeof document){var i,a=!0===o.prepend?"prepend":"append",r=!0===o.singleTag,s="string"==typeof o.container?document.querySelector(o.container):document.getElementsByTagName("head")[0];if(r){var f=e.indexOf(s);-1===f&&(f=e.push(s)-1,n[f]={}),i=n[f]&&n[f][a]?n[f][a]:n[f][a]=p()}else i=p();65279===t.charCodeAt(0)&&(t=t.substring(1)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(document.createTextNode(t))}function p(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),o.attributes)for(var e=Object.keys(o.attributes),n=0;n=5.3", - "php-flasher/flasher": "^1.13" + "php-flasher/flasher": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Notyf/Symfony/Resources/config/config.yaml b/src/Notyf/Symfony/Resources/config/config.yaml index 0551ead4..ff7d23bc 100644 --- a/src/Notyf/Symfony/Resources/config/config.yaml +++ b/src/Notyf/Symfony/Resources/config/config.yaml @@ -1,6 +1,11 @@ flasher_notyf: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.2.4/dist/flasher-notyf.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js' local: - '/vendor/flasher/flasher-notyf.min.js' + styles: + cdn: + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css' + local: + - '/vendor/flasher/flasher-notyf.min.css' diff --git a/src/Notyf/Symfony/composer.json b/src/Notyf/Symfony/composer.json index aa5cb450..95cda4e4 100644 --- a/src/Notyf/Symfony/composer.json +++ b/src/Notyf/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-notyf": "^1.13", - "php-flasher/flasher-symfony": "^1.13" + "php-flasher/flasher-notyf": "^1.15", + "php-flasher/flasher-symfony": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Pnotify/Laravel/Resources/config.php b/src/Pnotify/Laravel/Resources/config.php index db4ff807..1d6ed5eb 100644 --- a/src/Pnotify/Laravel/Resources/config.php +++ b/src/Pnotify/Laravel/Resources/config.php @@ -8,10 +8,18 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.2.4/dist/flasher-pnotify.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js', ), 'local' => array( '/vendor/flasher/flasher-pnotify.min.js', ), ), + 'styles' => array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-pnotify.min.css', + ), + ), ); diff --git a/src/Pnotify/Laravel/composer.json b/src/Pnotify/Laravel/composer.json index 103560ee..8ebbd1d5 100644 --- a/src/Pnotify/Laravel/composer.json +++ b/src/Pnotify/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.13", - "php-flasher/flasher-pnotify": "^1.13" + "php-flasher/flasher-laravel": "^1.15", + "php-flasher/flasher-pnotify": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Pnotify/Prime/PnotifyPlugin.php b/src/Pnotify/Prime/PnotifyPlugin.php index e6897dbb..78093066 100644 --- a/src/Pnotify/Prime/PnotifyPlugin.php +++ b/src/Pnotify/Prime/PnotifyPlugin.php @@ -18,11 +18,26 @@ class PnotifyPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.2.4/dist/flasher-pnotify.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js', ), 'local' => array( '/vendor/flasher/flasher-pnotify.min.js', ), ); } + + /** + * {@inheritdoc} + */ + public function getStyles() + { + return array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-pnotify.min.css', + ), + ); + } } diff --git a/src/Pnotify/Prime/Resources/assets/flasher-pnotify.min.css b/src/Pnotify/Prime/Resources/assets/flasher-pnotify.min.css new file mode 100644 index 00000000..41fb8247 --- /dev/null +++ b/src/Pnotify/Prime/Resources/assets/flasher-pnotify.min.css @@ -0,0 +1,2 @@ +body>.pnotify.pnotify-positioned{position:fixed;z-index:100040}body>.pnotify.pnotify-modal{z-index:100042}.pnotify{display:none;height:auto;opacity:0;transition:opacity .1s linear}.pnotify.pnotify-positioned{position:absolute;z-index:1}.pnotify.pnotify-modal{z-index:3}.pnotify.pnotify-in{display:block;opacity:1}.pnotify.pnotify-initial{display:block}.pnotify-hidden{visibility:hidden}.pnotify.pnotify-move{transition:left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-fade-slow{opacity:0;transition:opacity .4s linear}.pnotify.pnotify-fade-slow.pnotify.pnotify-move{transition:opacity .4s linear,left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-fade-normal{opacity:0;transition:opacity .25s linear}.pnotify.pnotify-fade-normal.pnotify.pnotify-move{transition:opacity .25s linear,left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-fade-fast{opacity:0;transition:opacity .1s linear}.pnotify.pnotify-fade-fast.pnotify.pnotify-move{transition:opacity .1s linear,left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-masking{display:block;-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-masking.pnotify-stack-up{-webkit-mask-image:linear-gradient(0deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(0deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-masking.pnotify-stack-left{-webkit-mask-image:linear-gradient(270deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(270deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-masking.pnotify-stack-right{-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(90deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-fade-in,.pnotify.pnotify-masking-in{opacity:1}.pnotify .pnotify-shadow{-webkit-box-shadow:0 6px 28px 0 rgba(0,0,0,.1);-moz-box-shadow:0 6px 28px 0 rgba(0,0,0,.1);box-shadow:0 6px 28px 0 rgba(0,0,0,.1)}.pnotify-container{background-position:0 0;height:100%;margin:0;padding:.8em;position:relative}.pnotify-container:after{clear:both;content:" ";display:block;height:0;visibility:hidden}.pnotify-closer,.pnotify-sticker{cursor:pointer;float:right;margin-left:.5em}[dir=rtl] .pnotify-closer,[dir=rtl] .pnotify-sticker{float:left;margin-left:0;margin-right:.5em}.pnotify-title{display:block;margin-bottom:.4em;margin-top:0;white-space:pre-line}.pnotify-text-with-max-height{overflow-y:auto;overscroll-behavior:contain;padding-bottom:.03em}.pnotify.pnotify-with-icon .pnotify-content{margin-left:24px}[dir=rtl] .pnotify.pnotify-with-icon .pnotify-content{margin-left:0;margin-right:24px}.pnotify-pre-line{white-space:pre-line}.pnotify-icon,.pnotify-icon span{display:block;float:left}[dir=rtl] .pnotify-icon,[dir=rtl] .pnotify-icon span{float:right}.pnotify-modal-overlay{align-items:flex-end;background-color:rgba(0,0,0,.6);display:flex;height:100%;justify-content:center;left:0;opacity:0;padding:0;position:absolute;top:0;transition:opacity .25s linear;width:100%;z-index:2}.pnotify-modal-overlay-up{align-items:flex-start}.pnotify-modal-overlay-left{align-items:center;justify-content:flex-start}.pnotify-modal-overlay-right{align-items:center;justify-content:flex-end}.pnotify-modal-overlay.pnotify-modal-overlay-in{opacity:1}.pnotify-modal-overlay-closes:after{color:#fff;content:"×";font-family:Arial;font-size:3rem;text-shadow:0 0 .4rem #fff}body>.pnotify-modal-overlay{position:fixed;z-index:100041} +[data-pnotify].brighttheme-elem{border-radius:0}[data-pnotify].brighttheme-elem,[data-pnotify].brighttheme-elem.pnotify-mode-light{--notice-background-color:#ffffa2;--notice-border-color:#ff0;--notice-text-color:#4f4f00;--notice-icon-filter:invert(25%) sepia(12%) saturate(7007%) hue-rotate(38deg) brightness(99%) contrast(101%);--info-background-color:#8fcedd;--info-border-color:#0286a5;--info-text-color:#012831;--info-icon-filter:invert(11%) sepia(37%) saturate(1946%) hue-rotate(155deg) brightness(95%) contrast(99%);--success-background-color:#aff29a;--success-border-color:#35db00;--success-text-color:#104300;--success-icon-filter:invert(17%) sepia(94%) saturate(1055%) hue-rotate(70deg) brightness(90%) contrast(103%);--error-background-color:#ffaba2;--error-border-color:#ff1800;--error-text-color:#4f0800;--error-icon-filter:invert(9%) sepia(27%) saturate(7347%) hue-rotate(359deg) brightness(96%) contrast(108%)}@media (prefers-color-scheme:dark){[data-pnotify].brighttheme-elem.pnotify-mode-no-preference{--notice-background-color:#4f4f00;--notice-border-color:#282814;--notice-text-color:#ffffa2;--notice-icon-filter:invert(92%) sepia(18%) saturate(781%) hue-rotate(6deg) brightness(106%) contrast(107%);--info-background-color:#012831;--info-border-color:#0c1618;--info-text-color:#8fcedd;--info-icon-filter:invert(85%) sepia(14%) saturate(933%) hue-rotate(153deg) brightness(92%) contrast(87%);--success-background-color:#104300;--success-border-color:#152111;--success-text-color:#aff29a;--success-icon-filter:invert(90%) sepia(9%) saturate(1647%) hue-rotate(52deg) brightness(103%) contrast(90%);--error-background-color:#4f0800;--error-border-color:#281614;--error-text-color:#ffaba2;--error-icon-filter:invert(70%) sepia(24%) saturate(717%) hue-rotate(315deg) brightness(103%) contrast(104%)}}[data-pnotify].brighttheme-elem.pnotify-mode-dark{--notice-background-color:#4f4f00;--notice-border-color:#282814;--notice-text-color:#ffffa2;--notice-icon-filter:invert(92%) sepia(18%) saturate(781%) hue-rotate(6deg) brightness(106%) contrast(107%);--info-background-color:#012831;--info-border-color:#0c1618;--info-text-color:#8fcedd;--info-icon-filter:invert(85%) sepia(14%) saturate(933%) hue-rotate(153deg) brightness(92%) contrast(87%);--success-background-color:#104300;--success-border-color:#152111;--success-text-color:#aff29a;--success-icon-filter:invert(90%) sepia(9%) saturate(1647%) hue-rotate(52deg) brightness(103%) contrast(90%);--error-background-color:#4f0800;--error-border-color:#281614;--error-text-color:#ffaba2;--error-icon-filter:invert(70%) sepia(24%) saturate(717%) hue-rotate(315deg) brightness(103%) contrast(104%)}[data-pnotify] .brighttheme-notice{--brighttheme-background-color:var(--notice-background-color);--brighttheme-border-color:var(--notice-border-color);--brighttheme-text-color:var(--notice-text-color);--brighttheme-icon-filter:var(--notice-icon-filter);--brighttheme-primary-button-background-color:var(--notice-border-color);--brighttheme-primary-button-text-color:var(--notice-text-color)}[data-pnotify] .brighttheme-info{--brighttheme-background-color:var(--info-background-color);--brighttheme-border-color:var(--info-border-color);--brighttheme-text-color:var(--info-text-color);--brighttheme-icon-filter:var(--info-icon-filter);--brighttheme-primary-button-background-color:var(--info-border-color);--brighttheme-primary-button-text-color:var(--info-text-color)}[data-pnotify] .brighttheme-success{--brighttheme-background-color:var(--success-background-color);--brighttheme-border-color:var(--success-border-color);--brighttheme-text-color:var(--success-text-color);--brighttheme-icon-filter:var(--success-icon-filter);--brighttheme-primary-button-background-color:var(--success-border-color);--brighttheme-primary-button-text-color:var(--success-text-color)}[data-pnotify] .brighttheme-error{--brighttheme-background-color:var(--error-background-color);--brighttheme-border-color:var(--error-border-color);--brighttheme-text-color:var(--error-text-color);--brighttheme-icon-filter:var(--error-icon-filter);--brighttheme-primary-button-background-color:var(--error-border-color);--brighttheme-primary-button-text-color:var(--error-text-color)}[data-pnotify] .brighttheme-container{background-color:var(--brighttheme-background-color);border:0 solid var(--brighttheme-border-color);color:var(--brighttheme-text-color);padding:1.3rem}[data-pnotify] .brighttheme-error{background-image:repeating-linear-gradient(135deg,transparent,transparent 35px,hsla(0,0%,100%,.3) 0,hsla(0,0%,100%,.3) 70px)}[data-pnotify].pnotify-with-icon .brighttheme-content{margin-left:calc(1.3rem + 16px)}[dir=rtl] [data-pnotify].pnotify-with-icon .brighttheme-content{margin-left:0;margin-right:calc(1.3rem + 16px)}[data-pnotify] .brighttheme-title{font-size:1.2rem;line-height:1.4rem;margin-bottom:0;margin-top:-.1rem}[data-pnotify] .brighttheme-text{font-size:1rem;line-height:1.2rem;margin-top:0}[data-pnotify] .brighttheme-confirm,[data-pnotify] .brighttheme-title+.brighttheme-text{margin-top:1rem}[data-pnotify] .brighttheme-closer,[data-pnotify] .brighttheme-icon,[data-pnotify] .brighttheme-sticker{align-items:center;display:flex;justify-content:center}[data-pnotify] .brighttheme-icon,[data-pnotify] .brighttheme-icon>span,[data-pnotify] .brighttheme-icon>span:after{height:1.2rem;line-height:1.2rem;width:1.2rem}[data-pnotify] .brighttheme-icon-closer,[data-pnotify] .brighttheme-icon-closer:after,[data-pnotify] .brighttheme-icon-sticker,[data-pnotify] .brighttheme-icon-sticker:after{height:1rem;line-height:1rem;width:1rem}[data-pnotify] .brighttheme-icon-notice:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMsMTNIMTFWN0gxM00xMywxN0gxMVYxNUgxM00xMiwyQTEwLDEwIDAgMCwwIDIsMTJBMTAsMTAgMCAwLDAgMTIsMjJBMTAsMTAgMCAwLDAgMjIsMTJBMTAsMTAgMCAwLDAgMTIsMloiLz48L3N2Zz4=);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-info:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMsOUgxMVY3SDEzTTEzLDE3SDExVjExSDEzTTEyLDJBMTAsMTAgMCAwLDAgMiwxMkExMCwxMCAwIDAsMCAxMiwyMkExMCwxMCAwIDAsMCAyMiwxMkExMCwxMCAwIDAsMCAxMiwyWiIvPjwvc3ZnPg==);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-success:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIgMkM2LjUgMiAyIDYuNSAyIDEyUzYuNSAyMiAxMiAyMiAyMiAxNy41IDIyIDEyIDE3LjUgMiAxMiAyTTEwIDE3TDUgMTJMNi40MSAxMC41OUwxMCAxNC4xN0wxNy41OSA2LjU4TDE5IDhMMTAgMTdaIi8+PC9zdmc+);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-error:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMsMTRIMTFWMTBIMTNNMTMsMThIMTFWMTZIMTNNMSwyMUgyM0wxMiwyTDEsMjFaIi8+PC9zdmc+);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-closer:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTksNi40MUwxNy41OSw1TDEyLDEwLjU5TDYuNDEsNUw1LDYuNDFMMTAuNTksMTJMNSwxNy41OUw2LjQxLDE5TDEyLDEzLjQxTDE3LjU5LDE5TDE5LDE3LjU5TDEzLjQxLDEyTDE5LDYuNDFaIi8+PC9zdmc+);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-sticker:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTYsMTJWNEgxN1YySDdWNEg4VjEyTDYsMTRWMTZIMTEuMlYyMkgxMi44VjE2SDE4VjE0TDE2LDEyWiIvPjwvc3ZnPg==);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-sticker.brighttheme-icon-stuck:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMiw1LjI3TDMuMjgsNEwyMCwyMC43MkwxOC43MywyMkwxMi44LDE2LjA3VjIySDExLjJWMTZINlYxNEw4LDEyVjExLjI3TDIsNS4yN00xNiwxMkwxOCwxNFYxNkgxNy44Mkw4LDYuMThWNEg3VjJIMTdWNEgxNlYxMloiLz48L3N2Zz4=);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-prompt-bar{margin-bottom:1rem}[data-pnotify] .brighttheme-action-bar,[data-pnotify] .brighttheme-prompt-bar{box-sizing:border-box;width:100%}[data-pnotify] .brighttheme-btn{background:transparent;border:none;color:var(--brighttheme-text-color);cursor:pointer;font-weight:700;padding:.4rem 1rem;text-transform:uppercase}[data-pnotify] .brighttheme-btn-primary{background-color:var(--brighttheme-primary-button-background-color);color:var(--brighttheme-primary-button-text-color)}[data-pnotify] .brighttheme-countdown{background-color:var(--brighttheme-background-color)}[data-pnotify] .brighttheme-countdown-bar{background-color:var(--brighttheme-border-color)}[data-pnotify] .brighttheme-paginate{display:inline-flex;flex-direction:column}[data-pnotify] .brighttheme-paginate-btn{background:transparent;border:0;height:1em;line-height:.5em;padding:0;width:1em}[data-pnotify] .brighttheme-paginate-previous{margin-right:0}[data-pnotify] .brighttheme-paginate-next{margin-left:0}[data-pnotify] .brighttheme-paginate-btn:disabled:after,[data-pnotify] .brighttheme-paginate-btn[aria-disabled=true]:after{opacity:.5}[data-pnotify] .brighttheme-paginate-previous:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0xMS42NyAzLjg3TDkuOSAyLjEgMCAxMmw5LjkgOS45IDEuNzctMS43N0wzLjU0IDEyeiIvPjwvc3ZnPg==);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-paginate-next:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik01Ljg4IDQuMTJMMTMuNzYgMTJsLTcuODggNy44OEw4IDIybDEwLTEwTDggMnoiLz48L3N2Zz4=);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-paginate-count-of{opacity:.8} \ No newline at end of file diff --git a/src/Pnotify/Prime/Resources/assets/flasher-pnotify.min.js b/src/Pnotify/Prime/Resources/assets/flasher-pnotify.min.js index 9f939b6d..0d0086e0 100644 --- a/src/Pnotify/Prime/Resources/assets/flasher-pnotify.min.js +++ b/src/Pnotify/Prime/Resources/assets/flasher-pnotify.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@flasher/flasher")):"function"==typeof define&&define.amd?define(["@flasher/flasher"],e):((t="undefined"!=typeof globalThis?globalThis:t||self).flasher=t.flasher||{},t.flasher.pnotify=e(t.flasher))}(this,(function(t){"use strict";var e=function(){return e=Object.assign||function(t){for(var e,n=1,i=arguments.length;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:null;i(this,t),this.a=e,this.e=this.n=null}return r(t,[{key:"m",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=C(e.nodeName),this.t=e,this.h(t)),this.i(n)}},{key:"h",value:function(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(t){for(var e=0;ev.get(T)?(M.add(I),$(_)):(w.add(T),d--):(c(L,a),d--)}for(;d--;){var C=t[d];y.has(C.key)||c(C,a)}for(;h;)$(g[h-1]);return g}function ut(t,e){for(var n={},i={},o={$$scope:1},r=t.length;r--;){var a=t[r],s=e[r];if(s){for(var c in a)c in s||(i[c]=1);for(var l in s)o[l]||(n[l]=s[l],o[l]=1);t[r]=s}else for(var f in a)o[f]=1}for(var u in i)u in n||(n[u]=void 0);return n}function dt(t){return"object"===e(t)&&null!==t?t:{}}function ht(t){t&&t.c()}function pt(t,e,n){var i=t.$$,o=i.fragment,r=i.on_mount,a=i.on_destroy,s=i.after_update;o&&o.m(e,n),X((function(){var e=r.map(k).filter($);a?a.push.apply(a,g(e)):M(e),t.$$.on_mount=[]})),s.forEach(X)}function mt(t,e){var n=t.$$;null!==n.fragment&&(M(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function gt(t,e){-1===t.$$.dirty[0]&&(V.push(t),Y(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:{},i=n.start,o=void 0===i?"oldest":i,r=n.dir,a=void 0===r?"newer":r,s=n.skipModuleHandled,c=void 0!==s&&s;if("head"===o||"newest"===o&&"top"===this.push||"oldest"===o&&"bottom"===this.push)e=this._noticeHead.next;else if("tail"===o||"newest"===o&&"bottom"===this.push||"oldest"===o&&"top"===this.push)e=this._noticeTail.prev;else{if(!this._noticeMap.has(o))throw new Error("Invalid start param.");e=this._noticeMap.get(o)}for(;e.notice;){var l=e.notice;if("prev"===a||"top"===this.push&&"newer"===a||"bottom"===this.push&&"older"===a)e=e.prev;else{if(!("next"===a||"top"===this.push&&"older"===a||"bottom"===this.push&&"newer"===a))throw new Error("Invalid dir param.");e=e.next}if(!(c&&l.getModuleHandled()||!1!==t(l)))break}}},{key:"close",value:function(t){this.forEach((function(e){return e.close(t,!1,!1)}))}},{key:"open",value:function(t){this.forEach((function(e){return e.open(t)}))}},{key:"openLast",value:function(){this.forEach((function(t){if(-1===["opening","open","waiting"].indexOf(t.getState()))return t.open(),!1}),{start:"newest",dir:"older"})}},{key:"swap",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return-1===["open","opening","closing"].indexOf(t.getState())?Promise.reject():(this._swapping=e,t.close(i,!1,o).then((function(){return e.open(i)})).finally((function(){n._swapping=!1})))}},{key:"on",value:function(t,e){var n=this;return t in this._callbacks||(this._callbacks[t]=[]),this._callbacks[t].push(e),function(){n._callbacks[t].splice(n._callbacks[t].indexOf(e),1)}}},{key:"fire",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stack=this,t in this._callbacks&&this._callbacks[t].forEach((function(t){return t(e)}))}},{key:"position",value:function(){var t=this;this.positioned&&this._length>0?(this.fire("beforePosition"),this._resetPositionData(),this.forEach((function(e){t._positionNotice(e)}),{start:"head",dir:"next",skipModuleHandled:!0}),this.fire("afterPosition")):(delete this._nextpos1,delete this._nextpos2)}},{key:"queuePosition",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;this._posTimer&&clearTimeout(this._posTimer),this._posTimer=setTimeout((function(){return t.position()}),e)}},{key:"_resetPositionData",value:function(){this._nextpos1=this.firstpos1,this._nextpos2=this.firstpos2,this._addpos2=0}},{key:"_positionNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t===this._masking;if(this.positioned){var n=t.refs.elem;if(n&&(n.classList.contains("pnotify-in")||n.classList.contains("pnotify-initial")||e)){var i=[this.firstpos1,this.firstpos2,this._nextpos1,this._nextpos2,this._addpos2],o=i[0],r=i[1],a=i[2],s=i[3],c=i[4];n.getBoundingClientRect(),!this._animation||e||this._collapsingModalState?t._setMoveClass(""):t._setMoveClass("pnotify-move");var l,f=this.context===document.body?window.innerHeight:this.context.scrollHeight,u=this.context===document.body?window.innerWidth:this.context.scrollWidth;if(this.dir1){var d;switch(l={down:"top",up:"bottom",left:"right",right:"left"}[this.dir1],this.dir1){case"down":d=n.offsetTop;break;case"up":d=f-n.scrollHeight-n.offsetTop;break;case"left":d=u-n.scrollWidth-n.offsetLeft;break;case"right":d=n.offsetLeft}null==o&&(a=o=d)}if(this.dir1&&this.dir2){var h,p={down:"top",up:"bottom",left:"right",right:"left"}[this.dir2];switch(this.dir2){case"down":h=n.offsetTop;break;case"up":h=f-n.scrollHeight-n.offsetTop;break;case"left":h=u-n.scrollWidth-n.offsetLeft;break;case"right":h=n.offsetLeft}if(null==r&&(s=r=h),!e){var m=a+n.offsetHeight+this.spacing1,g=a+n.offsetWidth+this.spacing1;(("down"===this.dir1||"up"===this.dir1)&&m>f||("left"===this.dir1||"right"===this.dir1)&&g>u)&&(a=o,s+=c+this.spacing2,c=0)}switch(null!=s&&(n.style[p]="".concat(s,"px"),this._animation||n.style[p]),this.dir2){case"down":case"up":n.offsetHeight+(parseFloat(n.style.marginTop,10)||0)+(parseFloat(n.style.marginBottom,10)||0)>c&&(c=n.offsetHeight);break;case"left":case"right":n.offsetWidth+(parseFloat(n.style.marginLeft,10)||0)+(parseFloat(n.style.marginRight,10)||0)>c&&(c=n.offsetWidth)}}else if(this.dir1){var y,v;switch(this.dir1){case"down":case"up":v=["left","right"],y=this.context.scrollWidth/2-n.offsetWidth/2;break;case"left":case"right":v=["top","bottom"],y=f/2-n.offsetHeight/2}n.style[v[0]]="".concat(y,"px"),n.style[v[1]]="auto",this._animation||n.style[v[0]]}if(this.dir1)switch(null!=a&&(n.style[l]="".concat(a,"px"),this._animation||n.style[l]),this.dir1){case"down":case"up":a+=n.offsetHeight+this.spacing1;break;case"left":case"right":a+=n.offsetWidth+this.spacing1}else{var b=u/2-n.offsetWidth/2,x=f/2-n.offsetHeight/2;n.style.left="".concat(b,"px"),n.style.top="".concat(x,"px"),this._animation||n.style.left}e||(this.firstpos1=o,this.firstpos2=r,this._nextpos1=a,this._nextpos2=s,this._addpos2=c)}}}},{key:"_addNotice",value:function(t){var e=this;this.fire("beforeAddNotice",{notice:t});var n=function(){if(e.fire("beforeOpenNotice",{notice:t}),t.getModuleHandled())e.fire("afterOpenNotice",{notice:t});else{if(e._openNotices++,("ish"!==e.modal||!e._overlayOpen)&&e.maxOpen!==1/0&&e._openNotices>e.maxOpen&&"close"===e.maxStrategy){var n=e._openNotices-e.maxOpen;e.forEach((function(t){if(-1!==["opening","open"].indexOf(t.getState()))return t.close(!1,!1,e.maxClosureCausesWait),t===e._leader&&e._setLeader(null),!!--n}))}!0===e.modal&&e._insertOverlay(),"ish"!==e.modal||e._leader&&-1!==["opening","open","closing"].indexOf(e._leader.getState())||e._setLeader(t),"ish"===e.modal&&e._overlayOpen&&t._preventTimerClose(!0),e.fire("afterOpenNotice",{notice:t})}},i={notice:t,prev:null,next:null,beforeOpenOff:t.on("pnotify:beforeOpen",n),afterCloseOff:t.on("pnotify:afterClose",(function(){if(e.fire("beforeCloseNotice",{notice:t}),t.getModuleHandled())e.fire("afterCloseNotice",{notice:t});else{if(e._openNotices--,"ish"===e.modal&&t===e._leader&&(e._setLeader(null),e._masking&&e._setMasking(null)),!e._swapping&&e.maxOpen!==1/0&&e._openNotices=e.maxOpen))return n=!0,!1};"wait"===e.maxStrategy?(e.forEach(i,{start:t,dir:"next"}),n||e.forEach(i,{start:t,dir:"prev"})):"close"===e.maxStrategy&&e.maxClosureCausesWait&&(e.forEach(i,{start:t,dir:"older"}),n||e.forEach(i,{start:t,dir:"newer"}))}e._openNotices<=0?(e._openNotices=0,e._resetPositionData(),e._overlayOpen&&!e._swapping&&e._removeOverlay()):e._collapsingModalState||e.queuePosition(0),e.fire("afterCloseNotice",{notice:t})}}))};if("top"===this.push?(i.next=this._noticeHead.next,i.prev=this._noticeHead,i.next.prev=i,i.prev.next=i):(i.prev=this._noticeTail.prev,i.next=this._noticeTail,i.prev.next=i,i.next.prev=i),this._noticeMap.set(t,i),this._length++,this._listener||(this._listener=function(){return e.position()},this.context.addEventListener("pnotify:position",this._listener)),-1!==["open","opening","closing"].indexOf(t.getState()))n();else if("ish"===this.modal&&this.modalishFlash&&this._shouldNoticeWait(t))var o=t.on("pnotify:mount",(function(){o(),t._setMasking(!0,!1,(function(){t._setMasking(!1)})),e._resetPositionData(),e._positionNotice(e._leader),window.requestAnimationFrame((function(){e._positionNotice(t,!0)}))}));this.fire("afterAddNotice",{notice:t})}},{key:"_removeNotice",value:function(t){if(this._noticeMap.has(t)){this.fire("beforeRemoveNotice",{notice:t});var e=this._noticeMap.get(t);this._leader===t&&this._setLeader(null),this._masking===t&&this._setMasking(null),e.prev.next=e.next,e.next.prev=e.prev,e.prev=null,e.next=null,e.beforeOpenOff(),e.beforeOpenOff=null,e.afterCloseOff(),e.afterCloseOff=null,this._noticeMap.delete(t),this._length--,!this._length&&this._listener&&(this.context.removeEventListener("pnotify:position",this._listener),this._listener=null),!this._length&&this._overlayOpen&&this._removeOverlay(),-1!==["open","opening","closing"].indexOf(t.getState())&&this._handleNoticeClosed(t),this.fire("afterRemoveNotice",{notice:t})}}},{key:"_setLeader",value:function(t){var e=this;if(this.fire("beforeSetLeader",{leader:t}),this._leaderOff&&(this._leaderOff(),this._leaderOff=null),this._leader=t,this._leader){var n,i=function(){var t=null;e._overlayOpen&&(e._collapsingModalState=!0,e.forEach((function(n){n._preventTimerClose(!1),n!==e._leader&&-1!==["opening","open"].indexOf(n.getState())&&(t||(t=n),n.close(n===t,!1,!0))}),{start:e._leader,dir:"next",skipModuleHandled:!0}),e._removeOverlay()),o&&(clearTimeout(o),o=null),e.forEach((function(n){if(n!==e._leader)return"waiting"===n.getState()||n===t?(e._setMasking(n,!!t),!1):void 0}),{start:e._leader,dir:"next",skipModuleHandled:!0})},o=null,r=function(){o&&(clearTimeout(o),o=null),o=setTimeout((function(){o=null,e._setMasking(null)}),750)};this._leaderOff=(n=[this._leader.on("mouseenter",i),this._leader.on("focusin",i),this._leader.on("mouseleave",r),this._leader.on("focusout",r)],function(){return n.map((function(t){return t()}))}),this.fire("afterSetLeader",{leader:t})}else this.fire("afterSetLeader",{leader:t})}},{key:"_setMasking",value:function(t,e){var n=this;if(this._masking){if(this._masking===t)return;this._masking._setMasking(!1,e)}if(this._maskingOff&&(this._maskingOff(),this._maskingOff=null),this._masking=t,this._masking){this._resetPositionData(),this._leader&&this._positionNotice(this._leader),this._masking._setMasking(!0,e),window.requestAnimationFrame((function(){n._masking&&n._positionNotice(n._masking)}));var i,o=function(){"ish"===n.modal&&(n._insertOverlay(),n._setMasking(null,!0),n.forEach((function(t){t._preventTimerClose(!0),"waiting"===t.getState()&&t.open()}),{start:n._leader,dir:"next",skipModuleHandled:!0}))};this._maskingOff=(i=[this._masking.on("mouseenter",o),this._masking.on("focusin",o)],function(){return i.map((function(t){return t()}))})}}},{key:"_shouldNoticeWait",value:function(t){return this._swapping!==t&&!("ish"===this.modal&&this._overlayOpen)&&this.maxOpen!==1/0&&this._openNotices>=this.maxOpen&&"wait"===this.maxStrategy}},{key:"_insertOverlay",value:function(){var t=this;this._overlay||(this._overlay=document.createElement("div"),this._overlay.classList.add("pnotify-modal-overlay"),this.dir1&&this._overlay.classList.add("pnotify-modal-overlay-".concat(this.dir1)),this.overlayClose&&this._overlay.classList.add("pnotify-modal-overlay-closes"),this.context!==document.body&&(this._overlay.style.height="".concat(this.context.scrollHeight,"px"),this._overlay.style.width="".concat(this.context.scrollWidth,"px")),this._overlay.addEventListener("click",(function(e){if(t.overlayClose){if(t.fire("overlayClose",{clickEvent:e}),e.defaultPrevented)return;t._leader&&t._setLeader(null),t.forEach((function(e){-1===["closed","closing","waiting"].indexOf(e.getState())&&(e.hide||t.overlayClosesPinned?e.close():e.hide||"ish"!==t.modal||(t._leader?e.close(!1,!1,!0):t._setLeader(e)))}),{skipModuleHandled:!0}),t._overlayOpen&&t._removeOverlay()}}))),this._overlay.parentNode!==this.context&&(this.fire("beforeAddOverlay"),this._overlay.classList.remove("pnotify-modal-overlay-in"),this._overlay=this.context.insertBefore(this._overlay,this.context.firstChild),this._overlayOpen=!0,this._overlayInserted=!0,window.requestAnimationFrame((function(){t._overlay.classList.add("pnotify-modal-overlay-in"),t.fire("afterAddOverlay")}))),this._collapsingModalState=!1}},{key:"_removeOverlay",value:function(){var t=this;this._overlay.parentNode&&(this.fire("beforeRemoveOverlay"),this._overlay.classList.remove("pnotify-modal-overlay-in"),this._overlayOpen=!1,setTimeout((function(){t._overlayInserted=!1,t._overlay.parentNode&&(t._overlay.parentNode.removeChild(t._overlay),t.fire("afterRemoveOverlay"))}),250),setTimeout((function(){t._collapsingModalState=!1}),400))}},{key:"notices",get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t}},{key:"length",get:function(){return this._length}},{key:"leader",get:function(){return this._leader}}]),t}(),bt=function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:[]));function n(e){W(t,e)}return function(t){for(var i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:{});"init"===t&&Array.from(s).forEach((function(t){var n=m(t,2),i=n[0];return n[1],"init"in i&&i.init(e)}));var n=u.elem||f&&f.context||document.body;if(!n)return o("pnotify:".concat(t),e),!0;var r=new Event("pnotify:".concat(t),{bubbles:"init"===t||"mount"===t,cancelable:t.startsWith("before")});return r.detail=e,n.dispatchEvent(r),!r.defaultPrevented}function Qt(){var t=f&&f.context||document.body;if(!t)throw new Error("No context to insert this notice into.");if(!u.elem)throw new Error("Trying to insert notice before element is available.");u.elem.parentNode!==t&&t.appendChild(u.elem)}function Xt(){u.elem&&u.elem.parentNode.removeChild(u.elem)}h=function(){Yt("mount"),V&&fe().catch((function(){}))},P().$$.on_mount.push(h),function(t){P().$$.before_update.push(t)}((function(){Yt("update"),"closed"!==Lt&&"waiting"!==Lt&&st!==Zt&&(st?Zt||ve():ye()),"closed"!==Lt&&"closing"!==Lt&&f&&!f._collapsingModalState&&f.queuePosition(),Zt=st}));var qt,Kt,te,ee,ne,ie,oe,re,ae,se,ce,le=e.open,fe=void 0===le?function(t){if("opening"===Lt)return Wt;if("open"===Lt)return st&&ve(),Promise.resolve();if(!At&&f&&f._shouldNoticeWait(i))return Lt="waiting",Promise.reject();if(!Yt("beforeOpen",{immediate:t}))return Promise.reject();var e,o;Lt="opening",n(28,zt=!1),n(24,Nt="pnotify-initial pnotify-hidden");var r=new Promise((function(t,n){e=t,o=n}));Wt=r;var a=function(){st&&ve(),Lt="open",Yt("afterOpen",{immediate:t}),Wt=null,e()};return Ht?(a(),Promise.resolve()):(Qt(),window.requestAnimationFrame((function(){if("opening"!==Lt)return o(),void(Wt=null);f&&(n(0,f._animation=!1,f),"top"===f.push&&f._resetPositionData(),f._positionNotice(i),f.queuePosition(0),n(0,f._animation=!0,f)),pe(a,t)})),r)}:le,ue=e.close,de=void 0===ue?function(t,e,o){if("closing"===Lt)return Vt;if("closed"===Lt)return Promise.resolve();var r,a=function(){Yt("beforeDestroy")&&(f&&f._removeNotice(i),i.$destroy(),Yt("afterDestroy"))};if("waiting"===Lt)return o||(Lt="closed",_t&&!o&&a()),Promise.resolve();if(!Yt("beforeClose",{immediate:t,timerHide:e,waitAfterward:o}))return Promise.reject();Lt="closing",Dt=!!e,It&&"prevented"!==It&&clearTimeout&&clearTimeout(It),It=null;var s=new Promise((function(t,e){r=t}));return Vt=s,ge((function(){n(26,St=!1),Dt=!1,Lt=o?"waiting":"closed",Yt("afterClose",{immediate:t,timerHide:e,waitAfterward:o}),Vt=null,r(),o||(_t?a():Mt&&Xt())}),t),s}:ue,he=e.animateIn,pe=void 0===he?function(t,e){Et="in";var i=function e(n){if(!(n&&u.elem&&n.target!==u.elem||(u.elem&&u.elem.removeEventListener("transitionend",e),Tt&&clearTimeout(Tt),"in"!==Et))){var i=Ht;if(!i&&u.elem){var o=u.elem.getBoundingClientRect();for(var r in o)if(o[r]>0){i=!0;break}}i?(t&&t.call(),Et=!1):Tt=setTimeout(e,40)}};if("fade"!==et||e){var o=et;n(2,et="none"),n(24,Nt="pnotify-in ".concat("fade"===o?"pnotify-fade-in":"")),Q().then((function(){n(2,et=o),i()}))}else u.elem&&u.elem.addEventListener("transitionend",i),n(24,Nt="pnotify-in"),Q().then((function(){n(24,Nt="pnotify-in pnotify-fade-in"),Tt=setTimeout(i,650)}))}:he,me=e.animateOut,ge=void 0===me?function(t,e){Et="out";var i=function e(i){if(!(i&&u.elem&&i.target!==u.elem||(u.elem&&u.elem.removeEventListener("transitionend",e),Ct&&clearTimeout(Ct),"out"!==Et))){var o=Ht;if(!o&&u.elem){var r=u.elem.getBoundingClientRect();for(var a in r)if(r[a]>0){o=!0;break}}u.elem&&u.elem.style.opacity&&"0"!==u.elem.style.opacity&&o?Ct=setTimeout(e,40):(n(24,Nt=""),t&&t.call(),Et=!1)}};"fade"!==et||e?(n(24,Nt=""),Q().then((function(){i()}))):(u.elem&&u.elem.addEventListener("transitionend",i),n(24,Nt="pnotify-in"),Ct=setTimeout(i,650))}:me;function ye(){It&&"prevented"!==It&&(clearTimeout(It),It=null),Ct&&clearTimeout(Ct),"closing"===Lt&&(Lt="open",Et=!1,n(24,Nt="fade"===et?"pnotify-in pnotify-fade-in":"pnotify-in"))}function ve(){"prevented"!==It&&(ye(),lt!==1/0&&(It=setTimeout((function(){return de(!1,!0)}),isNaN(lt)?0:lt)))}return t.$$set=function(t){"modules"in t&&n(46,s=t.modules),"stack"in t&&n(0,f=t.stack),"type"in t&&n(4,y=t.type),"title"in t&&n(5,b=t.title),"titleTrusted"in t&&n(6,k=t.titleTrusted),"text"in t&&n(7,M=t.text),"textTrusted"in t&&n(8,_=t.textTrusted),"styling"in t&&n(47,I=t.styling),"icons"in t&&n(48,C=t.icons),"mode"in t&&n(9,N=t.mode),"addClass"in t&&n(10,S=t.addClass),"addModalClass"in t&&n(11,A=t.addModalClass),"addModelessClass"in t&&n(12,z=t.addModelessClass),"autoOpen"in t&&n(49,V=t.autoOpen),"width"in t&&n(50,B=t.width),"minHeight"in t&&n(51,U=t.minHeight),"maxTextHeight"in t&&n(52,X=t.maxTextHeight),"icon"in t&&n(13,K=t.icon),"animation"in t&&n(2,et=t.animation),"animateSpeed"in t&&n(14,it=t.animateSpeed),"shadow"in t&&n(15,rt=t.shadow),"hide"in t&&n(3,st=t.hide),"delay"in t&&n(53,lt=t.delay),"mouseReset"in t&&n(54,ut=t.mouseReset),"closer"in t&&n(16,ht=t.closer),"closerHover"in t&&n(17,mt=t.closerHover),"sticker"in t&&n(18,yt=t.sticker),"stickerHover"in t&&n(19,bt=t.stickerHover),"labels"in t&&n(20,kt=t.labels),"remove"in t&&n(55,Mt=t.remove),"destroy"in t&&n(56,_t=t.destroy),"open"in t&&n(59,fe=t.open),"close"in t&&n(23,de=t.close),"animateIn"in t&&n(60,pe=t.animateIn),"animateOut"in t&&n(61,ge=t.animateOut)},t.$$.update=function(){524288&t.$$.dirty[1]&&n(31,qt="string"==typeof B?"width: ".concat(B,";"):""),1048576&t.$$.dirty[1]&&n(32,Kt="string"==typeof U?"min-height: ".concat(U,";"):""),2097152&t.$$.dirty[1]&&n(33,te="string"==typeof X?"max-height: ".concat(X,";"):""),32&t.$$.dirty[0]&&n(34,ee=b instanceof HTMLElement),128&t.$$.dirty[0]&&n(35,ne=M instanceof HTMLElement),1&t.$$.dirty[0]|1792&t.$$.dirty[3]&&Bt!==f&&(Bt&&(Bt._removeNotice(i),n(30,Ft=!1),Jt(),Ut()),f&&(f._addNotice(i),n(102,Jt=f.on("beforeAddOverlay",(function(){n(30,Ft=!0),Yt("enterModal")}))),n(103,Ut=f.on("afterRemoveOverlay",(function(){n(30,Ft=!1),Yt("leaveModal")})))),n(101,Bt=f)),1073748992&t.$$.dirty[0]&&n(36,ie=S.match(/\bnonblock\b/)||A.match(/\bnonblock\b/)&&Ft||z.match(/\bnonblock\b/)&&!Ft),1&t.$$.dirty[0]&&n(37,oe=f&&f.dir1?"pnotify-stack-".concat(f.dir1):""),32768&t.$$.dirty[1]&&n(38,re=Array.from(s).filter((function(t){var e=m(t,2),n=e[0];return e[1],"PrependContainer"===n.position}))),32768&t.$$.dirty[1]&&n(39,ae=Array.from(s).filter((function(t){var e=m(t,2),n=e[0];return e[1],"PrependContent"===n.position}))),32768&t.$$.dirty[1]&&n(40,se=Array.from(s).filter((function(t){var e=m(t,2),n=e[0];return e[1],"AppendContent"===n.position}))),32768&t.$$.dirty[1]&&n(41,ce=Array.from(s).filter((function(t){var e=m(t,2),n=e[0];return e[1],"AppendContainer"===n.position}))),34&t.$$.dirty[0]|8&t.$$.dirty[1]&&ee&&u.titleContainer&&u.titleContainer.appendChild(b),130&t.$$.dirty[0]|16&t.$$.dirty[1]&&ne&&u.textContainer&&u.textContainer.appendChild(M)},[f,u,et,st,y,b,k,M,_,N,S,A,z,K,it,rt,ht,mt,yt,bt,kt,function(t){return"string"==typeof I?"".concat(I,"-").concat(t):t in I?I[t]:"".concat(I.prefix,"-").concat(t)},function(t){return"string"==typeof C?"".concat(C,"-icon-").concat(t):t in C?C[t]:"".concat(C.prefix,"-icon-").concat(t)},de,Nt,Ot,St,jt,zt,Rt,Ft,qt,Kt,te,ee,ne,ie,oe,re,ae,se,ce,i,r,function(t){if(n(26,St=!0),ut&&"closing"===Lt){if(!Dt)return;ye()}st&&ut&&ye()},function(t){n(26,St=!1),st&&ut&&"out"!==Et&&-1!==["open","opening"].indexOf(Lt)&&ve()},s,I,C,V,B,U,X,lt,ut,Mt,_t,function(){return Lt},function(){return It},fe,pe,ge,ye,ve,function(t){t?(ye(),It="prevented"):"prevented"===It&&(It=null,"open"===Lt&&st&&ve())},function(){return i.$on.apply(i,arguments)},function(){return i.$set.apply(i,arguments)},function(t,e){o(t,e)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var i=e+1<1||arguments.length<=e+1?void 0:arguments[e+1];-1===jt[t].indexOf(i)&&jt[t].push(i)}n(27,jt)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var i=e+1<1||arguments.length<=e+1?void 0:arguments[e+1],o=jt[t].indexOf(i);-1!==o&&jt[t].splice(o,1)}n(27,jt)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var n=e+1<1||arguments.length<=e+1?void 0:arguments[e+1];if(-1===jt[t].indexOf(n))return!1}return!0},function(){return At},function(t){return At=t},function(){return Ht},function(t){return Ht=t},function(t){return Et=t},function(){return Nt},function(t){return n(24,Nt=t)},function(){return Ot},function(t){return n(25,Ot=t)},function(t,e,i){if(Pt&&clearTimeout(Pt),zt!==t)if(t)n(28,zt=!0),n(29,Rt=!!e),Qt(),Q().then((function(){window.requestAnimationFrame((function(){if(zt)if(e&&i)i();else{n(29,Rt=!0);var t=function t(){u.elem&&u.elem.removeEventListener("transitionend",t),Pt&&clearTimeout(Pt),Rt&&i&&i()};u.elem&&u.elem.addEventListener("transitionend",t),Pt=setTimeout(t,650)}}))}));else if(e)n(28,zt=!1),n(29,Rt=!1),Mt&&-1===["open","opening","closing"].indexOf(Lt)&&Xt(),i&&i();else{var o=function t(){u.elem&&u.elem.removeEventListener("transitionend",t),Pt&&clearTimeout(Pt),Rt||(n(28,zt=!1),Mt&&-1===["open","opening","closing"].indexOf(Lt)&&Xt(),i&&i())};n(29,Rt=!1),u.elem&&u.elem.addEventListener("transitionend",o),u.elem&&u.elem.style.opacity,Pt=setTimeout(o,650)}},function(){return de(!1)},function(){return n(3,st=!st)},function(t){F[t?"unshift":"push"]((function(){u.iconContainer=t,n(1,u)}))},function(t){F[t?"unshift":"push"]((function(){u.titleContainer=t,n(1,u)}))},function(t){F[t?"unshift":"push"]((function(){u.textContainer=t,n(1,u)}))},function(t){F[t?"unshift":"push"]((function(){u.content=t,n(1,u)}))},function(t){F[t?"unshift":"push"]((function(){u.container=t,n(1,u)}))},function(t){F[t?"unshift":"push"]((function(){u.elem=t,n(1,u)}))}]}window&&document.body?Bt():document.addEventListener("DOMContentLoaded",Bt);var Ut=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(a,t);var e,n,o=(e=a,n=u(),function(){var t,i=l(e);if(n){var o=l(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return p(this,t)});function a(t){var e;return i(this,a),function(t,e,n,i,o,r){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],s=H;R(t);var c=e.props||{},l=t.$$={fragment:null,ctx:null,props:r,update:b,not_equal:o,bound:w(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:w(),dirty:a,skip_bound:!1},f=!1;if(l.ctx=n?n(t,c,(function(e,n){var i=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return l.ctx&&o(l.ctx[e],l.ctx[e]=i)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](i),f&>(t,e)),n})):[],l.update(),f=!0,M(l.before_update),l.fragment=!!i&&i(l.ctx),e.target){if(e.hydrate){var u=j(e.target);l.fragment&&l.fragment.l(u),u.forEach(T)}else l.fragment&&l.fragment.c();e.intro&&at(t.$$.fragment),pt(t,e.target,e.anchor),tt()}R(s)}(h(e=o.call(this)),t,Jt,Pt,_,{modules:46,stack:0,refs:1,type:4,title:5,titleTrusted:6,text:7,textTrusted:8,styling:47,icons:48,mode:9,addClass:10,addModalClass:11,addModelessClass:12,autoOpen:49,width:50,minHeight:51,maxTextHeight:52,icon:13,animation:2,animateSpeed:14,shadow:15,hide:3,delay:53,mouseReset:54,closer:16,closerHover:17,sticker:18,stickerHover:19,labels:20,remove:55,destroy:56,getState:57,getTimer:58,getStyle:21,getIcon:22,open:59,close:23,animateIn:60,animateOut:61,cancelClose:62,queueClose:63,_preventTimerClose:64,on:65,update:66,fire:67,addModuleClass:68,removeModuleClass:69,hasModuleClass:70,getModuleHandled:71,setModuleHandled:72,getModuleOpen:73,setModuleOpen:74,setAnimating:75,getAnimatingClass:76,setAnimatingClass:77,_getMoveClass:78,_setMoveClass:79,_setMasking:80},[-1,-1,-1,-1]),e}return r(a,[{key:"modules",get:function(){return this.$$.ctx[46]},set:function(t){this.$set({modules:t}),tt()}},{key:"stack",get:function(){return this.$$.ctx[0]},set:function(t){this.$set({stack:t}),tt()}},{key:"refs",get:function(){return this.$$.ctx[1]}},{key:"type",get:function(){return this.$$.ctx[4]},set:function(t){this.$set({type:t}),tt()}},{key:"title",get:function(){return this.$$.ctx[5]},set:function(t){this.$set({title:t}),tt()}},{key:"titleTrusted",get:function(){return this.$$.ctx[6]},set:function(t){this.$set({titleTrusted:t}),tt()}},{key:"text",get:function(){return this.$$.ctx[7]},set:function(t){this.$set({text:t}),tt()}},{key:"textTrusted",get:function(){return this.$$.ctx[8]},set:function(t){this.$set({textTrusted:t}),tt()}},{key:"styling",get:function(){return this.$$.ctx[47]},set:function(t){this.$set({styling:t}),tt()}},{key:"icons",get:function(){return this.$$.ctx[48]},set:function(t){this.$set({icons:t}),tt()}},{key:"mode",get:function(){return this.$$.ctx[9]},set:function(t){this.$set({mode:t}),tt()}},{key:"addClass",get:function(){return this.$$.ctx[10]},set:function(t){this.$set({addClass:t}),tt()}},{key:"addModalClass",get:function(){return this.$$.ctx[11]},set:function(t){this.$set({addModalClass:t}),tt()}},{key:"addModelessClass",get:function(){return this.$$.ctx[12]},set:function(t){this.$set({addModelessClass:t}),tt()}},{key:"autoOpen",get:function(){return this.$$.ctx[49]},set:function(t){this.$set({autoOpen:t}),tt()}},{key:"width",get:function(){return this.$$.ctx[50]},set:function(t){this.$set({width:t}),tt()}},{key:"minHeight",get:function(){return this.$$.ctx[51]},set:function(t){this.$set({minHeight:t}),tt()}},{key:"maxTextHeight",get:function(){return this.$$.ctx[52]},set:function(t){this.$set({maxTextHeight:t}),tt()}},{key:"icon",get:function(){return this.$$.ctx[13]},set:function(t){this.$set({icon:t}),tt()}},{key:"animation",get:function(){return this.$$.ctx[2]},set:function(t){this.$set({animation:t}),tt()}},{key:"animateSpeed",get:function(){return this.$$.ctx[14]},set:function(t){this.$set({animateSpeed:t}),tt()}},{key:"shadow",get:function(){return this.$$.ctx[15]},set:function(t){this.$set({shadow:t}),tt()}},{key:"hide",get:function(){return this.$$.ctx[3]},set:function(t){this.$set({hide:t}),tt()}},{key:"delay",get:function(){return this.$$.ctx[53]},set:function(t){this.$set({delay:t}),tt()}},{key:"mouseReset",get:function(){return this.$$.ctx[54]},set:function(t){this.$set({mouseReset:t}),tt()}},{key:"closer",get:function(){return this.$$.ctx[16]},set:function(t){this.$set({closer:t}),tt()}},{key:"closerHover",get:function(){return this.$$.ctx[17]},set:function(t){this.$set({closerHover:t}),tt()}},{key:"sticker",get:function(){return this.$$.ctx[18]},set:function(t){this.$set({sticker:t}),tt()}},{key:"stickerHover",get:function(){return this.$$.ctx[19]},set:function(t){this.$set({stickerHover:t}),tt()}},{key:"labels",get:function(){return this.$$.ctx[20]},set:function(t){this.$set({labels:t}),tt()}},{key:"remove",get:function(){return this.$$.ctx[55]},set:function(t){this.$set({remove:t}),tt()}},{key:"destroy",get:function(){return this.$$.ctx[56]},set:function(t){this.$set({destroy:t}),tt()}},{key:"getState",get:function(){return this.$$.ctx[57]}},{key:"getTimer",get:function(){return this.$$.ctx[58]}},{key:"getStyle",get:function(){return this.$$.ctx[21]}},{key:"getIcon",get:function(){return this.$$.ctx[22]}},{key:"open",get:function(){return this.$$.ctx[59]},set:function(t){this.$set({open:t}),tt()}},{key:"close",get:function(){return this.$$.ctx[23]},set:function(t){this.$set({close:t}),tt()}},{key:"animateIn",get:function(){return this.$$.ctx[60]},set:function(t){this.$set({animateIn:t}),tt()}},{key:"animateOut",get:function(){return this.$$.ctx[61]},set:function(t){this.$set({animateOut:t}),tt()}},{key:"cancelClose",get:function(){return this.$$.ctx[62]}},{key:"queueClose",get:function(){return this.$$.ctx[63]}},{key:"_preventTimerClose",get:function(){return this.$$.ctx[64]}},{key:"on",get:function(){return this.$$.ctx[65]}},{key:"update",get:function(){return this.$$.ctx[66]}},{key:"fire",get:function(){return this.$$.ctx[67]}},{key:"addModuleClass",get:function(){return this.$$.ctx[68]}},{key:"removeModuleClass",get:function(){return this.$$.ctx[69]}},{key:"hasModuleClass",get:function(){return this.$$.ctx[70]}},{key:"getModuleHandled",get:function(){return this.$$.ctx[71]}},{key:"setModuleHandled",get:function(){return this.$$.ctx[72]}},{key:"getModuleOpen",get:function(){return this.$$.ctx[73]}},{key:"setModuleOpen",get:function(){return this.$$.ctx[74]}},{key:"setAnimating",get:function(){return this.$$.ctx[75]}},{key:"getAnimatingClass",get:function(){return this.$$.ctx[76]}},{key:"setAnimatingClass",get:function(){return this.$$.ctx[77]}},{key:"_getMoveClass",get:function(){return this.$$.ctx[78]}},{key:"_setMoveClass",get:function(){return this.$$.ctx[79]}},{key:"_setMasking",get:function(){return this.$$.ctx[80]}}]),a}(yt);t.Stack=vt,t.alert=function(t){return bt(Zt(t))},t.default=Ut,t.defaultModules=Ft,t.defaultStack=Vt,t.defaults=Gt,t.error=function(t){return bt(Zt(t,"error"))},t.info=function(t){return bt(Zt(t,"info"))},t.notice=function(t){return bt(Zt(t,"notice"))},t.success=function(t){return bt(Zt(t,"success"))},Object.defineProperty(t,"__esModule",{value:!0})}(e)}(0,i);var o=[],r=[];function a(t,e){if(t&&"undefined"!=typeof document){var n,i=!0===e.prepend?"prepend":"append",a=!0===e.singleTag,s="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(a){var c=o.indexOf(s);-1===c&&(c=o.push(s)-1,r[c]={}),n=r[c]&&r[c][i]?r[c][i]:r[c][i]=l()}else n=l();65279===t.charCodeAt(0)&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function l(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var n=Object.keys(e.attributes),o=0;o.pnotify.pnotify-positioned{position:fixed;z-index:100040}body>.pnotify.pnotify-modal{z-index:100042}.pnotify{display:none;height:auto;opacity:0;transition:opacity .1s linear}.pnotify.pnotify-positioned{position:absolute;z-index:1}.pnotify.pnotify-modal{z-index:3}.pnotify.pnotify-in{display:block;opacity:1}.pnotify.pnotify-initial{display:block}.pnotify-hidden{visibility:hidden}.pnotify.pnotify-move{transition:left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-fade-slow{opacity:0;transition:opacity .4s linear}.pnotify.pnotify-fade-slow.pnotify.pnotify-move{transition:opacity .4s linear,left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-fade-normal{opacity:0;transition:opacity .25s linear}.pnotify.pnotify-fade-normal.pnotify.pnotify-move{transition:opacity .25s linear,left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-fade-fast{opacity:0;transition:opacity .1s linear}.pnotify.pnotify-fade-fast.pnotify.pnotify-move{transition:opacity .1s linear,left .4s ease,top .4s ease,right .4s ease,bottom .4s ease}.pnotify.pnotify-masking{display:block;-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-masking.pnotify-stack-up{-webkit-mask-image:linear-gradient(0deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(0deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-masking.pnotify-stack-left{-webkit-mask-image:linear-gradient(270deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(270deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-masking.pnotify-stack-right{-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.8),transparent 30px,transparent);mask-image:linear-gradient(90deg,rgba(0,0,0,.8),transparent 30px,transparent)}.pnotify.pnotify-fade-in,.pnotify.pnotify-masking-in{opacity:1}.pnotify .pnotify-shadow{-webkit-box-shadow:0 6px 28px 0 rgba(0,0,0,.1);-moz-box-shadow:0 6px 28px 0 rgba(0,0,0,.1);box-shadow:0 6px 28px 0 rgba(0,0,0,.1)}.pnotify-container{background-position:0 0;height:100%;margin:0;padding:.8em;position:relative}.pnotify-container:after{clear:both;content:" ";display:block;height:0;visibility:hidden}.pnotify-closer,.pnotify-sticker{cursor:pointer;float:right;margin-left:.5em}[dir=rtl] .pnotify-closer,[dir=rtl] .pnotify-sticker{float:left;margin-left:0;margin-right:.5em}.pnotify-title{display:block;margin-bottom:.4em;margin-top:0;white-space:pre-line}.pnotify-text-with-max-height{overflow-y:auto;overscroll-behavior:contain;padding-bottom:.03em}.pnotify.pnotify-with-icon .pnotify-content{margin-left:24px}[dir=rtl] .pnotify.pnotify-with-icon .pnotify-content{margin-left:0;margin-right:24px}.pnotify-pre-line{white-space:pre-line}.pnotify-icon,.pnotify-icon span{display:block;float:left}[dir=rtl] .pnotify-icon,[dir=rtl] .pnotify-icon span{float:right}.pnotify-modal-overlay{align-items:flex-end;background-color:rgba(0,0,0,.6);display:flex;height:100%;justify-content:center;left:0;opacity:0;padding:0;position:absolute;top:0;transition:opacity .25s linear;width:100%;z-index:2}.pnotify-modal-overlay-up{align-items:flex-start}.pnotify-modal-overlay-left{align-items:center;justify-content:flex-start}.pnotify-modal-overlay-right{align-items:center;justify-content:flex-end}.pnotify-modal-overlay.pnotify-modal-overlay-in{opacity:1}.pnotify-modal-overlay-closes:after{color:#fff;content:"×";font-family:Arial;font-size:3rem;text-shadow:0 0 .4rem #fff}body>.pnotify-modal-overlay{position:fixed;z-index:100041}',{});a("[data-pnotify].brighttheme-elem{border-radius:0}[data-pnotify].brighttheme-elem,[data-pnotify].brighttheme-elem.pnotify-mode-light{--notice-background-color:#ffffa2;--notice-border-color:#ff0;--notice-text-color:#4f4f00;--notice-icon-filter:invert(25%) sepia(12%) saturate(7007%) hue-rotate(38deg) brightness(99%) contrast(101%);--info-background-color:#8fcedd;--info-border-color:#0286a5;--info-text-color:#012831;--info-icon-filter:invert(11%) sepia(37%) saturate(1946%) hue-rotate(155deg) brightness(95%) contrast(99%);--success-background-color:#aff29a;--success-border-color:#35db00;--success-text-color:#104300;--success-icon-filter:invert(17%) sepia(94%) saturate(1055%) hue-rotate(70deg) brightness(90%) contrast(103%);--error-background-color:#ffaba2;--error-border-color:#ff1800;--error-text-color:#4f0800;--error-icon-filter:invert(9%) sepia(27%) saturate(7347%) hue-rotate(359deg) brightness(96%) contrast(108%)}@media (prefers-color-scheme:dark){[data-pnotify].brighttheme-elem.pnotify-mode-no-preference{--notice-background-color:#4f4f00;--notice-border-color:#282814;--notice-text-color:#ffffa2;--notice-icon-filter:invert(92%) sepia(18%) saturate(781%) hue-rotate(6deg) brightness(106%) contrast(107%);--info-background-color:#012831;--info-border-color:#0c1618;--info-text-color:#8fcedd;--info-icon-filter:invert(85%) sepia(14%) saturate(933%) hue-rotate(153deg) brightness(92%) contrast(87%);--success-background-color:#104300;--success-border-color:#152111;--success-text-color:#aff29a;--success-icon-filter:invert(90%) sepia(9%) saturate(1647%) hue-rotate(52deg) brightness(103%) contrast(90%);--error-background-color:#4f0800;--error-border-color:#281614;--error-text-color:#ffaba2;--error-icon-filter:invert(70%) sepia(24%) saturate(717%) hue-rotate(315deg) brightness(103%) contrast(104%)}}[data-pnotify].brighttheme-elem.pnotify-mode-dark{--notice-background-color:#4f4f00;--notice-border-color:#282814;--notice-text-color:#ffffa2;--notice-icon-filter:invert(92%) sepia(18%) saturate(781%) hue-rotate(6deg) brightness(106%) contrast(107%);--info-background-color:#012831;--info-border-color:#0c1618;--info-text-color:#8fcedd;--info-icon-filter:invert(85%) sepia(14%) saturate(933%) hue-rotate(153deg) brightness(92%) contrast(87%);--success-background-color:#104300;--success-border-color:#152111;--success-text-color:#aff29a;--success-icon-filter:invert(90%) sepia(9%) saturate(1647%) hue-rotate(52deg) brightness(103%) contrast(90%);--error-background-color:#4f0800;--error-border-color:#281614;--error-text-color:#ffaba2;--error-icon-filter:invert(70%) sepia(24%) saturate(717%) hue-rotate(315deg) brightness(103%) contrast(104%)}[data-pnotify] .brighttheme-notice{--brighttheme-background-color:var(--notice-background-color);--brighttheme-border-color:var(--notice-border-color);--brighttheme-text-color:var(--notice-text-color);--brighttheme-icon-filter:var(--notice-icon-filter);--brighttheme-primary-button-background-color:var(--notice-border-color);--brighttheme-primary-button-text-color:var(--notice-text-color)}[data-pnotify] .brighttheme-info{--brighttheme-background-color:var(--info-background-color);--brighttheme-border-color:var(--info-border-color);--brighttheme-text-color:var(--info-text-color);--brighttheme-icon-filter:var(--info-icon-filter);--brighttheme-primary-button-background-color:var(--info-border-color);--brighttheme-primary-button-text-color:var(--info-text-color)}[data-pnotify] .brighttheme-success{--brighttheme-background-color:var(--success-background-color);--brighttheme-border-color:var(--success-border-color);--brighttheme-text-color:var(--success-text-color);--brighttheme-icon-filter:var(--success-icon-filter);--brighttheme-primary-button-background-color:var(--success-border-color);--brighttheme-primary-button-text-color:var(--success-text-color)}[data-pnotify] .brighttheme-error{--brighttheme-background-color:var(--error-background-color);--brighttheme-border-color:var(--error-border-color);--brighttheme-text-color:var(--error-text-color);--brighttheme-icon-filter:var(--error-icon-filter);--brighttheme-primary-button-background-color:var(--error-border-color);--brighttheme-primary-button-text-color:var(--error-text-color)}[data-pnotify] .brighttheme-container{background-color:var(--brighttheme-background-color);border:0 solid var(--brighttheme-border-color);color:var(--brighttheme-text-color);padding:1.3rem}[data-pnotify] .brighttheme-error{background-image:repeating-linear-gradient(135deg,transparent,transparent 35px,hsla(0,0%,100%,.3) 0,hsla(0,0%,100%,.3) 70px)}[data-pnotify].pnotify-with-icon .brighttheme-content{margin-left:calc(1.3rem + 16px)}[dir=rtl] [data-pnotify].pnotify-with-icon .brighttheme-content{margin-left:0;margin-right:calc(1.3rem + 16px)}[data-pnotify] .brighttheme-title{font-size:1.2rem;line-height:1.4rem;margin-bottom:0;margin-top:-.1rem}[data-pnotify] .brighttheme-text{font-size:1rem;line-height:1.2rem;margin-top:0}[data-pnotify] .brighttheme-confirm,[data-pnotify] .brighttheme-title+.brighttheme-text{margin-top:1rem}[data-pnotify] .brighttheme-closer,[data-pnotify] .brighttheme-icon,[data-pnotify] .brighttheme-sticker{align-items:center;display:flex;justify-content:center}[data-pnotify] .brighttheme-icon,[data-pnotify] .brighttheme-icon>span,[data-pnotify] .brighttheme-icon>span:after{height:1.2rem;line-height:1.2rem;width:1.2rem}[data-pnotify] .brighttheme-icon-closer,[data-pnotify] .brighttheme-icon-closer:after,[data-pnotify] .brighttheme-icon-sticker,[data-pnotify] .brighttheme-icon-sticker:after{height:1rem;line-height:1rem;width:1rem}[data-pnotify] .brighttheme-icon-notice:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMsMTNIMTFWN0gxM00xMywxN0gxMVYxNUgxM00xMiwyQTEwLDEwIDAgMCwwIDIsMTJBMTAsMTAgMCAwLDAgMTIsMjJBMTAsMTAgMCAwLDAgMjIsMTJBMTAsMTAgMCAwLDAgMTIsMloiLz48L3N2Zz4=);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-info:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMsOUgxMVY3SDEzTTEzLDE3SDExVjExSDEzTTEyLDJBMTAsMTAgMCAwLDAgMiwxMkExMCwxMCAwIDAsMCAxMiwyMkExMCwxMCAwIDAsMCAyMiwxMkExMCwxMCAwIDAsMCAxMiwyWiIvPjwvc3ZnPg==);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-success:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIgMkM2LjUgMiAyIDYuNSAyIDEyUzYuNSAyMiAxMiAyMiAyMiAxNy41IDIyIDEyIDE3LjUgMiAxMiAyTTEwIDE3TDUgMTJMNi40MSAxMC41OUwxMCAxNC4xN0wxNy41OSA2LjU4TDE5IDhMMTAgMTdaIi8+PC9zdmc+);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-error:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMsMTRIMTFWMTBIMTNNMTMsMThIMTFWMTZIMTNNMSwyMUgyM0wxMiwyTDEsMjFaIi8+PC9zdmc+);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-closer:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTksNi40MUwxNy41OSw1TDEyLDEwLjU5TDYuNDEsNUw1LDYuNDFMMTAuNTksMTJMNSwxNy41OUw2LjQxLDE5TDEyLDEzLjQxTDE3LjU5LDE5TDE5LDE3LjU5TDEzLjQxLDEyTDE5LDYuNDFaIi8+PC9zdmc+);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-sticker:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTYsMTJWNEgxN1YySDdWNEg4VjEyTDYsMTRWMTZIMTEuMlYyMkgxMi44VjE2SDE4VjE0TDE2LDEyWiIvPjwvc3ZnPg==);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-icon-sticker.brighttheme-icon-stuck:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMiw1LjI3TDMuMjgsNEwyMCwyMC43MkwxOC43MywyMkwxMi44LDE2LjA3VjIySDExLjJWMTZINlYxNEw4LDEyVjExLjI3TDIsNS4yN00xNiwxMkwxOCwxNFYxNkgxNy44Mkw4LDYuMThWNEg3VjJIMTdWNEgxNlYxMloiLz48L3N2Zz4=);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-prompt-bar{margin-bottom:1rem}[data-pnotify] .brighttheme-action-bar,[data-pnotify] .brighttheme-prompt-bar{box-sizing:border-box;width:100%}[data-pnotify] .brighttheme-btn{background:transparent;border:none;color:var(--brighttheme-text-color);cursor:pointer;font-weight:700;padding:.4rem 1rem;text-transform:uppercase}[data-pnotify] .brighttheme-btn-primary{background-color:var(--brighttheme-primary-button-background-color);color:var(--brighttheme-primary-button-text-color)}[data-pnotify] .brighttheme-countdown{background-color:var(--brighttheme-background-color)}[data-pnotify] .brighttheme-countdown-bar{background-color:var(--brighttheme-border-color)}[data-pnotify] .brighttheme-paginate{display:inline-flex;flex-direction:column}[data-pnotify] .brighttheme-paginate-btn{background:transparent;border:0;height:1em;line-height:.5em;padding:0;width:1em}[data-pnotify] .brighttheme-paginate-previous{margin-right:0}[data-pnotify] .brighttheme-paginate-next{margin-left:0}[data-pnotify] .brighttheme-paginate-btn:disabled:after,[data-pnotify] .brighttheme-paginate-btn[aria-disabled=true]:after{opacity:.5}[data-pnotify] .brighttheme-paginate-previous:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0xMS42NyAzLjg3TDkuOSAyLjEgMCAxMmw5LjkgOS45IDEuNzctMS43N0wzLjU0IDEyeiIvPjwvc3ZnPg==);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-paginate-next:after{content:url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik01Ljg4IDQuMTJMMTMuNzYgMTJsLTcuODggNy44OEw4IDIybDEwLTEwTDggMnoiLz48L3N2Zz4=);filter:var(--brighttheme-icon-filter)}[data-pnotify] .brighttheme-paginate-count-of{opacity:.8}",{});var s=function(){function t(){}return t.prototype.success=function(t,e,n){this.flash("success",t,e,n)},t.prototype.info=function(t,e,n){this.flash("info",t,e,n)},t.prototype.warning=function(t,e,n){this.flash("warning",t,e,n)},t.prototype.error=function(t,e,n){this.flash("error",t,e,n)},t.prototype.flash=function(t,e,n,i){var o=this.createNotification(t,e,n,i);this.renderOptions({}),this.render({notification:o})},t.prototype.createNotification=function(t,e,n,i){if("object"==typeof t?(t=(i=t).type,e=i.message,n=i.title):"object"==typeof e?(e=(i=e).message,n=i.title):"object"==typeof n&&(n=(i=n).title),void 0===e)throw new Error("message option is required");return{type:t||"info",message:e,title:n,options:i}},t.prototype.render=function(t){var n=t.notification;n.type=n.type||"info";var o,r=e({text:n.title},n.options);switch(r=e(e({},r),{text:(null==r?void 0:r.text)||n.message}),n.type){case"success":o=i.success(r);break;case"alert":o=i.alert(r);break;case"info":o=i.info(r);break;case"error":o=i.error(r);break;default:o=i.notice(r)}o.refs.container&&(o.refs.container.dataset.turboCache="false")},t.prototype.updateDefaultOptions=function(t,e){Object.entries(e).forEach((function(e){var n=e[0],i=e[1];t[n]=i}))},t.prototype.renderOptions=function(t){this.updateDefaultOptions(i.defaults,e({delay:t.delay||5e3},t))},t}(),c=new s;return t.addFactory("pnotify",c),c})); +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@flasher/flasher")):"function"==typeof define&&define.amd?define(["@flasher/flasher"],e):((t="undefined"!=typeof globalThis?globalThis:t||self).flasher=t.flasher||{},t.flasher.pnotify=e(t.flasher))}(this,(function(t){"use strict";var e=function(){return e=Object.assign||function(t){for(var e,n=1,i=arguments.length;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:null;i(this,t),this.a=e,this.e=this.n=null}return r(t,[{key:"m",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=E(e.nodeName),this.t=e,this.h(t)),this.i(n)}},{key:"h",value:function(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(t){for(var e=0;eg.get(T)?(b.add(M),w(O)):(x.add(T),d--):(c(C,s),d--)}for(;d--;){var E=t[d];y.has(E.key)||c(E,s)}for(;h;)w(v[h-1]);return v}function ft(t,e){for(var n={},i={},o={$$scope:1},r=t.length;r--;){var s=t[r],a=e[r];if(a){for(var c in s)c in a||(i[c]=1);for(var l in a)o[l]||(n[l]=a[l],o[l]=1);t[r]=a}else for(var u in s)o[u]=1}for(var f in i)f in n||(n[f]=void 0);return n}function dt(t){return"object"===e(t)&&null!==t?t:{}}function ht(t){t&&t.c()}function pt(t,e,n){var i=t.$$,o=i.fragment,r=i.on_mount,s=i.on_destroy,a=i.after_update;o&&o.m(e,n),X((function(){var e=r.map(k).filter(w);s?s.push.apply(s,v(e)):b(e),t.$$.on_mount=[]})),a.forEach(X)}function mt(t,e){var n=t.$$;null!==n.fragment&&(b(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function vt(t,e){-1===t.$$.dirty[0]&&(B.push(t),Q(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:{},i=n.start,o=void 0===i?"oldest":i,r=n.dir,s=void 0===r?"newer":r,a=n.skipModuleHandled,c=void 0!==a&&a;if("head"===o||"newest"===o&&"top"===this.push||"oldest"===o&&"bottom"===this.push)e=this._noticeHead.next;else if("tail"===o||"newest"===o&&"bottom"===this.push||"oldest"===o&&"top"===this.push)e=this._noticeTail.prev;else{if(!this._noticeMap.has(o))throw new Error("Invalid start param.");e=this._noticeMap.get(o)}for(;e.notice;){var l=e.notice;if("prev"===s||"top"===this.push&&"newer"===s||"bottom"===this.push&&"older"===s)e=e.prev;else{if(!("next"===s||"top"===this.push&&"older"===s||"bottom"===this.push&&"newer"===s))throw new Error("Invalid dir param.");e=e.next}if(!(c&&l.getModuleHandled()||!1!==t(l)))break}}},{key:"close",value:function(t){this.forEach((function(e){return e.close(t,!1,!1)}))}},{key:"open",value:function(t){this.forEach((function(e){return e.open(t)}))}},{key:"openLast",value:function(){this.forEach((function(t){if(-1===["opening","open","waiting"].indexOf(t.getState()))return t.open(),!1}),{start:"newest",dir:"older"})}},{key:"swap",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return-1===["open","opening","closing"].indexOf(t.getState())?Promise.reject():(this._swapping=e,t.close(i,!1,o).then((function(){return e.open(i)})).finally((function(){n._swapping=!1})))}},{key:"on",value:function(t,e){var n=this;return t in this._callbacks||(this._callbacks[t]=[]),this._callbacks[t].push(e),function(){n._callbacks[t].splice(n._callbacks[t].indexOf(e),1)}}},{key:"fire",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stack=this,t in this._callbacks&&this._callbacks[t].forEach((function(t){return t(e)}))}},{key:"position",value:function(){var t=this;this.positioned&&this._length>0?(this.fire("beforePosition"),this._resetPositionData(),this.forEach((function(e){t._positionNotice(e)}),{start:"head",dir:"next",skipModuleHandled:!0}),this.fire("afterPosition")):(delete this._nextpos1,delete this._nextpos2)}},{key:"queuePosition",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;this._posTimer&&clearTimeout(this._posTimer),this._posTimer=setTimeout((function(){return t.position()}),e)}},{key:"_resetPositionData",value:function(){this._nextpos1=this.firstpos1,this._nextpos2=this.firstpos2,this._addpos2=0}},{key:"_positionNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t===this._masking;if(this.positioned){var n=t.refs.elem;if(n&&(n.classList.contains("pnotify-in")||n.classList.contains("pnotify-initial")||e)){var i=[this.firstpos1,this.firstpos2,this._nextpos1,this._nextpos2,this._addpos2],o=i[0],r=i[1],s=i[2],a=i[3],c=i[4];n.getBoundingClientRect(),!this._animation||e||this._collapsingModalState?t._setMoveClass(""):t._setMoveClass("pnotify-move");var l,u=this.context===document.body?window.innerHeight:this.context.scrollHeight,f=this.context===document.body?window.innerWidth:this.context.scrollWidth;if(this.dir1){var d;switch(l={down:"top",up:"bottom",left:"right",right:"left"}[this.dir1],this.dir1){case"down":d=n.offsetTop;break;case"up":d=u-n.scrollHeight-n.offsetTop;break;case"left":d=f-n.scrollWidth-n.offsetLeft;break;case"right":d=n.offsetLeft}null==o&&(s=o=d)}if(this.dir1&&this.dir2){var h,p={down:"top",up:"bottom",left:"right",right:"left"}[this.dir2];switch(this.dir2){case"down":h=n.offsetTop;break;case"up":h=u-n.scrollHeight-n.offsetTop;break;case"left":h=f-n.scrollWidth-n.offsetLeft;break;case"right":h=n.offsetLeft}if(null==r&&(a=r=h),!e){var m=s+n.offsetHeight+this.spacing1,v=s+n.offsetWidth+this.spacing1;(("down"===this.dir1||"up"===this.dir1)&&m>u||("left"===this.dir1||"right"===this.dir1)&&v>f)&&(s=o,a+=c+this.spacing2,c=0)}switch(null!=a&&(n.style[p]="".concat(a,"px"),this._animation||n.style[p]),this.dir2){case"down":case"up":n.offsetHeight+(parseFloat(n.style.marginTop,10)||0)+(parseFloat(n.style.marginBottom,10)||0)>c&&(c=n.offsetHeight);break;case"left":case"right":n.offsetWidth+(parseFloat(n.style.marginLeft,10)||0)+(parseFloat(n.style.marginRight,10)||0)>c&&(c=n.offsetWidth)}}else if(this.dir1){var y,g;switch(this.dir1){case"down":case"up":g=["left","right"],y=this.context.scrollWidth/2-n.offsetWidth/2;break;case"left":case"right":g=["top","bottom"],y=u/2-n.offsetHeight/2}n.style[g[0]]="".concat(y,"px"),n.style[g[1]]="auto",this._animation||n.style[g[0]]}if(this.dir1)switch(null!=s&&(n.style[l]="".concat(s,"px"),this._animation||n.style[l]),this.dir1){case"down":case"up":s+=n.offsetHeight+this.spacing1;break;case"left":case"right":s+=n.offsetWidth+this.spacing1}else{var $=f/2-n.offsetWidth/2,_=u/2-n.offsetHeight/2;n.style.left="".concat($,"px"),n.style.top="".concat(_,"px"),this._animation||n.style.left}e||(this.firstpos1=o,this.firstpos2=r,this._nextpos1=s,this._nextpos2=a,this._addpos2=c)}}}},{key:"_addNotice",value:function(t){var e=this;this.fire("beforeAddNotice",{notice:t});var n=function(){if(e.fire("beforeOpenNotice",{notice:t}),t.getModuleHandled())e.fire("afterOpenNotice",{notice:t});else{if(e._openNotices++,("ish"!==e.modal||!e._overlayOpen)&&e.maxOpen!==1/0&&e._openNotices>e.maxOpen&&"close"===e.maxStrategy){var n=e._openNotices-e.maxOpen;e.forEach((function(t){if(-1!==["opening","open"].indexOf(t.getState()))return t.close(!1,!1,e.maxClosureCausesWait),t===e._leader&&e._setLeader(null),!!--n}))}!0===e.modal&&e._insertOverlay(),"ish"!==e.modal||e._leader&&-1!==["opening","open","closing"].indexOf(e._leader.getState())||e._setLeader(t),"ish"===e.modal&&e._overlayOpen&&t._preventTimerClose(!0),e.fire("afterOpenNotice",{notice:t})}},i={notice:t,prev:null,next:null,beforeOpenOff:t.on("pnotify:beforeOpen",n),afterCloseOff:t.on("pnotify:afterClose",(function(){if(e.fire("beforeCloseNotice",{notice:t}),t.getModuleHandled())e.fire("afterCloseNotice",{notice:t});else{if(e._openNotices--,"ish"===e.modal&&t===e._leader&&(e._setLeader(null),e._masking&&e._setMasking(null)),!e._swapping&&e.maxOpen!==1/0&&e._openNotices=e.maxOpen))return n=!0,!1};"wait"===e.maxStrategy?(e.forEach(i,{start:t,dir:"next"}),n||e.forEach(i,{start:t,dir:"prev"})):"close"===e.maxStrategy&&e.maxClosureCausesWait&&(e.forEach(i,{start:t,dir:"older"}),n||e.forEach(i,{start:t,dir:"newer"}))}e._openNotices<=0?(e._openNotices=0,e._resetPositionData(),e._overlayOpen&&!e._swapping&&e._removeOverlay()):e._collapsingModalState||e.queuePosition(0),e.fire("afterCloseNotice",{notice:t})}}))};if("top"===this.push?(i.next=this._noticeHead.next,i.prev=this._noticeHead,i.next.prev=i,i.prev.next=i):(i.prev=this._noticeTail.prev,i.next=this._noticeTail,i.prev.next=i,i.next.prev=i),this._noticeMap.set(t,i),this._length++,this._listener||(this._listener=function(){return e.position()},this.context.addEventListener("pnotify:position",this._listener)),-1!==["open","opening","closing"].indexOf(t.getState()))n();else if("ish"===this.modal&&this.modalishFlash&&this._shouldNoticeWait(t))var o=t.on("pnotify:mount",(function(){o(),t._setMasking(!0,!1,(function(){t._setMasking(!1)})),e._resetPositionData(),e._positionNotice(e._leader),window.requestAnimationFrame((function(){e._positionNotice(t,!0)}))}));this.fire("afterAddNotice",{notice:t})}},{key:"_removeNotice",value:function(t){if(this._noticeMap.has(t)){this.fire("beforeRemoveNotice",{notice:t});var e=this._noticeMap.get(t);this._leader===t&&this._setLeader(null),this._masking===t&&this._setMasking(null),e.prev.next=e.next,e.next.prev=e.prev,e.prev=null,e.next=null,e.beforeOpenOff(),e.beforeOpenOff=null,e.afterCloseOff(),e.afterCloseOff=null,this._noticeMap.delete(t),this._length--,!this._length&&this._listener&&(this.context.removeEventListener("pnotify:position",this._listener),this._listener=null),!this._length&&this._overlayOpen&&this._removeOverlay(),-1!==["open","opening","closing"].indexOf(t.getState())&&this._handleNoticeClosed(t),this.fire("afterRemoveNotice",{notice:t})}}},{key:"_setLeader",value:function(t){var e=this;if(this.fire("beforeSetLeader",{leader:t}),this._leaderOff&&(this._leaderOff(),this._leaderOff=null),this._leader=t,this._leader){var n,i=function(){var t=null;e._overlayOpen&&(e._collapsingModalState=!0,e.forEach((function(n){n._preventTimerClose(!1),n!==e._leader&&-1!==["opening","open"].indexOf(n.getState())&&(t||(t=n),n.close(n===t,!1,!0))}),{start:e._leader,dir:"next",skipModuleHandled:!0}),e._removeOverlay()),o&&(clearTimeout(o),o=null),e.forEach((function(n){if(n!==e._leader)return"waiting"===n.getState()||n===t?(e._setMasking(n,!!t),!1):void 0}),{start:e._leader,dir:"next",skipModuleHandled:!0})},o=null,r=function(){o&&(clearTimeout(o),o=null),o=setTimeout((function(){o=null,e._setMasking(null)}),750)};this._leaderOff=(n=[this._leader.on("mouseenter",i),this._leader.on("focusin",i),this._leader.on("mouseleave",r),this._leader.on("focusout",r)],function(){return n.map((function(t){return t()}))}),this.fire("afterSetLeader",{leader:t})}else this.fire("afterSetLeader",{leader:t})}},{key:"_setMasking",value:function(t,e){var n=this;if(this._masking){if(this._masking===t)return;this._masking._setMasking(!1,e)}if(this._maskingOff&&(this._maskingOff(),this._maskingOff=null),this._masking=t,this._masking){this._resetPositionData(),this._leader&&this._positionNotice(this._leader),this._masking._setMasking(!0,e),window.requestAnimationFrame((function(){n._masking&&n._positionNotice(n._masking)}));var i,o=function(){"ish"===n.modal&&(n._insertOverlay(),n._setMasking(null,!0),n.forEach((function(t){t._preventTimerClose(!0),"waiting"===t.getState()&&t.open()}),{start:n._leader,dir:"next",skipModuleHandled:!0}))};this._maskingOff=(i=[this._masking.on("mouseenter",o),this._masking.on("focusin",o)],function(){return i.map((function(t){return t()}))})}}},{key:"_shouldNoticeWait",value:function(t){return this._swapping!==t&&!("ish"===this.modal&&this._overlayOpen)&&this.maxOpen!==1/0&&this._openNotices>=this.maxOpen&&"wait"===this.maxStrategy}},{key:"_insertOverlay",value:function(){var t=this;this._overlay||(this._overlay=document.createElement("div"),this._overlay.classList.add("pnotify-modal-overlay"),this.dir1&&this._overlay.classList.add("pnotify-modal-overlay-".concat(this.dir1)),this.overlayClose&&this._overlay.classList.add("pnotify-modal-overlay-closes"),this.context!==document.body&&(this._overlay.style.height="".concat(this.context.scrollHeight,"px"),this._overlay.style.width="".concat(this.context.scrollWidth,"px")),this._overlay.addEventListener("click",(function(e){if(t.overlayClose){if(t.fire("overlayClose",{clickEvent:e}),e.defaultPrevented)return;t._leader&&t._setLeader(null),t.forEach((function(e){-1===["closed","closing","waiting"].indexOf(e.getState())&&(e.hide||t.overlayClosesPinned?e.close():e.hide||"ish"!==t.modal||(t._leader?e.close(!1,!1,!0):t._setLeader(e)))}),{skipModuleHandled:!0}),t._overlayOpen&&t._removeOverlay()}}))),this._overlay.parentNode!==this.context&&(this.fire("beforeAddOverlay"),this._overlay.classList.remove("pnotify-modal-overlay-in"),this._overlay=this.context.insertBefore(this._overlay,this.context.firstChild),this._overlayOpen=!0,this._overlayInserted=!0,window.requestAnimationFrame((function(){t._overlay.classList.add("pnotify-modal-overlay-in"),t.fire("afterAddOverlay")}))),this._collapsingModalState=!1}},{key:"_removeOverlay",value:function(){var t=this;this._overlay.parentNode&&(this.fire("beforeRemoveOverlay"),this._overlay.classList.remove("pnotify-modal-overlay-in"),this._overlayOpen=!1,setTimeout((function(){t._overlayInserted=!1,t._overlay.parentNode&&(t._overlay.parentNode.removeChild(t._overlay),t.fire("afterRemoveOverlay"))}),250),setTimeout((function(){t._collapsingModalState=!1}),400))}},{key:"notices",get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t}},{key:"length",get:function(){return this._length}},{key:"leader",get:function(){return this._leader}}]),t}(),$t=function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:[]));function n(e){F(t,e)}return function(t){for(var i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:{});"init"===t&&Array.from(a).forEach((function(t){var n=m(t,2),i=n[0];return n[1],"init"in i&&i.init(e)}));var n=f.elem||u&&u.context||document.body;if(!n)return o("pnotify:".concat(t),e),!0;var r=new Event("pnotify:".concat(t),{bubbles:"init"===t||"mount"===t,cancelable:t.startsWith("before")});return r.detail=e,n.dispatchEvent(r),!r.defaultPrevented}function Vt(){var t=u&&u.context||document.body;if(!t)throw new Error("No context to insert this notice into.");if(!f.elem)throw new Error("Trying to insert notice before element is available.");f.elem.parentNode!==t&&t.appendChild(f.elem)}function Xt(){f.elem&&f.elem.parentNode.removeChild(f.elem)}h=function(){Qt("mount"),B&&ue().catch((function(){}))},I().$$.on_mount.push(h),function(t){I().$$.before_update.push(t)}((function(){Qt("update"),"closed"!==Ct&&"waiting"!==Ct&&at!==qt&&(at?qt||ge():ye()),"closed"!==Ct&&"closing"!==Ct&&u&&!u._collapsingModalState&&u.queuePosition(),qt=at}));var Yt,Zt,te,ee,ne,ie,oe,re,se,ae,ce,le=e.open,ue=void 0===le?function(t){if("opening"===Ct)return Ft;if("open"===Ct)return at&&ge(),Promise.resolve();if(!Lt&&u&&u._shouldNoticeWait(i))return Ct="waiting",Promise.reject();if(!Qt("beforeOpen",{immediate:t}))return Promise.reject();var e,o;Ct="opening",n(28,Wt=!1),n(24,St="pnotify-initial pnotify-hidden");var r=new Promise((function(t,n){e=t,o=n}));Ft=r;var s=function(){at&&ge(),Ct="open",Qt("afterOpen",{immediate:t}),Ft=null,e()};return Rt?(s(),Promise.resolve()):(Vt(),window.requestAnimationFrame((function(){if("opening"!==Ct)return o(),void(Ft=null);u&&(n(0,u._animation=!1,u),"top"===u.push&&u._resetPositionData(),u._positionNotice(i),u.queuePosition(0),n(0,u._animation=!0,u)),pe(s,t)})),r)}:le,fe=e.close,de=void 0===fe?function(t,e,o){if("closing"===Ct)return Bt;if("closed"===Ct)return Promise.resolve();var r,s=function(){Qt("beforeDestroy")&&(u&&u._removeNotice(i),i.$destroy(),Qt("afterDestroy"))};if("waiting"===Ct)return o||(Ct="closed",Ot&&!o&&s()),Promise.resolve();if(!Qt("beforeClose",{immediate:t,timerHide:e,waitAfterward:o}))return Promise.reject();Ct="closing",jt=!!e,Mt&&"prevented"!==Mt&&clearTimeout&&clearTimeout(Mt),Mt=null;var a=new Promise((function(t,e){r=t}));return Bt=a,ve((function(){n(26,Pt=!1),jt=!1,Ct=o?"waiting":"closed",Qt("afterClose",{immediate:t,timerHide:e,waitAfterward:o}),Bt=null,r(),o||(Ot?s():bt&&Xt())}),t),a}:fe,he=e.animateIn,pe=void 0===he?function(t,e){Ht="in";var i=function e(n){if(!(n&&f.elem&&n.target!==f.elem||(f.elem&&f.elem.removeEventListener("transitionend",e),Tt&&clearTimeout(Tt),"in"!==Ht))){var i=Rt;if(!i&&f.elem){var o=f.elem.getBoundingClientRect();for(var r in o)if(o[r]>0){i=!0;break}}i?(t&&t.call(),Ht=!1):Tt=setTimeout(e,40)}};if("fade"!==et||e){var o=et;n(2,et="none"),n(24,St="pnotify-in ".concat("fade"===o?"pnotify-fade-in":"")),V().then((function(){n(2,et=o),i()}))}else f.elem&&f.elem.addEventListener("transitionend",i),n(24,St="pnotify-in"),V().then((function(){n(24,St="pnotify-in pnotify-fade-in"),Tt=setTimeout(i,650)}))}:he,me=e.animateOut,ve=void 0===me?function(t,e){Ht="out";var i=function e(i){if(!(i&&f.elem&&i.target!==f.elem||(f.elem&&f.elem.removeEventListener("transitionend",e),Et&&clearTimeout(Et),"out"!==Ht))){var o=Rt;if(!o&&f.elem){var r=f.elem.getBoundingClientRect();for(var s in r)if(r[s]>0){o=!0;break}}f.elem&&f.elem.style.opacity&&"0"!==f.elem.style.opacity&&o?Et=setTimeout(e,40):(n(24,St=""),t&&t.call(),Ht=!1)}};"fade"!==et||e?(n(24,St=""),V().then((function(){i()}))):(f.elem&&f.elem.addEventListener("transitionend",i),n(24,St="pnotify-in"),Et=setTimeout(i,650))}:me;function ye(){Mt&&"prevented"!==Mt&&(clearTimeout(Mt),Mt=null),Et&&clearTimeout(Et),"closing"===Ct&&(Ct="open",Ht=!1,n(24,St="fade"===et?"pnotify-in pnotify-fade-in":"pnotify-in"))}function ge(){"prevented"!==Mt&&(ye(),lt!==1/0&&(Mt=setTimeout((function(){return de(!1,!0)}),isNaN(lt)?0:lt)))}return t.$$set=function(t){"modules"in t&&n(46,a=t.modules),"stack"in t&&n(0,u=t.stack),"type"in t&&n(4,y=t.type),"title"in t&&n(5,$=t.title),"titleTrusted"in t&&n(6,k=t.titleTrusted),"text"in t&&n(7,b=t.text),"textTrusted"in t&&n(8,O=t.textTrusted),"styling"in t&&n(47,M=t.styling),"icons"in t&&n(48,E=t.icons),"mode"in t&&n(9,S=t.mode),"addClass"in t&&n(10,P=t.addClass),"addModalClass"in t&&n(11,L=t.addModalClass),"addModelessClass"in t&&n(12,W=t.addModelessClass),"autoOpen"in t&&n(49,B=t.autoOpen),"width"in t&&n(50,G=t.width),"minHeight"in t&&n(51,K=t.minHeight),"maxTextHeight"in t&&n(52,X=t.maxTextHeight),"icon"in t&&n(13,Z=t.icon),"animation"in t&&n(2,et=t.animation),"animateSpeed"in t&&n(14,it=t.animateSpeed),"shadow"in t&&n(15,rt=t.shadow),"hide"in t&&n(3,at=t.hide),"delay"in t&&n(53,lt=t.delay),"mouseReset"in t&&n(54,ft=t.mouseReset),"closer"in t&&n(16,ht=t.closer),"closerHover"in t&&n(17,mt=t.closerHover),"sticker"in t&&n(18,yt=t.sticker),"stickerHover"in t&&n(19,$t=t.stickerHover),"labels"in t&&n(20,kt=t.labels),"remove"in t&&n(55,bt=t.remove),"destroy"in t&&n(56,Ot=t.destroy),"open"in t&&n(59,ue=t.open),"close"in t&&n(23,de=t.close),"animateIn"in t&&n(60,pe=t.animateIn),"animateOut"in t&&n(61,ve=t.animateOut)},t.$$.update=function(){524288&t.$$.dirty[1]&&n(31,Yt="string"==typeof G?"width: ".concat(G,";"):""),1048576&t.$$.dirty[1]&&n(32,Zt="string"==typeof K?"min-height: ".concat(K,";"):""),2097152&t.$$.dirty[1]&&n(33,te="string"==typeof X?"max-height: ".concat(X,";"):""),32&t.$$.dirty[0]&&n(34,ee=$ instanceof HTMLElement),128&t.$$.dirty[0]&&n(35,ne=b instanceof HTMLElement),1&t.$$.dirty[0]|1792&t.$$.dirty[3]&&Gt!==u&&(Gt&&(Gt._removeNotice(i),n(30,zt=!1),Jt(),Kt()),u&&(u._addNotice(i),n(102,Jt=u.on("beforeAddOverlay",(function(){n(30,zt=!0),Qt("enterModal")}))),n(103,Kt=u.on("afterRemoveOverlay",(function(){n(30,zt=!1),Qt("leaveModal")})))),n(101,Gt=u)),1073748992&t.$$.dirty[0]&&n(36,ie=P.match(/\bnonblock\b/)||L.match(/\bnonblock\b/)&&zt||W.match(/\bnonblock\b/)&&!zt),1&t.$$.dirty[0]&&n(37,oe=u&&u.dir1?"pnotify-stack-".concat(u.dir1):""),32768&t.$$.dirty[1]&&n(38,re=Array.from(a).filter((function(t){var e=m(t,2),n=e[0];return e[1],"PrependContainer"===n.position}))),32768&t.$$.dirty[1]&&n(39,se=Array.from(a).filter((function(t){var e=m(t,2),n=e[0];return e[1],"PrependContent"===n.position}))),32768&t.$$.dirty[1]&&n(40,ae=Array.from(a).filter((function(t){var e=m(t,2),n=e[0];return e[1],"AppendContent"===n.position}))),32768&t.$$.dirty[1]&&n(41,ce=Array.from(a).filter((function(t){var e=m(t,2),n=e[0];return e[1],"AppendContainer"===n.position}))),34&t.$$.dirty[0]|8&t.$$.dirty[1]&&ee&&f.titleContainer&&f.titleContainer.appendChild($),130&t.$$.dirty[0]|16&t.$$.dirty[1]&&ne&&f.textContainer&&f.textContainer.appendChild(b)},[u,f,et,at,y,$,k,b,O,S,P,L,W,Z,it,rt,ht,mt,yt,$t,kt,function(t){return"string"==typeof M?"".concat(M,"-").concat(t):t in M?M[t]:"".concat(M.prefix,"-").concat(t)},function(t){return"string"==typeof E?"".concat(E,"-icon-").concat(t):t in E?E[t]:"".concat(E.prefix,"-icon-").concat(t)},de,St,Nt,Pt,At,Wt,Dt,zt,Yt,Zt,te,ee,ne,ie,oe,re,se,ae,ce,i,r,function(t){if(n(26,Pt=!0),ft&&"closing"===Ct){if(!jt)return;ye()}at&&ft&&ye()},function(t){n(26,Pt=!1),at&&ft&&"out"!==Ht&&-1!==["open","opening"].indexOf(Ct)&&ge()},a,M,E,B,G,K,X,lt,ft,bt,Ot,function(){return Ct},function(){return Mt},ue,pe,ve,ye,ge,function(t){t?(ye(),Mt="prevented"):"prevented"===Mt&&(Mt=null,"open"===Ct&&at&&ge())},function(){return i.$on.apply(i,arguments)},function(){return i.$set.apply(i,arguments)},function(t,e){o(t,e)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var i=e+1<1||arguments.length<=e+1?void 0:arguments[e+1];-1===At[t].indexOf(i)&&At[t].push(i)}n(27,At)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var i=e+1<1||arguments.length<=e+1?void 0:arguments[e+1],o=At[t].indexOf(i);-1!==o&&At[t].splice(o,1)}n(27,At)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var n=e+1<1||arguments.length<=e+1?void 0:arguments[e+1];if(-1===At[t].indexOf(n))return!1}return!0},function(){return Lt},function(t){return Lt=t},function(){return Rt},function(t){return Rt=t},function(t){return Ht=t},function(){return St},function(t){return n(24,St=t)},function(){return Nt},function(t){return n(25,Nt=t)},function(t,e,i){if(It&&clearTimeout(It),Wt!==t)if(t)n(28,Wt=!0),n(29,Dt=!!e),Vt(),V().then((function(){window.requestAnimationFrame((function(){if(Wt)if(e&&i)i();else{n(29,Dt=!0);var t=function t(){f.elem&&f.elem.removeEventListener("transitionend",t),It&&clearTimeout(It),Dt&&i&&i()};f.elem&&f.elem.addEventListener("transitionend",t),It=setTimeout(t,650)}}))}));else if(e)n(28,Wt=!1),n(29,Dt=!1),bt&&-1===["open","opening","closing"].indexOf(Ct)&&Xt(),i&&i();else{var o=function t(){f.elem&&f.elem.removeEventListener("transitionend",t),It&&clearTimeout(It),Dt||(n(28,Wt=!1),bt&&-1===["open","opening","closing"].indexOf(Ct)&&Xt(),i&&i())};n(29,Dt=!1),f.elem&&f.elem.addEventListener("transitionend",o),f.elem&&f.elem.style.opacity,It=setTimeout(o,650)}},function(){return de(!1)},function(){return n(3,at=!at)},function(t){z[t?"unshift":"push"]((function(){f.iconContainer=t,n(1,f)}))},function(t){z[t?"unshift":"push"]((function(){f.titleContainer=t,n(1,f)}))},function(t){z[t?"unshift":"push"]((function(){f.textContainer=t,n(1,f)}))},function(t){z[t?"unshift":"push"]((function(){f.content=t,n(1,f)}))},function(t){z[t?"unshift":"push"]((function(){f.container=t,n(1,f)}))},function(t){z[t?"unshift":"push"]((function(){f.elem=t,n(1,f)}))}]}window&&document.body?Gt():document.addEventListener("DOMContentLoaded",Gt);var Kt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,o=(e=s,n=f(),function(){var t,i=l(e);if(n){var o=l(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return p(this,t)});function s(t){var e;return i(this,s),function(t,e,n,i,o,r){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=R;D(t);var c=e.props||{},l=t.$$={fragment:null,ctx:null,props:r,update:$,not_equal:o,bound:x(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:x(),dirty:s,skip_bound:!1},u=!1;if(l.ctx=n?n(t,c,(function(e,n){var i=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return l.ctx&&o(l.ctx[e],l.ctx[e]=i)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](i),u&&vt(t,e)),n})):[],l.update(),u=!0,b(l.before_update),l.fragment=!!i&&i(l.ctx),e.target){if(e.hydrate){var f=A(e.target);l.fragment&&l.fragment.l(f),f.forEach(T)}else l.fragment&&l.fragment.c();e.intro&&st(t.$$.fragment),pt(t,e.target,e.anchor),tt()}D(a)}(h(e=o.call(this)),t,Jt,It,O,{modules:46,stack:0,refs:1,type:4,title:5,titleTrusted:6,text:7,textTrusted:8,styling:47,icons:48,mode:9,addClass:10,addModalClass:11,addModelessClass:12,autoOpen:49,width:50,minHeight:51,maxTextHeight:52,icon:13,animation:2,animateSpeed:14,shadow:15,hide:3,delay:53,mouseReset:54,closer:16,closerHover:17,sticker:18,stickerHover:19,labels:20,remove:55,destroy:56,getState:57,getTimer:58,getStyle:21,getIcon:22,open:59,close:23,animateIn:60,animateOut:61,cancelClose:62,queueClose:63,_preventTimerClose:64,on:65,update:66,fire:67,addModuleClass:68,removeModuleClass:69,hasModuleClass:70,getModuleHandled:71,setModuleHandled:72,getModuleOpen:73,setModuleOpen:74,setAnimating:75,getAnimatingClass:76,setAnimatingClass:77,_getMoveClass:78,_setMoveClass:79,_setMasking:80},[-1,-1,-1,-1]),e}return r(s,[{key:"modules",get:function(){return this.$$.ctx[46]},set:function(t){this.$set({modules:t}),tt()}},{key:"stack",get:function(){return this.$$.ctx[0]},set:function(t){this.$set({stack:t}),tt()}},{key:"refs",get:function(){return this.$$.ctx[1]}},{key:"type",get:function(){return this.$$.ctx[4]},set:function(t){this.$set({type:t}),tt()}},{key:"title",get:function(){return this.$$.ctx[5]},set:function(t){this.$set({title:t}),tt()}},{key:"titleTrusted",get:function(){return this.$$.ctx[6]},set:function(t){this.$set({titleTrusted:t}),tt()}},{key:"text",get:function(){return this.$$.ctx[7]},set:function(t){this.$set({text:t}),tt()}},{key:"textTrusted",get:function(){return this.$$.ctx[8]},set:function(t){this.$set({textTrusted:t}),tt()}},{key:"styling",get:function(){return this.$$.ctx[47]},set:function(t){this.$set({styling:t}),tt()}},{key:"icons",get:function(){return this.$$.ctx[48]},set:function(t){this.$set({icons:t}),tt()}},{key:"mode",get:function(){return this.$$.ctx[9]},set:function(t){this.$set({mode:t}),tt()}},{key:"addClass",get:function(){return this.$$.ctx[10]},set:function(t){this.$set({addClass:t}),tt()}},{key:"addModalClass",get:function(){return this.$$.ctx[11]},set:function(t){this.$set({addModalClass:t}),tt()}},{key:"addModelessClass",get:function(){return this.$$.ctx[12]},set:function(t){this.$set({addModelessClass:t}),tt()}},{key:"autoOpen",get:function(){return this.$$.ctx[49]},set:function(t){this.$set({autoOpen:t}),tt()}},{key:"width",get:function(){return this.$$.ctx[50]},set:function(t){this.$set({width:t}),tt()}},{key:"minHeight",get:function(){return this.$$.ctx[51]},set:function(t){this.$set({minHeight:t}),tt()}},{key:"maxTextHeight",get:function(){return this.$$.ctx[52]},set:function(t){this.$set({maxTextHeight:t}),tt()}},{key:"icon",get:function(){return this.$$.ctx[13]},set:function(t){this.$set({icon:t}),tt()}},{key:"animation",get:function(){return this.$$.ctx[2]},set:function(t){this.$set({animation:t}),tt()}},{key:"animateSpeed",get:function(){return this.$$.ctx[14]},set:function(t){this.$set({animateSpeed:t}),tt()}},{key:"shadow",get:function(){return this.$$.ctx[15]},set:function(t){this.$set({shadow:t}),tt()}},{key:"hide",get:function(){return this.$$.ctx[3]},set:function(t){this.$set({hide:t}),tt()}},{key:"delay",get:function(){return this.$$.ctx[53]},set:function(t){this.$set({delay:t}),tt()}},{key:"mouseReset",get:function(){return this.$$.ctx[54]},set:function(t){this.$set({mouseReset:t}),tt()}},{key:"closer",get:function(){return this.$$.ctx[16]},set:function(t){this.$set({closer:t}),tt()}},{key:"closerHover",get:function(){return this.$$.ctx[17]},set:function(t){this.$set({closerHover:t}),tt()}},{key:"sticker",get:function(){return this.$$.ctx[18]},set:function(t){this.$set({sticker:t}),tt()}},{key:"stickerHover",get:function(){return this.$$.ctx[19]},set:function(t){this.$set({stickerHover:t}),tt()}},{key:"labels",get:function(){return this.$$.ctx[20]},set:function(t){this.$set({labels:t}),tt()}},{key:"remove",get:function(){return this.$$.ctx[55]},set:function(t){this.$set({remove:t}),tt()}},{key:"destroy",get:function(){return this.$$.ctx[56]},set:function(t){this.$set({destroy:t}),tt()}},{key:"getState",get:function(){return this.$$.ctx[57]}},{key:"getTimer",get:function(){return this.$$.ctx[58]}},{key:"getStyle",get:function(){return this.$$.ctx[21]}},{key:"getIcon",get:function(){return this.$$.ctx[22]}},{key:"open",get:function(){return this.$$.ctx[59]},set:function(t){this.$set({open:t}),tt()}},{key:"close",get:function(){return this.$$.ctx[23]},set:function(t){this.$set({close:t}),tt()}},{key:"animateIn",get:function(){return this.$$.ctx[60]},set:function(t){this.$set({animateIn:t}),tt()}},{key:"animateOut",get:function(){return this.$$.ctx[61]},set:function(t){this.$set({animateOut:t}),tt()}},{key:"cancelClose",get:function(){return this.$$.ctx[62]}},{key:"queueClose",get:function(){return this.$$.ctx[63]}},{key:"_preventTimerClose",get:function(){return this.$$.ctx[64]}},{key:"on",get:function(){return this.$$.ctx[65]}},{key:"update",get:function(){return this.$$.ctx[66]}},{key:"fire",get:function(){return this.$$.ctx[67]}},{key:"addModuleClass",get:function(){return this.$$.ctx[68]}},{key:"removeModuleClass",get:function(){return this.$$.ctx[69]}},{key:"hasModuleClass",get:function(){return this.$$.ctx[70]}},{key:"getModuleHandled",get:function(){return this.$$.ctx[71]}},{key:"setModuleHandled",get:function(){return this.$$.ctx[72]}},{key:"getModuleOpen",get:function(){return this.$$.ctx[73]}},{key:"setModuleOpen",get:function(){return this.$$.ctx[74]}},{key:"setAnimating",get:function(){return this.$$.ctx[75]}},{key:"getAnimatingClass",get:function(){return this.$$.ctx[76]}},{key:"setAnimatingClass",get:function(){return this.$$.ctx[77]}},{key:"_getMoveClass",get:function(){return this.$$.ctx[78]}},{key:"_setMoveClass",get:function(){return this.$$.ctx[79]}},{key:"_setMasking",get:function(){return this.$$.ctx[80]}}]),s}(yt);t.Stack=gt,t.alert=function(t){return $t(qt(t))},t.default=Kt,t.defaultModules=zt,t.defaultStack=Bt,t.defaults=Ut,t.error=function(t){return $t(qt(t,"error"))},t.info=function(t){return $t(qt(t,"info"))},t.notice=function(t){return $t(qt(t,"notice"))},t.success=function(t){return $t(qt(t,"success"))},Object.defineProperty(t,"__esModule",{value:!0})}(e)}(0,i.exports);var o=i.exports,r=function(){function t(){}return t.prototype.success=function(t,e,n){this.flash("success",t,e,n)},t.prototype.info=function(t,e,n){this.flash("info",t,e,n)},t.prototype.warning=function(t,e,n){this.flash("warning",t,e,n)},t.prototype.error=function(t,e,n){this.flash("error",t,e,n)},t.prototype.flash=function(t,e,n,i){var o=this.createNotification(t,e,n,i);this.renderOptions({}),this.render({notification:o})},t.prototype.createNotification=function(t,e,n,i){if("object"==typeof t?(t=(i=t).type,e=i.message,n=i.title):"object"==typeof e?(e=(i=e).message,n=i.title):"object"==typeof n&&(n=(i=n).title),void 0===e)throw new Error("message option is required");return{type:t||"info",message:e,title:n,options:i}},t.prototype.render=function(t){var n=t.notification;n.type=n.type||"info";var i,r=e({text:n.title},n.options);switch(r=e(e({},r),{text:(null==r?void 0:r.text)||n.message}),n.type){case"success":i=o.success(r);break;case"alert":i=o.alert(r);break;case"info":i=o.info(r);break;case"error":i=o.error(r);break;default:i=o.notice(r)}i.refs.container&&(i.refs.container.dataset.turboCache="false")},t.prototype.updateDefaultOptions=function(t,e){Object.entries(e).forEach((function(e){var n=e[0],i=e[1];t[n]=i}))},t.prototype.renderOptions=function(t){this.updateDefaultOptions(o.defaults,e({delay:t.delay||5e3},t))},t}(),s=new r;return t.addFactory("pnotify",s),s})); diff --git a/src/Pnotify/Prime/composer.json b/src/Pnotify/Prime/composer.json index 409d63be..51b21d84 100644 --- a/src/Pnotify/Prime/composer.json +++ b/src/Pnotify/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.13" + "php-flasher/flasher": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Pnotify/Symfony/Resources/config/config.yaml b/src/Pnotify/Symfony/Resources/config/config.yaml index 3c04aa68..d199c49b 100644 --- a/src/Pnotify/Symfony/Resources/config/config.yaml +++ b/src/Pnotify/Symfony/Resources/config/config.yaml @@ -1,6 +1,12 @@ flasher_pnotify: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.2.4/dist/flasher-pnotify.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js' local: - '/vendor/flasher/flasher-pnotify.min.js' + + styles: + cdn: + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css' + local: + - '/vendor/flasher/flasher-pnotify.min.css' diff --git a/src/Pnotify/Symfony/composer.json b/src/Pnotify/Symfony/composer.json index 70feb879..278ab7ee 100644 --- a/src/Pnotify/Symfony/composer.json +++ b/src/Pnotify/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-pnotify": "^1.13", - "php-flasher/flasher-symfony": "^1.13" + "php-flasher/flasher-pnotify": "^1.15", + "php-flasher/flasher-symfony": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Prime/Plugin/FlasherPlugin.php b/src/Prime/Plugin/FlasherPlugin.php index f8deb7fd..07467ae0 100644 --- a/src/Prime/Plugin/FlasherPlugin.php +++ b/src/Prime/Plugin/FlasherPlugin.php @@ -45,7 +45,7 @@ final class FlasherPlugin extends Plugin public function getRootScript() { return array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.2.4/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ); } @@ -60,6 +60,21 @@ final class FlasherPlugin extends Plugin ); } + /** + * {@inheritDoc} + */ + public function getStyles() + { + return array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher.min.css', + ), + ); + } + /** * @return string */ @@ -105,6 +120,9 @@ final class FlasherPlugin extends Plugin /** * @param array{ + * root_script?: string|array, + * styles?: string|array, + * scripts ?: string|array, * template_factory?: array{default: string, templates: array>}, * auto_create_from_session?: bool, * auto_render?: bool, @@ -123,6 +141,31 @@ final class FlasherPlugin extends Plugin */ public function normalizeConfig(array $config) { + if (isset($config['root_script']) && is_string($config['root_script'])) { + $config['root_script'] = array( + 'local' => $config['root_script'], + 'cdn' => $config['root_script'], + ); + } + + if (isset($config['styles'])) { + if (is_string($config['styles'])) { + $config['styles'] = array('cdn' => $config['styles'], 'local' => $config['styles']); + } + + $config['styles']['cdn'] = (array) $config['styles']['cdn']; + $config['styles']['local'] = (array) $config['styles']['local']; + } + + if (isset($config['scripts'])) { + if (is_string($config['scripts'])) { + $config['scripts'] = array('cdn' => $config['scripts'], 'local' => $config['scripts']); + } + + $config['scripts']['cdn'] = (array) $config['scripts']['cdn']; + $config['scripts']['local'] = (array) $config['scripts']['local']; + } + $deprecatedKeys = array(); if (isset($config['template_factory']['default'])) { diff --git a/src/Prime/Plugin/Plugin.php b/src/Prime/Plugin/Plugin.php index 7793fa93..0a4ff2d6 100644 --- a/src/Prime/Plugin/Plugin.php +++ b/src/Prime/Plugin/Plugin.php @@ -15,9 +15,7 @@ abstract class Plugin implements PluginInterface public function getAlias() { $alias = basename(str_replace('\\', '/', \get_class($this))); - $alias = str_replace('Plugin', '', $alias); - /** @var string $alias */ $alias = preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $alias); @@ -77,7 +75,10 @@ abstract class Plugin implements PluginInterface */ public function getAssetsDir() { - return realpath(rtrim($this->getResourcesDir(), '/').'/assets/') ?: ''; + $resourcesDir = $this->getResourcesDir(); + $assetsDir = rtrim($resourcesDir, '/').'/assets/'; + + return realpath($assetsDir) ?: ''; } /** @@ -86,12 +87,46 @@ abstract class Plugin implements PluginInterface public function getResourcesDir() { $r = new \ReflectionClass($this); + $fileName = pathinfo($r->getFileName() ?: '', PATHINFO_DIRNAME).'/Resources/'; - return realpath(pathinfo($r->getFileName() ?: '', PATHINFO_DIRNAME).'/Resources/') ?: ''; + return realpath($fileName) ?: ''; } /** - * {@inheritdoc} + * @param array{ + * scripts?: string|string[]|array{cdn?: string|string[], local?: string|string[]}, + * styles?: string|string[]|array{cdn?: string|string[], local?: string|string[]}, + * options?: array, + * } $config + * + * @return array{ + * scripts: array{cdn: string[], local: string[]}, + * styles: array{cdn: string[], local: string[]}, + * options: array, + * } + */ + public function normalizeConfig(array $config) + { + $config = $this->processConfiguration($config); + + $config['styles'] = $this->normalizeAssets($config['styles']); + $config['scripts'] = $this->normalizeAssets($config['scripts']); + + return $config; + } + + /** + * @param array{ + * scripts?: string|string[]|array{cdn?: string|string[], local?: string|string[]}, + * styles?: string|string[]|array{cdn?: string|string[], local?: string|string[]}, + * options?: array, + * } $options + * + * @return array{ + * scripts: string|string[]|array{cdn?: string|string[], local?: string|string[]}, + * styles: string|string[]|array{cdn?: string|string[], local?: string|string[]}, + * options: array, + * } */ public function processConfiguration(array $options = array()) { @@ -101,4 +136,23 @@ abstract class Plugin implements PluginInterface 'options' => $this->getOptions(), ), $options); } + + /** + * @param string|array{cdn?: string|string[], local?: string|string[]} $assets + * + * @return array{cdn: string[], local: string[]} + */ + protected function normalizeAssets($assets = array()) + { + if (is_string($assets)) { + $assets = array('cdn' => $assets, 'local' => $assets); + } + + $assets = array_merge(array('cdn' => null, 'local' => null), $assets); + + $assets['cdn'] = (array) $assets['cdn']; + $assets['local'] = (array) $assets['local']; + + return $assets; + } } diff --git a/src/Prime/Plugin/PluginInterface.php b/src/Prime/Plugin/PluginInterface.php index be02ef6c..1f021316 100644 --- a/src/Prime/Plugin/PluginInterface.php +++ b/src/Prime/Plugin/PluginInterface.php @@ -32,12 +32,12 @@ interface PluginInterface public function getFactory(); /** - * @return string[]|array{cdn: string[], local: string[]} + * @return string|string[]|array{cdn?: string|string[], local?: string|string[]} */ public function getScripts(); /** - * @return string[]|array{cdn: string[], local: string[]} + * @return string|string[]|array{cdn?: string|string[], local?: string|string[]} */ public function getStyles(); @@ -56,6 +56,21 @@ interface PluginInterface */ public function getResourcesDir(); + /** + * @phpstan-param array{ + * scripts?: string|array, + * styles?: string|array, + * options?: array, + * } $config + * + * @phpstan-return array{ + * scripts?: array, + * styles?: array, + * options?: array, + * } + */ + public function normalizeConfig(array $config); + /** * @param array $options * diff --git a/src/Prime/Resources/assets/flasher.min.css b/src/Prime/Resources/assets/flasher.min.css new file mode 100644 index 00000000..fb37c884 --- /dev/null +++ b/src/Prime/Resources/assets/flasher.min.css @@ -0,0 +1 @@ +.fl-main-container{position:fixed;transition:all 1s ease-in-out;width:24em;z-index:99999}@media only screen and (max-width:480px){.fl-main-container{left:.5em;right:.5em;width:auto}}.fl-main-container[data-position^=top-]{top:.5em}.fl-main-container[data-position^=bottom-]{bottom:.5em}.fl-main-container[data-position$=-right]{right:.5em}.fl-main-container[data-position$=-right] .fl-container{transform:translateX(110%)}.fl-main-container[data-position$=-left]{left:.5em}.fl-main-container[data-position$=-left] .fl-container{transform:translateX(-110%)}.fl-main-container[data-position$=-center]{left:50%;transform:translateX(-50%)}.fl-main-container[data-position=top-center] .fl-container{transform:translateY(-100vh)}.fl-main-container[data-position=bottom-center] .fl-container{transform:translateY(100vh)}.fl-main-container .fl-container{transition:transform .3s ease-in-out}.fl-main-container .fl-container.fl-show{transform:translate(0)}.fl-main-container .fl-container .fl-progress-bar{display:flex;height:.125em;margin-left:-1px}.fl-main-container .fl-container.fl-rtl{direction:rtl}.fl-main-container .fl-container.fl-rtl .fl-progress-bar{margin-left:auto;margin-right:-1px}.fl-main-container .fl-container.fl-success .fl-icon{background-color:#059669}.fl-main-container .fl-container.fl-success .fl-progress-bar{background-color:#6dface}.fl-main-container .fl-container.fl-success .fl-progress-bar .fl-progress{background-color:#059669}.fl-main-container .fl-container.fl-flasher.fl-success{border-left:.8em solid #059669}.fl-main-container .fl-container.fl-flasher.fl-success.fl-rtl{border-left:none;border-right:.8em solid #059669}.fl-main-container .fl-container.fl-flasher.fl-success:not(.fl-rtl){border-left:.8em solid #059669;border-right:none}.fl-main-container .fl-container.fl-flasher.fl-success .fl-title{color:#059669}.fl-main-container .fl-container.fl-info .fl-icon{background-color:#2563eb}.fl-main-container .fl-container.fl-info .fl-progress-bar{background-color:#e0e9fc}.fl-main-container .fl-container.fl-info .fl-progress-bar .fl-progress{background-color:#2563eb}.fl-main-container .fl-container.fl-flasher.fl-info{border-left:.8em solid #2563eb}.fl-main-container .fl-container.fl-flasher.fl-info.fl-rtl{border-left:none;border-right:.8em solid #2563eb}.fl-main-container .fl-container.fl-flasher.fl-info:not(.fl-rtl){border-left:.8em solid #2563eb;border-right:none}.fl-main-container .fl-container.fl-flasher.fl-info .fl-title{color:#2563eb}.fl-main-container .fl-container.fl-warning .fl-icon{background-color:#d97706}.fl-main-container .fl-container.fl-warning .fl-progress-bar{background-color:#fdd8ae}.fl-main-container .fl-container.fl-warning .fl-progress-bar .fl-progress{background-color:#d97706}.fl-main-container .fl-container.fl-flasher.fl-warning{border-left:.8em solid #d97706}.fl-main-container .fl-container.fl-flasher.fl-warning.fl-rtl{border-left:none;border-right:.8em solid #d97706}.fl-main-container .fl-container.fl-flasher.fl-warning:not(.fl-rtl){border-left:.8em solid #d97706;border-right:none}.fl-main-container .fl-container.fl-flasher.fl-warning .fl-title{color:#d97706}.fl-main-container .fl-container.fl-error .fl-icon{background-color:#dc2626}.fl-main-container .fl-container.fl-error .fl-progress-bar{background-color:#f8d6d6}.fl-main-container .fl-container.fl-error .fl-progress-bar .fl-progress{background-color:#dc2626}.fl-main-container .fl-container.fl-flasher.fl-error{border-left:.8em solid #dc2626}.fl-main-container .fl-container.fl-flasher.fl-error.fl-rtl{border-left:none;border-right:.8em solid #dc2626}.fl-main-container .fl-container.fl-flasher.fl-error:not(.fl-rtl){border-left:.8em solid #dc2626;border-right:none}.fl-main-container .fl-container.fl-flasher.fl-error .fl-title{color:#dc2626}.fl-main-container .fl-container .fl-icon{border-radius:50%;box-sizing:border-box;color:#fff;display:inline-block;height:1em;margin:0;min-height:1em;min-width:1em;position:relative;transition:all 1s;width:1em}.fl-main-container .fl-container .fl-icon:after,.fl-main-container .fl-container .fl-icon:before{border-width:0;box-sizing:border-box;content:"";position:absolute;transition:all 1s}.fl-main-container .fl-container.fl-success .fl-icon:after,.fl-main-container .fl-container.fl-success .fl-icon:before{background-color:currentColor;border-radius:.1em;height:.6em;left:.35em;top:.6em;transform:rotate(-135deg);transform-origin:.08em .08em;width:.16em}.fl-main-container .fl-container.fl-success .fl-icon:after{height:.16em;width:.4em}.fl-main-container .fl-container.fl-info .fl-icon:after,.fl-main-container .fl-container.fl-info .fl-icon:before{background-color:currentColor;border-radius:.03em;left:50%;transform:translateX(-50%);width:.15em}.fl-main-container .fl-container.fl-info .fl-icon:before{height:.38em;top:.4em}.fl-main-container .fl-container.fl-info .fl-icon:after{box-shadow:-.06em .19em,-.06em .44em,.06em .44em;height:.13em;top:.21em}.fl-main-container .fl-container.fl-warning .fl-icon:after,.fl-main-container .fl-container.fl-warning .fl-icon:before{background-color:currentColor;border-radius:.03em;left:50%;transform:translateX(-50%);width:.15em}.fl-main-container .fl-container.fl-warning .fl-icon:before{height:.38em;top:.21em}.fl-main-container .fl-container.fl-warning .fl-icon:after{height:.13em;top:.65em}.fl-main-container .fl-container.fl-error .fl-icon:after,.fl-main-container .fl-container.fl-error .fl-icon:before{background-color:currentColor;border-radius:.1em;height:.7em;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-135deg);width:.16em}.fl-main-container .fl-container.fl-error .fl-icon:after{transform:translate(-50%,-50%) rotate(-45deg)}.fl-main-container .fl-container.fl-flasher{background-color:#fff;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);color:#4b5563;cursor:pointer;line-height:1.5;margin-top:.5em;word-break:break-word}.fl-main-container .fl-container.fl-flasher.fl-rtl{border-radius:0 .375em .375em 0}.fl-main-container .fl-container.fl-flasher:not(.fl-rtl){border-radius:.375em 0 0 .375em}.fl-main-container .fl-container.fl-flasher .fl-content{align-items:center;display:flex;padding:.75em}.fl-main-container .fl-container.fl-flasher .fl-icon{font-size:2.5em}.fl-main-container .fl-container.fl-flasher .fl-message,.fl-main-container .fl-container.fl-flasher .fl-title{display:block;line-height:1.25em;margin-left:1em;margin-right:1em}.fl-main-container .fl-container.fl-flasher .fl-message:first-letter,.fl-main-container .fl-container.fl-flasher .fl-title:first-letter{text-transform:uppercase}.fl-main-container .fl-container.fl-flasher .fl-title{font-size:1em;font-weight:700}.fl-main-container .fl-container.fl-flasher .fl-message{font-size:.875em;margin-top:.25em} \ No newline at end of file diff --git a/src/Prime/Resources/assets/flasher.min.js b/src/Prime/Resources/assets/flasher.min.js index 25a57cfe..d6434521 100644 --- a/src/Prime/Resources/assets/flasher.min.js +++ b/src/Prime/Resources/assets/flasher.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flasher=t()}(this,(function(){"use strict";var e=[],t=[];function n(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o'+(null!==(t=n.title)&&void 0!==t?t:n.type)+''+n.message+''}}),o})); +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).flasher=e()}(this,(function(){"use strict";function t(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r'+(null!==(e=n.title)&&void 0!==e?e:n.type)+''+n.message+''}}),n})); diff --git a/src/Prime/Response/Resource/ResourceManager.php b/src/Prime/Response/Resource/ResourceManager.php index 81527628..1fcf86fa 100644 --- a/src/Prime/Response/Resource/ResourceManager.php +++ b/src/Prime/Response/Resource/ResourceManager.php @@ -136,20 +136,50 @@ final class ResourceManager implements ResourceManagerInterface return $handler; } - if ('flasher' !== $theme && !isset($this->options[$handler])) { - /** @var array $options */ + if (!isset($this->scripts[$handler])) { + $scripts = $this->config->get('themes.'.$theme.'.scripts', array()); + $this->addScripts('theme.'.$theme, (array) $scripts); + } + + if (!isset($this->styles[$handler])) { + $styles = $this->config->get('themes.'.$theme.'.styles', array()); + $this->addStyles('theme.'.$theme, (array) $styles); + } + + if (!isset($this->options[$handler])) { $options = $this->config->get('themes.'.$theme.'.options', array()); $this->addOptions('theme.'.$theme, $options); } if ('flasher' === $theme) { - /** @var array $options */ - $options = $this->config->get('options', array()); + $scripts = $this->config->get('scripts', array()); - if (isset($this->options[$handler])) { - $options = array_merge($this->options[$handler], $options); + if (isset($this->scripts['theme.flasher'])) { + $scripts = array_merge($this->scripts['theme.flasher'], $scripts); } + if (isset($this->scripts['flasher'])) { + $scripts = array_merge($this->scripts['flasher'], $scripts); + } + + $this->addScripts('theme.flasher', (array) $scripts); + + $styles = $this->config->get('styles', array()); + if (isset($this->styles['theme.flasher'])) { + $styles = array_merge($this->styles['theme.flasher'], $styles); + } + if (isset($this->scripts['flasher'])) { + $styles = array_merge($this->styles['flasher'], $styles); + } + $this->addStyles('theme.flasher', (array) $styles); + + $options = $this->config->get('options', array()); + if (isset($this->options['theme.flasher'])) { + $options = array_merge($this->options['theme.flasher'], $options); + } + if (isset($this->options['flasher'])) { + $options = array_merge($this->options['flasher'], $options); + } $this->addOptions('theme.flasher', $options); } diff --git a/src/SweetAlert/Laravel/Resources/config.php b/src/SweetAlert/Laravel/Resources/config.php index 014c958b..23ce54b5 100644 --- a/src/SweetAlert/Laravel/Resources/config.php +++ b/src/SweetAlert/Laravel/Resources/config.php @@ -8,10 +8,18 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.2.4/dist/flasher-sweetalert.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js', ), 'local' => array( '/vendor/flasher/flasher-sweetalert.min.js', ), ), + 'styles' => array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-sweetalert.min.css', + ), + ), ); diff --git a/src/SweetAlert/Laravel/composer.json b/src/SweetAlert/Laravel/composer.json index c28ecf5e..a045a022 100644 --- a/src/SweetAlert/Laravel/composer.json +++ b/src/SweetAlert/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.13", - "php-flasher/flasher-sweetalert": "^1.13" + "php-flasher/flasher-laravel": "^1.15", + "php-flasher/flasher-sweetalert": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.css b/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.css new file mode 100644 index 00000000..437fb962 --- /dev/null +++ b/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.css @@ -0,0 +1 @@ +.swal2-popup.swal2-toast{background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:min-content auto min-content;overflow-y:hidden;padding:1em;pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{font-size:1em;margin:.5em 1em;padding:0;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{font-size:1em;height:2em;margin:.5em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{font-size:.8em;margin:.5em 0 0;padding:.5em 0 0}.swal2-popup.swal2-toast .swal2-close{align-self:center;font-size:2em;grid-column:3/3;grid-row:1/99;height:.8em;margin:0;width:.8em}.swal2-popup.swal2-toast .swal2-html-container{font-size:1em;margin:.5em 1em;overflow:initial;padding:0;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{align-self:center;grid-column:1;grid-row:1/99;height:2em;margin:.25em;width:2em}.swal2-popup.swal2-toast .swal2-icon{align-self:center;grid-column:1;grid-row:1/99;height:2em;margin:0 .5em 0 0;min-width:2em;width:2em}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{align-items:center;display:flex;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{height:2em;width:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;justify-content:flex-start;margin:.5em 0 0;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{font-size:1em;margin:.25em .5em;padding:.4em .6em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{border-radius:50%;height:3em;position:absolute;transform:rotate(45deg);width:1.6em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{border-radius:4em 0 0 4em;left:-.5em;top:-.8em;transform:rotate(-45deg);transform-origin:2em 2em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{border-radius:0 4em 4em 0;left:.9375em;top:-.25em;transform-origin:0 1.5em}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{height:2em;width:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{height:2.6875em;left:.4375em;top:0;width:.4375em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{left:.1875em;top:1.125em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{right:.1875em;top:.9375em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){-webkit-overflow-scrolling:touch;box-sizing:border-box;display:grid;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;inset:0;overflow-x:hidden;padding:.625em;position:fixed;transition:background-color .1s;z-index:1060}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:transparent!important}div:where(.swal2-container).swal2-bottom-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}div:where(.swal2-container).swal2-bottom,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-top{grid-template-columns:auto minmax(0,1fr) auto}div:where(.swal2-container).swal2-bottom-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{align-self:start;grid-column:2;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{align-self:start;grid-column:3;justify-self:end}div:where(.swal2-container).swal2-center-left>.swal2-popup,div:where(.swal2-container).swal2-center-start>.swal2-popup{align-self:center;grid-row:2}div:where(.swal2-container).swal2-center>.swal2-popup{align-self:center;grid-column:2;grid-row:2;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{align-self:center;grid-column:3;grid-row:2;justify-self:end}div:where(.swal2-container).swal2-bottom-left>.swal2-popup,div:where(.swal2-container).swal2-bottom-start>.swal2-popup{align-self:end;grid-column:1;grid-row:3}div:where(.swal2-container).swal2-bottom>.swal2-popup{align-self:end;grid-column:2;grid-row:3;justify-self:center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{align-self:end;grid-column:3;grid-row:3;justify-self:end}div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup,div:where(.swal2-container).swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{align-self:stretch;grid-row:1/4}div:where(.swal2-container).swal2-no-transition{transition:none!important}div:where(.swal2-container) div:where(.swal2-popup){background:#fff;border:none;border-radius:5px;box-sizing:border-box;color:#545454;display:none;font-family:inherit;font-size:1rem;grid-template-columns:minmax(0,100%);max-width:100%;padding:0 0 1.25em;position:relative;width:32em}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){word-wrap:break-word;color:inherit;font-size:1.875em;font-weight:600;margin:0;max-width:100%;padding:.8em 1em 0;position:relative;text-align:center;text-transform:none}div:where(.swal2-container) div:where(.swal2-actions){align-items:center;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:center;margin:1.25em auto 0;padding:0;width:auto;z-index:1}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}div:where(.swal2-container) div:where(.swal2-loader){align-items:center;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-color:#2778c4 transparent;border-radius:100%;border-style:solid;border-width:.25em;display:none;height:2.2em;justify-content:center;margin:0 1.875em;width:2.2em}div:where(.swal2-container) button:where(.swal2-styled){box-shadow:0 0 0 3px transparent;font-weight:500;margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{background:initial;background-color:#7066e0;border:0;border-radius:.25em;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{background:initial;background-color:#dc3741;border:0;border-radius:.25em;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{background:initial;background-color:#6e7881;border:0;border-radius:.25em;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px hsla(208,8%,47%,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){border-top:1px solid #eee;color:inherit;font-size:1em;justify-content:center;margin:1em 0 0;padding:1em 1em 0}div:where(.swal2-container) .swal2-timer-progress-bar-container{border-bottom-left-radius:5px;border-bottom-right-radius:5px;bottom:0;grid-column:auto!important;left:0;overflow:hidden;position:absolute;right:0}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){background:rgba(0,0,0,.2);height:.25em;width:100%}div:where(.swal2-container) img:where(.swal2-image){margin:2em auto 1em;max-width:100%}div:where(.swal2-container) button:where(.swal2-close){align-items:center;background:transparent;border:none;border-radius:5px;color:#ccc;cursor:pointer;font-family:monospace;font-size:2.5em;height:1.2em;justify-content:center;justify-self:end;margin-bottom:-1.2em;margin-right:0;margin-top:0;overflow:hidden;padding:0;transition:color .1s,box-shadow .1s;width:1.2em;z-index:2}div:where(.swal2-container) button:where(.swal2-close):hover{background:transparent;color:#f27474;transform:none}div:where(.swal2-container) button:where(.swal2-close):focus{box-shadow:inset 0 0 0 3px rgba(100,150,200,.5);outline:none}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{word-wrap:break-word;color:inherit;font-size:1.125em;font-weight:400;justify-content:center;line-height:normal;margin:1em 1.6em .3em;overflow:auto;padding:0;text-align:center;word-break:break-word;z-index:1}div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) label:where(.swal2-checkbox),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) textarea:where(.swal2-textarea){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) textarea:where(.swal2-textarea){background:transparent;border:1px solid #d9d9d9;border-radius:.1875em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;box-sizing:border-box;color:inherit;font-size:1.125em;transition:border-color .1s,box-shadow .1s;width:auto}div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5);outline:none}div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{background:#fff;margin:1em 2em 3px}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{color:inherit;font-weight:600;text-align:center;width:20%}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{font-size:1.125em;height:2.625em;line-height:2.625em;padding:0}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{background:transparent;font-size:1.125em;margin-left:auto;margin-right:auto;width:75%}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{background:transparent;color:inherit;font-size:1.125em;max-width:100%;min-width:50%;padding:.375em .625em}div:where(.swal2-container) .swal2-checkbox,div:where(.swal2-container) .swal2-radio{align-items:center;background:#fff;color:inherit;justify-content:center}div:where(.swal2-container) .swal2-checkbox label,div:where(.swal2-container) .swal2-radio label{font-size:1.125em;margin:0 .6em}div:where(.swal2-container) .swal2-checkbox input,div:where(.swal2-container) .swal2-radio input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;justify-content:center;margin:1em 0 0;overflow:hidden;padding:.625em}div:where(.swal2-container) div:where(.swal2-validation-message):before{background-color:#f27474;border-radius:50%;color:#fff;content:"!";display:inline-block;font-weight:600;height:1.5em;line-height:1.5em;margin:0 .625em;min-width:1.5em;text-align:center;width:1.5em}div:where(.swal2-container) div:where(.swal2-icon){border:.25em solid #000;border-radius:50%;box-sizing:content-box;cursor:default;font-family:inherit;height:5em;justify-content:center;line-height:5em;margin:2.5em auto .6em;position:relative;user-select:none;width:5em}div:where(.swal2-container) div:where(.swal2-icon) .swal2-icon-content{align-items:center;display:flex;font-size:3.75em}div:where(.swal2-container) div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-container) div:where(.swal2-icon).swal2-error .swal2-x-mark{flex-grow:1;position:relative}div:where(.swal2-container) div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{background-color:#f27474;border-radius:.125em;display:block;height:.3125em;position:absolute;top:2.3125em;width:2.9375em}div:where(.swal2-container) div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-container) div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-container) div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-container) div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-container) div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-container) div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-container) div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-container) div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-container) div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-container) div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-container) div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-container) div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-container) div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-container) div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-container) div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{border-radius:50%;height:7.5em;position:absolute;transform:rotate(45deg);width:3.75em}div:where(.swal2-container) div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{border-radius:7.5em 0 0 7.5em;left:-2.0635em;top:-.4375em;transform:rotate(-45deg);transform-origin:3.75em 3.75em}div:where(.swal2-container) div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{border-radius:0 7.5em 7.5em 0;left:1.875em;top:-.6875em;transform:rotate(-45deg);transform-origin:0 3.75em}div:where(.swal2-container) div:where(.swal2-icon).swal2-success .swal2-success-ring{border:.25em solid hsla(98,55%,69%,.3);border-radius:50%;box-sizing:content-box;height:100%;left:-.25em;position:absolute;top:-.25em;width:100%;z-index:2}div:where(.swal2-container) div:where(.swal2-icon).swal2-success .swal2-success-fix{height:5.625em;left:1.625em;position:absolute;top:.5em;transform:rotate(-45deg);width:.4375em;z-index:1}div:where(.swal2-container) div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{background-color:#a5dc86;border-radius:.125em;display:block;height:.3125em;position:absolute;z-index:2}div:where(.swal2-container) div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{left:.8125em;top:2.875em;transform:rotate(45deg);width:1.5625em}div:where(.swal2-container) div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{right:.5em;top:2.375em;transform:rotate(-45deg);width:2.9375em}div:where(.swal2-container) div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-container) div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-container) div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}div:where(.swal2-container) .swal2-progress-steps{align-items:center;background:transparent;flex-wrap:wrap;font-weight:600;margin:1.25em auto;max-width:100%;padding:0}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{background:#2778c4;border-radius:2em;color:#fff;flex-shrink:0;height:2em;line-height:2em;text-align:center;width:2em;z-index:20}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{background:#2778c4;flex-shrink:0;height:.4em;margin:0 -1px;width:2.5em;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{height:50px;overflow:scroll;position:absolute;top:-9999px;width:50px}.swal2-rtl .swal2-close{margin-left:0;margin-right:0}.swal2-rtl .swal2-timer-progress-bar{left:auto;right:0}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0deg)}}@keyframes swal2-toast-hide{to{opacity:0;transform:rotate(1deg)}}@keyframes swal2-toast-animate-success-line-tip{0%{left:.0625em;top:.5625em;width:0}54%{left:.125em;top:.125em;width:0}70%{left:-.25em;top:.625em;width:1.625em}84%{left:.75em;top:1.0625em;width:.5em}to{left:.1875em;top:1.125em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{right:1.375em;top:1.625em;width:0}65%{right:.9375em;top:1.25em;width:0}84%{right:0;top:.9375em;width:1.125em}to{right:.1875em;top:.9375em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@keyframes swal2-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.5)}}@keyframes swal2-animate-success-line-tip{0%{left:.0625em;top:1.1875em;width:0}54%{left:.125em;top:1.0625em;width:0}70%{left:-.375em;top:2.1875em;width:3.125em}84%{left:1.3125em;top:3em;width:1.0625em}to{left:.8125em;top:2.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{right:2.875em;top:3.375em;width:0}65%{right:2.875em;top:3.375em;width:0}84%{right:0;top:2.1875em;width:3.4375em}to{right:.5em;top:2.375em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;opacity:0;transform:scale(.4)}50%{margin-top:1.625em;opacity:0;transform:scale(.4)}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;opacity:1;transform:scale(1)}}@keyframes swal2-animate-error-icon{0%{opacity:0;transform:rotateX(100deg)}to{opacity:1;transform:rotateX(0deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-1turn)}to{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{opacity:0;transform:rotate(45deg)}25%{opacity:.4;transform:rotate(-25deg)}50%{opacity:.8;transform:rotate(15deg)}75%{opacity:1;transform:rotate(-5deg)}to{opacity:1;transform:rotateX(0)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent;box-sizing:border-box;max-width:100%;pointer-events:none;width:360px}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto} \ No newline at end of file diff --git a/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js b/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js index 263c21f2..13054486 100644 --- a/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js +++ b/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@flasher/flasher")):"function"==typeof define&&define.amd?define(["@flasher/flasher"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).flasher=e.flasher||{},e.flasher.sweetalert=t(e.flasher))}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,o=1,s=arguments.length;o0&&a[a.length-1])||6!==i[0]&&2!==i[0])){r=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]{const o={};for(const s in e)o[e[s]]=t+e[s];return o},s=o(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),a=o(["success","warning","info","question","error"]),n="SweetAlert2:",r=e=>{const t=[];for(let o=0;oe.charAt(0).toUpperCase()+e.slice(1),l=e=>{console.warn(`${n} ${"object"==typeof e?e.join(" "):e}`)},c=e=>{console.error(`${n} ${e}`)},d=[],u=e=>{d.includes(e)||(d.push(e),l(e))},p=(e,t)=>{u(`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`)},w=e=>"function"==typeof e?e():e,m=e=>e&&"function"==typeof e.toPromise,g=e=>m(e)?e.toPromise():Promise.resolve(e),f=e=>e&&Promise.resolve(e)===e,h=()=>document.body.querySelector(`.${s.container}`),b=e=>{const t=h();return t?t.querySelector(e):null},y=e=>b(`.${e}`),x=()=>y(s.popup),v=()=>y(s.icon),k=()=>y(s["icon-content"]),C=()=>y(s.title),A=()=>y(s["html-container"]),$=()=>y(s.image),P=()=>y(s["progress-steps"]),B=()=>y(s["validation-message"]),E=()=>b(`.${s.actions} .${s.confirm}`),T=()=>b(`.${s.actions} .${s.deny}`),j=()=>y(s["input-label"]),z=()=>b(`.${s.loader}`),S=()=>b(`.${s.actions} .${s.cancel}`),L=()=>y(s.actions),O=()=>y(s.footer),q=()=>y(s["timer-progress-bar"]),M=()=>y(s.close),H='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',I=()=>{const e=Array.from(x().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),s=parseInt(t.getAttribute("tabindex"));return o>s?1:o"-1"!==e.getAttribute("tabindex")));return r(e.concat(t)).filter((e=>ae(e)))},D=()=>R(document.body,s.shown)&&!R(document.body,s["toast-shown"])&&!R(document.body,s["no-backdrop"]),V=()=>x()&&R(x(),s.toast),N=()=>x().hasAttribute("data-loading"),F={previousBodyPadding:null},Y=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},R=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{Array.from(e.classList).forEach((o=>{Object.values(s).includes(o)||Object.values(a).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))},_=(e,t,o)=>{if(U(e,t),t.customClass&&t.customClass[o]){if("string"!=typeof t.customClass[o]&&!t.customClass[o].forEach)return void l(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof t.customClass[o]}"`);X(e,t.customClass[o])}},W=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${s.popup} > .${s[t]}`);case"checkbox":return e.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return e.querySelector(`.${s.popup} > .${s.radio} input:checked`)||e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return e.querySelector(`.${s.popup} > .${s.range} input`);default:return e.querySelector(`.${s.popup} > .${s.input}`)}},Z=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},K=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},X=(e,t)=>{K(e,t,!0)},J=(e,t)=>{K(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o===`${parseInt(o)}`&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?`${o}px`:o:e.style.removeProperty(t)},ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},te=e=>{e.style.display="none"},oe=(e,t,o,s)=>{const a=e.querySelector(t);a&&(a.style[o]=s)},se=function(e,t){t?ee(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):te(e)},ae=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ne=()=>!ae(E())&&!ae(T())&&!ae(S()),re=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),s=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||s>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=q();ae(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"}),10))},ce=()=>{const e=q(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width=`${o}%`},de=100,ue={},pe=()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus()},we=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,s=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{pe(),t()}),de),window.scrollTo(o,s)})),me=()=>"undefined"==typeof window||"undefined"==typeof document,ge=`\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n`.replace(/(^|\n)\s*/g,""),fe=()=>{const e=h();return!!e&&(e.remove(),J([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0)},he=()=>{ue.currentInstance.resetValidationMessage()},be=()=>{const e=x(),t=Q(e,s.input),o=Q(e,s.file),a=e.querySelector(`.${s.range} input`),n=e.querySelector(`.${s.range} output`),r=Q(e,s.select),i=e.querySelector(`.${s.checkbox} input`),l=Q(e,s.textarea);t.oninput=he,o.onchange=he,r.onchange=he,i.onchange=he,l.oninput=he,a.oninput=()=>{he(),n.value=a.value},a.onchange=()=>{he(),n.value=a.value}},ye=e=>"string"==typeof e?document.querySelector(e):e,xe=e=>{const t=x();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},ve=e=>{"rtl"===window.getComputedStyle(e).direction&&X(h(),s.rtl)},ke=e=>{const t=fe();if(me())return void c("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=s.container,t&&X(o,s["no-transition"]),Y(o,ge);const a=ye(e.target);a.appendChild(o),xe(e),ve(a),be()},Ce=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Ae(e,t):e&&Y(t,e)},Ae=(e,t)=>{e.jquery?$e(t,e):Y(t,e.toString())},$e=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Pe=(()=>{if(me())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),Be=()=>{const e=document.createElement("div");e.className=s["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},Ee=(e,t)=>{const o=L(),s=z();t.showConfirmButton||t.showDenyButton||t.showCancelButton?ee(o):te(o),_(o,t,"actions"),Te(o,s,t),Y(s,t.loaderHtml),_(s,t,"loader")};function Te(e,t,o){const s=E(),a=T(),n=S();ze(s,"confirm",o),ze(a,"deny",o),ze(n,"cancel",o),je(s,a,n,o),o.reverseButtons&&(o.toast?(e.insertBefore(n,s),e.insertBefore(a,s)):(e.insertBefore(n,t),e.insertBefore(a,t),e.insertBefore(s,t)))}function je(e,t,o,a){a.buttonsStyling?(X([e,t,o],s.styled),a.confirmButtonColor&&(e.style.backgroundColor=a.confirmButtonColor,X(e,s["default-outline"])),a.denyButtonColor&&(t.style.backgroundColor=a.denyButtonColor,X(t,s["default-outline"])),a.cancelButtonColor&&(o.style.backgroundColor=a.cancelButtonColor,X(o,s["default-outline"]))):J([e,t,o],s.styled)}function ze(e,t,o){se(e,o[`show${i(t)}Button`],"inline-block"),Y(e,o[`${t}ButtonText`]),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]),e.className=s[t],_(e,o,`${t}Button`),X(e,o[`${t}ButtonClass`])}const Se=(e,t)=>{const o=M();Y(o,t.closeButtonHtml),_(o,t,"closeButton"),se(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)},Le=(e,t)=>{const o=h();o&&(Oe(o,t.backdrop),qe(o,t.position),Me(o,t.grow),_(o,t,"container"))};function Oe(e,t){"string"==typeof t?e.style.background=t:t||X([document.documentElement,document.body],s["no-backdrop"])}function qe(e,t){t in s?X(e,s[t]):(l('The "position" parameter is not valid, defaulting to "center"'),X(e,s.center))}function Me(e,t){if(t&&"string"==typeof t){const o=`grow-${t}`;o in s&&X(e,s[o])}}const He=["input","file","range","select","radio","checkbox","textarea"],Ie=(t,o)=>{const a=x(),n=e.innerParams.get(t),r=!n||o.input!==n.input;He.forEach((e=>{const t=Q(a,s[e]);Ne(e,o.inputAttributes),t.className=s[e],r&&te(t)})),o.input&&(r&&De(o),Fe(o))},De=e=>{if(!We[e.input])return void c(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=Ue(e.input),o=We[e.input](t,e);ee(t),setTimeout((()=>{Z(o)}))},Ve=e=>{for(let t=0;t{const o=W(x(),e);if(o){Ve(o);for(const e in t)o.setAttribute(e,t[e])}},Fe=e=>{const t=Ue(e.input);"object"==typeof e.customClass&&X(t,e.customClass.input)},Ye=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Re=(e,t,o)=>{if(o.inputLabel){e.id=s.input;const a=document.createElement("label"),n=s["input-label"];a.setAttribute("for",e.id),a.className=n,"object"==typeof o.customClass&&X(a,o.customClass.inputLabel),a.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",a)}},Ue=e=>Q(x(),s[e]||s.input),_e=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:f(t)||l(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},We={};We.text=We.email=We.password=We.number=We.tel=We.url=(e,t)=>(_e(e,t.inputValue),Re(e,e,t),Ye(e,t),e.type=t.input,e),We.file=(e,t)=>(Re(e,e,t),Ye(e,t),e),We.range=(e,t)=>{const o=e.querySelector("input"),s=e.querySelector("output");return _e(o,t.inputValue),o.type=t.input,_e(s,t.inputValue),Re(o,e,t),e},We.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");Y(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Re(e,e,t),e},We.radio=e=>(e.textContent="",e),We.checkbox=(e,t)=>{const o=W(x(),"checkbox");o.value="1",o.id=s.checkbox,o.checked=Boolean(t.inputValue);const a=e.querySelector("span");return Y(a,t.inputPlaceholder),o},We.textarea=(e,t)=>{_e(e,t.inputValue),Ye(e,t),Re(e,e,t);const o=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(x()).width);new MutationObserver((()=>{const s=e.offsetWidth+o(e);x().style.width=s>t?`${s}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ze=(e,t)=>{const o=A();_(o,t,"htmlContainer"),t.html?(Ce(t.html,o),ee(o,"block")):t.text?(o.textContent=t.text,ee(o,"block")):te(o),Ie(e,t)},Ke=(e,t)=>{const o=O();se(o,t.footer),t.footer&&Ce(t.footer,o),_(o,t,"footer")},Xe=(t,o)=>{const s=e.innerParams.get(t),n=v();if(s&&o.icon===s.icon)return tt(n,o),void Je(n,o);if(o.icon||o.iconHtml){if(o.icon&&-1===Object.keys(a).indexOf(o.icon))return c(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${o.icon}"`),void te(n);ee(n),tt(n,o),Je(n,o),X(n,o.showClass.icon)}else te(n)},Je=(e,t)=>{for(const o in a)t.icon!==o&&J(e,a[o]);X(e,a[t.icon]),ot(e,t),Qe(),_(e,t,"icon")},Qe=()=>{const e=x(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e\n \n \n \n',et='\n \n \n \n \n',tt=(e,t)=>{let o,s=e.innerHTML;t.iconHtml?o=st(t.iconHtml):"success"===t.icon?(o=Ge,s=s.replace(/ style=".*?"/g,"")):o="error"===t.icon?et:st({question:"?",warning:"!",info:"i"}[t.icon]),s.trim()!==o.trim()&&Y(e,o)},ot=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])oe(e,o,"backgroundColor",t.iconColor);oe(e,".swal2-success-ring","borderColor",t.iconColor)}},st=e=>`${e}`,at=(e,t)=>{const o=$();t.imageUrl?(ee(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),G(o,"width",t.imageWidth),G(o,"height",t.imageHeight),o.className=s.image,_(o,t,"image")):te(o)},nt=(e,t)=>{const o=h(),s=x();t.toast?(G(o,"width",t.width),s.style.width="100%",s.insertBefore(z(),v())):G(s,"width",t.width),G(s,"padding",t.padding),t.color&&(s.style.color=t.color),t.background&&(s.style.background=t.background),te(B()),rt(s,t)},rt=(e,t)=>{e.className=`${s.popup} ${ae(e)?t.showClass.popup:""}`,t.toast?(X([document.documentElement,document.body],s["toast-shown"]),X(e,s.toast)):X(e,s.modal),_(e,t,"popup"),"string"==typeof t.customClass&&X(e,t.customClass),t.icon&&X(e,s[`icon-${t.icon}`])},it=(e,t)=>{const o=P();t.progressSteps&&0!==t.progressSteps.length?(ee(o),o.textContent="",t.currentProgressStep>=t.progressSteps.length&&l("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,a)=>{const n=lt(e);if(o.appendChild(n),a===t.currentProgressStep&&X(n,s["active-progress-step"]),a!==t.progressSteps.length-1){const e=ct(t);o.appendChild(e)}}))):te(o)},lt=e=>{const t=document.createElement("li");return X(t,s["progress-step"]),Y(t,e),t},ct=e=>{const t=document.createElement("li");return X(t,s["progress-step-line"]),e.progressStepsDistance&&G(t,"width",e.progressStepsDistance),t},dt=(e,t)=>{const o=C();se(o,t.title||t.titleText,"block"),t.title&&Ce(t.title,o),t.titleText&&(o.innerText=t.titleText),_(o,t,"title")},ut=(e,t)=>{nt(e,t),Le(e,t),it(e,t),Xe(e,t),at(e,t),dt(e,t),Se(e,t),Ze(e,t),Ee(e,t),Ke(e,t),"function"==typeof t.didRender&&t.didRender(x())};function pt(){const t=e.innerParams.get(this);if(!t)return;const o=e.domCache.get(this);te(o.loader),V()?t.icon&&ee(v()):wt(o),J([o.popup,o.actions],s.loading),o.popup.removeAttribute("aria-busy"),o.popup.removeAttribute("data-loading"),o.confirmButton.disabled=!1,o.denyButton.disabled=!1,o.cancelButton.disabled=!1}const wt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ee(t[0],"inline-block"):ne()&&te(e.actions)};function mt(t){const o=e.innerParams.get(t||this),s=e.domCache.get(t||this);return s?W(s.popup,o.input):null}const gt=()=>ae(x()),ft=()=>E()&&E().click(),ht=()=>T()&&T().click(),bt=()=>S()&&S().click(),yt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),xt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},vt=(e,t,o,s)=>{xt(t),o.toast||(t.keydownHandler=t=>$t(e,t,s),t.keydownTarget=o.keydownListenerCapture?window:x(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},kt=(e,t)=>{const o=I();if(o.length)return(e+=t)===o.length?e=0:-1===e&&(e=o.length-1),void o[e].focus();x().focus()},Ct=["ArrowRight","ArrowDown"],At=["ArrowLeft","ArrowUp"],$t=(t,o,s)=>{const a=e.innerParams.get(t);a&&(o.isComposing||229===o.keyCode||(a.stopKeydownPropagation&&o.stopPropagation(),"Enter"===o.key?Pt(t,o,a):"Tab"===o.key?Bt(o):[...Ct,...At].includes(o.key)?Et(o.key):"Escape"===o.key&&Tt(o,a,s)))},Pt=(e,t,o)=>{if(w(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;ft(),t.preventDefault()}},Bt=e=>{const t=e.target,o=I();let s=-1;for(let e=0;e{const t=E(),o=T(),s=S();if(document.activeElement instanceof HTMLElement&&![t,o,s].includes(document.activeElement))return;const a=Ct.includes(e)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let e=0;e{w(t.allowEscapeKey)&&(e.preventDefault(),o(yt.esc))};var jt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const zt=()=>{Array.from(document.body.children).forEach((e=>{e===h()||e.contains(h())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))},St=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Lt=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!R(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",X(document.body,s.iosfix),qt(),Ot()}},Ot=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;x().scrollHeight>window.innerHeight-e&&(h().style.paddingBottom=`${e}px`)}},qt=()=>{const e=h();let t;e.ontouchstart=e=>{t=Mt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Mt=e=>{const t=e.target,o=h();return!(Ht(e)||It(e)||t!==o&&(re(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||re(A())&&A().contains(t)))},Ht=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,It=e=>e.touches&&e.touches.length>1,Dt=()=>{if(R(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Vt=()=>{null===F.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(F.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${F.previousBodyPadding+Be()}px`)},Nt=()=>{null!==F.previousBodyPadding&&(document.body.style.paddingRight=`${F.previousBodyPadding}px`,F.previousBodyPadding=null)};function Ft(e,t,o,s){V()?Qt(e,s):(we(o).then((()=>Qt(e,s))),xt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),D()&&(Nt(),Dt(),St()),Yt()}function Yt(){J([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function Rt(e){e=Kt(e);const t=jt.swalPromiseResolve.get(this),o=_t(this);this.isAwaitingPromise()?e.isDismissed||(Zt(this),t(e)):o&&t(e)}function Ut(){return!!e.awaitingPromise.get(this)}const _t=t=>{const o=x();if(!o)return!1;const s=e.innerParams.get(t);if(!s||R(o,s.hideClass.popup))return!1;J(o,s.showClass.popup),X(o,s.hideClass.popup);const a=h();return J(a,s.showClass.backdrop),X(a,s.hideClass.backdrop),Xt(t,o,s),!0};function Wt(e){const t=jt.swalPromiseReject.get(this);Zt(this),t&&t(e)}const Zt=t=>{t.isAwaitingPromise()&&(e.awaitingPromise.delete(t),e.innerParams.get(t)||t._destroy())},Kt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Xt=(e,t,o)=>{const s=h(),a=Pe&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Jt(e,t,s,o.returnFocus,o.didClose):Ft(e,s,o.returnFocus,o.didClose)},Jt=(e,t,o,s,a)=>{ue.swalCloseEventFinishedCallback=Ft.bind(null,e,o,s,a),t.addEventListener(Pe,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Qt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Gt(t,o,s){const a=e.domCache.get(t);o.forEach((e=>{a[e].disabled=s}))}function eo(e,t){if(e)if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;eObject.prototype.hasOwnProperty.call(io,e),wo=e=>-1!==lo.indexOf(e),mo=e=>co[e],go=e=>{po(e)||l(`Unknown parameter "${e}"`)},fo=e=>{uo.includes(e)&&l(`The parameter "${e}" is incompatible with toasts`)},ho=e=>{mo(e)&&p(e,mo(e))},bo=e=>{!1===e.backdrop&&e.allowOutsideClick&&l('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)go(t),e.toast&&fo(t),ho(t)};function yo(t){const o=x(),s=e.innerParams.get(this);if(!o||R(o,s.hideClass.popup))return void l("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const a=xo(t),n=Object.assign({},s,a);ut(this,n),e.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const xo=e=>{const t={};return Object.keys(e).forEach((o=>{wo(o)?t[o]=e[o]:l(`Invalid parameter to update: ${o}`)})),t};function vo(){const t=e.domCache.get(this),o=e.innerParams.get(this);o?(t.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),ko(this)):Co(this)}const ko=e=>{Co(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Co=t=>{t.isAwaitingPromise()?(Ao(e,t),e.awaitingPromise.set(t,!0)):(Ao(jt,t),Ao(e,t))},Ao=(e,t)=>{for(const o in e)e[o].delete(t)};var $o=Object.freeze({__proto__:null,hideLoading:pt,disableLoading:pt,getInput:mt,close:Rt,isAwaitingPromise:Ut,rejectPromise:Wt,handleAwaitingPromise:Zt,closePopup:Rt,closeModal:Rt,closeToast:Rt,enableButtons:to,disableButtons:oo,enableInput:so,disableInput:ao,showValidationMessage:no,resetValidationMessage:ro,update:yo,_destroy:vo});const Po=e=>{let t=x();t||new Ws,t=x();const o=z();V()?te(v()):Bo(t,e),ee(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Bo=(e,t)=>{const o=L(),a=z();!t&&ae(E())&&(t=E()),ee(o),t&&(te(t),a.setAttribute("data-button-to-replace",t.className)),a.parentNode.insertBefore(a,t),X([e,o],s.loading)},Eo=(e,t)=>{"select"===t.input||"radio"===t.input?Lo(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(m(t.inputValue)||f(t.inputValue))&&(Po(E()),Oo(e,t))},To=(e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return jo(o);case"radio":return zo(o);case"file":return So(o);default:return t.inputAutoTrim?o.value.trim():o.value}},jo=e=>e.checked?1:0,zo=e=>e.checked?e.value:null,So=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Lo=(e,t)=>{const o=x(),s=e=>{qo[t.input](o,Mo(e),t)};m(t.inputOptions)||f(t.inputOptions)?(Po(E()),g(t.inputOptions).then((t=>{e.hideLoading(),s(t)}))):"object"==typeof t.inputOptions?s(t.inputOptions):c("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Oo=(e,t)=>{const o=e.getInput();te(o),g(t.inputValue).then((s=>{o.value="number"===t.input?`${parseFloat(s)||0}`:`${s}`,ee(o),o.focus(),e.hideLoading()})).catch((t=>{c(`Error in inputValue promise: ${t}`),o.value="",ee(o),o.focus(),e.hideLoading()}))},qo={select:(e,t,o)=>{const a=Q(e,s.select),n=(e,t,s)=>{const a=document.createElement("option");a.value=s,Y(a,t),a.selected=Ho(s,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,a.appendChild(e),o.forEach((t=>n(e,t[1],t[0])))}else n(a,o,t)})),a.focus()},radio:(e,t,o)=>{const a=Q(e,s.radio);t.forEach((e=>{const t=e[0],n=e[1],r=document.createElement("input"),i=document.createElement("label");r.type="radio",r.name=s.radio,r.value=t,Ho(t,o.inputValue)&&(r.checked=!0);const l=document.createElement("span");Y(l,n),l.className=s.label,i.appendChild(r),i.appendChild(l),a.appendChild(i)}));const n=a.querySelectorAll("input");n.length&&n[0].focus()}},Mo=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let s=e;"object"==typeof s&&(s=Mo(s)),t.push([o,s])})):Object.keys(e).forEach((o=>{let s=e[o];"object"==typeof s&&(s=Mo(s)),t.push([o,s])})),t},Ho=(e,t)=>t&&t.toString()===e.toString(),Io=t=>{const o=e.innerParams.get(t);t.disableButtons(),o.input?No(t,"confirm"):_o(t,!0)},Do=t=>{const o=e.innerParams.get(t);t.disableButtons(),o.returnInputValueOnDeny?No(t,"deny"):Yo(t,!1)},Vo=(e,t)=>{e.disableButtons(),t(yt.cancel)},No=(t,o)=>{const s=e.innerParams.get(t);if(!s.input)return void c(`The "input" parameter is needed to be set when using returnInputValueOn${i(o)}`);const a=To(t,s);s.inputValidator?Fo(t,a,o):t.getInput().checkValidity()?"deny"===o?Yo(t,a):_o(t,a):(t.enableButtons(),t.showValidationMessage(s.validationMessage))},Fo=(t,o,s)=>{const a=e.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>g(a.inputValidator(o,a.validationMessage)))).then((e=>{t.enableButtons(),t.enableInput(),e?t.showValidationMessage(e):"deny"===s?Yo(t,o):_o(t,o)}))},Yo=(t,o)=>{const s=e.innerParams.get(t||void 0);s.showLoaderOnDeny&&Po(T()),s.preDeny?(e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>g(s.preDeny(o,s.validationMessage)))).then((e=>{!1===e?(t.hideLoading(),Zt(t)):t.close({isDenied:!0,value:void 0===e?o:e})})).catch((e=>Uo(t||void 0,e)))):t.close({isDenied:!0,value:o})},Ro=(e,t)=>{e.close({isConfirmed:!0,value:t})},Uo=(e,t)=>{e.rejectPromise(t)},_o=(t,o)=>{const s=e.innerParams.get(t||void 0);s.showLoaderOnConfirm&&Po(),s.preConfirm?(t.resetValidationMessage(),e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>g(s.preConfirm(o,s.validationMessage)))).then((e=>{ae(B())||!1===e?(t.hideLoading(),Zt(t)):Ro(t,void 0===e?o:e)})).catch((e=>Uo(t||void 0,e)))):Ro(t,o)},Wo=(t,o,s)=>{e.innerParams.get(t).toast?Zo(t,o,s):(Jo(o),Qo(o),Go(t,o,s))},Zo=(t,o,s)=>{o.popup.onclick=()=>{const o=e.innerParams.get(t);o&&(Ko(o)||o.timer||o.input)||s(yt.close)}},Ko=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Xo=!1;const Jo=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Xo=!0)}}},Qo=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Xo=!0)}}},Go=(t,o,s)=>{o.container.onclick=a=>{const n=e.innerParams.get(t);Xo?Xo=!1:a.target===o.container&&w(n.allowOutsideClick)&&s(yt.backdrop)}},es=e=>"object"==typeof e&&e.jquery,ts=e=>e instanceof Element||es(e),os=e=>{const t={};return"object"!=typeof e[0]||ts(e[0])?["title","html","icon"].forEach(((o,s)=>{const a=e[s];"string"==typeof a||ts(a)?t[o]=a:void 0!==a&&c(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof a}`)})):Object.assign(t,e[0]),t};function ss(){const e=this;for(var t=arguments.length,o=new Array(t),s=0;sue.timeout&&ue.timeout.getTimerLeft(),rs=()=>{if(ue.timeout)return ce(),ue.timeout.stop()},is=()=>{if(ue.timeout){const e=ue.timeout.start();return le(e),e}},ls=()=>{const e=ue.timeout;return e&&(e.running?rs():is())},cs=e=>{if(ue.timeout){const t=ue.timeout.increase(e);return le(t,!0),t}},ds=()=>ue.timeout&&ue.timeout.isRunning();let us=!1;const ps={};function ws(){ps[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,us||(document.body.addEventListener("click",ms),us=!0)}const ms=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in ps){const o=t.getAttribute(e);if(o)return void ps[e].fire({template:o})}};var gs=Object.freeze({__proto__:null,isValidParameter:po,isUpdatableParameter:wo,isDeprecatedParameter:mo,argsToParams:os,getContainer:h,getPopup:x,getTitle:C,getHtmlContainer:A,getImage:$,getIcon:v,getIconContent:k,getInputLabel:j,getCloseButton:M,getActions:L,getConfirmButton:E,getDenyButton:T,getCancelButton:S,getLoader:z,getFooter:O,getTimerProgressBar:q,getFocusableElements:I,getValidationMessage:B,getProgressSteps:P,isLoading:N,isVisible:gt,clickConfirm:ft,clickDeny:ht,clickCancel:bt,fire:ss,mixin:as,showLoading:Po,enableLoading:Po,getTimerLeft:ns,stopTimer:rs,resumeTimer:is,toggleTimer:ls,increaseTimer:cs,isTimerRunning:ds,bindClickHandler:ws});class fs{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const hs=["swal-title","swal-html","swal-footer"],bs=e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Ps(o),Object.assign(ys(o),xs(o),vs(o),ks(o),Cs(o),As(o),$s(o,hs))},ys=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Bs(e,["name","value"]);const o=e.getAttribute("name"),s=e.getAttribute("value");"boolean"==typeof io[o]?t[o]="false"!==s:"object"==typeof io[o]?t[o]=JSON.parse(s):t[o]=s})),t},xs=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const o=e.getAttribute("name"),s=e.getAttribute("value");t[o]=new Function(`return ${s}`)()})),t},vs=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Bs(e,["type","color","aria-label"]);const o=e.getAttribute("type");t[`${o}ButtonText`]=e.innerHTML,t[`show${i(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},ks=e=>{const t={},o=e.querySelector("swal-image");return o&&(Bs(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Cs=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Bs(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},As=e=>{const t={},o=e.querySelector("swal-input");o&&(Bs(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const s=Array.from(e.querySelectorAll("swal-input-option"));return s.length&&(t.inputOptions={},s.forEach((e=>{Bs(e,["value"]);const o=e.getAttribute("value"),s=e.innerHTML;t.inputOptions[o]=s}))),t},$s=(e,t)=>{const o={};for(const s in t){const a=t[s],n=e.querySelector(a);n&&(Bs(n,[]),o[a.replace(/^swal-/,"")]=n.innerHTML.trim())}return o},Ps=e=>{const t=hs.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const o=e.tagName.toLowerCase();t.includes(o)||l(`Unrecognized element <${o}>`)}))},Bs=(e,t)=>{Array.from(e.attributes).forEach((o=>{-1===t.indexOf(o.name)&&l([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},Es=10,Ts=e=>{const t=h(),o=x();"function"==typeof e.willOpen&&e.willOpen(o);const a=window.getComputedStyle(document.body).overflowY;Ls(t,o,e),setTimeout((()=>{zs(t,o)}),Es),D()&&(Ss(t,e.scrollbarPadding,a),zt()),V()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),J(t,s["no-transition"])},js=e=>{const t=x();if(e.target!==t)return;const o=h();t.removeEventListener(Pe,js),o.style.overflowY="auto"},zs=(e,t)=>{Pe&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(Pe,js)):e.style.overflowY="auto"},Ss=(e,t,o)=>{Lt(),t&&"hidden"!==o&&Vt(),setTimeout((()=>{e.scrollTop=0}))},Ls=(e,t,o)=>{X(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),ee(t,"grid"),setTimeout((()=>{X(t,o.showClass.popup),t.style.removeProperty("opacity")}),Es),X([document.documentElement,document.body],s.shown),o.heightAuto&&o.backdrop&&!o.toast&&X([document.documentElement,document.body],s["height-auto"])};var Os={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function qs(e){e.inputValidator||Object.keys(Os).forEach((t=>{e.input===t&&(e.inputValidator=Os[t])}))}function Ms(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(l('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Hs(e){qs(e),e.showLoaderOnConfirm&&!e.preConfirm&&l("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Ms(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("")),ke(e)}let Is;class Ds{constructor(){if("undefined"==typeof window)return;Is=this;for(var t=arguments.length,o=new Array(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};bo(Object.assign({},o,t)),ue.currentInstance&&(ue.currentInstance._destroy(),D()&&St()),ue.currentInstance=Is;const s=Ns(t,o);Hs(s),Object.freeze(s),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=Fs(Is);return ut(Is,s),e.innerParams.set(Is,s),Vs(Is,a,s)}then(t){return e.promise.get(this).then(t)}finally(t){return e.promise.get(this).finally(t)}}const Vs=(e,t,o)=>new Promise(((s,a)=>{const n=t=>{e.close({isDismissed:!0,dismiss:t})};jt.swalPromiseResolve.set(e,s),jt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>{Io(e)},t.denyButton.onclick=()=>{Do(e)},t.cancelButton.onclick=()=>{Vo(e,n)},t.closeButton.onclick=()=>{n(yt.close)},Wo(e,t,n),vt(e,ue,o,n),Eo(e,o),Ts(o),Ys(ue,o,n),Rs(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),Ns=(e,t)=>{const o=bs(e),s=Object.assign({},io,t,o,e);return s.showClass=Object.assign({},io.showClass,s.showClass),s.hideClass=Object.assign({},io.hideClass,s.hideClass),s},Fs=t=>{const o={popup:x(),container:h(),actions:L(),confirmButton:E(),denyButton:T(),cancelButton:S(),loader:z(),closeButton:M(),validationMessage:B(),progressSteps:P()};return e.domCache.set(t,o),o},Ys=(e,t,o)=>{const s=q();te(s),t.timer&&(e.timeout=new fs((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ee(s),_(s,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Rs=(e,t)=>{t.toast||(w(t.allowEnterKey)?Us(e,t)||kt(-1,1):_s())},Us=(e,t)=>t.focusDeny&&ae(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ae(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ae(e.confirmButton)||(e.confirmButton.focus(),0)),_s=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}Object.assign(Ds.prototype,$o),Object.assign(Ds,gs),Object.keys($o).forEach((e=>{Ds[e]=function(){if(Is)return Is[e](...arguments)}})),Ds.DismissReason=yt,Ds.version="11.6.16";const Ws=Ds;return Ws.default=Ws,Ws}(),void 0!==a&&a.Sweetalert2&&(a.swal=a.sweetAlert=a.Swal=a.SweetAlert=a.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')}({get exports(){return n},set exports(e){n=e}});var r=n,i=[],l=[];!function(e,t){if(e&&"undefined"!=typeof document){var o,s=!0===t.prepend?"prepend":"append",a=!0===t.singleTag,n="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(a){var r=i.indexOf(n);-1===r&&(r=i.push(n)-1,l[r]={}),o=l[r]&&l[r][s]?l[r][s]:l[r][s]=c()}else o=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),o.styleSheet?o.styleSheet.cssText+=e:o.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var o=Object.keys(t.attributes),a=0;a*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{font-size:1em;margin:.5em 1em;padding:0;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{font-size:1em;height:2em;margin:.5em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{font-size:.8em;margin:.5em 0 0;padding:.5em 0 0}.swal2-popup.swal2-toast .swal2-close{align-self:center;font-size:2em;grid-column:3/3;grid-row:1/99;height:.8em;margin:0;width:.8em}.swal2-popup.swal2-toast .swal2-html-container{font-size:1em;margin:.5em 1em;overflow:initial;padding:0;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{align-self:center;grid-column:1;grid-row:1/99;height:2em;margin:.25em;width:2em}.swal2-popup.swal2-toast .swal2-icon{align-self:center;grid-column:1;grid-row:1/99;height:2em;margin:0 .5em 0 0;min-width:2em;width:2em}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{align-items:center;display:flex;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{height:2em;width:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;justify-content:flex-start;margin:.5em 0 0;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{font-size:1em;margin:.25em .5em;padding:.4em .6em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{border-radius:50%;height:3em;position:absolute;transform:rotate(45deg);width:1.6em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{border-radius:4em 0 0 4em;left:-.5em;top:-.8em;transform:rotate(-45deg);transform-origin:2em 2em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{border-radius:0 4em 4em 0;left:.9375em;top:-.25em;transform-origin:0 1.5em}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{height:2em;width:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{height:2.6875em;left:.4375em;top:0;width:.4375em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{left:.1875em;top:1.125em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{right:.1875em;top:.9375em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{-webkit-overflow-scrolling:touch;bottom:0;box-sizing:border-box;display:grid;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;left:0;overflow-x:hidden;padding:.625em;position:fixed;right:0;top:0;transition:background-color .1s;z-index:1060}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:transparent!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{align-self:start;grid-column:2;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{align-self:start;grid-column:3;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{align-self:center;grid-row:2}.swal2-container.swal2-center>.swal2-popup{align-self:center;grid-column:2;grid-row:2;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{align-self:center;grid-column:3;grid-row:2;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{align-self:end;grid-column:1;grid-row:3}.swal2-container.swal2-bottom>.swal2-popup{align-self:end;grid-column:2;grid-row:3;justify-self:center}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{align-self:end;grid-column:3;grid-row:3;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{align-self:stretch;grid-row:1/4}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{background:#fff;border:none;border-radius:5px;box-sizing:border-box;color:#545454;display:none;font-family:inherit;font-size:1rem;grid-template-columns:minmax(0,100%);max-width:100%;padding:0 0 1.25em;position:relative;width:32em}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{word-wrap:break-word;color:inherit;font-size:1.875em;font-weight:600;margin:0;max-width:100%;padding:.8em 1em 0;position:relative;text-align:center;text-transform:none}.swal2-actions{align-items:center;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:center;margin:1.25em auto 0;padding:0;width:auto;z-index:1}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{align-items:center;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-color:#2778c4 transparent;border-radius:100%;border-style:solid;border-width:.25em;display:none;height:2.2em;justify-content:center;margin:0 1.875em;width:2.2em}.swal2-styled{box-shadow:0 0 0 3px transparent;font-weight:500;margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{background:initial;background-color:#7066e0;border:0;border-radius:.25em;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{background:initial;background-color:#dc3741;border:0;border-radius:.25em;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{background:initial;background-color:#6e7881;border:0;border-radius:.25em;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px hsla(208,8%,47%,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{border-top:1px solid #eee;color:inherit;font-size:1em;justify-content:center;margin:1em 0 0;padding:1em 1em 0}.swal2-timer-progress-bar-container{border-bottom-left-radius:5px;border-bottom-right-radius:5px;bottom:0;grid-column:auto!important;left:0;overflow:hidden;position:absolute;right:0}.swal2-timer-progress-bar{background:rgba(0,0,0,.2);height:.25em;width:100%}.swal2-image{margin:2em auto 1em;max-width:100%}.swal2-close{align-items:center;background:transparent;border:none;border-radius:5px;color:#ccc;cursor:pointer;font-family:serif;font-family:monospace;font-size:2.5em;height:1.2em;justify-content:center;justify-self:end;margin-bottom:-1.2em;margin-right:0;margin-top:0;overflow:hidden;padding:0;transition:color .1s,box-shadow .1s;width:1.2em;z-index:2}.swal2-close:hover{background:transparent;color:#f27474;transform:none}.swal2-close:focus{box-shadow:inset 0 0 0 3px rgba(100,150,200,.5);outline:none}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{word-wrap:break-word;color:inherit;font-size:1.125em;font-weight:400;justify-content:center;line-height:normal;margin:1em 1.6em .3em;overflow:auto;padding:0;text-align:center;word-break:break-word;z-index:1}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{background:transparent;border:1px solid #d9d9d9;border-radius:.1875em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;box-sizing:border-box;color:inherit;font-size:1.125em;transition:border-color .1s,box-shadow .1s;width:auto}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5);outline:none}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{background:#fff;margin:1em 2em 3px}.swal2-range input{width:80%}.swal2-range output{color:inherit;font-weight:600;text-align:center;width:20%}.swal2-range input,.swal2-range output{font-size:1.125em;height:2.625em;line-height:2.625em;padding:0}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{background:transparent;font-size:1.125em;margin-left:auto;margin-right:auto;width:75%}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{background:transparent;color:inherit;font-size:1.125em;max-width:100%;min-width:50%;padding:.375em .625em}.swal2-checkbox,.swal2-radio{align-items:center;background:#fff;color:inherit;justify-content:center}.swal2-checkbox label,.swal2-radio label{font-size:1.125em;margin:0 .6em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;justify-content:center;margin:1em 0 0;overflow:hidden;padding:.625em}.swal2-validation-message:before{background-color:#f27474;border-radius:50%;color:#fff;content:"!";display:inline-block;font-weight:600;height:1.5em;line-height:1.5em;margin:0 .625em;min-width:1.5em;text-align:center;width:1.5em}.swal2-icon{border:.25em solid #000;border-radius:50%;box-sizing:content-box;cursor:default;font-family:inherit;height:5em;justify-content:center;line-height:5em;margin:2.5em auto .6em;position:relative;user-select:none;width:5em}.swal2-icon .swal2-icon-content{align-items:center;display:flex;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{flex-grow:1;position:relative}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{background-color:#f27474;border-radius:.125em;display:block;height:.3125em;position:absolute;top:2.3125em;width:2.9375em}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{border-radius:50%;height:7.5em;position:absolute;transform:rotate(45deg);width:3.75em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{border-radius:7.5em 0 0 7.5em;left:-2.0635em;top:-.4375em;transform:rotate(-45deg);transform-origin:3.75em 3.75em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{border-radius:0 7.5em 7.5em 0;left:1.875em;top:-.6875em;transform:rotate(-45deg);transform-origin:0 3.75em}.swal2-icon.swal2-success .swal2-success-ring{border:.25em solid hsla(98,55%,69%,.3);border-radius:50%;box-sizing:content-box;height:100%;left:-.25em;position:absolute;top:-.25em;width:100%;z-index:2}.swal2-icon.swal2-success .swal2-success-fix{height:5.625em;left:1.625em;position:absolute;top:.5em;transform:rotate(-45deg);width:.4375em;z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{background-color:#a5dc86;border-radius:.125em;display:block;height:.3125em;position:absolute;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{left:.8125em;top:2.875em;transform:rotate(45deg);width:1.5625em}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{right:.5em;top:2.375em;transform:rotate(-45deg);width:2.9375em}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;background:transparent;flex-wrap:wrap;font-weight:600;margin:1.25em auto;max-width:100%;padding:0}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{background:#2778c4;border-radius:2em;color:#fff;flex-shrink:0;height:2em;line-height:2em;text-align:center;width:2em;z-index:20}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{background:#2778c4;flex-shrink:0;height:.4em;margin:0 -1px;width:2.5em;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{height:50px;overflow:scroll;position:absolute;top:-9999px;width:50px}.swal2-rtl .swal2-close{margin-left:0;margin-right:0}.swal2-rtl .swal2-timer-progress-bar{left:auto;right:0}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0deg)}}@keyframes swal2-toast-hide{to{opacity:0;transform:rotate(1deg)}}@keyframes swal2-toast-animate-success-line-tip{0%{left:.0625em;top:.5625em;width:0}54%{left:.125em;top:.125em;width:0}70%{left:-.25em;top:.625em;width:1.625em}84%{left:.75em;top:1.0625em;width:.5em}to{left:.1875em;top:1.125em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{right:1.375em;top:1.625em;width:0}65%{right:.9375em;top:1.25em;width:0}84%{right:0;top:.9375em;width:1.125em}to{right:.1875em;top:.9375em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@keyframes swal2-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.5)}}@keyframes swal2-animate-success-line-tip{0%{left:.0625em;top:1.1875em;width:0}54%{left:.125em;top:1.0625em;width:0}70%{left:-.375em;top:2.1875em;width:3.125em}84%{left:1.3125em;top:3em;width:1.0625em}to{left:.8125em;top:2.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{right:2.875em;top:3.375em;width:0}65%{right:2.875em;top:3.375em;width:0}84%{right:0;top:2.1875em;width:3.4375em}to{right:.5em;top:2.375em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;opacity:0;transform:scale(.4)}50%{margin-top:1.625em;opacity:0;transform:scale(.4)}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;opacity:1;transform:scale(1)}}@keyframes swal2-animate-error-icon{0%{opacity:0;transform:rotateX(100deg)}to{opacity:1;transform:rotateX(0deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-1turn)}to{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{opacity:0;transform:rotate(45deg)}25%{opacity:.4;transform:rotate(-25deg)}50%{opacity:.8;transform:rotate(15deg)}75%{opacity:1;transform:rotate(-5deg)}to{opacity:1;transform:rotateX(0)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent;box-sizing:border-box;max-width:100%;pointer-events:none;width:360px}body.swal2-toast-shown .swal2-container.swal2-top{bottom:auto;left:50%;right:auto;top:0;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{bottom:auto;left:auto;right:0;top:0}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{bottom:auto;left:0;right:auto;top:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{bottom:auto;left:0;right:auto;top:50%;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{bottom:auto;left:50%;right:auto;top:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{bottom:auto;left:auto;right:0;top:50%;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{bottom:0;left:0;right:auto;top:auto}body.swal2-toast-shown .swal2-container.swal2-bottom{bottom:0;left:50%;right:auto;top:auto;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{bottom:0;left:auto;right:0;top:auto}',{});var c=new(function(){function e(){this.queue=[]}return e.prototype.success=function(e,t,o){this.flash("success",e,t,o)},e.prototype.info=function(e,t,o){this.flash("info",e,t,o)},e.prototype.warning=function(e,t,o){this.flash("warning",e,t,o)},e.prototype.error=function(e,t,o){this.flash("error",e,t,o)},e.prototype.flash=function(e,t,o,s){var a=this.createNotification(e,t,o,s);this.renderOptions({}),this.render({notification:a})},e.prototype.createNotification=function(e,t,o,s){if("object"==typeof e&&(e=(s=e).type),"object"==typeof t&&(t=(s=t).message),"object"==typeof o&&(o=(s=o).title),void 0===t)throw new Error("message option is required");return{type:e||"info",message:t,title:o,options:s}},e.prototype.render=function(e){var o,s=e.notification,a=s.options;return s.type=s.type||"info",a=t(t({},a),{icon:(null==a?void 0:a.icon)||s.type,text:(null==a?void 0:a.text)||s.message}),null===(o=this.swalToastr)||void 0===o?void 0:o.fire(a).then((function(t){window.dispatchEvent(new CustomEvent("flasher:sweetalert:promise",{detail:{promise:t,envelope:e}}))}))},e.prototype.renderOptions=function(e){this.swalToastr=this.swalToastr||r.mixin(t({timer:e.timer||5e3,timerProgressBar:e.timerProgressBar||!0},e)),document.addEventListener("turbo:before-cache",(function(){var e;r.isVisible()&&(null===(e=r.getPopup())||void 0===e||e.style.setProperty("animation-duration","0ms"),r.close())}))},e.prototype.addEnvelope=function(e){var t;null===(t=this.queue)||void 0===t||t.push(e)},e.prototype.resetQueue=function(){this.queue=[]},e.prototype.renderQueue=function(){return o(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e0&&i[i.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]{t.previousActiveElement instanceof HTMLElement?(t.previousActiveElement.focus(),t.previousActiveElement=null):document.body&&document.body.focus()},o=o=>new Promise((i=>{if(!o)return i();const s=window.scrollX,r=window.scrollY;t.restoreFocusTimeout=setTimeout((()=>{n(),i()}),e),window.scrollTo(s,r)}));var i={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),a=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),u=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},d=e=>{console.error(`${l} ${e}`)},p=[],m=e=>{p.includes(e)||(p.push(e),u(e))},h=(e,t)=>{m(`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`)},f=e=>"function"==typeof e?e():e,g=e=>e&&"function"==typeof e.toPromise,b=e=>g(e)?e.toPromise():Promise.resolve(e),y=e=>e&&Promise.resolve(e)===e,w=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=w();return t?t.querySelector(e):null},C=e=>v(`.${e}`),A=()=>C(r.popup),k=()=>C(r.icon),x=()=>C(r["icon-content"]),B=()=>C(r.title),P=()=>C(r["html-container"]),E=()=>C(r.image),$=()=>C(r["progress-steps"]),T=()=>C(r["validation-message"]),L=()=>v(`.${r.actions} .${r.confirm}`),S=()=>v(`.${r.actions} .${r.cancel}`),O=()=>v(`.${r.actions} .${r.deny}`),j=()=>C(r["input-label"]),M=()=>v(`.${r.loader}`),I=()=>C(r.actions),H=()=>C(r.footer),q=()=>C(r["timer-progress-bar"]),D=()=>C(r.close),V='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',N=()=>{const e=A().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),t=Array.from(e).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")),o=parseInt(t.getAttribute("tabindex"));return n>o?1:n"-1"!==e.getAttribute("tabindex")));return[...new Set(t.concat(o))].filter((e=>se(e)))},F=()=>z(document.body,r.shown)&&!z(document.body,r["toast-shown"])&&!z(document.body,r["no-backdrop"]),_=()=>A()&&z(A(),r.toast),R=()=>A().hasAttribute("data-loading"),U=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html");Array.from(n.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(n.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},z=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t{Array.from(e.classList).forEach((n=>{Object.values(r).includes(n)||Object.values(a).includes(n)||Object.values(t.showClass).includes(n)||e.classList.remove(n)}))},K=(e,t,n)=>{if(W(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return void u(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof t.customClass[n]}"`);Q(e,t.customClass[n])}},Y=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},Z=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},J=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},Q=(e,t)=>{J(e,t,!0)},X=(e,t)=>{J(e,t,!1)},G=(e,t)=>{const n=Array.from(e.children);for(let e=0;e{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?`${n}px`:n:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},ne=e=>{e&&(e.style.display="none")},oe=(e,t,n,o)=>{const i=e.querySelector(t);i&&(i.style[n]=o)},ie=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ne(e)},se=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),re=()=>!se(L())&&!se(O())&&!se(S()),ae=e=>!!(e.scrollHeight>e.clientHeight),le=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=q();se(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},ue=()=>{const e=q(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`},de=()=>"undefined"==typeof window||"undefined"==typeof document,pe=`\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n`.replace(/(^|\n)\s*/g,""),me=()=>{const e=w();return!!e&&(e.remove(),X([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)},he=()=>{t.currentInstance.resetValidationMessage()},fe=()=>{const e=A(),t=G(e,r.input),n=G(e,r.file),o=e.querySelector(`.${r.range} input`),i=e.querySelector(`.${r.range} output`),s=G(e,r.select),a=e.querySelector(`.${r.checkbox} input`),l=G(e,r.textarea);t.oninput=he,n.onchange=he,s.onchange=he,a.onchange=he,l.oninput=he,o.oninput=()=>{he(),i.value=o.value},o.onchange=()=>{he(),i.value=o.value}},ge=e=>"string"==typeof e?document.querySelector(e):e,be=e=>{const t=A();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},ye=e=>{"rtl"===window.getComputedStyle(e).direction&&Q(w(),r.rtl)},we=e=>{const t=me();if(de())return void d("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=r.container,t&&Q(n,r["no-transition"]),U(n,pe);const o=ge(e.target);o.appendChild(n),be(e),ye(o),fe()},ve=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Ce(e,t):e&&U(t,e)},Ce=(e,t)=>{e.jquery?Ae(t,e):U(t,e.toString())},Ae=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ke=(()=>{if(de())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1})(),xe=(e,t)=>{const n=I(),o=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(n):ne(n),K(n,t,"actions"),Be(n,o,t),U(o,t.loaderHtml),K(o,t,"loader")};function Be(e,t,n){const o=L(),i=O(),s=S();Ee(o,"confirm",n),Ee(i,"deny",n),Ee(s,"cancel",n),Pe(o,i,s,n),n.reverseButtons&&(n.toast?(e.insertBefore(s,o),e.insertBefore(i,o)):(e.insertBefore(s,t),e.insertBefore(i,t),e.insertBefore(o,t)))}function Pe(e,t,n,o){o.buttonsStyling?(Q([e,t,n],r.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,Q(e,r["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,Q(t,r["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,Q(n,r["default-outline"]))):X([e,t,n],r.styled)}function Ee(e,t,n){ie(e,n[`show${c(t)}Button`],"inline-block"),U(e,n[`${t}ButtonText`]),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]),e.className=r[t],K(e,n,`${t}Button`),Q(e,n[`${t}ButtonClass`])}const $e=(e,t)=>{const n=D();U(n,t.closeButtonHtml),K(n,t,"closeButton"),ie(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)},Te=(e,t)=>{const n=w();n&&(Le(n,t.backdrop),Se(n,t.position),Oe(n,t.grow),K(n,t,"container"))};function Le(e,t){"string"==typeof t?e.style.background=t:t||Q([document.documentElement,document.body],r["no-backdrop"])}function Se(e,t){t in r?Q(e,r[t]):(u('The "position" parameter is not valid, defaulting to "center"'),Q(e,r.center))}function Oe(e,t){if(t&&"string"==typeof t){const n=`grow-${t}`;n in r&&Q(e,r[n])}}const je=["input","file","range","select","radio","checkbox","textarea"],Me=(e,t)=>{const n=A(),o=i.innerParams.get(e),s=!o||t.input!==o.input;je.forEach((e=>{const o=G(n,r[e]);qe(e,t.inputAttributes),o.className=r[e],s&&ne(o)})),t.input&&(s&&Ie(t),De(t))},Ie=e=>{if(!Re[e.input])return void d(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=Fe(e.input),n=Re[e.input](t,e);te(t),e.inputAutoFocus&&setTimeout((()=>{Z(n)}))},He=e=>{for(let t=0;t{const n=Y(A(),e);if(n){He(n);for(const e in t)n.setAttribute(e,t[e])}},De=e=>{const t=Fe(e.input);"object"==typeof e.customClass&&Q(t,e.customClass.input)},Ve=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Ne=(e,t,n)=>{if(n.inputLabel){e.id=r.input;const o=document.createElement("label"),i=r["input-label"];o.setAttribute("for",e.id),o.className=i,"object"==typeof n.customClass&&Q(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Fe=e=>G(A(),r[e]||r.input),_e=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:y(t)||u(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Re={};Re.text=Re.email=Re.password=Re.number=Re.tel=Re.url=(e,t)=>(_e(e,t.inputValue),Ne(e,e,t),Ve(e,t),e.type=t.input,e),Re.file=(e,t)=>(Ne(e,e,t),Ve(e,t),e),Re.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return _e(n,t.inputValue),n.type=t.input,_e(o,t.inputValue),Ne(n,e,t),e},Re.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");U(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Ne(e,e,t),e},Re.radio=e=>(e.textContent="",e),Re.checkbox=(e,t)=>{const n=Y(A(),"checkbox");n.value="1",n.id=r.checkbox,n.checked=Boolean(t.inputValue);const o=e.querySelector("span");return U(o,t.inputPlaceholder),n},Re.textarea=(e,t)=>{_e(e,t.inputValue),Ve(e,t),Ne(e,e,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(A()).width);new MutationObserver((()=>{const o=e.offsetWidth+n(e);A().style.width=o>t?`${o}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ue=(e,t)=>{const n=P();K(n,t,"htmlContainer"),t.html?(ve(t.html,n),te(n,"block")):t.text?(n.textContent=t.text,te(n,"block")):ne(n),Me(e,t)},ze=(e,t)=>{const n=H();n&&(ie(n,t.footer),t.footer&&ve(t.footer,n),K(n,t,"footer"))},We=(e,t)=>{const n=i.innerParams.get(e),o=k();if(n&&t.icon===n.icon)return Qe(o,t),void Ke(o,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(a).indexOf(t.icon))return d(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ne(o);te(o),Qe(o,t),Ke(o,t),Q(o,t.showClass.icon)}else ne(o)},Ke=(e,t)=>{for(const n in a)t.icon!==n&&X(e,a[n]);Q(e,a[t.icon]),Xe(e,t),Ye(),K(e,t,"icon")},Ye=()=>{const e=A(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e\n \n \n \n',Je='\n \n \n \n \n',Qe=(e,t)=>{let n,o=e.innerHTML;t.iconHtml?n=Ge(t.iconHtml):"success"===t.icon?(n=Ze,o=o.replace(/ style=".*?"/g,"")):n="error"===t.icon?Je:Ge({question:"?",warning:"!",info:"i"}[t.icon]),o.trim()!==n.trim()&&U(e,n)},Xe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])oe(e,n,"backgroundColor",t.iconColor);oe(e,".swal2-success-ring","borderColor",t.iconColor)}},Ge=e=>`${e}`,et=(e,t)=>{const n=E();n&&(t.imageUrl?(te(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),ee(n,"width",t.imageWidth),ee(n,"height",t.imageHeight),n.className=r.image,K(n,t,"image")):ne(n))},tt=(e,t)=>{const n=w(),o=A();if(n&&o){if(t.toast){ee(n,"width",t.width),o.style.width="100%";const e=M();e&&o.insertBefore(e,k())}else ee(o,"width",t.width);ee(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),ne(T()),nt(o,t)}},nt=(e,t)=>{const n=t.showClass||{};e.className=`${r.popup} ${se(e)?n.popup:""}`,t.toast?(Q([document.documentElement,document.body],r["toast-shown"]),Q(e,r.toast)):Q(e,r.modal),K(e,t,"popup"),"string"==typeof t.customClass&&Q(e,t.customClass),t.icon&&Q(e,r[`icon-${t.icon}`])},ot=(e,t)=>{const n=$();if(!n)return;const{progressSteps:o,currentProgressStep:i}=t;o&&0!==o.length&&void 0!==i?(te(n),n.textContent="",i>=o.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach(((e,s)=>{const a=it(e);if(n.appendChild(a),s===i&&Q(a,r["active-progress-step"]),s!==o.length-1){const e=st(t);n.appendChild(e)}}))):ne(n)},it=e=>{const t=document.createElement("li");return Q(t,r["progress-step"]),U(t,e),t},st=e=>{const t=document.createElement("li");return Q(t,r["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},rt=(e,t)=>{const n=B();n&&(ie(n,t.title||t.titleText,"block"),t.title&&ve(t.title,n),t.titleText&&(n.innerText=t.titleText),K(n,t,"title"))},at=(e,t)=>{tt(e,t),Te(e,t),ot(e,t),We(e,t),et(e,t),rt(e,t),$e(e,t),Ue(e,t),xe(e,t),ze(e,t),"function"==typeof t.didRender&&t.didRender(A())},lt=()=>se(A()),ct=()=>L()&&L().click(),ut=()=>O()&&O().click(),dt=()=>S()&&S().click(),pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),mt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},ht=(e,t,n,o)=>{mt(t),n.toast||(t.keydownHandler=t=>yt(e,t,o),t.keydownTarget=n.keydownListenerCapture?window:A(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},ft=(e,t)=>{const n=N();if(n.length)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),void n[e].focus();A().focus()},gt=["ArrowRight","ArrowDown"],bt=["ArrowLeft","ArrowUp"],yt=(e,t,n)=>{const o=i.innerParams.get(e);o&&(t.isComposing||229===t.keyCode||(o.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?wt(e,t,o):"Tab"===t.key?vt(t):[...gt,...bt].includes(t.key)?Ct(t.key):"Escape"===t.key&&At(t,o,n)))},wt=(e,t,n)=>{if(f(n.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ct(),t.preventDefault()}},vt=e=>{const t=e.target,n=N();let o=-1;for(let e=0;e{const t=[L(),O(),S()];if(document.activeElement instanceof HTMLElement&&!t.includes(document.activeElement))return;const n=gt.includes(e)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;for(let e=0;e{f(t.allowEscapeKey)&&(e.preventDefault(),n(pt.esc))};var kt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xt=()=>{Array.from(document.body.children).forEach((e=>{e===w()||e.contains(w())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))},Bt=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Pt=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!z(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",Q(document.body,r.iosfix),$t(),Et()}},Et=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);if(t&&n&&!e.match(/CriOS/i)){const e=44;A().scrollHeight>window.innerHeight-e&&(w().style.paddingBottom=`${e}px`)}},$t=()=>{const e=w();let t;e.ontouchstart=e=>{t=Tt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Tt=e=>{const t=e.target,n=w();return!(Lt(e)||St(e)||t!==n&&(ae(n)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||ae(P())&&P().contains(t)))},Lt=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,St=e=>e.touches&&e.touches.length>1,Ot=()=>{if(z(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},jt=()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let Mt=null;const It=()=>{null===Mt&&document.body.scrollHeight>window.innerHeight&&(Mt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Mt+jt()}px`)},Ht=()=>{null!==Mt&&(document.body.style.paddingRight=`${Mt}px`,Mt=null)};function qt(e,n,i,s){_()?Wt(e,s):(o(i).then((()=>Wt(e,s))),mt(t)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),F()&&(Ht(),Ot(),Bt()),Dt()}function Dt(){X([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function Vt(e){e=Rt(e);const t=kt.swalPromiseResolve.get(this),n=Nt(this);this.isAwaitingPromise?e.isDismissed||(_t(this),t(e)):n&&t(e)}const Nt=e=>{const t=A();if(!t)return!1;const n=i.innerParams.get(e);if(!n||z(t,n.hideClass.popup))return!1;X(t,n.showClass.popup),Q(t,n.hideClass.popup);const o=w();return X(o,n.showClass.backdrop),Q(o,n.hideClass.backdrop),Ut(e,t,n),!0};function Ft(e){const t=kt.swalPromiseReject.get(this);_t(this),t&&t(e)}const _t=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,i.innerParams.get(e)||e._destroy())},Rt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,n)=>{const o=w(),i=ke&&le(t);"function"==typeof n.willClose&&n.willClose(t),i?zt(e,t,o,n.returnFocus,n.didClose):qt(e,o,n.returnFocus,n.didClose)},zt=(e,n,o,i,s)=>{t.swalCloseEventFinishedCallback=qt.bind(null,e,o,i,s),n.addEventListener(ke,(function(e){e.target===n&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback)}))},Wt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},Kt=e=>{let t=A();t||new zo,t=A();const n=M();_()?ne(k()):Yt(t,e),te(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Yt=(e,t)=>{const n=I(),o=M();!t&&se(L())&&(t=L()),te(n),t&&(ne(t),o.setAttribute("data-button-to-replace",t.className)),o.parentNode.insertBefore(o,t),Q([e,n],r.loading)},Zt=(e,t)=>{"select"===t.input||"radio"===t.input?en(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(g(t.inputValue)||y(t.inputValue))&&(Kt(L()),tn(e,t))},Jt=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Qt(n);case"radio":return Xt(n);case"file":return Gt(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Qt=e=>e.checked?1:0,Xt=e=>e.checked?e.value:null,Gt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,en=(e,t)=>{const n=A(),o=e=>{nn[t.input](n,on(e),t)};g(t.inputOptions)||y(t.inputOptions)?(Kt(L()),b(t.inputOptions).then((t=>{e.hideLoading(),o(t)}))):"object"==typeof t.inputOptions?o(t.inputOptions):d("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},tn=(e,t)=>{const n=e.getInput();ne(n),b(t.inputValue).then((o=>{n.value="number"===t.input?`${parseFloat(o)||0}`:`${o}`,te(n),n.focus(),e.hideLoading()})).catch((t=>{d(`Error in inputValue promise: ${t}`),n.value="",te(n),n.focus(),e.hideLoading()}))},nn={select:(e,t,n)=>{const o=G(e,r.select),i=(e,t,o)=>{const i=document.createElement("option");i.value=o,U(i,t),i.selected=sn(o,n.inputValue),e.appendChild(i)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,o.appendChild(e),n.forEach((t=>i(e,t[1],t[0])))}else i(o,n,t)})),o.focus()},radio:(e,t,n)=>{const o=G(e,r.radio);t.forEach((e=>{const t=e[0],i=e[1],s=document.createElement("input"),a=document.createElement("label");s.type="radio",s.name=r.radio,s.value=t,sn(t,n.inputValue)&&(s.checked=!0);const l=document.createElement("span");U(l,i),l.className=r.label,a.appendChild(s),a.appendChild(l),o.appendChild(a)}));const i=o.querySelectorAll("input");i.length&&i[0].focus()}},on=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,n)=>{let o=e;"object"==typeof o&&(o=on(o)),t.push([n,o])})):Object.keys(e).forEach((n=>{let o=e[n];"object"==typeof o&&(o=on(o)),t.push([n,o])})),t},sn=(e,t)=>t&&t.toString()===e.toString(),rn=e=>{const t=i.innerParams.get(e);e.disableButtons(),t.input?cn(e,"confirm"):hn(e,!0)},an=e=>{const t=i.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?cn(e,"deny"):dn(e,!1)},ln=(e,t)=>{e.disableButtons(),t(pt.cancel)},cn=(e,t)=>{const n=i.innerParams.get(e);if(!n.input)return void d(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const o=Jt(e,n);n.inputValidator?un(e,o,t):e.getInput().checkValidity()?"deny"===t?dn(e,o):hn(e,o):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},un=(e,t,n)=>{const o=i.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>b(o.inputValidator(t,o.validationMessage)))).then((o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?dn(e,t):hn(e,t)}))},dn=(e,t)=>{const n=i.innerParams.get(e||void 0);n.showLoaderOnDeny&&Kt(O()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),_t(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>mn(e||void 0,t)))):e.close({isDenied:!0,value:t})},pn=(e,t)=>{e.close({isConfirmed:!0,value:t})},mn=(e,t)=>{e.rejectPromise(t)},hn=(e,t)=>{const n=i.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Kt(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preConfirm(t,n.validationMessage)))).then((n=>{se(T())||!1===n?(e.hideLoading(),_t(e)):pn(e,void 0===n?t:n)})).catch((t=>mn(e||void 0,t)))):pn(e,t)};function fn(){const e=i.innerParams.get(this);if(!e)return;const t=i.domCache.get(this);ne(t.loader),_()?e.icon&&te(k()):gn(t),X([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const gn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):re()&&ne(e.actions)};function bn(){const e=i.innerParams.get(this),t=i.domCache.get(this);return t?Y(t.popup,e.input):null}function yn(e,t,n){const o=i.domCache.get(e);t.forEach((e=>{o[e].disabled=n}))}function wn(e,t){if(e)if("radio"===e.type){const n=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;eObject.prototype.hasOwnProperty.call(Pn,e),Sn=e=>-1!==En.indexOf(e),On=e=>$n[e],jn=e=>{Ln(e)||u(`Unknown parameter "${e}"`)},Mn=e=>{Tn.includes(e)&&u(`The parameter "${e}" is incompatible with toasts`)},In=e=>{const t=On(e);t&&h(e,t)},Hn=e=>{!1===e.backdrop&&e.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)jn(t),e.toast&&Mn(t),In(t)};function qn(e){const t=A(),n=i.innerParams.get(this);if(!t||z(t,n.hideClass.popup))return void u("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=Dn(e),s=Object.assign({},n,o);at(this,s),i.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Dn=e=>{const t={};return Object.keys(e).forEach((n=>{Sn(n)?t[n]=e[n]:u(`Invalid parameter to update: ${n}`)})),t};function Vn(){const e=i.domCache.get(this),n=i.innerParams.get(this);n?(e.popup&&t.swalCloseEventFinishedCallback&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),Nn(this)):Fn(this)}const Nn=e=>{Fn(e),delete e.params,delete t.keydownHandler,delete t.keydownTarget,delete t.currentInstance},Fn=e=>{e.isAwaitingPromise?(_n(i,e),e.isAwaitingPromise=!0):(_n(kt,e),_n(i,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},_n=(e,t)=>{for(const n in e)e[n].delete(t)};var Rn=Object.freeze({__proto__:null,_destroy:Vn,close:Vt,closeModal:Vt,closePopup:Vt,closeToast:Vt,disableButtons:Cn,disableInput:kn,disableLoading:fn,enableButtons:vn,enableInput:An,getInput:bn,handleAwaitingPromise:_t,hideLoading:fn,rejectPromise:Ft,resetValidationMessage:Bn,showValidationMessage:xn,update:qn});const Un=(e,t,n)=>{i.innerParams.get(e).toast?zn(e,t,n):(Yn(t),Zn(t),Jn(e,t,n))},zn=(e,t,n)=>{t.popup.onclick=()=>{const t=i.innerParams.get(e);t&&(Wn(t)||t.timer||t.input)||n(pt.close)}},Wn=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Kn=!1;const Yn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Kn=!0)}}},Zn=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Kn=!0)}}},Jn=(e,t,n)=>{t.container.onclick=o=>{const s=i.innerParams.get(e);Kn?Kn=!1:o.target===t.container&&f(s.allowOutsideClick)&&n(pt.backdrop)}},Qn=e=>"object"==typeof e&&e.jquery,Xn=e=>e instanceof Element||Qn(e),Gn=e=>{const t={};return"object"!=typeof e[0]||Xn(e[0])?["title","html","icon"].forEach(((n,o)=>{const i=e[o];"string"==typeof i||Xn(i)?t[n]=i:void 0!==i&&d(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)})):Object.assign(t,e[0]),t};function eo(){const e=this;for(var t=arguments.length,n=new Array(t),o=0;ot.timeout&&t.timeout.getTimerLeft(),oo=()=>{if(t.timeout)return ue(),t.timeout.stop()},io=()=>{if(t.timeout){const e=t.timeout.start();return ce(e),e}},so=()=>{const e=t.timeout;return e&&(e.running?oo():io())},ro=e=>{if(t.timeout){const n=t.timeout.increase(e);return ce(n,!0),n}},ao=()=>t.timeout&&t.timeout.isRunning();let lo=!1;const co={};function uo(){co[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,lo||(document.body.addEventListener("click",po),lo=!0)}const po=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in co){const n=t.getAttribute(e);if(n)return void co[e].fire({template:n})}};var mo=Object.freeze({__proto__:null,argsToParams:Gn,bindClickHandler:uo,clickCancel:dt,clickConfirm:ct,clickDeny:ut,enableLoading:Kt,fire:eo,getActions:I,getCancelButton:S,getCloseButton:D,getConfirmButton:L,getContainer:w,getDenyButton:O,getFocusableElements:N,getFooter:H,getHtmlContainer:P,getIcon:k,getIconContent:x,getImage:E,getInputLabel:j,getLoader:M,getPopup:A,getProgressSteps:$,getTimerLeft:no,getTimerProgressBar:q,getTitle:B,getValidationMessage:T,increaseTimer:ro,isDeprecatedParameter:On,isLoading:R,isTimerRunning:ao,isUpdatableParameter:Sn,isValidParameter:Ln,isVisible:lt,mixin:to,resumeTimer:io,showLoading:Kt,stopTimer:oo,toggleTimer:so});class ho{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const fo=["swal-title","swal-html","swal-footer"],go=e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return xo(n),Object.assign(bo(n),yo(n),wo(n),vo(n),Co(n),Ao(n),ko(n,fo))},bo=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Bo(e,["name","value"]);const n=e.getAttribute("name"),o=e.getAttribute("value");"boolean"==typeof Pn[n]?t[n]="false"!==o:"object"==typeof Pn[n]?t[n]=JSON.parse(o):t[n]=o})),t},yo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),o=e.getAttribute("value");t[n]=new Function(`return ${o}`)()})),t},wo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Bo(e,["type","color","aria-label"]);const n=e.getAttribute("type");t[`${n}ButtonText`]=e.innerHTML,t[`show${c(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},vo=e=>{const t={},n=e.querySelector("swal-image");return n&&(Bo(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},Co=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Bo(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ao=e=>{const t={},n=e.querySelector("swal-input");n&&(Bo(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach((e=>{Bo(e,["value"]);const n=e.getAttribute("value"),o=e.innerHTML;t.inputOptions[n]=o}))),t},ko=(e,t)=>{const n={};for(const o in t){const i=t[o],s=e.querySelector(i);s&&(Bo(s,[]),n[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},xo=e=>{const t=fo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||u(`Unrecognized element <${n}>`)}))},Bo=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&u([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},Po=10,Eo=e=>{const n=w(),o=A();"function"==typeof e.willOpen&&e.willOpen(o);const i=window.getComputedStyle(document.body).overflowY;So(n,o,e),setTimeout((()=>{To(n,o)}),Po),F()&&(Lo(n,e.scrollbarPadding,i),xt()),_()||t.previousActiveElement||(t.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(n,r["no-transition"])},$o=e=>{const t=A();if(e.target!==t)return;const n=w();t.removeEventListener(ke,$o),n.style.overflowY="auto"},To=(e,t)=>{ke&&le(t)?(e.style.overflowY="hidden",t.addEventListener(ke,$o)):e.style.overflowY="auto"},Lo=(e,t,n)=>{Pt(),t&&"hidden"!==n&&It(),setTimeout((()=>{e.scrollTop=0}))},So=(e,t,n)=>{Q(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{Q(t,n.showClass.popup),t.style.removeProperty("opacity")}),Po),Q([document.documentElement,document.body],r.shown),n.heightAuto&&n.backdrop&&!n.toast&&Q([document.documentElement,document.body],r["height-auto"])};var Oo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function jo(e){e.inputValidator||Object.keys(Oo).forEach((t=>{e.input===t&&(e.inputValidator=Oo[t])}))}function Mo(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(u('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Io(e){jo(e),e.showLoaderOnConfirm&&!e.preConfirm&&u("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Mo(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("")),we(e)}let Ho;class qo{constructor(){if("undefined"==typeof window)return;Ho=this;for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};Hn(Object.assign({},n,e)),t.currentInstance&&(t.currentInstance._destroy(),F()&&Bt()),t.currentInstance=Ho;const o=Vo(e,n);Io(o),Object.freeze(o),t.timeout&&(t.timeout.stop(),delete t.timeout),clearTimeout(t.restoreFocusTimeout);const s=No(Ho);return at(Ho,o),i.innerParams.set(Ho,o),Do(Ho,s,o)}then(e){return i.promise.get(this).then(e)}finally(e){return i.promise.get(this).finally(e)}}const Do=(e,n,o)=>new Promise(((i,s)=>{const r=t=>{e.close({isDismissed:!0,dismiss:t})};kt.swalPromiseResolve.set(e,i),kt.swalPromiseReject.set(e,s),n.confirmButton.onclick=()=>{rn(e)},n.denyButton.onclick=()=>{an(e)},n.cancelButton.onclick=()=>{ln(e,r)},n.closeButton.onclick=()=>{r(pt.close)},Un(e,n,r),ht(e,t,o,r),Zt(e,o),Eo(o),Fo(t,o,r),_o(n,o),setTimeout((()=>{n.container.scrollTop=0}))})),Vo=(e,t)=>{const n=go(e),o=Object.assign({},Pn,t,n,e);return o.showClass=Object.assign({},Pn.showClass,o.showClass),o.hideClass=Object.assign({},Pn.hideClass,o.hideClass),o},No=e=>{const t={popup:A(),container:w(),actions:I(),confirmButton:L(),denyButton:O(),cancelButton:S(),loader:M(),closeButton:D(),validationMessage:T(),progressSteps:$()};return i.domCache.set(e,t),t},Fo=(e,t,n)=>{const o=q();ne(o),t.timer&&(e.timeout=new ho((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(o),K(o,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},_o=(e,t)=>{t.toast||(f(t.allowEnterKey)?Ro(e,t)||ft(-1,1):Uo())},Ro=(e,t)=>t.focusDeny&&se(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&se(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!se(e.confirmButton)||(e.confirmButton.focus(),0)),Uo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}qo.prototype.disableButtons=Cn,qo.prototype.enableButtons=vn,qo.prototype.getInput=bn,qo.prototype.disableInput=kn,qo.prototype.enableInput=An,qo.prototype.hideLoading=fn,qo.prototype.disableLoading=fn,qo.prototype.showValidationMessage=xn,qo.prototype.resetValidationMessage=Bn,qo.prototype.close=Vt,qo.prototype.closePopup=Vt,qo.prototype.closeModal=Vt,qo.prototype.closeToast=Vt,qo.prototype.rejectPromise=Ft,qo.prototype.update=qn,qo.prototype._destroy=Vn,Object.assign(qo,mo),Object.keys(Rn).forEach((e=>{qo[e]=function(){return Ho&&Ho[e]?Ho[e](...arguments):null}})),qo.DismissReason=pt,qo.version="11.7.10";const zo=qo;return zo.default=zo,zo}(),void 0!==i&&i.Sweetalert2&&(i.swal=i.sweetAlert=i.Swal=i.SweetAlert=i.Sweetalert2)}(r);var a=s(r.exports),l=new(function(){function e(){this.queue=[]}return e.prototype.success=function(e,t,n){this.flash("success",e,t,n)},e.prototype.info=function(e,t,n){this.flash("info",e,t,n)},e.prototype.warning=function(e,t,n){this.flash("warning",e,t,n)},e.prototype.error=function(e,t,n){this.flash("error",e,t,n)},e.prototype.flash=function(e,t,n,o){var i=this.createNotification(e,t,n,o);this.renderOptions({}),this.render({notification:i})},e.prototype.createNotification=function(e,t,n,o){if("object"==typeof e&&(e=(o=e).type),"object"==typeof t&&(t=(o=t).message),"object"==typeof n&&(n=(o=n).title),void 0===t)throw new Error("message option is required");return{type:e||"info",message:t,title:n,options:o}},e.prototype.render=function(e){var n,o=e.notification,i=o.options;return o.type=o.type||"info",i=t(t({},i),{icon:(null==i?void 0:i.icon)||o.type,text:(null==i?void 0:i.text)||o.message}),null===(n=this.swalToastr)||void 0===n?void 0:n.fire(i).then((function(t){window.dispatchEvent(new CustomEvent("flasher:sweetalert:promise",{detail:{promise:t,envelope:e}}))}))},e.prototype.renderOptions=function(e){this.swalToastr=this.swalToastr||a.mixin(t({timer:e.timer||5e3,timerProgressBar:e.timerProgressBar||!0},e)),document.addEventListener("turbo:before-cache",(function(){var e;a.isVisible()&&(null===(e=a.getPopup())||void 0===e||e.style.setProperty("animation-duration","0ms"),a.close())}))},e.prototype.addEnvelope=function(e){var t;null===(t=this.queue)||void 0===t||t.push(e)},e.prototype.resetQueue=function(){this.queue=[]},e.prototype.renderQueue=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.2.4/dist/flasher-sweetalert.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js', ), 'local' => array( '/vendor/flasher/flasher-sweetalert.min.js', ), ); } + + /** + * {@inheritdoc} + */ + public function getStyles() + { + return array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-sweetalert.min.css', + ), + ); + } } diff --git a/src/SweetAlert/Prime/composer.json b/src/SweetAlert/Prime/composer.json index 4c014953..812463ea 100644 --- a/src/SweetAlert/Prime/composer.json +++ b/src/SweetAlert/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.13" + "php-flasher/flasher": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/SweetAlert/Symfony/Resources/config/config.yaml b/src/SweetAlert/Symfony/Resources/config/config.yaml index e1d311da..6b81e9d2 100644 --- a/src/SweetAlert/Symfony/Resources/config/config.yaml +++ b/src/SweetAlert/Symfony/Resources/config/config.yaml @@ -1,6 +1,6 @@ flasher_sweetalert: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.2.4/dist/flasher-sweetalert.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js' local: - '/vendor/flasher/flasher-sweetalert.min.js' diff --git a/src/SweetAlert/Symfony/composer.json b/src/SweetAlert/Symfony/composer.json index 6f8ab2d7..20e58fc7 100644 --- a/src/SweetAlert/Symfony/composer.json +++ b/src/SweetAlert/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-sweetalert": "^1.13", - "php-flasher/flasher-symfony": "^1.13" + "php-flasher/flasher-sweetalert": "^1.15", + "php-flasher/flasher-symfony": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Symfony/Bridge/Typed/FlasherBundle.php b/src/Symfony/Bridge/Typed/FlasherBundle.php index cd768e4e..f259bf97 100644 --- a/src/Symfony/Bridge/Typed/FlasherBundle.php +++ b/src/Symfony/Bridge/Typed/FlasherBundle.php @@ -15,6 +15,8 @@ abstract class FlasherBundle extends Bundle { /** * {@inheritdoc} + * + * @return void */ public function build(ContainerBuilder $container) { diff --git a/src/Symfony/DependencyInjection/Configuration.php b/src/Symfony/DependencyInjection/Configuration.php index d39b5785..6a485fff 100644 --- a/src/Symfony/DependencyInjection/Configuration.php +++ b/src/Symfony/DependencyInjection/Configuration.php @@ -42,6 +42,12 @@ final class Configuration implements ConfigurationInterface ->prototype('scalar')->end() ->defaultValue($plugin->getRootScript()) ->end() + ->arrayNode('scripts') + ->prototype('variable')->end() + ->end() + ->arrayNode('styles') + ->prototype('variable')->end() + ->end() ->arrayNode('options') ->prototype('scalar')->end() ->end() diff --git a/src/Symfony/Resources/config/config.yaml b/src/Symfony/Resources/config/config.yaml index 5c05a290..bbed19c6 100644 --- a/src/Symfony/Resources/config/config.yaml +++ b/src/Symfony/Resources/config/config.yaml @@ -41,9 +41,27 @@ flasher: # field of this option. # root_script: - cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.2.4/dist/flasher.min.js' + cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js' local: '/vendor/flasher/flasher.min.js' + # -------------------------------------------------------------------------- + # PHPFlasher Stylesheet + # -------------------------------------------------------------------------- + # This option specifies the location of the stylesheet file that is + # required by PHPFlasher to style the notifications in your Symfony application. + # + # By default, PHPFlasher uses a CDN to serve the latest version of the stylesheet. + # However, you can also choose to download the stylesheet locally or include it + # from your assets. + # + # To use the local version of the stylesheet, make sure you have the necessary + # assets in your application's public folder. Then specify the local path to + # the stylesheet file in the 'local' field of this option. + # + styles: + cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css' + local: '/vendor/flasher/flasher.min.css' + # -------------------------------------------------------------------------- # Whether to use CDN for PHPFlasher assets or not # -------------------------------------------------------------------------- diff --git a/src/Symfony/Support/Configuration.php b/src/Symfony/Support/Configuration.php index 0e83b0e7..8cff02a4 100644 --- a/src/Symfony/Support/Configuration.php +++ b/src/Symfony/Support/Configuration.php @@ -31,7 +31,13 @@ class Configuration implements ConfigurationInterface ? $treeBuilder->getRootNode() : $treeBuilder->root($this->plugin->getName()); // @phpstan-ignore-line + $plugin = $this->plugin; $rootNode + ->beforeNormalization() + ->always(function ($v) use ($plugin) { + return $plugin->normalizeConfig($v); + }) + ->end() ->children() ->arrayNode('scripts') ->prototype('variable')->end() diff --git a/src/Symfony/composer.json b/src/Symfony/composer.json index d7be4128..8f752a0e 100644 --- a/src/Symfony/composer.json +++ b/src/Symfony/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.13", + "php-flasher/flasher": "^1.15", "symfony/config": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/console": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/dependency-injection": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", diff --git a/src/Toastr/Laravel/Resources/config.php b/src/Toastr/Laravel/Resources/config.php index 3e819591..da476f4a 100644 --- a/src/Toastr/Laravel/Resources/config.php +++ b/src/Toastr/Laravel/Resources/config.php @@ -9,11 +9,19 @@ return array( 'scripts' => array( 'cdn' => array( 'https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js', - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.2.4/dist/flasher-toastr.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js', ), 'local' => array( '/vendor/flasher/jquery.min.js', '/vendor/flasher/flasher-toastr.min.js', ), ), + 'styles' => array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-toastr.min.css', + ), + ), ); diff --git a/src/Toastr/Laravel/composer.json b/src/Toastr/Laravel/composer.json index 7a8214cf..990a4fc0 100644 --- a/src/Toastr/Laravel/composer.json +++ b/src/Toastr/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.13", - "php-flasher/flasher-toastr": "^1.13" + "php-flasher/flasher-laravel": "^1.15", + "php-flasher/flasher-toastr": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Toastr/Prime/Resources/assets/flasher-toastr.min.css b/src/Toastr/Prime/Resources/assets/flasher-toastr.min.css new file mode 100644 index 00000000..9cc4a0d7 --- /dev/null +++ b/src/Toastr/Prime/Resources/assets/flasher-toastr.min.css @@ -0,0 +1 @@ +.toast-title{font-weight:700}.toast-message{-ms-word-wrap:break-word;word-wrap:break-word}.toast-message a,.toast-message label{color:#fff}.toast-message a:hover{color:#ccc;text-decoration:none}.toast-close-button{color:#fff;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);float:right;font-size:20px;font-weight:700;line-height:1;opacity:.8;position:relative;right:-.3em;-webkit-text-shadow:0 1px 0 #fff;text-shadow:0 1px 0 #fff;top:-.3em}.toast-close-button:focus,.toast-close-button:hover{color:#000;cursor:pointer;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40);opacity:.4;text-decoration:none}.rtl .toast-close-button{float:left;left:-.3em;right:.3em}button.toast-close-button{-webkit-appearance:none;background:0 0;border:0;cursor:pointer;padding:0}.toast-top-center{right:0;top:0;width:100%}.toast-bottom-center{bottom:0;right:0;width:100%}.toast-top-full-width{right:0;top:0;width:100%}.toast-bottom-full-width{bottom:0;right:0;width:100%}.toast-top-left{left:12px;top:12px}.toast-top-right{right:12px;top:12px}.toast-bottom-right{bottom:12px;right:12px}.toast-bottom-left{bottom:12px;left:12px}#toast-container{pointer-events:none;position:fixed;z-index:999999}#toast-container *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#toast-container>div{background-position:15px;background-repeat:no-repeat;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);margin:0 0 6px;opacity:.8;overflow:hidden;padding:15px 15px 15px 50px;pointer-events:auto;position:relative;width:300px}#toast-container>div.rtl{background-position:right 15px center;direction:rtl;padding:15px 50px 15px 15px}#toast-container>div:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;cursor:pointer;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);opacity:1}#toast-container>.toast-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=)!important}#toast-container>.toast-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=)!important}#toast-container>.toast-success{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==)!important}#toast-container>.toast-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=)!important}#toast-container.toast-bottom-center>div,#toast-container.toast-top-center>div{margin-left:auto;margin-right:auto;width:300px}#toast-container.toast-bottom-full-width>div,#toast-container.toast-top-full-width>div{margin-left:auto;margin-right:auto;width:96%}.toast{background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}.toast-progress{background-color:#000;bottom:0;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40);height:4px;left:0;opacity:.4;position:absolute}@media (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media (min-width:241px) and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media (min-width:481px) and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}#toast-container>div.rtl{padding:15px 50px 15px 15px}} \ No newline at end of file diff --git a/src/Toastr/Prime/Resources/assets/flasher-toastr.min.js b/src/Toastr/Prime/Resources/assets/flasher-toastr.min.js index 5f181ecf..4ce87777 100644 --- a/src/Toastr/Prime/Resources/assets/flasher-toastr.min.js +++ b/src/Toastr/Prime/Resources/assets/flasher-toastr.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@flasher/flasher"),require("jquery")):"function"==typeof define&&define.amd?define(["@flasher/flasher","jquery"],e):((t="undefined"!=typeof globalThis?globalThis:t||self).flasher=t.flasher||{},t.flasher.toastr=e(t.flasher,t.jQuery))}(this,(function(t,e){"use strict";var o=function(){return o=Object.assign||function(t){for(var e,o=1,i=arguments.length;o=0;n--)l(t(i[n]),o)}(n)},remove:function(o){var i=u();e||p(i),o&&0===t(":focus",o).length?f(o):e.children().length&&e.remove()},error:function(t,e,o){return g({type:a,iconClass:u().iconClasses.error,message:t,optionsOverride:o,title:e})},getContainer:p,info:function(t,e,o){return g({type:s,iconClass:u().iconClasses.info,message:t,optionsOverride:o,title:e})},options:{},subscribe:function(t){o=t},success:function(t,e,o){return g({type:r,iconClass:u().iconClasses.success,message:t,optionsOverride:o,title:e})},version:"2.1.4",warning:function(t,e,o){return g({type:c,iconClass:u().iconClasses.warning,message:t,optionsOverride:o,title:e})}};return d;function p(o,i){return o||(o=u()),(e=t("#"+o.containerId)).length||i&&(e=function(o){return(e=t("").attr("id",o.containerId).addClass(o.positionClass)).appendTo(t(o.target)),e}(o)),e}function l(e,o,i){var n=!(!i||!i.force)&&i.force;return!(!e||!n&&0!==t(":focus",e).length||(e[o.hideMethod]({duration:o.hideDuration,easing:o.hideEasing,complete:function(){f(e)}}),0))}function A(t){o&&o(t)}function g(o){var a=u(),s=o.iconClass||a.iconClass;if(void 0!==o.optionsOverride&&(a=t.extend(a,o.optionsOverride),s=o.optionsOverride.iconClass||s),!function(t,e){if(t.preventDuplicates){if(e.message===i)return!0;i=e.message}return!1}(a,o)){n++,e=p(a,!0);var r=null,c=t(""),d=t(""),l=t(""),g=t(""),h=t(a.closeHtml),m={intervalId:null,hideEta:null,maxHideTime:null},b={toastId:n,state:"visible",startTime:new Date,options:a,map:o};return o.iconClass&&c.addClass(a.toastClass).addClass(s),function(){if(o.title){var t=o.title;a.escapeHtml&&(t=x(o.title)),d.append(t).addClass(a.titleClass),c.append(d)}}(),function(){if(o.message){var t=o.message;a.escapeHtml&&(t=x(o.message)),l.append(t).addClass(a.messageClass),c.append(l)}}(),a.closeButton&&(h.addClass(a.closeClass).attr("role","button"),c.prepend(h)),a.progressBar&&(g.addClass(a.progressClass),c.prepend(g)),a.rtl&&c.addClass("rtl"),a.newestOnTop?e.prepend(c):e.append(c),function(){var t="";switch(o.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}c.attr("aria-live",t)}(),c.hide(),c[a.showMethod]({duration:a.showDuration,easing:a.showEasing,complete:a.onShown}),a.timeOut>0&&(r=setTimeout(w,a.timeOut),m.maxHideTime=parseFloat(a.timeOut),m.hideEta=(new Date).getTime()+m.maxHideTime,a.progressBar&&(m.intervalId=setInterval(y,10))),a.closeOnHover&&c.hover(C,v),!a.onclick&&a.tapToDismiss&&c.click(w),a.closeButton&&h&&h.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),a.onCloseClick&&a.onCloseClick(t),w(!0)})),a.onclick&&c.click((function(t){a.onclick(t),w()})),A(b),a.debug&&console&&console.log(b),c}function x(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function w(e){var o=e&&!1!==a.closeMethod?a.closeMethod:a.hideMethod,i=e&&!1!==a.closeDuration?a.closeDuration:a.hideDuration,n=e&&!1!==a.closeEasing?a.closeEasing:a.hideEasing;if(!t(":focus",c).length||e)return clearTimeout(m.intervalId),c[o]({duration:i,easing:n,complete:function(){f(c),clearTimeout(r),a.onHidden&&"hidden"!==b.state&&a.onHidden(),b.state="hidden",b.endTime=new Date,A(b)}})}function v(){(a.timeOut>0||a.extendedTimeOut>0)&&(r=setTimeout(w,a.extendedTimeOut),m.maxHideTime=parseFloat(a.extendedTimeOut),m.hideEta=(new Date).getTime()+m.maxHideTime)}function C(){clearTimeout(r),m.hideEta=0,c.stop(!0,!0)[a.showMethod]({duration:a.showDuration,easing:a.showEasing})}function y(){var t=(m.hideEta-(new Date).getTime())/m.maxHideTime*100;g.width(t+"%")}}function u(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'×',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},d.options)}function f(t){e||(e=p()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),i=void 0))}}()},t.exports?t.exports=o(e):window.toastr=o(window.jQuery)}({get exports(){return i},set exports(t){i=t}});var n=i,a=[],s=[];!function(t,e){if(t&&"undefined"!=typeof document){var o,i=!0===e.prepend?"prepend":"append",n=!0===e.singleTag,r="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(n){var c=a.indexOf(r);-1===c&&(c=a.push(r)-1,s[c]={}),o=s[c]&&s[c][i]?s[c][i]:s[c][i]=d()}else o=d();65279===t.charCodeAt(0)&&(t=t.substring(1)),o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(document.createTextNode(t))}function d(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var o=Object.keys(e.attributes),n=0;ndiv{background-position:15px;background-repeat:no-repeat;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);margin:0 0 6px;opacity:.8;overflow:hidden;padding:15px 15px 15px 50px;pointer-events:auto;position:relative;width:300px}#toast-container>div.rtl{background-position:right 15px center;direction:rtl;padding:15px 50px 15px 15px}#toast-container>div:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;cursor:pointer;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);opacity:1}#toast-container>.toast-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=)!important}#toast-container>.toast-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=)!important}#toast-container>.toast-success{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==)!important}#toast-container>.toast-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=)!important}#toast-container.toast-bottom-center>div,#toast-container.toast-top-center>div{margin-left:auto;margin-right:auto;width:300px}#toast-container.toast-bottom-full-width>div,#toast-container.toast-top-full-width>div{margin-left:auto;margin-right:auto;width:96%}.toast{background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}.toast-progress{background-color:#000;bottom:0;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40);height:4px;left:0;opacity:.4;position:absolute}@media (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media (min-width:241px) and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media (min-width:481px) and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}#toast-container>div.rtl{padding:15px 50px 15px 15px}}",{});var r=new(function(){function t(){}return t.prototype.success=function(t,e,o){this.flash("success",t,e,o)},t.prototype.info=function(t,e,o){this.flash("info",t,e,o)},t.prototype.warning=function(t,e,o){this.flash("warning",t,e,o)},t.prototype.error=function(t,e,o){this.flash("error",t,e,o)},t.prototype.flash=function(t,e,o,i){var n=this.createNotification(t,e,o,i);this.renderOptions({}),this.render({notification:n})},t.prototype.createNotification=function(t,e,o,i){if("object"==typeof t?(t=(i=t).type,e=i.message,o=i.title):"object"==typeof e?(e=(i=e).message,o=i.title):"object"==typeof o&&(o=(i=o).title),void 0===e)throw new Error("message option is required");return{type:t||"info",message:e,title:o,options:i}},t.prototype.render=function(t){var e=t.notification,o=e.message,i=e.title,a=e.options,s=e.type||"info";n[s](o,i,a).parent().attr("data-turbo-cache","false")},t.prototype.renderOptions=function(t){n.options=o({timeOut:t.timeOut||5e3,progressBar:t.progressBar||5e3},t)},t}());return t.addFactory("toastr",r),r})); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@flasher/flasher"),require("jquery")):"function"==typeof define&&define.amd?define(["@flasher/flasher","jquery"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).flasher=e.flasher||{},e.flasher.toastr=t(e.flasher,e.jQuery))}(this,(function(e,t){"use strict";var o=function(){return o=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)d(e(n[s]),o)}(s)},remove:function(o){var n=h();t||u(n),o&&0===e(":focus",o).length?g(o):t.children().length&&t.remove()},error:function(e,t,o){return f({type:i,iconClass:h().iconClasses.error,message:e,optionsOverride:o,title:t})},getContainer:u,info:function(e,t,o){return f({type:r,iconClass:h().iconClasses.info,message:e,optionsOverride:o,title:t})},options:{},subscribe:function(e){o=e},success:function(e,t,o){return f({type:a,iconClass:h().iconClasses.success,message:e,optionsOverride:o,title:t})},version:"2.1.4",warning:function(e,t,o){return f({type:l,iconClass:h().iconClasses.warning,message:e,optionsOverride:o,title:t})}};return c;function u(o,n){return o||(o=h()),(t=e("#"+o.containerId)).length||n&&(t=function(o){return(t=e("").attr("id",o.containerId).addClass(o.positionClass)).appendTo(e(o.target)),t}(o)),t}function d(t,o,n){var s=!(!n||!n.force)&&n.force;return!(!t||!s&&0!==e(":focus",t).length||(t[o.hideMethod]({duration:o.hideDuration,easing:o.hideEasing,complete:function(){g(t)}}),0))}function p(e){o&&o(e)}function f(o){var i=h(),r=o.iconClass||i.iconClass;if(void 0!==o.optionsOverride&&(i=e.extend(i,o.optionsOverride),r=o.optionsOverride.iconClass||r),!function(e,t){if(e.preventDuplicates){if(t.message===n)return!0;n=t.message}return!1}(i,o)){s++,t=u(i,!0);var a=null,l=e(""),c=e(""),d=e(""),f=e(""),m=e(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},C={toastId:s,state:"visible",startTime:new Date,options:i,map:o};return o.iconClass&&l.addClass(i.toastClass).addClass(r),function(){if(o.title){var e=o.title;i.escapeHtml&&(e=w(o.title)),c.append(e).addClass(i.titleClass),l.append(c)}}(),function(){if(o.message){var e=o.message;i.escapeHtml&&(e=w(o.message)),d.append(e).addClass(i.messageClass),l.append(d)}}(),i.closeButton&&(m.addClass(i.closeClass).attr("role","button"),l.prepend(m)),i.progressBar&&(f.addClass(i.progressClass),l.prepend(f)),i.rtl&&l.addClass("rtl"),i.newestOnTop?t.prepend(l):t.append(l),function(){var e="";switch(o.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}l.attr("aria-live",e)}(),l.hide(),l[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(a=setTimeout(y,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval(T,10))),i.closeOnHover&&l.hover(b,O),!i.onclick&&i.tapToDismiss&&l.click(y),i.closeButton&&m&&m.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),y(!0)})),i.onclick&&l.click((function(e){i.onclick(e),y()})),p(C),i.debug&&console&&console.log(C),l}function w(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function y(t){var o=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,n=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,s=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(v.intervalId),l[o]({duration:n,easing:s,complete:function(){g(l),clearTimeout(a),i.onHidden&&"hidden"!==C.state&&i.onHidden(),C.state="hidden",C.endTime=new Date,p(C)}})}function O(){(i.timeOut>0||i.extendedTimeOut>0)&&(a=setTimeout(y,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function b(){clearTimeout(a),v.hideEta=0,l.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function T(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;f.width(e+"%")}}function h(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'×',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function g(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),n=void 0))}}()},e.exports?e.exports=o(t):window.toastr=o(window.jQuery)}(s);var i=n(s.exports),r=new(function(){function e(){}return e.prototype.success=function(e,t,o){this.flash("success",e,t,o)},e.prototype.info=function(e,t,o){this.flash("info",e,t,o)},e.prototype.warning=function(e,t,o){this.flash("warning",e,t,o)},e.prototype.error=function(e,t,o){this.flash("error",e,t,o)},e.prototype.flash=function(e,t,o,n){var s=this.createNotification(e,t,o,n);this.renderOptions({}),this.render({notification:s})},e.prototype.createNotification=function(e,t,o,n){if("object"==typeof e?(e=(n=e).type,t=n.message,o=n.title):"object"==typeof t?(t=(n=t).message,o=n.title):"object"==typeof o&&(o=(n=o).title),void 0===t)throw new Error("message option is required");return{type:e||"info",message:t,title:o,options:n}},e.prototype.render=function(e){var t=e.notification,o=t.message,n=t.title,s=t.options,r=t.type||"info";i[r](o,n,s).parent().attr("data-turbo-cache","false")},e.prototype.renderOptions=function(e){i.options=o({timeOut:e.timeOut||5e3,progressBar:e.progressBar||5e3},e)},e}());return e.addFactory("toastr",r),r})); diff --git a/src/Toastr/Prime/Resources/assets/jquery.min.js b/src/Toastr/Prime/Resources/assets/jquery.min.js index b5329e9a..e7e29d5b 100644 --- a/src/Toastr/Prime/Resources/assets/jquery.min.js +++ b/src/Toastr/Prime/Resources/assets/jquery.min.js @@ -1,2 +1,2 @@ -/*! jQuery v3.6.3 | (c) OpenJS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},S=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||S).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.3",E=function(e,t){return new E.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,S)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=E)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{if(d.cssSupportsSelector&&!CSS.supports("selector(:is("+c+"))"))throw new Error;return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===E&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[E]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,S=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.cssSupportsSelector=ce(function(){return CSS.supports("selector(*)")&&C.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+E+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),d.cssSupportsSelector||y.push(":has"),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&S&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),N.test(r[1])&&E.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=S.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,D=E(S);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=S.createDocumentFragment().appendChild(S.createElement("div")),(fe=S.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="x",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",v.option=!!ce.lastChild;var ge={thead:[1,"",""],col:[2,"",""],tr:[2,"",""],td:[3,"",""],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var me=/<|?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||E.expando+"_"+Ct.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||E.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?E(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Ut=S.implementation.createHTMLDocument("").body).innerHTML="",2===Ut.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(r)):t=S),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===E.css(e,"position"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&z(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function X(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function z(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="x",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"",""],col:[2,"",""],tr:[2,"",""],td:[3,"",""],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Me(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0 array( - 'https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js', - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.2.4/dist/flasher-toastr.min.js', + 'https://cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js', ), 'local' => array( '/vendor/flasher/jquery.min.js', @@ -27,4 +27,19 @@ class ToastrPlugin extends Plugin ), ); } + + /** + * {@inheritdoc} + */ + public function getStyles() + { + return array( + 'cdn' => array( + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css', + ), + 'local' => array( + '/vendor/flasher/flasher-toastr.min.css', + ), + ); + } } diff --git a/src/Toastr/Prime/composer.json b/src/Toastr/Prime/composer.json index 4b39a474..ef7fe0c4 100644 --- a/src/Toastr/Prime/composer.json +++ b/src/Toastr/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.13" + "php-flasher/flasher": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Toastr/Symfony/Resources/config/config.yaml b/src/Toastr/Symfony/Resources/config/config.yaml index 0bb87151..8b35edd5 100644 --- a/src/Toastr/Symfony/Resources/config/config.yaml +++ b/src/Toastr/Symfony/Resources/config/config.yaml @@ -2,7 +2,13 @@ flasher_toastr: scripts: cdn: - 'https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js' - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.2.4/dist/flasher-toastr.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js' local: - '/vendor/flasher/jquery.min.js' - '/vendor/flasher/flasher-toastr.min.js' + + styles: + cdn: + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css' + local: + - '/vendor/flasher/flasher-toastr.min.css' diff --git a/src/Toastr/Symfony/composer.json b/src/Toastr/Symfony/composer.json index 406b1a1f..0215ad97 100644 --- a/src/Toastr/Symfony/composer.json +++ b/src/Toastr/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-symfony": "^1.13", - "php-flasher/flasher-toastr": "^1.13" + "php-flasher/flasher-symfony": "^1.15", + "php-flasher/flasher-toastr": "^1.15" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/tests/Prime/Plugin/FlasherPluginTest.php b/tests/Prime/Plugin/FlasherPluginTest.php index db0bc319..1d7167ae 100644 --- a/tests/Prime/Plugin/FlasherPluginTest.php +++ b/tests/Prime/Plugin/FlasherPluginTest.php @@ -46,7 +46,7 @@ class FlasherPluginTest extends TestCase { $plugin = new FlasherPlugin(); $rootScript = array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.2.4/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ); @@ -60,7 +60,7 @@ class FlasherPluginTest extends TestCase { $plugin = new FlasherPlugin(); $scripts = array( - 'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.2.4/dist/flasher.min.js'), + 'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js'), 'local' => array('/vendor/flasher/flasher.min.js'), ); @@ -103,7 +103,7 @@ class FlasherPluginTest extends TestCase $config = array( 'default' => 'flasher', 'root_script' => array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.2.4/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ), 'options' => array(), diff --git a/tests/Prime/Response/Resource/ResourceManagerTest.php b/tests/Prime/Response/Resource/ResourceManagerTest.php index e4041b26..bb4ebdab 100644 --- a/tests/Prime/Response/Resource/ResourceManagerTest.php +++ b/tests/Prime/Response/Resource/ResourceManagerTest.php @@ -66,8 +66,8 @@ class ResourceManagerTest extends TestCase $this->assertEquals($envelopes, $response->getEnvelopes()); $this->assertEquals('root_script.min.js', $response->getRootScript()); - $this->assertEquals(array('toastr.min.js', 'jquery.min.js'), $response->getScripts()); - $this->assertEquals(array('toastr.min.css'), $response->getStyles()); + $this->assertEquals(array('flasher.min.js', 'toastr.min.js', 'jquery.min.js'), $response->getScripts()); + $this->assertEquals(array('flasher.min.css', 'toastr.min.css'), $response->getStyles()); $this->assertEquals(array( 'theme.flasher' => array('timeout' => 2500, 'position' => 'center'), 'toastr' => array('sounds' => false),