diff --git a/.claude/skills/basercms-core-plugin-convert/SKILL.md b/.claude/skills/basercms-core-plugin-convert/SKILL.md index 9abe47d6b4..79712d3081 100644 --- a/.claude/skills/basercms-core-plugin-convert/SKILL.md +++ b/.claude/skills/basercms-core-plugin-convert/SKILL.md @@ -151,10 +151,11 @@ docker compose exec sh -c "cd /var/www/html && vendor/bin/monorepo-b - `autoload-dev.psr-4` に `"BcMcp\\Test\\": "plugins/bc-mcp/tests/"` - `require` にプラグインの外部依存(`league/oauth2-server` 等、`ext-*` 含む) - `replace` に `"baserproject/bc-mcp": ""`(他コアに合わせる) -- 反映後、依存取得とオートロード再生成: +- **外部依存(`require`)を追加した場合のみ**、依存取得のため composer を回す: ```bash docker compose exec sh -c "cd /var/www/html && composer update --no-interaction" ``` +- ⚠️ **`composer dump-autoload` は不要**(クラスを読ませる目的では回さない)。baserCMS はプラグイン機構(`BcPlugin` / CakePHP のプラグインロードが各プラグインの composer.json の psr-4 を解決)でクラスを認識・ロードするため、ルート autoloader の再生成に依存しない。**管理画面でプラグインを有効化**すれば読み込まれる。ルート `composer.json` の `autoload`/`replace` への登録は monorepo 管理・split 用のメタ情報として行う(コミット対象)。外部 `require` を足したときだけ上記の `composer update` で vendor を取得する。 ### 5-4. `phpdoc.dist.xml` に `src` パスを追加 ```xml diff --git a/.github/workflows/split_monorepo.yml b/.github/workflows/split_monorepo.yml index 65f540acb1..de15e95e40 100644 --- a/.github/workflows/split_monorepo.yml +++ b/.github/workflows/split_monorepo.yml @@ -25,6 +25,8 @@ jobs: split_repository: 'bc-admin-third' - local_path: 'bc-blog' split_repository: 'bc-blog' + - local_path: 'bc-burger-editor' + split_repository: 'bc-burger-editor' - local_path: 'bc-content-link' split_repository: 'bc-content-link' - local_path: 'bc-custom-content' diff --git a/.gitignore b/.gitignore index 65b389382a..daf6709674 100644 --- a/.gitignore +++ b/.gitignore @@ -89,6 +89,7 @@ yarn-error.log !/plugins/cakephp-soft-delete !/plugins/BcColumn !/plugins/bc-seo +!/plugins/bc-burger-editor /plugins/*/vendor /plugins/*/composer.lock /profile/* @@ -119,6 +120,7 @@ node_modules /webroot/bc_theme_sample /webroot/bc_installer /webroot/bc_custom_content +/webroot/bc_burger_editor /webroot/bc_spa_sample /webroot/debug_kit /webroot/.gitignore diff --git a/composer.json b/composer.json index 3475077e15..8c2d0498a8 100644 --- a/composer.json +++ b/composer.json @@ -40,6 +40,7 @@ "BaserCore\\": "plugins/baser-core/src", "BcAdminThird\\": "plugins/bc-admin-third/src", "BcBlog\\": "plugins/bc-blog/src/", + "BcBurgerEditor\\": "plugins/bc-burger-editor/src/", "BcColumn\\": "plugins/BcColumn/src/", "BcContentLink\\": "plugins/bc-content-link/src/", "BcCustomContent\\": "plugins/bc-custom-content/src/", @@ -63,6 +64,7 @@ "psr-4": { "BaserCore\\Test\\": "plugins/baser-core/tests/", "BcBlog\\Test\\": "plugins/bc-blog/tests/", + "BcBurgerEditor\\Test\\": "plugins/bc-burger-editor/tests/", "BcContentLink\\Test\\": "plugins/bc-content-link/tests/", "BcCustomContent\\Test\\": "plugins/bc-custom-content/tests/", "BcEditorTemplate\\Test\\": "plugins/bc-editor-template/tests/", @@ -119,6 +121,7 @@ "baserproject/baser-core": "5.2.4", "baserproject/bc-admin-third": "5.2.4", "baserproject/bc-blog": "5.2.4", + "baserproject/bc-burger-editor": "5.2.4", "baserproject/bc-column": "5.2.4", "baserproject/bc-content-link": "5.2.4", "baserproject/bc-custom-content": "5.2.4", diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index fb067bf259..72059a696b 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -14,6 +14,7 @@ plugins/baser-core/src plugins/bc-admin-third/src plugins/bc-blog/src + plugins/bc-burger-editor/src plugins/bc-content-link/src plugins/bc-custom-content/src plugins/bc-editor-template/src diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 4852014bb5..ba6225414f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -56,6 +56,9 @@ plugins/bc-widget-area/tests/TestCase + + plugins/bc-burger-editor/tests/TestCase + diff --git a/plugins/baser-core/config/setting.php b/plugins/baser-core/config/setting.php index 352652e939..3a09d7c4e5 100644 --- a/plugins/baser-core/config/setting.php +++ b/plugins/baser-core/config/setting.php @@ -277,6 +277,7 @@ 'BcThemeFile', 'BcUploader', 'BcWidgetArea', + 'BcBurgerEditor', ], 'defaultInstallCorePlugins' => [ 'BcSearchIndex', @@ -285,6 +286,7 @@ 'BcThemeConfig', 'BcWidgetArea', 'BcUploader', + 'BcBurgerEditor', ], /** diff --git a/plugins/bc-burger-editor/.npmrc b/plugins/bc-burger-editor/.npmrc new file mode 100644 index 0000000000..b6f27f1359 --- /dev/null +++ b/plugins/bc-burger-editor/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/plugins/bc-burger-editor/.yarnrc.yml b/plugins/bc-burger-editor/.yarnrc.yml new file mode 100644 index 0000000000..7aa6ae13f3 --- /dev/null +++ b/plugins/bc-burger-editor/.yarnrc.yml @@ -0,0 +1,6 @@ +nodeLinker: node-modules +npmRegistryServer: 'https://registry.npmjs.org' +enableGlobalCache: true +enableScripts: false +npmMinimalAgeGate: 7d +defaultSemverRangePrefix: '' diff --git a/plugins/bc-burger-editor/Addon/block/button/index.php b/plugins/bc-burger-editor/Addon/block/button/index.php new file mode 100644 index 0000000000..e71fd4f762 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/button/index.php @@ -0,0 +1,13 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('button') ?> + diff --git a/plugins/bc-burger-editor/Addon/block/button/panel.svg b/plugins/bc-burger-editor/Addon/block/button/panel.svg new file mode 100755 index 0000000000..8f91c9be33 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/button/panel.svg @@ -0,0 +1 @@ +button \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/button2/index.php b/plugins/bc-burger-editor/Addon/block/button2/index.php new file mode 100644 index 0000000000..af83bdec42 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/button2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('button') ?> +
+
+ BurgerEditor->type('button') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/button2/panel.svg b/plugins/bc-burger-editor/Addon/block/button2/panel.svg new file mode 100755 index 0000000000..6f6309a7fe --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/button2/panel.svg @@ -0,0 +1 @@ +button2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/button3/index.php b/plugins/bc-burger-editor/Addon/block/button3/index.php new file mode 100644 index 0000000000..964e35ded5 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/button3/index.php @@ -0,0 +1,20 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('button') ?> +
+
+ BurgerEditor->type('button') ?> +
+
+ BurgerEditor->type('button') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/button3/panel.svg b/plugins/bc-burger-editor/Addon/block/button3/panel.svg new file mode 100755 index 0000000000..bd21a9fbca --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/button3/panel.svg @@ -0,0 +1 @@ +button3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/category.php b/plugins/bc-burger-editor/Addon/block/category.php new file mode 100644 index 0000000000..087557c429 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/category.php @@ -0,0 +1,71 @@ + array('BlockName1', 'BlockName2'), + * 'カテゴリ2' => array('BlockName3', 'BlockName4'), + * ); + */ +$bgCategory = [ + '見出し / テキスト / テキスト+画像' => [ + 'title' => '大見出し', + 'title2' => '中見出し', + 'wysiwyg' => '1カラムテキスト', + 'wysiwyg2' => '2カラムテキスト', + 'text-float-image1' => '画像右寄せテキスト回り込み', + 'text-float-image2' => '画像左寄せテキスト回り込み', + 'text-image1' => '画像右寄せテキスト回り込み無し', + 'text-image2' => '画像左寄せテキスト回り込み無し', + ], + '画像' => [ + 'image1' => '画像1列', + 'image2' => '画像2列', + 'image3' => '画像3列', + 'image4' => '画像4列', + 'image5' => '画像5列', + 'trimmed-image2' => 'トリミング画像2列', + 'trimmed-image3' => 'トリミング画像3列', + 'trimmed-image4' => 'トリミング画像4列', + 'trimmed-image5' => 'トリミング画像5列', + 'image-link1' => '画像1列リンク付', + 'image-link2' => '画像2列リンク付', + 'image-link3' => '画像3列リンク付', + 'image-link4' => '画像4列リンク付', + 'image-link5' => '画像5列リンク付', + 'trimmed-image-link2' => 'トリミング画像2列リンク付', + 'trimmed-image-link3' => 'トリミング画像3列リンク付', + 'trimmed-image-link4' => 'トリミング画像4列リンク付', + 'trimmed-image-link5' => 'トリミング画像5列リンク付', + ], + '画像+テキスト' => [ + 'image-text2' => '画像2列テキスト付', + 'image-text3' => '画像3列テキスト付', + 'image-text4' => '画像4列テキスト付', + 'image-text5' => '画像5列テキスト付', + 'image-link-text2' => '画像2列リンク・テキスト付', + 'image-link-text3' => '画像3列リンク・テキスト付', + 'image-link-text4' => '画像4列リンク・テキスト付', + 'image-link-text5' => '画像5列リンク・テキスト付', + ], + 'ボタン' => [ + 'button' => 'ボタン', + 'button2' => 'ボタン x2', + 'button3' => 'ボタン x3', + 'download-file' => 'ファイル
ダウンロード', + 'download-file2' => 'ファイル
ダウンロード x2', + 'download-file3' => 'ファイル
ダウンロード x3', + ], + 'その他' => [ + 'table' => '2カラムテーブル', + 'gallery' => 'ギャラリー', + 'text-gallery1' => 'ギャラリー+テキスト(左)', + 'text-gallery2' => 'ギャラリー+テキスト(右)', + 'google-maps' => 'GoogleMaps', + 'youtube' => 'YouTube', + 'embed' => '埋め込みタグscript / form', + 'hr' => '区切り線' + ] +]; diff --git a/plugins/bc-burger-editor/Addon/block/download-file/index.php b/plugins/bc-burger-editor/Addon/block/download-file/index.php new file mode 100644 index 0000000000..60a9a7abed --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/download-file/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('download-file') ?> diff --git a/plugins/bc-burger-editor/Addon/block/download-file/panel.svg b/plugins/bc-burger-editor/Addon/block/download-file/panel.svg new file mode 100755 index 0000000000..8a19cdf973 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/download-file/panel.svg @@ -0,0 +1 @@ +download-file \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/download-file2/index.php b/plugins/bc-burger-editor/Addon/block/download-file2/index.php new file mode 100644 index 0000000000..448800ec9d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/download-file2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('download-file') ?> +
+
+ BurgerEditor->type('download-file') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/download-file2/panel.svg b/plugins/bc-burger-editor/Addon/block/download-file2/panel.svg new file mode 100755 index 0000000000..77b3238f90 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/download-file2/panel.svg @@ -0,0 +1 @@ +download-file2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/download-file3/index.php b/plugins/bc-burger-editor/Addon/block/download-file3/index.php new file mode 100644 index 0000000000..29864c7615 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/download-file3/index.php @@ -0,0 +1,21 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('download-file') ?> +
+
+ BurgerEditor->type('download-file') ?> +
+
+ BurgerEditor->type('download-file') ?> +
+ diff --git a/plugins/bc-burger-editor/Addon/block/download-file3/panel.svg b/plugins/bc-burger-editor/Addon/block/download-file3/panel.svg new file mode 100755 index 0000000000..678da1f5f1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/download-file3/panel.svg @@ -0,0 +1 @@ +download-file3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/embed/index.php b/plugins/bc-burger-editor/Addon/block/embed/index.php new file mode 100644 index 0000000000..9d404924dd --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/embed/index.php @@ -0,0 +1,13 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('embed') ?> + diff --git a/plugins/bc-burger-editor/Addon/block/embed/panel.svg b/plugins/bc-burger-editor/Addon/block/embed/panel.svg new file mode 100755 index 0000000000..cda028171d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/embed/panel.svg @@ -0,0 +1 @@ +embed \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/gallery/index.php b/plugins/bc-burger-editor/Addon/block/gallery/index.php new file mode 100644 index 0000000000..c71ffe2610 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/gallery/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('gallery') ?> diff --git a/plugins/bc-burger-editor/Addon/block/gallery/panel.svg b/plugins/bc-burger-editor/Addon/block/gallery/panel.svg new file mode 100755 index 0000000000..e30320e853 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/gallery/panel.svg @@ -0,0 +1 @@ +gallery \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/google-maps/index.php b/plugins/bc-burger-editor/Addon/block/google-maps/index.php new file mode 100644 index 0000000000..0b00ef2dcb --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/google-maps/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('google-maps') ?> diff --git a/plugins/bc-burger-editor/Addon/block/google-maps/panel.svg b/plugins/bc-burger-editor/Addon/block/google-maps/panel.svg new file mode 100755 index 0000000000..078e988448 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/google-maps/panel.svg @@ -0,0 +1 @@ +google-maps \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/hr/index.php b/plugins/bc-burger-editor/Addon/block/hr/index.php new file mode 100644 index 0000000000..2a69005785 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/hr/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('hr') ?> diff --git a/plugins/bc-burger-editor/Addon/block/hr/panel.svg b/plugins/bc-burger-editor/Addon/block/hr/panel.svg new file mode 100755 index 0000000000..dd55ad9427 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/hr/panel.svg @@ -0,0 +1 @@ +hr \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text2/index.php b/plugins/bc-burger-editor/Addon/block/image-link-text2/index.php new file mode 100644 index 0000000000..93f91874bf --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text2/index.php @@ -0,0 +1,19 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text2/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link-text2/panel.svg new file mode 100755 index 0000000000..20aa29fa6a --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text2/panel.svg @@ -0,0 +1 @@ +image-link-text2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text3/index.php b/plugins/bc-burger-editor/Addon/block/image-link-text3/index.php new file mode 100644 index 0000000000..26e8376969 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text3/index.php @@ -0,0 +1,23 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text3/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link-text3/panel.svg new file mode 100755 index 0000000000..d6573bb339 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text3/panel.svg @@ -0,0 +1 @@ +image-link-text3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text4/index.php b/plugins/bc-burger-editor/Addon/block/image-link-text4/index.php new file mode 100644 index 0000000000..7e41b4c0f2 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text4/index.php @@ -0,0 +1,27 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text4/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link-text4/panel.svg new file mode 100755 index 0000000000..ef3301a0b5 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text4/panel.svg @@ -0,0 +1 @@ +image-link-text4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text5/index.php b/plugins/bc-burger-editor/Addon/block/image-link-text5/index.php new file mode 100644 index 0000000000..b7124ae87c --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text5/index.php @@ -0,0 +1,31 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image-link') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link-text5/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link-text5/panel.svg new file mode 100755 index 0000000000..c195018670 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link-text5/panel.svg @@ -0,0 +1 @@ +image-link-text5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link1/index.php b/plugins/bc-burger-editor/Addon/block/image-link1/index.php new file mode 100644 index 0000000000..fd6ba8793a --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link1/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('image-link') ?> diff --git a/plugins/bc-burger-editor/Addon/block/image-link1/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link1/panel.svg new file mode 100755 index 0000000000..c0a63e2274 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link1/panel.svg @@ -0,0 +1 @@ +image-link1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link2/index.php b/plugins/bc-burger-editor/Addon/block/image-link2/index.php new file mode 100644 index 0000000000..47ab6f5f82 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link2/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link2/panel.svg new file mode 100755 index 0000000000..31860f09e1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link2/panel.svg @@ -0,0 +1 @@ +image-link2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link3/index.php b/plugins/bc-burger-editor/Addon/block/image-link3/index.php new file mode 100644 index 0000000000..c0aa1834b9 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link3/index.php @@ -0,0 +1,20 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link3/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link3/panel.svg new file mode 100755 index 0000000000..9b279d15b4 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link3/panel.svg @@ -0,0 +1 @@ +image-link3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link4/index.php b/plugins/bc-burger-editor/Addon/block/image-link4/index.php new file mode 100644 index 0000000000..97e8ddff26 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link4/index.php @@ -0,0 +1,23 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link4/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link4/panel.svg new file mode 100755 index 0000000000..1541b519c3 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link4/panel.svg @@ -0,0 +1 @@ +image-link4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-link5/index.php b/plugins/bc-burger-editor/Addon/block/image-link5/index.php new file mode 100644 index 0000000000..6f1e0ea4de --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link5/index.php @@ -0,0 +1,26 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
+
+ BurgerEditor->type('image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-link5/panel.svg b/plugins/bc-burger-editor/Addon/block/image-link5/panel.svg new file mode 100755 index 0000000000..40cc36a3ee --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-link5/panel.svg @@ -0,0 +1 @@ +image-link5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-text2/index.php b/plugins/bc-burger-editor/Addon/block/image-text2/index.php new file mode 100644 index 0000000000..e0e1676718 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text2/index.php @@ -0,0 +1,19 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-text2/panel.svg b/plugins/bc-burger-editor/Addon/block/image-text2/panel.svg new file mode 100755 index 0000000000..62a9d3ae61 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text2/panel.svg @@ -0,0 +1 @@ +image-text2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-text3/index.php b/plugins/bc-burger-editor/Addon/block/image-text3/index.php new file mode 100644 index 0000000000..8e12d278bb --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text3/index.php @@ -0,0 +1,23 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-text3/panel.svg b/plugins/bc-burger-editor/Addon/block/image-text3/panel.svg new file mode 100755 index 0000000000..df1fe53695 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text3/panel.svg @@ -0,0 +1 @@ +image-text3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-text4/index.php b/plugins/bc-burger-editor/Addon/block/image-text4/index.php new file mode 100644 index 0000000000..6c9134397d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text4/index.php @@ -0,0 +1,27 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-text4/panel.svg b/plugins/bc-burger-editor/Addon/block/image-text4/panel.svg new file mode 100755 index 0000000000..7433efa685 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text4/panel.svg @@ -0,0 +1 @@ +image-text4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image-text5/index.php b/plugins/bc-burger-editor/Addon/block/image-text5/index.php new file mode 100644 index 0000000000..36e4fabe9e --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text5/index.php @@ -0,0 +1,31 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> + BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image-text5/panel.svg b/plugins/bc-burger-editor/Addon/block/image-text5/panel.svg new file mode 100755 index 0000000000..989f9f514d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image-text5/panel.svg @@ -0,0 +1 @@ +image-text5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image1/index.php b/plugins/bc-burger-editor/Addon/block/image1/index.php new file mode 100644 index 0000000000..40279df75b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image1/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('image') ?> diff --git a/plugins/bc-burger-editor/Addon/block/image1/panel.svg b/plugins/bc-burger-editor/Addon/block/image1/panel.svg new file mode 100755 index 0000000000..36082fd909 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image1/panel.svg @@ -0,0 +1 @@ +image1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image2/index.php b/plugins/bc-burger-editor/Addon/block/image2/index.php new file mode 100644 index 0000000000..3b0de42688 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image2/panel.svg b/plugins/bc-burger-editor/Addon/block/image2/panel.svg new file mode 100755 index 0000000000..581d342e7b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image2/panel.svg @@ -0,0 +1 @@ +image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image3/index.php b/plugins/bc-burger-editor/Addon/block/image3/index.php new file mode 100644 index 0000000000..b814590289 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image3/index.php @@ -0,0 +1,20 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image3/panel.svg b/plugins/bc-burger-editor/Addon/block/image3/panel.svg new file mode 100755 index 0000000000..89943156a1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image3/panel.svg @@ -0,0 +1 @@ +image3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image4/index.php b/plugins/bc-burger-editor/Addon/block/image4/index.php new file mode 100644 index 0000000000..3a73152111 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image4/index.php @@ -0,0 +1,23 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image4/panel.svg b/plugins/bc-burger-editor/Addon/block/image4/panel.svg new file mode 100755 index 0000000000..a72556ed11 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image4/panel.svg @@ -0,0 +1 @@ +image4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/image5/index.php b/plugins/bc-burger-editor/Addon/block/image5/index.php new file mode 100644 index 0000000000..27322d4ab3 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image5/index.php @@ -0,0 +1,26 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/image5/panel.svg b/plugins/bc-burger-editor/Addon/block/image5/panel.svg new file mode 100755 index 0000000000..ef994bfcf7 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/image5/panel.svg @@ -0,0 +1 @@ +image5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/option.php b/plugins/bc-burger-editor/Addon/block/option.php new file mode 100644 index 0000000000..c709b7618e --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/option.php @@ -0,0 +1,62 @@ + '表示名' という形式で設定可能です + * class名は「bgb-opt--」という名称から開始される必要があります。 + * + * [注意事項] + * 初期値はbge_style.cssにてclassが設定されています。 + * 変更する場合は bge_style.cssを編集してください。 + * 追加する場合は、独自にclassが適用される用変更してください。 + * + * [拡張] + * free-settingを利用にすると、独自設定のクラス選択が設定可能です。 + * 利用するにはコメントアウトしている free-settingの項目を有効化して確認してください。 + * + * デフォルト項目を利用しない場合はコメントアウトすることで非表示になります。 + */ +$bgBlockConfig = [ + // 自由設定枠 - 「設定」 +// 'free-setting' => array( +// 'bgb-opt--yourclass1' => 'サンプル1', +// 'bgb-opt--yourclass2' => 'サンプル2', +// 'bgb-opt--yourclass3' => 'サンプル3', +// 'bgb-opt--yourclass4' => 'サンプル4', +// ), + // 下余白 + 'margin-bottom' => [ + "bgb-opt--mb-large" => "広い", + "" => "標準", + "bgb-opt--mb-small" => "狭い", + "bgb-opt--mb-none" => "無し", + ], + + // 背景色 + 'background-color' => [ + "" => "指定なし", + "bgb-opt--bg-gray" => "グレー", + "bgb-opt--bg-blue" => "ブルー", + "bgb-opt--bg-pink" => "ピンク", + ], + + // 枠線 - スタイル + 'border-style' => [ + "" => "指定なし", + "bgb-opt--border-none" => "無し", + "bgb-opt--border-bold" => "太い", + "bgb-opt--border-thin" => "細い", + "bgb-opt--border-dotted" => "点線", + ], + // 枠線 - 適用箇所 + 'border-type' => [ + "" => "指定なし", + "bgb-opt--border-trbl" => "上下左右", + "bgb-opt--border-tb" => "上下", + "bgb-opt--border-lr" => "左右", + "bgb-opt--border-trl" => "下抜け", + "bgb-opt--border-rbl" => "上抜け", + ], +]; \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/table/index.php b/plugins/bc-burger-editor/Addon/block/table/index.php new file mode 100644 index 0000000000..205dd87c63 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/table/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('table') ?> diff --git a/plugins/bc-burger-editor/Addon/block/table/panel.svg b/plugins/bc-burger-editor/Addon/block/table/panel.svg new file mode 100755 index 0000000000..cebaecac83 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/table/panel.svg @@ -0,0 +1 @@ +table \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/text-float-image1/index.php b/plugins/bc-burger-editor/Addon/block/text-float-image1/index.php new file mode 100644 index 0000000000..cb85eb788d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-float-image1/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/text-float-image1/panel.svg b/plugins/bc-burger-editor/Addon/block/text-float-image1/panel.svg new file mode 100755 index 0000000000..96d5b79575 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-float-image1/panel.svg @@ -0,0 +1 @@ +text-float-image1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/text-float-image2/index.php b/plugins/bc-burger-editor/Addon/block/text-float-image2/index.php new file mode 100644 index 0000000000..cb85eb788d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-float-image2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/text-float-image2/panel.svg b/plugins/bc-burger-editor/Addon/block/text-float-image2/panel.svg new file mode 100755 index 0000000000..7ae482bd0b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-float-image2/panel.svg @@ -0,0 +1 @@ +text-float-image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/text-gallery1/index.php b/plugins/bc-burger-editor/Addon/block/text-gallery1/index.php new file mode 100644 index 0000000000..6978a40b83 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-gallery1/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('gallery') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/text-gallery1/panel.svg b/plugins/bc-burger-editor/Addon/block/text-gallery1/panel.svg new file mode 100755 index 0000000000..f4e5c5d49f --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-gallery1/panel.svg @@ -0,0 +1 @@ +text-gallery1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/text-gallery2/index.php b/plugins/bc-burger-editor/Addon/block/text-gallery2/index.php new file mode 100644 index 0000000000..7f22ed95b7 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-gallery2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('gallery') ?> +
+
+ BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/text-gallery2/panel.svg b/plugins/bc-burger-editor/Addon/block/text-gallery2/panel.svg new file mode 100755 index 0000000000..4feaba4333 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-gallery2/panel.svg @@ -0,0 +1 @@ +text-gallery2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/text-image1/index.php b/plugins/bc-burger-editor/Addon/block/text-image1/index.php new file mode 100644 index 0000000000..90e80d7dc2 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-image1/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/text-image1/panel.svg b/plugins/bc-burger-editor/Addon/block/text-image1/panel.svg new file mode 100755 index 0000000000..62d4473528 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-image1/panel.svg @@ -0,0 +1 @@ +text-image1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/text-image2/index.php b/plugins/bc-burger-editor/Addon/block/text-image2/index.php new file mode 100644 index 0000000000..8b101a5bc1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-image2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('image') ?> +
+
+ BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/text-image2/panel.svg b/plugins/bc-burger-editor/Addon/block/text-image2/panel.svg new file mode 100755 index 0000000000..7e017875de --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/text-image2/panel.svg @@ -0,0 +1 @@ +text-image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/title/index.php b/plugins/bc-burger-editor/Addon/block/title/index.php new file mode 100644 index 0000000000..62624ef20a --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/title/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('title-h2') ?> diff --git a/plugins/bc-burger-editor/Addon/block/title/panel.svg b/plugins/bc-burger-editor/Addon/block/title/panel.svg new file mode 100755 index 0000000000..5d1d0496ac --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/title/panel.svg @@ -0,0 +1 @@ +title \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/title2/index.php b/plugins/bc-burger-editor/Addon/block/title2/index.php new file mode 100644 index 0000000000..14d9936ae5 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/title2/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('title-h3') ?> diff --git a/plugins/bc-burger-editor/Addon/block/title2/panel.svg b/plugins/bc-burger-editor/Addon/block/title2/panel.svg new file mode 100755 index 0000000000..7f8e3e8372 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/title2/panel.svg @@ -0,0 +1 @@ +title2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link2/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image-link2/index.php new file mode 100644 index 0000000000..0665a13992 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link2/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image-link2/panel.svg new file mode 100755 index 0000000000..ed82ff1623 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link2/panel.svg @@ -0,0 +1 @@ +trimmed-image-link2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link3/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image-link3/index.php new file mode 100644 index 0000000000..1b9e6cbbfc --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link3/index.php @@ -0,0 +1,20 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link3/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image-link3/panel.svg new file mode 100755 index 0000000000..38599205e9 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link3/panel.svg @@ -0,0 +1 @@ +trimmed-image-link3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link4/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image-link4/index.php new file mode 100644 index 0000000000..0cffb04b6c --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link4/index.php @@ -0,0 +1,23 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link4/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image-link4/panel.svg new file mode 100755 index 0000000000..d5427dfdb0 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link4/panel.svg @@ -0,0 +1 @@ +trimmed-image-link4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link5/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image-link5/index.php new file mode 100644 index 0000000000..3fea65f5dd --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link5/index.php @@ -0,0 +1,26 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
+
+ BurgerEditor->type('trimmed-image-link') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image-link5/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image-link5/panel.svg new file mode 100755 index 0000000000..772933270d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image-link5/panel.svg @@ -0,0 +1 @@ +trimmed-image-link5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image2/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image2/index.php new file mode 100644 index 0000000000..c087c35c53 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image2/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image2/panel.svg new file mode 100755 index 0000000000..e1c7a27913 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image2/panel.svg @@ -0,0 +1 @@ +trimmed-image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image3/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image3/index.php new file mode 100644 index 0000000000..ee7f8e4d76 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image3/index.php @@ -0,0 +1,20 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image3/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image3/panel.svg new file mode 100755 index 0000000000..14b6f0a1fa --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image3/panel.svg @@ -0,0 +1 @@ +trimmed-image3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image4/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image4/index.php new file mode 100644 index 0000000000..45adc84c3d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image4/index.php @@ -0,0 +1,23 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image4/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image4/panel.svg new file mode 100755 index 0000000000..694d26eae1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image4/panel.svg @@ -0,0 +1 @@ +trimmed-image4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image5/index.php b/plugins/bc-burger-editor/Addon/block/trimmed-image5/index.php new file mode 100644 index 0000000000..5e50fa19da --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image5/index.php @@ -0,0 +1,26 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
+
+ BurgerEditor->type('trimmed-image') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/trimmed-image5/panel.svg b/plugins/bc-burger-editor/Addon/block/trimmed-image5/panel.svg new file mode 100755 index 0000000000..f426a9fcba --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/trimmed-image5/panel.svg @@ -0,0 +1 @@ +trimmed-image5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/wysiwyg/index.php b/plugins/bc-burger-editor/Addon/block/wysiwyg/index.php new file mode 100644 index 0000000000..3785765543 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/wysiwyg/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('ckeditor') ?> diff --git a/plugins/bc-burger-editor/Addon/block/wysiwyg/panel.svg b/plugins/bc-burger-editor/Addon/block/wysiwyg/panel.svg new file mode 100755 index 0000000000..872a571c39 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/wysiwyg/panel.svg @@ -0,0 +1 @@ +wysiwyg \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/wysiwyg2/index.php b/plugins/bc-burger-editor/Addon/block/wysiwyg2/index.php new file mode 100644 index 0000000000..f2f92ecff8 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/wysiwyg2/index.php @@ -0,0 +1,17 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +
+ BurgerEditor->type('ckeditor') ?> +
+
+ BurgerEditor->type('ckeditor') ?> +
diff --git a/plugins/bc-burger-editor/Addon/block/wysiwyg2/panel.svg b/plugins/bc-burger-editor/Addon/block/wysiwyg2/panel.svg new file mode 100755 index 0000000000..2e3961c6da --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/wysiwyg2/panel.svg @@ -0,0 +1 @@ +wysiwyg2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/block/youtube/index.php b/plugins/bc-burger-editor/Addon/block/youtube/index.php new file mode 100644 index 0000000000..b6c9c04a79 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/youtube/index.php @@ -0,0 +1,12 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> +BurgerEditor->type('youtube') ?> diff --git a/plugins/bc-burger-editor/Addon/block/youtube/panel.svg b/plugins/bc-burger-editor/Addon/block/youtube/panel.svg new file mode 100755 index 0000000000..b1a810364b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/block/youtube/panel.svg @@ -0,0 +1 @@ +youtube \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/button.svg b/plugins/bc-burger-editor/Addon/svg/button.svg new file mode 100644 index 0000000000..8f91c9be33 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/button.svg @@ -0,0 +1 @@ +button \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/button2.svg b/plugins/bc-burger-editor/Addon/svg/button2.svg new file mode 100644 index 0000000000..6f6309a7fe --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/button2.svg @@ -0,0 +1 @@ +button2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/button3.svg b/plugins/bc-burger-editor/Addon/svg/button3.svg new file mode 100644 index 0000000000..bd21a9fbca --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/button3.svg @@ -0,0 +1 @@ +button3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/download-file.svg b/plugins/bc-burger-editor/Addon/svg/download-file.svg new file mode 100644 index 0000000000..8a19cdf973 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/download-file.svg @@ -0,0 +1 @@ +download-file \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/download-file2.svg b/plugins/bc-burger-editor/Addon/svg/download-file2.svg new file mode 100644 index 0000000000..77b3238f90 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/download-file2.svg @@ -0,0 +1 @@ +download-file2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/download-file3.svg b/plugins/bc-burger-editor/Addon/svg/download-file3.svg new file mode 100644 index 0000000000..678da1f5f1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/download-file3.svg @@ -0,0 +1 @@ +download-file3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/embed.svg b/plugins/bc-burger-editor/Addon/svg/embed.svg new file mode 100644 index 0000000000..cda028171d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/embed.svg @@ -0,0 +1 @@ +embed \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/gallery.svg b/plugins/bc-burger-editor/Addon/svg/gallery.svg new file mode 100644 index 0000000000..e30320e853 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/gallery.svg @@ -0,0 +1 @@ +gallery \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/google-maps.svg b/plugins/bc-burger-editor/Addon/svg/google-maps.svg new file mode 100644 index 0000000000..078e988448 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/google-maps.svg @@ -0,0 +1 @@ +google-maps \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/hr.svg b/plugins/bc-burger-editor/Addon/svg/hr.svg new file mode 100644 index 0000000000..dd55ad9427 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/hr.svg @@ -0,0 +1 @@ +hr \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link-text2.svg b/plugins/bc-burger-editor/Addon/svg/image-link-text2.svg new file mode 100644 index 0000000000..20aa29fa6a --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link-text2.svg @@ -0,0 +1 @@ +image-link-text2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link-text3.svg b/plugins/bc-burger-editor/Addon/svg/image-link-text3.svg new file mode 100644 index 0000000000..d6573bb339 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link-text3.svg @@ -0,0 +1 @@ +image-link-text3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link-text4.svg b/plugins/bc-burger-editor/Addon/svg/image-link-text4.svg new file mode 100644 index 0000000000..ef3301a0b5 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link-text4.svg @@ -0,0 +1 @@ +image-link-text4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link-text5.svg b/plugins/bc-burger-editor/Addon/svg/image-link-text5.svg new file mode 100644 index 0000000000..c195018670 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link-text5.svg @@ -0,0 +1 @@ +image-link-text5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link1.svg b/plugins/bc-burger-editor/Addon/svg/image-link1.svg new file mode 100644 index 0000000000..c0a63e2274 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link1.svg @@ -0,0 +1 @@ +image-link1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link2.svg b/plugins/bc-burger-editor/Addon/svg/image-link2.svg new file mode 100644 index 0000000000..31860f09e1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link2.svg @@ -0,0 +1 @@ +image-link2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link3.svg b/plugins/bc-burger-editor/Addon/svg/image-link3.svg new file mode 100644 index 0000000000..9b279d15b4 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link3.svg @@ -0,0 +1 @@ +image-link3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link4.svg b/plugins/bc-burger-editor/Addon/svg/image-link4.svg new file mode 100644 index 0000000000..1541b519c3 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link4.svg @@ -0,0 +1 @@ +image-link4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-link5.svg b/plugins/bc-burger-editor/Addon/svg/image-link5.svg new file mode 100644 index 0000000000..40cc36a3ee --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-link5.svg @@ -0,0 +1 @@ +image-link5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-text2.svg b/plugins/bc-burger-editor/Addon/svg/image-text2.svg new file mode 100644 index 0000000000..62a9d3ae61 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-text2.svg @@ -0,0 +1 @@ +image-text2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-text3.svg b/plugins/bc-burger-editor/Addon/svg/image-text3.svg new file mode 100644 index 0000000000..df1fe53695 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-text3.svg @@ -0,0 +1 @@ +image-text3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-text4.svg b/plugins/bc-burger-editor/Addon/svg/image-text4.svg new file mode 100644 index 0000000000..7433efa685 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-text4.svg @@ -0,0 +1 @@ +image-text4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image-text5.svg b/plugins/bc-burger-editor/Addon/svg/image-text5.svg new file mode 100644 index 0000000000..989f9f514d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image-text5.svg @@ -0,0 +1 @@ +image-text5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image1.svg b/plugins/bc-burger-editor/Addon/svg/image1.svg new file mode 100644 index 0000000000..36082fd909 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image1.svg @@ -0,0 +1 @@ +image1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image2.svg b/plugins/bc-burger-editor/Addon/svg/image2.svg new file mode 100644 index 0000000000..581d342e7b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image2.svg @@ -0,0 +1 @@ +image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image3.svg b/plugins/bc-burger-editor/Addon/svg/image3.svg new file mode 100644 index 0000000000..89943156a1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image3.svg @@ -0,0 +1 @@ +image3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image4.svg b/plugins/bc-burger-editor/Addon/svg/image4.svg new file mode 100644 index 0000000000..a72556ed11 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image4.svg @@ -0,0 +1 @@ +image4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/image5.svg b/plugins/bc-burger-editor/Addon/svg/image5.svg new file mode 100644 index 0000000000..ef994bfcf7 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/image5.svg @@ -0,0 +1 @@ +image5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/table.svg b/plugins/bc-burger-editor/Addon/svg/table.svg new file mode 100644 index 0000000000..cebaecac83 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/table.svg @@ -0,0 +1 @@ +table \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/text-float-image1.svg b/plugins/bc-burger-editor/Addon/svg/text-float-image1.svg new file mode 100644 index 0000000000..96d5b79575 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/text-float-image1.svg @@ -0,0 +1 @@ +text-float-image1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/text-float-image2.svg b/plugins/bc-burger-editor/Addon/svg/text-float-image2.svg new file mode 100644 index 0000000000..7ae482bd0b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/text-float-image2.svg @@ -0,0 +1 @@ +text-float-image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/text-gallery1.svg b/plugins/bc-burger-editor/Addon/svg/text-gallery1.svg new file mode 100644 index 0000000000..f4e5c5d49f --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/text-gallery1.svg @@ -0,0 +1 @@ +text-gallery1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/text-gallery2.svg b/plugins/bc-burger-editor/Addon/svg/text-gallery2.svg new file mode 100644 index 0000000000..4feaba4333 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/text-gallery2.svg @@ -0,0 +1 @@ +text-gallery2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/text-image1.svg b/plugins/bc-burger-editor/Addon/svg/text-image1.svg new file mode 100644 index 0000000000..62d4473528 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/text-image1.svg @@ -0,0 +1 @@ +text-image1 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/text-image2.svg b/plugins/bc-burger-editor/Addon/svg/text-image2.svg new file mode 100644 index 0000000000..7e017875de --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/text-image2.svg @@ -0,0 +1 @@ +text-image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/title.svg b/plugins/bc-burger-editor/Addon/svg/title.svg new file mode 100644 index 0000000000..5d1d0496ac --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/title.svg @@ -0,0 +1 @@ +title \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/title2.svg b/plugins/bc-burger-editor/Addon/svg/title2.svg new file mode 100644 index 0000000000..7f8e3e8372 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/title2.svg @@ -0,0 +1 @@ +title2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image-link2.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link2.svg new file mode 100644 index 0000000000..ed82ff1623 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link2.svg @@ -0,0 +1 @@ +trimmed-image-link2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image-link3.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link3.svg new file mode 100644 index 0000000000..38599205e9 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link3.svg @@ -0,0 +1 @@ +trimmed-image-link3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image-link4.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link4.svg new file mode 100644 index 0000000000..d5427dfdb0 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link4.svg @@ -0,0 +1 @@ +trimmed-image-link4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image-link5.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link5.svg new file mode 100644 index 0000000000..772933270d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image-link5.svg @@ -0,0 +1 @@ +trimmed-image-link5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image2.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image2.svg new file mode 100644 index 0000000000..e1c7a27913 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image2.svg @@ -0,0 +1 @@ +trimmed-image2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image3.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image3.svg new file mode 100644 index 0000000000..14b6f0a1fa --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image3.svg @@ -0,0 +1 @@ +trimmed-image3 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image4.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image4.svg new file mode 100644 index 0000000000..694d26eae1 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image4.svg @@ -0,0 +1 @@ +trimmed-image4 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/trimmed-image5.svg b/plugins/bc-burger-editor/Addon/svg/trimmed-image5.svg new file mode 100644 index 0000000000..f426a9fcba --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/trimmed-image5.svg @@ -0,0 +1 @@ +trimmed-image5 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/wysiwyg.svg b/plugins/bc-burger-editor/Addon/svg/wysiwyg.svg new file mode 100644 index 0000000000..872a571c39 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/wysiwyg.svg @@ -0,0 +1 @@ +wysiwyg \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/wysiwyg2.svg b/plugins/bc-burger-editor/Addon/svg/wysiwyg2.svg new file mode 100644 index 0000000000..2e3961c6da --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/wysiwyg2.svg @@ -0,0 +1 @@ +wysiwyg2 \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/svg/youtube.svg b/plugins/bc-burger-editor/Addon/svg/youtube.svg new file mode 100644 index 0000000000..b1a810364b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/svg/youtube.svg @@ -0,0 +1 @@ +youtube \ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/type/button/init.js b/plugins/bc-burger-editor/Addon/type/button/init.js new file mode 100644 index 0000000000..e883f2cbd0 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/button/init.js @@ -0,0 +1,16 @@ +'use strict'; +BgE.registerTypeModule('Button', { + migrate: (type) => { + const data = type.export(); + if (BgE.versionCheck.lt(type.version, '2.13.0')) { + if (data.type) { + data.kind = data.type.replace(/^bgt-btn--/, ''); + delete data.type; + } + if (!data.kind) { + data.kind = 'link'; + } + } + return data; + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/button/init.php b/plugins/bc-burger-editor/Addon/type/button/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/button/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/button/input.php b/plugins/bc-burger-editor/Addon/type/button/input.php new file mode 100644 index 0000000000..7d33a41633 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/button/input.php @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + +
ボタンの種類 + +
表示 + +
リンク: + +
ターゲット + +
diff --git a/plugins/bc-burger-editor/Addon/type/button/value.php b/plugins/bc-burger-editor/Addon/type/button/value.php new file mode 100644 index 0000000000..581e3d528e --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/button/value.php @@ -0,0 +1,5 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/button/version.php b/plugins/bc-burger-editor/Addon/type/button/version.php new file mode 100644 index 0000000000..4f69046113 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/button/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.24.0"; diff --git a/plugins/bc-burger-editor/Addon/type/ckeditor/init.js b/plugins/bc-burger-editor/Addon/type/ckeditor/init.js new file mode 100644 index 0000000000..835be40673 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/ckeditor/init.js @@ -0,0 +1,129 @@ +BgE.registerTypeModule('Ckeditor', { + data: { + editor: null, + }, + open: function (editorDialog, type) { + const CKEDITOR_STYLE_SET_NAME = 'bgeditor'; + const $editor = editorDialog.$el.find('[name="bge-ckeditor"]'); + if ($editor.val() === '本文を入力してください') { + $editor.val(''); + } + + const bodyClass = ['bge_content', 'bge-contents']; + if (BgE.config.setting.wrapperClass) { + bodyClass.push(BgE.config.setting.wrapperClass); + } + + const defaultConfig = { + toolbar: [ + ['Source', 'ShowBlocks'], + ['Templates'], + ['NumberedList', 'BulletedList', 'Outdent', 'Indent', 'Blockquote'], + ['Bold', 'Underline', 'Strike', 'Subscript', 'Superscript'], + ['JustifyLeft', 'JustifyCenter', 'JustifyRight'], + ['Link', 'Unlink', 'Anchor'], + ['Table', 'HorizontalRule', 'Nbsp'], + ['Styles'], + ['FontSize'], + ['TextColor', 'BGColor'], + ], + contentsCss: BgE.cssListForCKEditor.split(','), + bodyClass: bodyClass.join(' '), + stylesSet: [ + { name: '標準', element: 'p' }, + { name: '中見出し(Lv.3)', element: 'h3' }, + { name: '小見出し(Lv.4)', element: 'h4' }, + { name: '小見出し(Lv.5)', element: 'h5' }, + { name: '小見出し(Lv.6)', element: 'h6' }, + ], + allowedContent: true, + basicEntities: false, + entities: false, + forcePasteAsPlainText: true, + language: 'ja', + skin: 'moono', // cspell:disable-line + customConfig: '', + templates_replaceContent: false, + }; + /** + * @deprecated + */ + // @ts-ignore + defaultConfig['autoParagraph'] = false; + const config = $.extend({}, defaultConfig, BgE.config.ckeditorConfig); + const dtd = CKEDITOR.dtd; + dtd.a.address = 1; + dtd.a.article = 1; + dtd.a.aside = 1; + dtd.a.audio = 0; + dtd.a.blockquote = 1; + dtd.a.button = 0; + dtd.a.details = 0; + dtd.a.div = 1; + dtd.a.dl = 1; + dtd.a.embed = 0; + dtd.a.fieldset = 1; + dtd.a.figure = 1; + dtd.a.footer = 1; + dtd.a.form = 1; + dtd.a.h1 = 1; + dtd.a.h2 = 1; + dtd.a.h3 = 1; + dtd.a.h4 = 1; + dtd.a.h5 = 1; + dtd.a.h6 = 1; + dtd.a.header = 1; + dtd.a.hgroup = 1; + dtd.a.hr = 1; + dtd.a.iframe = 0; + dtd.a.input = 0; + dtd.a.keygen = 0; + dtd.a.label = 0; + dtd.a.math = 1; + dtd.a.menu = 0; + dtd.a.nav = 1; + dtd.a.object = 0; + dtd.a.ol = 1; + dtd.a.p = 1; + dtd.a.pre = 1; + dtd.a.select = 0; + dtd.a.svg = 1; + dtd.a.table = 1; + dtd.a.textarea = 0; + dtd.a.ul = 1; + dtd.a.video = 0; + dtd.$removeEmpty['i'] = false; + let height = $(window).height() || 0; + height = height > 600 ? 600 : height - 50; + height -= 220; + CKEDITOR.config.height = height + 'px'; + if (!CKEDITOR.stylesSet.get(CKEDITOR_STYLE_SET_NAME)) { + CKEDITOR.stylesSet.add(CKEDITOR_STYLE_SET_NAME, config.stylesSet); + } + CKEDITOR.config.stylesCombo_stylesSet = CKEDITOR_STYLE_SET_NAME; + config.templates_files = ['/admin/editor_templates/js']; + if (config.protectedSource) { + // eslint-disable-next-line unicorn/better-regex + config.protectedSource.push(/<\?[\s\S]*?\?>/g); + } + const cke = CKEDITOR.replace($editor.get(0), config); + type.module.setData('editor', cke); + /** + * TODO: アップローダー連携 + */ + // cke.on('pluginsLoaded', (ev) => { + // cke.addCommand('baserUploader', new CKEDITOR.dialogCommand('baserUploaderDialog')); + // cke.ui.addButton('BaserUploader', { + // label: 'アップローダー', + // command : 'baserUploader', + // toolbar: 'toolbar', + // }); + // }); + }, + beforeExtract: function (editorDialog, type) { + const cke = type.module.getData('editor'); + if (cke) { + cke.updateElement(); + } + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/ckeditor/init.php b/plugins/bc-burger-editor/Addon/type/ckeditor/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/ckeditor/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/ckeditor/input.php b/plugins/bc-burger-editor/Addon/type/ckeditor/input.php new file mode 100644 index 0000000000..9e7fe6b529 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/ckeditor/input.php @@ -0,0 +1 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/ckeditor/value.php b/plugins/bc-burger-editor/Addon/type/ckeditor/value.php new file mode 100644 index 0000000000..0ce723196d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/ckeditor/value.php @@ -0,0 +1 @@ +
本文を入力してください
diff --git a/plugins/bc-burger-editor/Addon/type/ckeditor/version.php b/plugins/bc-burger-editor/Addon/type/ckeditor/version.php new file mode 100644 index 0000000000..e027f3a69c --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/ckeditor/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.1.0"; diff --git a/plugins/bc-burger-editor/Addon/type/download-file/init.js b/plugins/bc-burger-editor/Addon/type/download-file/init.js new file mode 100644 index 0000000000..dbfa9d400b --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/download-file/init.js @@ -0,0 +1,12 @@ +'use strict'; +BgE.registerTypeModule('DownloadFile', { + open: (editorDialog, type) => { + editorDialog.$el.find('[name="bge-imported"]').val(1); + editorDialog.$el + .find('[name="bge-download"]') + .prop('checked', !!type.export().download); + }, + beforeChange: (newValues) => { + newValues.download = newValues.download ? newValues.name || newValues.path : null; + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/download-file/init.php b/plugins/bc-burger-editor/Addon/type/download-file/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/download-file/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/download-file/input.php b/plugins/bc-burger-editor/Addon/type/download-file/input.php new file mode 100644 index 0000000000..015b9b101e --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/download-file/input.php @@ -0,0 +1,27 @@ +
+
+ + + + + +
+ +
+
+

+
+ +

+

+ + +

+
+
+ +
+
+ +
+ diff --git a/plugins/bc-burger-editor/Addon/type/download-file/load.php b/plugins/bc-burger-editor/Addon/type/download-file/load.php new file mode 100644 index 0000000000..8223b03108 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/download-file/load.php @@ -0,0 +1,2 @@ +BcBaser->js('BcBurgerEditor.vendor/jquery.upload-1.0.0.min'); diff --git a/plugins/bc-burger-editor/Addon/type/download-file/value.php b/plugins/bc-burger-editor/Addon/type/download-file/value.php new file mode 100644 index 0000000000..4f98f900fc --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/download-file/value.php @@ -0,0 +1,8 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/download-file/version.php b/plugins/bc-burger-editor/Addon/type/download-file/version.php new file mode 100644 index 0000000000..80240b97ff --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/download-file/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.11.0"; diff --git a/plugins/bc-burger-editor/Addon/type/embed/init.js b/plugins/bc-burger-editor/Addon/type/embed/init.js new file mode 100644 index 0000000000..4e19180ea0 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/embed/init.js @@ -0,0 +1,11 @@ +'use strict'; +BgE.registerTypeModule('Embed', { + open: (editorDialog) => { + editorDialog.$el.find('[name=bge-embed-code]').val((_, val) => { + return BgE.Util.base64decode(val); + }); + }, + beforeChange: (newValues) => { + newValues['embed-code'] = BgE.Util.base64encode(newValues['embed-code']); + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/embed/init.php b/plugins/bc-burger-editor/Addon/type/embed/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/embed/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/embed/input.php b/plugins/bc-burger-editor/Addon/type/embed/input.php new file mode 100644 index 0000000000..513d7946c3 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/embed/input.php @@ -0,0 +1,9 @@ +
+ 管理名称 + +
+ +
+ 埋め込みタグ + +
\ No newline at end of file diff --git a/plugins/bc-burger-editor/Addon/type/embed/value.php b/plugins/bc-burger-editor/Addon/type/embed/value.php new file mode 100644 index 0000000000..512c4f0803 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/embed/value.php @@ -0,0 +1,2 @@ +
+
埋め込みタグ
diff --git a/plugins/bc-burger-editor/Addon/type/embed/version.php b/plugins/bc-burger-editor/Addon/type/embed/version.php new file mode 100644 index 0000000000..e027f3a69c --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/embed/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.1.0"; diff --git a/plugins/bc-burger-editor/Addon/type/gallery/init.js b/plugins/bc-burger-editor/Addon/type/gallery/init.js new file mode 100644 index 0000000000..8a39cf7d1f --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/gallery/init.js @@ -0,0 +1,49 @@ +'use strict'; +BgE.registerTypeModule('Gallery', { + customFunctions: { + // 削除ボタンクリック時イベント + removeRow: (e, editorDialog) => { + if ( + editorDialog.$el.find('[data-bge-class="MultiFieldSelection"] tr').length === 1 + ) { + alert('全て削除する場合はブロック要素を削除してください'); + return false; + } + if (confirm('削除します。よろしいですか?')) { + const $thisRow = $(e.target).parents('tr'); + $thisRow.fadeOut(200, () => $thisRow.remove()); + } + return false; + }, + // 移動ボタンクリック時イベント + replaceRow: (e) => { + let _a; + const $thisRow = $(e.target).parents('tr'); + const $nextRow = $thisRow.next(); + if ( + $nextRow.length > 0 && + ((_a = $thisRow.next().get(0)) === null || _a === void 0 + ? void 0 + : _a.nodeName.toLowerCase()) === 'tr' + ) { + const $src = $thisRow.find('[name="bge-path"]'); + const $caption = $thisRow.find('[name="bge-caption"]'); + const $nextSrc = $nextRow.find('[name="bge-path"]'); + const $nextCaption = $nextRow.find('[name="bge-caption"]'); + const src = $src.val() || ''; + const caption = $caption.val() || ''; + const nextSrc = $nextSrc.val() || ''; + const nextCaption = $nextCaption.val() || ''; + $src.val(nextSrc); + $caption.val(nextCaption); + $thisRow.find('[data-bge="path:src"]').attr('src', nextSrc); + $nextSrc.val(src); + $nextCaption.val(caption); + $nextRow.find('[data-bge="path:src"]').attr('src', src); + } else { + alert('対象が見つかりません'); + } + return false; + }, + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/gallery/init.php b/plugins/bc-burger-editor/Addon/type/gallery/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/gallery/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/gallery/input.php b/plugins/bc-burger-editor/Addon/type/gallery/input.php new file mode 100644 index 0000000000..f13b5e905f --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/gallery/input.php @@ -0,0 +1,66 @@ +
+
+ + + + + + + + + +
スライドショーに使用する画像
+
+ +
+ + + + +
+
+ +
+ +
+ +
+
+
+ + +
+ +
+
+
+ エフェクト + + +
+
+
+
+
+
+ マーカー + + + +
+
+
+
+

+ + +

+
+
+ +
+
+ +
+
+
diff --git a/plugins/bc-burger-editor/Addon/type/gallery/load.php b/plugins/bc-burger-editor/Addon/type/gallery/load.php new file mode 100644 index 0000000000..8223b03108 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/gallery/load.php @@ -0,0 +1,2 @@ +BcBaser->js('BcBurgerEditor.vendor/jquery.upload-1.0.0.min'); diff --git a/plugins/bc-burger-editor/Addon/type/gallery/value.php b/plugins/bc-burger-editor/Addon/type/gallery/value.php new file mode 100644 index 0000000000..de5a8a9ab8 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/gallery/value.php @@ -0,0 +1,25 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/gallery/version.php b/plugins/bc-burger-editor/Addon/type/gallery/version.php new file mode 100644 index 0000000000..7c75bdbdc2 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/gallery/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.12.0"; diff --git a/plugins/bc-burger-editor/Addon/type/google-maps/init.js b/plugins/bc-burger-editor/Addon/type/google-maps/init.js new file mode 100644 index 0000000000..f6f6a4c762 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/google-maps/init.js @@ -0,0 +1,135 @@ +'use strict'; +BgE.registerTypeModule('GoogleMaps', { + open: async (editorDialog) => { + // @ts-ignore + google.maps.marker = await google.maps.importLibrary('marker'); + const mapNode = editorDialog.$el.find('.bge-gmap').get(0); + if (!mapNode) { + // eslint-disable-next-line no-console + console.error('Map node not found'); + return; + } + const geocoder = new google.maps.Geocoder(); + const $lat = editorDialog.$el.find('[name=bge-lat]'); + const $lng = editorDialog.$el.find('[name=bge-lng]'); + const $zoom = editorDialog.$el.find('[name=bge-zoom]'); + const $bgeGoogleMapsSearchText = editorDialog.$el.find('[name=bge-search]'); + const $bgeGoogleMapsSearchButton = editorDialog.$el.find('[name=bge-search-button]'); + const lat = Number.parseFloat($lat.val()); + const lng = Number.parseFloat($lng.val()); + const zoom = Number.parseInt($zoom.val(), 10); + // make map + const latlng = new google.maps.LatLng(lat, lng); + const map = new google.maps.Map(mapNode, { + mapId: 'bgt-google-maps', + zoom, + mapTypeId: google.maps.MapTypeId.ROADMAP, + center: latlng, + }); + const marker = new google.maps.marker.AdvancedMarkerElement({ + position: latlng, + map: map, + }); + const getCenter = () => { + const center = map.getCenter(); + if (!center) { + throw new Error('Getting center failed'); + } + return center; + }; + const moveMarkerToCenter = () => { + marker.position = getCenter(); + const markerLat = getCenter().lat(); + const markerLng = getCenter().lng(); + $lat.val(`${markerLat}`); + $lng.val(`${markerLng}`); + }; + let dragTimer; + // set event listener + google.maps.event.addListener(map, 'dragend', () => { + dragTimer = window.setTimeout(() => { + moveMarkerToCenter(); + }, 10); + }); + google.maps.event.addListener(map, 'drag', () => { + window.clearTimeout(dragTimer); + moveMarkerToCenter(); + }); + google.maps.event.addListener(map, 'idle', () => { + window.clearTimeout(dragTimer); + moveMarkerToCenter(); + }); + google.maps.event.addListener(map, 'zoom_changed', () => { + const changedZoom = map.getZoom(); + marker.position = getCenter(); + $zoom.val(`${changedZoom}`); + }); + // geo search + $bgeGoogleMapsSearchButton.off('click'); + $bgeGoogleMapsSearchButton.on('click', () => { + void geocoder.geocode( + { + address: $bgeGoogleMapsSearchText.val(), + }, + (results, status) => { + const result = results === null || results === void 0 ? void 0 : results[0]; + if (result && status === google.maps.GeocoderStatus.OK) { + map.setCenter(result.geometry.location); + marker.position = result.geometry.location; + const geolat = getCenter().lat(); + const geoLng = getCenter().lng(); + $lat.val(`${geolat}`); + $lng.val(`${geoLng}`); + } else { + alert( + '住所から場所を特定できませんでした。最初にビル名などを省略し、番地までの検索などでお試しください。', + ); + } + }, + ); + }); + }, + beforeExtract: (editorDialog) => { + const $lat = editorDialog.$el.find('[name=bge-lat]'); + const $lng = editorDialog.$el.find('[name=bge-lng]'); + const lat = Number.parseFloat($lat.val()); + const lng = Number.parseFloat($lng.val()); + editorDialog.$el.find('[name=bge-url]').val(`//maps.apple.com/?q=${lat},${lng}`); + }, + change: (_, type) => { + const BASE_URL = '//maps.google.com/maps/api/staticmap'; + const $db = $('#DefaultBlock'); + const lat = $(type.el).find('[data-lat]').attr('data-lat'); + const lng = $(type.el).find('[data-lng]').attr('data-lng'); + const zoom = $(type.el).find('[data-zoom]').attr('data-zoom'); + $db.show(); // サイズを取得するために一時的に表示する + const width = Math.floor($(type.el).width() || 0) || 640; // アップデート時に取得出来ない場合 640を利用 + const height = Math.floor($(type.el).height() || 0) || 400; // アップデート時に取得出来ない場合 400を利用 + $db.hide(); + const param = $.param({ + center: [lat, lng], + zoom, + size: `${width}x${height}`, // サイズはAPIの仕様で最大 640x640 の画像しか参照できない + markers: `color:red|color:red|${lat},${lng}`, + key: BgE.googleMapsApiKey, + }); + const url = `${BASE_URL}?${param}`; + $(type.el).find('img').attr('src', url); + }, + migrate: (type) => { + const data = type.export(); + if (BgE.versionCheck.lt(type.version, '2.10.0')) { + const lat = data.lat; + const lng = data.lng; + data.url = `//maps.apple.com/?q=${lat},${lng}`; + type.version = '2.10.0'; + } + return data; + }, + isDisable: () => { + if (BgE.googleMapsApiKey) { + return ''; + } + return 'Google Maps APIキーが登録されていないため、利用できません。\n「システム設定」からAPIキーを登録することができます。'; + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/google-maps/init.php b/plugins/bc-burger-editor/Addon/type/google-maps/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/google-maps/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/google-maps/input.php b/plugins/bc-burger-editor/Addon/type/google-maps/input.php new file mode 100644 index 0000000000..4d12959c33 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/google-maps/input.php @@ -0,0 +1,8 @@ +
map
+ + + + +住所から検索: + + diff --git a/plugins/bc-burger-editor/Addon/type/google-maps/load.php b/plugins/bc-burger-editor/Addon/type/google-maps/load.php new file mode 100644 index 0000000000..06b854a126 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/google-maps/load.php @@ -0,0 +1,18 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ + +// GoogleMaps APIの取得 + +$googleMapsApiKey = \BcBurgerEditor\Lib\BurgerEditorUtil::getGoogleMapApiKey(); + +if ($googleMapsApiKey) { + $this->BcBaser->js(['https://maps.google.com/maps/api/js?key=' . $googleMapsApiKey], ['inline' => false]); +} diff --git a/plugins/bc-burger-editor/Addon/type/google-maps/value.php b/plugins/bc-burger-editor/Addon/type/google-maps/value.php new file mode 100644 index 0000000000..6f6d66b715 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/google-maps/value.php @@ -0,0 +1,10 @@ + +
+ map +
+アプリで開く diff --git a/plugins/bc-burger-editor/Addon/type/google-maps/version.php b/plugins/bc-burger-editor/Addon/type/google-maps/version.php new file mode 100644 index 0000000000..b5976419c0 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/google-maps/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.25.0"; diff --git a/plugins/bc-burger-editor/Addon/type/hr/init.js b/plugins/bc-burger-editor/Addon/type/hr/init.js new file mode 100644 index 0000000000..2d9074dcd5 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/hr/init.js @@ -0,0 +1,16 @@ +'use strict'; +BgE.registerTypeModule('Hr', { + migrate: (type) => { + const data = type.export(); + if (BgE.versionCheck.lt(type.version, '2.12.0')) { + if (data.type) { + data.kind = data.type.replace(/^bgt-hr--/, ''); + delete data.type; + } + if (!data.kind) { + data.kind = 'primary'; + } + } + return data; + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/hr/init.php b/plugins/bc-burger-editor/Addon/type/hr/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/hr/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/hr/input.php b/plugins/bc-burger-editor/Addon/type/hr/input.php new file mode 100644 index 0000000000..6ae0d873d7 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/hr/input.php @@ -0,0 +1,14 @@ + + + + + +
区切り線の種類 + +
diff --git a/plugins/bc-burger-editor/Addon/type/hr/value.php b/plugins/bc-burger-editor/Addon/type/hr/value.php new file mode 100644 index 0000000000..60a7f87cad --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/hr/value.php @@ -0,0 +1,3 @@ +
+
+
diff --git a/plugins/bc-burger-editor/Addon/type/hr/version.php b/plugins/bc-burger-editor/Addon/type/hr/version.php new file mode 100644 index 0000000000..7c75bdbdc2 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/hr/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.12.0"; diff --git a/plugins/bc-burger-editor/Addon/type/image-link/init.js b/plugins/bc-burger-editor/Addon/type/image-link/init.js new file mode 100644 index 0000000000..fd99fe3c07 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image-link/init.js @@ -0,0 +1,54 @@ +'use strict'; +BgE.registerTypeModule('ImageLink', { + open: (editorDialog, type) => { + editorDialog.$el.find('[name="bge-imported"]').val(1); + const data = type.export(); + if (data.loading === 'eager' && data.decoding === 'auto') { + editorDialog.$el.find('[name="bge-lazy"]').prop('checked', false); + } + }, + beforeChange: (value) => { + return new Promise((resolve) => { + // 入力はチェックボックスなので論理値 + value.target = value.target ? '_blank' : ''; + value.rel = value.target ? 'noopener noreferrer' : null; + const img = new Image(); + const scale = value.hr ? 2 : 1; + const ORIGIN = '__org'; + const pathParse = value.path.match(/^(.*)(\.(?:jpe?g|gif|png|webp))$/i); + img.addEventListener('load', () => { + value.width = img.width / scale; + value.height = img.height / scale; + resolve(); + }); + const error = () => { + value.width = 'auto'; + value.height = 'auto'; + img.src = value.path; + value.srcset = ''; + resolve(); + }; + if (value.empty === '1') { + error(); + return; + } + img.addEventListener('error', error); + img.addEventListener('abort', error); + if (pathParse) { + const [, name, ext] = pathParse; + img.src = `${name}${ORIGIN}${ext}`; + value.srcset = `${name}${ext}, ${name}${ORIGIN}${ext} 2x`; + } else { + img.src = value.path; + value.srcset = ''; + } + if (value.lazy) { + value.loading = 'lazy'; + value.decoding = 'async'; + } else { + value.loading = 'eager'; + value.decoding = 'auto'; + } + }); + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/image-link/init.php b/plugins/bc-burger-editor/Addon/type/image-link/init.php new file mode 100644 index 0000000000..3e93cf81e4 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image-link/init.php @@ -0,0 +1,15 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + + diff --git a/plugins/bc-burger-editor/Addon/type/image-link/input.php b/plugins/bc-burger-editor/Addon/type/image-link/input.php new file mode 100644 index 0000000000..5b4398b4b3 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image-link/input.php @@ -0,0 +1,36 @@ +
+
+ + + + +
+ +
+
+

+ + +

+

+ + +

+

+ +

+

+ + +

+

+
+ チェックを入れることで表示のパフォーマンスが向上します。 +

+
+
+ +
+
+ +
diff --git a/plugins/bc-burger-editor/Addon/type/image-link/load.php b/plugins/bc-burger-editor/Addon/type/image-link/load.php new file mode 100644 index 0000000000..8223b03108 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image-link/load.php @@ -0,0 +1,2 @@ +BcBaser->js('BcBurgerEditor.vendor/jquery.upload-1.0.0.min'); diff --git a/plugins/bc-burger-editor/Addon/type/image-link/value.php b/plugins/bc-burger-editor/Addon/type/image-link/value.php new file mode 100644 index 0000000000..fead6ad5fa --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image-link/value.php @@ -0,0 +1,14 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/image-link/version.php b/plugins/bc-burger-editor/Addon/type/image-link/version.php new file mode 100644 index 0000000000..4f69046113 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image-link/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.24.0"; diff --git a/plugins/bc-burger-editor/Addon/type/image/init.js b/plugins/bc-burger-editor/Addon/type/image/init.js new file mode 100644 index 0000000000..4e63033722 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image/init.js @@ -0,0 +1,57 @@ +'use strict'; +BgE.registerTypeModule('Image', { + open: (editorDialog, type) => { + editorDialog.$el.find('[name="bge-imported"]').val(1); + const data = type.export(); + if (data.loading === 'eager' && data.decoding === 'auto') { + editorDialog.$el.find('[name="bge-lazy"]').prop('checked', false); + } + }, + beforeChange: (value) => { + return new Promise((resolve) => { + const img = new Image(); + const scale = value.hr ? 2 : 1; + const ORIGIN = '__org'; + const pathParse = value.path.match(/^(.*)(\.(?:jpe?g|gif|png|webp))$/i); + img.addEventListener('load', () => { + value.width = img.width / scale; + value.height = img.height / scale; + resolve(); + }); + const error = () => { + value.width = 'auto'; + value.height = 'auto'; + img.src = value.path; + value.srcset = ''; + resolve(); + }; + if (value.empty === '1') { + error(); + return; + } + img.addEventListener('error', error); + img.addEventListener('abort', error); + if (pathParse) { + const [, name, ext] = pathParse; + img.src = `${name}${ORIGIN}${ext}`; + value.srcset = `${name}${ext}, ${name}${ORIGIN}${ext} 2x`; + } else { + img.src = value.path; + value.srcset = ''; + } + if (value.lazy) { + value.loading = 'lazy'; + value.decoding = 'async'; + } else { + value.loading = 'eager'; + value.decoding = 'auto'; + } + }); + }, + change: (value, type) => { + if (!value.popup) { + const $a = $(type.el).find('a'); + $a.removeAttr('href'); + } + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/image/init.php b/plugins/bc-burger-editor/Addon/type/image/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/image/input.php b/plugins/bc-burger-editor/Addon/type/image/input.php new file mode 100644 index 0000000000..039b299ba8 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image/input.php @@ -0,0 +1,33 @@ +
+
+ + + + +
+ +
+
+

+ + + +

+

+ +

+

+ + +

+

+
+ チェックを入れることで表示のパフォーマンスが向上します。 +

+
+
+ +
+
+ +
diff --git a/plugins/bc-burger-editor/Addon/type/image/load.php b/plugins/bc-burger-editor/Addon/type/image/load.php new file mode 100644 index 0000000000..8223b03108 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image/load.php @@ -0,0 +1,2 @@ +BcBaser->js('BcBurgerEditor.vendor/jquery.upload-1.0.0.min'); diff --git a/plugins/bc-burger-editor/Addon/type/image/value.php b/plugins/bc-burger-editor/Addon/type/image/value.php new file mode 100644 index 0000000000..4c12e60530 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image/value.php @@ -0,0 +1,21 @@ +
" + data-bge-empty="0" + data-bge-hr="" + data-bge="popup:data-bge-popup, empty:data-bge-empty, hr:data-bge-hr" +> + + href="files/bgeditor/bg-sample.png" + + data-bge="path:href" + > + + +
diff --git a/plugins/bc-burger-editor/Addon/type/image/version.php b/plugins/bc-burger-editor/Addon/type/image/version.php new file mode 100644 index 0000000000..4f69046113 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/image/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.24.0"; diff --git a/plugins/bc-burger-editor/Addon/type/table/init.js b/plugins/bc-burger-editor/Addon/type/table/init.js new file mode 100644 index 0000000000..a41fbf090e --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/table/init.js @@ -0,0 +1,168 @@ +'use strict'; +BgE.registerTypeModule('Table', { + beforeOpen: (editorDialog, _, data) => { + if (!data) { + return; + } + const $base = editorDialog.$el.find('[data-bge-table-base]'); + const $baseRow = $base.find('tr'); + const $input = editorDialog.$el.find('[data-bge-table-input]'); + const $inputBody = $input.find('tbody'); + let i = 0; + for (const key of Object.keys(data)) { + // "td-"で開始するkeyだけ回す + if (key.indexOf('td-') === 0) { + const thKey = `th-${i}`; + const tdKey = `td-${i}`; + const thValue = BgE.Util.br2nl(`${data[thKey]}`); + const tdValue = BgE.Util.br2nl(`${data[tdKey]}`); + data[thKey] = thValue; + data[tdKey] = tdValue; + const $cloneRow = $baseRow.clone(); + $cloneRow.find('[name="th"]').attr('name', `bge-th-${i}`); + $cloneRow.find('[name="td"]').attr('name', `bge-td-${i}`); + $cloneRow.appendTo($inputBody); + i += 1; + } + } + }, + // 完了前イベント + beforeChange: (data, type) => { + // 書き込み先を準備 + let rowNum = 0; + for (const key of Object.keys(data)) { + // "td-"で開始するkeyだけ回す + if (key.indexOf('td-') === 0) { + rowNum += 1; + } + } + const $targetTbl = $(type.el).find('tbody'); + let rows = ''; + for (let i = 0; i < rowNum; i++) { + rows += ` + + + + + `; + } + $targetTbl.html(rows); + }, + // 入力・選択終了時イベント + change: (_, type) => { + $(type.el) + .find('[data-bge]') + .each((_, el) => { + $(el).html((_, html) => { + return BgE.Util.nl2br(html); + }); + }); + }, + migrateElement(values, type) { + let _a, _b; + const $el = $(type.el); + const $tbody = $el.find('tbody'); + const $rowOrigin = $tbody.find('tr').clone(); + const keys = Object.keys(values); + $tbody.empty(); + for (const key of keys) { + if (!/^th-\d+$/.test(key)) { + continue; + } + const n = Number.parseInt( + (_b = (_a = key.match(/\d+$/)) === null || _a === void 0 ? void 0 : _a[0]) !== + null && _b !== void 0 + ? _b + : '', + 10, + ); + if (Number.isNaN(n)) { + continue; + } + const thVal = values[`th-${n}`]; + if (thVal == null || Array.isArray(thVal) || $.isFunction(thVal)) { + continue; + } + const tdVal = values[`td-${n}`]; + if (tdVal == null || Array.isArray(tdVal) || $.isFunction(tdVal)) { + continue; + } + values[`th-${n}`] = BgE.Util.nl2br(`${thVal}`); + values[`td-${n}`] = BgE.Util.nl2br(`${tdVal}`); + const $row = $rowOrigin.clone(); + $row + .find('[data-bge^="th-"]') + .attr('data-bge', `th-${n}`) + .html(values[`th-${n}`] + ''); + $row + .find('[data-bge^="td-"]') + .attr('data-bge', `td-${n}`) + .html(values[`td-${n}`] + ''); + $tbody.append($row); + } + }, + customFunctions: { + // 追加ボタンクリック時イベント + addRow: (e, editorDialog, type, module) => { + const $this = $(e.target); + const $baseTbl = editorDialog.$el.find('[data-bge-table-base]'); + const nextRowNum = editorDialog.$el.find('[data-bge-table-input] tr').length; + $baseTbl.find('th [data-bge-title]').attr('name', 'bge-th-' + nextRowNum); + $baseTbl.find('td [data-bge-text]').attr('name', 'bge-td-' + nextRowNum); + $this.parents('tr').after($baseTbl.find('tbody').html()); + // bind対象外の名称にする + $baseTbl.find('th [data-bge-title]').attr('name', 'th'); + $baseTbl.find('td [data-bge-text]').attr('name', 'td'); + module.fire('refreshRow', editorDialog, type, module); + return false; + }, + // 削除ボタンクリック時イベント + removeRow: (e, editorDialog, type, module) => { + if (confirm('削除します。よろしいですか?')) { + if (editorDialog.$el.find('[data-bge-table-input] tr').length === 1) { + alert('全て削除する場合はブロック要素を削除してください'); + return false; + } + $(e.target) + .parents('tr') + .fadeOut(200, function () { + $(this).remove(); + module.fire('refreshRow', editorDialog, type, module); + }); + } + return false; + }, + // 移動ボタンクリック時イベント + replaceRow: (e) => { + let _a; + const $thisTr = $(e.target).parents('tr'); + const $nextTr = $thisTr.next(); + if ( + $nextTr.length > 0 && + ((_a = $thisTr.next().get(0)) === null || _a === void 0 + ? void 0 + : _a.nodeName.toLowerCase()) === 'tr' + ) { + const thVal = $thisTr.find('th [data-bge-title]').val(); + const tdVal = $thisTr.find('td [data-bge-text]').val(); + $thisTr + .find('th [data-bge-title]') + .val($nextTr.find('th [data-bge-title]').val()); + $thisTr.find('td [data-bge-text]').val($nextTr.find('td [data-bge-text]').val()); + $nextTr.find('th [data-bge-title]').val(thVal); + $nextTr.find('td [data-bge-text]').val(tdVal); + } else { + alert('対象が見つかりません'); + } + return false; + }, + // 入力エリアのnameを再構築する + refreshRow: (_, editorDialog) => { + const $targetTable = editorDialog.$el.find('[data-bge-table-input]'); + $targetTable.find('tr').each((i, el) => { + $(el).find('th [data-bge-title]').attr('name', `bge-th-${i}`); + $(el).find('td [data-bge-text]').attr('name', `bge-td-${i}`); + }); + }, + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/table/init.php b/plugins/bc-burger-editor/Addon/type/table/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/table/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/table/input.php b/plugins/bc-burger-editor/Addon/type/table/input.php new file mode 100644 index 0000000000..e326f4a0b0 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/table/input.php @@ -0,0 +1,22 @@ +
+

+
+ + + + +
+ + + + + + + + + +
+ + + +
diff --git a/plugins/bc-burger-editor/Addon/type/table/value.php b/plugins/bc-burger-editor/Addon/type/table/value.php new file mode 100644 index 0000000000..f76823bd2c --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/table/value.php @@ -0,0 +1,9 @@ + + + + + + + + +
表組の見出し表組の内容を入力してください
diff --git a/plugins/bc-burger-editor/Addon/type/table/version.php b/plugins/bc-burger-editor/Addon/type/table/version.php new file mode 100644 index 0000000000..eb96572028 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/table/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.25.1"; diff --git a/plugins/bc-burger-editor/Addon/type/title-h2/init.js b/plugins/bc-burger-editor/Addon/type/title-h2/init.js new file mode 100644 index 0000000000..a4eb937ea2 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h2/init.js @@ -0,0 +1,2 @@ +'use strict'; +BgE.registerTypeModule('TitleH2'); diff --git a/plugins/bc-burger-editor/Addon/type/title-h2/init.php b/plugins/bc-burger-editor/Addon/type/title-h2/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h2/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/title-h2/input.php b/plugins/bc-burger-editor/Addon/type/title-h2/input.php new file mode 100644 index 0000000000..df87481368 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h2/input.php @@ -0,0 +1 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/title-h2/value.php b/plugins/bc-burger-editor/Addon/type/title-h2/value.php new file mode 100644 index 0000000000..95e6b20834 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h2/value.php @@ -0,0 +1 @@ +

見出しを入力してください

diff --git a/plugins/bc-burger-editor/Addon/type/title-h2/version.php b/plugins/bc-burger-editor/Addon/type/title-h2/version.php new file mode 100644 index 0000000000..e027f3a69c --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h2/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.1.0"; diff --git a/plugins/bc-burger-editor/Addon/type/title-h3/init.js b/plugins/bc-burger-editor/Addon/type/title-h3/init.js new file mode 100644 index 0000000000..231d344c6a --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h3/init.js @@ -0,0 +1,2 @@ +'use strict'; +BgE.registerTypeModule('TitleH3'); diff --git a/plugins/bc-burger-editor/Addon/type/title-h3/init.php b/plugins/bc-burger-editor/Addon/type/title-h3/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h3/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/title-h3/input.php b/plugins/bc-burger-editor/Addon/type/title-h3/input.php new file mode 100644 index 0000000000..1e7b705c0d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h3/input.php @@ -0,0 +1 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/title-h3/value.php b/plugins/bc-burger-editor/Addon/type/title-h3/value.php new file mode 100644 index 0000000000..b04a811a56 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h3/value.php @@ -0,0 +1 @@ +

見出しを入力してください

diff --git a/plugins/bc-burger-editor/Addon/type/title-h3/version.php b/plugins/bc-burger-editor/Addon/type/title-h3/version.php new file mode 100644 index 0000000000..e027f3a69c --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/title-h3/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.1.0"; diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image-link/init.js b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/init.js new file mode 100644 index 0000000000..53dac096f0 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/init.js @@ -0,0 +1,20 @@ +'use strict'; +BgE.registerTypeModule('TrimmedImageLink', { + change: (_, type) => { + // リンクのtargetを設定 + const $link = $(type.el).find('.bge-trimmed-image-link-a'); + const target = + $(type.el).find('.bge-trimmed-image-link-target').val() === '1' + ? '_blank' + : '_self'; + $link.attr('target', target); + }, + beforeChange: (value) => { + return new Promise((resolve) => { + // 入力はチェックボックスなので論理値 + value.target = value.target ? '_blank' : ''; + value.rel = value.target ? 'noopener noreferrer' : null; + resolve(); + }); + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image-link/init.php b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image-link/input.php b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/input.php new file mode 100644 index 0000000000..78366dd40f --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/input.php @@ -0,0 +1,30 @@ +
+
+ + + +
+ +
+
+

+ +

+

+ + +

+

+ +

+

+ + +

+
+
+ +
+
+ +
diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image-link/load.php b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/load.php new file mode 100644 index 0000000000..8223b03108 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/load.php @@ -0,0 +1,2 @@ +BcBaser->js('BcBurgerEditor.vendor/jquery.upload-1.0.0.min'); diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image-link/value.php b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/value.php new file mode 100644 index 0000000000..1c304e36cf --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/value.php @@ -0,0 +1,11 @@ + diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image-link/version.php b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/version.php new file mode 100644 index 0000000000..4f69046113 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image-link/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.24.0"; diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image/init.js b/plugins/bc-burger-editor/Addon/type/trimmed-image/init.js new file mode 100644 index 0000000000..383b423e54 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image/init.js @@ -0,0 +1,9 @@ +'use strict'; +BgE.registerTypeModule('TrimmedImage', { + change: (value, type) => { + if (!value.popup) { + const $a = $(type.el).find('a'); + $a.removeAttr('href'); + } + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image/init.php b/plugins/bc-burger-editor/Addon/type/trimmed-image/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image/input.php b/plugins/bc-burger-editor/Addon/type/trimmed-image/input.php new file mode 100644 index 0000000000..18da7d89c5 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image/input.php @@ -0,0 +1,27 @@ +
+
+ + + +
+ +
+
+

+ + +

+

+ +

+

+ + +

+
+
+ +
+
+ +
diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image/load.php b/plugins/bc-burger-editor/Addon/type/trimmed-image/load.php new file mode 100644 index 0000000000..8223b03108 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image/load.php @@ -0,0 +1,2 @@ +BcBaser->js('BcBurgerEditor.vendor/jquery.upload-1.0.0.min'); diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image/value.php b/plugins/bc-burger-editor/Addon/type/trimmed-image/value.php new file mode 100644 index 0000000000..6ec48a1189 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image/value.php @@ -0,0 +1,18 @@ +
" + data-bge-empty="0" + data-bge="popup:data-bge-popup, empty:data-bge-empty" +> + + href="files/bgeditor/bg-sample.png" + + data-bge="path:href" + > + + +
diff --git a/plugins/bc-burger-editor/Addon/type/trimmed-image/version.php b/plugins/bc-burger-editor/Addon/type/trimmed-image/version.php new file mode 100644 index 0000000000..967cea3942 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/trimmed-image/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.4.0"; diff --git a/plugins/bc-burger-editor/Addon/type/youtube/init.js b/plugins/bc-burger-editor/Addon/type/youtube/init.js new file mode 100644 index 0000000000..f5dca23682 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/youtube/init.js @@ -0,0 +1,33 @@ +'use strict'; +const FALLBACK_TITLE = 'YouTube動画'; +BgE.registerTypeModule('Youtube', { + open: (editorDialog, types) => { + const $title = editorDialog.$el.find('[name="bge-title"]'); + const { title } = types.export(); + if (title === FALLBACK_TITLE) { + $title.val(''); + } + const BASE_URL = '//www.youtube.com/embed/'; + const BASIC_PARAM = '?rel=0&loop=1&autoplay=1&autohide=1&start=0'; + const THUMB_URL = '//img.youtube.com/vi/'; + const THUMB_FILE_NAME = '/mqdefault.jpg'; // /0.jpgでも可能 + const $id = editorDialog.$el.find('[name="bge-id"]'); + const $url = editorDialog.$el.find('[name="bge-url"]'); + const $thumb = editorDialog.$el.find('[name="bge-thumb"]'); + const $preview = editorDialog.$el.find('.bge-youtube-preview'); + const preview = () => { + const id = BgE.Util.parseYTId($id.val()); + const url = BASE_URL + id + BASIC_PARAM; + $preview.attr('src', url); + $preview.appendTo(editorDialog.$el); + $url.val(url); + $thumb.val(THUMB_URL + id + THUMB_FILE_NAME); + }; + $id.on('change input', preview); + preview(); + }, + beforeChange: (newValues) => { + newValues.id = BgE.Util.parseYTId(newValues.id); + newValues.title = newValues.title || FALLBACK_TITLE; + }, +}); diff --git a/plugins/bc-burger-editor/Addon/type/youtube/init.php b/plugins/bc-burger-editor/Addon/type/youtube/init.php new file mode 100644 index 0000000000..796d682258 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/youtube/init.php @@ -0,0 +1,14 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +?> + diff --git a/plugins/bc-burger-editor/Addon/type/youtube/input.php b/plugins/bc-burger-editor/Addon/type/youtube/input.php new file mode 100644 index 0000000000..6a8dff5022 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/youtube/input.php @@ -0,0 +1,5 @@ +
URLもしくは動画ID:
+
動画タイトル:
+ + + diff --git a/plugins/bc-burger-editor/Addon/type/youtube/value.php b/plugins/bc-burger-editor/Addon/type/youtube/value.php new file mode 100644 index 0000000000..5e9802aa2d --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/youtube/value.php @@ -0,0 +1,3 @@ +
+ 動画のサムネイル +
diff --git a/plugins/bc-burger-editor/Addon/type/youtube/version.php b/plugins/bc-burger-editor/Addon/type/youtube/version.php new file mode 100644 index 0000000000..4f69046113 --- /dev/null +++ b/plugins/bc-burger-editor/Addon/type/youtube/version.php @@ -0,0 +1,11 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +$version = "2.24.0"; diff --git a/plugins/bc-burger-editor/LICENCE b/plugins/bc-burger-editor/LICENCE new file mode 100644 index 0000000000..fbf113655a --- /dev/null +++ b/plugins/bc-burger-editor/LICENCE @@ -0,0 +1,6 @@ +The MIT License (MIT) + +Copyright (c) 2026-present, NPO baser foundation + +About License +https://basercms.net/license/index.html diff --git a/plugins/bc-burger-editor/NOTICE b/plugins/bc-burger-editor/NOTICE new file mode 100644 index 0000000000..5148f6ba75 --- /dev/null +++ b/plugins/bc-burger-editor/NOTICE @@ -0,0 +1,22 @@ +This package bundles third-party and original fonts under dist/fonts. + +------------------------------------------------------------------------------- +FontAwesome (webroot/fonts/fontawesome-webfont.woff2) +------------------------------------------------------------------------------- +The following notice is embedded in the font file: + + Copyright Dave Gandy 2016. All rights reserved. + Font Family: FontAwesome + Version: Version 4.6.3 2016 + Designer: Dave Gandy + Manufacturer: Fort Awesome + Vendor URL: http://fontawesome.io + License URL: http://fontawesome.io/license/ + +The font is licensed under the SIL Open Font License, Version 1.1. See the +accompanying LICENSE-OFL-1.1 file for the full license text. + +------------------------------------------------------------------------------- +bge-ui-icons (webroot/fonts/icons.woff) +------------------------------------------------------------------------------- +An original work of D-ZERO. Not covered by the SIL Open Font License above. diff --git a/plugins/bc-burger-editor/README.md b/plugins/bc-burger-editor/README.md new file mode 100644 index 0000000000..b2e56c67ba --- /dev/null +++ b/plugins/bc-burger-editor/README.md @@ -0,0 +1 @@ +# BurgerEditor diff --git a/plugins/bc-burger-editor/bgeconfig.json.sample b/plugins/bc-burger-editor/bgeconfig.json.sample new file mode 100644 index 0000000000..b0f8445a91 --- /dev/null +++ b/plugins/bc-burger-editor/bgeconfig.json.sample @@ -0,0 +1,86 @@ +{ + "bg-category": { + "見出し / テキスト / テキスト+画像": { + "title": "大見出し", + "title2": "中見出し", + "wysiwyg": "1カラムテキスト", + "wysiwyg2": "2カラムテキスト", + "text-float-image1": "画像右寄せテキスト回り込み", + "text-float-image2": "画像左寄せテキスト回り込み", + "text-image1": "画像右寄せテキスト回り込み無し", + "text-image2": "画像左寄せテキスト回り込み無し" + }, + "画像": { + "image1": "画像1列", + "image2": "画像2列", + "image3": "画像3列", + "image4": "画像4列", + "image5": "画像5列", + "trimmed-image2": "トリミング画像2列", + "trimmed-image3": "トリミング画像3列", + "trimmed-image4": "トリミング画像4列", + "trimmed-image5": "トリミング画像5列", + "image-link1": "画像1列リンク付", + "image-link2": "画像2列リンク付", + "image-link3": "画像3列リンク付", + "image-link4": "画像4列リンク付", + "image-link5": "画像5列リンク付", + "trimmed-image-link2": "トリミング画像2列リンク付", + "trimmed-image-link3": "トリミング画像3列リンク付", + "trimmed-image-link4": "トリミング画像4列リンク付", + "trimmed-image-link5": "トリミング画像5列リンク付" + }, + "画像+テキスト": { + "image-text2": "画像2列テキスト付", + "image-text3": "画像3列テキスト付", + "image-text4": "画像4列テキスト付", + "image-text5": "画像5列テキスト付", + "image-link-text2": "画像2列リンク・テキスト付", + "image-link-text3": "画像3列リンク・テキスト付", + "image-link-text4": "画像4列リンク・テキスト付", + "image-link-text5": "画像5列リンク・テキスト付" + }, + "ボタン": { + "button": "ボタン", + "button2": "ボタン x2", + "button3": "ボタン x3", + "download-file": "ファイル
ダウンロード", + "download-file2": "ファイル
ダウンロード x2", + "download-file3": "ファイル
ダウンロード x3" + }, + "その他": { + "table": "2カラムテーブル", + "google-maps": "GoogleMaps", + "youtube": "YouTube", + "embed": "埋め込みタグscript / form", + "hr": "区切り線" + } + }, + "bg-block-config": { + }, + "ckeditor-config": { + "toolbar": [ + ["Source", "ShowBlocks"], + ['Templates'], + ["NumberedList", "BulletedList", "Outdent", "Indent", "Blockquote"], + ["Bold", "Underline", "Strike", "Subscript", "Superscript"], + ["JustifyLeft", "JustifyCenter", "JustifyRight"], + ["Link", "Unlink", "Anchor"], + ["Table", "HorizontalRule", "Nbsp"], + ["Styles"], + ["FontSize"], + ["TextColor", "BGColor"] + ], + "stylesSet": [ + { "name": "標準", "element": "p"}, + { "name": "中見出し(Lv.3)", "element": "h3"}, + { "name": "小見出し(Lv.4)", "element": "h4"}, + { "name": "小見出し(Lv.5)", "element": "h5"}, + { "name": "小見出し(Lv.6)", "element": "h6"}, + { "name": "ボタン(茶)", "element": "a", "attributes": { "role": "button", "class": "btn-inline" } }, + { "name": "ボタン(緑)", "element": "a", "attributes": { "role": "button", "class": "btn-inline--green" } }, + { "name": "ボタン(黒)", "element": "a", "attributes": { "role": "button", "class": "btn-inline--black" } }, + { "name": "ボタン(赤)", "element": "a", "attributes": { "role": "button", "class": "btn-inline--red" } } + ] + } +} diff --git a/plugins/bc-burger-editor/composer.json b/plugins/bc-burger-editor/composer.json new file mode 100644 index 0000000000..79fa9ffed0 --- /dev/null +++ b/plugins/bc-burger-editor/composer.json @@ -0,0 +1,18 @@ +{ + "name": "baserproject/bc-burger-editor", + "description": "BcBurgerEditor plugin for baserCMS", + "homepage": "https://basercms.net", + "type": "cakephp-plugin", + "license": "MIT", + "vendor-dir": "../../vendor", + "autoload": { + "psr-4": { + "BcBurgerEditor\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "BcBurgerEditor\\Test\\": "tests/" + } + } +} diff --git a/plugins/bc-burger-editor/config.php b/plugins/bc-burger-editor/config.php new file mode 100755 index 0000000000..3fe89c9957 --- /dev/null +++ b/plugins/bc-burger-editor/config.php @@ -0,0 +1,18 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ +return [ + 'type' => 'Plugin', + 'title' => 'BurgerEditor', + 'description' => '写真もテキストも動画もGoogleマップも簡単レイアウト。積み上げ式エディタープラグイン。システム管理メニューよりエディタタイプが選択可能です。', + 'author' => 'NPO baser foundation', + 'url' => 'https://baserfoundation.org/', + 'installMessage' => 'インストール後自動的にシステムのエディタ設定がBurgerEditorに変更されます。' +]; diff --git a/plugins/bc-burger-editor/config/setting.php b/plugins/bc-burger-editor/config/setting.php new file mode 100755 index 0000000000..2276e35c24 --- /dev/null +++ b/plugins/bc-burger-editor/config/setting.php @@ -0,0 +1,64 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ + +use Cake\Utility\Hash; + +$config = [ + 'BcApp' => [ + 'editors' => ['BcBurgerEditor.BurgerEditor' => 'BurgerEditor'] + ], + 'BcShortCode' => [ + 'BcBurgerEditor' => [ + 'BurgerEditor.preventLoadingStyle' + ] + ], + 'Bge' => [ + // ログインユーザに関わらずアップロードファイルを共有する + 'fileShare' => true, + // 自動的に bge-contentsクラスを付与する + 'autoWrapper' => true, + // 画像タイプのポップアップ選択設定を初期値onにする + 'defaultImagePopup' => true, + // リサイズしない拡張子指定 + 'noResizeExtension' => [ + 'gif' + ], + 'uploadImageSize' => [ + 'imgSizeWidthMax' => 2400, + 'imgSizeWidthDefault' => 1200, + 'imgSizeWidthSmall' => 600, + ], + // (1024 * 1024 * 10)アップロード可能な最大サイズ10MB + 'uploadImageDataSize' => 10485760, + // 画像以外のアップロード可能な最大サイズ10MB + 'uploadFileDataSize' => 10485760, + // 画像リサイズ時の圧縮レベル + 'uploadImageQuality' => [ + IMAGETYPE_JPEG => 90, // JPEG: 0 から 100 を指定 + IMAGETYPE_PNG => 6, // PNG: 0 から 9 を指定 + ], + // cssに対するサフィックスを付与 + 'enableStaticFileSuffix' => false, + // サフィックスに追加する文字列 + 'staticFileSuffix' => '', + // Addon を提供するプラグインを配列で指定 + // プラグインの直下に「BurgerAddon」というフォルダに Addon を配置する + 'enableAddonPlugin' => [], + // システム管理者によるアップロードでいかなる拡張子も許可する + 'allowedAdmin' => false, + // システム管理者グループ以外のユーザーがアップロード可能なファイル(拡張子をカンマ区切りで指定する) + 'allowedExt' => 'gif,jpg,jpeg,png,ico,pdf,zip,doc,docx,xls,xlsx,ppt,pptx,txt', + // 保存対象のターゲットとなるフィールド + 'targetColumns' => ['content', 'content_draft', 'detail', 'detail_draft'] + ] +]; + +return $config; diff --git a/plugins/bc-burger-editor/libs/CUSTOMIZE.txt b/plugins/bc-burger-editor/libs/CUSTOMIZE.txt new file mode 100644 index 0000000000..d9218649f0 --- /dev/null +++ b/plugins/bc-burger-editor/libs/CUSTOMIZE.txt @@ -0,0 +1,3 @@ +2020/07/15 kato php5.3環境下で動作するようにexplode(~)を一時変数に格納する +2019/09/05 simple_html_domのバージョンアップに伴い再カスタマイズ +2016/02/09 GONDOH baserCMSのメールフォームのvalue値が自動的に改行を削除されてしまう問題の修正 diff --git a/plugins/bc-burger-editor/libs/simple_html_dom.php b/plugins/bc-burger-editor/libs/simple_html_dom.php new file mode 100755 index 0000000000..f5f295889a --- /dev/null +++ b/plugins/bc-burger-editor/libs/simple_html_dom.php @@ -0,0 +1,2356 @@ + $maxLen) { + $dom->clear(); + return false; + } + + return $dom->load($contents, $lowercase, $stripRN); +} + +function str_get_html( + $str, + $lowercase = true, + $forceTagsClosed = true, + $target_charset = DEFAULT_TARGET_CHARSET, + $stripRN = true, + $defaultBRText = DEFAULT_BR_TEXT, + $defaultSpanText = DEFAULT_SPAN_TEXT) +{ + $dom = new simple_html_dom( + null, + $lowercase, + $forceTagsClosed, + $target_charset, + $stripRN, + $defaultBRText, + $defaultSpanText + ); + + if (empty($str) || strlen($str) > MAX_FILE_SIZE) { + $dom->clear(); + return false; + } + + return $dom->load($str, $lowercase, $stripRN); +} + +function dump_html_tree($node, $show_attr = true, $deep = 0) +{ + $node->dump($node); +} + +class simple_html_dom_node +{ + public $nodetype = HDOM_TYPE_TEXT; + public $tag = 'text'; + public $attr = array(); + public $children = array(); + public $nodes = array(); + public $parent = null; + public $_ = array(); + public $tag_start = 0; + private $dom = null; + + function __construct($dom) + { + $this->dom = $dom; + $dom->nodes[] = $this; + } + + function __destruct() + { + $this->clear(); + } + + function __toString() + { + return $this->outertext(); + } + + function clear() + { + $this->dom = null; + $this->nodes = null; + $this->parent = null; + $this->children = null; + } + + function dump($show_attr = true, $depth = 0) + { + echo str_repeat("\t", $depth) . $this->tag; + + if ($show_attr && count($this->attr) > 0) { + echo '('; + foreach ($this->attr as $k => $v) { + echo "[$k]=>\"$v\", "; + } + echo ')'; + } + + echo "\n"; + + if ($this->nodes) { + foreach ($this->nodes as $node) { + $node->dump($show_attr, $depth + 1); + } + } + } + + function dump_node($echo = true) + { + $string = $this->tag; + + if (count($this->attr) > 0) { + $string .= '('; + foreach ($this->attr as $k => $v) { + $string .= "[$k]=>\"$v\", "; + } + $string .= ')'; + } + + if (count($this->_) > 0) { + $string .= ' $_ ('; + foreach ($this->_ as $k => $v) { + if (is_array($v)) { + $string .= "[$k]=>("; + foreach ($v as $k2 => $v2) { + $string .= "[$k2]=>\"$v2\", "; + } + $string .= ')'; + } else { + $string .= "[$k]=>\"$v\", "; + } + } + $string .= ')'; + } + + if (isset($this->text)) { + $string .= " text: ({$this->text})"; + } + + $string .= ' HDOM_INNER_INFO: '; + + if (isset($node->_[HDOM_INFO_INNER])) { + $string .= "'" . $node->_[HDOM_INFO_INNER] . "'"; + } else { + $string .= ' NULL '; + } + + $string .= ' children: ' . count($this->children); + $string .= ' nodes: ' . count($this->nodes); + $string .= ' tag_start: ' . $this->tag_start; + $string .= "\n"; + + if ($echo) { + echo $string; + return; + } else { + return $string; + } + } + + function parent($parent = null) + { + // I am SURE that this doesn't work properly. + // It fails to unset the current node from it's current parents nodes or + // children list first. + if ($parent !== null) { + $this->parent = $parent; + $this->parent->nodes[] = $this; + $this->parent->children[] = $this; + } + + return $this->parent; + } + + function has_child() + { + return !empty($this->children); + } + + function children($idx = -1) + { + if ($idx === -1) { + return $this->children; + } + + if (isset($this->children[$idx])) { + return $this->children[$idx]; + } + + return null; + } + + function first_child() + { + if (count($this->children) > 0) { + return $this->children[0]; + } + return null; + } + + function last_child() + { + if (count($this->children) > 0) { + return end($this->children); + } + return null; + } + + function next_sibling() + { + if ($this->parent === null) { + return null; + } + + $idx = array_search($this, $this->parent->children, true); + + if ($idx !== false && isset($this->parent->children[$idx + 1])) { + return $this->parent->children[$idx + 1]; + } + + return null; + } + + function prev_sibling() + { + if ($this->parent === null) { + return null; + } + + $idx = array_search($this, $this->parent->children, true); + + if ($idx !== false && $idx > 0) { + return $this->parent->children[$idx - 1]; + } + + return null; + } + + function find_ancestor_tag($tag) + { + global $debug_object; + if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } + + if ($this->parent === null) { + return null; + } + + $ancestor = $this->parent; + + while (!is_null($ancestor)) { + if (is_object($debug_object)) { + $debug_object->debug_log(2, 'Current tag is: ' . $ancestor->tag); + } + + if ($ancestor->tag === $tag) { + break; + } + + $ancestor = $ancestor->parent; + } + + return $ancestor; + } + + function innertext() + { + if (isset($this->_[HDOM_INFO_INNER])) { + return $this->_[HDOM_INFO_INNER]; + } + + if (isset($this->_[HDOM_INFO_TEXT])) { + return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); + } + + $ret = ''; + + foreach ($this->nodes as $n) { + $ret .= $n->outertext(); + } + + return $ret; + } + + function outertext() + { + global $debug_object; + + if (is_object($debug_object)) { + $text = ''; + + if ($this->tag === 'text') { + if (!empty($this->text)) { + $text = ' with text: ' . $this->text; + } + } + + $debug_object->debug_log(1, 'Innertext of tag: ' . $this->tag . $text); + } + + if ($this->tag === 'root') { + return $this->innertext(); + } + + // todo: What is the use of this callback? Remove? + if ($this->dom && $this->dom->callback !== null) { + call_user_func_array($this->dom->callback, array($this)); + } + + if (isset($this->_[HDOM_INFO_OUTER])) { + return $this->_[HDOM_INFO_OUTER]; + } + + if (isset($this->_[HDOM_INFO_TEXT])) { + return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); + } + + $ret = ''; + + if ($this->dom && $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]) { + $ret = $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]->makeup(); + } + + if (isset($this->_[HDOM_INFO_INNER])) { + // todo:
should either never have HDOM_INFO_INNER or always + if ($this->tag !== 'br') { + $ret .= $this->_[HDOM_INFO_INNER]; + } + } elseif ($this->nodes) { + foreach ($this->nodes as $n) { + $ret .= $this->convert_text($n->outertext()); + } + } + + if (isset($this->_[HDOM_INFO_END]) && $this->_[HDOM_INFO_END] != 0) { + $ret .= 'tag . '>'; + } + + return $ret; + } + + function text() + { + if (isset($this->_[HDOM_INFO_INNER])) { + return $this->_[HDOM_INFO_INNER]; + } + + switch ($this->nodetype) { + case HDOM_TYPE_TEXT: return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); + case HDOM_TYPE_COMMENT: return ''; + case HDOM_TYPE_UNKNOWN: return ''; + } + + if (strcasecmp($this->tag, 'script') === 0) { return ''; } + if (strcasecmp($this->tag, 'style') === 0) { return ''; } + + $ret = ''; + + // In rare cases, (always node type 1 or HDOM_TYPE_ELEMENT - observed + // for some span tags, and some p tags) $this->nodes is set to NULL. + // NOTE: This indicates that there is a problem where it's set to NULL + // without a clear happening. + // WHY is this happening? + if (!is_null($this->nodes)) { + foreach ($this->nodes as $n) { + // Start paragraph after a blank line + if ($n->tag === 'p') { + $ret = trim($ret) . "\n\n"; + } + + $ret .= $this->convert_text($n->text()); + + // If this node is a span... add a space at the end of it so + // multiple spans don't run into each other. This is plaintext + // after all. + if ($n->tag === 'span') { + $ret .= $this->dom->default_span_text; + } + } + } + return $ret; + } + + function xmltext() + { + $ret = $this->innertext(); + $ret = str_ireplace('', '', $ret); + return $ret; + } + + function makeup() + { + // text, comment, unknown + if (isset($this->_[HDOM_INFO_TEXT])) { + return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); + } + + $ret = '<' . $this->tag; + $i = -1; + + foreach ($this->attr as $key => $val) { + ++$i; + + // skip removed attribute + if ($val === null || $val === false) { continue; } + + $ret .= $this->_[HDOM_INFO_SPACE][$i][0]; + + //no value attr: nowrap, checked selected... + if ($val === true) { + $ret .= $key; + } else { + switch ($this->_[HDOM_INFO_QUOTE][$i]) + { + case HDOM_QUOTE_DOUBLE: $quote = '"'; break; + case HDOM_QUOTE_SINGLE: $quote = '\''; break; + default: $quote = ''; + } + + $ret .= $key + . $this->_[HDOM_INFO_SPACE][$i][1] + . '=' + . $this->_[HDOM_INFO_SPACE][$i][2] + . $quote + . $val + . $quote; + } + } + + $ret = $this->dom->restore_noise($ret); + return $ret . $this->_[HDOM_INFO_ENDSPACE] . '>'; + } + + function find($selector, $idx = null, $lowercase = false) + { + $selectors = $this->parse_selector($selector); + if (($count = count($selectors)) === 0) { return array(); } + $found_keys = array(); + + // find each selector + for ($c = 0; $c < $count; ++$c) { + // The change on the below line was documented on the sourceforge + // code tracker id 2788009 + // used to be: if (($levle=count($selectors[0]))===0) return array(); + if (($levle = count($selectors[$c])) === 0) { return array(); } + if (!isset($this->_[HDOM_INFO_BEGIN])) { return array(); } + + $head = array($this->_[HDOM_INFO_BEGIN] => 1); + $cmd = ' '; // Combinator + + // handle descendant selectors, no recursive! + for ($l = 0; $l < $levle; ++$l) { + $ret = array(); + + foreach ($head as $k => $v) { + $n = ($k === -1) ? $this->dom->root : $this->dom->nodes[$k]; + //PaperG - Pass this optional parameter on to the seek function. + $n->seek($selectors[$c][$l], $ret, $cmd, $lowercase); + } + + $head = $ret; + $cmd = $selectors[$c][$l][4]; // Next Combinator + } + + foreach ($head as $k => $v) { + if (!isset($found_keys[$k])) { + $found_keys[$k] = 1; + } + } + } + + // sort keys + ksort($found_keys); + + $found = array(); + foreach ($found_keys as $k => $v) { + $found[] = $this->dom->nodes[$k]; + } + + // return nth-element or array + if (is_null($idx)) { return $found; } + elseif ($idx < 0) { $idx = count($found) + $idx; } + return (isset($found[$idx])) ? $found[$idx] : null; + } + + protected function seek($selector, &$ret, $parent_cmd, $lowercase = false) + { + global $debug_object; + if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } + + list($tag, $id, $class, $attributes, $cmb) = $selector; + $nodes = array(); + + if ($parent_cmd === ' ') { // Descendant Combinator + // Find parent closing tag if the current element doesn't have a closing + // tag (i.e. void element) + $end = (!empty($this->_[HDOM_INFO_END])) ? $this->_[HDOM_INFO_END] : 0; + if ($end == 0) { + $parent = $this->parent; + while (!isset($parent->_[HDOM_INFO_END]) && $parent !== null) { + $end -= 1; + $parent = $parent->parent; + } + $end += $parent->_[HDOM_INFO_END]; + } + + // Get list of target nodes + $nodes_start = $this->_[HDOM_INFO_BEGIN] + 1; + $nodes_count = $end - $nodes_start; + $nodes = array_slice($this->dom->nodes, $nodes_start, $nodes_count, true); + } elseif ($parent_cmd === '>') { // Child Combinator + $nodes = $this->children; + } elseif ($parent_cmd === '+' + && $this->parent + && in_array($this, $this->parent->children)) { // Next-Sibling Combinator + $index = array_search($this, $this->parent->children, true) + 1; + if ($index < count($this->parent->children)) + $nodes[] = $this->parent->children[$index]; + } elseif ($parent_cmd === '~' + && $this->parent + && in_array($this, $this->parent->children)) { // Subsequent Sibling Combinator + $index = array_search($this, $this->parent->children, true); + $nodes = array_slice($this->parent->children, $index); + } + + // Go throgh each element starting at this element until the end tag + // Note: If this element is a void tag, any previous void element is + // skipped. + foreach($nodes as $node) { + $pass = true; + + // Skip root nodes + if(!$node->parent) { + $pass = false; + } + + // Skip if node isn't a child node (i.e. text nodes) + if($pass && !in_array($node, $node->parent->children, true)) { + $pass = false; + } + + // Skip if tag doesn't match + if ($pass && $tag !== '' && $tag !== $node->tag && $tag !== '*') { + $pass = false; + } + + // Skip if ID doesn't exist + if ($pass && $id !== '' && !isset($node->attr['id'])) { + $pass = false; + } + + // Check if ID matches + if ($pass && $id !== '' && isset($node->attr['id'])) { + // Note: Only consider the first ID (as browsers do) + // >>> CUSTOMIZE ADD kato 2020/07/15 - php5.3環境下で動作するようにexplode(~)を一時変数に格納する + $arr_node_id = explode(' ', trim($node->attr['id'])); + $node_id = $arr_node_id[0]; + // <<< + + if($id !== $node_id) { $pass = false; } + } + + // Check if all class(es) exist + if ($pass && $class !== '' && is_array($class) && !empty($class)) { + if (isset($node->attr['class'])) { + $node_classes = explode(' ', $node->attr['class']); + + if ($lowercase) { + $node_classes = array_map('strtolower', $node_classes); + } + + foreach($class as $c) { + if(!in_array($c, $node_classes)) { + $pass = false; + break; + } + } + } else { + $pass = false; + } + } + + // Check attributes + if ($pass + && $attributes !== '' + && is_array($attributes) + && !empty($attributes)) { + foreach($attributes as $a) { + list ( + $att_name, + $att_expr, + $att_val, + $att_inv, + $att_case_sensitivity + ) = $a; + + // Handle indexing attributes (i.e. "[2]") + /** + * Note: This is not supported by the CSS Standard but adds + * the ability to select items compatible to XPath (i.e. + * the 3rd element within it's parent). + * + * Note: This doesn't conflict with the CSS Standard which + * doesn't work on numeric attributes anyway. + */ + if (is_numeric($att_name) + && $att_expr === '' + && $att_val === '') { + $count = 0; + + // Find index of current element in parent + foreach ($node->parent->children as $c) { + if ($c->tag === $node->tag) ++$count; + if ($c === $node) break; + } + + // If this is the correct node, continue with next + // attribute + if ($count === (int)$att_name) continue; + } + + // Check attribute availability + if ($att_inv) { // Attribute should NOT be set + if (isset($node->attr[$att_name])) { + $pass = false; + break; + } + } else { // Attribute should be set + // todo: "plaintext" is not a valid CSS selector! + if ($att_name !== 'plaintext' + && !isset($node->attr[$att_name])) { + $pass = false; + break; + } + } + + // Continue with next attribute if expression isn't defined + if ($att_expr === '') continue; + + // If they have told us that this is a "plaintext" + // search then we want the plaintext of the node - right? + // todo "plaintext" is not a valid CSS selector! + if ($att_name === 'plaintext') { + $nodeKeyValue = $node->text(); + } else { + $nodeKeyValue = $node->attr[$att_name]; + } + + if (is_object($debug_object)) { + $debug_object->debug_log(2, + 'testing node: ' + . $node->tag + . ' for attribute: ' + . $att_name + . $att_expr + . $att_val + . ' where nodes value is: ' + . $nodeKeyValue + ); + } + + // If lowercase is set, do a case insensitive test of + // the value of the selector. + if ($lowercase) { + $check = $this->match( + $att_expr, + strtolower($att_val), + strtolower($nodeKeyValue), + $att_case_sensitivity + ); + } else { + $check = $this->match( + $att_expr, + $att_val, + $nodeKeyValue, + $att_case_sensitivity + ); + } + + if (is_object($debug_object)) { + $debug_object->debug_log(2, + 'after match: ' + . ($check ? 'true' : 'false') + ); + } + + if (!$check) { + $pass = false; + break; + } + } + } + + // Found a match. Add to list and clear node + if ($pass) $ret[$node->_[HDOM_INFO_BEGIN]] = 1; + unset($node); + } + // It's passed by reference so this is actually what this function returns. + if (is_object($debug_object)) { + $debug_object->debug_log(1, 'EXIT - ret: ', $ret); + } + } + + protected function match($exp, $pattern, $value, $case_sensitivity) + { + global $debug_object; + if (is_object($debug_object)) {$debug_object->debug_log_entry(1);} + + if ($case_sensitivity === 'i') { + $pattern = strtolower($pattern); + $value = strtolower($value); + } + + switch ($exp) { + case '=': + return ($value === $pattern); + case '!=': + return ($value !== $pattern); + case '^=': + return preg_match('/^' . preg_quote($pattern, '/') . '/', $value); + case '$=': + return preg_match('/' . preg_quote($pattern, '/') . '$/', $value); + case '*=': + return preg_match('/' . preg_quote($pattern, '/') . '/', $value); + case '|=': + /** + * [att|=val] + * + * Represents an element with the att attribute, its value + * either being exactly "val" or beginning with "val" + * immediately followed by "-" (U+002D). + */ + return strpos($value, $pattern) === 0; + case '~=': + /** + * [att~=val] + * + * Represents an element with the att attribute whose value is a + * whitespace-separated list of words, one of which is exactly + * "val". If "val" contains whitespace, it will never represent + * anything (since the words are separated by spaces). Also if + * "val" is the empty string, it will never represent anything. + */ + return in_array($pattern, explode(' ', trim($value)), true); + } + return false; + } + + protected function parse_selector($selector_string) + { + global $debug_object; + if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } + + /** + * Pattern of CSS selectors, modified from mootools (https://mootools.net/) + * + * Paperg: Add the colon to the attribute, so that it properly finds + * like google does. + * + * Note: if you try to look at this attribute, you MUST use getAttribute + * since $dom->x:y will fail the php syntax check. + * + * Notice the \[ starting the attribute? and the @? following? This + * implies that an attribute can begin with an @ sign that is not + * captured. This implies that an html attribute specifier may start + * with an @ sign that is NOT captured by the expression. Farther study + * is required to determine of this should be documented or removed. + * + * Matches selectors in this order: + * + * [0] - full match + * + * [1] - tag name + * ([\w:\*-]*) + * Matches the tag name consisting of zero or more words, colons, + * asterisks and hyphens. + * + * [2] - id name + * (?:\#([\w-]+)) + * Optionally matches a id name, consisting of an "#" followed by + * the id name (one or more words and hyphens). + * + * [3] - class names (including dots) + * (?:\.([\w\.-]+))? + * Optionally matches a list of classs, consisting of an "." + * followed by the class name (one or more words and hyphens) + * where multiple classes can be chained (i.e. ".foo.bar.baz") + * + * [4] - attributes + * ((?:\[@?(?:!?[\w:-]+)(?:(?:[!*^$|~]?=)[\"']?(?:.*?)[\"']?)?(?:\s*?(?:[iIsS])?)?\])+)? + * Optionally matches the attributes list + * + * [5] - separator + * ([\/, >+~]+) + * Matches the selector list separator + */ + // phpcs:ignore Generic.Files.LineLength + $pattern = "/([\w:\*-]*)(?:\#([\w-]+))?(?:|\.([\w\.-]+))?((?:\[@?(?:!?[\w:-]+)(?:(?:[!*^$|~]?=)[\"']?(?:.*?)[\"']?)?(?:\s*?(?:[iIsS])?)?\])+)?([\/, >+~]+)/is"; + + preg_match_all( + $pattern, + trim($selector_string) . ' ', // Add final ' ' as pseudo separator + $matches, + PREG_SET_ORDER + ); + + if (is_object($debug_object)) { + $debug_object->debug_log(2, 'Matches Array: ', $matches); + } + + $selectors = array(); + $result = array(); + + foreach ($matches as $m) { + $m[0] = trim($m[0]); + + // Skip NoOps + if ($m[0] === '' || $m[0] === '/' || $m[0] === '//') { continue; } + + // Convert to lowercase + if ($this->dom->lowercase) { + $m[1] = strtolower($m[1]); + } + + // Extract classes + if ($m[3] !== '') { $m[3] = explode('.', $m[3]); } + + /* Extract attributes (pattern based on the pattern above!) + + * [0] - full match + * [1] - attribute name + * [2] - attribute expression + * [3] - attribute value + * [4] - case sensitivity + * + * Note: Attributes can be negated with a "!" prefix to their name + */ + if($m[4] !== '') { + preg_match_all( + "/\[@?(!?[\w:-]+)(?:([!*^$|~]?=)[\"']?(.*?)[\"']?)?(?:\s+?([iIsS])?)?\]/is", + trim($m[4]), + $attributes, + PREG_SET_ORDER + ); + + // Replace element by array + $m[4] = array(); + + foreach($attributes as $att) { + // Skip empty matches + if(trim($att[0]) === '') { continue; } + + $inverted = (isset($att[1][0]) && $att[1][0] === '!'); + $m[4][] = array( + $inverted ? substr($att[1], 1) : $att[1], // Name + (isset($att[2])) ? $att[2] : '', // Expression + (isset($att[3])) ? $att[3] : '', // Value + $inverted, // Inverted Flag + (isset($att[4])) ? strtolower($att[4]) : '', // Case-Sensitivity + ); + } + } + + // Sanitize Separator + if ($m[5] !== '' && trim($m[5]) === '') { // Descendant Separator + $m[5] = ' '; + } else { // Other Separator + $m[5] = trim($m[5]); + } + + // Clear Separator if it's a Selector List + if ($is_list = ($m[5] === ',')) { $m[5] = ''; } + + // Remove full match before adding to results + array_shift($m); + $result[] = $m; + + if ($is_list) { // Selector List + $selectors[] = $result; + $result = array(); + } + } + + if (count($result) > 0) { $selectors[] = $result; } + return $selectors; + } + + function __get($name) + { + if (isset($this->attr[$name])) { + return $this->convert_text($this->attr[$name]); + } + switch ($name) { + case 'outertext': return $this->outertext(); + case 'innertext': return $this->innertext(); + case 'plaintext': return $this->text(); + case 'xmltext': return $this->xmltext(); + default: return array_key_exists($name, $this->attr); + } + } + + function __set($name, $value) + { + global $debug_object; + if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } + + switch ($name) { + case 'outertext': return $this->_[HDOM_INFO_OUTER] = $value; + case 'innertext': + if (isset($this->_[HDOM_INFO_TEXT])) { + return $this->_[HDOM_INFO_TEXT] = $value; + } + return $this->_[HDOM_INFO_INNER] = $value; + } + + if (!isset($this->attr[$name])) { + $this->_[HDOM_INFO_SPACE][] = array(' ', '', ''); + $this->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_DOUBLE; + } + + $this->attr[$name] = $value; + } + + function __isset($name) + { + switch ($name) { + case 'outertext': return true; + case 'innertext': return true; + case 'plaintext': return true; + } + //no value attr: nowrap, checked selected... + return (array_key_exists($name, $this->attr)) ? true : isset($this->attr[$name]); + } + + function __unset($name) + { + if (isset($this->attr[$name])) { unset($this->attr[$name]); } + } + + function convert_text($text) + { + global $debug_object; + if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } + + $converted_text = $text; + + $sourceCharset = ''; + $targetCharset = ''; + + if ($this->dom) { + $sourceCharset = strtoupper($this->dom->_charset); + $targetCharset = strtoupper($this->dom->_target_charset); + } + + if (is_object($debug_object)) { + $debug_object->debug_log(3, + 'source charset: ' + . $sourceCharset + . ' target charaset: ' + . $targetCharset + ); + } + + if (!empty($sourceCharset) + && !empty($targetCharset) + && (strcasecmp($sourceCharset, $targetCharset) != 0)) { + // Check if the reported encoding could have been incorrect and the text is actually already UTF-8 + if ((strcasecmp($targetCharset, 'UTF-8') == 0) + && ($this->is_utf8($text))) { + $converted_text = $text; + } else { + $converted_text = iconv($sourceCharset, $targetCharset, $text); + } + } + + // Lets make sure that we don't have that silly BOM issue with any of the utf-8 text we output. + if ($targetCharset === 'UTF-8') { + if (substr($converted_text, 0, 3) === "\xef\xbb\xbf") { + $converted_text = substr($converted_text, 3); + } + + if (substr($converted_text, -3) === "\xef\xbb\xbf") { + $converted_text = substr($converted_text, 0, -3); + } + } + + return $converted_text; + } + + static function is_utf8($str) + { + $c = 0; $b = 0; + $bits = 0; + $len = strlen($str); + for($i = 0; $i < $len; $i++) { + $c = ord($str[$i]); + if($c > 128) { + if(($c >= 254)) { return false; } + elseif($c >= 252) { $bits = 6; } + elseif($c >= 248) { $bits = 5; } + elseif($c >= 240) { $bits = 4; } + elseif($c >= 224) { $bits = 3; } + elseif($c >= 192) { $bits = 2; } + else { return false; } + if(($i + $bits) > $len) { return false; } + while($bits > 1) { + $i++; + $b = ord($str[$i]); + if($b < 128 || $b > 191) { return false; } + $bits--; + } + } + } + return true; + } + + function get_display_size() + { + global $debug_object; + + $width = -1; + $height = -1; + + if ($this->tag !== 'img') { + return false; + } + + // See if there is aheight or width attribute in the tag itself. + if (isset($this->attr['width'])) { + $width = $this->attr['width']; + } + + if (isset($this->attr['height'])) { + $height = $this->attr['height']; + } + + // Now look for an inline style. + if (isset($this->attr['style'])) { + // Thanks to user gnarf from stackoverflow for this regular expression. + $attributes = array(); + + preg_match_all( + '/([\w-]+)\s*:\s*([^;]+)\s*;?/', + $this->attr['style'], + $matches, + PREG_SET_ORDER + ); + + foreach ($matches as $match) { + $attributes[$match[1]] = $match[2]; + } + + // If there is a width in the style attributes: + if (isset($attributes['width']) && $width == -1) { + // check that the last two characters are px (pixels) + if (strtolower(substr($attributes['width'], -2)) === 'px') { + $proposed_width = substr($attributes['width'], 0, -2); + // Now make sure that it's an integer and not something stupid. + if (filter_var($proposed_width, FILTER_VALIDATE_INT)) { + $width = $proposed_width; + } + } + } + + // If there is a width in the style attributes: + if (isset($attributes['height']) && $height == -1) { + // check that the last two characters are px (pixels) + if (strtolower(substr($attributes['height'], -2)) == 'px') { + $proposed_height = substr($attributes['height'], 0, -2); + // Now make sure that it's an integer and not something stupid. + if (filter_var($proposed_height, FILTER_VALIDATE_INT)) { + $height = $proposed_height; + } + } + } + + } + + // Future enhancement: + // Look in the tag to see if there is a class or id specified that has + // a height or width attribute to it. + + // Far future enhancement + // Look at all the parent tags of this image to see if they specify a + // class or id that has an img selector that specifies a height or width + // Note that in this case, the class or id will have the img subselector + // for it to apply to the image. + + // ridiculously far future development + // If the class or id is specified in a SEPARATE css file thats not on + // the page, go get it and do what we were just doing for the ones on + // the page. + + $result = array( + 'height' => $height, + 'width' => $width + ); + + return $result; + } + + function save($filepath = '') + { + $ret = $this->outertext(); + + if ($filepath !== '') { + file_put_contents($filepath, $ret, LOCK_EX); + } + + return $ret; + } + + function addClass($class) + { + if (is_string($class)) { + $class = explode(' ', $class); + } + + if (is_array($class)) { + foreach($class as $c) { + if (isset($this->class)) { + if ($this->hasClass($c)) { + continue; + } else { + $this->class .= ' ' . $c; + } + } else { + $this->class = $c; + } + } + } else { + if (is_object($debug_object)) { + $debug_object->debug_log(2, 'Invalid type: ', gettype($class)); + } + } + } + + function hasClass($class) + { + if (is_string($class)) { + if (isset($this->class)) { + return in_array($class, explode(' ', $this->class), true); + } + } else { + if (is_object($debug_object)) { + $debug_object->debug_log(2, 'Invalid type: ', gettype($class)); + } + } + + return false; + } + + function removeClass($class = null) + { + if (!isset($this->class)) { + return; + } + + if (is_null($class)) { + $this->removeAttribute('class'); + return; + } + + if (is_string($class)) { + $class = explode(' ', $class); + } + + if (is_array($class)) { + $class = array_diff(explode(' ', $this->class), $class); + if (empty($class)) { + $this->removeAttribute('class'); + } else { + $this->class = implode(' ', $class); + } + } + } + + function getAllAttributes() + { + return $this->attr; + } + + function getAttribute($name) + { + return $this->__get($name); + } + + function setAttribute($name, $value) + { + $this->__set($name, $value); + } + + function hasAttribute($name) + { + return $this->__isset($name); + } + + function removeAttribute($name) + { + $this->__set($name, null); + } + + function remove() + { + if ($this->parent) { + $this->parent->removeChild($this); + } + } + + function removeChild($node) + { + $nidx = array_search($node, $this->nodes, true); + $cidx = array_search($node, $this->children, true); + $didx = array_search($node, $this->dom->nodes, true); + + if ($nidx !== false && $cidx !== false && $didx !== false) { + + foreach($node->children as $child) { + $node->removeChild($child); + } + + foreach($node->nodes as $entity) { + $enidx = array_search($entity, $node->nodes, true); + $edidx = array_search($entity, $node->dom->nodes, true); + + if ($enidx !== false && $edidx !== false) { + unset($node->nodes[$enidx]); + unset($node->dom->nodes[$edidx]); + } + } + + unset($this->nodes[$nidx]); + unset($this->children[$cidx]); + unset($this->dom->nodes[$didx]); + + $node->clear(); + + } + } + + function getElementById($id) + { + return $this->find("#$id", 0); + } + + function getElementsById($id, $idx = null) + { + return $this->find("#$id", $idx); + } + + function getElementByTagName($name) + { + return $this->find($name, 0); + } + + function getElementsByTagName($name, $idx = null) + { + return $this->find($name, $idx); + } + + function parentNode() + { + return $this->parent(); + } + + function childNodes($idx = -1) + { + return $this->children($idx); + } + + function firstChild() + { + return $this->first_child(); + } + + function lastChild() + { + return $this->last_child(); + } + + function nextSibling() + { + return $this->next_sibling(); + } + + function previousSibling() + { + return $this->prev_sibling(); + } + + function hasChildNodes() + { + return $this->has_child(); + } + + function nodeName() + { + return $this->tag; + } + + function appendChild($node) + { + $node->parent($this); + return $node; + } + +} + +class simple_html_dom +{ + public $root = null; + public $nodes = array(); + public $callback = null; + public $lowercase = false; + public $original_size; + public $size; + + protected $pos; + protected $doc; + protected $char; + + protected $cursor; + protected $parent; + protected $noise = array(); + protected $token_blank = " \t\r\n"; + protected $token_equal = ' =/>'; + protected $token_slash = " />\r\n\t"; + protected $token_attr = ' >'; + + public $_charset = ''; + public $_target_charset = ''; + + protected $default_br_text = ''; + + public $default_span_text = ''; + + protected $self_closing_tags = array( + 'area' => 1, + 'base' => 1, + 'br' => 1, + 'col' => 1, + 'embed' => 1, + 'hr' => 1, + 'img' => 1, + 'input' => 1, + 'link' => 1, + 'meta' => 1, + 'param' => 1, + 'source' => 1, + 'track' => 1, + 'wbr' => 1 + ); + protected $block_tags = array( + 'body' => 1, + 'div' => 1, + 'form' => 1, + 'root' => 1, + 'span' => 1, + 'table' => 1 + ); + protected $optional_closing_tags = array( + // Not optional, see + // https://www.w3.org/TR/html/textlevel-semantics.html#the-b-element + 'b' => array('b' => 1), + 'dd' => array('dd' => 1, 'dt' => 1), + // Not optional, see + // https://www.w3.org/TR/html/grouping-content.html#the-dl-element + 'dl' => array('dd' => 1, 'dt' => 1), + 'dt' => array('dd' => 1, 'dt' => 1), + 'li' => array('li' => 1), + 'optgroup' => array('optgroup' => 1, 'option' => 1), + 'option' => array('optgroup' => 1, 'option' => 1), + 'p' => array('p' => 1), + 'rp' => array('rp' => 1, 'rt' => 1), + 'rt' => array('rp' => 1, 'rt' => 1), + 'td' => array('td' => 1, 'th' => 1), + 'th' => array('td' => 1, 'th' => 1), + 'tr' => array('td' => 1, 'th' => 1, 'tr' => 1), + ); + + function __construct( + $str = null, + $lowercase = true, + $forceTagsClosed = true, + $target_charset = DEFAULT_TARGET_CHARSET, + $stripRN = true, + $defaultBRText = DEFAULT_BR_TEXT, + $defaultSpanText = DEFAULT_SPAN_TEXT, + $options = 0) + { + if ($str) { + if (preg_match('/^http:\/\//i', $str) || is_file($str)) { + $this->load_file($str); + } else { + $this->load( + $str, + $lowercase, + $stripRN, + $defaultBRText, + $defaultSpanText, + $options + ); + } + } + // Forcing tags to be closed implies that we don't trust the html, but + // it can lead to parsing errors if we SHOULD trust the html. + if (!$forceTagsClosed) { + $this->optional_closing_array = array(); + } + + $this->_target_charset = $target_charset; + } + + function __destruct() + { + $this->clear(); + } + + function load( + $str, + $lowercase = true, + $stripRN = true, + $defaultBRText = DEFAULT_BR_TEXT, + $defaultSpanText = DEFAULT_SPAN_TEXT, + $options = 0) + { + global $debug_object; + + // prepare + $this->prepare($str, $lowercase, $defaultBRText, $defaultSpanText); + + // Per sourceforge http://sourceforge.net/tracker/?func=detail&aid=2949097&group_id=218559&atid=1044037 + // Script tags removal now preceeds style tag removal. + // strip out '; + + $editorHtml .= '
'; + + $editorHtml .= $this->getView()->cell('BcBurgerEditor.BurgerEditor', [ + $inputId, + $draftId + ])->render(); + + // load読み込み + ob_start(); + foreach(self::$useType as $type) { + $typeLoadPath = BurgerEditorUtil::getTypePath($type) . 'load.php'; + if (file_exists($typeLoadPath)) { + include $typeLoadPath; + } + } + $editorHtml .= ob_get_clean(); + + $this->BcBaser->css([ + 'admin/ckeditor/editor', + 'BcBurgerEditor.admin/burger_editor' + ], false); + + $this->BcBaser->js([ + 'vendor/ckeditor/ckeditor', + 'vendor/ckeditor/adapters/jquery', + 'BcBurgerEditor.admin/burger_editor', + ], ['inline' => false]); + + // ユーザ(サイト制作者)定義CSSの自動読込 + $cssList = []; + $cssList[] = "BcBurgerEditor.bge_style_default"; + $cssList[] = self::getCSSList(); + $this->BcBaser->css($cssList, false); + return $editorHtml; + } + + /** + * ファイル名からIDを取得する + * + * @param string $fileName ファイル名 + * @return mixed (int|null) + */ + static protected function getFileId($fileName) + { + preg_match("/^(\d+)__/", $fileName, $matches); + if (isset($matches[1])) return $matches[1]; + return null; + } + + + /** + * 記事に埋め込まれた画像を表示する + * + * @param array $post blogpost + * @param array $options option + * @return string imgタグ + */ + public function postImage($post, $options = []) + { + + $imgUrl = $this->getPostImage($post, $options); + + if (empty($imgUrl)) { + return null; + } + + if (isset($options['number'])) { + unset($options['number']); + } + + + echo $this->Html->image($imgUrl, $options); + } + + /** + * 記事に埋め込まれた画像のパスを取得する(ブログにのみ対応) + * + * @param array $post blogpost + * @param array $options option + * @return string filepath + */ + public function getPostImage($post, $options = []) + { + + if (!isset($post['BlogPost']['detail']) || empty($post['BlogPost']['detail'])) { + return null; + } + + if (isset($options['number']) && !is_int($options['number'])) { + return null; + } + + + $detail = $post['BlogPost']['detail']; + $number = (isset($options['number']))? $options['number'] : 0; + $images = []; + + preg_match_all('//i', $detail, $images); + + if (!isset($images[1]) || count($images[1]) == 0) { + return null; + } + + if (isset($number) && !isset($images[1][$number])) { + return null; + } + + + return $images[1][$number]; + + } + + + /** + * 記事が所属するsiteIdから、どのテーマファイルがロードされているかを取得する + * + * @return string theme + */ + private static function getThemeByContent() + { + if(BcUtil::isAdminSystem()) { + $request = Router::getRequest(); + $site = $request->getAttribute('currentSite'); + if (!empty($site) && !empty($site->theme)) { + return $site->theme; + } else { + return ''; + } + } + + $request = Router::getRequest(); + + $controller = $request->getParam('controller'); + $action = $request->getParam('action'); + $pass = $request->getParam('pass'); + $content = $request->getAttribute('currentContent'); + + if (!in_array($controller, ['Pages', 'BlogPosts'])) return ''; + if (!in_array($action, ['add', 'edit'])) return ''; + + //固定ページの場合はsite_idを取得 + if ($controller == 'Pages' && empty($content)) { + $Content = TableRegistry::getTableLocator()->get('BaserCore.Contents'); + $entityId = $pass[0]; + $conditions = ['entity_id' => $entityId, 'type' => 'Page']; + $entity = $Content->find()->where($conditions)->first(); + $siteId = $entity->site_id; + } else { + //後々Pageの方でもCotent属性が得られるようになったらこちらの処理に自動で結合される + $siteId = $content->site_id; + } + /** @var SitesTable $Sites */ + $Sites = TableRegistry::getTableLocator()->get('BaserCore.Sites'); + $entity = $Sites->get($siteId); + + if ($entity) { + return $entity->theme; + } else { + return ''; + } + } + + /** + * スタイルの読み込みを防止する + * @return void + */ + public function preventLoadingStyle() + { + $this->loadingStyle = false; + } + + /** + * スタイルを読み込むかどうか + * @return false + */ + public function shouldLoadStyle() + { + return $this->loadingStyle; + } + + /** + * レスポンス用のファイルリストとページネーションを作成する + * @param array $fileList + * @param int $targetPage + * @param int $selectedFileId + * @param int $pageNum + * + * @return array 該当ページ分のファイルリスト(data)とページネーション情報(pagination)を含む + */ + public static function getFileListWithPagination($fileList, $targetPage, $selectedFileId, $pageNum){ + $startIndex = 0; + $currentPage = 1; + + if(is_null($targetPage) && $selectedFileId){ + // 選択済み画像ページを表示(初期表示時限定) + foreach($fileList as $key => $file){ + if($file['fileId'] === $selectedFileId){ + $currentPage = intdiv((int)$key, $pageNum) + 1; + $startIndex = ($currentPage - 1) * $pageNum; + } + } + }elseif($targetPage >= 1){ + // 指定ページを表示 + $startIndex = ($targetPage - 1) * $pageNum; + if(count($fileList) <= $startIndex){ + // ページ数分の要素がない場合は先頭ページを表示 + $startIndex = 0; + $currentPage = 1; + }else{ + $currentPage = $targetPage; + } + } + + $pageList = array_slice($fileList, $startIndex, $pageNum); + + // 最大ページ数 + $imagePaginationMaxPage = intdiv(count($fileList)-1, $pageNum) + 1; + + return [ + 'data' => $pageList, + 'pagination' => [ + 'pageMaxNumber' => $imagePaginationMaxPage, + 'currentPageNumber' => $currentPage, + 'selectedFileId' => $selectedFileId, + ], + ]; + } +} diff --git a/plugins/bc-burger-editor/templates/cell/BurgerEditor/display.php b/plugins/bc-burger-editor/templates/cell/BurgerEditor/display.php new file mode 100644 index 0000000000..21a713a48c --- /dev/null +++ b/plugins/bc-burger-editor/templates/cell/BurgerEditor/display.php @@ -0,0 +1,150 @@ + + * Copyright (c) NPO baser foundation + * + * @copyright Copyright (c) NPO baser foundation + * @link https://basercms.net baserCMS Project + * @since 5.1.0 + * @license https://basercms.net/license/index.html MIT License + */ + +/** + * 変数 + * @var array $addonDir アドオンのディレクトリを保持しています + */ + +// Addonの読み込み +use BcBurgerEditor\View\Helper\BurgerEditorHelper; + +$blockList = array(); +foreach($addonDir as $path) { + $blockPath = $path . 'block' . DS; + if ($dh = opendir($blockPath)) { + while(($file = readdir($dh)) !== false) { + if ($file == '.' || $file == '..' || !is_dir($blockPath . $file)) continue; + $blockList[] = $blockPath . $file . DS; + } + closedir($dh); + } +} + +?> + + + + + + + +
BurgerEditor->initArea(); ?>
+ + + + + + + diff --git a/plugins/bc-burger-editor/tests/TestCase/.gitkeep b/plugins/bc-burger-editor/tests/TestCase/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/bc-burger-editor/webroot/css/admin/.gitkeep b/plugins/bc-burger-editor/webroot/css/admin/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/bc-burger-editor/webroot/css/admin/burger_editor.css b/plugins/bc-burger-editor/webroot/css/admin/burger_editor.css new file mode 100644 index 0000000000..60f2ae2ef7 --- /dev/null +++ b/plugins/bc-burger-editor/webroot/css/admin/burger_editor.css @@ -0,0 +1,1335 @@ +@charset "UTF-8"; +/** ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- * + * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + * ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- **/ +@font-face { + font-family: FontAwesome; + font-style: normal; + font-weight: normal; + src: url("../../fonts/fontawesome-webfont.woff2?v=4.6.3") format("woff2"); +} +@font-face { + font-family: bge-ui-icons; + font-style: normal; + font-weight: normal; + src: url("../../fonts/icons.woff?bge") format("woff"); +} +[data-bgb]::before, [data-bgb][data-bgb-publish-datetime-range]::after, #ContentsEditArea .bge-type-table .bge-table-btn button::before, #ContentsEditArea .bge-multi-field-selection__ctrl button[data-bge-event="click:removeRow"]::before, .file-select-area .bg-upload-file .file-box::after, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-before::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-after::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-copy::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-config::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete::before { + font-style: normal; + font-weight: normal; + font-variant: normal; + line-height: 1; + text-transform: none; + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +#bg_editor_heading, +#bg_editor_setting_heading { + position: relative; + block-size: 15px; + padding: 15px 32px; + margin: 30px -20px 20px; + font-size: 15px; + line-height: 1; + color: #fff; + background: #333; + border: none; +} +#bg_editor_heading::before, +#bg_editor_setting_heading::before { + position: absolute; + inset-block-start: 15px; + inset-inline-start: 23px; + display: block; + inline-size: 3px; + block-size: 15px; + content: ""; + background: #9acd2c; +} + +.bg-editor-items { + display: none; +} + +.bg-float-right:hover { + background-color: #f9fef0 !important; +} + +.bg-float-right { + z-index: 2000; + float: inline-end !important; + background-color: #fff !important; +} + +.bg-float-left { + z-index: 2000; + float: inline-start !important; + background-color: #fff !important; +} + +.bg-float-left:hover { + background-color: #f9fef0 !important; +} + +.draft-btn { + block-size: 35px; +} +.draft-btn a { + display: inline-block; + padding: 3px 5px; + color: #333; + text-decoration: none; + background-color: #f5f5f5; + border: #cfd1cf solid 1px; +} +.draft-btn .draft-tab-btn { + float: inline-start; + text-align: start; +} +.draft-btn .draft-tab-btn a.on { + color: #fff !important; + background-color: #555 !important; + border-color: #555 !important; +} +.draft-btn .draft-tab-btn a:hover { + cursor: pointer; + background-color: #cfd1cf; +} +.draft-btn .draft-tab-btn a span { + margin-inline-start: 0.5em; + font-size: 0.8em; +} +.draft-btn .draft-tab-btn a span::before { + content: "("; +} +.draft-btn .draft-tab-btn a span::after { + content: ")"; +} +.draft-btn .draft-copy-btn { + float: inline-end; + text-align: end; +} +.draft-btn .draft-copy-btn a { + display: none; +} +.draft-btn .draft-copy-btn a.on { + display: inline-block; +} +.draft-btn .draft-copy-btn a:hover { + cursor: pointer; + background-color: #cfd1cf; +} + +#DraftArea { + text-align: start; + background-color: #eef; +} + +[data-component=ContentArea][data-component-mode=visual] iframe { + display: block; + margin: 0 auto; + overflow: hidden; + border: none; +} +[data-component=ContentArea][data-component-mode=visual] textarea { + display: none; +} +[data-component=ContentArea][data-component-mode=source] iframe { + display: none; +} +[data-component=ContentArea][data-component-mode=source] textarea { + box-sizing: border-box; + display: block; + inline-size: 100%; + min-inline-size: 100%; + block-size: 500px; + padding: 10px; + margin: 0; + font-family: Consolas, Courier New, Courier, Monaco, monospace; + font-size: 14px; + line-height: 1.4; + color: #fff; + appearance: none; + background: #272822; + border: 1px solid #ddd; + border-radius: 0; +} +[data-component=ContentArea][data-component-mode=source] textarea:focus { + outline: none; + border: 1px solid #8dc71c; +} + +[data-bge=bgb-menu] { + position: absolute; + z-index: 100000; + inline-size: calc(100% - 20px); +} +[data-bge=bgb-menu] .bgb-menu-buttons { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + z-index: 100000; + inline-size: 100%; +} +.no-item [data-bge=bgb-menu] .bgb-menu-buttons { + display: none; + block-size: 24px; + margin: 0; + background-color: #dfdfdf; + border-block-end: 1px #ccc solid; + border-inline-start: 1px #ccc solid; + border-inline-end: 1px #ccc solid; +} +[data-bge=bgb-menu] .bgb-menu-buttons .bgb-menu-btn-area-move { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + block-size: 100%; + padding: 3px 3px 0 0; + border-radius: 0 0 0 0; +} +[data-bge=bgb-menu] .bgb-menu-buttons .bgb-menu-btn-area-move button { + z-index: 100; + float: none; + margin-block-end: 3px; +} +[data-bge=bgb-menu] .bgb-menu-buttons .bgb-menu-btn-area-move::after { + position: fixed; + inset-block-start: 0; + inset-inline-start: auto; + z-index: 0; + display: block; + inline-size: 34px; + block-size: 100dvh; + content: ""; + background: rgba(0, 0, 0, 0); +} +[data-bge=bgb-menu] .bgb-menu-buttons .bgb-menu-btn-area-command { + position: absolute; + inset-block-start: 0; + inset-inline-end: 0; + padding: 3px 3px 3px 0; + border-radius: 0 0 0 4px; +} +[data-bge=bgb-menu] .bgb-menu-buttons button { + position: relative; + float: inline-start; + display: block; + inline-size: 28px; + block-size: 28px; + padding: 0; + margin: 0 0 0 3px; + appearance: none; + cursor: pointer; + background: no-repeat scroll center center; + border: none; + border-radius: 2px; +} +[data-bge=bgb-menu] .bgb-menu-buttons button span { + position: absolute; + inset-block-start: 30px; + inset-inline-start: 50%; + z-index: 1000; + display: none; + inline-size: 100px; + padding: 2px 5px; + font-size: 10px; + color: #fff; + pointer-events: none; + background: #333; + transform: translate(-50%, 0); +} +[data-bge=bgb-menu] .bgb-menu-buttons button:hover { + z-index: 1000; +} +[data-bge=bgb-menu] .bgb-menu-buttons button:hover span { + display: block; +} +[data-bge=bgb-menu] .bgb-menu-buttons button:active, [data-bge=bgb-menu] .bgb-menu-buttons button:focus { + outline: none; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-before::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-after::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-copy::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-config::before, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete::before { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + z-index: 0; + display: block; + inline-size: 100%; + block-size: 100%; + font-family: bge-ui-icons, system-ui; + font-size: 28px; + line-height: 28px; + color: inherit; + text-align: center; + text-indent: 0; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up :disabled, +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up :disabled:hover, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down :disabled, +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down :disabled:hover, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-before :disabled, +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-before :disabled:hover, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-after :disabled, +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-after :disabled:hover, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-copy :disabled, +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-copy :disabled:hover, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-config :disabled, +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-config :disabled:hover, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete :disabled, +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete :disabled:hover { + cursor: default !important; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up { + color: #f2ffce; + background: #9acd2c; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up::before { + content: "\e130"; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up:hover { + background-color: #67b416; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up:disabled, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up:disabled:hover { + color: #333; + cursor: default; + background: #d5d5d5; + opacity: 0.3; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down { + color: #f2ffce; + background: #9acd2c; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down::before { + content: "\e131"; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down:hover { + background-color: #67b416; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down:disabled, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down:disabled:hover { + color: #333; + cursor: default; + background: #d5d5d5; + opacity: 0.3; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-up span, [data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-move-down span { + inset-inline-start: 0; + transform: translate(0, 0); +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-before { + color: #f2ffce; + background: #86be0d; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-before::before { + content: "\e100"; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-before:hover { + background-color: #67b416; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-after { + color: #f2ffce; + background: #86be0d; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-after::before { + content: "\e101"; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-insert-after:hover { + background-color: #67b416; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-config { + color: #ddd; + background: #555; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-config::before { + content: "\e102"; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-config:hover { + background-color: #000; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-copy { + color: #ddd; + background: #555; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-copy::before { + content: "\e103"; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-block-copy:hover { + background-color: #099177; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete { + color: #ddd; + background: #555; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete::before { + content: "\e111"; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete:hover { + background-color: #b62d38; +} +[data-bge=bgb-menu] .bgb-menu-buttons button.bgb-menu-delete span { + inset-inline: auto 0; + transform: translate(0, 0); +} + +.edit-inner { + position: absolute; + z-index: 20000; + display: none; + inline-size: 34px; + block-size: 40px; + margin: 0; + margin-block-start: -80px; + margin-inline-start: -17px; + overflow: visible; + color: #fff; + text-indent: -9999px; + pointer-events: none; + background: url("../../img/edit.png") no-repeat scroll 0 0; + border: none; +} + +#ContentsEditArea { + position: relative; + padding: 10px; + margin: 0 0 -0.4em; +} +#ContentsEditArea .bge-type-table { + inline-size: 97%; + border-spacing: 0; + border-collapse: collapse; + border-color: #808080; +} +#ContentsEditArea .bge-type-table td { + inline-size: 75%; + border: 1px solid #ccc; +} +#ContentsEditArea .bge-type-table td textarea { + background: #fff; +} +#ContentsEditArea .bge-type-table th { + inline-size: 25%; + background: #dfdfdf; + border: 1px solid #ccc; +} +#ContentsEditArea .bge-type-table th textarea { + background: #dfdfdf; +} +#ContentsEditArea .bge-type-table, +#ContentsEditArea .bge-type-table * { + box-sizing: border-box; +} +#ContentsEditArea .bge-type-table th, +#ContentsEditArea .bge-type-table td { + padding: 0; + vertical-align: top; +} +#ContentsEditArea .bge-type-table textarea { + display: block; + inline-size: 100% !important; + min-block-size: 100%; + padding: 5px; + margin: 0 !important; + appearance: none; + border: none; +} +#ContentsEditArea .bge-type-table .bge-table-th { + inline-size: 25%; +} +#ContentsEditArea .bge-type-table .bge-table-td { + inline-size: auto; +} +#ContentsEditArea .bge-type-table .bge-table-btn { + position: relative; + inline-size: 69px; + padding: 4px; + vertical-align: middle; + border: none; +} +#ContentsEditArea .bge-type-table .bge-table-btn button { + float: inline-start; + display: block; + inline-size: 28px; + block-size: 28px; + padding: 0; + overflow: hidden; + text-indent: 100%; + white-space: nowrap; + appearance: none; + border: none; + border-radius: 2px; +} +#ContentsEditArea .bge-type-table .bge-table-btn button::before { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + z-index: 0; + display: block; + inline-size: 100%; + block-size: 100%; + font-family: bge-ui-icons, system-ui; + font-size: 28px; + line-height: 28px; + color: inherit; + text-align: center; + text-indent: 0; + text-shadow: none; +} +#ContentsEditArea .bge-type-table .bge-table-btn-add { + position: relative; + color: #f2ffce; + background: #86be0d; +} +#ContentsEditArea .bge-type-table .bge-table-btn-add::before { + content: "\e101"; +} +#ContentsEditArea .bge-type-table .bge-table-btn-add:hover { + background-color: #67b416; +} +#ContentsEditArea .bge-type-table .bge-table-btn-delete { + position: relative; + margin-inline-start: 4px; + color: #ddd; + background: #555; +} +#ContentsEditArea .bge-type-table .bge-table-btn-delete::before { + content: "\e111"; +} +#ContentsEditArea .bge-type-table .bge-table-btn-delete:hover { + background-color: #b62d38; +} +#ContentsEditArea .bge-type-table .bge-table-btn-change { + position: absolute; + inset-block-start: 100%; + inset-inline-start: 100%; + margin-block-start: -14px; + background: #86be0d url("../../img/change.png") no-repeat center center; +} +#ContentsEditArea .bge-type-table .bge-table-btn-change:hover { + background-color: #67b416; +} +#ContentsEditArea .bge-type-table tr:last-child .bge-table-btn-change { + display: none; +} +#ContentsEditArea .bge-file-uploader { + margin: 10px 0 20px; +} +#ContentsEditArea .bge-file-uploader input[type=file] { + display: block; + inline-size: 100%; +} +#ContentsEditArea .bge-file-uploader__container { + position: relative; +} +#ContentsEditArea .bge-file-uploader__container .bge-file-uploader__drop-area { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + z-index: 100; + display: none; + inline-size: 100%; + block-size: 100%; + background: rgba(255, 255, 255, 0.7); + border: 2px dotted #999; +} +#ContentsEditArea.bge-state-drag .bge-file-uploader__container .bge-file-uploader__drop-area { + display: block; +} +#ContentsEditArea .bge-input::after { + clear: both; + display: block; + content: ""; +} +#ContentsEditArea .bge-input input[type=text] { + inline-size: 400px; +} +#ContentsEditArea .pagination { + clear: both; + margin: 20px 0 5px; + text-align: start; +} +#ContentsEditArea .pagination .page-ctrl { + display: inline-block; +} +#ContentsEditArea .pagination .page-ctrl button { + display: block; +} +#ContentsEditArea .pagination .page-ctrl button:disabled { + opacity: 0.3; +} +#ContentsEditArea .pagination .page-numbers { + float: none; + display: inline-block; + vertical-align: middle; +} +#ContentsEditArea .pagination .page-numbers .number { + display: none; + min-inline-size: 35px; + padding: 0.4em 0; + font-weight: bold; + line-height: 1.4; + color: #555; + text-align: center; + text-shadow: rgba(255, 255, 255, 0.4) 1px 1px 0; + cursor: pointer; + background: #fff; + border: 1px solid #ccc; + border-radius: 2px; + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); +} +#ContentsEditArea .pagination .page-numbers .number[data-bge-page-dist="0"] { + color: #fff; + background: #9dd525; +} +#ContentsEditArea .pagination .page-numbers .number[data-bge-page-dist="0"], #ContentsEditArea .pagination .page-numbers .number[data-bge-page-dist="1"], #ContentsEditArea .pagination .page-numbers .number[data-bge-page-dist="2"], #ContentsEditArea .pagination .page-numbers .number[data-bge-page-dist="3"] { + display: inline-block; +} +#ContentsEditArea .pagination .page-numbers::before, #ContentsEditArea .pagination .page-numbers::after { + display: inline-block; + min-inline-size: 35px; + padding: 0.4em 0; + font-weight: bold; + line-height: 1.4; + color: #555; + text-align: center; + cursor: pointer; + content: "..."; + background: #fff; + border: none; +} +#ContentsEditArea .pagination[data-bge-page-index="0"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-index="1"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-index="2"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-index="3"] .page-numbers::before { + display: none; +} +#ContentsEditArea .pagination[data-bge-page-index="0"] .page-numbers .number[data-bge-page-index="3"], #ContentsEditArea .pagination[data-bge-page-index="0"] .page-numbers .number[data-bge-page-index="4"], #ContentsEditArea .pagination[data-bge-page-index="0"] .page-numbers .number[data-bge-page-index="5"], #ContentsEditArea .pagination[data-bge-page-index="0"] .page-numbers .number[data-bge-page-index="6"], #ContentsEditArea .pagination[data-bge-page-index="0"] .page-numbers .number[data-bge-page-index="7"], #ContentsEditArea .pagination[data-bge-page-index="1"] .page-numbers .number[data-bge-page-index="3"], #ContentsEditArea .pagination[data-bge-page-index="1"] .page-numbers .number[data-bge-page-index="4"], #ContentsEditArea .pagination[data-bge-page-index="1"] .page-numbers .number[data-bge-page-index="5"], #ContentsEditArea .pagination[data-bge-page-index="1"] .page-numbers .number[data-bge-page-index="6"], #ContentsEditArea .pagination[data-bge-page-index="1"] .page-numbers .number[data-bge-page-index="7"], #ContentsEditArea .pagination[data-bge-page-index="2"] .page-numbers .number[data-bge-page-index="3"], #ContentsEditArea .pagination[data-bge-page-index="2"] .page-numbers .number[data-bge-page-index="4"], #ContentsEditArea .pagination[data-bge-page-index="2"] .page-numbers .number[data-bge-page-index="5"], #ContentsEditArea .pagination[data-bge-page-index="2"] .page-numbers .number[data-bge-page-index="6"], #ContentsEditArea .pagination[data-bge-page-index="2"] .page-numbers .number[data-bge-page-index="7"], #ContentsEditArea .pagination[data-bge-page-index="3"] .page-numbers .number[data-bge-page-index="3"], #ContentsEditArea .pagination[data-bge-page-index="3"] .page-numbers .number[data-bge-page-index="4"], #ContentsEditArea .pagination[data-bge-page-index="3"] .page-numbers .number[data-bge-page-index="5"], #ContentsEditArea .pagination[data-bge-page-index="3"] .page-numbers .number[data-bge-page-index="6"], #ContentsEditArea .pagination[data-bge-page-index="3"] .page-numbers .number[data-bge-page-index="7"] { + display: inline-block; +} +#ContentsEditArea .pagination[data-bge-page-last-index="0"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-last-index="1"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-last-index="2"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-last-index="3"] .page-numbers::after { + display: none; +} +#ContentsEditArea .pagination[data-bge-page-last-index="0"] .page-numbers .number[data-bge-page-last-index="3"], #ContentsEditArea .pagination[data-bge-page-last-index="0"] .page-numbers .number[data-bge-page-last-index="4"], #ContentsEditArea .pagination[data-bge-page-last-index="0"] .page-numbers .number[data-bge-page-last-index="5"], #ContentsEditArea .pagination[data-bge-page-last-index="0"] .page-numbers .number[data-bge-page-last-index="6"], #ContentsEditArea .pagination[data-bge-page-last-index="0"] .page-numbers .number[data-bge-page-last-index="7"], #ContentsEditArea .pagination[data-bge-page-last-index="1"] .page-numbers .number[data-bge-page-last-index="3"], #ContentsEditArea .pagination[data-bge-page-last-index="1"] .page-numbers .number[data-bge-page-last-index="4"], #ContentsEditArea .pagination[data-bge-page-last-index="1"] .page-numbers .number[data-bge-page-last-index="5"], #ContentsEditArea .pagination[data-bge-page-last-index="1"] .page-numbers .number[data-bge-page-last-index="6"], #ContentsEditArea .pagination[data-bge-page-last-index="1"] .page-numbers .number[data-bge-page-last-index="7"], #ContentsEditArea .pagination[data-bge-page-last-index="2"] .page-numbers .number[data-bge-page-last-index="3"], #ContentsEditArea .pagination[data-bge-page-last-index="2"] .page-numbers .number[data-bge-page-last-index="4"], #ContentsEditArea .pagination[data-bge-page-last-index="2"] .page-numbers .number[data-bge-page-last-index="5"], #ContentsEditArea .pagination[data-bge-page-last-index="2"] .page-numbers .number[data-bge-page-last-index="6"], #ContentsEditArea .pagination[data-bge-page-last-index="2"] .page-numbers .number[data-bge-page-last-index="7"], #ContentsEditArea .pagination[data-bge-page-last-index="3"] .page-numbers .number[data-bge-page-last-index="3"], #ContentsEditArea .pagination[data-bge-page-last-index="3"] .page-numbers .number[data-bge-page-last-index="4"], #ContentsEditArea .pagination[data-bge-page-last-index="3"] .page-numbers .number[data-bge-page-last-index="5"], #ContentsEditArea .pagination[data-bge-page-last-index="3"] .page-numbers .number[data-bge-page-last-index="6"], #ContentsEditArea .pagination[data-bge-page-last-index="3"] .page-numbers .number[data-bge-page-last-index="7"] { + display: inline-block; +} +#ContentsEditArea .pagination[data-bge-page-max="1"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="2"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="3"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="4"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="5"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="6"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="7"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="8"] .page-ctrl, #ContentsEditArea .pagination[data-bge-page-max="9"] .page-ctrl { + display: none; +} +#ContentsEditArea .pagination[data-bge-page-max="1"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="1"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="2"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="2"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="3"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="3"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="4"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="4"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="5"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="5"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="6"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="6"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="7"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="7"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="8"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="8"] .page-numbers::after, #ContentsEditArea .pagination[data-bge-page-max="9"] .page-numbers::before, #ContentsEditArea .pagination[data-bge-page-max="9"] .page-numbers::after { + display: none; +} +#ContentsEditArea .pagination[data-bge-page-max="1"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="1"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="2"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="2"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="3"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="3"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="4"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="4"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="5"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="5"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="6"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="6"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="7"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="7"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="8"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="8"] .page-numbers .number[data-bge-pagelink="9"], #ContentsEditArea .pagination[data-bge-page-max="9"] .page-numbers .number[data-bge-pagelink="1"], #ContentsEditArea .pagination[data-bge-page-max="9"] .page-numbers .number[data-bge-pagelink="9"] { + display: inline-block; +} +#ContentsEditArea, +#ContentsEditArea * { + box-sizing: border-box; +} +#ContentsEditArea #cke_bge-ckeditor, +#ContentsEditArea #cke_bge-ckeditor * { + box-sizing: content-box; +} +#ContentsEditArea input[type=button], +#ContentsEditArea button { + padding: 0.4em 1em; + font-weight: bold; + line-height: 1.4; + color: #555; + text-shadow: rgba(255, 255, 255, 0.4) 1px 1px 0; + appearance: none; + cursor: pointer; + background: linear-gradient(to bottom, #fff, #f3f3f3); + border: 1px solid #ccc; + border-radius: 2px; + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); +} +#ContentsEditArea input[type=button]:hover, +#ContentsEditArea button:hover { + color: #333; +} +#ContentsEditArea input { + margin: 3px 0; +} +#ContentsEditArea input[type=text] { + block-size: auto; + padding: 3px 5px; +} +#ContentsEditArea input.input--large { + inline-size: 100%; +} +#ContentsEditArea .bge-table-base { + display: none; +} +#ContentsEditArea .bge-split-container { + display: flex; + align-items: stretch; +} +#ContentsEditArea .bge-multi-field-selection { + flex: 50% 0 1; + padding: 30px; + overflow: hidden auto; + background: #eee; +} +#ContentsEditArea .bge-multi-field-selection table { + inline-size: 100%; + table-layout: fixed; + border-spacing: 0 20px; + border-collapse: separate; +} +#ContentsEditArea .bge-multi-field-selection caption { + font-weight: bold; +} +#ContentsEditArea .bge-multi-field-selection__thumb { + inline-size: 10%; + vertical-align: middle; +} +#ContentsEditArea .bge-multi-field-selection__thumb-clip { + position: relative; + inline-size: 100%; + block-size: 0; + padding-block-start: 100%; +} +#ContentsEditArea .bge-multi-field-selection__thumb img { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + display: block; + inline-size: 100%; + block-size: 100%; + object-fit: cover; +} +#ContentsEditArea .bge-multi-field-selection__caption { + padding: 0 10px; + vertical-align: middle; +} +#ContentsEditArea .bge-multi-field-selection__caption input { + display: block; + inline-size: 100%; + margin: 0; +} +#ContentsEditArea .bge-multi-field-selection__ctrl { + position: relative; + inline-size: 65px; + padding: 0 28px 0 0; + vertical-align: middle; +} +#ContentsEditArea .bge-multi-field-selection__ctrl button { + display: inline-block; + inline-size: 28px; + block-size: 28px; + padding: 0; + margin: 0; + overflow: hidden; + text-indent: 110%; + white-space: nowrap; + appearance: none; + background: #86be0d no-repeat center center; + border: none; +} +#ContentsEditArea .bge-multi-field-selection__ctrl button:hover { + background-color: #67b416; +} +#ContentsEditArea .bge-multi-field-selection__ctrl button[data-bge-event="click:removeRow"] { + position: relative; + margin-inline-start: 4px; + color: #ddd; + background: #555; +} +#ContentsEditArea .bge-multi-field-selection__ctrl button[data-bge-event="click:removeRow"]::before { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + z-index: 0; + display: block; + inline-size: 100%; + block-size: 100%; + font-family: bge-ui-icons, system-ui; + font-size: 28px; + line-height: 28px; + text-align: center; + text-indent: 0; + text-shadow: none; + content: "\e111"; +} +#ContentsEditArea .bge-multi-field-selection__ctrl button[data-bge-event="click:removeRow"]:hover { + background-color: #b62d38; +} +#ContentsEditArea .bge-multi-field-selection__ctrl button[data-bge-event="click:replaceRow"] { + position: absolute; + inset-block-start: 100%; + inset-inline-end: 0; + margin-block-start: -4px; + background-image: url("../../img/change.png"); +} +#ContentsEditArea .bge-multi-field-selection tr:last-child .bge-multi-field-selection__ctrl button[data-bge-event="click:replaceRow"] { + display: none; +} +#ContentsEditArea .bge-multi-field-selector { + flex: auto 0 1; + align-self: center; + padding: 0 20px; +} +#ContentsEditArea .bge-multi-field-selector button { + position: relative; + display: block; + inline-size: 50px; + block-size: 50px; + padding: 0; + margin: 0; + overflow: hidden; + color: #fff; + text-indent: 110%; + white-space: nowrap; + appearance: none; + background: #86be0d no-repeat center center; + border: none; +} +#ContentsEditArea .bge-multi-field-selector button:hover { + background-color: #67b416; +} +#ContentsEditArea .bge-multi-field-selector button:disabled { + color: #333; + pointer-events: none; + background-color: #ccc; + opacity: 0.3; +} +#ContentsEditArea .bge-multi-field-selector button::after { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + display: block; + inline-size: 50px; + block-size: 50px; + font-size: 30px; + line-height: 50px; + text-align: center; + text-indent: 0; + content: "◀"; +} +#ContentsEditArea .bge-image { + flex: 50% 0 1; +} + +.image-select-area { + position: relative; + clear: both; +} +.image-select-area > div { + display: flex; + flex-wrap: wrap; +} +.image-select-area .bg-upload-file { + inline-size: 50%; + padding: 10px; + margin: 0; + cursor: pointer; +} +.image-select-area .bg-upload-file .file-box { + float: inline-start; + inline-size: 30%; + block-size: 0; + padding-block-start: 30%; + margin-inline-end: 10px; + overflow: hidden; + background-position: center center; + background-size: cover; +} +.image-select-area .bg-upload-file .file-box.file-box--no-image { + position: relative; + color: #fff; + background-color: #999; +} +.image-select-area .bg-upload-file .file-box.file-box--no-image::after { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + display: flex; + align-items: center; + justify-content: center; + inline-size: 100%; + block-size: 100%; + content: "未選択"; +} +.image-select-area .bg-upload-file .file-info { + overflow: hidden; +} +.image-select-area .bg-upload-file .file-info p { + margin-block-end: 3px; +} +.image-select-area .bg-upload-file .file-info .file-info__label { + display: inline-block; + inline-size: 5em; + padding: 5px; + margin-inline-end: 5px; + font-size: 9px; + font-weight: bold; + line-height: 1; + vertical-align: middle; + text-align: center; + border-radius: 3px; +} +.image-select-area .bg-upload-file.selected { + background-color: #ffd985 !important; +} +.image-select-area .bg-upload-file:hover { + background-color: #e8f1cf; +} + +.file-select-area { + position: relative; + clear: both; + block-size: 400px; + overflow: auto; +} +.file-select-area .bg-upload-file { + float: inline-start; + inline-size: 45%; + padding: 10px; + margin-block-end: 10px; + margin-inline-end: 2px; + cursor: pointer; + border-radius: 3px; +} +.file-select-area .bg-upload-file .file-box { + float: inline-start; + inline-size: 60px; + block-size: 90px; + margin-inline-end: 10px; + overflow: hidden; + background: none !important; +} +.file-select-area .bg-upload-file .file-box::after { + font-family: FontAwesome, system-ui; + display: block; + font-size: 4em; + font-style: normal; + font-weight: normal; + font-variant: normal; + line-height: 90px; + text-align: center; + text-transform: none; + content: "\f0f6"; + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.file-select-area .bg-upload-file .file-info { + overflow: hidden; +} +.file-select-area .bg-upload-file .file-info p { + margin-block-end: 3px; +} +.file-select-area .bg-upload-file .file-info .file-info__label { + display: inline-block; + inline-size: 3.5em; + padding: 5px; + margin-inline-end: 5px; + font-size: 9px; + font-weight: bold; + line-height: 1; + vertical-align: middle; + text-align: center; + border-radius: 3px; +} +.file-select-area .bg-upload-file.selected { + background-color: #ffd985 !important; +} +.file-select-area .bg-upload-file:hover { + background-color: #e8f1cf; +} +.file-select-area .bg-upload-file[data-org-src$=pdf] .file-box::after { + content: "\f1c1"; +} +.file-select-area .bg-upload-file[data-org-src$=doc] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=docx] .file-box::after { + content: "\f1c2"; +} +.file-select-area .bg-upload-file[data-org-src$=xls] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=xlsx] .file-box::after { + content: "\f1c3"; +} +.file-select-area .bg-upload-file[data-org-src$=ppt] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=pptx] .file-box::after { + content: "\f1c4"; +} +.file-select-area .bg-upload-file[data-org-src$=zip] .file-box::after { + content: "\f1c6"; +} +.file-select-area .bg-upload-file[data-org-src$=xml] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=htm] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=html] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=css] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=sass] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=scss] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=less] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=styl] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=json] .file-box::after { + content: "\f1c9"; +} +.file-select-area .bg-upload-file[data-org-src$=jpeg] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=jpg] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=png] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=gif] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=tif] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=tiff] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=webp] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=bmp] .file-box::after { + content: "\f1c5"; +} +.file-select-area .bg-upload-file[data-org-src$=mov] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=mp4] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=m4v] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=flv] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=swf] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=mpg] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=mpeg] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=wmv] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=webm] .file-box::after, .file-select-area .bg-upload-file[data-org-src$=ogg] .file-box::after { + content: "\f1c8"; +} + +.download-file-select-area { + block-size: 300px; + overflow: scroll; + overflow-x: hidden; +} +.download-file-select-area .bg-upload-file { + padding: 5px 0 2px 5px; +} +.download-file-select-area .bg-upload-file.selected { + background-color: #9cf; +} +.download-file-select-area .bg-upload-file:hover { + background-color: #fc0; +} + +.Typeckeditor textarea { + block-size: 484px; +} + +.Typegoogle-maps .bge-gmap { + block-size: 400px; +} + +.bge-youtube-preview { + display: block; + margin: 0 auto; +} + +.bg-block-selection { + position: relative; + outline: 3px #9dd525 solid; + background: #fcffe0; + border: 3px solid #fff; +} +.bg-block-selection p { + position: absolute; + inset-block-start: 25px; + inset-inline-start: 20px; + z-index: 10; + font-size: 1.25em; + font-weight: bold; + color: #333; +} +.bg-block-selection .bg-blocks { + position: relative; + z-index: 0; + inline-size: 100%; + max-block-size: 400px; + overflow: auto; + background: #d7e2b7; + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.6) inset; +} +.bg-block-selection .bg-blocks dl { + padding: 20px 0; + margin: 0 20px; +} +.bg-block-selection .bg-blocks dl dt { + padding: 10px 0 7px; + margin-block-end: 10px; + font-size: 1.1em; + font-weight: bold; + color: #333; + border-block-end: 1px #565a49 dotted; +} +.bg-block-selection .bg-blocks dl dd { + padding: 0; + margin-block-end: 0; + overflow: hidden; + border: none; +} +.bg-block-selection .bg-blocks dl dd ul { + display: flex; + flex-wrap: wrap; + list-style: none; +} +.bg-block-selection .bg-blocks dl dd ul li { + box-sizing: content-box; + display: block; + flex: 0 0 100px; + padding: 10px 5px 0; + margin: 0; + cursor: pointer; + border-radius: 10px; +} +.bg-block-selection .bg-blocks dl dd ul li:hover { + background-color: #9dd525; +} +.bg-block-selection .bg-blocks dl dd ul li:hover figure { + background: none; +} +.bg-block-selection .bg-blocks dl dd ul li figure { + margin: 0 auto; +} +.bg-block-selection .bg-blocks dl dd ul li figure img, +.bg-block-selection .bg-blocks dl dd ul li figure svg, +.bg-block-selection .bg-blocks dl dd ul li figure div[role=image] { + display: block; + inline-size: 71px; + block-size: 56px; + margin: 0 auto; + background-repeat: no-repeat; + border-radius: 10px; +} +.bg-block-selection .bg-blocks dl dd ul li figure figcaption { + padding-block-start: 5px; + font-size: 0.85em; + font-weight: bold; + text-align: center; +} +.bg-block-selection .bg-blocks dl dd ul li figure figcaption small { + display: block; + font-size: 0.77em; + font-weight: normal; + color: #555; +} +.bg-block-selection .bg-blocks dl dd ul li[data-bge-specific-block=copy] .bge-block-icon { + display: block; + inline-size: 71px; + block-size: 56px; + margin: auto; + background: url("../../img/copied-block.svg") no-repeat 0 0; + background-size: cover; + border-radius: 10px; + box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.3); +} + +#ValueMigrationMessage { + display: none; + padding: 20px 50px 10px; + margin-block-end: 20px; + font-weight: bold; + color: #b62d38; + background: #fff; + border: #b62d38 5px solid; +} +#ValueMigrationMessage.bge-vmm--success { + color: #690; + border: #690 5px solid; +} +#ValueMigrationMessage button { + padding: 10px 50px 10px; + margin-block-end: 10px; + font-size: 1.2em; + font-weight: bold; + color: #b62d38; + background: #f6edff; + border: #b62d38 2px solid; +} +#ValueMigrationMessage button:hover { + color: #fff; + cursor: pointer; + background: #b62d38; +} + +[data-bgb] { + position: relative; + z-index: 0; + outline-offset: 2px; +} +[data-bgb]:hover { + z-index: 10; + outline: 1px dotted #9dd525; + box-shadow: 0 0 10px #9dd525; +} +[data-bgb]::before { + font-family: FontAwesome, system-ui; + position: absolute; + inset-block-end: 0; + inset-inline-start: 0; + z-index: 1; + box-sizing: border-box; + display: block; + inline-size: 34px; + block-size: 34px; + padding: 3px; + font-size: 24px; + line-height: 28px; + color: #fff; + text-align: center; +} +[data-bgb].tv-only, [data-bgb].tv_only { + outline: 1px solid #606893; +} +[data-bgb].tv-only::before, [data-bgb].tv_only::before { + display: block; + content: "\f26c"; + background: #606893; +} +[data-bgb].pc-only, [data-bgb].pc_only { + outline: 1px solid #287b83; +} +[data-bgb].pc-only::before, [data-bgb].pc_only::before { + display: block; + content: "\f108"; + background: #287b83; +} +[data-bgb].tablet-only, [data-bgb].tablet_only { + outline: 1px solid #1e2883; +} +[data-bgb].tablet-only::before, [data-bgb].tablet_only::before { + display: block; + content: "\f10a"; + background: #1e2883; +} +[data-bgb].sp-only, [data-bgb].sp_only { + outline: 1px solid #af5018; +} +[data-bgb].sp-only::before, [data-bgb].sp_only::before { + display: block; + content: "\f10b"; + background: #af5018; +} +[data-bgb][data-bgb-publish-datetime-range]::before { + inset-inline-start: 36px; +} +[data-bgb][data-bgb-publish-datetime-range]::after { + font-family: FontAwesome, system-ui; + position: absolute; + inset-block-end: 0; + inset-inline-start: 0; + z-index: 1; + box-sizing: border-box; + display: block; + inline-size: 34px; + block-size: 34px; + padding: 3px; + font-size: 24px; + line-height: 28px; + color: #fff; + text-align: center; +} +[data-bgb][data-bgb-publish-datetime-range=true] { + outline: 5px solid rgb(4, 93, 4); +} +[data-bgb][data-bgb-publish-datetime-range=true]::after { + display: block; + content: "\f017"; + background: rgb(4, 93, 4); +} +[data-bgb][data-bgb-publish-datetime-range=false] { + outline: 5px solid #000; + opacity: 0.2; +} +[data-bgb][data-bgb-publish-datetime-range=false]::after { + display: block; + content: "\f017"; + background: #000; +} + +.-bge-animation-replacement { + box-sizing: border-box; + inline-size: calc(100% - 20px); +} + +[data-bgt] { + min-block-size: 20px; + outline: 1px #a6a6a6 dotted; +} +[data-bgt]:hover { + cursor: pointer; + outline: 1px solid #9dd525; + background-color: #f9fef0; +} +[data-bgt]:hover img { + opacity: 0.8; +} +[data-bgt] iframe { + pointer-events: none; +} +[data-bgt][data-bgt=gallery] { + display: flex; + flex-direction: column; + block-size: auto; + padding: 20px; +} +[data-bgt][data-bgt=gallery]::before { + display: block; + order: 1; + font-weight: bold; + color: #999; + text-align: center; + content: "スライドショー"; +} +[data-bgt][data-bgt=gallery]::after { + display: block; + order: 2; + color: #999; + text-align: center; + content: "スライドショーはエディタ上ではプレビューできません"; +} +[data-bgt][data-bgt=gallery] .bgt-gallery { + position: static; + order: 100; + inline-size: auto; + block-size: auto; + padding: 0; + margin-block-start: 20px; + text-align: center; +} +[data-bgt][data-bgt=gallery] .bgt-gallery__group { + position: static; + inline-size: auto; + block-size: auto; + padding: 0; +} +[data-bgt][data-bgt=gallery] .bgt-gallery__item { + position: static; + display: inline-block; + inline-size: 50px; + block-size: 50px; + padding: 0; + margin: 0 10px; + overflow: hidden; +} +[data-bgt][data-bgt=gallery] .bgt-gallery__img img { + display: block; + inline-size: 100%; + block-size: 100%; + object-fit: cover; +} + +.nodata-button button.insert_after { + display: block; + padding: 13px 30px; + margin: 0 auto; + line-height: 1; + color: #fff; + appearance: none; + cursor: pointer; + background: #86be0d; + border: none; + border-radius: 2px; +} +.nodata-button button.insert_after:hover, .nodata-button button.insert_after:focus { + outline: none; + background: #67b416; +} +.nodata-button button.insert_after:active { + background: #3f9222; +} + +#BgBlockConfigArea [data-bge-grid-changer] { + display: none; +} +#BgBlockConfigArea [data-bge-grid-changer] input[type=range] { + display: block; + inline-size: 100%; +} +#BgBlockConfigArea [data-bge-grid-changer] label { + display: block; + margin-block-end: 5px; +} +#BgBlockConfigArea .bgb-block-covert { + padding: 10px; + background: #f0f0f0; + border-radius: 5px; +} +#BgBlockConfigArea .bgb-block-covert h2 { + font-size: 1.2em; + font-weight: bold; +} +#BgBlockConfigArea .bgb-block-covert ul.bgb-block-convert-pattern li { + display: block; +} +#BgBlockConfigArea .bgb-block-covert ul.bgb-block-convert-pattern li label { + display: block; +} +#BgBlockConfigArea .bgb-block-covert ul.bgb-block-convert-pattern li label input { + vertical-align: middle; +} +#BgBlockConfigArea .bgb-block-covert ul.bgb-block-convert-pattern li label span { + vertical-align: middle; +} +#BgBlockConfigArea .bgb-block-covert ul.bgb-block-convert-pattern li label span.bgb-block-covert-from::after { + content: " ▶"; +} +#BgBlockConfigArea .bgb-block-covert ul.bgb-block-convert-pattern li label span img { + vertical-align: middle; +} diff --git a/plugins/bc-burger-editor/webroot/css/bge_style.css b/plugins/bc-burger-editor/webroot/css/bge_style.css new file mode 100644 index 0000000000..4199c012d8 --- /dev/null +++ b/plugins/bc-burger-editor/webroot/css/bge_style.css @@ -0,0 +1,6 @@ +@charset "UTF-8"; +/*! + * + * BurgerEditor StyleSheet Style Sample v2.21.0 + * + */:root{--bge-column-gap:20px;--bge-grid-gap:var(--bge-column-gap);--bge-column-margin-block-end:20px;--bge-options-margin-normal:1.5rem;--bge-options-margin-none:0;--bge-options-margin-small:1rem;--bge-options-margin-large:4rem;--bge-options-margin:var(--bge-options-margin-normal);--bge-options-bgcolor-transparent:transparent;--bge-options-bgcolor-gray:#efefef;--bge-options-bgcolor-blue:#d8f4ff;--bge-options-bgcolor-pink:#fee;--bge-options-bgcolor:var(--bge-options-bgcolor-transparent);--bge-options-border-none:none;--bge-options-border-bold:solid 5px currentcolor;--bge-options-border-thin:solid 1px currentcolor;--bge-options-border-dotted:dotted 1px currentcolor;--bge-options-border:var(--bge-options-border-none);--bge-options-padding-none:0;--bge-options-padding-with-border-or-bg:1.5em;--bge-options-padding:var(--bge-options-padding-none)}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(../fonts/fontawesome-webfont.woff2?v=4.6.3) format("woff2")}:where(.bgt-link__icon):after{font-family:FontAwesome,serif;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;speak:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e623";font-size:1.3em;vertical-align:bottom}:where(.bgt-download-file__link):where([href$=pdf]) :where(.bgt-link__icon):after{content:"\f1c1"}:where(.bgt-download-file__link):where([href$=doc]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=docx]) :where(.bgt-link__icon):after{content:"\f1c2"}:where(.bgt-download-file__link):where([href$=xls]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=xlsx]) :where(.bgt-link__icon):after{content:"\f1c3"}:where(.bgt-download-file__link):where([href$=ppt]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=pptx]) :where(.bgt-link__icon):after{content:"\f1c4"}:where(.bgt-download-file__link):where([href$=zip]) :where(.bgt-link__icon):after{content:"\f1c6"}:where(.bgt-download-file__link):where([href$=css]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=htm]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=html]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=json]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=less]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=sass]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=scss]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=styl]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=xml]) :where(.bgt-link__icon):after{content:"\f1c9"}:where(.bgt-download-file__link):where([href$=bmp]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=gif]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=jpeg]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=jpg]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=png]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=tif]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=tiff]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=webp]) :where(.bgt-link__icon):after{content:"\f1c5"}:where(.bgt-download-file__link):where([href$=flv]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=m4v]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=mov]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=mp4]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=mpeg]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=mpg]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=ogg]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=swf]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=webm]) :where(.bgt-link__icon):after,:where(.bgt-download-file__link):where([href$=wmv]) :where(.bgt-link__icon):after{content:"\f1c8"}[data-bgb] h2{background:none;font-size:1.8em;font-weight:700;line-height:1.2;margin:1.5em 0;overflow:hidden;padding:.3em .5em;text-align:center}[data-bgb] h2:first-child{margin-block-start:0}[data-bgb] h2:after{background:#ccc;block-size:2px;content:"";display:block;inline-size:2em;margin:.8em auto}[data-bgb] h3{background:#f6f6f6;border:1px solid #eee;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 hsla(0,0%,39.2%,.1);font-size:1.5em;font-weight:700;line-height:1.2;margin:1em 0;overflow:hidden;padding:.5em .75em}[data-bgb] h3:first-child{margin-block-start:0}[data-bgb] h4{border:none;font-size:1.3em;font-weight:700;line-height:1.2;margin:1em 0;overflow:hidden;padding:.3em .2em;position:relative}[data-bgb] h4:first-child{margin-block-start:0}[data-bgb] h4:after{background-color:#ddd;block-size:8px;border-radius:2px;content:"";inline-size:100%;inset-block-end:.25em;inset-inline-start:0;position:absolute;z-index:-1}[data-bgb] h5{border-block-end:1px dashed #999;font-size:1.2em;font-weight:700;line-height:1.2;margin:1em 0;overflow:hidden;padding:.3em 0}[data-bgb] h5:first-child{margin-block-start:0}[data-bgb] h6{background:#eee;border:none;border-inline-start:3px solid #ccc;font-size:1em;font-weight:700;line-height:1.2;margin:1em 0;overflow:hidden;padding:.3em .5em}[data-bgb] h6:first-child{margin-block-start:0}[data-bgb] p{margin:1em 0}[data-bgb] p:first-child{margin-block-start:0}[data-bgb] li{list-style:inherit;overflow:hidden}[data-bgb] li:first-child{margin-block-start:0}[data-bgb] ul{margin:1em 0}[data-bgb] ul:first-child{margin-block-start:0}[data-bgb] ul ul{margin:0 0 0 1.8em}[data-bgb] ul ul:first-child{margin-block-start:0}[data-bgb] ul li{list-style-position:inside;list-style-type:disc;margin:0 0 .2em}[data-bgb] ol{margin:1em 0}[data-bgb] ol:first-child{margin-block-start:0}[data-bgb] ol ol{margin:0 0 0 2em}[data-bgb] ol ol:first-child{margin-block-start:0}[data-bgb] ol li{list-style-position:inside;list-style-type:decimal-leading-zero;margin:0 0 .2em}[data-bgb] blockquote{background:none;border:2px solid #ccc;border-radius:5px;color:#888;font-size:.9em;margin:1em 0;overflow:hidden;padding:1px 2.5em;position:relative}[data-bgb] blockquote:first-child{margin-block-start:0}[data-bgb] blockquote:before{content:"“";inset-block-start:.3em;inset-inline-start:.25em}[data-bgb] blockquote:after,[data-bgb] blockquote:before{color:#ccc;display:block;font-family:serif;font-size:3em;position:absolute;z-index:0}[data-bgb] blockquote:after{content:"”";inset-block-end:-.3em;inset-inline-end:.25em}[data-bgb] table{border:none;border-collapse:collapse;border-spacing:0;inline-size:100%;margin:1em 0;table-layout:fixed}@media screen and (max-width:768px){[data-bgb] table{display:block;inline-size:100%}}[data-bgb] table:first-child{margin-block-start:0}[data-bgb] table caption{font-weight:700;text-align:start}@media screen and (max-width:768px){[data-bgb] table caption,[data-bgb] table tbody,[data-bgb] table tfoot{display:block}[data-bgb] table tr{display:block;margin-block-start:-1px}}[data-bgb] table tr:nth-child(odd) td{background:#fff}[data-bgb] table tr:nth-child(2n) td{background:#fafafa}[data-bgb] table tr td,[data-bgb] table tr th{border:1px solid #ccc;padding:.5em;text-align:start}@media screen and (max-width:768px){[data-bgb] table tr td,[data-bgb] table tr th{display:block;inline-size:auto}}[data-bgb] table tr th{background:#eee;font-weight:700}@media screen and (max-width:768px){[data-bgb] table tr th{border-block-end:none}}[data-bgb] table tr td{font-weight:400}[data-bgb] strong{font-style:normal;font-weight:700;text-decoration:none}[data-bgb] u{text-decoration:underline}[data-bgb] s,[data-bgb] u{font-style:normal;font-weight:400}[data-bgb] s{text-decoration:line-through}[data-bgb] sub{vertical-align:sub}[data-bgb] sub,[data-bgb] sup{font-size:.8em;font-style:normal;font-weight:400;text-decoration:none}[data-bgb] sup{vertical-align:super}[data-bgb] hr{background:currentcolor;block-size:2px;border-style:none;color:#ccc;inline-size:100%;margin:50px auto}[data-bgb] hr:first-child{margin-block-start:0}.bgt-box__caption{background:none;font-size:.8em;font-weight:400;padding:3px;text-align:start}.bgt-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border-radius:2px;border-style:solid;border-width:1px;display:inline-block;min-inline-size:280px;padding:12px 10px;text-decoration:none;vertical-align:middle}.bgt-btn:active,.bgt-btn:focus{box-shadow:0 0 10px 0 #0570c7,0 0 10px 0 #fff}.bgt-btn--link,[data-bgt-button-kind=link] .bgt-btn{background:#fff;border-color:#ccc;color:#333}.bgt-btn--link:active,.bgt-btn--link:focus,.bgt-btn--link:hover,[data-bgt-button-kind=link] .bgt-btn:active,[data-bgt-button-kind=link] .bgt-btn:focus,[data-bgt-button-kind=link] .bgt-btn:hover{background:#e9e9e9}.bgt-btn--em,[data-bgt-button-kind=em] .bgt-btn{background:#333;border-color:#333;color:#fff;font-weight:700}.bgt-btn--em:active,.bgt-btn--em:focus,.bgt-btn--em:hover,[data-bgt-button-kind=em] .bgt-btn:active,[data-bgt-button-kind=em] .bgt-btn:focus,[data-bgt-button-kind=em] .bgt-btn:hover{background:#555}.bgt-btn--external,[data-bgt-button-kind=external] .bgt-btn{background:#fff;border-color:#ccc;color:#333}.bgt-btn--external:active,.bgt-btn--external:focus,.bgt-btn--external:hover,[data-bgt-button-kind=external] .bgt-btn:active,[data-bgt-button-kind=external] .bgt-btn:focus,[data-bgt-button-kind=external] .bgt-btn:hover{background:#e9e9e9}.bgt-btn--external:after,[data-bgt-button-kind=external] .bgt-btn:after{font-family:FontAwesome,serif;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;speak:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#999;content:"\f08e";font-size:1em;vertical-align:middle}.bgt-btn--back,[data-bgt-button-kind=back] .bgt-btn{background:#ddd;border-color:#ddd;color:#333}.bgt-btn--back:active,.bgt-btn--back:focus,.bgt-btn--back:hover,[data-bgt-button-kind=back] .bgt-btn:active,[data-bgt-button-kind=back] .bgt-btn:focus,[data-bgt-button-kind=back] .bgt-btn:hover{background:#e9e9e9}.bgt-btn--back span,[data-bgt-button-kind=back] .bgt-btn span{display:inline-block;vertical-align:middle}.bgt-btn--back:before,[data-bgt-button-kind=back] .bgt-btn:before{font-family:FontAwesome,serif;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;speak:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f053";display:inline-block;font-size:1em;margin-block-start:-2px;vertical-align:middle}.bgt-hr{margin:0 auto}[data-bgt-hr-kind=dashed] .bgt-hr{background:none;block-size:0;border:none;border-block-end:2px dashed currentcolor}.bgt-hr--bold,[data-bgt-hr-kind=bold] .bgt-hr{block-size:5px}.bgt-hr--narrow,[data-bgt-hr-kind=narrow] .bgt-hr{block-size:1px}.bgt-hr--short,[data-bgt-hr-kind=short] .bgt-hr{block-size:1px;inline-size:60%}.bgt-download-file__link{background-color:#fff;border:1px solid #ccc;border-radius:3px;box-sizing:border-box;color:#333;display:inline-block;font-size:1.08em;font-weight:700;line-height:1;padding:.7em 1em;text-align:start;text-decoration:none}.bgt-download-file__link:hover{background-color:#eee}.bgt-download-file__link:active,.bgt-download-file__link:focus{box-shadow:0 0 5px 1px #0570c7;outline:none}.bgt-link__size{color:gray;font-size:.8em;font-weight:400}@media screen and (max-width:768px){.bgt-google-maps-link{border:1px solid #999;border-radius:3px;color:#333;margin-block-start:10px;padding:1em;text-align:center;text-decoration:none}.bgt-google-maps-link span{display:inline-block;vertical-align:middle}.bgt-google-maps-link:after{font-family:FontAwesome,serif;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;speak:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f08e";font-size:1em;vertical-align:middle}}[data-bgt=gallery] .bgt-gallery{padding-block-start:56.25%}[data-bgt=gallery] .bgt-gallery:hover [data-bgt=gallery] .bgt-gallery-ctrl{opacity:1}[data-bgt=gallery] .bgt-gallery__img img{-o-object-fit:cover;object-fit:cover}[data-bgt=gallery] .bgt-gallery__caption{background:rgba(0,0,0,.6);color:#fff;padding:.7em 1em;text-align:center}[data-bgt=gallery] .bgt-gallery-ctrl{inset-block-start:50%;opacity:0;transition:opacity .2s ease-in}[data-bgt=gallery] .bgt-gallery-ctrl__next,[data-bgt=gallery] .bgt-gallery-ctrl__prev{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:block;margin:-20px 0 0;padding:0;transform-origin:center center}[data-bgt=gallery] .bgt-gallery-ctrl__next:hover,[data-bgt=gallery] .bgt-gallery-ctrl__prev:hover{opacity:.5}[data-bgt=gallery] .bgt-gallery-ctrl__next:focus,[data-bgt=gallery] .bgt-gallery-ctrl__prev:focus{outline:none}[data-bgt=gallery] .bgt-gallery-ctrl__next span,[data-bgt=gallery] .bgt-gallery-ctrl__prev span{block-size:0;display:block;inline-size:0;overflow:hidden}[data-bgt=gallery] .bgt-gallery-ctrl__next:after,[data-bgt=gallery] .bgt-gallery-ctrl__prev:after{block-size:40px;border:solid #fff;border-width:5px 5px 0 0;content:"";display:block;inline-size:40px}[data-bgt=gallery] .bgt-gallery-ctrl__prev{inset-inline-start:20px;transform:rotate(-135deg)}[data-bgt=gallery] .bgt-gallery-ctrl__next{inset-inline-end:20px;transform:rotate(45deg)}[data-bgt=gallery] [data-gallery-marker=thumbs]+.bgt-gallery-marker{margin-block-start:10px}[data-bgt=gallery] [data-gallery-marker=thumbs]+.bgt-gallery-marker li{block-size:60px;inline-size:60px;margin:0 5px}[data-bgt=gallery] [data-gallery-marker=thumbs]+.bgt-gallery-marker li:before{display:none}[data-bgt=gallery] [data-gallery-marker=dot]+.bgt-gallery-marker{margin-block-start:10px}[data-bgt=gallery] [data-gallery-marker=dot]+.bgt-gallery-marker li{background-color:#999;block-size:10px;border-radius:100%;inline-size:10px;margin:0 2px}[data-bgt=gallery] [data-gallery-marker=dot]+.bgt-gallery-marker li.current{background-color:#000}.pc-only{display:block}@media screen and (max-width:768px){.pc-only{display:none}}.sp-only{display:none}@media screen and (max-width:768px){.sp-only{display:block}} \ No newline at end of file diff --git a/plugins/bc-burger-editor/webroot/css/bge_style_default.css b/plugins/bc-burger-editor/webroot/css/bge_style_default.css new file mode 100644 index 0000000000..0b7383e1de --- /dev/null +++ b/plugins/bc-burger-editor/webroot/css/bge_style_default.css @@ -0,0 +1,6 @@ +@charset "UTF-8"; +/*! + * + * BurgerEditor StyleSheet Default Styles v2.20.1 + * + */:root{--bge-column-gap:20px;--bge-grid-gap:var(--bge-column-gap);--bge-column-margin-block-end:20px;--bge-options-margin-normal:1.5rem;--bge-options-margin-none:0;--bge-options-margin-small:1rem;--bge-options-margin-large:4rem;--bge-options-margin:var(--bge-options-margin-normal);--bge-options-bgcolor-transparent:transparent;--bge-options-bgcolor-gray:#efefef;--bge-options-bgcolor-blue:#d8f4ff;--bge-options-bgcolor-pink:#fee;--bge-options-bgcolor:var(--bge-options-bgcolor-transparent);--bge-options-border-none:none;--bge-options-border-bold:solid 5px currentcolor;--bge-options-border-thin:solid 1px currentcolor;--bge-options-border-dotted:dotted 1px currentcolor;--bge-options-border:var(--bge-options-border-none);--bge-options-padding-none:0;--bge-options-padding-with-border-or-bg:1.5em;--bge-options-padding:var(--bge-options-padding-none)}:where([data-bgb=button2]),:where([data-bgb=button3]),:where([data-bgb=download-file2]),:where([data-bgb=download-file3]),:where([data-bgb=image-link-text2]),:where([data-bgb=image-link-text3]),:where([data-bgb=image-link-text4]),:where([data-bgb=image-link-text5]),:where([data-bgb=image-link2]),:where([data-bgb=image-link3]),:where([data-bgb=image-link4]),:where([data-bgb=image-link5]),:where([data-bgb=image-text2]),:where([data-bgb=image-text3]),:where([data-bgb=image-text4]),:where([data-bgb=image-text5]),:where([data-bgb=image2]),:where([data-bgb=image3]),:where([data-bgb=image4]),:where([data-bgb=image5]),:where([data-bgb=text-gallery1]),:where([data-bgb=text-gallery2]),:where([data-bgb=text-image1]),:where([data-bgb=text-image2]),:where([data-bgb=trimmed-image-link2]),:where([data-bgb=trimmed-image-link3]),:where([data-bgb=trimmed-image-link4]),:where([data-bgb=trimmed-image-link5]),:where([data-bgb=trimmed-image2]),:where([data-bgb=trimmed-image3]),:where([data-bgb=trimmed-image4]),:where([data-bgb=trimmed-image5]),:where([data-bgb=wysiwyg2]){-moz-column-gap:var(--bge-grid-gap-local,var(--bge-grid-gap));column-gap:var(--bge-grid-gap-local,var(--bge-grid-gap));display:grid;grid-template-columns:repeat(var(--col),1fr)}@media screen and (max-width:768px){:has(>:not([class*=bgt-sp-grid])):where([data-bgb=button2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=button3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=download-file2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=download-file3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link-text2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link-text3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link-text4]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link-text5]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link4]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-link5]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-text2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-text3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-text4]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image-text5]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image4]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=image5]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=text-gallery1]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=text-gallery2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=text-image1]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=text-image2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image-link2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image-link3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image-link4]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image-link5]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image2]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image3]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image4]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=trimmed-image5]),:has(>:not([class*=bgt-sp-grid])):where([data-bgb=wysiwyg2]){display:flex;flex-direction:column;gap:var(--bge-column-margin-block-end)}}:where([data-bgb=button2]),:where([data-bgb=download-file2]),:where([data-bgb=image-link-text2]),:where([data-bgb=image-link2]),:where([data-bgb=image-text2]),:where([data-bgb=image2]),:where([data-bgb=text-gallery1]),:where([data-bgb=text-gallery2]),:where([data-bgb=text-image1]),:where([data-bgb=text-image2]),:where([data-bgb=trimmed-image-link2]),:where([data-bgb=trimmed-image2]),:where([data-bgb=wysiwyg2]){--col:2}@media screen and (min-width:769px){:has(>.bgt-grid2:first-child):where([data-bgb=button2]),:has(>.bgt-grid2:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid2:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid2:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid2:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid2:first-child):where([data-bgb=image2]),:has(>.bgt-grid2:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid2:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid2:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid2:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid2:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid2:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid2:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:2fr 10fr}}@media screen and (min-width:769px){:has(>.bgt-grid3:first-child):where([data-bgb=button2]),:has(>.bgt-grid3:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid3:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid3:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid3:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid3:first-child):where([data-bgb=image2]),:has(>.bgt-grid3:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid3:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid3:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid3:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid3:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid3:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid3:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:3fr 9fr}}@media screen and (min-width:769px){:has(>.bgt-grid4:first-child):where([data-bgb=button2]),:has(>.bgt-grid4:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid4:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid4:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid4:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid4:first-child):where([data-bgb=image2]),:has(>.bgt-grid4:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid4:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid4:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid4:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid4:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid4:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid4:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:4fr 8fr}}@media screen and (min-width:769px){:has(>.bgt-grid5:first-child):where([data-bgb=button2]),:has(>.bgt-grid5:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid5:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid5:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid5:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid5:first-child):where([data-bgb=image2]),:has(>.bgt-grid5:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid5:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid5:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid5:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid5:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid5:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid5:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:5fr 7fr}}@media screen and (min-width:769px){:has(>.bgt-grid6:first-child):where([data-bgb=button2]),:has(>.bgt-grid6:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid6:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid6:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid6:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid6:first-child):where([data-bgb=image2]),:has(>.bgt-grid6:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid6:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid6:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid6:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid6:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid6:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid6:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:6fr 6fr}}@media screen and (min-width:769px){:has(>.bgt-grid7:first-child):where([data-bgb=button2]),:has(>.bgt-grid7:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid7:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid7:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid7:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid7:first-child):where([data-bgb=image2]),:has(>.bgt-grid7:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid7:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid7:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid7:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid7:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid7:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid7:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:7fr 5fr}}@media screen and (min-width:769px){:has(>.bgt-grid8:first-child):where([data-bgb=button2]),:has(>.bgt-grid8:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid8:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid8:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid8:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid8:first-child):where([data-bgb=image2]),:has(>.bgt-grid8:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid8:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid8:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid8:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid8:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid8:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid8:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:8fr 4fr}}@media screen and (min-width:769px){:has(>.bgt-grid9:first-child):where([data-bgb=button2]),:has(>.bgt-grid9:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid9:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid9:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid9:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid9:first-child):where([data-bgb=image2]),:has(>.bgt-grid9:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid9:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid9:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid9:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid9:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid9:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid9:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:9fr 3fr}}@media screen and (min-width:769px){:has(>.bgt-grid10:first-child):where([data-bgb=button2]),:has(>.bgt-grid10:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid10:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid10:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid10:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid10:first-child):where([data-bgb=image2]),:has(>.bgt-grid10:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid10:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid10:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid10:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid10:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid10:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid10:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:10fr 2fr}}@media screen and (min-width:769px){:has(>.bgt-grid11:first-child):where([data-bgb=button2]),:has(>.bgt-grid11:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid11:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid11:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid11:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid11:first-child):where([data-bgb=image2]),:has(>.bgt-grid11:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid11:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid11:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid11:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid11:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid11:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid11:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:11fr 1fr}}@media screen and (min-width:769px){:has(>.bgt-grid1:first-child):where([data-bgb=button2]),:has(>.bgt-grid1:first-child):where([data-bgb=download-file2]),:has(>.bgt-grid1:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-grid1:first-child):where([data-bgb=image-link2]),:has(>.bgt-grid1:first-child):where([data-bgb=image-text2]),:has(>.bgt-grid1:first-child):where([data-bgb=image2]),:has(>.bgt-grid1:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-grid1:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-grid1:first-child):where([data-bgb=text-image1]),:has(>.bgt-grid1:first-child):where([data-bgb=text-image2]),:has(>.bgt-grid1:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-grid1:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-grid1:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:1fr 11fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid1:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid1:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:1fr 11fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid2:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid2:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:2fr 10fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid3:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid3:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:3fr 9fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid4:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid4:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:4fr 8fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid5:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid5:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:5fr 7fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid6:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid6:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:6fr 6fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid7:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid7:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:7fr 5fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid8:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid8:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:8fr 4fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid9:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid9:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:9fr 3fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid10:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid10:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:10fr 2fr}}@media screen and (max-width:768px){:has(>.bgt-sp-grid11:first-child):where([data-bgb=button2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=download-file2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=image-link-text2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=image-link2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=image-text2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=image2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=text-gallery1]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=text-gallery2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=text-image1]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=text-image2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=trimmed-image-link2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=trimmed-image2]),:has(>.bgt-sp-grid11:first-child):where([data-bgb=wysiwyg2]){grid-template-columns:11fr 1fr}}:where([data-bgb=button3]),:where([data-bgb=download-file3]),:where([data-bgb=image-link-text3]),:where([data-bgb=image-link3]),:where([data-bgb=image-text3]),:where([data-bgb=image3]),:where([data-bgb=trimmed-image-link3]),:where([data-bgb=trimmed-image3]){--col:3}:where([data-bgb=image-link-text4]),:where([data-bgb=image-link4]),:where([data-bgb=image-text4]),:where([data-bgb=image4]),:where([data-bgb=trimmed-image-link4]),:where([data-bgb=trimmed-image4]){--col:4}:where([data-bgb=image-link-text5]),:where([data-bgb=image-link5]),:where([data-bgb=image-text5]),:where([data-bgb=image5]),:where([data-bgb=trimmed-image-link5]),:where([data-bgb=trimmed-image5]){--col:5}:where([data-bgb=text-float-image1]):after,:where([data-bgb=text-float-image2]):after{clear:both;content:"";display:block}:where([data-bgb=text-float-image1]) :where(.bgt-grid1),:where([data-bgb=text-float-image2]) :where(.bgt-grid1){inline-size:8.3333%}:where([data-bgb=text-float-image1]) :where(.bgt-grid2),:where([data-bgb=text-float-image2]) :where(.bgt-grid2){inline-size:16.6666%}:where([data-bgb=text-float-image1]) :where(.bgt-grid3),:where([data-bgb=text-float-image2]) :where(.bgt-grid3){inline-size:25%}:where([data-bgb=text-float-image1]) :where(.bgt-grid4),:where([data-bgb=text-float-image2]) :where(.bgt-grid4){inline-size:33.3333%}:where([data-bgb=text-float-image1]) :where(.bgt-grid5),:where([data-bgb=text-float-image2]) :where(.bgt-grid5){inline-size:41.6666%}:where([data-bgb=text-float-image1]) :where(.bgt-grid6),:where([data-bgb=text-float-image2]) :where(.bgt-grid6){inline-size:50%}:where([data-bgb=text-float-image1]) :where(.bgt-grid7),:where([data-bgb=text-float-image2]) :where(.bgt-grid7){inline-size:58.3333%}:where([data-bgb=text-float-image1]) :where(.bgt-grid8),:where([data-bgb=text-float-image2]) :where(.bgt-grid8){inline-size:66.6666%}:where([data-bgb=text-float-image1]) :where(.bgt-grid9),:where([data-bgb=text-float-image2]) :where(.bgt-grid9){inline-size:75%}:where([data-bgb=text-float-image1]) :where(.bgt-grid10),:where([data-bgb=text-float-image2]) :where(.bgt-grid10){inline-size:83.3333%}:where([data-bgb=text-float-image1]) :where(.bgt-grid11),:where([data-bgb=text-float-image2]) :where(.bgt-grid11){inline-size:91.6666%}:where([data-bgb=text-float-image1]) :where(.bgt-grid12),:where([data-bgb=text-float-image2]) :where(.bgt-grid12){inline-size:100%}@media screen and (max-width:768px){:where([data-bgb=text-float-image1]) :where(.bgt-grid1,.bgt-grid2,.bgt-grid3,.bgt-grid4,.bgt-grid5,.bgt-grid6,.bgt-grid7,.bgt-grid8,.bgt-grid9,.bgt-grid10,.bgt-grid11,.bgt-grid12),:where([data-bgb=text-float-image2]) :where(.bgt-grid1,.bgt-grid2,.bgt-grid3,.bgt-grid4,.bgt-grid5,.bgt-grid6,.bgt-grid7,.bgt-grid8,.bgt-grid9,.bgt-grid10,.bgt-grid11,.bgt-grid12){inline-size:100%}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid2,.bgt-sp-grid3,.bgt-sp-grid4,.bgt-sp-grid5,.bgt-sp-grid6,.bgt-sp-grid7,.bgt-sp-grid8,.bgt-sp-grid9,.bgt-sp-grid10,.bgt-sp-grid11,.bgt-sp-grid12):where(.bgt-grid--first),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid2,.bgt-sp-grid3,.bgt-sp-grid4,.bgt-sp-grid5,.bgt-sp-grid6,.bgt-sp-grid7,.bgt-sp-grid8,.bgt-sp-grid9,.bgt-sp-grid10,.bgt-sp-grid11,.bgt-sp-grid12):where(.bgt-grid--first){float:inline-start!important;padding-inline-end:calc(var(--bge-grid-gap)/2)!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid2,.bgt-sp-grid3,.bgt-sp-grid4,.bgt-sp-grid5,.bgt-sp-grid6,.bgt-sp-grid7,.bgt-sp-grid8,.bgt-sp-grid9,.bgt-sp-grid10,.bgt-sp-grid11,.bgt-sp-grid12):where(.bgt-grid--last),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid2,.bgt-sp-grid3,.bgt-sp-grid4,.bgt-sp-grid5,.bgt-sp-grid6,.bgt-sp-grid7,.bgt-sp-grid8,.bgt-sp-grid9,.bgt-sp-grid10,.bgt-sp-grid11,.bgt-sp-grid12):where(.bgt-grid--last){float:inline-end!important;padding-inline-start:calc(var(--bge-grid-gap)/2)!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid1),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid1){inline-size:8.3333%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid2),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid2){inline-size:16.6666%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid3),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid3){inline-size:25%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid4),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid4){inline-size:33.3333%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid5),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid5){inline-size:41.6666%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid6),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid6){inline-size:50%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid7),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid7){inline-size:58.3333%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid8),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid8){inline-size:66.6666%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid9),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid9){inline-size:75%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid10),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid10){inline-size:83.3333%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid11),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid11){inline-size:91.6666%!important}:where([data-bgb=text-float-image1]) :where(.bgt-sp-grid12),:where([data-bgb=text-float-image2]) :where(.bgt-sp-grid12){inline-size:100%!important}}:where([data-bgb]){--bge-options-margin:var(--bge-options-margin-normal);--bge-options-bgcolor:var(--bge-options-bgcolor-transparent);--bge-options-border:var(--bge-options-border-none);--bge-options-padding:var(--bge-options-padding-none);background-color:var(--bge-options-bgcolor);border:var(--bge-options-border);margin-block-end:var(--bge-options-margin);padding:var(--bge-options-padding)}:where([data-bgb]),:where([data-bgb]) :where(*),:where([data-bgb]) :where(*):after,:where([data-bgb]) :where(*):before,:where([data-bgb]):after,:where([data-bgb]):before{box-sizing:border-box}:where([data-bgb=text-float-image2]) :where(.bgt-grid--first){float:inline-start;margin-block-end:calc(var(--bge-grid-gap)/4);margin-inline-end:var(--bge-grid-gap)}:where([data-bgb=text-float-image2]) :where(.bgt-grid--last){overflow:visible}:where([data-bgb=text-float-image1]) :where(.bgt-grid--first){float:inline-end;margin-block-end:calc(var(--bge-grid-gap)/4);margin-inline-start:var(--bge-grid-gap)}:where([data-bgb=text-float-image1]) :where(.bgt-grid--last){overflow:visible}:where([data-bgb=download-file3]){text-align:center}:where([data-bgb=download-file3]) :where([data-bgt=download-file]){display:inline-block;vertical-align:middle}:where([data-bgb=download-file2]){text-align:center}:where([data-bgb=download-file2]) :where([data-bgt=download-file]){display:inline-block;vertical-align:middle}:where([data-bgb=download-file]){text-align:center}:where([data-bgb=download-file]) :where([data-bgt=download-file]){display:inline-block;vertical-align:middle}:where([data-bgb=button3]){text-align:center}:where([data-bgb=button3]) :where([data-bgt=button]){display:inline-block;vertical-align:middle}:where([data-bgb=button2]){text-align:center}:where([data-bgb=button2]) :where([data-bgt=button]){display:inline-block;vertical-align:middle}:where([data-bgb=button]){text-align:center}:where([data-bgb=button]) :where([data-bgt=button]){display:inline-block;vertical-align:middle}:where(.bgt-youtube){block-size:auto;inline-size:100%;padding-block-start:56.25%;position:relative}:where(.bgt-youtube) :where(iframe){block-size:100%;border:none;display:block;inline-size:100%;inset-block-start:0;inset-inline-start:0;margin:0 auto;position:absolute}:where(.bgt-youtube) :where(.bgt-youtube__thumb){block-size:auto;inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute}:where(.bgt-trimmed-image-link__link){color:#333;display:block;text-decoration:none}:where(.bgt-trimmed-image-link__link):where([href*=bg-noimage]){cursor:default;pointer-events:none}:where(.bgt-trimmed-image-link__link) :where(.bgt-link__box){margin:0}:where(.bgt-trimmed-image-link__link) :where(.bgt-box__image){background-position:50%;background-repeat:no-repeat;background-size:cover;block-size:0;inline-size:100%;overflow:hidden;padding-block-start:100%}@media screen and (max-width:768px){:where([data-bge-empty="1"]) :where(.bgt-trimmed-image-link__link) :where(.bgt-box__image){display:none}}:where(.bgt-trimmed-image-link__link) :where(.bgt-box__caption):empty{display:none}:where(.bgt-image__link,.bgt-trimmed-image__link){color:#333;display:block;text-decoration:none}:where(.bgt-image__link,.bgt-trimmed-image__link):where([href*=bg-noimage]){cursor:default;pointer-events:none}:where(.bgt-image__link,.bgt-trimmed-image__link):where(.bgt-colorbox--larger){cursor:default;pointer-events:none}:where(.bgt-image__link,.bgt-trimmed-image__link) :where(.bgt-link__box){margin:0}:where(.bgt-image__link,.bgt-trimmed-image__link) :where(.bgt-box__image){background-position:50%;background-repeat:no-repeat;background-size:cover;block-size:0;inline-size:100%;overflow:hidden;padding-block-start:100%}@media screen and (max-width:768px){:where([data-bge-empty="1"]) :where(.bgt-image__link,.bgt-trimmed-image__link) :where(.bgt-box__image){display:none}}:where(.bgt-image__link,.bgt-trimmed-image__link) :where(.bgt-box__caption):empty{display:none}:where(.bge-title-h3){margin-block-end:0}:where(.bge-title-h2){margin-block-end:0}:where(.bge-type-table){margin:0}:where(.bge-type-table) :where(th){inline-size:25%}:where(.bge-type-table) :where(td){inline-size:75%}:where(.bgt-image-link__link){color:#333;display:block;position:relative;text-decoration:none;z-index:1}:where(.bgt-image-link__link) :where(.bgt-link__box){margin:0}:where(.bgt-image-link__link) :where(.bgt-box__image-container){background:none}:where(.bgt-image-link__link) :where(.bgt-box__image-container) :where(img){block-size:auto;display:block;margin:0 auto;max-inline-size:100%}:where([data-bge-empty="1"]) :where(.bgt-image-link__link) :where(.bgt-box__image-container){block-size:1px;inline-size:100%;visibility:hidden}@media screen and (max-width:768px){:where([data-bge-empty="1"]) :where(.bgt-image-link__link) :where(.bgt-box__image-container){display:none}}:where([data-bge-empty="1"]) :where(.bgt-image-link__link) :where(.bgt-box__image-container) img{display:none}:where(.bgt-image-link__link) :where(.bgt-box__caption):empty{display:none}:where(.bgt-image__link){color:#333;display:block;position:relative;text-decoration:none;z-index:1}:where(.bgt-image__link):where(.bgt-colorbox--larger){cursor:default;pointer-events:none}:where(.bgt-image__link) :where(.bgt-link__box){margin:0}:where(.bgt-image__link) :where(.bgt-box__image-container){background:none}:where(.bgt-image__link) :where(.bgt-box__image-container) :where(img){block-size:auto;display:block;margin:0 auto;max-inline-size:100%}:where([data-bge-empty="1"]) :where(.bgt-image__link) :where(.bgt-box__image-container){block-size:1px;inline-size:100%;visibility:hidden}@media screen and (max-width:768px){:where([data-bge-empty="1"]) :where(.bgt-image__link) :where(.bgt-box__image-container){display:none}}:where([data-bge-empty="1"]) :where(.bgt-image__link) :where(.bgt-box__image-container) :where(img){display:none}:where(.bgt-image__link) :where(.bgt-box__caption):empty{display:none}:where(.bgt-google-maps){block-size:400px;inline-size:100%}:where(.bgt-google-maps)>img{block-size:100%;display:block;inline-size:100%;margin:0 auto;-o-object-fit:contain;object-fit:contain}:where(.bgt-google-maps-link){display:none}@media screen and (max-width:768px){:where(.bgt-google-maps-link){display:block}}:where([data-bgt=gallery]) :where(.bgt-gallery){block-size:0;inline-size:100%;overflow:hidden;padding:54% 0 0;position:relative}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery__group){block-size:100%;inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute;z-index:0}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery__item){block-size:100%;display:block;inline-size:100%;margin:0;padding:0;pointer-events:none}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery__img){block-size:100%;inline-size:100%;position:relative;z-index:0}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery__img) :where(img){block-size:100%;display:block;inline-size:100%;-o-object-fit:cover;object-fit:cover}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery__caption){inline-size:100%;inset-block-end:0;inset-inline-start:0;position:absolute;z-index:1}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery__caption):empty{display:none}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery-ctrl){inline-size:100%;inset-block-start:50%;inset-inline-start:0;position:absolute}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery-ctrl) :where(.bgt-gallery-ctrl__prev,.bgt-gallery-ctrl__next){inset-block-start:0;position:absolute}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery-ctrl) :where(.bgt-gallery-ctrl__prev){inset-inline-start:0}:where([data-bgt=gallery]) :where(.bgt-gallery) :where(.bgt-gallery-ctrl) :where(.bgt-gallery-ctrl__next){inset-inline-end:0}:where([data-bgt=gallery]) :where([data-gallery-marker=thumbs])+:where(.bgt-gallery-marker){display:flex;flex-wrap:wrap;justify-content:center;margin:0;padding:0}:where([data-bgt=gallery]) :where([data-gallery-marker=thumbs])+:where(.bgt-gallery-marker) :where(li){background-position:50%;background-repeat:none;background-size:cover;block-size:60px;cursor:pointer;display:block;flex:0 0 auto;inline-size:60px;list-style:none;margin:0;padding:0}:where([data-bgt=gallery]) :where([data-gallery-marker=dot])+:where(.bgt-gallery-marker){display:flex;flex-wrap:wrap;justify-content:center;margin:0;padding:0}:where([data-bgt=gallery]) :where([data-gallery-marker=dot])+:where(.bgt-gallery-marker) :where(li){background-color:#000;background-image:none;block-size:10px;cursor:pointer;display:block;flex:0 0 auto;inline-size:10px;list-style:none;margin:0;padding:0}:where([data-bgt=gallery]) :where([data-gallery-marker=none])+:where(.bgt-gallery-marker){display:none}:where(.bge-embed-code){display:none}:where(.bge-embed-label){color:#999;display:block;font-weight:700;padding:20px;text-align:center}:where(.bge-embed-label):after{content:"埋め込みタグはエディタ上ではプレビューできません";display:block;font-size:.92em;font-weight:400}:where(.bgt-link__size):before{content:"("}:where(.bgt-link__size):after{content:")"}:where(.bgt-link__icon):where(.bgt-link__icon--after){display:none}:where(.bgt-btn-container){text-align:center}:where(.bgt-btn){-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.bgb-opt--mb-large{--bge-options-margin:var(--bge-options-margin-large)}.bgb-opt--mb-small{--bge-options-margin:var(--bge-options-margin-small)}.bgb-opt--mb-none{--bge-options-margin:var(--bge-options-margin-none)}.bgb-opt--bg-gray{--bge-options-bgcolor:var(--bge-options-bgcolor-gray);--bge-options-padding:var(--bge-options-padding-with-border-or-bg)}.bgb-opt--bg-blue{--bge-options-bgcolor:var(--bge-options-bgcolor-blue);--bge-options-padding:var(--bge-options-padding-with-border-or-bg)}.bgb-opt--bg-pink{--bge-options-bgcolor:var(--bge-options-bgcolor-pink);--bge-options-padding:var(--bge-options-padding-with-border-or-bg)}.bgb-opt--border-none{--bge-options-border:var(--bge-options-border-none)}.bgb-opt--border-bold{--bge-options-border:var(--bge-options-border-bold);--bge-options-padding:var(--bge-options-padding-with-border-or-bg)}.bgb-opt--border-thin{--bge-options-border:var(--bge-options-border-thin);--bge-options-padding:var(--bge-options-padding-with-border-or-bg)}.bgb-opt--border-dotted{--bge-options-border:var(--bge-options-border-dotted)}.bgb-opt--border-dotted,.bgb-opt--border-trbl{--bge-options-padding:var(--bge-options-padding-with-border-or-bg)}.bgb-opt--border-tb{border-inline-end-width:0;border-inline-start-width:0;padding-inline:0}.bgb-opt--border-lr{border-block-end-width:0;border-block-start-width:0;padding-block:0}.bgb-opt--border-trl{border-block-end-width:0;padding-block-end:0}.bgb-opt--border-rbl{border-block-start-width:0;padding-block-start:0}:where(.cke_editable){margin:0;padding:10px} \ No newline at end of file diff --git a/plugins/bc-burger-editor/webroot/css/colorbox.css b/plugins/bc-burger-editor/webroot/css/colorbox.css new file mode 100755 index 0000000000..8564a893c2 --- /dev/null +++ b/plugins/bc-burger-editor/webroot/css/colorbox.css @@ -0,0 +1,175 @@ +/* + Colorbox Core Style: + The following CSS is consistent between example themes and should not be altered. +*/ +#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} +#cboxWrapper {max-width:none;} +#cboxOverlay{position:fixed; width:100%; height:100%;} +#cboxMiddleLeft, #cboxBottomLeft{clear:left;} +#cboxContent{position:relative;} +#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;} +#cboxTitle{margin:0;} +#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;} +#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} +.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;} +.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;} +#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;} + +/* + User Style: + Change the following styles to modify the appearance of Colorbox. They are + ordered & tabbed in a way that represents the nesting of the generated HTML. +*/ +#cboxOverlay{background: rgba(10,10,10,.85);} +#colorbox{outline:0;} + #cboxContent{margin:50px;background:#000;} + .cboxIframe{background:#fff;} + #cboxError{padding:50px; border:1px solid #fff;} + #cboxLoadedContent{border:2px solid #fff; background:#fff;} + #cboxTitle{position:absolute; top:-20px; left:0; color:#fff;} + #cboxCurrent{ + position:absolute; + bottom: -40px; + left: 47.5%; + color:#fff; + line-height: 1; + + } + #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;} + + /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */ + #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; } + + /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */ + #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;} + + #cboxSlideshow { + position: absolute; + top: -20px; + right: 90px; + color: #fff; + } + #cboxPrevious { + position: absolute; + top: 45%; + left: -40px; + text-indent:-9999px; + width: 40px; + height: 40px; + outline: none; + border: none; + } + #cboxNext { + position:absolute; + top:45%; + right:-50px; + text-indent:-9999px; + width: 40px; + height: 40px; + outline: none; + border: none; + } + #cboxNext::after, + #cboxPrevious::after { + display: block; + content: ""; + position: absolute; + top: 0; + left: 0; + width: 25px; + height: 25px; + border-top: solid 2px #fff; + border-right: solid 2px #fff; + } + #cboxPrevious::after { + transform: rotate(225deg); + -webkit-transform: rotate(225deg); + -moz-transform: rotate(225deg); + -ms-transform: rotate(225deg); + } + #cboxNext::after { + transform: rotate(45deg); + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -ms-transform: rotate(45deg); + } + #cboxClose { + position: absolute; + top: -50px; + right: 0px; + display: block; + text-indent: -9999px; + outline: none; + border: none; + width: 25px; + height: 25px; + border: 2px solid #ffffff; + border-radius: 50%; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + -ms-border-radius: 50%; + padding: 18px; + background: rgba(0,0,0,.1); + } + #cboxClose::before, + #cboxClose::after { + content: ""; + display: inline-block; + position: absolute; + top: 6px; + right: 17px; + transition: all 0.3s; + -webkit-transition: all 0.3s; + -moz-transition: all 0.3s; + -ms-transition: all 0.3s; + background: #ffffff; + width: 2px; + height: 25px; + } + #cboxClose::before { + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + -moz-transform: rotate(45deg); + -ms-transform: rotate(45deg); + } + #cboxClose::after { + transform: rotate(135deg); + -webkit-transform: rotate(135deg); + -moz-transform: rotate(135deg); + -ms-transform: rotate(135deg); + } + #cboxPrevious:hover, + #cboxNext:hover, + #cboxClose:hover { + opacity: .7; + -webkit-opacity: .7; + -moz-opacity: .7; + -ms-opacity: .7; + } + + @media screen and (max-width: 768px) { + #cboxClose { + top: -50px; + width: 35px; + height: 35px; + } + #cboxContent { + margin: 50px 0; + } + #cboxPrevious { + top: auto; + bottom: -60px; + left: 0; + } + #cboxNext { + top: auto; + bottom: -60px; + right: 0; + } + #cboxPrevious::after { + left: 12%; + } + #cboxNext::after { + left: 25%; + } + } diff --git a/plugins/bc-burger-editor/webroot/css/images/controls.png b/plugins/bc-burger-editor/webroot/css/images/controls.png new file mode 100755 index 0000000000..e1e97982a6 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/css/images/controls.png differ diff --git a/plugins/bc-burger-editor/webroot/css/images/loading.gif b/plugins/bc-burger-editor/webroot/css/images/loading.gif new file mode 100755 index 0000000000..19c67bbd04 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/css/images/loading.gif differ diff --git a/plugins/bc-burger-editor/webroot/fonts/.gitkeep b/plugins/bc-burger-editor/webroot/fonts/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/bc-burger-editor/webroot/fonts/LICENSE-OFL-1.1 b/plugins/bc-burger-editor/webroot/fonts/LICENSE-OFL-1.1 new file mode 100644 index 0000000000..181934d9a1 --- /dev/null +++ b/plugins/bc-burger-editor/webroot/fonts/LICENSE-OFL-1.1 @@ -0,0 +1,43 @@ +SIL OPEN FONT LICENSE + +Version 1.1 - 26 February 2007 + +PREAMBLE + +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS + +"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright statement(s). + +"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or substituting — in part or in whole — any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION + +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/plugins/bc-burger-editor/webroot/fonts/fontawesome-webfont.woff2 b/plugins/bc-burger-editor/webroot/fonts/fontawesome-webfont.woff2 new file mode 100755 index 0000000000..7eb74fd127 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/fonts/fontawesome-webfont.woff2 differ diff --git a/plugins/bc-burger-editor/webroot/fonts/icons.woff b/plugins/bc-burger-editor/webroot/fonts/icons.woff new file mode 100644 index 0000000000..4a2228d8a2 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/fonts/icons.woff differ diff --git a/plugins/bc-burger-editor/webroot/img/bg-noimage.gif b/plugins/bc-burger-editor/webroot/img/bg-noimage.gif new file mode 100755 index 0000000000..073adde68b Binary files /dev/null and b/plugins/bc-burger-editor/webroot/img/bg-noimage.gif differ diff --git a/plugins/bc-burger-editor/webroot/img/bg-sample.pdf b/plugins/bc-burger-editor/webroot/img/bg-sample.pdf new file mode 100755 index 0000000000..9ab1b5f611 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/img/bg-sample.pdf differ diff --git a/plugins/bc-burger-editor/webroot/img/bg-sample.png b/plugins/bc-burger-editor/webroot/img/bg-sample.png new file mode 100755 index 0000000000..8c9d9935f5 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/img/bg-sample.png differ diff --git a/plugins/bc-burger-editor/webroot/img/change.png b/plugins/bc-burger-editor/webroot/img/change.png new file mode 100755 index 0000000000..ed1a32b571 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/img/change.png differ diff --git a/plugins/bc-burger-editor/webroot/img/copied-block.svg b/plugins/bc-burger-editor/webroot/img/copied-block.svg new file mode 100644 index 0000000000..95d04435b1 --- /dev/null +++ b/plugins/bc-burger-editor/webroot/img/copied-block.svg @@ -0,0 +1 @@ +copy \ No newline at end of file diff --git a/plugins/bc-burger-editor/webroot/img/edit.png b/plugins/bc-burger-editor/webroot/img/edit.png new file mode 100755 index 0000000000..574e282847 Binary files /dev/null and b/plugins/bc-burger-editor/webroot/img/edit.png differ diff --git a/plugins/bc-burger-editor/webroot/js/admin/.gitkeep b/plugins/bc-burger-editor/webroot/js/admin/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/plugins/bc-burger-editor/webroot/js/admin/burger_editor.js b/plugins/bc-burger-editor/webroot/js/admin/burger_editor.js new file mode 100644 index 0000000000..238cdef2b8 --- /dev/null +++ b/plugins/bc-burger-editor/webroot/js/admin/burger_editor.js @@ -0,0 +1,88 @@ +/** +* BurgerEditor v3.5.0-alpha.2 +* +* Copyright: D-ZERO +* License: (MIT OR Apache-2.0) AND OFL-1.1 +*/ +;(function () {(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o(((e,t)=>{var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof global==`object`&&global)||n(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),d=o(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),f=o(((e,t)=>{t.exports=!d()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})})),p=o(((e,t)=>{t.exports=!d()(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),m=o(((e,t)=>{var n=p(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),h=o((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),g=o(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),_=o(((e,t)=>{var n=p(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}})),v=o(((e,t)=>{var n=_(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),y=o(((e,t)=>{var n=_(),r=d(),i=v(),a=Object,o=n(``.split);t.exports=r(function(){return!a(`z`).propertyIsEnumerable(0)})?function(e){return i(e)===`String`?o(e,``):a(e)}:a})),b=o(((e,t)=>{t.exports=function(e){return e==null}})),x=o(((e,t)=>{var n=b(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),S=o(((e,t)=>{var n=y(),r=x();t.exports=function(e){return n(r(e))}})),C=o(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),w=o(((e,t)=>{var n=C();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),T=o(((e,t)=>{var n=u(),r=C(),i=function(e){return r(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}})),E=o(((e,t)=>{t.exports=_()({}.isPrototypeOf)})),D=o(((e,t)=>{var n=u().navigator,r=n&&n.userAgent;t.exports=r?String(r):``})),O=o(((e,t)=>{var n=u(),r=D(),i=n.process,a=n.Deno,o=i&&i.versions||a&&a.version,s=o&&o.v8,c,l;s&&(c=s.split(`.`),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),t.exports=l})),k=o(((e,t)=>{var n=O(),r=d(),i=u().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol(`symbol detection`);return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})})),A=o(((e,t)=>{t.exports=k()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),j=o(((e,t)=>{var n=T(),r=C(),i=E(),a=A(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),M=o(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return`Object`}}})),N=o(((e,t)=>{var n=C(),r=M(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),P=o(((e,t)=>{var n=N(),r=b();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),F=o(((e,t)=>{var n=m(),r=C(),i=w(),a=TypeError;t.exports=function(e,t){var o,s;if(t===`string`&&r(o=e.toString)&&!i(s=n(o,e))||r(o=e.valueOf)&&!i(s=n(o,e))||t!==`string`&&r(o=e.toString)&&!i(s=n(o,e)))return s;throw new a(`Can't convert object to primitive value`)}})),I=o(((e,t)=>{t.exports=!1})),L=o(((e,t)=>{var n=u(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),R=o(((e,t)=>{var n=I(),r=u(),i=L(),a=`__core-js_shared__`,o=t.exports=r[a]||i(a,{});(o.versions||=[]).push({version:`3.49.0`,mode:n?`pure`:`global`,copyright:`© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE`,source:`https://github.com/zloirock/core-js`})})),z=o(((e,t)=>{var n=R();t.exports=function(e,t){return n[e]||(n[e]=t||{})}})),B=o(((e,t)=>{var n=x(),r=Object;t.exports=function(e){return r(n(e))}})),V=o(((e,t)=>{var n=_(),r=B(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),ee=o(((e,t)=>{var n=_(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),H=o(((e,t)=>{var n=u(),r=z(),i=V(),a=ee(),o=k(),s=A(),c=n.Symbol,l=r(`wks`),d=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(e){return i(l,e)||(l[e]=o&&i(c,e)?c[e]:d(`Symbol.`+e)),l[e]}})),te=o(((e,t)=>{var n=m(),r=w(),i=j(),a=P(),o=F(),s=H(),c=TypeError,l=s(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var s=a(e,l),u;if(s){if(t===void 0&&(t=`default`),u=n(s,e,t),!r(u)||i(u))return u;throw new c(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),o(e,t)}})),ne=o(((e,t)=>{var n=te(),r=j();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),U=o(((e,t)=>{var n=u(),r=w(),i=n.document,a=r(i)&&r(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}})),re=o(((e,t)=>{var n=f(),r=d(),i=U();t.exports=!n&&!r(function(){return Object.defineProperty(i(`div`),"a",{get:function(){return 7}}).a!==7})})),W=o((e=>{var t=f(),n=m(),r=h(),i=g(),a=S(),o=ne(),s=V(),c=re(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=a(e),t=o(t),c)try{return l(e,t)}catch{}if(s(e,t))return i(!n(r.f,e,t),e[t])}})),ie=o(((e,t)=>{var n=f(),r=d();t.exports=n&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})})),G=o(((e,t)=>{var n=w(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),K=o((e=>{var t=f(),n=re(),r=ie(),i=G(),a=ne(),o=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=`enumerable`,u=`configurable`,d=`writable`;e.f=t?r?function(e,t,n){if(i(e),t=a(t),i(n),typeof e==`function`&&t===`prototype`&&`value`in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:l in n?n[l]:r[l],writable:!1})}return s(e,t,n)}:s:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return s(e,t,r)}catch{}if(`get`in r||`set`in r)throw new o(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),ae=o(((e,t)=>{var n=f(),r=K(),i=g();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),oe=o(((e,t)=>{var n=f(),r=V(),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(i,`name`);t.exports={EXISTS:o,PROPER:o&&function(){}.name===`something`,CONFIGURABLE:o&&(!n||n&&a(i,`name`).configurable)}})),se=o(((e,t)=>{var n=_(),r=C(),i=R(),a=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource})),ce=o(((e,t)=>{var n=u(),r=C(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))})),le=o(((e,t)=>{var n=z(),r=ee(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),ue=o(((e,t)=>{t.exports={}})),de=o(((e,t)=>{var n=ce(),r=u(),i=w(),a=ae(),o=V(),s=R(),c=le(),l=ue(),d=`Object already initialized`,f=r.TypeError,p=r.WeakMap,m,h,g,_=function(e){return g(e)?h(e):m(e,{})},v=function(e){return function(t){var n;if(!i(t)||(n=h(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(n||s.state){var y=s.state||=new p;y.get=y.get,y.has=y.has,y.set=y.set,m=function(e,t){if(y.has(e))throw new f(d);return t.facade=e,y.set(e,t),t},h=function(e){return y.get(e)||{}},g=function(e){return y.has(e)}}else{var b=c(`state`);l[b]=!0,m=function(e,t){if(o(e,b))throw new f(d);return t.facade=e,a(e,b,t),t},h=function(e){return o(e,b)?e[b]:{}},g=function(e){return o(e,b)}}t.exports={set:m,get:h,has:g,enforce:_,getterFor:v}})),fe=o(((e,t)=>{var n=_(),r=d(),i=C(),a=V(),o=f(),s=oe().CONFIGURABLE,c=se(),l=de(),u=l.enforce,p=l.get,m=String,h=Object.defineProperty,g=n(``.slice),v=n(``.replace),y=n([].join),b=o&&!r(function(){return h(function(){},`length`,{value:8}).length!==8}),x=String(String).split(`String`),S=t.exports=function(e,t,n){g(m(t),0,7)===`Symbol(`&&(t=`[`+v(m(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!a(e,`name`)||s&&e.name!==t)&&(o?h(e,`name`,{value:t,configurable:!0}):e.name=t),b&&n&&a(n,`arity`)&&e.length!==n.arity&&h(e,`length`,{value:n.arity});try{n&&a(n,`constructor`)&&n.constructor?o&&h(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=u(e);return a(r,`source`)||(r.source=y(x,typeof t==`string`?t:``)),e};Function.prototype.toString=S(function(){return i(this)&&p(this).source||c(this)},`toString`)})),q=o(((e,t)=>{var n=C(),r=K(),i=fe(),a=L();t.exports=function(e,t,o,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(n(o)&&i(o,l,s),s.global)c?e[t]=o:a(t,o);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}})),pe=o(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}})),me=o(((e,t)=>{var n=pe();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),he=o(((e,t)=>{var n=me(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),ge=o(((e,t)=>{var n=me(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),J=o(((e,t)=>{var n=ge();t.exports=function(e){return n(e.length)}})),_e=o(((e,t)=>{var n=S(),r=he(),i=J(),a=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}})),ve=o(((e,t)=>{var n=_(),r=V(),i=S(),a=_e().indexOf,o=ue(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),ye=o(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),be=o((e=>{var t=ve(),n=ye().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),xe=o((e=>{e.f=Object.getOwnPropertySymbols})),Se=o(((e,t)=>{var n=T(),r=_(),i=be(),a=xe(),o=G(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),Ce=o(((e,t)=>{var n=V(),r=Se(),i=W(),a=K();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u{var n=d(),r=C(),i=/#|\.prototype\./,a=function(e,t){var i=s[o(e)];return i===l?!0:i===c?!1:r(t)?n(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;t.exports=a})),Y=o(((e,t)=>{var n=u(),r=W().f,i=ae(),a=q(),o=L(),s=Ce(),c=we();t.exports=function(e,t){var l=e.target,u=e.global,d=e.stat,f,p=u?n:d?n[l]||o(l,{}):n[l]&&n[l].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=r(p,m),h=_&&_.value):h=p[m],f=c(u?m:l+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;s(g,h)}(e.sham||h&&h.sham)&&i(g,`sham`,!0),a(p,m,g,e)}}})),Te=o(((e,t)=>{var n=H()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),Ee=o(((e,t)=>{var n=Te(),r=C(),i=v(),a=H()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,c=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=c(t=o(e),a))==`string`?n:s?i(t):(l=i(t))===`Object`&&r(t.callee)?`Arguments`:l}})),X=o(((e,t)=>{var n=Ee(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}})),De=o(((e,t)=>{var n=ve(),r=ye();t.exports=Object.keys||function(e){return n(e,r)}})),Oe=o((e=>{var t=f(),n=ie(),r=K(),i=G(),a=S(),o=De();e.f=t&&!n?Object.defineProperties:function(e,t){i(e);for(var n=a(t),s=o(t),c=s.length,l=0,u;c>l;)r.f(e,u=s[l++],n[u]);return e}})),ke=o(((e,t)=>{t.exports=T()(`document`,`documentElement`)})),Ae=o(((e,t)=>{var n=G(),r=Oe(),i=ye(),a=ue(),o=ke(),s=U(),c=le(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),m=function(){},h=function(e){return u+f+l+e+u+`/`+f+l},g=function(e){e.write(h(``)),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(h(`document.F=Object`)),n.close(),n.F},v,y=function(){try{v=new ActiveXObject(`htmlfile`)}catch{}y=typeof document<`u`?document.domain&&v?g(v):_():g(v);for(var e=i.length;e--;)delete y[d][i[e]];return y()};a[p]=!0,t.exports=Object.create||function(e,t){var i;return e===null?i=y():(m[d]=n(e),i=new m,m[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),je=o(((e,t)=>{t.exports=_()([].slice)})),Me=o(((e,t)=>{var n=v(),r=S(),i=be().f,a=je(),o=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch{return a(o)}};t.exports.f=function(e){return o&&n(e)===`Window`?s(e):i(r(e))}})),Ne=o(((e,t)=>{var n=fe(),r=K();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}})),Pe=o((e=>{e.f=H()})),Fe=o(((e,t)=>{t.exports=u()})),Ie=o(((e,t)=>{var n=Fe(),r=V(),i=Pe(),a=K().f;t.exports=function(e){var t=n.Symbol||={};r(t,e)||a(t,e,{value:i.f(e)})}})),Le=o(((e,t)=>{var n=m(),r=T(),i=H(),a=q();t.exports=function(){var e=r(`Symbol`),t=e&&e.prototype,o=t&&t.valueOf,s=i(`toPrimitive`);t&&!t[s]&&a(t,s,function(e){return n(o,this)},{arity:1})}})),Re=o(((e,t)=>{var n=K().f,r=V(),i=H()(`toStringTag`);t.exports=function(e,t,a){e&&!a&&(e=e.prototype),e&&!r(e,i)&&n(e,i,{configurable:!0,value:t})}})),ze=o(((e,t)=>{var n=v(),r=_();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),Be=o(((e,t)=>{var n=ze(),r=N(),i=p(),a=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:i?a(e,t):function(){return e.apply(t,arguments)}}})),Ve=o(((e,t)=>{var n=v();t.exports=Array.isArray||function(e){return n(e)===`Array`}})),He=o(((e,t)=>{var n=_(),r=d(),i=C(),a=Ee(),o=T(),s=se(),c=function(){},l=o(`Reflect`,`construct`),u=/^\s*(?:class|function)\b/,f=n(u.exec),p=!u.test(c),m=function(e){if(!i(e))return!1;try{return l(c,[],e),!0}catch{return!1}},h=function(e){if(!i(e))return!1;switch(a(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return p||!!f(u,s(e))}catch{return!0}};h.sham=!0,t.exports=!l||r(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?h:m})),Ue=o(((e,t)=>{var n=Ve(),r=He(),i=w(),a=H()(`species`),o=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,r(t)&&(t===o||n(t.prototype))?t=void 0:i(t)&&(t=t[a],t===null&&(t=void 0))),t===void 0?o:t}})),We=o(((e,t)=>{var n=Ue();t.exports=function(e,t){return new(n(e))(t===0?0:t)}})),Ge=o(((e,t)=>{var n=f(),r=K(),i=g();t.exports=function(e,t,a){n?r.f(e,t,i(0,a)):e[t]=a}})),Ke=o(((e,t)=>{var n=Be(),r=y(),i=B(),a=J(),o=We(),s=Ge(),c=function(e){var t=e===1,c=e===2,l=e===3,u=e===4,d=e===6,f=e===7,p=e===5||d;return function(m,h,g){for(var _=i(m),v=r(_),y=a(v),b=n(h,g),x=0,S=0,C=t?o(m,y):c||f?o(m,0):void 0,w,T;y>x;x++)if((p||x in v)&&(w=v[x],T=b(w,x,_),e))if(t)s(C,x,T);else if(T)switch(e){case 3:return!0;case 5:return w;case 6:return x;case 2:s(C,S++,w)}else switch(e){case 4:return!1;case 7:s(C,S++,w)}return d?-1:l||u?u:C}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}})),qe=o((()=>{var e=Y(),t=u(),n=m(),r=_(),i=I(),a=f(),o=k(),s=d(),c=V(),l=E(),p=G(),v=S(),y=ne(),b=X(),x=g(),C=Ae(),w=De(),T=be(),D=Me(),O=xe(),A=W(),j=K(),M=Oe(),N=h(),P=q(),F=Ne(),L=z(),R=le(),B=ue(),te=ee(),U=H(),re=Pe(),ie=Ie(),ae=Le(),oe=Re(),se=de(),ce=Ke().forEach,fe=R(`hidden`),pe=`Symbol`,me=`prototype`,he=se.set,ge=se.getterFor(pe),J=Object[me],_e=t.Symbol,ve=_e&&_e[me],ye=t.RangeError,Se=t.TypeError,Ce=t.QObject,we=A.f,Te=j.f,Ee=D.f,ke=N.f,je=r([].push),Fe=L(`symbols`),ze=L(`op-symbols`),Be=L(`wks`),Ve=!Ce||!Ce[me]||!Ce[me].findChild,He=function(e,t,n){var r=we(J,t);return r&&delete J[t],Te(e,t,n),r&&e!==J&&Te(J,t,r),e},Ue=a&&s(function(){return C(Te({},`a`,{get:function(){return Te(this,`a`,{value:7}).a}})).a!==7})?He:Te,We=function(e,t){var n=Fe[e]=C(ve);return he(n,{type:pe,tag:e,description:t}),a||(n.description=t),n},Ge=function(e,t,n){e===J&&Ge(ze,t,n),p(e);var r=y(t);return p(n),c(Fe,r)?((`enumerable`in n?!n.enumerable:!c(e,r)||c(e,fe)&&e[fe][r])?(c(e,fe)||Te(e,fe,x(1,C(null))),e[fe][r]=!0):(c(e,fe)&&e[fe][r]&&(e[fe][r]=!1),n=C(n,{enumerable:x(0,!1)})),Ue(e,r,n)):Te(e,r,n)},qe=function(e,t){p(e);var r=v(t);return ce(w(r).concat(Qe(r)),function(t){(!a||n(Ye,r,t))&&Ge(e,t,r[t])}),e},Je=function(e,t){return t===void 0?C(e):qe(C(e),t)},Ye=function(e){var t=y(e),r=n(ke,this,t);return this===J&&c(Fe,t)&&!c(ze,t)?!1:r||!c(this,t)||!c(Fe,t)||c(this,fe)&&this[fe][t]?r:!0},Xe=function(e,t){var n=v(e),r=y(t);if(!(n===J&&c(Fe,r)&&!c(ze,r))){var i=we(n,r);return i&&c(Fe,r)&&!(c(n,fe)&&n[fe][r])&&(i.enumerable=!0),i}},Ze=function(e){var t=Ee(v(e)),n=[];return ce(t,function(e){!c(Fe,e)&&!c(B,e)&&je(n,e)}),n},Qe=function(e){var t=e===J,n=Ee(t?ze:v(e)),r=[];return ce(n,function(e){c(Fe,e)&&(!t||c(J,e))&&je(r,Fe[e])}),r};o||(_e=function(){if(l(ve,this))throw new Se(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:b(arguments[0]),r=te(e),i=function(e){var a=this===void 0?t:this;a===J&&n(i,ze,e),c(a,fe)&&c(a[fe],r)&&(a[fe][r]=!1);var o=x(1,e);try{Ue(a,r,o)}catch(e){if(!(e instanceof ye))throw e;He(a,r,o)}};return a&&Ve&&Ue(J,r,{configurable:!0,set:i}),We(r,e)},ve=_e[me],P(ve,`toString`,function(){return ge(this).tag}),P(_e,`withoutSetter`,function(e){return We(te(e),e)}),N.f=Ye,j.f=Ge,M.f=qe,A.f=Xe,T.f=D.f=Ze,O.f=Qe,re.f=function(e){return We(U(e),e)},a&&(F(ve,`description`,{configurable:!0,get:function(){return ge(this).description}}),i||P(J,`propertyIsEnumerable`,Ye,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:_e}),ce(w(Be),function(e){ie(e)}),e({target:pe,stat:!0,forced:!o},{useSetter:function(){Ve=!0},useSimple:function(){Ve=!1}}),e({target:`Object`,stat:!0,forced:!o,sham:!a},{create:Je,defineProperty:Ge,defineProperties:qe,getOwnPropertyDescriptor:Xe}),e({target:`Object`,stat:!0,forced:!o},{getOwnPropertyNames:Ze}),ae(),oe(_e,pe),B[fe]=!0})),Je=o(((e,t)=>{t.exports=k()&&!!Symbol.for&&!!Symbol.keyFor})),Ye=o((()=>{var e=Y(),t=T(),n=V(),r=X(),i=z(),a=Je(),o=i(`string-to-symbol-registry`),s=i(`symbol-to-string-registry`);e({target:`Symbol`,stat:!0,forced:!a},{for:function(e){var i=r(e);if(n(o,i))return o[i];var a=t(`Symbol`)(i);return o[i]=a,s[a]=i,a}})})),Xe=o((()=>{var e=Y(),t=V(),n=j(),r=M(),i=z(),a=Je(),o=i(`symbol-to-string-registry`);e({target:`Symbol`,stat:!0,forced:!a},{keyFor:function(e){if(!n(e))throw TypeError(r(e)+` is not a symbol`);if(t(o,e))return o[e]}})})),Ze=o(((e,t)=>{var n=p(),r=Function.prototype,i=r.apply,a=r.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})})),Qe=o(((e,t)=>{var n=w(),r=de().get;t.exports=function(e){if(!n(e))return!1;var t=r(e);return!!t&&t.type===`RawJSON`}})),$e=o(((e,t)=>{var n=_(),r=V(),i=SyntaxError,a=parseInt,o=String.fromCharCode,s=n(``.charAt),c=n(``.slice),l=n(/./.exec),u={'\\"':`"`,"\\\\":`\\`,"\\/":`/`,"\\b":`\b`,"\\f":`\f`,"\\n":` +`,"\\r":`\r`,"\\t":` `},d=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;t.exports=function(e,t){for(var n=!0,p=``;t{t.exports=!d()(function(){var e=`9007199254740993`,t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})})),tt=o((()=>{var e=Y(),t=T(),n=Ze(),r=m(),i=_(),a=d(),o=Ve(),s=C(),c=Qe(),l=j(),u=v(),f=X(),p=je(),h=$e(),g=ee(),y=k(),b=et(),x=String,S=t(`JSON`,`stringify`),w=i(/./.exec),E=i(``.charAt),D=i(``.charCodeAt),O=i(``.replace),A=i(``.slice),M=i([].push),N=i(1.1.toString),P=/[\uD800-\uDFFF]/g,F=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,L=g(),R=L.length,z=!y||a(function(){var e=t(`Symbol`)(`stringify detection`);return S([e])!==`[null]`||S({a:e})!==`{}`||S(Object(e))!==`{}`}),B=a(function(){return S(`\udf06\ud834`)!==`"\\udf06\\ud834"`||S(`\udead`)!==`"\\udead"`}),V=z?function(e,t){var i=p(arguments),a=te(t);if(!(!s(a)&&(e===void 0||l(e))))return i[1]=function(e,t){if(s(a)&&(t=r(a,this,x(e),t)),!l(t))return t},n(S,null,i)}:S,H=function(e,t,n){var r=E(n,t-1),i=E(n,t+1);return w(F,e)&&!w(I,i)||w(I,e)&&!w(F,r)?`\\u`+N(D(e,0),16):e},te=function(e){if(s(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r{var e=Y(),t=k(),n=d(),r=xe(),i=B();e({target:`Object`,stat:!0,forced:!t||n(function(){r.f(1)})},{getOwnPropertySymbols:function(e){var t=r.f;return t?t(i(e)):[]}})})),rt=o((()=>{qe(),Ye(),Xe(),tt(),nt()})),it=o((()=>{var e=Y(),t=f(),n=u(),r=m(),i=_(),a=V(),o=C(),s=E(),c=X(),l=Ne(),d=Ce(),p=n.Symbol,h=p&&p.prototype;if(t&&o(p)&&(!(`description`in h)||p().description!==void 0)){var g={},v=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:c(arguments[0]),t=s(h,this)?new p(e):e===void 0?p():p(e);return e===``&&(g[t]=!0),t};d(v,p);var y=v.for;v.for={for:function(e){var t=c(e),n=r(y,this,t);return t===``&&(g[n]=!0),n}}.for,v.prototype=h,h.constructor=v;var b=String(p(`description detection`))===`Symbol(description detection)`,x=i(h.valueOf),S=i(h.toString),w=/^Symbol\((.*)\)[^)]+$/,T=i(``.replace),D=i(``.slice);l(h,`description`,{configurable:!0,get:function(){var e=x(this);if(a(g,e))return``;var t=S(e),n=b?D(t,7,-1):T(t,w,`$1`);return n===``?void 0:n}}),e({global:!0,constructor:!0,forced:!0},{Symbol:v})}})),at=o((()=>{var e=u(),t=Ie(),n=K().f,r=W().f,i=e.Symbol;if(t(`asyncDispose`),i){var a=r(i,`asyncDispose`);a.enumerable&&a.configurable&&a.writable&&n(i,`asyncDispose`,{value:a.value,enumerable:!1,configurable:!1,writable:!1})}})),ot=o((()=>{Ie()(`asyncIterator`)})),st=o((()=>{var e=u(),t=Ie(),n=K().f,r=W().f,i=e.Symbol;if(t(`dispose`),i){var a=r(i,`dispose`);a.enumerable&&a.configurable&&a.writable&&n(i,`dispose`,{value:a.value,enumerable:!1,configurable:!1,writable:!1})}})),ct=o((()=>{Ie()(`hasInstance`)})),lt=o((()=>{Ie()(`isConcatSpreadable`)})),ut=o((()=>{Ie()(`iterator`)})),dt=o((()=>{Ie()(`match`)})),ft=o((()=>{Ie()(`matchAll`)})),pt=o((()=>{Ie()(`replace`)})),mt=o((()=>{Ie()(`search`)})),ht=o((()=>{Ie()(`species`)})),gt=o((()=>{Ie()(`split`)})),_t=o((()=>{var e=Ie(),t=Le();e(`toPrimitive`),t()})),vt=o((()=>{var e=T(),t=Ie(),n=Re();t(`toStringTag`),n(e(`Symbol`),`Symbol`)})),yt=o((()=>{Ie()(`unscopables`)})),bt=o(((e,t)=>{var n=_(),r=N();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch{}}})),xt=o(((e,t)=>{var n=w();t.exports=function(e){return n(e)||e===null}})),St=o(((e,t)=>{var n=xt(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}})),Ct=o(((e,t)=>{var n=bt(),r=w(),i=x(),a=St();t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch{}return function(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)})),wt=o(((e,t)=>{var n=K().f;t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}})),Tt=o(((e,t)=>{var n=C(),r=w(),i=Ct();t.exports=function(e,t,a){var o,s;return i&&n(o=t.constructor)&&o!==a&&r(s=o.prototype)&&s!==a.prototype&&i(e,s),e}})),Et=o(((e,t)=>{var n=X();t.exports=function(e,t){return e===void 0?arguments.length<2?``:t:n(e)}})),Dt=o(((e,t)=>{var n=w(),r=ae();t.exports=function(e,t){n(t)&&`cause`in t&&r(e,`cause`,t.cause)}})),Ot=o(((e,t)=>{var n=_(),r=Error,i=n(``.replace),a=(function(e){return String(new r(e).stack)})(`zxcasd`),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);t.exports=function(e,t){if(s&&typeof e==`string`&&!r.prepareStackTrace)for(;t--;)e=i(e,o,``);return e}})),kt=o(((e,t)=>{var n=d(),r=g();t.exports=!n(function(){var e=Error(`a`);return`stack`in e?(Object.defineProperty(e,"stack",r(1,7)),e.stack!==7):!0})})),At=o(((e,t)=>{var n=ae(),r=Ot(),i=kt(),a=Error.captureStackTrace;t.exports=function(e,t,o,s){i&&(a?a(e,t):n(e,`stack`,r(o,s)))}})),jt=o(((e,t)=>{var n=T(),r=V(),i=ae(),a=E(),o=Ct(),s=Ce(),c=wt(),l=Tt(),u=Et(),d=Dt(),p=At(),m=f(),h=I();t.exports=function(e,t,f,g){var _=`stackTraceLimit`,v=g?2:1,y=e.split(`.`),b=y[y.length-1],x=n.apply(null,y);if(x){var S=x.prototype;if(!h&&r(S,`cause`)&&delete S.cause,!f)return x;var C=n(`Error`),w=t(function(e,t){var n=u(g?t:e,void 0),r=g?new x(e):new x;return n!==void 0&&i(r,`message`,n),p(r,w,r.stack,2),this&&a(S,this)&&l(r,this,w),arguments.length>v&&d(r,arguments[v]),r});if(w.prototype=S,b===`Error`?m&&_ in x&&(c(w,x,_),c(w,x,`prepareStackTrace`)):o?o(w,C):s(w,C,{name:!0}),s(w,x),!h)try{S.name!==b&&i(S,`name`,b),S.constructor=w}catch{}return w}}})),Mt=o((()=>{var e=Y(),t=u(),n=Ze(),r=jt(),i=`WebAssembly`,a=t[i],o=Error(`e`,{cause:7}).cause!==7,s=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(a&&a[t]){var s={};s[t]=r(i+`.`+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},s)}};s(`Error`,function(e){return function(t){return n(e,this,arguments)}}),s(`EvalError`,function(e){return function(t){return n(e,this,arguments)}}),s(`RangeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`ReferenceError`,function(e){return function(t){return n(e,this,arguments)}}),s(`SyntaxError`,function(e){return function(t){return n(e,this,arguments)}}),s(`TypeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`URIError`,function(e){return function(t){return n(e,this,arguments)}}),c(`CompileError`,function(e){return function(t){return n(e,this,arguments)}}),c(`LinkError`,function(e){return function(t){return n(e,this,arguments)}}),c(`RuntimeError`,function(e){return function(t){return n(e,this,arguments)}})})),Nt=o((()=>{var e=Y(),t=T(),n=w(),r=Ee(),i=d(),a=`Error`,o=`DOMException`,s=Object.setPrototypeOf||{}.__proto__,c=t(o),l=Error,u=l.isError;e({target:`Error`,stat:!0,sham:!0,forced:!u||!s||i(function(){return c&&!u(new c(o))||!u(new l(a,{cause:function(){}}))||u(t(`Object`,`create`)(l.prototype))})},{isError:function(e){if(!n(e))return!1;var t=r(e);return t===a||t===o}})})),Pt=o(((e,t)=>{var n=f(),r=d(),i=G(),a=Et(),o=Error.prototype.toString;t.exports=r(function(){if(n){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if(o.call(e)!==`true`)return!0}return o.call({message:1,name:2})!==`2: 1`||o.call({})!==`Error`})?function(){var e=i(this),t=a(e.name,`Error`),n=a(e.message);return t?n?t+`: `+n:t:n}:o})),Ft=o((()=>{var e=q(),t=Pt(),n=Error.prototype;n.toString!==t&&e(n,`toString`,t)})),It=o(((e,t)=>{t.exports=!d()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})})),Lt=o(((e,t)=>{var n=V(),r=C(),i=B(),a=le(),o=It(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),Rt=o(((e,t)=>{t.exports={}})),zt=o(((e,t)=>{var n=H(),r=Rt(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),Bt=o(((e,t)=>{var n=Ee(),r=P(),i=b(),a=Rt(),o=H()(`iterator`);t.exports=function(e){if(!i(e))return r(e,o)||r(e,`@@iterator`)||a[n(e)]}})),Vt=o(((e,t)=>{var n=m(),r=N(),i=G(),a=M(),o=Bt(),s=TypeError;t.exports=function(e,t){var c=arguments.length<2?o(e):t;if(r(c))return i(n(c,e));throw new s(a(e)+` is not iterable`)}})),Ht=o(((e,t)=>{var n=m(),r=G(),i=P();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),Ut=o(((e,t)=>{var n=Be(),r=m(),i=G(),a=M(),o=zt(),s=J(),c=E(),l=Vt(),u=Bt(),d=Ht(),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},h=p.prototype;t.exports=function(e,t,m){var g=m&&m.that,_=!!(m&&m.AS_ENTRIES),v=!!(m&&m.IS_RECORD),y=!!(m&&m.IS_ITERATOR),b=!!(m&&m.INTERRUPTED),x=n(t,g),S,C,w,T,E,D,O,k=function(e){var t=S;return S=void 0,t&&d(t,`normal`),new p(!0,e)},A=function(e){return _?(i(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=u(e),!C)throw new f(a(e)+` is not iterable`);if(o(C)){for(w=0,T=s(e);T>w;w++)if(E=A(e[w]),E&&c(h,E))return E;return new p(!1)}S=l(e,C)}for(D=v?e.next:S.next;!(O=r(D,S)).done;){var j=O.value;try{E=A(j)}catch(e){if(S)d(S,`throw`,e);else throw e}if(typeof E==`object`&&E&&c(h,E))return E}return new p(!1)}})),Wt=o((()=>{var e=Y(),t=E(),n=Lt(),r=Ct(),i=Ce(),a=Ae(),o=ae(),s=g(),c=Dt(),l=At(),u=Ut(),d=Et(),f=H()(`toStringTag`),p=Error,m=[].push,h=function(e,i){var s=t(_,this),g;r?g=r(new p,s?n(this):_):(g=s?this:a(_),o(g,f,`Error`)),i!==void 0&&o(g,`message`,d(i)),l(g,h,g.stack,1),arguments.length>2&&c(g,arguments[2]);var v=[];return u(e,m,{that:v}),o(g,`errors`,v),g};r?r(h,p):i(h,p,{name:!0});var _=h.prototype=a(p.prototype,{constructor:s(1,h),message:s(1,``),name:s(1,`AggregateError`)});e({global:!0,constructor:!0,arity:2},{AggregateError:h})})),Gt=o((()=>{Wt()})),Kt=o((()=>{var e=Y(),t=T(),n=Ze(),r=d(),i=jt(),a=`AggregateError`,o=t(a),s=!r(function(){return o([1]).errors[0]!==1})&&r(function(){return o([1],a,{cause:7}).cause!==7});e({global:!0,constructor:!0,arity:2,forced:s},{AggregateError:i(a,function(e){return function(t,r){return n(e,this,arguments)}},s,!0)})})),qt=o((()=>{var e=Y(),t=u(),n=E(),r=Lt(),i=Ct(),a=Ce(),o=Ae(),s=ae(),c=g(),l=At(),f=Et(),p=H(),m=d(),h=I(),_=t.SuppressedError,v=p(`toStringTag`),y=Error,b=!!_&&_.length!==3,x=!!_&&m(function(){return new _(1,2,3,{cause:4}).cause===4}),S=b||x,C=function(e,t,a){var c=n(w,this),u;return i?u=S&&(!c||r(this)===w)?new _:i(new y,c?r(this):w):(u=c?this:o(w),s(u,v,`Error`)),a!==void 0&&s(u,`message`,f(a)),l(u,C,u.stack,1),s(u,`error`,e),s(u,`suppressed`,t),u};i?i(C,y):a(C,y,{name:!0});var w=C.prototype=S?_.prototype:o(y.prototype,{constructor:c(1,C),message:c(1,``),name:c(1,`SuppressedError`)});S&&!h&&(w.constructor=C),e({global:!0,constructor:!0,arity:3,forced:S},{SuppressedError:C})})),Jt=o(((e,t)=>{var n=H(),r=Ae(),i=K().f,a=n(`unscopables`),o=Array.prototype;o[a]===void 0&&i(o,a,{configurable:!0,value:r(null)}),t.exports=function(e){o[a][e]=!0}})),Yt=o((()=>{var e=Y(),t=B(),n=J(),r=me(),i=Jt();e({target:`Array`,proto:!0},{at:function(e){var i=t(this),a=n(i),o=r(e),s=o>=0?o:a+o;return s<0||s>=a?void 0:i[s]}}),i(`at`)})),Xt=o(((e,t)=>{var n=TypeError,r=9007199254740991;t.exports=function(e){if(e>r)throw new n(`Maximum allowed index exceeded`);return e}})),Zt=o(((e,t)=>{var n=f(),r=Ve(),i=TypeError,a=Object.getOwnPropertyDescriptor;t.exports=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(r(e)&&!a(e,`length`).writable)throw new i(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}})),Qt=o(((e,t)=>{var n=d(),r=H(),i=O(),a=r(`species`);t.exports=function(e){return i>=51||!n(function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},t[e](Boolean).foo!==1})}})),$t=o((()=>{var e=Y(),t=d(),n=Ve(),r=w(),i=B(),a=J(),o=Xt(),s=Ge(),c=Zt(),l=We(),u=Qt(),f=H(),p=O(),m=f(`isConcatSpreadable`),h=p>=51||!t(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),g=function(e){if(!r(e))return!1;var t=e[m];return t===void 0?n(e):!!t};e({target:`Array`,proto:!0,arity:1,forced:!h||!u(`concat`)},{concat:function(e){var t=i(this),n=l(t,0),r=0,u,d,f,p,m;for(u=-1,f=arguments.length;u{var n=M(),r=TypeError;t.exports=function(e,t){if(!delete e[t])throw new r(`Cannot delete property `+n(t)+` of `+n(e))}})),tn=o(((e,t)=>{var n=B(),r=he(),i=J(),a=en(),o=Math.min;t.exports=[].copyWithin||function(e,t){var s=n(this),c=i(s),l=r(e,c),u=r(t,c),d=arguments.length>2?arguments[2]:void 0,f=o((d===void 0?c:r(d,c))-u,c-l),p=1;for(u0;)u in s?s[l]=s[u]:a(s,l),l+=p,u+=p;return s}})),nn=o((()=>{var e=Y(),t=tn(),n=Jt();e({target:`Array`,proto:!0},{copyWithin:t}),n(`copyWithin`)})),rn=o(((e,t)=>{var n=d();t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}})),an=o((()=>{var e=Y(),t=Ke().every;e({target:`Array`,proto:!0,forced:!rn()(`every`)},{every:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),on=o(((e,t)=>{var n=B(),r=he(),i=J();t.exports=function(e){for(var t=n(this),a=i(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,a),c=o>2?arguments[2]:void 0,l=c===void 0?a:r(c,a);l>s;)t[s++]=e;return t}})),sn=o((()=>{var e=Y(),t=on(),n=Jt();e({target:`Array`,proto:!0},{fill:t}),n(`fill`)})),cn=o((()=>{var e=Y(),t=Ke().filter;e({target:`Array`,proto:!0,forced:!Qt()(`filter`)},{filter:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),ln=o((()=>{var e=Y(),t=Ke().find,n=Jt(),r=`find`,i=!0;r in[]&&[,][r](function(){i=!1}),e({target:`Array`,proto:!0,forced:i},{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)})),un=o((()=>{var e=Y(),t=Ke().findIndex,n=Jt(),r=`findIndex`,i=!0;r in[]&&[,][r](function(){i=!1}),e({target:`Array`,proto:!0,forced:i},{findIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)})),dn=o(((e,t)=>{var n=Be(),r=y(),i=B(),a=J(),o=function(e){var t=e===1;return function(o,s,c){for(var l=i(o),u=r(l),d=a(u),f=n(s,c),p,m;d-- >0;)if(p=u[d],m=f(p,d,l),m)switch(e){case 0:return p;case 1:return d}return t?-1:void 0}};t.exports={findLast:o(0),findLastIndex:o(1)}})),fn=o((()=>{var e=Y(),t=dn().findLast,n=Jt();e({target:`Array`,proto:!0},{findLast:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`findLast`)})),pn=o((()=>{var e=Y(),t=dn().findLastIndex,n=Jt();e({target:`Array`,proto:!0},{findLastIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`findLastIndex`)})),mn=o(((e,t)=>{var n=Ve(),r=J(),i=Xt(),a=Be(),o=Ge(),s=function(e,t,c,l,u,d,f,p){for(var m=u,h=0,g=f?a(f,p):!1,_,v;h0&&n(_)?(v=r(_),m=s(e,t,_,v,m,d-1)-1):(i(m+1),o(e,m,_)),m++),h++;return m};t.exports=s})),hn=o((()=>{var e=Y(),t=mn(),n=B(),r=J(),i=me(),a=We();e({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,o=n(this),s=r(o),c=e===void 0?1:i(e),l=a(o,0);return t(l,o,o,s,0,c),l}})})),gn=o((()=>{var e=Y(),t=mn(),n=N(),r=B(),i=J(),a=We();e({target:`Array`,proto:!0},{flatMap:function(e){var o=r(this),s=i(o),c;return n(e),c=a(o,0),t(c,o,o,s,0,1,e,arguments.length>1?arguments[1]:void 0),c}})})),_n=o(((e,t)=>{var n=Ke().forEach;t.exports=rn()(`forEach`)?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})),vn=o((()=>{var e=Y(),t=_n();e({target:`Array`,proto:!0,forced:[].forEach!==t},{forEach:t})})),yn=o(((e,t)=>{var n=G(),r=Ht();t.exports=function(e,t,i,a){try{return a?t(n(i)[0],i[1]):t(i)}catch(t){r(e,`throw`,t)}}})),bn=o(((e,t)=>{var n=Be(),r=m(),i=B(),a=yn(),o=zt(),s=He(),c=J(),l=Ge(),u=Zt(),d=Vt(),f=Bt(),p=Ht(),h=Array;t.exports=function(e){var t=s(this),m=arguments.length,g=m>1?arguments[1]:void 0,_=g!==void 0;_&&(g=n(g,m>2?arguments[2]:void 0));var v=i(e),y=f(v),b=0,x,S,C,w,T,E;if(y&&!(this===h&&o(y)))for(S=t?new this:[],w=d(v,y),T=w.next;!(C=r(T,w)).done;b++){E=_?a(w,g,[C.value,b],!0):C.value;try{l(S,b,E)}catch(e){p(w,`throw`,e)}}else for(x=c(v),S=t?new this(x):h(x);x>b;b++)E=_?g(v[b],b):v[b],l(S,b,E);return u(S,b),S}})),xn=o(((e,t)=>{var n=H()(`iterator`),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch{}t.exports=function(e,t){try{if(!t&&!r)return!1}catch{return!1}var i=!1;try{var a={};a[n]=function(){return{next:function(){return{done:i=!0}}}},e(a)}catch{}return i}})),Sn=o((()=>{var e=Y(),t=bn();e({target:`Array`,stat:!0,forced:!xn()(function(e){Array.from(e)})},{from:t})})),Cn=o((()=>{var e=Y(),t=_e().includes,n=d(),r=Jt(),i=n(function(){return![,].includes()}),a=n(function(){return[,1].includes(void 0,1)});e({target:`Array`,proto:!0,forced:i||a},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r(`includes`)})),wn=o((()=>{var e=Y(),t=ze(),n=_e().indexOf,r=rn(),i=t([].indexOf),a=!!i&&1/i([1],1,-0)<0;e({target:`Array`,proto:!0,forced:a||!r(`indexOf`)},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return a?i(this,e,t)||0:n(this,e,t)}})})),Tn=o((()=>{Y()({target:`Array`,stat:!0},{isArray:Ve()})})),En=o(((e,t)=>{var n=d(),r=C(),i=w(),a=Ae(),o=Lt(),s=q(),c=H(),l=I(),u=c(`iterator`),f=!1,p,m,h;[].keys&&(h=[].keys(),`next`in h?(m=o(o(h)),m!==Object.prototype&&(p=m)):f=!0),!i(p)||n(function(){var e={};return p[u].call(e)!==e})?p={}:l&&(p=a(p)),r(p[u])||s(p,u,function(){return this}),t.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}})),Dn=o(((e,t)=>{var n=En().IteratorPrototype,r=Ae(),i=g(),a=Re(),o=Rt(),s=function(){return this};t.exports=function(e,t,c,l){var u=t+` Iterator`;return e.prototype=r(n,{next:i(+!l,c)}),a(e,u,!1,!0),o[u]=s,e}})),On=o(((e,t)=>{var n=Y(),r=m(),i=I(),a=oe(),o=C(),s=Dn(),c=Lt(),l=Ct(),u=Re(),d=ae(),f=q(),p=H(),h=Rt(),g=En(),_=a.PROPER,v=a.CONFIGURABLE,y=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,x=p(`iterator`),S=`keys`,w=`values`,T=`entries`,E=function(){return this};t.exports=function(e,t,a,p,m,g,C){s(a,t,p);var D=function(e){if(e===m&&M)return M;if(!b&&e&&e in A)return A[e];switch(e){case S:return function(){return new a(this,e)};case w:return function(){return new a(this,e)};case T:return function(){return new a(this,e)}}return function(){return new a(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[x]||A[`@@iterator`]||m&&A[m],M=!b&&j||D(m),N=t===`Array`&&A.entries||j,P,F,I;if(N&&(P=c(N.call(new e)),P!==Object.prototype&&P.next&&(!i&&c(P)!==y&&(l?l(P,y):o(P[x])||f(P,x,E)),u(P,O,!0,!0),i&&(h[O]=E))),_&&m===w&&j&&j.name!==w&&(!i&&v?d(A,`name`,w):(k=!0,M=function(){return r(j,this)})),m)if(F={values:D(w),keys:g?M:D(S),entries:D(T)},C)for(I in F)(b||k||!(I in A))&&f(A,I,F[I]);else n({target:t,proto:!0,forced:b||k},F);return(!i||C)&&A[x]!==M&&f(A,x,M,{name:m}),h[t]=M,F}})),kn=o(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),An=o(((e,t)=>{var n=S(),r=Jt(),i=Rt(),a=de(),o=K().f,s=On(),c=kn(),l=I(),u=f(),d=`Array Iterator`,p=a.set,m=a.getterFor(d);t.exports=s(Array,`Array`,function(e,t){p(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case`keys`:return c(n,!1);case`values`:return c(t[n],!1)}return c([n,t[n]],!1)},`values`);var h=i.Arguments=i.Array;if(r(`keys`),r(`values`),r(`entries`),!l&&u&&h.name!==`values`)try{o(h,`name`,{value:`values`})}catch{}})),jn=o((()=>{var e=Y(),t=_(),n=y(),r=S(),i=rn(),a=t([].join);e({target:`Array`,proto:!0,forced:n!==Object||!i(`join`,`,`)},{join:function(e){return a(r(this),e===void 0?`,`:e)}})})),Mn=o(((e,t)=>{var n=Ze(),r=S(),i=me(),a=J(),o=rn(),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o(`lastIndexOf`);t.exports=l||!u?function(e){if(l)return n(c,this,arguments)||0;var t=r(this),o=a(t);if(o===0)return-1;var u=o-1;for(arguments.length>1&&(u=s(u,i(arguments[1]))),u<0&&(u=o+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:c})),Nn=o((()=>{var e=Y(),t=Mn();e({target:`Array`,proto:!0,forced:t!==[].lastIndexOf},{lastIndexOf:t})})),Pn=o((()=>{var e=Y(),t=Ke().map;e({target:`Array`,proto:!0,forced:!Qt()(`map`)},{map:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Fn=o((()=>{var e=Y(),t=d(),n=He(),r=Ge(),i=Zt(),a=Array;e({target:`Array`,stat:!0,forced:t(function(){function e(){}return!(a.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,o=new(n(this)?this:a)(t);t>e;)r(o,e,arguments[e++]);return i(o,t),o}})})),In=o((()=>{var e=Y(),t=B(),n=J(),r=Zt(),i=Xt();e({target:`Array`,proto:!0,arity:1,forced:d()(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var a=t(this),o=n(a),s=arguments.length;i(o+s);for(var c=0;c{var n=N(),r=B(),i=y(),a=J(),o=TypeError,s=`Reduce of empty array with no initial value`,c=function(e){return function(t,c,l,u){var d=r(t),f=i(d),p=a(d);if(n(c),p===0&&l<2)throw new o(s);var m=e?p-1:0,h=e?-1:1;if(l<2)for(;;){if(m in f){u=f[m],m+=h;break}if(m+=h,e?m<0:p<=m)throw new o(s)}for(;e?m>=0:p>m;m+=h)m in f&&(u=c(u,f[m],m,d));return u}};t.exports={left:c(!1),right:c(!0)}})),Rn=o(((e,t)=>{var n=u(),r=D(),i=v(),a=function(e){return r.slice(0,e.length)===e};t.exports=(function(){return a(`Bun/`)?`BUN`:a(`Cloudflare-Workers`)?`CLOUDFLARE`:a(`Deno/`)?`DENO`:a(`Node.js/`)?`NODE`:n.Bun&&typeof Bun.version==`string`?`BUN`:n.Deno&&typeof Deno.version==`object`?`DENO`:i(n.process)===`process`?`NODE`:n.window&&n.document?`BROWSER`:`REST`})()})),zn=o(((e,t)=>{t.exports=Rn()===`NODE`})),Bn=o((()=>{var e=Y(),t=Ln().left,n=rn(),r=O();e({target:`Array`,proto:!0,forced:!zn()&&r>79&&r<83||!n(`reduce`)},{reduce:function(e){var n=arguments.length;return t(this,e,n,n>1?arguments[1]:void 0)}})})),Vn=o((()=>{var e=Y(),t=Ln().right,n=rn(),r=O();e({target:`Array`,proto:!0,forced:!zn()&&r>79&&r<83||!n(`reduceRight`)},{reduceRight:function(e){return t(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})})),Hn=o((()=>{var e=Y(),t=_(),n=Ve(),r=t([].reverse),i=[1,2];e({target:`Array`,proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})})),Un=o((()=>{var e=Y(),t=Ve(),n=He(),r=w(),i=he(),a=J(),o=S(),s=Ge(),c=Zt(),l=H(),u=Qt(),d=je(),f=u(`slice`),p=l(`species`),m=Array,h=Math.max;e({target:`Array`,proto:!0,forced:!f},{slice:function(e,l){var u=o(this),f=a(u),g=i(e,f),_=i(l===void 0?f:l,f),v,y,b;if(t(u)&&(v=u.constructor,n(v)&&(v===m||t(v.prototype))?v=void 0:r(v)&&(v=v[p],v===null&&(v=void 0)),v===m||v===void 0))return d(u,g,_);for(y=new(v===void 0?m:v)(h(_-g,0)),b=0;g<_;g++,b++)g in u&&s(y,b,u[g]);return c(y,b),y}})})),Wn=o((()=>{var e=Y(),t=Ke().some;e({target:`Array`,proto:!0,forced:!rn()(`some`)},{some:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),Gn=o(((e,t)=>{var n=je(),r=Math.floor,i=function(e,t){var a=e.length;if(a<8)for(var o=1,s,c;o0;)e[c]=e[--c];c!==o++&&(e[c]=s)}else for(var l=r(a/2),u=i(n(e,0,l),t),d=i(n(e,l),t),f=u.length,p=d.length,m=0,h=0;m{var n=D().match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]})),qn=o(((e,t)=>{var n=D();t.exports=/MSIE|Trident/.test(n)})),Jn=o(((e,t)=>{var n=D().match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]})),Yn=o((()=>{var e=Y(),t=_(),n=N(),r=B(),i=J(),a=en(),o=X(),s=d(),c=Gn(),l=rn(),u=Kn(),f=qn(),p=O(),m=Jn(),h=[],g=t(h.sort),v=t(h.push),y=s(function(){h.sort(void 0)}),b=s(function(){h.sort(null)}),x=l(`sort`),S=!s(function(){if(p)return p<70;if(!(u&&u>3)){if(f)return!0;if(m)return m<603;var e=``,t,n,r,i;for(t=65;t<76;t++){switch(n=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(i=0;i<47;i++)h.push({k:n+i,v:r})}for(h.sort(function(e,t){return t.v-e.v}),i=0;ii?1:-1}};e({target:`Array`,proto:!0,forced:C},{sort:function(e){e!==void 0&&n(e);var t=r(this);if(S)return e===void 0?g(t):g(t,e);var o=[],s=i(t),l,u;for(u=0;u{var n=T(),r=Ne(),i=H(),a=f(),o=i(`species`);t.exports=function(e){var t=n(e);a&&t&&!t[o]&&r(t,o,{configurable:!0,get:function(){return this}})}})),Zn=o((()=>{Xn()(`Array`)})),Qn=o((()=>{var e=Y(),t=B(),n=he(),r=me(),i=J(),a=Zt(),o=Xt(),s=We(),c=Ge(),l=en(),u=Qt()(`splice`),d=Math.max,f=Math.min;e({target:`Array`,proto:!0,forced:!u},{splice:function(e,u){var p=t(this),m=i(p),h=n(e,m),g=arguments.length,_,v,y,b,x,S;for(g===0?_=v=0:g===1?(_=0,v=m-h):(_=g-2,v=f(d(r(u),0),m-h)),o(m+_-v),y=s(p,v),b=0;bm-v+_;b--)l(p,b-1)}else if(_>v)for(b=m-v;b>h;b--)x=b+v-1,S=b+_-1,x in p?p[S]=p[x]:l(p,S);for(b=0;b<_;b++)p[b+h]=arguments[b+2];return a(p,m-v+_),y}})})),$n=o((()=>{var e=Y(),t=J(),n=S(),r=Ge(),i=Jt(),a=Array;e({target:`Array`,proto:!0},{toReversed:function(){for(var e=n(this),i=t(e),o=new a(i),s=0;s{var n=J();t.exports=function(e,t,r){for(var i=0,a=arguments.length>2?r:n(t),o=new e(a);a>i;)o[i]=t[i++];return o}})),tr=o(((e,t)=>{var n=u();t.exports=function(e,t){var r=n[e],i=r&&r.prototype;return i&&i[t]}})),nr=o((()=>{var e=Y(),t=_(),n=N(),r=S(),i=er(),a=tr(),o=Jt(),s=Array,c=t(a(`Array`,`sort`));e({target:`Array`,proto:!0},{toSorted:function(e){return e!==void 0&&n(e),c(i(s,r(this)),e)}}),o(`toSorted`)})),rr=o((()=>{var e=Y(),t=Jt(),n=Xt(),r=J(),i=he(),a=S(),o=me(),s=Ge(),c=Array,l=Math.max,u=Math.min;e({target:`Array`,proto:!0},{toSpliced:function(e,t){var d=a(this),f=r(d),p=i(e,f),m=arguments.length,h=0,g,_,v,y;for(m===0?g=_=0:m===1?(g=0,_=f-p):(g=m-2,_=u(l(o(t),0),f-p)),v=n(f+g-_),y=c(v);h{Jt()(`flat`)})),ar=o((()=>{Jt()(`flatMap`)})),or=o((()=>{var e=Y(),t=B(),n=J(),r=Zt(),i=en(),a=Xt();e({target:`Array`,proto:!0,arity:1,forced:[].unshift(0)!==1||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var o=t(this),s=n(o),c=arguments.length;if(c){a(s+c);for(var l=s;l--;){var u=l+c;l in o?o[u]=o[l]:i(o,u)}for(var d=0;d{var e=Y(),t=J(),n=me(),r=S(),i=Ge(),a=Array,o=RangeError;e({target:`Array`,proto:!0,forced:(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return e!==4}})()},{with:function(e,s){var c=r(this),l=t(c),u=n(e),d=u<0?l+u:u;if(d>=l||d<0)throw new o(`Incorrect index`);for(var f=new a(l),p=0;p{t.exports=typeof ArrayBuffer<`u`&&typeof DataView<`u`})),lr=o(((e,t)=>{var n=q();t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}})),ur=o(((e,t)=>{var n=E(),r=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new r(`Incorrect invocation`)}})),dr=o(((e,t)=>{var n=me(),r=ge(),i=RangeError;t.exports=function(e){if(e===void 0)return 0;var t=n(e),a=r(t);if(t!==a)throw new i(`Wrong length or index`);return a}})),fr=o(((e,t)=>{t.exports=Math.sign||function(e){var t=+e;return t===0||t!==t?t:t<0?-1:1}})),pr=o(((e,t)=>{var n=1/2220446049250313e-31;t.exports=function(e){return e+n-n}})),mr=o(((e,t)=>{var n=fr(),r=pr(),i=Math.abs,a=2220446049250313e-31;t.exports=function(e,t,o,s){var c=+e,l=i(c),u=n(c);if(lo||f!==f?u*(1/0):u*f}})),hr=o(((e,t)=>{var n=mr(),r=1.1920928955078125e-7,i=34028234663852886e22,a=11754943508222875e-54;t.exports=Math.fround||function(e){return n(e,r,i,a)}})),gr=o(((e,t)=>{var n=Array,r=Math.abs,i=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2;t.exports={pack:function(e,t,c){var l=n(c),u=c*8-t-1,d=(1<>1,p=t===23?i(2,-24)-i(2,-77):0,m=+(e<0||e===0&&1/e<0),h=0,g,_,v;for(e=r(e),e!==e||e===1/0?(_=e===e?0:1,g=d):(g=a(o(e)/s),v=i(2,-g),e*v<1&&(g--,v*=2),g+f>=1?e+=p/v:e+=p*i(2,1-f),e*v>=2&&(g++,v/=2),g+f>=d?(_=0,g=d):g+f>=1?(_=(e*v-1)*i(2,t),g+=f):(_=e*i(2,f-1)*i(2,t),g=0));t>=8;)l[h++]=_&255,_/=256,t-=8;for(g=g<0;)l[h++]=g&255,g/=256,u-=8;return l[h-1]|=m*128,l},unpack:function(e,t){var n=e.length,r=n*8-t-1,a=(1<>1,s=r-7,c=n-1,l=e[c--],u=l&127,d;for(l>>=7;s>0;)u=u*256+e[c--],s-=8;for(d=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)d=d*256+e[c--],s-=8;if(u===0)u=1-o;else if(u===a)return d?NaN:l?-1/0:1/0;else d+=i(2,t),u-=o;return(l?-1:1)*d*i(2,u-t)}}})),_r=o(((e,t)=>{var n=u(),r=_(),i=f(),a=cr(),o=oe(),s=ae(),c=Ne(),l=lr(),p=d(),m=ur(),h=me(),g=dr(),v=hr(),y=gr(),b=Lt(),x=Ct(),S=on(),C=je(),w=Tt(),T=Ce(),E=Re(),D=de(),O=o.PROPER,k=o.CONFIGURABLE,A=`ArrayBuffer`,j=`DataView`,M=`prototype`,N=`Wrong length`,P=`Wrong index`,F=D.getterFor(A),I=D.getterFor(j),L=D.set,R=n[A],z=R,B=z&&z[M],V=n[j],ee=V&&V[M],H=Object.prototype,te=n.Array,ne=n.RangeError,U=r(S),re=r([].reverse),W=y.pack,ie=y.unpack,G=function(e){return[e&255]},K=function(e){return[e&255,e>>8&255]},se=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},ce=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},le=function(e){return W(v(e),23,4)},ue=function(e){return W(e,52,8)},fe=function(e,t,n){c(e[M],t,{configurable:!0,get:function(){return n(this)[t]}})},q=function(e,t,n,r){var i=I(e),a=g(n),o=!!r;if(a+t>i.byteLength)throw new ne(P);var s=i.bytes,c=a+i.byteOffset,l=C(s,c,c+t);return o?l:re(l)},pe=function(e,t,n,r,i,a){var o=I(e),s=g(n),c=r(+i),l=!!a;if(s+t>o.byteLength)throw new ne(P);for(var u=o.bytes,d=s+o.byteOffset,f=0;fa)throw new ne(`Wrong offset`);if(n=n===void 0?a-o:g(n),o+n>a)throw new ne(N);L(this,{type:j,buffer:e,byteLength:n,byteOffset:o,bytes:r.bytes}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},ee=V[M],i&&(fe(z,`byteLength`,F),fe(V,`buffer`,I),fe(V,`byteLength`,I),fe(V,`byteOffset`,I)),l(ee,{getInt8:function(e){return q(this,1,e)[0]<<24>>24},getUint8:function(e){return q(this,1,e)[0]},getInt16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:!1);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:!1);return t[1]<<8|t[0]},getInt32:function(e){return ce(q(this,4,e,arguments.length>1?arguments[1]:!1))},getUint32:function(e){return ce(q(this,4,e,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(e){return ie(q(this,4,e,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(e){return ie(q(this,8,e,arguments.length>1?arguments[1]:!1),52)},setInt8:function(e,t){pe(this,1,e,G,t)},setUint8:function(e,t){pe(this,1,e,G,t)},setInt16:function(e,t){pe(this,2,e,K,t,arguments.length>2?arguments[2]:!1)},setUint16:function(e,t){pe(this,2,e,K,t,arguments.length>2?arguments[2]:!1)},setInt32:function(e,t){pe(this,4,e,se,t,arguments.length>2?arguments[2]:!1)},setUint32:function(e,t){pe(this,4,e,se,t,arguments.length>2?arguments[2]:!1)},setFloat32:function(e,t){pe(this,4,e,le,t,arguments.length>2?arguments[2]:!1)},setFloat64:function(e,t){pe(this,8,e,ue,t,arguments.length>2?arguments[2]:!1)}});else{var he=O&&R.name!==A;!p(function(){R(1)})||!p(function(){new R(-1)})||p(function(){return new R,new R(1.5),new R(NaN),R.length!==1||he&&!k})?(z=function(e){return m(this,B),w(new R(g(e)),this,z)},z[M]=B,B.constructor=z,T(z,R)):he&&k&&s(R,`name`,A),x&&b(ee)!==H&&x(ee,H);var ge=new V(new z(2)),J=r(ee.setInt8);ge.setInt8(0,2147483648),ge.setInt8(1,2147483649),(ge.getInt8(0)||!ge.getInt8(1))&&l(ee,{setInt8:function(e,t){J(this,e,t<<24>>24)},setUint8:function(e,t){J(this,e,t<<24>>24)}},{unsafe:!0})}E(z,A),E(V,j),t.exports={ArrayBuffer:z,DataView:V}})),vr=o((()=>{var e=Y(),t=u(),n=_r(),r=Xn(),i=`ArrayBuffer`,a=n[i],o=t[i];e({global:!0,constructor:!0,forced:o!==a},{ArrayBuffer:a}),r(i)})),Z=o(((e,t)=>{var n=cr(),r=f(),i=u(),a=C(),o=w(),s=V(),c=Ee(),l=M(),d=ae(),p=q(),m=Ne(),h=E(),g=Lt(),_=Ct(),v=H(),y=ee(),b=de(),x=b.enforce,S=b.get,T=i.Int8Array,D=T&&T.prototype,O=i.Uint8ClampedArray,k=O&&O.prototype,A=T&&g(T),j=D&&g(D),N=Object.prototype,P=i.TypeError,F=v(`toStringTag`),I=y(`TYPED_ARRAY_TAG`),L=`TypedArrayConstructor`,R=n&&!!_&&c(i.opera)!==`Opera`,z=!1,B,te,ne,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},re={BigInt64Array:8,BigUint64Array:8},W=function(e){if(!o(e))return!1;var t=c(e);return t===`DataView`||s(U,t)||s(re,t)},ie=function(e){var t=g(e);if(o(t)){var n=S(t);return n&&s(n,L)?n[L]:ie(t)}},G=function(e){if(!o(e))return!1;var t=c(e);return s(U,t)||s(re,t)},K=function(e){if(G(e))return e;throw new P(`Target is not a typed array`)},oe=function(e){if(a(e)&&(!_||h(A,e)))return e;throw new P(l(e)+` is not a typed array constructor`)},se=function(e,t,n,a){if(r){if(n)for(var o in U){var c=i[o];if(c&&s(c.prototype,e))try{delete c.prototype[e]}catch{try{c.prototype[e]=t}catch{}}}(!j[e]||n)&&p(j,e,n?t:R&&D[e]||t,a)}},ce=function(e,t,n){var a,o;if(r){if(_){if(n){for(a in U)if(o=i[a],o&&s(o,e))try{delete o[e]}catch{}}if(!A[e]||n)try{return p(A,e,n?t:R&&A[e]||t)}catch{}else return}for(a in U)o=i[a],o&&(!o[e]||n)&&p(o,e,t)}};for(B in U)te=i[B],ne=te&&te.prototype,ne?x(ne)[L]=te:R=!1;for(B in re)te=i[B],ne=te&&te.prototype,ne&&(x(ne)[L]=te);if((!R||!a(A)||A===Function.prototype)&&(A=function(){throw new P(`Incorrect invocation`)},R))for(B in U)i[B]&&_(i[B],A);if((!R||!j||j===N)&&(j=A.prototype,R))for(B in U)i[B]&&_(i[B].prototype,j);if(R&&g(k)!==j&&_(k,j),r&&!s(j,F))for(B in z=!0,m(j,F,{configurable:!0,get:function(){return o(this)?this[I]:void 0}}),U)i[B]&&d(i[B].prototype,I,B);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:z&&I,aTypedArray:K,aTypedArrayConstructor:oe,exportTypedArrayMethod:se,exportTypedArrayStaticMethod:ce,getTypedArrayConstructor:ie,isView:W,isTypedArray:G,TypedArray:A,TypedArrayPrototype:j}})),yr=o((()=>{var e=Y(),t=Z(),n=t.NATIVE_ARRAY_BUFFER_VIEWS;e({target:`ArrayBuffer`,stat:!0,forced:!n},{isView:t.isView})})),br=o((()=>{var e=Y(),t=ze(),n=d(),r=_r(),i=G(),a=he(),o=ge(),s=r.ArrayBuffer,c=r.DataView,l=c.prototype,u=t(s.prototype.slice),f=t(l.getUint8),p=t(l.setUint8);e({target:`ArrayBuffer`,proto:!0,unsafe:!0,forced:n(function(){return!new s(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(u&&t===void 0)return u(i(this),e);for(var n=i(this).byteLength,r=a(e,n),l=a(t===void 0?n:t,n),d=new s(o(l-r)),m=new c(this),h=new c(d),g=0;r{var e=Y(),t=_r();e({global:!0,constructor:!0,forced:!cr()},{DataView:t.DataView})})),Sr=o((()=>{xr()})),Cr=o((()=>{var e=Y(),t=_(),n=Math.pow,r=31,i=1023,a=n(2,-24),o=.0009765625,s=function(e){var t=e>>>15,s=e>>>10&r,c=e&i;return s===r?c===0?t===0?1/0:-1/0:NaN:s===0?c*(t===0?a:-a):n(2,s-15)*(t===0?1+c*o:-1-c*o)},c=t(DataView.prototype.getUint16);e({target:`DataView`,proto:!0},{getFloat16:function(e){return s(c(this,e,arguments.length>1?arguments[1]:!1))}})})),wr=o(((e,t)=>{var n=Ee(),r=TypeError;t.exports=function(e){if(n(e)===`DataView`)return e;throw new r(`Argument is not a DataView`)}})),Tr=o(((e,t)=>{var n=Math.log,r=Math.LN2;t.exports=Math.log2||function(e){return n(e)/r}})),Er=o((()=>{var e=Y(),t=_(),n=wr(),r=dr(),i=Tr(),a=pr(),o=Math.floor,s=Math.pow,c=65520,l=61005353927612305e-21,u=16777216,d=1024,f=function(e){if(e!==e)return 32256;if(e===0)return(1/e==-1/0)<<15;var t=e<0;if(t&&(e=-e),e>=c)return t<<15|31744;if(e2?arguments[2]:!1)}})})),Dr=o(((e,t)=>{var n=u(),r=bt(),i=v(),a=n.ArrayBuffer,o=n.TypeError;t.exports=a&&r(a.prototype,`byteLength`,`get`)||function(e){if(i(e)!==`ArrayBuffer`)throw new o(`ArrayBuffer expected`);return e.byteLength}})),Or=o(((e,t)=>{var n=u(),r=cr(),i=Dr(),a=n.DataView;t.exports=function(e){if(!r||i(e)!==0)return!1;try{return new a(e),!1}catch{return!0}}})),kr=o((()=>{var e=f(),t=Ne(),n=Or(),r=ArrayBuffer.prototype;e&&!(`detached`in r)&&t(r,`detached`,{configurable:!0,get:function(){return n(this)}})})),Ar=o(((e,t)=>{var n=Or(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`ArrayBuffer is detached`);return e}})),jr=o(((e,t)=>{var n=u(),r=zn();t.exports=function(e){if(r){try{return n.process.getBuiltinModule(e)}catch{}try{return Function(`return require("`+e+`")`)()}catch{}}}})),Mr=o(((e,t)=>{var n=u(),r=d(),i=O(),a=Rn(),o=n.structuredClone;t.exports=!!o&&!r(function(){if(a===`DENO`&&i>92||a===`NODE`&&i>94||a===`BROWSER`&&i>97)return!1;var e=new ArrayBuffer(8),t=o(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8})})),Nr=o(((e,t)=>{var n=u(),r=jr(),i=Mr(),a=n.structuredClone,o=n.ArrayBuffer,s=n.MessageChannel,c=!1,l,d,f,p;if(i)c=function(e){a(e,{transfer:[e]})};else if(o)try{s||(l=r(`worker_threads`),l&&(s=l.MessageChannel)),s&&(d=new s,f=new o(2),p=function(e){d.port1.postMessage(null,[e])},f.byteLength===2&&(p(f),f.byteLength===0&&(c=p)))}catch{}t.exports=c})),Pr=o(((e,t)=>{var n=u(),r=_(),i=bt(),a=dr(),o=Ar(),s=Dr(),c=Nr(),l=Mr(),d=n.structuredClone,f=n.ArrayBuffer,p=n.DataView,m=Math.max,h=Math.min,g=f.prototype,v=p.prototype,y=r(g.slice),b=i(g,`resizable`,`get`),x=i(g,`maxByteLength`,`get`),S=r(v.getInt8),C=r(v.setInt8);t.exports=(l||c)&&function(e,t,n){var r=s(e),i=t===void 0?r:a(t),u=!b||!b(e),g;if(o(e),l&&(e=d(e,{transfer:[e]}),r===i&&(n||u)))return e;if(r>=i&&(!n||u))g=y(e,0,i);else{g=new f(i,n&&!u&&x?{maxByteLength:m(i,x(e))}:void 0);for(var _=new p(e),v=new p(g),w=h(i,r),T=0;T{var e=Y(),t=Pr();t&&e({target:`ArrayBuffer`,proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}})})),Ir=o((()=>{var e=Y(),t=Pr();t&&e({target:`ArrayBuffer`,proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}})})),Lr=o((()=>{var e=Y(),t=_(),n=d()(function(){return new Date(16e11).getYear()!==120}),r=t(Date.prototype.getFullYear);e({target:`Date`,proto:!0,forced:n},{getYear:function(){return r(this)-1900}})})),Rr=o((()=>{var e=Y(),t=_(),n=Date,r=t(n.prototype.getTime);e({target:`Date`,stat:!0},{now:function(){return r(new n)}})})),zr=o((()=>{var e=Y(),t=_(),n=me(),r=Date.prototype,i=t(r.getTime),a=t(r.setFullYear);e({target:`Date`,proto:!0},{setYear:function(e){i(this);var t=+e;if(t!==t)return a(this,t);var r=n(t),o=r>=0&&r<=99?r+1900:r;return a(this,o)}})})),Br=o((()=>{Y()({target:`Date`,proto:!0},{toGMTString:Date.prototype.toUTCString})})),Vr=o(((e,t)=>{var n=me(),r=X(),i=x(),a=RangeError,o=Math.floor;t.exports=function(e){var t=r(i(this)),s=``,c=n(e);if(c<0||c===1/0)throw new a(`Wrong number of repetitions`);for(;c>0;(c=o(c/2))&&(t+=t))c%2&&(s+=t);return s}})),Hr=o(((e,t)=>{var n=_(),r=ge(),i=X(),a=Vr(),o=x(),s=n(a),c=n(``.slice),l=Math.ceil,u=function(e){return function(t,n,a){var u=i(o(t)),d=r(n),f=u.length;if(d<=f)return u;var p=a===void 0?` `:i(a),m,h;return p===``?u:(m=d-f,h=s(p,l(m/p.length)),h.length>m&&(h=c(h,0,m)),e?u+h:h+u)}};t.exports={start:u(!1),end:u(!0)}})),Ur=o(((e,t)=>{var n=_(),r=d(),i=Hr().start,a=RangeError,o=isFinite,s=Math.abs,c=Date.prototype,l=c.toISOString,u=n(c.getTime),f=n(c.getUTCDate),p=n(c.getUTCFullYear),m=n(c.getUTCHours),h=n(c.getUTCMilliseconds),g=n(c.getUTCMinutes),v=n(c.getUTCMonth),y=n(c.getUTCSeconds);t.exports=r(function(){return l.call(new Date(-50000000000001))!==`0385-07-25T07:06:39.999Z`})||!r(function(){l.call(new Date(NaN))})?function(){if(!o(u(this)))throw new a(`Invalid time value`);var e=this,t=p(e),n=h(e),r=t<0?`-`:t>9999?`+`:``;return r+i(s(t),r?6:4,0)+`-`+i(v(e)+1,2,0)+`-`+i(f(e),2,0)+`T`+i(m(e),2,0)+`:`+i(g(e),2,0)+`:`+i(y(e),2,0)+`.`+i(n,3,0)+`Z`}:l})),Wr=o((()=>{var e=Y(),t=Ur();e({target:`Date`,proto:!0,forced:Date.prototype.toISOString!==t},{toISOString:t})})),Gr=o((()=>{var e=Y(),t=d(),n=B(),r=te();e({target:`Date`,proto:!0,arity:1,forced:t(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(e){var t=n(this),i=r(t,`number`);return typeof i==`number`&&!isFinite(i)?null:t.toISOString()}})})),Kr=o(((e,t)=>{var n=G(),r=F(),i=TypeError;t.exports=function(e){if(n(this),e===`string`||e===`default`)e=`string`;else if(e!==`number`)throw new i(`Incorrect hint`);return r(this,e)}})),qr=o((()=>{var e=V(),t=q(),n=Kr(),r=H()(`toPrimitive`),i=Date.prototype;e(i,r)||t(i,r,n)})),Jr=o((()=>{var e=_(),t=q(),n=Date.prototype,r=`Invalid Date`,i=`toString`,a=e(n[i]),o=e(n.getTime);String(new Date(NaN))!==r&&t(n,i,function(){var e=o(this);return e===e?a(this):r})})),Yr=o(((e,t)=>{var n=T(),r=m(),i=_(),a=Be(),o=G(),s=N(),c=b(),l=P(),u=H(),d=u(`asyncDispose`),f=u(`dispose`),p=i([].push),h=function(e,t){if(t===`async-dispose`){var i=l(e,d);return i!==void 0||(i=l(e,f),i===void 0)?i:function(){var e=this;return new(n(`Promise`))(function(t){r(i,e),t(void 0)})}}return l(e,f)},g=function(e,t,n){return arguments.length<3&&!c(e)&&(n=s(h(o(e),t))),n===void 0?function(){}:a(n,e)};t.exports=function(e,t,n,r){var i;if(arguments.length<4){if(c(t)&&n===`sync-dispose`)return;i=g(t,n)}else i=g(void 0,n,r);p(e.stack,i)}})),Xr=o((()=>{var e=Y(),t=f(),n=T(),r=N(),i=ur(),a=q(),o=lr(),s=Ne(),c=H(),l=de(),u=Yr(),d=n(`SuppressedError`),p=ReferenceError,m=c(`dispose`),h=c(`toStringTag`),g=`DisposableStack`,_=l.set,v=l.getterFor(g),y=`sync-dispose`,b=`disposed`,x=`pending`,S=function(e){var t=v(e);if(t.state===b)throw new p(g+` already disposed`);return t},C=function(){_(i(this,w),{type:g,state:x,stack:[]}),t||(this.disposed=!1)},w=C.prototype;o(w,{dispose:function(){var e=v(this);if(e.state!==b){e.state=b,t||(this.disposed=!0);for(var n=e.stack,r=n.length,i=!1,a;r;){var o=n[--r];n[r]=null;try{o()}catch(e){i?a=new d(e,a):(i=!0,a=e)}}if(e.stack=null,i)throw a}},use:function(e){return u(S(this),e,y),e},adopt:function(e,t){var n=S(this);return r(t),u(n,void 0,y,function(){t(e)}),e},defer:function(e){var t=S(this);r(e),u(t,void 0,y,e)},move:function(){var e=S(this),n=new C;return v(n).stack=e.stack,e.stack=[],e.state=b,t||(this.disposed=!0),n}}),t&&s(w,`disposed`,{configurable:!0,get:function(){return v(this).state===b}}),a(w,m,w.dispose,{name:`dispose`}),a(w,h,g,{nonWritable:!0}),e({global:!0,constructor:!0},{DisposableStack:C})})),Zr=o((()=>{var e=Y(),t=_(),n=X(),r=t(``.charAt),i=t(``.charCodeAt),a=t(/./.exec),o=t(1.1.toString),s=t(``.toUpperCase),c=/[\w*+\-./@]/,l=function(e,t){for(var n=o(e,16);n.length{var n=_(),r=N(),i=w(),a=V(),o=je(),s=p(),c=Function,l=n([].concat),u=n([].join),d={},f=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i{var e=Y(),t=Qr();e({target:`Function`,proto:!0,forced:Function.bind!==t},{bind:t})})),ei=o((()=>{var e=C(),t=w(),n=K(),r=E(),i=H(),a=fe(),o=i(`hasInstance`),s=Function.prototype;o in s||n.f(s,o,{value:a(function(n){if(!e(this)||!t(n))return!1;var i=this.prototype;return t(i)?r(i,n):n instanceof this},o)})})),ti=o((()=>{var e=f(),t=oe().EXISTS,n=_(),r=Ne(),i=Function.prototype,a=n(i.toString),o=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=n(o.exec);e&&!t&&r(i,`name`,{configurable:!0,get:function(){try{return s(o,a(this))[1]}catch{return``}}})})),ni=o((()=>{var e=Y(),t=u();e({global:!0,forced:t.globalThis!==t},{globalThis:t})})),ri=o((()=>{var e=Y(),t=u(),n=ur(),r=G(),i=C(),a=Lt(),o=Ne(),s=Ge(),c=d(),l=V(),p=H(),m=En().IteratorPrototype,h=f(),g=I(),_=`constructor`,v=`Iterator`,y=p(`toStringTag`),b=TypeError,x=t[v],S=g||!i(x)||x.prototype!==m||!c(function(){x({})}),w=function(){if(n(this,m),a(this)===m)throw new b(`Abstract class Iterator not directly constructable`)},T=function(e,t){h?o(m,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===m)throw new b(`You can't redefine this property`);l(this,e)?this[e]=t:s(this,e,t)}}):m[e]=t};l(m,y)||T(y,v),(S||!l(m,_)||m[_]===Object)&&T(_,w),w.prototype=m,e({global:!0,constructor:!0,forced:S},{Iterator:w})})),ii=o(((e,t)=>{var n=Ht();t.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{r=n(e[i].iterator,t,r)}catch(e){t=`throw`,r=e}if(t===`throw`)throw r;return r}})),ai=o(((e,t)=>{var n=m(),r=Ae(),i=ae(),a=lr(),o=H(),s=de(),c=P(),l=En().IteratorPrototype,u=kn(),d=Ht(),f=ii(),p=o(`toStringTag`),h=`IteratorHelper`,g=`WrapForValidIterator`,_=`normal`,v=`throw`,y=s.set,b=function(e){var t=s.getterFor(e?g:h);return a(r(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return u(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:u(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var r=t(this),i=r.iterator,a=r.done;if(r.done=!0,e){var o=c(i,`return`);return o?n(o,i):u(void 0,!0)}if(a)return u(void 0,!0);if(r.inner)try{d(r.inner.iterator,_)}catch(e){return d(i,v,e)}if(r.openIters)try{f(r.openIters,_)}catch(e){if(i)return d(i,v,e);throw e}return i&&d(i,_),u(void 0,!0)}})},x=b(!0),S=b(!1);i(S,p,`Iterator Helper`),t.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?x:S,r}})),oi=o((()=>{var e=Y(),t=m(),n=N(),r=G(),i=Bt(),a=ai(),o=I(),s=Array,c=a(function(){for(;;){var e=this.iterator;if(!e){var n=this.nextIterableIndex++,i=this.iterables;if(n>=i.length){this.done=!0;return}var a=i[n];this.iterables[n]=null,e=this.iterator=r(t(a.method,a.iterable)),this.next=e.next}var o=r(t(this.next,e));if(o.done){this.iterator=null,this.next=null;continue}return o.value}});e({target:`Iterator`,stat:!0,forced:o},{concat:function(){for(var e=arguments.length,t=s(e),a=0;a{var e=m(),t=q(),n=P(),r=V(),i=H(),a=En().IteratorPrototype,o=i(`dispose`);r(a,o)||t(a,o,function(){var t=n(this,`return`);t&&e(t,this)})})),ci=o(((e,t)=>{t.exports=function(e){return{iterator:e,next:e.next,done:!1}}})),li=o(((e,t)=>{var n=RangeError;t.exports=function(e){if(e===e)return e;throw new n(`NaN is not allowed`)}})),ui=o(((e,t)=>{var n=me(),r=RangeError;t.exports=function(e){var t=n(e);if(t<0)throw new r(`The argument can't be less than 0`);return t}})),di=o(((e,t)=>{t.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}})),fi=o(((e,t)=>{var n=u();t.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}})),pi=o((()=>{var e=Y(),t=m(),n=G(),r=ci(),i=li(),a=ui(),o=Ht(),s=ai(),c=di(),l=fi(),u=I(),d=!u&&!c(`drop`,0),f=!u&&!d&&l(`drop`,RangeError),p=u||d||f,h=s(function(){for(var e=this.iterator,r=this.next,i,a;this.remaining;)if(this.remaining--,i=n(t(r,e)),a=this.done=!!i.done,a)return;if(i=n(t(r,e)),a=this.done=!!i.done,!a)return i.value});e({target:`Iterator`,proto:!0,real:!0,forced:p},{drop:function(e){n(this);var s;try{s=a(i(+e))}catch(e){o(this,`throw`,e)}return f?t(f,this,s):new h(r(this),{remaining:s})}})})),mi=o((()=>{var e=Y(),t=m(),n=Ut(),r=N(),i=G(),a=ci(),o=Ht(),s=fi()(`every`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{every:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return!n(c,function(t,n){if(!e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})})),hi=o((()=>{var e=Y(),t=m(),n=N(),r=G(),i=ci(),a=ai(),o=yn(),s=I(),c=Ht(),l=di(),u=fi(),d=!s&&!l(`filter`,function(){}),f=!s&&!d&&u(`filter`,TypeError),p=s||d||f,h=a(function(){for(var e=this.iterator,n=this.predicate,i=this.next,a,s,c;;){if(a=r(t(i,e)),s=this.done=!!a.done,s)return;if(c=a.value,o(e,n,[c,this.counter++],!0))return c}});e({target:`Iterator`,proto:!0,real:!0,forced:p},{filter:function(e){r(this);try{n(e)}catch(e){c(this,`throw`,e)}return f?t(f,this,e):new h(i(this),{predicate:e})}})})),gi=o((()=>{var e=Y(),t=m(),n=Ut(),r=N(),i=G(),a=ci(),o=Ht(),s=fi()(`find`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{find:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return n(c,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})})),_i=o(((e,t)=>{var n=m(),r=G(),i=ci(),a=Bt();t.exports=function(e,t){(!t||typeof e!=`string`)&&r(e);var o=a(e);return i(r(o===void 0?e:n(o,e)))}})),vi=o((()=>{var e=Y(),t=m(),n=N(),r=G(),i=ci(),a=_i(),o=ai(),s=Ht(),c=I(),l=di(),u=fi();function d(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e.return()}catch{return!0}}var f=!c&&!l(`flatMap`,function(){}),p=!c&&!f&&u(`flatMap`,TypeError),h=c||f||p||d(),g=o(function(){for(var e=this.iterator,n=this.mapper,i,o;;){if(o=this.inner)try{if(i=r(t(o.next,o.iterator)),!i.done)return i.value;this.inner=null}catch(t){s(e,`throw`,t)}if(i=r(t(this.next,e)),this.done=!!i.done)return;try{this.inner=a(n(i.value,this.counter++),!1)}catch(t){s(e,`throw`,t)}}});e({target:`Iterator`,proto:!0,real:!0,forced:h},{flatMap:function(e){r(this);try{n(e)}catch(e){s(this,`throw`,e)}return p?t(p,this,e):new g(i(this),{mapper:e,inner:null})}})})),yi=o((()=>{var e=Y(),t=m(),n=Ut(),r=N(),i=G(),a=ci(),o=Ht(),s=fi()(`forEach`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{forEach:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}})})),bi=o((()=>{var e=Y(),t=m(),n=B(),r=E(),i=En().IteratorPrototype,a=ai(),o=_i(),s=I()||function(){try{Iterator.from({return:null}).return()}catch{return!0}}(),c=a(function(){return t(this.next,this.iterator)},!0);e({target:`Iterator`,stat:!0,forced:s},{from:function(e){var t=o(typeof e==`string`?n(e):e,!0);return r(i,t.iterator)?t.iterator:new c(t)}})})),xi=o((()=>{var e=Y(),t=m(),n=N(),r=G(),i=ci(),a=ai(),o=yn(),s=Ht(),c=di(),l=fi(),u=I(),d=!u&&!c(`map`,function(){}),f=!u&&!d&&l(`map`,TypeError),p=u||d||f,h=a(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return o(e,this.mapper,[n.value,this.counter++],!0)});e({target:`Iterator`,proto:!0,real:!0,forced:p},{map:function(e){r(this);try{n(e)}catch(e){s(this,`throw`,e)}return f?t(f,this,e):new h(i(this),{mapper:e})}})})),Si=o((()=>{var e=Y(),t=Ut(),n=N(),r=G(),i=ci(),a=Ht(),o=fi(),s=Ze(),c=d(),l=TypeError,u=c(function(){[].keys().reduce(function(){},void 0)}),f=!u&&o(`reduce`,l);e({target:`Iterator`,proto:!0,real:!0,forced:u||f},{reduce:function(e){r(this);try{n(e)}catch(e){a(this,`throw`,e)}var o=arguments.length<2,c=o?void 0:arguments[1];if(f)return s(f,this,o?[e]:[e,c]);var u=i(this),d=0;if(t(u,function(t){o?(o=!1,c=t):c=e(c,t,d),d++},{IS_RECORD:!0}),o)throw new l(`Reduce of empty iterator with no initial value`);return c}})})),Ci=o((()=>{var e=Y(),t=m(),n=Ut(),r=N(),i=G(),a=ci(),o=Ht(),s=fi()(`some`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:s},{some:function(e){i(this);try{r(e)}catch(e){o(this,`throw`,e)}if(s)return t(s,this,e);var c=a(this),l=0;return n(c,function(t,n){if(e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})})),wi=o((()=>{var e=Y(),t=m(),n=G(),r=ci(),i=li(),a=ui(),o=ai(),s=Ht(),c=di(),l=fi(),u=I(),d=!u&&!c(`take`,1),f=!u&&!d&&l(`take`,RangeError),p=u||d||f,h=o(function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,s(e,`normal`,void 0);var r=n(t(this.next,e));if(!(this.done=!!r.done))return r.value});e({target:`Iterator`,proto:!0,real:!0,forced:p},{take:function(e){n(this);var o;try{o=a(i(+e))}catch(e){s(this,`throw`,e)}return f?t(f,this,o):new h(r(this),{remaining:o})}})})),Ti=o((()=>{var e=Y(),t=G(),n=Ge(),r=Ut(),i=ci();e({target:`Iterator`,proto:!0,real:!0},{toArray:function(){var e=[],a=0;return r(i(t(this)),function(t){n(e,a++,t)},{IS_RECORD:!0}),e}})})),Ei=o((()=>{var e=Y(),t=et(),n=Qe();e({target:`JSON`,stat:!0,forced:!t},{isRawJSON:n})})),Di=o((()=>{var e=Y(),t=f(),n=u(),r=T(),i=_(),a=m(),o=C(),s=w(),c=Ve(),l=V(),p=X(),h=J(),g=Ge(),v=d(),y=$e(),b=k(),x=n.JSON,S=n.Number,E=n.SyntaxError,D=x&&x.parse,O=r(`Object`,`keys`),A=Object.getOwnPropertyDescriptor,j=i(``.charAt),M=i(``.slice),N=i(/./.exec),P=i([].push),F=/^\d$/,I=/^[1-9]$/,L=/^[\d-]$/,R=/^[\t\n\r ]$/,z=0,B=1,ee=function(e,t){e=p(e);var n=new U(e,0,``),r=n.parse(),i=r.value,a=n.skip(R,r.end);if(a{t.exports=!d()(function(){return Object.isExtensible(Object.preventExtensions({}))})})),ki=o((()=>{var e=Y(),t=Oi(),n=et(),r=T(),i=_(),a=X(),o=Ge(),s=de().set,c=SyntaxError,l=r(`JSON`,`parse`),u=r(`Object`,`create`),d=r(`Object`,`freeze`),f=i(``.charAt),p=`Unacceptable as raw JSON`,m=function(e){return e===` `||e===` `||e===` +`||e===`\r`};e({target:`JSON`,stat:!0,forced:!n},{rawJSON:function(e){var n=a(e);if(n===``||m(f(n,0))||m(f(n,n.length-1)))throw new c(p);var r=l(n);if(typeof r==`object`&&r)throw new c(p);var i=u(null);return s(i,{type:`RawJSON`}),o(i,`rawJSON`,n),t?d(i):i}})})),Ai=o((()=>{var e=u();Re()(e.JSON,`JSON`,!0)})),ji=o(((e,t)=>{t.exports=d()(function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})})),Mi=o(((e,t)=>{var n=d(),r=w(),i=v(),a=ji(),o=Object.isExtensible;t.exports=n(function(){o(1)})||a?function(e){return!r(e)||a&&i(e)===`ArrayBuffer`?!1:o?o(e):!0}:o})),Ni=o(((e,t)=>{var n=Y(),r=_(),i=ue(),a=w(),o=V(),s=K().f,c=be(),l=Me(),u=Mi(),d=ee(),f=Oi(),p=!1,m=d(`meta`),h=0,g=function(e){s(e,m,{value:{objectID:`O`+ h++,weakData:{}}})},v=t.exports={enable:function(){v.enable=function(){},p=!0;var e=c.f,t=r([].splice),i={};i[m]=1,e(i).length&&(c.f=function(n){for(var r=e(n),i=0,a=r.length;i{var n=Y(),r=u(),i=_(),a=we(),o=q(),s=Ni(),c=Ut(),l=ur(),f=C(),p=b(),m=w(),h=d(),g=xn(),v=Re(),y=Tt();t.exports=function(e,t,u){var d=e.indexOf(`Map`)!==-1,_=e.indexOf(`Weak`)!==-1,b=d?`set`:`add`,x=r[e],S=x&&x.prototype,C=x,w={},T=function(e){var t=i(S[e]);o(S,e,e===`add`?function(e){return t(this,e===0?0:e),this}:e===`delete`?function(e){return _&&!m(e)?!1:t(this,e===0?0:e)}:e===`get`?function(e){return _&&!m(e)?void 0:t(this,e===0?0:e)}:e===`has`?function(e){return _&&!m(e)?!1:t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(a(e,!f(x)||!(_||S.forEach&&!h(function(){new x().entries().next()}))))C=u.getConstructor(t,e,d,b),s.enable();else if(a(e,!0)){var E=new C,D=E[b](_?{}:-0,1)!==E,O=h(function(){E.has(1)}),k=g(function(e){new x(e)}),A=!_&&h(function(){for(var e=new x,t=5;t--;)e[b](t,t);return!e.has(-0)});k||(C=t(function(e,t){l(e,S);var n=y(new x,e,C);return p(t)||c(t,n[b],{that:n,AS_ENTRIES:d}),n}),C.prototype=S,S.constructor=C),(O||A)&&(T(`delete`),T(`has`),d&&T(`get`)),(A||D)&&T(b),_&&S.clear&&delete S.clear}return w[e]=C,n({global:!0,constructor:!0,forced:C!==x},w),v(C,e),_||u.setStrong(C,e,d),C}})),Fi=o(((e,t)=>{var n=Ae(),r=Ne(),i=lr(),a=Be(),o=ur(),s=b(),c=Ut(),l=On(),u=kn(),d=Xn(),p=f(),m=Ni().fastKey,h=de(),g=h.set,_=h.getterFor;t.exports={getConstructor:function(e,t,l,u){var d=e(function(e,r){o(e,f),g(e,{type:t,index:n(null),first:null,last:null,size:0}),p||(e.size=0),s(r)||c(r,e[u],{that:e,AS_ENTRIES:l})}),f=d.prototype,h=_(t),v=function(e,t,n){var r=h(e),i=y(e,t),a,o;return i?i.value=n:(r.last=i={index:o=m(t,!0),key:t,value:n,previous:a=r.last,next:null,removed:!1},r.first||=i,a&&(a.next=i),p?r.size++:e.size++,o!==`F`&&(r.index[o]=i)),e},y=function(e,t){var n=h(e),r=m(t),i;if(r!==`F`)return n.index[r];for(i=n.first;i;i=i.next)if(i.key===t)return i};return i(f,{clear:function(){for(var e=this,t=h(e),r=t.first;r;)r.removed=!0,r.previous&&=r.previous.next=null,r=r.next;t.first=t.last=null,t.index=n(null),p?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=y(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===r&&(n.first=i),n.last===r&&(n.last=a),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t=h(this),n=a(e,arguments.length>1?arguments[1]:void 0),r;r=r?r.next:t.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(e){return!!y(this,e)}}),i(f,l?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,e===0?0:e,t)}}:{add:function(e){return v(this,e=e===0?0:e,e)}}),p&&r(f,`size`,{configurable:!0,get:function(){return h(this).size}}),d},setStrong:function(e,t,n){var r=t+` Iterator`,i=_(t),a=_(r);l(e,t,function(e,t){g(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return!e.target||!(e.last=n=n?n.next:e.state.first)?(e.target=null,u(void 0,!0)):u(t===`keys`?n.key:t===`values`?n.value:[n.key,n.value],!1)},n?`entries`:`values`,!n,!0),d(t)}}})),Ii=o((()=>{Pi()(`Map`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Fi())})),Li=o((()=>{Ii()})),Ri=o(((e,t)=>{var n=_(),r=Map.prototype;t.exports={Map,set:n(r.set),get:n(r.get),has:n(r.has),remove:n(r.delete),proto:r}})),zi=o((()=>{var e=Y(),t=_(),n=N(),r=x(),i=Ut(),a=Ri(),o=I(),s=d(),c=a.Map,l=a.has,u=a.get,f=a.set,p=t([].push),m=o||s(function(){return c.groupBy(`ab`,function(e){return e}).get(`a`).length!==1});e({target:`Map`,stat:!0,forced:o||m},{groupBy:function(e,t){r(e),n(t);var a=new c,o=0;return i(e,function(e){var n=t(e,o++);l(a,n)?p(u(a,n),e):f(a,n,[e])}),a}})})),Bi=o((()=>{var e=Y(),t=Ri(),n=I(),r=t.get,i=t.has,a=t.set;e({target:`Map`,proto:!0,real:!0,forced:n},{getOrInsert:function(e,t){return i(this,e)?r(this,e):(a(this,e,t),t)}})})),Vi=o((()=>{var e=Y(),t=N(),n=Ri(),r=I(),i=n.get,a=n.has,o=n.set;e({target:`Map`,proto:!0,real:!0,forced:r},{getOrInsertComputed:function(e,n){var r=a(this,e);if(t(n),r)return i(this,e);e===0&&1/e==-1/0&&(e=0);var s=n(e);return o(this,e,s),s}})})),Hi=o(((e,t)=>{var n=Math.log;t.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}})),Ui=o((()=>{var e=Y(),t=Hi(),n=Math.acosh,r=Math.log,i=Math.sqrt,a=Math.LN2;e({target:`Math`,stat:!0,forced:!n||Math.floor(n(Number.MAX_VALUE))!==710||n(1/0)!==1/0},{acosh:function(e){var n=+e;return n<1?NaN:n>94906265.62425156?r(n)+a:t(n-1+i(n-1)*i(n+1))}})})),Wi=o((()=>{var e=Y(),t=Math.asinh,n=Math.log,r=Math.sqrt,i=Math.LN2,a=94906265.62425156;function o(e){var t=+e;return!isFinite(t)||t===0?t:t<0?-o(-t):t>a?n(t)+i:n(t+r(t*t+1))}e({target:`Math`,stat:!0,forced:!(t&&1/t(0)>0)},{asinh:o})})),Gi=o((()=>{var e=Y(),t=Hi(),n=Math.atanh;e({target:`Math`,stat:!0,forced:!(n&&1/n(-0)<0)},{atanh:function(e){var n=+e;return n===0?n:t(2*n/(1-n))/2}})})),Ki=o((()=>{var e=Y(),t=fr(),n=Math.abs,r=Math.pow;e({target:`Math`,stat:!0},{cbrt:function(e){var i=+e;return t(i)*r(n(i),1/3)}})})),qi=o((()=>{var e=Y(),t=Math.floor,n=Math.log,r=Math.LOG2E;e({target:`Math`,stat:!0},{clz32:function(e){var i=e>>>0;return i?31-t(n(i+.5)*r):32}})})),Ji=o(((e,t)=>{var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!==-2e-17?function(e){var t=+e;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n})),Yi=o((()=>{var e=Y(),t=Ji(),n=Math.cosh,r=Math.abs,i=Math.E;e({target:`Math`,stat:!0,forced:!n||n(710)===1/0},{cosh:function(e){var n=t(r(e)-1)+1;return(n+1/(n*i*i))*(i/2)}})})),Xi=o((()=>{var e=Y(),t=Ji();e({target:`Math`,stat:!0,forced:t!==Math.expm1},{expm1:t})})),Zi=o((()=>{Y()({target:`Math`,stat:!0},{fround:hr()})})),Qi=o((()=>{var e=Y(),t=mr(),n=.0009765625,r=65504,i=6103515625e-14;e({target:`Math`,stat:!0},{f16round:function(e){return t(e,n,r,i)}})})),$i=o((()=>{var e=Y(),t=Math.hypot,n=Math.abs,r=Math.sqrt;e({target:`Math`,stat:!0,arity:2,forced:!!t&&t(1/0,NaN)!==1/0},{hypot:function(e,t){for(var i=0,a=0,o=arguments.length,s=0,c,l;a0?(l=c/s,i+=l*l):i+=c;return s===1/0?1/0:s*r(i)}})})),ea=o((()=>{var e=Y(),t=d(),n=Math.imul;e({target:`Math`,stat:!0,forced:t(function(){return n(4294967295,5)!==-5||n.length!==2})},{imul:function(e,t){var n=65535,r=+e,i=+t,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})})),ta=o(((e,t)=>{var n=Math.log,r=Math.LOG10E;t.exports=Math.log10||function(e){return n(e)*r}})),na=o((()=>{Y()({target:`Math`,stat:!0},{log10:ta()})})),ra=o((()=>{Y()({target:`Math`,stat:!0},{log1p:Hi()})})),ia=o((()=>{Y()({target:`Math`,stat:!0},{log2:Tr()})})),aa=o((()=>{Y()({target:`Math`,stat:!0},{sign:fr()})})),oa=o((()=>{var e=Y(),t=d(),n=Ji(),r=Math.abs,i=Math.exp,a=Math.E;e({target:`Math`,stat:!0,forced:t(function(){return Math.sinh(-2e-17)!==-2e-17})},{sinh:function(e){var t=+e;return r(t)<1?(n(t)-n(-t))/2:(i(t-1)-i(-t-1))*(a/2)}})})),sa=o((()=>{var e=Y(),t=_(),n=Ut(),r=RangeError,i=TypeError,a=1/0,o=NaN,s=Math.abs,c=Math.pow,l=t([].push),u=c(2,1023),d=c(2,53)-1,f=Number.MAX_VALUE,p=c(2,971),m={},h={},g={},v={},y={},b=function(e,t){var n=e+t;return{hi:n,lo:t-(n-e)}};e({target:`Math`,stat:!0},{sumPrecise:function(e){var t=[],c=0,_=v;switch(n(e,function(e){if(++c>d)throw new r(`Maximum allowed index exceeded`);if(typeof e!=`number`)throw new i(`Value is not a number`);_!==m&&(e===e?e===a?_=_===h?m:g:e===-a?_=_===g?m:h:(e!==0||1/e===a)&&(_===v||_===y)&&(_=y,l(t,e)):_=m)}),_){case m:return o;case h:return-a;case g:return a;case v:return-0}for(var x=[],S=0,C,w,T,E,D,O,k=0;k=0?x[N]:0;if(N--,s(S)>1||S>0&&P>0||S<0&&P<0)return S>0?a:-a;if(T=b(S*u,P/2),E=T.hi,D=T.lo,D*=2,s(2*E)===a)return E>0?E===u&&D===-(p/2)&&N>=0&&x[N]<0?f:a:E===-u&&D===p/2&&N>=0&&x[N]>0?-f:-a;D!==0&&(x[++N]=D,D=0),E*=2}for(;N>=0&&(T=b(E,x[N--]),E=T.hi,D=T.lo,D===0););return N>=0&&(D<0&&x[N]<0||D>0&&x[N]>0)&&(w=D*2,C=E+w,w===C-E&&(E=C)),E}})})),ca=o((()=>{var e=Y(),t=Ji(),n=Math.exp;e({target:`Math`,stat:!0},{tanh:function(e){var r=+e,i=t(r),a=t(-r);return i===1/0?1:a===1/0?-1:(i-a)/(n(r)+n(-r))}})})),la=o((()=>{Re()(Math,`Math`,!0)})),ua=o((()=>{Y()({target:`Math`,stat:!0},{trunc:pe()})})),da=o(((e,t)=>{t.exports=_()(1.1.valueOf)})),fa=o(((e,t)=>{t.exports=` +\v\f\r \xA0               \u2028\u2029`})),pa=o(((e,t)=>{var n=_(),r=x(),i=X(),a=fa(),o=n(``.replace),s=RegExp(`^[`+a+`]+`),c=RegExp(`(^|[^`+a+`])[`+a+`]+$`),l=function(e){return function(t){var n=i(r(t));return e&1&&(n=o(n,s,``)),e&2&&(n=o(n,c,`$1`)),n}};t.exports={start:l(1),end:l(2),trim:l(3)}})),ma=o((()=>{var e=Y(),t=I(),n=f(),r=u(),i=Fe(),a=_(),o=we(),s=V(),c=Tt(),l=E(),p=j(),m=te(),h=d(),g=be().f,v=W().f,y=K().f,b=da(),x=pa().trim,S=`Number`,C=r[S],w=i[S],T=C.prototype,D=r.TypeError,O=a(``.slice),k=a(``.charCodeAt),A=function(e){var t=m(e,`number`);return typeof t==`bigint`?t:M(t)},M=function(e){var t=m(e,`number`),n,r,i,a,o,s,c,l;if(p(t))throw new D(`Cannot convert a Symbol value to a number`);if(typeof t==`string`&&t.length>2){if(t=x(t),n=k(t,0),n===43||n===45){if(r=k(t,2),r===88||r===120)return NaN}else if(n===48){switch(k(t,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+t}for(o=O(t,2),s=o.length,c=0;ca)return NaN;return parseInt(o,i)}}return+t},N=o(S,!C(` 0o1`)||!C(`0b1`)||C(`+0x1`)),P=function(e){return l(T,e)&&h(function(){b(e)})},F=function(e){var t=arguments.length<1?0:C(A(e));return P(this)?c(Object(t),this,F):t};F.prototype=T,N&&!t&&(T.constructor=F),e({global:!0,constructor:!0,wrap:!0,forced:N},{Number:F});var L=function(e,t){for(var r=n?g(t):`MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range`.split(`,`),i=0,a;r.length>i;i++)s(t,a=r[i])&&!s(e,a)&&y(e,a,v(t,a))};t&&w&&L(i[S],w),(N||t)&&L(i[S],C)})),ha=o((()=>{Y()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:2**-52})})),ga=o(((e,t)=>{var n=u().isFinite;t.exports=Number.isFinite||function(e){return typeof e==`number`&&n(e)}})),_a=o((()=>{Y()({target:`Number`,stat:!0},{isFinite:ga()})})),va=o(((e,t)=>{var n=w(),r=Math.floor;t.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&r(e)===e}})),ya=o((()=>{Y()({target:`Number`,stat:!0},{isInteger:va()})})),ba=o((()=>{Y()({target:`Number`,stat:!0},{isNaN:function(e){return e!==e}})})),xa=o((()=>{var e=Y(),t=va(),n=Math.abs;e({target:`Number`,stat:!0},{isSafeInteger:function(e){return t(e)&&n(e)<=9007199254740991}})})),Sa=o((()=>{Y()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})})),Ca=o((()=>{Y()({target:`Number`,stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})})),wa=o(((e,t)=>{var n=u(),r=d(),i=_(),a=X(),o=pa().trim,s=fa(),c=i(``.charAt),l=n.parseFloat,f=n.Symbol,p=f&&f.iterator;t.exports=1/l(s+`-0`)!=-1/0||p&&!r(function(){l(Object(p))})?function(e){var t=o(a(e)),n=l(t);return n===0&&c(t,0)===`-`?-0:n}:l})),Ta=o((()=>{var e=Y(),t=wa();e({target:`Number`,stat:!0,forced:Number.parseFloat!==t},{parseFloat:t})})),Ea=o(((e,t)=>{var n=u(),r=d(),i=_(),a=X(),o=pa().trim,s=fa(),c=n.parseInt,l=n.Symbol,f=l&&l.iterator,p=/^[+-]?0x/i,m=i(p.exec);t.exports=c(s+`08`)!==8||c(s+`0x16`)!==22||f&&!r(function(){c(Object(f))})?function(e,t){var n=o(a(e));return c(n,t>>>0||(m(p,n)?16:10))}:c})),Da=o((()=>{var e=Y(),t=Ea();e({target:`Number`,stat:!0,forced:Number.parseInt!==t},{parseInt:t})})),Oa=o((()=>{var e=Y(),t=_(),n=me(),r=da(),i=Vr(),a=ta(),o=d(),s=RangeError,c=String,l=isFinite,u=Math.abs,f=Math.floor,p=Math.pow,m=Math.round,h=t(1.1.toExponential),g=t(i),v=t(``.slice),y=p(10,308),b=h(-69e-12,4)===`-6.9000e-11`&&h(1.255,2)===`1.25e+0`&&h(12345,3)===`1.235e+4`&&h(25,0)===`3e+1`;e({target:`Number`,proto:!0,forced:!b||!function(){return o(function(){h(1,1/0)})&&o(function(){h(1,-1/0)})}()||!function(){return!o(function(){h(1/0,1/0),h(NaN,1/0)})}()},{toExponential:function(e){var t=r(this);if(e===void 0)return h(t);var i=n(e);if(!l(t))return String(t);if(i<0||i>20)throw new s(`Incorrect fraction digits`);if(b)return h(t,i);var o=``,d,_,x,S,C,w,T;return t<0&&(o=`-`,t=-t),t===0?(_=0,d=g(`0`,i+1)):(C=a(t),_=f(C),T=i-_>=308?t*y*p(10,i-_-308):t/p(10,_-i),w=m(T),T-w>=.5&&(w+=1),w>=p(10,i+1)&&(w/=10,_+=1),d=c(w)),i!==0&&(d=v(d,0,1)+`.`+v(d,1)),_===0?(x=`+`,S=`0`):(x=_>0?`+`:`-`,S=c(u(_))),d+=`e`+x+S,o+d}})})),ka=o((()=>{var e=Y(),t=_(),n=me(),r=da(),i=Vr(),a=d(),o=RangeError,s=String,c=Math.floor,l=t(i),u=t(``.slice),f=t(1.1.toFixed),p=function(e,t,n){return t===0?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t},h=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},g=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=c(r/t),r=r%t*1e7},v=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=s(e[t]);n=n===``?r:n+l(`0`,7-r.length)+r}return n};e({target:`Number`,proto:!0,forced:a(function(){return f(8e-5,3)!==`0.000`||f(.9,0)!==`1`||f(1.255,2)!==`1.25`||f(0xde0b6b3a7640080,0)!==`1000000000000000128`})||!a(function(){f({})})},{toFixed:function(e){var t=r(this),i=n(e),a=[0,0,0,0,0,0],c=``,d=`0`,f,_,y,b;if(i<0||i>20)throw new o(`Incorrect fraction digits`);if(t!==t)return`NaN`;if(t<=-1e21||t>=1e21)return s(t);if(t<0&&(c=`-`,t=-t),t>1e-21)if(f=m(t*p(2,69,1))-69,_=f<0?t*p(2,-f,1):t/p(2,f,1),_*=4503599627370496,f=52-f,f>0){for(h(a,0,_),y=i;y>=7;)h(a,1e7,0),y-=7;for(h(a,p(10,y,1),0),y=f-1;y>=23;)g(a,1<<23),y-=23;g(a,1<0?(b=d.length,d=c+(b<=i?`0.`+l(`0`,i-b)+d:u(d,0,b-i)+`.`+u(d,b-i))):d=c+d,d}})})),Aa=o((()=>{var e=Y(),t=_(),n=d(),r=da(),i=t(1.1.toPrecision);e({target:`Number`,proto:!0,forced:n(function(){return i(1,void 0)!==`1`})||!n(function(){i({})})},{toPrecision:function(e){return e===void 0?i(r(this)):i(r(this),e)}})})),ja=o(((e,t)=>{var n=f(),r=_(),i=m(),a=d(),o=De(),s=xe(),c=h(),l=B(),u=y(),p=Object.assign,g=Object.defineProperty,v=r([].concat);t.exports=!p||a(function(){if(n&&p({b:1},p(g({},`a`,{enumerable:!0,get:function(){g(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(`assign detection`),i=`abcdefghijklmnopqrst`;return e[r]=7,i.split(``).forEach(function(e){t[e]=e}),p({},e)[r]!==7||o(p({},t)).join(``)!==i})?function(e,t){for(var r=l(e),a=arguments.length,d=1,f=s.f,p=c.f;a>d;)for(var m=u(arguments[d++]),h=f?v(o(m),f(m)):o(m),g=h.length,_=0,y;g>_;)y=h[_++],(!n||i(p,m,y))&&(r[y]=m[y]);return r}:p})),Ma=o((()=>{var e=Y(),t=ja();e({target:`Object`,stat:!0,arity:2,forced:Object.assign!==t},{assign:t})})),Na=o((()=>{var e=Y(),t=f(),n=Ae();e({target:`Object`,stat:!0,sham:!t},{create:n})})),Pa=o(((e,t)=>{var n=I(),r=u(),i=d(),a=Jn();t.exports=n||!i(function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete r[e]}})})),Fa=o((()=>{var e=Y(),t=f(),n=Pa(),r=N(),i=B(),a=K();t&&e({target:`Object`,proto:!0,forced:n},{__defineGetter__:function(e,t){a.f(i(this),e,{get:r(t),enumerable:!0,configurable:!0})}})})),Ia=o((()=>{var e=Y(),t=f(),n=Oe().f;e({target:`Object`,stat:!0,forced:Object.defineProperties!==n,sham:!t},{defineProperties:n})})),La=o((()=>{var e=Y(),t=f(),n=K().f;e({target:`Object`,stat:!0,forced:Object.defineProperty!==n,sham:!t},{defineProperty:n})})),Ra=o((()=>{var e=Y(),t=f(),n=Pa(),r=N(),i=B(),a=K();t&&e({target:`Object`,proto:!0,forced:n},{__defineSetter__:function(e,t){a.f(i(this),e,{set:r(t),enumerable:!0,configurable:!0})}})})),za=o(((e,t)=>{var n=f(),r=d(),i=_(),a=Lt(),o=De(),s=S(),c=h().f,l=i(c),u=i([].push),p=n&&r(function(){var e=Object.create(null);return e[2]=2,!l(e,2)}),m=function(e){return function(t){for(var r=s(t),i=o(r),c=p&&a(r)===null,d=i.length,f=0,m=[],h;d>f;)h=i[f++],(!n||(c?h in r:l(r,h)))&&u(m,e?[h,r[h]]:r[h]);return m}};t.exports={entries:m(!0),values:m(!1)}})),Ba=o((()=>{var e=Y(),t=za().entries;e({target:`Object`,stat:!0},{entries:function(e){return t(e)}})})),Va=o((()=>{var e=Y(),t=Oi(),n=d(),r=w(),i=Ni().onFreeze,a=Object.freeze;e({target:`Object`,stat:!0,forced:n(function(){a(1)}),sham:!t},{freeze:function(e){return a&&r(e)?a(i(e)):e}})})),Ha=o((()=>{var e=Y(),t=Ut(),n=Ge();e({target:`Object`,stat:!0},{fromEntries:function(e){var r={};return t(e,function(e,t){n(r,e,t)},{AS_ENTRIES:!0}),r}})})),Ua=o((()=>{var e=Y(),t=d(),n=S(),r=W().f,i=f();e({target:`Object`,stat:!0,forced:!i||t(function(){r(1)}),sham:!i},{getOwnPropertyDescriptor:function(e,t){return r(n(e),t)}})})),Wa=o((()=>{var e=Y(),t=f(),n=Se(),r=S(),i=W(),a=Ge();e({target:`Object`,stat:!0,sham:!t},{getOwnPropertyDescriptors:function(e){for(var t=r(e),o=i.f,s=n(t),c={},l=0,u,d;s.length>l;)d=o(t,u=s[l++]),d!==void 0&&a(c,u,d);return c}})})),Ga=o((()=>{var e=Y(),t=d(),n=Me().f;e({target:`Object`,stat:!0,forced:t(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:n})})),Ka=o((()=>{var e=Y(),t=d(),n=B(),r=Lt(),i=It();e({target:`Object`,stat:!0,forced:t(function(){r(1)}),sham:!i},{getPrototypeOf:function(e){return r(n(e))}})})),qa=o((()=>{var e=Y(),t=Ge(),n=T(),r=_(),i=N(),a=x(),o=ne(),s=Ut(),c=d(),l=Object.groupBy,u=n(`Object`,`create`),f=r([].push);e({target:`Object`,stat:!0,forced:!l||c(function(){return l(`ab`,function(e){return e}).a.length!==1})},{groupBy:function(e,n){a(e),i(n);var r=u(null),c=0;return s(e,function(e){var i=o(n(e,c++));i in r?f(r[i],e):t(r,i,[e])}),r}})})),Ja=o((()=>{Y()({target:`Object`,stat:!0},{hasOwn:V()})})),Ya=o(((e,t)=>{t.exports=Object.is||function(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}})),Xa=o((()=>{Y()({target:`Object`,stat:!0},{is:Ya()})})),Za=o((()=>{var e=Y(),t=Mi();e({target:`Object`,stat:!0,forced:Object.isExtensible!==t},{isExtensible:t})})),Qa=o((()=>{var e=Y(),t=d(),n=w(),r=v(),i=ji(),a=Object.isFrozen;e({target:`Object`,stat:!0,forced:i||t(function(){a(1)})},{isFrozen:function(e){return!n(e)||i&&r(e)===`ArrayBuffer`?!0:a?a(e):!1}})})),$a=o((()=>{var e=Y(),t=d(),n=w(),r=v(),i=ji(),a=Object.isSealed;e({target:`Object`,stat:!0,forced:i||t(function(){a(1)})},{isSealed:function(e){return!n(e)||i&&r(e)===`ArrayBuffer`?!0:a?a(e):!1}})})),eo=o((()=>{var e=Y(),t=B(),n=De();e({target:`Object`,stat:!0,forced:d()(function(){n(1)})},{keys:function(e){return n(t(e))}})})),to=o((()=>{var e=Y(),t=f(),n=Pa(),r=B(),i=ne(),a=Lt(),o=W().f;t&&e({target:`Object`,proto:!0,forced:n},{__lookupGetter__:function(e){var t=r(this),n=i(e),s;do if(s=o(t,n))return s.get;while(t=a(t))}})})),no=o((()=>{var e=Y(),t=f(),n=Pa(),r=B(),i=ne(),a=Lt(),o=W().f;t&&e({target:`Object`,proto:!0,forced:n},{__lookupSetter__:function(e){var t=r(this),n=i(e),s;do if(s=o(t,n))return s.set;while(t=a(t))}})})),ro=o((()=>{var e=Y(),t=w(),n=Ni().onFreeze,r=Oi(),i=d(),a=Object.preventExtensions;e({target:`Object`,stat:!0,forced:i(function(){a(1)}),sham:!r},{preventExtensions:function(e){return a&&t(e)?a(n(e)):e}})})),io=o((()=>{var e=f(),t=Ne(),n=w(),r=xt(),i=B(),a=x(),o=Object.getPrototypeOf,s=Object.setPrototypeOf,c=Object.prototype,l=`__proto__`;if(e&&o&&s&&!(l in c))try{t(c,l,{configurable:!0,get:function(){return o(i(this))},set:function(e){var t=a(this);r(e)&&n(t)&&s(t,e)}})}catch{}})),ao=o((()=>{var e=Y(),t=w(),n=Ni().onFreeze,r=Oi(),i=d(),a=Object.seal;e({target:`Object`,stat:!0,forced:i(function(){a(1)}),sham:!r},{seal:function(e){return a&&t(e)?a(n(e)):e}})})),oo=o((()=>{Y()({target:`Object`,stat:!0},{setPrototypeOf:Ct()})})),so=o(((e,t)=>{var n=Te(),r=Ee();t.exports=n?{}.toString:function(){return`[object `+r(this)+`]`}})),co=o((()=>{var e=Te(),t=q(),n=so();e||t(Object.prototype,`toString`,n,{unsafe:!0})})),lo=o((()=>{var e=Y(),t=za().values;e({target:`Object`,stat:!0},{values:function(e){return t(e)}})})),uo=o((()=>{var e=Y(),t=wa();e({global:!0,forced:parseFloat!==t},{parseFloat:t})})),fo=o((()=>{var e=Y(),t=Ea();e({global:!0,forced:parseInt!==t},{parseInt:t})})),po=o(((e,t)=>{var n=He(),r=M(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a constructor`)}})),mo=o(((e,t)=>{var n=G(),r=po(),i=b(),a=H()(`species`);t.exports=function(e,t){var o=n(e).constructor,s;return o===void 0||i(s=n(o)[a])?t:r(s)}})),ho=o(((e,t)=>{var n=TypeError;t.exports=function(e,t){if(e{var n=D();t.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)})),_o=o(((e,t)=>{var n=u(),r=Ze(),i=Be(),a=C(),o=V(),s=d(),c=ke(),l=je(),f=U(),p=ho(),m=go(),h=zn(),g=n.setImmediate,_=n.clearImmediate,v=n.process,y=n.Dispatch,b=n.Function,x=n.MessageChannel,S=n.String,w=0,T={},E=`onreadystatechange`,D,O,k,A;s(function(){D=n.location});var j=function(e){if(o(T,e)){var t=T[e];delete T[e],t()}},M=function(e){return function(){j(e)}},N=function(e){j(e.data)},P=function(e){n.postMessage(S(e),D.protocol+`//`+D.host)};(!g||!_)&&(g=function(e){p(arguments.length,1);var t=a(e)?e:b(e),n=l(arguments,1);return T[++w]=function(){r(t,void 0,n)},O(w),w},_=function(e){delete T[e]},h?O=function(e){v.nextTick(M(e))}:y&&y.now?O=function(e){y.now(M(e))}:x&&!m?(k=new x,A=k.port2,k.port1.onmessage=N,O=i(A.postMessage,A)):n.addEventListener&&a(n.postMessage)&&!n.importScripts&&D&&D.protocol!==`file:`&&!s(P)?(O=P,n.addEventListener(`message`,N,!1)):O=E in f(`script`)?function(e){c.appendChild(f(`script`))[E]=function(){c.removeChild(this),j(e)}}:function(e){setTimeout(M(e),0)}),t.exports={set:g,clear:_}})),vo=o(((e,t)=>{var n=u(),r=f(),i=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!r)return n[e];var t=i(n,e);return t&&t.value}})),yo=o(((e,t)=>{var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},t.exports=n})),bo=o(((e,t)=>{var n=D();t.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<`u`})),xo=o(((e,t)=>{var n=D();t.exports=/web0s(?!.*chrome)/i.test(n)})),So=o(((e,t)=>{var n=u(),r=vo(),i=Be(),a=_o().set,o=yo(),s=go(),c=bo(),l=xo(),d=zn(),f=n.MutationObserver||n.WebKitMutationObserver,p=n.document,m=n.process,h=n.Promise,g=r(`queueMicrotask`),_,v,y,b,x;if(!g){var S=new o,C=function(){var e,t;for(d&&(e=m.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&_(),e}e&&e.enter()};!s&&!d&&!l&&f&&p?(v=!0,y=p.createTextNode(``),new f(C).observe(y,{characterData:!0}),_=function(){y.data=v=!v}):!c&&h&&h.resolve?(b=h.resolve(void 0),b.constructor=h,x=i(b.then,b),_=function(){x(C)}):d?_=function(){m.nextTick(C)}:(a=i(a,n),_=function(){a(C)}),g=function(e){S.head||_(),S.add(e)}}t.exports=g})),Co=o(((e,t)=>{t.exports=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}})),wo=o(((e,t)=>{t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}})),To=o(((e,t)=>{t.exports=u().Promise})),Eo=o(((e,t)=>{var n=u(),r=To(),i=C(),a=we(),o=se(),s=H(),c=Rn(),l=I(),d=O(),f=r&&r.prototype,p=s(`species`),m=!1,h=i(n.PromiseRejectionEvent);t.exports={CONSTRUCTOR:a(`Promise`,function(){var e=o(r),t=e!==String(r);if(!t&&d===66||l&&!(f.catch&&f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),i=function(e){e(function(){},function(){})},a=n.constructor={};if(a[p]=i,m=n.then(function(){})instanceof i,!m)return!0}return!t&&(c===`BROWSER`||c===`DENO`)&&!h}),REJECTION_EVENT:h,SUBCLASSING:m}})),Do=o(((e,t)=>{var n=N(),r=TypeError,i=function(e){var t,i;this.promise=new e(function(e,n){if(t!==void 0||i!==void 0)throw new r(`Bad Promise constructor`);t=e,i=n}),this.resolve=n(t),this.reject=n(i)};t.exports.f=function(e){return new i(e)}})),Oo=o((()=>{var e=Y(),t=I(),n=zn(),r=u(),i=Fe(),a=m(),o=q(),s=Ct(),c=Re(),l=Xn(),d=N(),f=C(),p=w(),h=ur(),g=mo(),_=_o().set,v=So(),y=Co(),b=wo(),x=yo(),S=de(),T=To(),E=Eo(),D=Do(),O=`Promise`,k=E.CONSTRUCTOR,A=E.REJECTION_EVENT,j=E.SUBCLASSING,M=S.getterFor(O),P=S.set,F=T&&T.prototype,L=T,R=F,z=r.TypeError,B=r.document,V=r.process,ee=D.f,H=ee,te=!!(B&&B.createEvent&&r.dispatchEvent),ne=`unhandledrejection`,U=`rejectionhandled`,re=0,W=1,ie=2,G=1,K=2,ae,oe,se,ce,le=function(e){var t;return p(e)&&f(t=e.then)?t:!1},ue=function(e,t){var n=t.value,r=t.state===W,i=r?e.ok:e.fail,o=e.resolve,s=e.reject,c=e.domain,l,u,d;try{i?(r||(t.rejection===K&&ge(t),t.rejection=G),i===!0?l=n:(c&&c.enter(),l=i(n),c&&(c.exit(),d=!0)),l===e.promise?s(new z(`Promise-chain cycle`)):(u=le(l))?a(u,l,o,s):o(l)):s(n)}catch(e){c&&!d&&c.exit(),s(e)}},fe=function(e,t){e.notified||(e.notified=!0,v(function(){for(var n=e.reactions,r;r=n.get();)ue(r,e);e.notified=!1,t&&!e.rejection&&me(e)}))},pe=function(e,t,n){var i,a;te?(i=B.createEvent(`Event`),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),r.dispatchEvent(i)):i={promise:t,reason:n},!A&&(a=r[`on`+e])?a(i):e===ne&&y(`Unhandled promise rejection`,n)},me=function(e){a(_,r,function(){var t=e.facade,r=e.value,i=he(e),a;if(i&&(a=b(function(){n?V.emit(`unhandledRejection`,r,t):pe(ne,t,r)}),e.rejection=n||he(e)?K:G,a.error))throw a.value})},he=function(e){return e.rejection!==G&&!e.parent},ge=function(e){a(_,r,function(){var t=e.facade;n?V.emit(`rejectionHandled`,t):pe(U,t,e.value)})},J=function(e,t,n){return function(r){e(t,r,n)}},_e=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=ie,fe(e,!0))},ve=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new z(`Promise can't be resolved itself`);var r=le(t);r?v(function(){var n={done:!1};try{a(r,t,J(ve,n,e),J(_e,n,e))}catch(t){_e(n,t,e)}}):(e.value=t,e.state=W,fe(e,!1))}catch(t){_e({done:!1},t,e)}}};if(k&&(L=function(e){h(this,R),d(e),a(ae,this);var t=M(this);try{e(J(ve,t),J(_e,t))}catch(e){_e(t,e)}},R=L.prototype,ae=function(e){P(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:re,value:null})},ae.prototype=o(R,`then`,function(e,t){var r=M(this),i=ee(g(this,L));return r.parent=!0,i.ok=f(e)?e:!0,i.fail=f(t)&&t,i.domain=n?V.domain:void 0,r.state===re?r.reactions.add(i):v(function(){ue(i,r)}),i.promise}),oe=function(){var e=new ae,t=M(e);this.promise=e,this.resolve=J(ve,t),this.reject=J(_e,t)},D.f=ee=function(e){return e===L||e===se?new oe(e):H(e)},!t&&f(T)&&F!==Object.prototype)){ce=F.then,j||o(F,`then`,function(e,t){var n=this;return new L(function(e,t){a(ce,n,e,t)}).then(e,t)},{unsafe:!0});try{delete F.constructor}catch{}s&&s(F,R)}e({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:L}),se=i.Promise,c(L,O,!1,!0),l(O)})),ko=o(((e,t)=>{var n=To(),r=xn();t.exports=Eo().CONSTRUCTOR||!r(function(e){n.all(e).then(void 0,function(){})})})),Ao=o((()=>{var e=Y(),t=m(),n=N(),r=Do(),i=wo(),a=Ut();e({target:`Promise`,stat:!0,forced:ko()},{all:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,u=1;a(e,function(e){var n=s++,a=!1;u++,t(r,o,e).then(function(e){a||(a=!0,i[n]=e,--u||c(i))},l)}),--u||c(i)});return u.error&&l(u.value),s.promise}})})),jo=o((()=>{var e=Y(),t=I(),n=Eo().CONSTRUCTOR,r=To(),i=T(),a=C(),o=q(),s=r&&r.prototype;if(e({target:`Promise`,proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&a(r)){var c=i(`Promise`).prototype.catch;s.catch!==c&&o(s,`catch`,c,{unsafe:!0})}})),Mo=o((()=>{var e=Y(),t=m(),n=N(),r=Do(),i=wo(),a=Ut();e({target:`Promise`,stat:!0,forced:ko()},{race:function(e){var o=this,s=r.f(o),c=s.reject,l=i(function(){var r=n(o.resolve);a(e,function(e){t(r,o,e).then(s.resolve,c)})});return l.error&&c(l.value),s.promise}})})),No=o((()=>{var e=Y(),t=Do(),n=Eo().CONSTRUCTOR;e({target:`Promise`,stat:!0,forced:n},{reject:function(e){var n=t.f(this),r=n.reject;return r(e),n.promise}})})),Po=o(((e,t)=>{var n=G(),r=w(),i=Do();t.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var a=i.f(e),o=a.resolve;return o(t),a.promise}})),Fo=o((()=>{var e=Y(),t=T(),n=I(),r=To(),i=Eo().CONSTRUCTOR,a=Po(),o=t(`Promise`),s=n&&!i;e({target:`Promise`,stat:!0,forced:n||i},{resolve:function(e){return a(s&&this===o?r:this,e)}})})),Io=o((()=>{Oo(),Ao(),jo(),Mo(),No(),Fo()})),Lo=o((()=>{var e=Y(),t=m(),n=N(),r=Do(),i=wo(),a=Ut();e({target:`Promise`,stat:!0,forced:ko()},{allSettled:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,l=1;a(e,function(e){var n=s++,a=!1;l++,t(r,o,e).then(function(e){a||(a=!0,i[n]={status:`fulfilled`,value:e},--l||c(i))},function(e){a||(a=!0,i[n]={status:`rejected`,reason:e},--l||c(i))})}),--l||c(i)});return u.error&&l(u.value),s.promise}})})),Ro=o((()=>{var e=Y(),t=m(),n=N(),r=T(),i=Do(),a=wo(),o=Ut(),s=ko(),c=`No one promise resolved`;e({target:`Promise`,stat:!0,forced:s},{any:function(e){var s=this,l=r(`AggregateError`),u=i.f(s),d=u.resolve,f=u.reject,p=a(function(){var r=n(s.resolve),i=[],a=0,u=1,p=!1;o(e,function(e){var n=a++,o=!1;u++,t(r,s,e).then(function(e){o||p||(p=!0,d(e))},function(e){o||p||(o=!0,i[n]=e,--u||f(new l(i,c)))})}),--u||f(new l(i,c))});return p.error&&f(p.value),u.promise}})})),zo=o((()=>{var e=Y(),t=I(),n=To(),r=d(),i=T(),a=C(),o=mo(),s=Po(),c=q(),l=n&&n.prototype;if(e({target:`Promise`,proto:!0,real:!0,forced:!!n&&r(function(){l.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=o(this,i(`Promise`)),n=a(e);return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}}),!t&&a(n)){var u=i(`Promise`).prototype.finally;l.finally!==u&&c(l,`finally`,u,{unsafe:!0})}})),Bo=o((()=>{var e=Y(),t=u(),n=Ze(),r=je(),i=Do(),a=N(),o=wo(),s=t.Promise,c=!1;e({target:`Promise`,stat:!0,forced:!s||!s.try||o(function(){s.try(function(e){c=e===8},8)}).error||!c},{try:function(e){var t=arguments.length>1?r(arguments,1):[],s=i.f(this),c=o(function(){return n(a(e),void 0,t)});return(c.error?s.reject:s.resolve)(c.value),s.promise}})})),Vo=o((()=>{var e=Y(),t=Do();e({target:`Promise`,stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})})),Ho=o(((e,t)=>{var n=u(),r=R(),i=C(),a=Ae(),o=Lt(),s=q(),c=H(),l=I(),d=`USE_FUNCTION_CONSTRUCTOR`,f=c(`asyncIterator`),p=n.AsyncIterator,m=r.AsyncIteratorPrototype,h,g;if(m)h=m;else if(i(p))h=p.prototype;else if(r[d]||n[d])try{g=o(o(o(Function(`return async function*(){}()`)()))),o(g)===Object.prototype&&(h=g)}catch{}h?l&&(h=a(h)):h={},i(h[f])||s(h,f,function(){return this}),t.exports=h})),Uo=o(((e,t)=>{var n=m(),r=G(),i=Ae(),a=P(),o=lr(),s=de(),c=Ht(),l=T(),u=Ho(),d=kn(),f=l(`Promise`),p=`AsyncFromSyncIterator`,h=s.set,g=s.getterFor(p),_=function(e,t,n,r,i){var a=e.done;f.resolve(e.value).then(function(e){t(d(e,a))},function(e){if(!a&&i)try{c(r,`throw`,e)}catch(t){e=t}n(e)})},v=function(e){e.type=p,h(this,e)};v.prototype=o(i(u),{next:function(){var e=g(this),t=arguments.length>0,i=t?arguments[0]:void 0;return new f(function(a,o){_(r(t?n(e.next,e.iterator,i):n(e.next,e.iterator)),a,o,e.iterator,!0)})},return:function(){var e=g(this).iterator,t=arguments.length>0,i=t?arguments[0]:void 0;return new f(function(o,s){var c=a(e,`return`);if(c===void 0)return o(d(i,!0));_(r(t?n(c,e,i):n(c,e)),o,s,e)})},throw:function(){var e=g(this).iterator,t=arguments.length>0,i=t?arguments[0]:void 0;return new f(function(o,s){var l=a(e,`throw`);if(l===void 0){try{c(e,`normal`)}catch(e){return s(e)}return s(TypeError(`The iterator does not provide a throw method`))}_(r(t?n(l,e,i):n(l,e)),o,s,e,!0)})}}),t.exports=v})),Wo=o(((e,t)=>{var n=m(),r=Uo(),i=G(),a=Vt(),o=ci(),s=P(),c=H()(`asyncIterator`);t.exports=function(e,t){var l=arguments.length<2?s(e,c):t;return l?i(n(l,e)):new r(o(a(e)))}})),Go=o(((e,t)=>{var n=m(),r=G(),i=T(),a=P();t.exports=function(e,t,o,s){try{var c=a(e,`return`);if(c)return i(`Promise`).resolve(n(c,e)).then(function(e){try{t!==s&&r(e)}catch(e){s(e);return}t(o)},function(e){t===s?t(o):s(e)})}catch(e){return s(t===s?o:e)}t(o)}})),Ko=o(((e,t)=>{var n=m(),r=N(),i=G(),a=w(),o=Xt(),s=T(),c=Ge(),l=Zt(),u=ci(),d=Go(),f=function(e){var t=e===0,f=e===1,p=e===2,m=e===3;return function(e,h,g){i(e);var _=h!==void 0;(_||!t)&&r(h);var v=u(e),y=s(`Promise`),b=v.iterator,x=v.next,S=0;return new y(function(e,r){var s=function(e){d(b,r,e,r)},u=function(){try{try{o(S)}catch(e){return s(e)}y.resolve(i(n(x,b))).then(function(n){try{if(i(n).done)t?(l(g,S),e(g)):e(m?!1:p||void 0);else{var o=n.value;try{if(_){var v=S++,x=h(o,v),C=function(n){if(f)u();else if(p)n?u():d(b,e,!1,r);else if(t)try{c(g,v,n),u()}catch(e){s(e)}else n?d(b,e,m||o,r):u()};a(x)?y.resolve(x).then(C,s):C(x)}else c(g,S++,o),u()}catch(e){s(e)}}}catch(e){r(e)}},r)}catch(e){r(e)}};u()})}};t.exports={toArray:f(0),forEach:f(1),every:f(2),some:f(3),find:f(4)}})),qo=o(((e,t)=>{var n=Be(),r=_(),i=He(),a=Wo(),o=Vt(),s=ci(),c=Bt(),l=P(),u=T(),d=tr(),f=H(),p=Uo(),m=Ko().toArray,h=f(`asyncIterator`),g=r(d(`Array`,`values`)),v=r(g([]).next),y=function(){return new b(this)},b=function(e){this.iterator=g(e)};b.prototype.next=function(){return v(this.iterator)},t.exports=function(e){var t=this,r=arguments.length,d=r>1?arguments[1]:void 0,f=r>2?arguments[2]:void 0;return new(u(`Promise`))(function(r){d!==void 0&&(d=n(d,f));var u=l(e,h),g=u?void 0:c(e)||y,_=i(t)?new t:[];r(m(u?a(e,u):new p(s(o(e,g))),d,_))})}})),Jo=o((()=>{var e=Y(),t=qo(),n=d(),r=Array.fromAsync;e({target:`Array`,stat:!0,forced:!r||n(function(){var e=0;return r.call(function(){return e++,[]},{length:0}),e!==1})},{fromAsync:t})})),Yo=o((()=>{var e=Y(),t=f(),n=T(),r=N(),i=ur(),a=q(),o=lr(),s=Ne(),c=H(),l=de(),u=Yr(),d=O(),p=n(`Promise`),m=n(`SuppressedError`),h=ReferenceError,g=c(`asyncDispose`),_=c(`toStringTag`),v=`AsyncDisposableStack`,y=l.set,b=l.getterFor(v),x=`async-dispose`,S=`disposed`,C=`pending`,w=function(e){var t=b(e);if(t.state===S)throw new h(v+` already disposed`);return t},E=function(){y(i(this,D),{type:v,state:C,stack:[]}),t||(this.disposed=!1)},D=E.prototype;o(D,{disposeAsync:function(){var e=this;return new p(function(n,r){var i=b(e);if(i.state===S)return n(void 0);i.state=S,t||(e.disposed=!0);var a=i.stack,o=a.length,s=!1,c,l=function(e){s?c=new m(e,c):(s=!0,c=e),u()},u=function(){if(o){var e=a[--o];a[o]=null;try{p.resolve(e()).then(u,l)}catch(e){l(e)}}else i.stack=null,s?r(c):n(void 0)};u()})},use:function(e){return u(w(this),e,x),e},adopt:function(e,t){var n=w(this);return r(t),u(n,void 0,x,function(){return t(e)}),e},defer:function(e){var t=w(this);r(e),u(t,void 0,x,e)},move:function(){var e=w(this),n=new E;return b(n).stack=e.stack,e.stack=[],e.state=S,t||(this.disposed=!0),n}}),t&&s(D,`disposed`,{configurable:!0,get:function(){return b(this).state===S}}),a(D,g,D.disposeAsync,{name:`disposeAsync`}),a(D,_,v,{nonWritable:!0}),e({global:!0,constructor:!0,forced:d&&d<136},{AsyncDisposableStack:E})})),Xo=o((()=>{var e=m(),t=q(),n=T(),r=P(),i=V(),a=H(),o=Ho(),s=a(`asyncDispose`),c=n(`Promise`);i(o,s)||t(o,s,function(){var t=this;return new c(function(n,i){var a=r(t,`return`);a?c.resolve(e(a,t)).then(function(){n(void 0)},i):n(void 0)})})})),Zo=o((()=>{var e=Y(),t=Ze(),n=N(),r=G();e({target:`Reflect`,stat:!0,forced:!d()(function(){Reflect.apply(function(){})})},{apply:function(e,i,a){return t(n(e),i,r(a))}})})),Qo=o((()=>{var e=Y(),t=T(),n=Ze(),r=Qr(),i=po(),a=G(),o=w(),s=Ae(),c=d(),l=t(`Reflect`,`construct`),u=Object.prototype,f=[].push,p=c(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),m=!c(function(){l(function(){})}),h=p||m;e({target:`Reflect`,stat:!0,forced:h,sham:h},{construct:function(e,t){i(e);var c=arguments.length<3?e:i(arguments[2]);if(a(t),m&&!p)return l(e,t,c);if(e===c){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var d=[null];return n(f,d,t),new(n(r,e,d))}var h=c.prototype,g=s(o(h)?h:u),_=n(e,g,t);return o(_)?_:g}})})),$o=o((()=>{var e=Y(),t=f(),n=G(),r=ne(),i=K(),a=C(),o=d(),s=TypeError;e({target:`Reflect`,stat:!0,forced:o(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),sham:!t},{defineProperty:function(e,t,o){n(e);var c=r(t),l,u;if(n(o),(`get`in o||`set`in o)&&(`get`in o&&!a(l=o.get)&&l!==void 0||`set`in o&&!a(u=o.set)&&u!==void 0||`value`in o||`writable`in o))throw new s(`Invalid property descriptor`);try{return i.f(e,c,o),!0}catch{return!1}}})})),es=o((()=>{var e=Y(),t=G(),n=W().f,r=ne();e({target:`Reflect`,stat:!0},{deleteProperty:function(e,i){t(e);var a=r(i),o=n(e,a);return o&&!o.configurable?!1:delete e[a]}})})),ts=o(((e,t)=>{var n=V();t.exports=function(e){return e!==void 0&&(n(e,`value`)||n(e,`writable`))}})),ns=o((()=>{var e=Y(),t=m(),n=w(),r=G(),i=ts(),a=W(),o=Lt(),s=ne(),c=function(e,s,l){if(r(e)===l)return e[s];var u=a.f(e,s);if(u)return i(u)?u.value:u.get===void 0?void 0:t(u.get,l);var d=o(e);if(n(d))return c(d,s,l)};e({target:`Reflect`,stat:!0},{get:function(e,t){return c(r(e),s(t),arguments.length<3?e:arguments[2])}})})),rs=o((()=>{var e=Y(),t=f(),n=G(),r=W();e({target:`Reflect`,stat:!0,sham:!t},{getOwnPropertyDescriptor:function(e,t){return r.f(n(e),t)}})})),is=o((()=>{var e=Y(),t=G(),n=Lt();e({target:`Reflect`,stat:!0,sham:!It()},{getPrototypeOf:function(e){return n(t(e))}})})),as=o((()=>{Y()({target:`Reflect`,stat:!0},{has:function(e,t){return t in e}})})),os=o((()=>{var e=Y(),t=G(),n=Mi();e({target:`Reflect`,stat:!0},{isExtensible:function(e){return t(e),n(e)}})})),ss=o((()=>{Y()({target:`Reflect`,stat:!0},{ownKeys:Se()})})),cs=o((()=>{var e=Y(),t=T(),n=G();e({target:`Reflect`,stat:!0,sham:!Oi()},{preventExtensions:function(e){n(e);try{var r=t(`Object`,`preventExtensions`);return r&&r(e),!0}catch{return!1}}})})),ls=o((()=>{var e=Y(),t=m(),n=G(),r=w(),i=ts(),a=d(),o=K(),s=W(),c=Lt(),l=g(),u=ne(),f=function(e,a,u,d){var p=s.f(n(e),a),m,h,g;if(!p){if(r(h=c(e)))return f(h,a,u,d);p=l(0)}if(i(p)){if(p.writable===!1||!r(d))return!1;if(m=s.f(d,a)){if(!i(m)||m.writable===!1)return!1;o.f(d,a,{value:u})}else try{o.f(d,a,l(0,u))}catch{return!1}}else{if(g=p.set,g===void 0)return!1;t(g,d,u)}return!0};e({target:`Reflect`,stat:!0,forced:a(function(){var e=function(){},t=o.f(new e,`a`,{configurable:!0});return Reflect.set(e.prototype,`a`,1,t)!==!1})},{set:function(e,t,r){return f(n(e),u(t),r,arguments.length<4?e:arguments[3])}})})),us=o((()=>{var e=Y(),t=G(),n=St(),r=Ct();r&&e({target:`Reflect`,stat:!0},{setPrototypeOf:function(e,i){t(e),n(i);try{return r(e,i),!0}catch{return!1}}})})),ds=o((()=>{var e=Y(),t=u(),n=Re();e({global:!0},{Reflect:{}}),n(t.Reflect,`Reflect`,!0)})),fs=o(((e,t)=>{var n=w(),r=v(),i=H()(`match`);t.exports=function(e){var t;return n(e)&&((t=e[i])===void 0?r(e)===`RegExp`:!!t)}})),ps=o(((e,t)=>{var n=u(),r=d(),i=n.RegExp;t.exports={correct:!r(function(){var e=!0;try{i(`.`,`d`)}catch{e=!1}var t={},n=``,r=e?`dgimsy`:`gimsy`,a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};for(var s in e&&(o.hasIndices=`d`),o)a(s,o[s]);return Object.getOwnPropertyDescriptor(i.prototype,`flags`).get.call(t)!==r||n!==r})}})),ms=o(((e,t)=>{var n=G();t.exports=function(){var e=n(this),t=``;return e.hasIndices&&(t+=`d`),e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.unicodeSets&&(t+=`v`),e.sticky&&(t+=`y`),t}})),hs=o(((e,t)=>{var n=m(),r=V(),i=E(),a=ps(),o=ms(),s=RegExp.prototype;t.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&i(s,e)&&!r(e,`flags`)?n(o,e):e.flags}})),gs=o(((e,t)=>{var n=d(),r=u().RegExp,i=n(function(){var e=r(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!==null}),a=i||n(function(){return!r(`a`,`y`).sticky});t.exports={BROKEN_CARET:i||n(function(){var e=r(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!==null}),MISSED_STICKY:a,UNSUPPORTED_Y:i}})),_s=o(((e,t)=>{var n=d(),r=u().RegExp;t.exports=n(function(){var e=r(`.`,`s`);return!(e.dotAll&&e.test(` +`)&&e.flags===`s`)})})),vs=o(((e,t)=>{var n=d(),r=u().RegExp;t.exports=n(function(){var e=r(`(?b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$c`)!==`bc`})})),ys=o((()=>{var e=f(),t=u(),n=_(),r=we(),i=Tt(),a=ae(),o=Ae(),s=be().f,c=E(),l=fs(),p=X(),m=hs(),h=gs(),g=wt(),v=q(),y=d(),b=V(),x=de().enforce,S=Xn(),C=H(),w=_s(),T=vs(),D=C(`match`),O=t.RegExp,k=O.prototype,A=t.SyntaxError,j=n(k.exec),M=n(``.charAt),N=n(``.replace),P=n(``.indexOf),F=n(``.slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,R=/a/g,z=new O(L)!==L,B=h.MISSED_STICKY,ee=h.UNSUPPORTED_Y,te=e&&(!z||B||w||T||y(function(){return R[D]=!1,O(L)!==L||O(R)===R||String(O(L,`i`))!==`/a/i`})),ne=function(e){for(var t=e.length,n=0,r=``,i=!1,a;n`&&c:if(u===``||b(a,u))throw new A(`Invalid capture group name`);a[u]=!0,i[i.length]=[u,l],c=!1,u=``;continue}c?u+=d:r+=d}for(var f=0;f`,m=`\\`+i[f][1];P(r,p)>-1;)r=N(r,p,m);return[r,i]};if(r(`RegExp`,te)){for(var re=function(e,t){var n=c(k,this),r=l(e),o=t===void 0,s=[],u=e,d,f,h,g,_,v;if(!n&&r&&o&&e.constructor===re)return e;if((r||c(k,e))&&(e=e.source,o&&(t=m(u))),e=e===void 0?``:p(e),t=t===void 0?``:p(t),u=e,w&&`dotAll`in L&&(f=!!t&&P(t,`s`)>-1,f&&(t=N(t,/s/g,``))),d=t,B&&`sticky`in L&&(h=!!t&&P(t,`y`)>-1,h&&ee&&(t=N(t,/y/g,``))),T&&(g=U(e),e=g[0],s=g[1]),_=i(O(e,t),n?this:k,re),(f||h||s.length)&&(v=x(_),f&&(v.dotAll=!0,v.raw=re(ne(e),d)),h&&(v.sticky=!0),s.length&&(v.groups=s)),e!==u)try{a(_,`source`,u===``?`(?:)`:u)}catch{}return _},W=s(O),ie=0;W.length>ie;)g(re,O,W[ie++]);k.constructor=re,re.prototype=k,v(t,`RegExp`,re,{constructor:!0})}S(`RegExp`)})),bs=o(((e,t)=>{var n=TypeError;t.exports=function(e){if(typeof e==`string`)return e;throw new n(`Argument is not a string`)}})),xs=o((()=>{var e=Y(),t=_(),n=bs(),r=V(),i=Hr().start,a=fa(),o=Array,s=RegExp.escape,c=t(``.charAt),l=t(``.charCodeAt),u=t(1.1.toString),d=t([].join),f=/^[0-9a-z]/i,p=/^[$()*+./?[\\\]^{|}]/,m=RegExp(`^[!"#%&',\\-:;<=>@\`~`+a+`]`),h=t(f.exec),g={" ":`t`,"\n":`n`,"\v":`v`,"\f":`f`,"\r":`r`},v=function(e){var t=u(l(e,0),16);return t.length<3?`\\x`+i(t,2,`0`):`\\u`+i(t,4,`0`)};e({target:`RegExp`,stat:!0,forced:!s||s(`ab`)!==`\\x61b`},{escape:function(e){n(e);for(var t=e.length,i=o(t),a=0;a=56320||a+1>=t||(l(e,a+1)&64512)!=56320?i[a]=v(s):(i[a]=s,i[++a]=c(e,a)):i[a]=s}}return d(i,``)}})})),Ss=o((()=>{var e=f(),t=_s(),n=v(),r=Ne(),i=de().get,a=RegExp.prototype,o=TypeError;e&&t&&r(a,`dotAll`,{configurable:!0,get:function(){if(this!==a){if(n(this)===`RegExp`)return!!i(this).dotAll;throw new o(`Incompatible receiver, RegExp required`)}}})})),Cs=o(((e,t)=>{var n=m(),r=_(),i=X(),a=ms(),o=gs(),s=z(),c=Ae(),l=de().get,u=_s(),d=vs(),f=s(`native-string-replace`,String.prototype.replace),p=RegExp.prototype.exec,h=p,g=r(``.charAt),v=r(``.indexOf),y=r(``.replace),b=r(``.slice),x=(function(){var e=/a/,t=/b*/g;return n(p,e,`a`),n(p,t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),S=o.BROKEN_CARET,C=/()??/.exec(``)[1]!==void 0,w=x||C||S||u||d,T=function(e,t){for(var n=e.groups=c(null),r=0;r0&&g(o,t.lastIndex-1);t.lastIndex>0&&(!t.multiline||t.multiline&&k!==` +`&&k!==`\r`&&k!==`\u2028`&&k!==`\u2029`)&&(E=`(?: (?:`+E+`))`,O=` `+O,D++),u=RegExp(`^(?:`+E+`)`,w)}C&&(u=RegExp(`^`+E+`$(?!\\s)`,w)),x&&(d=t.lastIndex);var A=n(p,_?u:t,O);return _?A?(A.input=o,A[0]=b(A[0],D),A.index=t.lastIndex,t.lastIndex+=A[0].length):t.lastIndex=0:x&&A&&(t.lastIndex=t.global?A.index+A[0].length:d),C&&A&&A.length>1&&n(f,A[0],u,function(){for(var e=1;e{var e=Y(),t=Cs();e({target:`RegExp`,proto:!0,forced:/./.exec!==t},{exec:t})})),Ts=o((()=>{var e=f(),t=Ne(),n=ps(),r=ms();e&&!n.correct&&(t(RegExp.prototype,`flags`,{configurable:!0,get:r}),n.correct=!0)})),Es=o((()=>{var e=f(),t=gs().MISSED_STICKY,n=v(),r=Ne(),i=de().get,a=RegExp.prototype,o=TypeError;e&&t&&r(a,`sticky`,{configurable:!0,get:function(){if(this!==a){if(n(this)===`RegExp`)return!!i(this).sticky;throw new o(`Incompatible receiver, RegExp required`)}}})})),Ds=o((()=>{ws();var e=Y(),t=m(),n=C(),r=G(),i=X(),a=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},t.test(`abc`)===!0&&e}(),o=/./.test;e({target:`RegExp`,proto:!0,forced:!a},{test:function(e){var a=r(this),s=i(e),c=a.exec;if(!n(c))return t(o,a,s);var l=t(c,a,s);return l===null?!1:(r(l),!0)}})})),Os=o((()=>{var e=oe().PROPER,t=q(),n=G(),r=X(),i=d(),a=hs(),o=`toString`,s=RegExp.prototype,c=s[o],l=i(function(){return c.call({source:`a`,flags:`b`})!==`/a/b`}),u=e&&c.name!==o;(l||u)&&t(s,o,function(){var e=n(this),t=r(e.source),i=r(a(e));return`/`+t+`/`+i},{unsafe:!0})})),ks=o((()=>{Pi()(`Set`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Fi())})),As=o((()=>{ks()})),js=o(((e,t)=>{var n=_(),r=Set.prototype;t.exports={Set,add:n(r.add),has:n(r.has),remove:n(r.delete),proto:r}})),Ms=o(((e,t)=>{var n=js().has;t.exports=function(e){return n(e),e}})),Ns=o(((e,t)=>{var n=m();t.exports=function(e,t,r){for(var i=r?e:e.iterator,a=e.next,o,s;!(o=n(a,i)).done;)if(s=t(o.value),s!==void 0)return s}})),Ps=o(((e,t)=>{var n=_(),r=Ns(),i=js(),a=i.Set,o=i.proto,s=n(o.forEach),c=n(o.keys),l=c(new a).next;t.exports=function(e,t,n){return n?r({iterator:c(e),next:l},t):s(e,t)}})),Fs=o(((e,t)=>{var n=js(),r=Ps(),i=n.Set,a=n.add;t.exports=function(e){var t=new i;return r(e,function(e){a(t,e)}),t}})),Is=o(((e,t)=>{t.exports=bt()(js().proto,`size`,`get`)||function(e){return e.size}})),Ls=o(((e,t)=>{var n=N(),r=G(),i=m(),a=me(),o=ci(),s=`Invalid size`,c=RangeError,l=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=n(e.has),this.keys=n(e.keys)};d.prototype={getIterator:function(){return o(r(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},t.exports=function(e){r(e);var t=+e.size;if(t!==t)throw new l(s);var n=a(t);if(n<0)throw new c(s);return new d(e,n)}})),Rs=o(((e,t)=>{var n=Ms(),r=js(),i=Fs(),a=Is(),o=Ls(),s=Ps(),c=Ns(),l=r.has,u=r.remove;t.exports=function(e){var t=n(this),r=o(e),d=i(t);return a(d)<=r.size?s(d,function(e){r.includes(e)&&u(d,e)}):c(r.getIterator(),function(e){l(d,e)&&u(d,e)}),d}})),zs=o(((e,t)=>{var n=T(),r=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error(`e`)}}};t.exports=function(e,t){var a=n(`Set`);try{new a()[e](r(0));try{return new a()[e](r(-1)),!1}catch{if(!t)return!0;try{return new a()[e](i(-1/0)),!1}catch{return t(new a([1,2])[e](i(1/0)))}}}catch{return!1}}})),Bs=o((()=>{var e=Y(),t=Rs(),n=d();e({target:`Set`,proto:!0,real:!0,forced:!zs()(`difference`,function(e){return e.size===0})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return t.difference(e).size!==3})},{difference:t})})),Vs=o(((e,t)=>{var n=Ms(),r=js(),i=Is(),a=Ls(),o=Ps(),s=Ns(),c=r.Set,l=r.add,u=r.has;t.exports=function(e){var t=n(this),r=a(e),d=new c;return i(t)>r.size?s(r.getIterator(),function(e){u(t,e)&&l(d,e)}):o(t,function(e){r.includes(e)&&l(d,e)}),d}})),Hs=o((()=>{var e=Y(),t=d(),n=Vs();e({target:`Set`,proto:!0,real:!0,forced:!zs()(`intersection`,function(e){return e.size===2&&e.has(1)&&e.has(2)})||t(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!==`3,2`})},{intersection:n})})),Us=o(((e,t)=>{var n=Ms(),r=js().has,i=Is(),a=Ls(),o=Ps(),s=Ns(),c=Ht();t.exports=function(e){var t=n(this),l=a(e);if(i(t)<=l.size)return o(t,function(e){if(l.includes(e))return!1},!0)!==!1;var u=l.getIterator();return s(u,function(e){if(r(t,e))return c(u.iterator,`normal`,!1)})!==!1}})),Ws=o((()=>{var e=Y(),t=Us();e({target:`Set`,proto:!0,real:!0,forced:!zs()(`isDisjointFrom`,function(e){return!e})},{isDisjointFrom:t})})),Gs=o(((e,t)=>{var n=Ms(),r=Is(),i=Ps(),a=Ls();t.exports=function(e){var t=n(this),o=a(e);return r(t)>o.size?!1:i(t,function(e){if(!o.includes(e))return!1},!0)!==!1}})),Ks=o((()=>{var e=Y(),t=Gs();e({target:`Set`,proto:!0,real:!0,forced:!zs()(`isSubsetOf`,function(e){return e})},{isSubsetOf:t})})),qs=o(((e,t)=>{var n=Ms(),r=js().has,i=Is(),a=Ls(),o=Ns(),s=Ht();t.exports=function(e){var t=n(this),c=a(e);if(i(t){var e=Y(),t=qs();e({target:`Set`,proto:!0,real:!0,forced:!zs()(`isSupersetOf`,function(e){return!e})},{isSupersetOf:t})})),Ys=o(((e,t)=>{var n=Ms(),r=js(),i=Fs(),a=Ls(),o=Ns(),s=r.add,c=r.has,l=r.remove;t.exports=function(e){var t=n(this),r=a(e).getIterator(),u=i(t);return o(r,function(e){c(t,e)?l(u,e):s(u,e)}),u}})),Xs=o(((e,t)=>{t.exports=function(e){try{var t=new Set,n=t[e]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return n.size===1&&n.values().next().value===4}catch{return!1}}})),Zs=o((()=>{var e=Y(),t=Ys(),n=Xs();e({target:`Set`,proto:!0,real:!0,forced:!zs()(`symmetricDifference`)||!n(`symmetricDifference`)},{symmetricDifference:t})})),Qs=o(((e,t)=>{var n=Ms(),r=js().add,i=Fs(),a=Ls(),o=Ns();t.exports=function(e){var t=n(this),s=a(e).getIterator(),c=i(t);return o(s,function(e){r(c,e)}),c}})),$s=o((()=>{var e=Y(),t=Qs(),n=Xs();e({target:`Set`,proto:!0,real:!0,forced:!zs()(`union`)||!n(`union`)},{union:t})})),ec=o((()=>{var e=Y(),t=_(),n=x(),r=me(),i=X(),a=d(),o=t(``.charAt);e({target:`String`,proto:!0,forced:a(function(){return`𠮷`.at(-2)!==`\ud842`})},{at:function(e){var t=i(n(this)),a=t.length,s=r(e),c=s>=0?s:a+s;return c<0||c>=a?void 0:o(t,c)}})})),tc=o(((e,t)=>{var n=_(),r=me(),i=X(),a=x(),o=n(``.charAt),s=n(``.charCodeAt),c=n(``.slice),l=function(e){return function(t,n){var l=i(a(t)),u=r(n),d=l.length,f,p;return u<0||u>=d?e?``:void 0:(f=s(l,u),f<55296||f>56319||u+1===d||(p=s(l,u+1))<56320||p>57343?e?o(l,u):f:e?c(l,u,u+2):(f-55296<<10)+(p-56320)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}})),nc=o((()=>{var e=Y(),t=tc().codeAt;e({target:`String`,proto:!0},{codePointAt:function(e){return t(this,e)}})})),rc=o(((e,t)=>{var n=fs(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`The method doesn't accept regular expressions`);return e}})),ic=o(((e,t)=>{var n=H()(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[n]=!1,`/./`[e](t)}catch{}}return!1}})),ac=o((()=>{var e=Y(),t=ze(),n=W().f,r=ge(),i=X(),a=rc(),o=x(),s=ic(),c=I(),l=t(``.slice),u=Math.min,d=s(`endsWith`);e({target:`String`,proto:!0,forced:!(!c&&!d&&function(){var e=n(String.prototype,`endsWith`);return e&&!e.writable}())&&!d},{endsWith:function(e){var t=i(o(this));a(e);var n=i(e),s=arguments.length>1?arguments[1]:void 0,c=t.length,d=s===void 0?c:u(r(s),c);return l(t,d-n.length,d)===n}})})),oc=o((()=>{var e=Y(),t=_(),n=he(),r=RangeError,i=String.fromCharCode,a=String.fromCodePoint,o=t([].join);e({target:`String`,stat:!0,arity:1,forced:!!a&&a.length!==1},{fromCodePoint:function(e){for(var t=[],a=arguments.length,s=0,c;a>s;){if(c=+arguments[s],n(c,1114111)!==c)throw new r(c+` is not a valid code point`);t[s++]=c<65536?i(c):i(((c-=65536)>>10)+55296,c%1024+56320)}return o(t,``)}})})),sc=o((()=>{var e=Y(),t=_(),n=rc(),r=x(),i=X(),a=ic(),o=t(``.indexOf);e({target:`String`,proto:!0,forced:!a(`includes`)},{includes:function(e){return!!~o(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}})})),cc=o((()=>{var e=Y(),t=_(),n=x(),r=X(),i=t(``.charCodeAt);e({target:`String`,proto:!0},{isWellFormed:function(){for(var e=r(n(this)),t=e.length,a=0;a=56320||++a>=t||(i(e,a)&64512)!=56320))return!1}return!0}})})),lc=o((()=>{var e=tc().charAt,t=X(),n=de(),r=On(),i=kn(),a=`String Iterator`,o=n.set,s=n.getterFor(a);r(String,`String`,function(e){o(this,{type:a,string:t(e),index:0})},function(){var t=s(this),n=t.string,r=t.index,a;return r>=n.length?i(void 0,!0):(a=e(n,r),t.index+=a.length,i(a,!1))})})),uc=o(((e,t)=>{ws();var n=m(),r=q(),i=Cs(),a=d(),o=H(),s=ae(),c=o(`species`),l=RegExp.prototype;t.exports=function(e,t,u,d){var f=o(e),p=!a(function(){var t={};return t[f]=function(){return 7},``[e](t)!==7}),m=p&&!a(function(){var t=!1,n=/a/;if(e===`split`){var r={};r[c]=function(){return n},n={constructor:r,flags:``},n[f]=/./[f]}return n.exec=function(){return t=!0,null},n[f](``),!t});if(!p||!m||u){var h=/./[f],g=t(f,``[e],function(e,t,r,a,o){var s=t.exec;return s===i||s===l.exec?p&&!o?{done:!0,value:n(h,t,r,a)}:{done:!0,value:n(e,r,t,a)}:{done:!1}});r(String.prototype,e,g[0]),r(l,f,g[1])}d&&s(l[f],`sham`,!0)}})),dc=o(((e,t)=>{var n=tc().charAt;t.exports=function(e,t,r){return t+(r&&n(e,t).length||1)}})),fc=o(((e,t)=>{var n=m(),r=G(),i=C(),a=v(),o=Cs(),s=TypeError;t.exports=function(e,t){var c=e.exec;if(i(c)){var l=n(c,e,t);return l!==null&&r(l),l}if(a(e)===`RegExp`)return n(o,e,t);throw new s(`RegExp#exec called on incompatible receiver`)}})),pc=o((()=>{var e=m(),t=_(),n=uc(),r=G(),i=w(),a=ge(),o=X(),s=x(),c=P(),l=dc(),u=hs(),d=fc(),f=t(``.indexOf);n(`match`,function(t,n,p){return[function(n){var r=s(this),a=i(n)?c(n,t):void 0;return a?e(a,n,r):new RegExp(n)[t](o(r))},function(e){var t=r(this),i=o(e),s=p(n,t,i);if(s.done)return s.value;var c=o(u(t));if(!~f(c,`g`))return d(t,i);var m=!!~f(c,`u`)||!!~f(c,`v`);t.lastIndex=0;for(var h=[],g=0,_;(_=d(t,i))!==null;){var v=o(_[0]);h[g]=v,v===``&&(t.lastIndex=l(i,a(t.lastIndex),m)),g++}return g===0?null:h}]})})),mc=o((()=>{var e=Y(),t=m(),n=ze(),r=Dn(),i=kn(),a=x(),o=ge(),s=X(),c=G(),l=w(),u=v(),f=fs(),p=hs(),h=P(),g=q(),_=d(),y=H(),b=mo(),S=dc(),C=fc(),T=de(),E=I(),D=y(`matchAll`),O=`RegExp String`,k=O+` Iterator`,A=T.set,j=T.getterFor(k),M=RegExp.prototype,N=TypeError,F=n(``.indexOf),L=n(``.matchAll),R=!!L&&!_(function(){L(`a`,/./)}),z=r(function(e,t,n,r){A(this,{type:k,regexp:e,string:t,global:n,unicode:r,done:!1})},O,function(){var e=j(this);if(e.done)return i(void 0,!0);var t=e.regexp,n=e.string,r=C(t,n);return r===null?(e.done=!0,i(void 0,!0)):e.global?(s(r[0])===``&&(t.lastIndex=S(n,o(t.lastIndex),e.unicode)),i(r,!1)):(e.done=!0,i(r,!1))}),B=function(e){var t=c(this),n=s(e),r=b(t,RegExp),i=s(p(t)),a=new r(r===RegExp?t.source:t,i),l=!!~F(i,`g`),u=!!~F(i,`u`)||!!~F(i,`v`);return a.lastIndex=o(t.lastIndex),new z(a,n,l,u)};e({target:`String`,proto:!0,forced:R},{matchAll:function(e){var n=a(this),r,i,o,c;if(l(e)){if(f(e)&&(r=s(a(p(e))),!~F(r,`g`)))throw new N("`.matchAll` does not allow non-global regexes");if(R)return L(n,e);if(o=h(e,D),o===void 0&&E&&u(e)===`RegExp`&&(o=B),o)return t(o,e,n)}else if(R)return L(n,e);return i=s(n),c=new RegExp(e,`g`),E?t(B,c,i):c[D](i)}}),E||D in M||g(M,D,B)})),hc=o(((e,t)=>{var n=D();t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)})),gc=o((()=>{var e=Y(),t=Hr().end;e({target:`String`,proto:!0,forced:hc()},{padEnd:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),_c=o((()=>{var e=Y(),t=Hr().start;e({target:`String`,proto:!0,forced:hc()},{padStart:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})})),vc=o((()=>{var e=Y(),t=_(),n=S(),r=B(),i=X(),a=J(),o=t([].push),s=t([].join);e({target:`String`,stat:!0},{raw:function(e){var t=n(r(e).raw),c=a(t);if(!c)return``;for(var l=arguments.length,u=[],d=0;;){if(o(u,i(t[d++])),d===c)return s(u,``);d{Y()({target:`String`,proto:!0},{repeat:Vr()})})),bc=o(((e,t)=>{var n=_(),r=B(),i=Math.floor,a=n(``.charAt),o=n(``.replace),s=n(``.slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,n,u,d,f){var p=n+e.length,m=u.length,h=l;return d!==void 0&&(d=r(d),h=c),o(f,h,function(r,o){var c;switch(a(o,0)){case`$`:return`$`;case`&`:return e;case"`":return s(t,0,n);case`'`:return s(t,p);case`<`:c=d[s(o,1,-1)];break;default:var l=+o;if(l===0)return r;if(l>m){var f=i(l/10);return f===0?r:f<=m?u[f-1]===void 0?a(o,1):u[f-1]+a(o,1):r}c=u[l-1]}return c===void 0?``:c})}})),xc=o((()=>{var e=Ze(),t=m(),n=_(),r=uc(),i=d(),a=G(),o=C(),s=w(),c=me(),l=ge(),u=X(),f=x(),p=dc(),h=P(),g=bc(),v=hs(),y=fc(),b=H()(`replace`),S=Math.max,T=Math.min,E=n([].concat),D=n([].push),O=n(``.indexOf),k=n(``.slice),A=function(e){return e===void 0?e:String(e)},j=(function(){return`a`.replace(/./,`$0`)===`$0`})(),M=(function(){return/./[b]?/./[b](`a`,`$0`)===``:!1})();r(`replace`,function(n,r,i){var d=M?`$`:`$0`;return[function(e,n){var i=f(this),a=s(e)?h(e,b):void 0;return a?t(a,e,i,n):t(r,u(i),e,n)},function(t,n){var s=a(this),f=u(t),m=o(n);m||(n=u(n));var h=u(v(s));if(typeof n==`string`&&!~O(n,d)&&!~O(n,`$<`)&&!~O(h,`y`)){var _=i(r,s,f,n);if(_.done)return _.value}var b=!!~O(h,`g`),x;b&&(x=!!~O(h,`u`)||!!~O(h,`v`),s.lastIndex=0);for(var C=[],w;w=y(s,f),!(w===null||(D(C,w),!b));)u(w[0])===``&&(s.lastIndex=p(f,l(s.lastIndex),x));for(var j=``,M=0,N=0;N=M&&(j+=k(f,M,F)+L,M=F+P.length)}return j+k(f,M)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$`)!==`7`})||!j||M)})),Sc=o((()=>{var e=Y(),t=m(),n=_(),r=x(),i=C(),a=w(),o=fs(),s=X(),c=P(),l=hs(),u=bc(),d=H(),f=I(),p=d(`replace`),h=TypeError,g=n(``.indexOf),v=n(``.replace),y=n(``.slice),b=Math.max;e({target:`String`,proto:!0},{replaceAll:function(e,n){var d=r(this),m,_,x,S,C,w,T,E,D,O,k=0,A=``;if(a(e)){if(m=o(e),m&&(_=s(r(l(e))),!~g(_,`g`)))throw new h("`.replaceAll` does not allow non-global regexes");if(x=c(e,p),x)return t(x,e,d,n);if(f&&m)return v(s(d),e,n)}for(S=s(d),C=s(e),w=i(n),w||(n=s(n)),T=C.length,E=b(1,T),D=g(S,C);D!==-1;)O=w?s(n(C,D,S)):u(C,S,D,[],void 0,n),A+=y(S,k,D)+O,k=D+T,D=D+E>S.length?-1:g(S,C,D+E);return k{var e=m(),t=uc(),n=G(),r=w(),i=x(),a=Ya(),o=X(),s=P(),c=fc();t(`search`,function(t,l,u){return[function(n){var a=i(this),c=r(n)?s(n,t):void 0;return c?e(c,n,a):new RegExp(n)[t](o(a))},function(e){var t=n(this),r=o(e),i=u(l,t,r);if(i.done)return i.value;var s=t.lastIndex;a(s,0)||(t.lastIndex=0);var d=c(t,r);return a(t.lastIndex,s)||(t.lastIndex=s),d===null?-1:d.index}]})})),wc=o((()=>{var e=m(),t=_(),n=uc(),r=G(),i=w(),a=x(),o=mo(),s=dc(),c=ge(),l=X(),u=P(),f=hs(),p=fc(),h=gs(),g=d(),v=h.UNSUPPORTED_Y,y=4294967295,b=Math.min,S=t([].push),C=t(``.slice),T=t(``.indexOf),E=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`}),D=`abbc`.split(/(b)*/)[1]===`c`||`test`.split(/(?:)/,-1).length!==4||`ab`.split(/(?:ab)*/).length!==2||`.`.split(/(.?)(.?)/).length!==4||`.`.split(/()()/).length>1||``.split(/.?/).length;n(`split`,function(t,n,d){var m=`0`.split(void 0,0).length?function(t,r){return t===void 0&&r===0?[]:e(n,this,t,r)}:n;return[function(n,r){var o=a(this),s=i(n)?u(n,t):void 0;return s?e(s,n,o,r):e(m,l(o),n,r)},function(e,t){var i=r(this),a=l(e);if(!D){var u=d(m,i,a,t,m!==n);if(u.done)return u.value}var h=o(i,RegExp),g=l(f(i)),_=!!~T(g,`u`)||!!~T(g,`v`);v?~T(g,`g`)||(g+=`g`):~T(g,`y`)||(g+=`y`);var x=new h(v?`^(?:`+i.source+`)`:i,g),w=t===void 0?y:t>>>0;if(w===0)return[];if(a.length===0)return p(x,a)===null?[a]:[];for(var E=0,O=0,k=[];O{var e=Y(),t=ze(),n=W().f,r=ge(),i=X(),a=rc(),o=x(),s=ic(),c=I(),l=t(``.slice),u=Math.min,d=s(`startsWith`);e({target:`String`,proto:!0,forced:!(!c&&!d&&function(){var e=n(String.prototype,`startsWith`);return e&&!e.writable}())&&!d},{startsWith:function(e){var t=i(o(this));a(e);var n=i(e),s=r(u(arguments.length>1?arguments[1]:void 0,t.length));return l(t,s,s+n.length)===n}})})),Ec=o((()=>{var e=Y(),t=_(),n=x(),r=me(),i=X(),a=t(``.slice),o=Math.max,s=Math.min;e({target:`String`,proto:!0,forced:!``.substr||`ab`.substr(-1)!==`b`},{substr:function(e,t){var c=i(n(this)),l=c.length,u=r(e),d=u<0?o(l+u,0):s(u,l),f=t===void 0?l:r(t);if(f<=0)return``;var p=s(d+f,l);return d>=p?``:a(c,d,p)}})})),Dc=o((()=>{var e=Y(),t=m(),n=_(),r=x(),i=X(),a=d(),o=Array,s=n(``.charAt),c=n(``.charCodeAt),l=n([].join),u=``.toWellFormed,f=`�`,p=u&&a(function(){return t(u,1)!==`1`});e({target:`String`,proto:!0,forced:p},{toWellFormed:function(){var e=i(r(this));if(p)return t(u,e);for(var n=e.length,a=o(n),d=0;d=56320||d+1>=n||(c(e,d+1)&64512)!=56320?a[d]=f:(a[d]=s(e,d),a[++d]=s(e,d)):a[d]=s(e,d)}return l(a,``)}})})),Oc=o(((e,t)=>{var n=oe().PROPER,r=d(),i=fa(),a=`​…᠎`;t.exports=function(e){return r(function(){return!!i[e]()||a[e]()!==a||n&&i[e].name!==e})}})),kc=o((()=>{var e=Y(),t=pa().trim;e({target:`String`,proto:!0,forced:Oc()(`trim`)},{trim:function(){return t(this)}})})),Ac=o(((e,t)=>{var n=pa().end;t.exports=Oc()(`trimEnd`)?function(){return n(this)}:``.trimEnd})),jc=o((()=>{var e=Y(),t=Ac();e({target:`String`,proto:!0,name:`trimEnd`,forced:``.trimRight!==t},{trimRight:t})})),Mc=o((()=>{jc();var e=Y(),t=Ac();e({target:`String`,proto:!0,name:`trimEnd`,forced:``.trimEnd!==t},{trimEnd:t})})),Nc=o(((e,t)=>{var n=pa().start;t.exports=Oc()(`trimStart`)?function(){return n(this)}:``.trimStart})),Pc=o((()=>{var e=Y(),t=Nc();e({target:`String`,proto:!0,name:`trimStart`,forced:``.trimLeft!==t},{trimLeft:t})})),Fc=o((()=>{Pc();var e=Y(),t=Nc();e({target:`String`,proto:!0,name:`trimStart`,forced:``.trimStart!==t},{trimStart:t})})),Ic=o(((e,t)=>{var n=_(),r=x(),i=X(),a=/"/g,o=n(``.replace);t.exports=function(e,t,n,s){var c=i(r(e)),l=`<`+t;return n!==``&&(l+=` `+n+`="`+o(i(s),a,`"`)+`"`),l+`>`+c+``}})),Lc=o(((e,t)=>{var n=d();t.exports=function(e){return n(function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3})}})),Rc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`anchor`)},{anchor:function(e){return t(this,`a`,`name`,e)}})})),zc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`big`)},{big:function(){return t(this,`big`,``,``)}})})),Bc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`blink`)},{blink:function(){return t(this,`blink`,``,``)}})})),Vc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`bold`)},{bold:function(){return t(this,`b`,``,``)}})})),Hc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`fixed`)},{fixed:function(){return t(this,`tt`,``,``)}})})),Uc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`fontcolor`)},{fontcolor:function(e){return t(this,`font`,`color`,e)}})})),Wc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`fontsize`)},{fontsize:function(e){return t(this,`font`,`size`,e)}})})),Gc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`italics`)},{italics:function(){return t(this,`i`,``,``)}})})),Kc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`link`)},{link:function(e){return t(this,`a`,`href`,e)}})})),qc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`small`)},{small:function(){return t(this,`small`,``,``)}})})),Jc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`strike`)},{strike:function(){return t(this,`strike`,``,``)}})})),Yc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`sub`)},{sub:function(){return t(this,`sub`,``,``)}})})),Xc=o((()=>{var e=Y(),t=Ic();e({target:`String`,proto:!0,forced:Lc()(`sup`)},{sup:function(){return t(this,`sup`,``,``)}})})),Zc=o(((e,t)=>{var n=u(),r=d(),i=xn(),a=Z().NATIVE_ARRAY_BUFFER_VIEWS,o=n.ArrayBuffer,s=n.Int8Array;t.exports=!a||!r(function(){s(1)})||!r(function(){new s(-1)})||!i(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||r(function(){return new s(new o(2),1,void 0).length!==1})})),Qc=o(((e,t)=>{var n=ui(),r=RangeError;t.exports=function(e,t){var i=n(e);if(i%t)throw new r(`Wrong offset`);return i}})),$c=o(((e,t)=>{var n=Math.floor;t.exports=function(e){var t=+e;if(t!==t||t<=0)return 0;if(t>=255)return 255;var r=n(t);return r+.5{var n=Ee();t.exports=function(e){var t=n(e);return t===`BigInt64Array`||t===`BigUint64Array`}})),tl=o(((e,t)=>{var n=te(),r=TypeError;t.exports=function(e){var t=n(e,`number`);if(typeof t==`number`)throw new r(`Can't convert number to bigint`);return BigInt(t)}})),nl=o(((e,t)=>{var n=Be(),r=m(),i=N(),a=po(),o=B(),s=J(),c=Vt(),l=Bt(),u=zt(),d=el(),f=Z().aTypedArrayConstructor,p=tl();t.exports=function(e){var t=a(this),m=arguments.length,h=m>1?arguments[1]:void 0,g=h!==void 0;g&&i(h);var _=o(e),v=l(_),y,b,x,S,C,w,T,E;if(v&&!u(v))for(T=c(_,v),E=T.next,_=[];!(w=r(E,T)).done;)_.push(w.value);for(g&&m>2&&(h=n(h,arguments[2])),b=s(_),x=new(f(t))(b),S=d(x),y=0;b>y;y++)C=g?h(_[y],y):_[y],x[y]=S?p(C):+C;return x}})),rl=o(((e,t)=>{var n=Y(),r=u(),i=m(),a=f(),o=Zc(),s=Z(),c=_r(),l=ur(),d=g(),p=ae(),h=va(),_=dr(),v=Qc(),y=$c(),b=ne(),x=V(),S=Ee(),C=w(),T=j(),D=Ae(),O=E(),k=Ct(),A=be().f,M=nl(),N=Ke().forEach,P=Xn(),F=Ne(),I=K(),L=W(),R=er(),z=de(),B=Tt(),ee=z.get,H=z.set,te=z.enforce,U=I.f,re=L.f,ie=r.RangeError,G=c.ArrayBuffer,oe=G.prototype,se=c.DataView,ce=s.NATIVE_ARRAY_BUFFER_VIEWS,le=s.TYPED_ARRAY_TAG,ue=s.TypedArray,fe=s.TypedArrayPrototype,q=s.isTypedArray,pe=`BYTES_PER_ELEMENT`,me=`Wrong length`,he=function(e,t){F(e,t,{configurable:!0,get:function(){return ee(this)[t]}})},ge=function(e){var t;return O(oe,e)||(t=S(e))===`ArrayBuffer`||t===`SharedArrayBuffer`},J=function(e,t){return q(e)&&!T(t)&&t in e&&h(+t)&&t>=0},_e=function(e,t){return t=b(t),J(e,t)?d(2,e[t]):re(e,t)},ve=function(e,t,n){return t=b(t),J(e,t)&&C(n)&&x(n,`value`)&&!x(n,`get`)&&!x(n,`set`)&&!n.configurable&&(!x(n,`writable`)||n.writable)&&(!x(n,`enumerable`)||n.enumerable)?(e[t]=n.value,e):U(e,t,n)};a?(ce||(L.f=_e,I.f=ve,he(fe,`buffer`),he(fe,`byteOffset`),he(fe,`byteLength`),he(fe,`length`)),n({target:`Object`,stat:!0,forced:!ce},{getOwnPropertyDescriptor:_e,defineProperty:ve}),t.exports=function(e,t,a){var s=e.match(/\d+/)[0]/8,c=e+(a?`Clamped`:``)+`Array`,u=`get`+e,d=`set`+e,f=r[c],m=f,h=m&&m.prototype,g={},b=function(e,t){var n=ee(e);return n.view[u](t*s+n.byteOffset,!0)},x=function(e,t,n){var r=ee(e);r.view[d](t*s+r.byteOffset,a?y(n):n,!0)},S=function(e,t){U(e,t,{get:function(){return b(this,t)},set:function(e){return x(this,t,e)},enumerable:!0})};ce?o&&(m=t(function(e,t,n,r){return l(e,h),B(function(){return C(t)?ge(t)?r===void 0?n===void 0?new f(t):new f(t,v(n,s)):new f(t,v(n,s),r):q(t)?R(m,t):i(M,m,t):new f(_(t))}(),e,m)}),k&&k(m,ue),N(A(f),function(e){e in m||p(m,e,f[e])}),m.prototype=h):(m=t(function(e,t,n,r){l(e,h);var a=0,o=0,c,u,d;if(!C(t))d=_(t),u=d*s,c=new G(u);else if(ge(t)){c=t,o=v(n,s);var f=t.byteLength;if(r===void 0){if(f%s||(u=f-o,u<0))throw new ie(me)}else if(u=_(r)*s,u+o>f)throw new ie(me);d=u/s}else if(q(t))return R(m,t);else return i(M,m,t);for(H(e,{buffer:c,byteOffset:o,byteLength:u,length:d,view:new se(c)});a{rl()(`Float32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),al=o((()=>{rl()(`Float64`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),ol=o((()=>{rl()(`Int8`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),sl=o((()=>{rl()(`Int16`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),cl=o((()=>{rl()(`Int32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),ll=o((()=>{rl()(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),ul=o((()=>{rl()(`Uint8`,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)})),dl=o((()=>{rl()(`Uint16`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),fl=o((()=>{rl()(`Uint32`,function(e){return function(t,n,r){return e(this,t,n,r)}})})),pl=o((()=>{var e=Z(),t=J(),n=me(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`at`,function(e){var i=r(this),a=t(i),o=n(e),s=o>=0?o:a+o;return s<0||s>=a?void 0:i[s]})})),ml=o((()=>{var e=_(),t=Z(),n=e(tn()),r=t.aTypedArray,i=t.exportTypedArrayMethod;i(`copyWithin`,function(e,t){return n(r(this),e,t,arguments.length>2?arguments[2]:void 0)})})),hl=o((()=>{var e=Z(),t=Ke().every,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`every`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),gl=o((()=>{var e=Z(),t=on(),n=tl(),r=Ee(),i=m(),a=_(),o=d(),s=e.aTypedArray,c=e.exportTypedArrayMethod,l=a(``.slice);c(`fill`,function(e){var a=arguments.length;s(this);var o=l(r(this),0,3)===`Big`?n(e):+e;return i(t,this,o,a>1?arguments[1]:void 0,a>2?arguments[2]:void 0)},o(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),e!==1}))})),_l=o(((e,t)=>{var n=er(),r=Z().getTypedArrayConstructor;t.exports=function(e,t){return n(r(e),t)}})),vl=o((()=>{var e=Z(),t=Ke().filter,n=_l(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`filter`,function(e){var i=t(r(this),e,arguments.length>1?arguments[1]:void 0);return n(this,i)})})),yl=o((()=>{var e=Z(),t=Ke().find,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`find`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),bl=o((()=>{var e=Z(),t=Ke().findIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findIndex`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),xl=o((()=>{var e=Z(),t=dn().findLast,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findLast`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),Sl=o((()=>{var e=Z(),t=dn().findLastIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`findLastIndex`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),Cl=o((()=>{var e=Z(),t=Ke().forEach,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`forEach`,function(e){t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),wl=o((()=>{var e=Zc(),t=Z().exportTypedArrayStaticMethod;t(`from`,nl(),e)})),Tl=o((()=>{var e=Z(),t=_e().includes,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`includes`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),El=o((()=>{var e=Z(),t=_e().indexOf,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`indexOf`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),Dl=o((()=>{var e=u(),t=d(),n=_(),r=Z(),i=An(),a=H()(`iterator`),o=e.Uint8Array,s=n(i.values),c=n(i.keys),l=n(i.entries),f=r.aTypedArray,p=r.exportTypedArrayMethod,m=o&&o.prototype,h=!t(function(){m[a].call([1])}),g=!!m&&m.values&&m[a]===m.values&&m.values.name===`values`,v=function(){return s(f(this))};p(`entries`,function(){return l(f(this))},h),p(`keys`,function(){return c(f(this))},h),p(`values`,v,h||!g,{name:`values`}),p(a,v,h||!g,{name:`values`})})),Ol=o((()=>{var e=Z(),t=_(),n=e.aTypedArray,r=e.exportTypedArrayMethod,i=t([].join);r(`join`,function(e){return i(n(this),e)})})),kl=o((()=>{var e=Z(),t=Ze(),n=Mn(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`lastIndexOf`,function(e){var i=arguments.length;return t(n,r(this),i>1?[e,arguments[1]]:[e])})})),Al=o((()=>{var e=Z(),t=Ke().map,n=_l(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`map`,function(e){var i=t(r(this),e,arguments.length>1?arguments[1]:void 0);return n(this,i)})})),jl=o((()=>{var e=Z(),t=Zc(),n=e.aTypedArrayConstructor,r=e.exportTypedArrayStaticMethod;r(`of`,function(){for(var e=0,t=arguments.length,r=new(n(this))(t);t>e;)r[e]=arguments[e++];return r},t)})),Ml=o((()=>{var e=Z(),t=Ln().left,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`reduce`,function(e){var r=arguments.length;return t(n(this),e,r,r>1?arguments[1]:void 0)})})),Nl=o((()=>{var e=Z(),t=Ln().right,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`reduceRight`,function(e){var r=arguments.length;return t(n(this),e,r,r>1?arguments[1]:void 0)})})),Pl=o((()=>{var e=Z(),t=e.aTypedArray,n=e.exportTypedArrayMethod,r=Math.floor;n(`reverse`,function(){for(var e=this,n=t(e).length,i=r(n/2),a=0,o;a{var e=u(),t=m(),n=Z(),r=J(),i=Qc(),a=B(),o=d(),s=e.RangeError,c=e.Int8Array,l=c&&c.prototype,f=l&&l.set,p=n.aTypedArray,h=n.exportTypedArrayMethod,g=!o(function(){var e=new Uint8ClampedArray(2);return t(f,e,{length:1,0:3},1),e[1]!==3}),_=g&&n.NATIVE_ARRAY_BUFFER_VIEWS&&o(function(){var e=new c(2);return e.set(1),e.set(`2`,1),e[0]!==0||e[1]!==2});h(`set`,function(e){p(this);var n=i(arguments.length>1?arguments[1]:void 0,1),o=a(e);if(g)return t(f,this,o,n);var c=this.length,l=r(o),u=0;if(l+n>c)throw new s(`Wrong length`);for(;u{var e=Z(),t=d(),n=je(),r=e.aTypedArray,i=e.getTypedArrayConstructor,a=e.exportTypedArrayMethod;a(`slice`,function(e,t){for(var a=n(r(this),e,t),o=i(this),s=0,c=a.length,l=new o(c);c>s;)l[s]=a[s++];return l},t(function(){new Int8Array(1).slice()}))})),Ll=o((()=>{var e=Z(),t=Ke().some,n=e.aTypedArray,r=e.exportTypedArrayMethod;r(`some`,function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})})),Rl=o((()=>{var e=u(),t=ze(),n=d(),r=N(),i=Gn(),a=Z(),o=Kn(),s=qn(),c=O(),l=Jn(),f=a.aTypedArray,p=a.exportTypedArrayMethod,m=e.Uint16Array,h=m&&t(m.prototype.sort),g=!!h&&!(n(function(){h(new m(2),null)})&&n(function(){h(new m(2),{})})),_=!!h&&!n(function(){if(c)return c<74;if(o)return o<67;if(s)return!0;if(l)return l<602;var e=new m(516),t=Array(516),n,r;for(n=0;n<516;n++)r=n%4,e[n]=515-n,t[n]=n-2*r+3;for(h(e,function(e,t){return(e/4|0)-(t/4|0)}),n=0;n<516;n++)if(e[n]!==t[n])return!0}),v=function(e){return function(t,n){return e===void 0?n===n?t===t?t===0&&n===0?1/t>0?1/n>0?0:1:1/n>0?-1:0:t>n?1:t{var e=Z(),t=ge(),n=he(),r=e.aTypedArray,i=e.getTypedArrayConstructor,a=e.exportTypedArrayMethod;a(`subarray`,function(e,a){var o=r(this),s=o.length,c=n(e,s);return new(i(o))(o.buffer,o.byteOffset+c*o.BYTES_PER_ELEMENT,t((a===void 0?s:n(a,s))-c))})})),Bl=o((()=>{var e=u(),t=Ze(),n=Z(),r=d(),i=je(),a=e.Int8Array,o=n.aTypedArray,s=n.exportTypedArrayMethod,c=[].toLocaleString,l=!!a&&r(function(){c.call(new a(1))});s(`toLocaleString`,function(){return t(c,l?i(o(this)):o(this),i(arguments))},r(function(){return[1,2].toLocaleString()!==new a([1,2]).toLocaleString()})||!r(function(){a.prototype.toLocaleString.call([1,2])}))})),Vl=o((()=>{var e=J(),t=Z(),n=t.aTypedArray,r=t.exportTypedArrayMethod,i=t.getTypedArrayConstructor;r(`toReversed`,function(){for(var t=n(this),r=e(t),a=new(i(t))(r),o=0;o{var e=Z(),t=_(),n=N(),r=er(),i=e.aTypedArray,a=e.getTypedArrayConstructor,o=e.exportTypedArrayMethod,s=t(e.TypedArrayPrototype.sort);o(`toSorted`,function(e){e!==void 0&&n(e);var t=i(this);return s(r(a(t),t),e)})})),Ul=o((()=>{var e=Z().exportTypedArrayMethod,t=d(),n=u(),r=_(),i=n.Uint8Array,a=i&&i.prototype||{},o=[].toString,s=r([].join);t(function(){o.call({})})&&(o=function(){return s(this)});var c=a.toString!==o;e(`toString`,o,c)})),Wl=o((()=>{var e=Z(),t=el(),n=J(),r=me(),i=tl(),a=e.aTypedArray,o=e.getTypedArrayConstructor,s=e.exportTypedArrayMethod,c=RangeError,l=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return e===8}}(),u=l&&function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}}();s(`with`,{with:function(e,s){var l=a(this),u=n(l),d=r(e),f=d<0?u+d:d,p=t(l)?i(s):+s;if(f>=u||f<0)throw new c(`Incorrect index`);for(var m=new(o(l))(u),h=0;h{var n=w(),r=String,i=TypeError;t.exports=function(e){if(e===void 0||n(e))return e;throw new i(r(e)+` is not an object or undefined`)}})),Kl=o(((e,t)=>{var n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,r=n+`+/`,i=n+`-_`,a=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};t.exports={i2c:r,c2i:a(r),i2cUrl:i,c2iUrl:a(i)}})),ql=o(((e,t)=>{var n=TypeError;t.exports=function(e){var t=e&&e.alphabet;if(t===void 0||t===`base64`||t===`base64url`)return t||`base64`;throw new n("Incorrect `alphabet` option")}})),Jl=o(((e,t)=>{var n=u(),r=_(),i=Gl(),a=bs(),o=V(),s=Kl(),c=ql(),l=Ar(),d=s.c2i,f=s.c2iUrl,p=n.SyntaxError,m=n.TypeError,h=r(``.charAt),g=function(e,t){for(var n=e.length;t>16&255,i>>8&255,i&255];if(r===2){if(n&&a[1]!==0)throw new p(`Extra bits`);return[a[0]]}if(r===3){if(n&&a[2]!==0)throw new p(`Extra bits`);return[a[0],a[1]]}return a},y=function(e,t,n){for(var r=t.length,i=0;i0){if(u===`stop-before-partial`)break;if(u===`loose`){if(C.length===1)throw new p(`Malformed padding: exactly one additional character`);x=y(b,v(C,s,!1),x)}else throw new p(`Missing padding`)}S=_;break}var T=h(e,w);if(++w,T===`=`){if(C.length<2)throw new p(`Padding is too early`);if(w=g(e,w),C.length===2){if(w===_){if(u===`stop-before-partial`)break;throw new p(`Malformed padding: only one =`)}h(e,w)===`=`&&(++w,w=g(e,w))}if(w<_)throw new p(`Unexpected character after padding`);x=y(b,v(C,s,u===`strict`),x),S=_;break}if(!o(s,T))throw new p(`Unexpected character`);var E=r-x;if(E===1&&C.length===2||E===2&&C.length===3||(C+=T,C.length===4&&(x=y(b,v(C,s,!1),x),C=``,S=w,x===r)))break}return{bytes:b,read:S,written:x}}})),Yl=o((()=>{var e=Y(),t=u(),n=er(),r=Jl(),i=t.Uint8Array,a=!i||!i.fromBase64||!function(){try{i.fromBase64(`a`);return}catch{}try{i.fromBase64(``,null)}catch{return!0}}();i&&e({target:`Uint8Array`,stat:!0,forced:a},{fromBase64:function(e){return n(i,r(e,arguments.length>1?arguments[1]:void 0,null,9007199254740991).bytes)}})})),Xl=o(((e,t)=>{var n=u(),r=_(),i=n.Uint8Array,a=n.SyntaxError,o=Math.min,s=r(``.match);t.exports=function(e,t){var n=e.length;if(n%2!=0)throw new a(`String should be an even number of characters`);for(var r=t?o(t.length,n/2):n/2,c=t||new i(r),l=s(e,/.{2}/g),u=0;u>4}return{bytes:c,read:u<<1}}})),Zl=o((()=>{var e=Y(),t=u(),n=bs(),r=Xl();t.Uint8Array&&e({target:`Uint8Array`,stat:!0},{fromHex:function(e){return r(n(e)).bytes}})})),Ql=o(((e,t)=>{var n=Ee(),r=TypeError;t.exports=function(e){if(n(e)===`Uint8Array`)return e;throw new r(`Argument is not an Uint8Array`)}})),$l=o((()=>{var e=Y(),t=u(),n=Jl(),r=Ql(),i=t.Uint8Array,a=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{e.setFromBase64(``,null);return}catch{}try{e.setFromBase64(`a`);return}catch{}try{e.setFromBase64(`MjYyZg===`)}catch{return e[0]===50&&e[1]===54&&e[2]===50&&e[3]===255&&e[4]===255}}();i&&e({target:`Uint8Array`,proto:!0,forced:a},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})})),eu=o((()=>{var e=Y(),t=u(),n=bs(),r=Ql(),i=Ar(),a=Xl();function o(){try{new Uint8Array(new ArrayBuffer(16,{maxByteLength:1024})).setFromHex(`cafed00d`)}catch{return!0}}t.Uint8Array&&e({target:`Uint8Array`,proto:!0,forced:o()},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=a(e,this).read;return{read:t,written:t/2}}})})),tu=o((()=>{var e=Y(),t=u(),n=_(),r=Gl(),i=Ql(),a=Ar(),o=Kl(),s=ql(),c=o.i2c,l=o.i2cUrl,d=n(``.charAt),f=t.Uint8Array,p=!f||!f.prototype.toBase64||!function(){try{new f().toBase64(null)}catch{return!0}}();f&&e({target:`Uint8Array`,proto:!0,forced:p},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n=s(t)===`base64`?c:l,o=!!t&&!!t.omitPadding;a(this.buffer);for(var u=``,f=0,p=e.length,m,h=function(e){return d(n,m>>6*e&63)};f+2{var e=Y(),t=u(),n=_(),r=Ql(),i=Ar(),a=n(1.1.toString),o=n([].join),s=Array,c=t.Uint8Array,l=!c||!c.prototype.toHex||!(function(){try{return new c([255,255,255,255,255,255,255,255]).toHex()===`ffffffffffffffff`}catch{return!1}})();c&&e({target:`Uint8Array`,proto:!0,forced:l},{toHex:function(){r(this),i(this.buffer);for(var e=s(this.length),t=0,n=this.length;t{var e=Y(),t=_(),n=X(),r=String.fromCharCode,i=t(``.charAt),a=t(/./.exec),o=t(``.slice),s=/^[\da-f]{2}$/i,c=/^[\da-f]{4}$/i;e({global:!0},{unescape:function(e){for(var t=n(e),l=``,u=t.length,d=0,f,p;d{var n=_(),r=lr(),i=Ni().getWeakData,a=ur(),o=G(),s=b(),c=w(),l=Ut(),u=Ke(),d=V(),f=de(),p=f.set,m=f.getterFor,h=u.find,g=u.findIndex,v=n([].splice),y=0,x=function(e){return e.frozen||=new S},S=function(){this.entries=[]},C=function(e,t){return h(e.entries,function(e){return e[0]===t})};S.prototype={get:function(e){var t=C(this,e);if(t)return t[1]},has:function(e){return!!C(this,e)},set:function(e,t){var n=C(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&v(this.entries,t,1),!!~t}},t.exports={getConstructor:function(e,t,n,u){var f=e(function(e,r){a(e,h),p(e,{type:t,id:y++,frozen:null}),s(r)||l(r,e[u],{that:e,AS_ENTRIES:n})}),h=f.prototype,g=m(t),_=function(e,t,n){var r=g(e),a=i(o(t),!0);return a===!0?x(r).set(t,n):a[r.id]=n,e};return r(h,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?x(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return n===!0?x(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);if(n===!0)return x(t).get(e);if(n)return n[t.id]}},set:function(e,t){return _(this,e,t)}}:{add:function(e){return _(this,e,!0)}}),f}}})),au=o((()=>{var e=Oi(),t=u(),n=_(),r=lr(),i=Ni(),a=Pi(),o=iu(),s=w(),c=de().enforce,l=d(),f=ce(),p=Object,m=Array.isArray,h=p.isExtensible,g=p.isFrozen,v=p.isSealed,y=p.freeze,b=p.seal,x=!t.ActiveXObject&&`ActiveXObject`in t,S,C=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},T=a(`WeakMap`,C,o),E=T.prototype,D=n(E.set),O=function(){return e&&l(function(){var e=y([]);return D(new T,e,1),!g(e)})};if(f)if(x){S=o.getConstructor(C,`WeakMap`,!0),i.enable();var k=n(E.delete),A=n(E.has),j=n(E.get);r(E,{delete:function(e){if(s(e)&&!h(e)){var t=c(this);return t.frozen||=new S,k(this,e)||t.frozen.delete(e)}return k(this,e)},has:function(e){if(s(e)&&!h(e)){var t=c(this);return t.frozen||=new S,A(this,e)||t.frozen.has(e)}return A(this,e)},get:function(e){if(s(e)&&!h(e)){var t=c(this);return t.frozen||=new S,A(this,e)?j(this,e):t.frozen.get(e)}return j(this,e)},set:function(e,t){if(s(e)&&!h(e)){var n=c(this);n.frozen||=new S,A(this,e)?D(this,e,t):n.frozen.set(e,t)}else D(this,e,t);return this}})}else O()&&r(E,{set:function(e,t){var n;return m(e)&&(g(e)?n=y:v(e)&&(n=b)),D(this,e,t),n&&n(e),this}})})),ou=o((()=>{au()})),su=o(((e,t)=>{var n=_(),r=WeakMap.prototype;t.exports={WeakMap,set:n(r.set),get:n(r.get),has:n(r.has),remove:n(r.delete)}})),cu=o((()=>{var e=Y(),t=su(),n=I(),r=t.get,i=t.has,a=t.set;e({target:`WeakMap`,proto:!0,real:!0,forced:n},{getOrInsert:function(e,t){return i(this,e)?r(this,e):(a(this,e,t),t)}})})),lu=o(((e,t)=>{var n=su().has;t.exports=function(e){return n(e),e}})),uu=o(((e,t)=>{var n=su(),r=new n.WeakMap,i=n.set,a=n.remove;t.exports=function(e){return i(r,e,1),a(r,e),e}})),du=o((()=>{var e=Y(),t=N(),n=lu(),r=uu(),i=su(),a=I(),o=i.get,s=i.has,c=i.set;e({target:`WeakMap`,proto:!0,real:!0,forced:a||!function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(e){return e instanceof TypeError}}()},{getOrInsertComputed:function(e,i){if(a||n(this),r(e),t(i),s(this,e))return o(this,e);var l=i(e);return c(this,e,l),l}})})),fu=o((()=>{Pi()(`WeakSet`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iu())})),pu=o((()=>{fu()})),mu=o((()=>{Gt()})),hu=o((()=>{qt()})),gu=o((()=>{Jo()})),_u=o((()=>{Yt()})),vu=o((()=>{var e=Y(),t=Ke().filterReject,n=Jt();e({target:`Array`,proto:!0,forced:!0},{filterOut:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`filterOut`)})),yu=o((()=>{var e=Y(),t=Ke().filterReject,n=Jt();e({target:`Array`,proto:!0,forced:!0},{filterReject:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(`filterReject`)})),bu=o((()=>{fn()})),xu=o((()=>{pn()})),Su=o(((e,t)=>{var n=Be(),r=_(),i=y(),a=B(),o=ne(),s=J(),c=Ae(),l=er(),u=Array,d=r([].push);t.exports=function(e,t,r,f){for(var p=a(e),m=i(p),h=n(t,r),g=c(null),_=s(m),v=0,y,b,x;_>v;v++)x=m[v],b=o(h(x,v,p)),b in g?d(g[b],x):g[b]=[x];if(f&&(y=f(p),y!==u))for(b in g)g[b]=l(y,g[b]);return g}})),Cu=o((()=>{var e=Y(),t=Su(),n=Jt();e({target:`Array`,proto:!0},{group:function(e){var n=arguments.length>1?arguments[1]:void 0;return t(this,e,n)}}),n(`group`)})),wu=o((()=>{var e=Y(),t=Su(),n=rn(),r=Jt();e({target:`Array`,proto:!0,forced:!n(`groupBy`)},{groupBy:function(e){var n=arguments.length>1?arguments[1]:void 0;return t(this,e,n)}}),r(`groupBy`)})),Tu=o(((e,t)=>{var n=Be(),r=_(),i=y(),a=B(),o=J(),s=Ri(),c=s.Map,l=s.get,u=s.has,d=s.set,f=r([].push);t.exports=function(e){for(var t=a(this),r=i(t),s=n(e,arguments.length>1?arguments[1]:void 0),p=new c,m=o(r),h=0,g,_;m>h;h++)_=r[h],g=s(_,h,t),u(p,g)?f(l(p,g),_):d(p,g,[_]);return p}})),Eu=o((()=>{var e=Y(),t=rn(),n=Jt(),r=Tu();e({target:`Array`,proto:!0,name:`groupToMap`,forced:I()||!t(`groupByToMap`)},{groupByToMap:r}),n(`groupByToMap`)})),Du=o((()=>{var e=Y(),t=Jt(),n=Tu();e({target:`Array`,proto:!0,forced:I()},{groupToMap:n}),t(`groupToMap`)})),Ou=o((()=>{var e=Y(),t=Ve(),n=Object.isFrozen,r=function(e,r){if(!n||!t(e)||!n(e))return!1;for(var i=0,a=e.length,o;i{var e=f(),t=Jt(),n=B(),r=J(),i=Ne();e&&(i(Array.prototype,`lastIndex`,{configurable:!0,get:function(){var e=r(n(this));return e===0?0:e-1}}),t(`lastIndex`))})),Au=o((()=>{var e=f(),t=Jt(),n=B(),r=J(),i=Ne();e&&(i(Array.prototype,`lastItem`,{configurable:!0,get:function(){var e=n(this),t=r(e);return t===0?void 0:e[t-1]},set:function(e){var t=n(this),i=r(t);return t[i===0?0:i-1]=e}}),t(`lastItem`))})),ju=o((()=>{$n()})),Mu=o((()=>{nr()})),Nu=o((()=>{rr()})),Pu=o(((e,t)=>{var n=_(),r=Ns(),i=Ri(),a=i.Map,o=i.proto,s=n(o.forEach),c=n(o.entries),l=c(new a).next;t.exports=function(e,t,n){return n?r({iterator:c(e),next:l},function(e){return t(e[1],e[0])}):s(e,t)}})),Fu=o(((e,t)=>{var n=N(),r=b(),i=J(),a=B(),o=Ge(),s=Ri(),c=Pu(),l=s.Map,u=s.has,d=s.set;t.exports=function(e){var t=a(this),s=i(t),f=[],p=new l,m=r(e)?function(e){return e}:n(e),h,g,_;for(h=0;h{var e=Y(),t=Jt();e({target:`Array`,proto:!0,forced:!0},{uniqueBy:Fu()}),t(`uniqueBy`)})),Lu=o((()=>{sr()})),Ru=o((()=>{kr()})),zu=o((()=>{Fr()})),Bu=o((()=>{Ir()})),Vu=o((()=>{Yo()})),Hu=o((()=>{var e=Y(),t=ur(),n=Lt(),r=ae(),i=V(),a=H(),o=Ho(),s=I(),c=a(`toStringTag`),l=TypeError,u=function(){if(t(this,o),n(this)===o)throw new l(`Abstract class AsyncIterator not directly constructable`)};u.prototype=o,i(o,c)||r(o,c,`AsyncIterator`),(s||!i(o,`constructor`)||o.constructor===Object)&&r(o,`constructor`,u),e({global:!0,constructor:!0,forced:s},{AsyncIterator:u})})),Uu=o(((e,t)=>{var n=m(),r=wo(),i=G(),a=Ae(),o=ae(),s=lr(),c=H(),l=de(),u=T(),d=P(),f=Ho(),p=kn(),h=u(`Promise`),g=c(`toStringTag`),_=`AsyncIteratorHelper`,v=`WrapForValidAsyncIterator`,y=l.set,b=function(e){var t=!e,o=l.getterFor(e?v:_),c=function(e){var n=r(function(){return o(e)}),i=n.error,a=n.value;return i||t&&a.done?{exit:!0,value:i?h.reject(a):h.resolve(p(void 0,!0))}:{exit:!1,value:a}};return s(a(f),{next:function(){var e=c(this),t=e.value;if(e.exit)return t;var n=r(function(){return i(t.nextHandler(h))}),a=n.error,o=n.value;return a&&(t.done=!0),a?h.reject(o):h.resolve(o)},return:function(){var t=c(this),a=t.value;if(t.exit)return a;a.done=!0;var o=a.iterator,s=a.inner,l,u,f=function(){var t=r(function(){return d(o,`return`)});return l=u=t.value,t.error?h.reject(u):l===void 0?h.resolve(p(void 0,!0)):(t=r(function(){return n(l,o)}),u=t.value,t.error?h.reject(u):e?h.resolve(u):h.resolve(u).then(function(e){return i(e),p(void 0,!0)}))},m=function(e){return f().then(function(){throw e},function(){throw e})};if(s){var g=s.iterator,_,v=r(function(){if(_=d(g,`return`),_)return n(_,g)});if(v.error)return m(v.value);if(_)return h.resolve(v.value).then(function(e){try{i(e)}catch(e){return m(e)}return f()},m)}return f()}})},x=b(!0),S=b(!1);o(S,g,`Async Iterator Helper`),t.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?v:_,r.nextHandler=e,r.counter=0,r.done=!1,y(this,r)};return n.prototype=t?x:S,n}})),Wu=o(((e,t)=>{var n=m(),r=N(),i=G(),a=w(),o=ci(),s=Uu(),c=kn(),l=Go(),u=s(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(s,u){var d=function(e){t.done=!0,u(e)},f=function(e){l(r,d,e,d)};try{e.resolve(i(n(t.next,r))).then(function(n){try{if(i(n).done)t.done=!0,s(c(void 0,!0));else{var r=n.value;try{var l=o(r,t.counter++),u=function(e){s(c(e,!1))};a(l)?e.resolve(l).then(u,f):u(l)}catch(e){f(e)}}}catch(e){d(e)}},d)}catch(e){d(e)}})});t.exports=function(e){return i(this),r(e),new u(o(this),{mapper:e})}})),Gu=o(((e,t)=>{var n=m(),r=Wu(),i=function(e,t){return[t,e]};t.exports=function(){return n(r,this,i)}})),Ku=o((()=>{Y()({target:`AsyncIterator`,name:`indexed`,proto:!0,real:!0,forced:!0},{asIndexedPairs:Gu()})})),qu=o((()=>{Xo()})),Ju=o((()=>{var e=Y(),t=m(),n=G(),r=ci(),i=li(),a=ui(),o=Uu(),s=kn(),c=o(function(e){var r=this;return new e(function(i,a){var o=function(e){r.done=!0,a(e)},c=function(){try{e.resolve(n(t(r.next,r.iterator))).then(function(e){try{n(e).done?(r.done=!0,i(s(void 0,!0))):r.remaining?(r.remaining--,c()):i(s(e.value,!1))}catch(e){o(e)}},o)}catch(e){o(e)}};c()})});e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{drop:function(e){n(this);var t=a(i(+e));return new c(r(this),{remaining:t})}})})),Yu=o((()=>{var e=Y(),t=Ko().every;e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{every:function(e){return t(this,e)}})})),Xu=o((()=>{var e=Y(),t=m(),n=N(),r=G(),i=w(),a=ci(),o=Uu(),s=kn(),c=Go(),l=o(function(e){var n=this,a=n.iterator,o=n.predicate;return new e(function(l,u){var d=function(e){n.done=!0,u(e)},f=function(e){c(a,d,e,d)},p=function(){try{e.resolve(r(t(n.next,a))).then(function(t){try{if(r(t).done)n.done=!0,l(s(void 0,!0));else{var a=t.value;try{var c=o(a,n.counter++),u=function(e){e?l(s(a,!1)):p()};i(c)?e.resolve(c).then(u,f):u(c)}catch(e){f(e)}}}catch(e){d(e)}},d)}catch(e){d(e)}};p()})});e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{filter:function(e){return r(this),n(e),new l(a(this),{predicate:e})}})})),Zu=o((()=>{var e=Y(),t=Ko().find;e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{find:function(e){return t(this,e)}})})),Qu=o(((e,t)=>{var n=m(),r=C(),i=G(),a=ci(),o=Bt(),s=P(),c=H(),l=Uo(),u=c(`asyncIterator`);t.exports=function(e){var t=i(e),c=!0,d=s(t,u),f;return r(d)||(d=o(t),c=!1),d===void 0?(f=t,c=!0):f=n(d,t),i(f),a(c?f:new l(a(f)))}})),$u=o((()=>{var e=Y(),t=m(),n=N(),r=G(),i=w(),a=ci(),o=Uu(),s=kn(),c=Qu(),l=Go(),u=o(function(e){var n=this,a=n.iterator,o=n.mapper;return new e(function(u,d){var f=function(e){n.done=!0,d(e)},p=function(e){l(a,f,e,f)},m=function(){try{e.resolve(r(t(n.next,a))).then(function(t){try{if(r(t).done)n.done=!0,u(s(void 0,!0));else{var a=t.value;try{var l=o(a,n.counter++),d=function(e){try{n.inner=c(e),h()}catch(e){p(e)}};i(l)?e.resolve(l).then(d,p):d(l)}catch(e){p(e)}}}catch(e){f(e)}},f)}catch(e){f(e)}},h=function(){var i=n.inner;if(i)try{e.resolve(r(t(i.next,i.iterator))).then(function(e){try{r(e).done?(n.inner=null,m()):u(s(e.value,!1))}catch(e){p(e)}},p)}catch(e){p(e)}else m()};h()})});e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{flatMap:function(e){return r(this),n(e),new u(a(this),{mapper:e,inner:null})}})})),ed=o((()=>{var e=Y(),t=Ko().forEach;e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{forEach:function(e){return t(this,e)}})})),td=o(((e,t)=>{var n=m();t.exports=Uu()(function(){return n(this.next,this.iterator)},!0)})),nd=o((()=>{var e=Y(),t=B(),n=E(),r=Qu(),i=Ho(),a=td();e({target:`AsyncIterator`,stat:!0,forced:!0},{from:function(e){var o=r(typeof e==`string`?t(e):e);return n(i,o.iterator)?o.iterator:new a(o)}})})),rd=o((()=>{Y()({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{indexed:Gu()})})),id=o((()=>{Y()({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{map:Wu()})})),ad=o((()=>{var e=Y(),t=m(),n=N(),r=G(),i=w(),a=T(),o=ci(),s=Go(),c=a(`Promise`),l=TypeError;e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{reduce:function(e){r(this),n(e);var a=o(this),u=a.iterator,d=a.next,f=arguments.length<2,p=f?void 0:arguments[1],m=0;return new c(function(n,a){var o=function(e){s(u,a,e,a)},h=function(){try{c.resolve(r(t(d,u))).then(function(t){try{if(r(t).done)f?a(new l(`Reduce of empty iterator with no initial value`)):n(p);else{var s=t.value;if(f)f=!1,p=s,m++,h();else try{var u=e(p,s,m++),d=function(e){p=e,h()};i(u)?c.resolve(u).then(d,o):d(u)}catch(e){o(e)}}}catch(e){a(e)}},a)}catch(e){a(e)}};h()})}})})),od=o((()=>{var e=Y(),t=Ko().some;e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{some:function(e){return t(this,e)}})})),sd=o((()=>{var e=Y(),t=m(),n=G(),r=ci(),i=P(),a=li(),o=ui(),s=Uu(),c=kn(),l=s(function(e){var r=this,a=r.iterator,o;if(!r.remaining--){var s=c(void 0,!0);return r.done=!0,o=i(a,`return`),o===void 0?s:e.resolve(t(o,a)).then(function(e){return n(e),s})}return e.resolve(t(r.next,a)).then(function(e){return n(e).done?(r.done=!0,c(void 0,!0)):c(e.value,!1)}).then(null,function(e){throw r.done=!0,e})});e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{take:function(e){n(this);var t=o(a(+e));return new l(r(this),{remaining:t})}})})),cd=o((()=>{var e=Y(),t=Ko().toArray;e({target:`AsyncIterator`,proto:!0,real:!0,forced:!0},{toArray:function(){return t(this,void 0,[])}})})),ld=o(((e,t)=>{var n=de(),r=Dn(),i=kn(),a=b(),o=w(),s=Ne(),c=f(),l=`Incorrect Iterator.range arguments`,u=`NumericRangeIterator`,d=n.set,p=n.getterFor(u),m=RangeError,h=TypeError,g=r(function(e,t,n,r,i,s){if(e!==e||t!==t)throw new m(l);if(typeof e!=r||t!==1/0&&t!==-1/0&&typeof t!=r)throw new h(l);if(e===1/0||e===-1/0)throw new m(l);var f=t>e,p=!1,g;if(a(n))g=void 0;else if(o(n))g=n.step,p=!!n.inclusive;else if(typeof n==r)g=n;else throw new h(l);if(a(g)&&(g=f?s:-s),typeof g!=r)throw new h(l);if(g!==g||g===1/0||g===-1/0||g===i&&e!==t)throw new m(l);var _=t>e!=g>i;d(this,{type:u,start:e,end:t,step:g,inclusive:p,hitsEnd:_,currentCount:i,zero:i}),c||(this.start=e,this.end=t,this.step=g,this.inclusive=p)},u,function(){var e=p(this);if(e.hitsEnd)return i(void 0,!0);var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var a=e.inclusive;return(n>t?a?r>n:r>=n:a?n>r:n>=r)?(e.hitsEnd=!0,i(void 0,!0)):i(r,!1)}),_=function(e){s(g.prototype,e,{get:function(){return p(this)[e]},set:function(){},configurable:!0,enumerable:!1})};c&&(_(`start`),_(`end`),_(`inclusive`),_(`step`)),t.exports=g})),ud=o((()=>{var e=Y(),t=ld();typeof BigInt==`function`&&e({target:`BigInt`,stat:!0,forced:!0},{range:function(e,n,r){return new t(e,n,r,`bigint`,BigInt(0),BigInt(1))}})})),dd=o(((e,t)=>{Li(),ou();var n=T(),r=Ae(),i=w(),a=Object,o=TypeError,s=n(`Map`),c=n(`WeakMap`),l=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=r(null)};l.prototype.get=function(e,t){return this[e]||(this[e]=t())},l.prototype.next=function(e,t,n){var r=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new c):this.primitives||=new s,i=r.get(t);return i||r.set(t,i=new l),i};var u=new l;t.exports=function(){var e=u,t=arguments.length,n,r;for(n=0;n{var e=Y(),t=Ze(),n=dd(),r=T(),i=Ae(),a=Object,o=function(){var e=r(`Object`,`freeze`);return e?e(i(null)):i(null)};e({global:!0,forced:!0},{compositeKey:function(){return t(n,a,arguments).get(`object`,o)}})})),pd=o((()=>{var e=Y(),t=dd(),n=T(),r=Ze();e({global:!0,forced:!0},{compositeSymbol:function(){return arguments.length===1&&typeof arguments[0]==`string`?n(`Symbol`).for(arguments[0]):r(t,null,arguments).get(`symbol`,n(`Symbol`))}})})),md=o((()=>{Cr()})),hd=o((()=>{var e=Y(),t=_()(DataView.prototype.getUint8);e({target:`DataView`,proto:!0,forced:!0},{getUint8Clamped:function(e){return t(this,e)}})})),gd=o((()=>{Er()})),_d=o((()=>{var e=Y(),t=_(),n=wr(),r=dr(),i=$c(),a=t(DataView.prototype.setUint8);e({target:`DataView`,proto:!0,forced:!0},{setUint8Clamped:function(e,t){a(n(this),r(e),i(t))}})})),vd=o((()=>{Xr()})),yd=o((()=>{Nt()})),bd=o(((e,t)=>{var n=_(),r=N();t.exports=function(){return n(r(this))}})),xd=o((()=>{Y()({target:`Function`,proto:!0,forced:!0},{demethodize:bd()})})),Sd=o((()=>{var e=Y(),t=_(),n=C(),r=se(),i=V(),a=f(),o=Object.getOwnPropertyDescriptor,s=/^\s*class\b/,c=t(s.exec),l=function(e){try{if(!a||!c(s,r(e)))return!1}catch{}var t=o(e,`prototype`);return!!t&&i(t,`writable`)&&!t.writable};e({target:`Function`,stat:!0,sham:!0,forced:!0},{isCallable:function(e){return n(e)&&!l(e)}})})),Cd=o((()=>{Y()({target:`Function`,stat:!0,forced:!0},{isConstructor:He()})})),wd=o((()=>{var e=H(),t=K().f,n=e(`metadata`),r=Function.prototype;r[n]===void 0&&t(r,n,{value:null})})),Td=o((()=>{Y()({target:`Function`,proto:!0,forced:!0,name:`demethodize`},{unThis:bd()})})),Ed=o((()=>{ni()})),Dd=o((()=>{ri()})),Od=o(((e,t)=>{xi();var n=m(),r=En().IteratorPrototype.map,i=function(e,t){return[t,e]};t.exports=function(){return n(r,this,i)}})),kd=o((()=>{Y()({target:`Iterator`,name:`indexed`,proto:!0,real:!0,forced:!0},{asIndexedPairs:Od()})})),Ad=o((()=>{var e=Y(),t=G(),n=m(),r=ai(),i=ci(),a=Ht(),o=_(),s=RangeError,c=o([].push),l=r(function(){for(var e=this.iterator,r=this.next,i=this.chunkSize,a=[],o,s;;){if(o=t(n(r,e)),s=!!o.done,s){if(a.length)return a;this.done=!0;return}if(c(a,o.value),a.length===i)return a}});e({target:`Iterator`,proto:!0,real:!0,forced:!0},{chunks:function(e){var n=t(this);return typeof e!=`number`||!e||e>>>0!==e?a(n,`throw`,new s(`chunkSize must be integer in [1, 2^32-1]`)):new l(i(n),{chunkSize:e})}})})),jd=o((()=>{oi()})),Md=o((()=>{si()})),Nd=o((()=>{pi()})),Pd=o((()=>{mi()})),Fd=o((()=>{hi()})),Id=o((()=>{gi()})),Ld=o((()=>{vi()})),Rd=o((()=>{yi()})),zd=o((()=>{bi()})),Bd=o((()=>{Y()({target:`Iterator`,proto:!0,real:!0,forced:!0},{indexed:Od()})})),Vd=o((()=>{xi()})),Hd=o((()=>{var e=Y(),t=ld(),n=TypeError;e({target:`Iterator`,stat:!0,forced:!0},{range:function(e,r,i){if(typeof e==`number`)return new t(e,r,i,`number`,0,1);if(typeof e==`bigint`)return new t(e,r,i,`bigint`,BigInt(0),BigInt(1));throw new n(`Incorrect Iterator.range arguments`)}})})),Ud=o((()=>{Si()})),Wd=o(((e,t)=>{var n=G(),r=m(),i=ai(),a=kn(),o=ci(),s=Ht(),c=_(),l=RangeError,u=TypeError,d=c([].push),f=c([].slice),p=`allow-partial`,h=i(function(){for(var e=this.iterator,t=this.next,i=this.buffer,o=this.windowSize,s=this.allowPartial,c,l;;){if(c=n(r(t,e)),l=this.done=!!c.done,s&&l&&i.length&&i.length>>0!==t?s(e,`throw`,new l("`windowSize` must be integer in [1, 2^32-1]")):r!==void 0&&r!==`only-full`&&r!==p?s(e,`throw`,new u("Incorrect `undersized` argument")):new h(o(e),{windowSize:t,buffer:[],allowPartial:r===p})}})),Gd=o((()=>{var e=Y(),t=Wd();e({target:`Iterator`,proto:!0,real:!0,forced:!0},{sliding:function(e){return t(this,e,`allow-partial`)}})})),Kd=o((()=>{Ci()})),qd=o((()=>{wi()})),Jd=o((()=>{Ti()})),Yd=o((()=>{var e=Y(),t=G(),n=Uo(),r=td(),i=ci();e({target:`Iterator`,proto:!0,real:!0,forced:!0},{toAsync:function(){return new r(i(new n(i(t(this)))))}})})),Xd=o((()=>{var e=Y(),t=Wd();e({target:`Iterator`,proto:!0,real:!0,forced:!0},{windows:function(e){return t(this,e,arguments.length<2?void 0:arguments[1])}})})),Zd=o(((e,t)=>{var n=Vt(),r=ci();t.exports=function(e){return r(n(e))}})),Qd=o(((e,t)=>{var n=TypeError;t.exports=function(e){var t=e&&e.mode;if(t===void 0||t===`shortest`||t===`longest`||t===`strict`)return t||`shortest`;throw new n("Incorrect `mode` option")}})),$d=o(((e,t)=>{var n=m(),r=_(),i=G(),a=ai(),o=ii(),s=TypeError,c=r([].slice),l=r([].push),u=`Iterator is exhausted`,d=`throw`,f=a(function(){var e=this.iterCount;if(!e){this.done=!0;return}for(var t=this.openIters,r=this.iters,a=this.padding,c=this.mode,f=this.finishResults,p=[],m,h,g=0;g{var e=Y(),t=G(),n=Gl(),r=m(),i=_(),a=Zd(),o=_i(),s=Qd(),c=Ht(),l=ii(),u=$d(),d=I(),f=i([].concat),p=i([].push),h=`throw`;e({target:`Iterator`,stat:!0,forced:d},{zip:function(e){t(e);for(var i=arguments.length>1?n(arguments[1]):void 0,d=s(i),m=d===`longest`?n(i&&i.padding):void 0,g=[],_=[],v=a(e),y,b,x;!b;){try{x=t(r(v.next,v.iterator)),b=x.done}catch(e){return l(g,h,e)}if(!b){try{y=o(x.value,!1)}catch(e){return l(f([v],g),h,e)}p(g,y)}}var S=g.length,C,w,T;if(d===`longest`)if(m===void 0)for(C=0;C{var e=Y(),t=G(),n=Gl(),r=Ge(),i=m(),a=_(),o=T(),s=h(),c=_i(),l=Qd(),u=ii(),d=$d(),f=I(),p=o(`Object`,`create`),g=o(`Reflect`,`ownKeys`),v=a([].push),y=`throw`;e({target:`Iterator`,stat:!0,forced:f},{zipKeyed:function(e){t(e);var a=arguments.length>1?n(arguments[1]):void 0,o=l(a),f=o===`longest`?n(a&&a.padding):void 0,m=[],h=[],_=g(e),b=[],x=s.f,S,C,w;for(S=0;S<_.length;S++)try{if(C=_[S],!i(x,e,C))continue;w=e[C],w!==void 0&&(v(b,C),v(m,c(w,!1)))}catch(e){return u(m,y,e)}var T=m.length;if(o===`longest`)if(f===void 0)for(S=0;S{Ei()})),rf=o((()=>{Di()})),af=o((()=>{ki()})),of=o(((e,t)=>{var n=Ri().has;t.exports=function(e){return n(e),e}})),sf=o((()=>{var e=Y(),t=of(),n=Ri().remove;e({target:`Map`,proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e=t(this),r=!0,i,a=0,o=arguments.length;a{var e=Y(),t=of(),n=Ri(),r=n.get,i=n.has,a=n.set;e({target:`Map`,proto:!0,real:!0,forced:!0},{emplace:function(e,n){var o=t(this),s,c;return i(o,e)?(s=r(o,e),`update`in n&&(s=n.update(s,e,o),a(o,e,s)),s):(c=n.insert(e,o),a(o,e,c),c)}})})),lf=o((()=>{var e=Y(),t=Be(),n=of(),r=Pu();e({target:`Map`,proto:!0,real:!0,forced:!0},{every:function(e){var i=n(this),a=t(e,arguments.length>1?arguments[1]:void 0);return r(i,function(e,t){if(!a(e,t,i))return!1},!0)!==!1}})})),uf=o((()=>{var e=Y(),t=Be(),n=of(),r=Ri(),i=Pu(),a=r.Map,o=r.set;e({target:`Map`,proto:!0,real:!0,forced:!0},{filter:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),c=new a;return i(r,function(e,t){s(e,t,r)&&o(c,t,e)}),c}})})),df=o((()=>{var e=Y(),t=Be(),n=of(),r=Pu();e({target:`Map`,proto:!0,real:!0,forced:!0},{find:function(e){var i=n(this),a=t(e,arguments.length>1?arguments[1]:void 0),o=r(i,function(e,t){if(a(e,t,i))return{value:e}},!0);return o&&o.value}})})),ff=o((()=>{var e=Y(),t=Be(),n=of(),r=Pu();e({target:`Map`,proto:!0,real:!0,forced:!0},{findKey:function(e){var i=n(this),a=t(e,arguments.length>1?arguments[1]:void 0),o=r(i,function(e,t){if(a(e,t,i))return{key:t}},!0);return o&&o.key}})})),pf=o(((e,t)=>{var n=Be(),r=G(),i=B(),a=Ut();t.exports=function(e,t,o){return function(s){var c=i(s),l=arguments.length,u=l>1?arguments[1]:void 0,d=u!==void 0,f=d?n(u,l>2?arguments[2]:void 0):void 0,p=new e,m=0;return a(c,function(e){var n=d?f(e,m++):e;o?t(p,r(n)[0],n[1]):t(p,n)}),p}}})),mf=o((()=>{var e=Y(),t=Ri();e({target:`Map`,stat:!0,forced:!0},{from:pf()(t.Map,t.set,!0)})})),hf=o((()=>{Bi()})),gf=o((()=>{Vi()})),_f=o((()=>{zi()})),vf=o(((e,t)=>{t.exports=function(e,t){return e===t||e!==e&&t!==t}})),yf=o((()=>{var e=Y(),t=vf(),n=of(),r=Pu();e({target:`Map`,proto:!0,real:!0,forced:!0},{includes:function(e){return r(n(this),function(n){if(t(n,e))return!0},!0)===!0}})})),bf=o((()=>{var e=Y(),t=m(),n=Ut(),r=C(),i=N(),a=Ri().Map;e({target:`Map`,stat:!0,forced:!0},{keyBy:function(e,o){var s=new(r(this)?this:a);i(o);var c=i(s.set);return n(e,function(e){t(c,s,o(e),e)}),s}})})),xf=o((()=>{var e=Y(),t=of(),n=Pu();e({target:`Map`,proto:!0,real:!0,forced:!0},{keyOf:function(e){var r=n(t(this),function(t,n){if(t===e)return{key:n}},!0);return r&&r.key}})})),Sf=o((()=>{var e=Y(),t=Be(),n=of(),r=Ri(),i=Pu(),a=r.Map,o=r.set;e({target:`Map`,proto:!0,real:!0,forced:!0},{mapKeys:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),c=new a;return i(r,function(e,t){o(c,s(e,t,r),e)}),c}})})),Cf=o((()=>{var e=Y(),t=Be(),n=of(),r=Ri(),i=Pu(),a=r.Map,o=r.set;e({target:`Map`,proto:!0,real:!0,forced:!0},{mapValues:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),c=new a;return i(r,function(e,t){o(c,t,s(e,t,r))}),c}})})),wf=o((()=>{var e=Y(),t=of(),n=Ut(),r=Ri().set;e({target:`Map`,proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var i=t(this),a=arguments.length,o=0;o{var n=G();t.exports=function(e,t,r){return function(){for(var i=new e,a=arguments.length,o=0;o{var e=Y(),t=Ri();e({target:`Map`,stat:!0,forced:!0},{of:Tf()(t.Map,t.set,!0)})})),Df=o((()=>{var e=Y(),t=N(),n=of(),r=Pu(),i=TypeError;e({target:`Map`,proto:!0,real:!0,forced:!0},{reduce:function(e){var a=n(this),o=arguments.length<2,s=o?void 0:arguments[1];if(t(e),r(a,function(t,n){o?(o=!1,s=t):s=e(s,t,n,a)}),o)throw new i(`Reduce of empty map with no initial value`);return s}})})),Of=o((()=>{var e=Y(),t=Be(),n=of(),r=Pu();e({target:`Map`,proto:!0,real:!0,forced:!0},{some:function(e){var i=n(this),a=t(e,arguments.length>1?arguments[1]:void 0);return r(i,function(e,t){if(a(e,t,i))return!0},!0)===!0}})})),kf=o((()=>{var e=Y(),t=N(),n=of(),r=Ri(),i=TypeError,a=r.get,o=r.has,s=r.set;e({target:`Map`,proto:!0,real:!0,forced:!0},{update:function(e,r){var c=n(this),l=arguments.length;t(r);var u=o(c,e);if(!u&&l<3)throw new i(`Updating absent value`);return s(c,e,r(u?a(c,e):t(l>2?arguments[2]:void 0)(e,c),e,c)),c}})})),Af=o(((e,t)=>{var n=m(),r=N(),i=C(),a=G(),o=TypeError;t.exports=function(e,t){var s=a(this),c=r(s.get),l=r(s.has),u=r(s.set),d=arguments.length>2?arguments[2]:void 0,f;if(!i(t)&&!i(d))throw new o(`At least one callback required`);return n(l,s,e)?(f=n(c,s,e),i(t)&&(f=t(f),n(u,s,e,f))):i(d)&&(f=d(),n(u,s,e,f)),f}})),jf=o((()=>{Y()({target:`Map`,proto:!0,real:!0,name:`upsert`,forced:!0},{updateOrInsert:Af()})})),Mf=o((()=>{Y()({target:`Map`,proto:!0,real:!0,forced:!0},{upsert:Af()})})),Nf=o(((e,t)=>{var n=TypeError;t.exports=function(e){if(typeof e==`number`)return e;throw new n(`Argument is not a number`)}})),Pf=o(((e,t)=>{var n=Nf(),r=Math.min,i=Math.max;t.exports=function(e,t,a){return r(i(n(e),n(t)),n(a))}})),Ff=o((()=>{Y()({target:`Math`,stat:!0,forced:!0},{clamp:Pf()})})),If=o((()=>{Y()({target:`Math`,stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})})),Lf=o((()=>{var e=Y(),t=180/Math.PI;e({target:`Math`,stat:!0,forced:!0},{degrees:function(e){return e*t}})})),Rf=o(((e,t)=>{t.exports=function(e,t,n,r,i){var a=+e,o=+t,s=+n,c=+r,l=+i;return a!==a||o!==o||s!==s||c!==c||l!==l?NaN:a===1/0||a===-1/0?a:(a-o)*(l-c)/(s-o)+c}})),zf=o((()=>{var e=Y(),t=Rf(),n=hr();e({target:`Math`,stat:!0,forced:!0},{fscale:function(e,r,i,a,o){return n(t(e,r,i,a,o))}})})),Bf=o((()=>{Qi()})),Vf=o((()=>{Y()({target:`Math`,stat:!0,forced:!0},{iaddh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})})),Hf=o((()=>{Y()({target:`Math`,stat:!0,forced:!0},{imulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>16,c=i>>16,l=(s*o>>>0)+(a*o>>>16);return s*c+(l>>16)+((a*c>>>0)+(l&n)>>16)}})})),Uf=o((()=>{Y()({target:`Math`,stat:!0,forced:!0},{isubh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})})),Wf=o((()=>{Y()({target:`Math`,stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})})),Gf=o((()=>{var e=Y(),t=Math.PI/180;e({target:`Math`,stat:!0,forced:!0},{radians:function(e){return e*t}})})),Kf=o((()=>{Y()({target:`Math`,stat:!0,forced:!0},{scale:Rf()})})),qf=o((()=>{var e=Y(),t=G(),n=ga(),r=Dn(),i=kn(),a=de(),o=`Seeded Random`,s=o+` Generator`,c=`Math.seededPRNG() argument should have a "seed" field with a finite value.`,l=a.set,u=a.getterFor(s),d=TypeError,f=r(function(e){l(this,{type:s,seed:e%2147483647})},o,function(){var e=u(this);return i(((e.seed=(e.seed*1103515245+12345)%2147483647)&1073741823)/1073741823,!1)});e({target:`Math`,stat:!0,forced:!0},{seededPRNG:function(e){var r=t(e).seed;if(!n(r))throw new d(c);return new f(r)}})})),Jf=o((()=>{Y()({target:`Math`,stat:!0,forced:!0},{signbit:function(e){var t=+e;return t===t&&t===0?1/t==-1/0:t<0}})})),Yf=o((()=>{sa()})),Xf=o((()=>{Y()({target:`Math`,stat:!0,forced:!0},{umulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>>16,c=i>>>16,l=(s*o>>>0)+(a*o>>>16);return s*c+(l>>>16)+((a*c>>>0)+(l&n)>>>16)}})})),Zf=o((()=>{var e=Y(),t=Pf(),n=da();e({target:`Number`,proto:!0,forced:!0},{clamp:function(e,r){return t(n(this),e,r)}})})),Qf=o((()=>{var e=Y(),t=_(),n=me(),r=`Invalid number representation`,i=`Invalid radix`,a=RangeError,o=SyntaxError,s=TypeError,c=parseInt,l=Math.pow,u=/^[0-9a-z]+(\.[0-9a-z]+)?$/,d=t(``.charAt),f=t(``.charCodeAt),p=t(u.exec),m=t(1.1.toString),h=t(``.slice),g=t(``.split),v=function(e,t){for(var n=0;n=48&&r<=57){if(r-48>=t)return!1}else if(r>=97&&r<=122){if(r-97+10>=t)return!1}else return!1}return!0};e({target:`Number`,stat:!0,forced:!0},{fromString:function(e,t){var f=1;if(typeof e!=`string`)throw new s(r);if(!e.length||d(e,0)===`-`&&(f=-1,e=h(e,1),!e.length))throw new o(r);var _=t===void 0?10:n(t);if(_<2||_>36)throw new a(i);if(!p(u,e)||!v(e,_))throw new o(r);var y=g(e,`.`),b=c(y[0],_);if(y.length>1&&(b+=c(y[1],_)/l(_,y[1].length)),_===10){var x=e;if(y.length>1){for(var S=y[1];S.length&&d(S,S.length-1)===`0`;)S=h(S,0,-1);x=S.length?y[0]+`.`+S:y[0]}if(m(b,_)!==x)throw new o(r)}return f*b}})})),$f=o((()=>{var e=Y(),t=ld();e({target:`Number`,stat:!0,forced:!0},{range:function(e,n,r){return new t(e,n,r,`number`,0,1)}})})),ep=o((()=>{Ja()})),tp=o(((e,t)=>{var n=de(),r=Dn(),i=kn(),a=V(),o=De(),s=B(),c=`Object Iterator`,l=n.set,u=n.getterFor(c);t.exports=r(function(e,t){var n=s(e);l(this,{type:c,mode:t,object:n,keys:o(n),index:0})},`Object`,function(){for(var e=u(this),t=e.keys;;){if(t===null||e.index>=t.length)return e.object=e.keys=null,i(void 0,!0);var n=t[e.index++],r=e.object;if(a(r,n)){switch(e.mode){case`keys`:return i(n,!1);case`values`:return i(r[n],!1)}return i([n,r[n]],!1)}}})})),np=o((()=>{var e=Y(),t=tp();e({target:`Object`,stat:!0,forced:!0},{iterateEntries:function(e){return new t(e,`entries`)}})})),rp=o((()=>{var e=Y(),t=tp();e({target:`Object`,stat:!0,forced:!0},{iterateKeys:function(e){return new t(e,`keys`)}})})),ip=o((()=>{var e=Y(),t=tp();e({target:`Object`,stat:!0,forced:!0},{iterateValues:function(e){return new t(e,`values`)}})})),ap=o((()=>{qa()})),op=o((()=>{var e=Y(),t=m(),n=f(),r=Xn(),i=N(),a=G(),o=ur(),s=C(),c=b(),l=w(),u=P(),d=q(),p=lr(),h=Ne(),g=Co(),_=H(),v=de(),y=_(`observable`),x=`Observable`,S=`Subscription`,T=`SubscriptionObserver`,E=v.getterFor,D=v.set,O=E(x),k=E(S),A=E(T),j=function(e){this.observer=a(e),this.cleanup=null,this.subscriptionObserver=null};j.prototype={type:S,clean:function(){var e=this.cleanup;if(e){this.cleanup=null;try{e()}catch(e){g(e)}}},close:function(){if(!n){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=null},isClosed:function(){return this.observer===null}};var M=function(e,r){var a=D(this,new j(e)),o;n||(this.closed=!1);try{(o=u(e,`start`))&&t(o,e,this)}catch(e){g(e)}if(!a.isClosed()){var l=a.subscriptionObserver=new F(a);try{var d=r(l),f=d;c(d)||(a.cleanup=s(d.unsubscribe)?function(){f.unsubscribe()}:i(d))}catch(e){l.error(e);return}a.isClosed()&&a.clean()}};M.prototype=p({},{unsubscribe:function(){var e=k(this);e.isClosed()||(e.close(),e.clean())}}),n&&h(M.prototype,`closed`,{configurable:!0,get:function(){return k(this).isClosed()}});var F=function(e){D(this,{type:T,subscriptionState:e}),n||(this.closed=!1)};F.prototype=p({},{next:function(e){var n=A(this).subscriptionState;if(!n.isClosed()){var r=n.observer;try{var i=u(r,`next`);i&&t(i,r,e)}catch(e){g(e)}}},error:function(e){var n=A(this).subscriptionState;if(!n.isClosed()){var r=n.observer;n.close();try{var i=u(r,`error`);i?t(i,r,e):g(e)}catch(e){g(e)}n.clean()}},complete:function(){var e=A(this).subscriptionState;if(!e.isClosed()){var n=e.observer;e.close();try{var r=u(n,`complete`);r&&t(r,n)}catch(e){g(e)}e.clean()}}}),n&&h(F.prototype,`closed`,{configurable:!0,get:function(){return A(this).subscriptionState.isClosed()}});var I=function(e){o(this,L),D(this,{type:x,subscriber:i(e)})},L=I.prototype;p(L,{subscribe:function(e){var t=arguments.length;return new M(s(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:l(e)?e:{},O(this).subscriber)}}),d(L,y,function(){return this}),e({global:!0,constructor:!0,forced:!0},{Observable:I}),r(x)})),sp=o((()=>{var e=Y(),t=T(),n=m(),r=G(),i=He(),a=Vt(),o=Bt(),s=P(),c=Ut(),l=H()(`observable`);e({target:`Observable`,stat:!0,forced:!0},{from:function(e){var u=i(this)?this:t(`Observable`),d=s(r(e),l);if(d){var f=r(n(d,e));return f.constructor===u?f:new u(function(e){return f.subscribe(e)})}var p=o(e);return p||a(e),new u(function(t){c(a(e,p),function(e,n){if(t.next(e),t.closed)return n()},{IS_ITERATOR:!0,INTERRUPTED:!0}),t.complete()})}})})),cp=o((()=>{var e=Y(),t=T(),n=He(),r=t(`Array`);e({target:`Observable`,stat:!0,forced:!0},{of:function(){for(var e=n(this)?this:t(`Observable`),i=arguments.length,a=r(i),o=0;o{op(),sp(),cp()})),up=o((()=>{Lo()})),dp=o((()=>{Ro()})),fp=o((()=>{Bo()})),pp=o((()=>{Vo()})),mp=o(((e,t)=>{Li(),ou();var n=T(),r=_(),i=z(),a=n(`Map`),o=n(`WeakMap`),s=r([].push),c=i(`metadata`),l=c.store||=new o,u=function(e,t,n){var r=l.get(e);if(!r){if(!n)return;l.set(e,r=new a)}var i=r.get(t);if(!i){if(!n)return;r.set(t,i=new a)}return i};t.exports={store:l,getMap:u,has:function(e,t,n){var r=u(t,n,!1);return r===void 0?!1:r.has(e)},get:function(e,t,n){var r=u(t,n,!1);return r===void 0?void 0:r.get(e)},set:function(e,t,n,r){u(n,r,!0).set(e,t)},keys:function(e,t){var n=u(e,t,!1),r=[];return n&&n.forEach(function(e,t){s(r,t)}),r},toKey:function(e){return e===void 0||typeof e==`symbol`?e:String(e)}}})),hp=o((()=>{var e=Y(),t=mp(),n=G(),r=t.toKey,i=t.set;e({target:`Reflect`,stat:!0},{defineMetadata:function(e,t,a){var o=arguments.length<4?void 0:r(arguments[3]);i(e,t,n(a),o)}})})),gp=o((()=>{var e=Y(),t=mp(),n=G(),r=t.toKey,i=t.getMap,a=t.store;e({target:`Reflect`,stat:!0},{deleteMetadata:function(e,t){var o=arguments.length<3?void 0:r(arguments[2]),s=i(n(t),o,!1);if(s===void 0||!s.delete(e))return!1;if(s.size)return!0;var c=a.get(t);return c.delete(o),!!c.size||a.delete(t)}})})),_p=o((()=>{var e=Y(),t=mp(),n=G(),r=Lt(),i=t.has,a=t.get,o=t.toKey,s=function(e,t,n){if(i(e,t,n))return a(e,t,n);var o=r(t);return o===null?void 0:s(e,o,n)};e({target:`Reflect`,stat:!0},{getMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]);return s(e,n(t),r)}})})),vp=o((()=>{var e=Y(),t=_(),n=mp(),r=G(),i=Lt(),a=t(Fu()),o=t([].concat),s=n.keys,c=n.toKey,l=function(e,t){var n=s(e,t),r=i(e);if(r===null)return n;var c=l(r,t);return c.length?n.length?a(o(n,c)):c:n};e({target:`Reflect`,stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:c(arguments[1]);return l(r(e),t)}})})),yp=o((()=>{var e=Y(),t=mp(),n=G(),r=t.get,i=t.toKey;e({target:`Reflect`,stat:!0},{getOwnMetadata:function(e,t){var a=arguments.length<3?void 0:i(arguments[2]);return r(e,n(t),a)}})})),bp=o((()=>{var e=Y(),t=mp(),n=G(),r=t.keys,i=t.toKey;e({target:`Reflect`,stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:i(arguments[1]);return r(n(e),t)}})})),xp=o((()=>{var e=Y(),t=mp(),n=G(),r=Lt(),i=t.has,a=t.toKey,o=function(e,t,n){if(i(e,t,n))return!0;var a=r(t);return a===null?!1:o(e,a,n)};e({target:`Reflect`,stat:!0},{hasMetadata:function(e,t){var r=arguments.length<3?void 0:a(arguments[2]);return o(e,n(t),r)}})})),Sp=o((()=>{var e=Y(),t=mp(),n=G(),r=t.has,i=t.toKey;e({target:`Reflect`,stat:!0},{hasOwnMetadata:function(e,t){var a=arguments.length<3?void 0:i(arguments[2]);return r(e,n(t),a)}})})),Cp=o((()=>{var e=Y(),t=mp(),n=G(),r=t.toKey,i=t.set;e({target:`Reflect`,stat:!0},{metadata:function(e,t){return function(a,o){i(e,t,n(a),r(o))}}})})),wp=o((()=>{xs()})),Tp=o((()=>{var e=Y(),t=Ms(),n=js().add;e({target:`Set`,proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=t(this),r=0,i=arguments.length;r{var e=Y(),t=Ms(),n=js().remove;e({target:`Set`,proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e=t(this),r=!0,i,a=0,o=arguments.length;a{Bs()})),Op=o(((e,t)=>{var n=Ee(),r=V(),i=b(),a=H(),o=Rt(),s=a(`iterator`),c=Object;t.exports=function(e){if(i(e))return!1;var t=c(e);return t[s]!==void 0||`@@iterator`in t||r(o,n(t))}})),kp=o(((e,t)=>{var n=T(),r=C(),i=Op(),a=w(),o=n(`Set`),s=function(e){return a(e)&&typeof e.size==`number`&&r(e.has)&&r(e.keys)};t.exports=function(e){return s(e)?e:i(e)?new o(e):e}})),Ap=o((()=>{var e=Y(),t=m(),n=kp(),r=Rs();e({target:`Set`,proto:!0,real:!0,forced:!0},{difference:function(e){return t(r,this,n(e))}})})),jp=o((()=>{var e=Y(),t=Be(),n=Ms(),r=Ps();e({target:`Set`,proto:!0,real:!0,forced:!0},{every:function(e){var i=n(this),a=t(e,arguments.length>1?arguments[1]:void 0);return r(i,function(e){if(!a(e,e,i))return!1},!0)!==!1}})})),Mp=o((()=>{var e=Y(),t=Be(),n=Ms(),r=js(),i=Ps(),a=r.Set,o=r.add;e({target:`Set`,proto:!0,real:!0,forced:!0},{filter:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),c=new a;return i(r,function(e){s(e,e,r)&&o(c,e)}),c}})})),Np=o((()=>{var e=Y(),t=Be(),n=Ms(),r=Ps();e({target:`Set`,proto:!0,real:!0,forced:!0},{find:function(e){var i=n(this),a=t(e,arguments.length>1?arguments[1]:void 0),o=r(i,function(e){if(a(e,e,i))return{value:e}},!0);return o&&o.value}})})),Pp=o((()=>{var e=Y(),t=js();e({target:`Set`,stat:!0,forced:!0},{from:pf()(t.Set,t.add,!1)})})),Fp=o((()=>{Hs()})),Ip=o((()=>{var e=Y(),t=m(),n=kp(),r=Vs();e({target:`Set`,proto:!0,real:!0,forced:!0},{intersection:function(e){return t(r,this,n(e))}})})),Lp=o((()=>{Ws()})),Rp=o((()=>{var e=Y(),t=m(),n=kp(),r=Us();e({target:`Set`,proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return t(r,this,n(e))}})})),zp=o((()=>{Ks()})),Bp=o((()=>{var e=Y(),t=m(),n=kp(),r=Gs();e({target:`Set`,proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return t(r,this,n(e))}})})),Vp=o((()=>{Js()})),Hp=o((()=>{var e=Y(),t=m(),n=kp(),r=qs();e({target:`Set`,proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return t(r,this,n(e))}})})),Up=o((()=>{var e=Y(),t=_(),n=Ms(),r=Ps(),i=X(),a=t([].join),o=t([].push);e({target:`Set`,proto:!0,real:!0,forced:!0},{join:function(e){var t=n(this),s=e===void 0?`,`:i(e),c=[];return r(t,function(e){o(c,e)}),a(c,s)}})})),Wp=o((()=>{var e=Y(),t=Be(),n=Ms(),r=js(),i=Ps(),a=r.Set,o=r.add;e({target:`Set`,proto:!0,real:!0,forced:!0},{map:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),c=new a;return i(r,function(e){o(c,s(e,e,r))}),c}})})),Gp=o((()=>{var e=Y(),t=js();e({target:`Set`,stat:!0,forced:!0},{of:Tf()(t.Set,t.add,!1)})})),Kp=o((()=>{var e=Y(),t=N(),n=Ms(),r=Ps(),i=TypeError;e({target:`Set`,proto:!0,real:!0,forced:!0},{reduce:function(e){var a=n(this),o=arguments.length<2,s=o?void 0:arguments[1];if(t(e),r(a,function(t){o?(o=!1,s=t):s=e(s,t,t,a)}),o)throw new i(`Reduce of empty set with no initial value`);return s}})})),qp=o((()=>{var e=Y(),t=Be(),n=Ms(),r=Ps();e({target:`Set`,proto:!0,real:!0,forced:!0},{some:function(e){var i=n(this),a=t(e,arguments.length>1?arguments[1]:void 0);return r(i,function(e){if(a(e,e,i))return!0},!0)===!0}})})),Jp=o((()=>{Zs()})),Yp=o((()=>{var e=Y(),t=m(),n=kp(),r=Ys();e({target:`Set`,proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return t(r,this,n(e))}})})),Xp=o((()=>{$s()})),Zp=o((()=>{var e=Y(),t=m(),n=kp(),r=Qs();e({target:`Set`,proto:!0,real:!0,forced:!0},{union:function(e){return t(r,this,n(e))}})})),Qp=o((()=>{var e=Y(),t=tc().charAt,n=x(),r=me(),i=X();e({target:`String`,proto:!0,forced:!0},{at:function(e){var a=i(n(this)),o=a.length,s=r(e),c=s>=0?s:o+s;return c<0||c>=o?void 0:t(a,c)}})})),$p=o(((e,t)=>{var n=_(),r=S(),i=X(),a=J(),o=TypeError,s=n([].push),c=n([].join);t.exports=function(e){var t=r(e),n=a(t);if(!n)return``;for(var l=arguments.length,u=[],d=0;;){var f=t[d++];if(f===void 0)throw new o(`Incorrect template`);if(s(u,i(f)),d===n)return c(u,``);d{Y()({target:`String`,stat:!0,forced:!0},{cooked:$p()})})),tm=o((()=>{var e=Y(),t=Dn(),n=kn(),r=x(),i=X(),a=de(),o=tc(),s=o.codeAt,c=o.charAt,l=`String Iterator`,u=a.set,d=a.getterFor(l),f=t(function(e){u(this,{type:l,string:e,index:0})},`String`,function(){var e=d(this),t=e.string,r=e.index,i;return r>=t.length?n(void 0,!0):(i=c(t,r),e.index+=i.length,n({codePoint:s(i,0),position:r},!1))});e({target:`String`,proto:!0,forced:!0},{codePoints:function(){return new f(i(r(this)))}})})),nm=o(((e,t)=>{var n=T(),r=_(),i=String.fromCharCode,a=n(`String`,`fromCodePoint`),o=r(``.charAt),s=r(``.charCodeAt),c=r(``.indexOf),l=r(``.slice),u=48,d=57,f=97,p=102,m=65,h=70,g=function(e,t){var n=s(e,t);return n>=u&&n<=d},v=function(e,t,n){if(n>e.length||t>=n)return-1;for(var r=0;t=u&&e<=d?e-u:e>=f&&e<=p?e-f+10:e>=m&&e<=h?e-m+10:-1};t.exports=function(e){for(var t=``,n=0,r=0,s;(r=c(e,`\\`,r))>-1;){if(t+=l(e,n,r),++r===e.length)return;var u=o(e,r++);switch(u){case`b`:t+=`\b`;break;case`t`:t+=` `;break;case`n`:t+=` +`;break;case`v`:t+=`\v`;break;case`f`:t+=`\f`;break;case`r`:t+=`\r`;break;case`\r`:r1114111)return;t+=a(s);break;default:if(g(u,0))return;t+=u}n=r}return t+l(e,n)}})),rm=o((()=>{var e=Oi(),t=Y(),n=fe(),r=_(),i=Ze(),a=G(),o=B(),s=C(),c=J(),l=K().f,u=je(),d=su(),f=$p(),p=nm(),m=fa(),h=new d.WeakMap,g=d.get,v=d.has,y=d.set,b=Array,x=TypeError,S=Object.freeze||Object,w=Object.isFrozen,T=Math.min,E=r(``.charAt),D=r(``.slice),O=r(``.split),k=r(/./.exec),A=/([\n\u2028\u2029]|\r\n?)/g,j=RegExp(`^[`+m+`]*`),M=RegExp(`[^`+m+`]`),N=`Invalid tag`,P=`Invalid opening line`,F=`Invalid closing line`,I=function(t){var n=t.raw;if(e&&!w(n))throw new x(`Raw template should be frozen`);if(v(h,n))return g(h,n);var r=L(n),i=z(r);return l(i,`raw`,{value:S(r)}),S(i),y(h,n,i),i},L=function(e){var t=o(e),n=c(t),r=b(n),i=b(n),a=0,s,l,u,d;if(!n)throw new x(N);for(;a0)throw new x(P);s[1]=``}if(p){if(s.length===1||k(M,s[s.length-1]))throw new x(F);s[s.length-2]=``,s[s.length-1]=``}for(var m=2;m{cc()})),am=o((()=>{mc()})),om=o((()=>{Sc()})),sm=o((()=>{Dc()})),cm=o((()=>{at()})),lm=o((()=>{Ie()(`customMatcher`)})),um=o((()=>{st()})),dm=o(((e,t)=>{var n=T(),r=_(),i=n(`Symbol`),a=i.keyFor,o=r(i.prototype.valueOf);t.exports=i.isRegisteredSymbol||function(e){try{return a(o(e))!==void 0}catch{return!1}}})),fm=o((()=>{Y()({target:`Symbol`,stat:!0},{isRegisteredSymbol:dm()})})),pm=o((()=>{Y()({target:`Symbol`,stat:!0,name:`isRegisteredSymbol`},{isRegistered:dm()})})),mm=o(((e,t)=>{for(var n=z(),r=T(),i=_(),a=j(),o=H(),s=r(`Symbol`),c=s.isWellKnownSymbol,l=r(`Object`,`getOwnPropertyNames`),u=i(s.prototype.valueOf),d=n(`wks`),f=0,p=l(s),m=p.length;f{Y()({target:`Symbol`,stat:!0,forced:!0},{isWellKnownSymbol:mm()})})),gm=o((()=>{Y()({target:`Symbol`,stat:!0,name:`isWellKnownSymbol`,forced:!0},{isWellKnown:mm()})})),_m=o((()=>{Ie()(`matcher`)})),vm=o((()=>{Ie()(`metadata`)})),ym=o((()=>{Ie()(`metadataKey`)})),bm=o((()=>{Ie()(`observable`)})),xm=o((()=>{Ie()(`patternMatch`)})),Sm=o((()=>{Ie()(`replaceAll`)})),Cm=o((()=>{var e=T(),t=po(),n=qo(),r=Z(),i=er(),a=r.aTypedArrayConstructor,o=r.exportTypedArrayStaticMethod;o(`fromAsync`,function(r){var o=this,s=arguments.length,c=s>1?arguments[1]:void 0,l=s>2?arguments[2]:void 0;return new(e(`Promise`))(function(e){t(o),e(n(r,c,l))}).then(function(e){return i(a(o),e)})},!0)})),wm=o((()=>{pl()})),Tm=o((()=>{var e=Z(),t=Ke().filterReject,n=_l(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`filterOut`,function(e){var i=t(r(this),e,arguments.length>1?arguments[1]:void 0);return n(this,i)},!0)})),Em=o((()=>{var e=Z(),t=Ke().filterReject,n=_l(),r=e.aTypedArray,i=e.exportTypedArrayMethod;i(`filterReject`,function(e){var i=t(r(this),e,arguments.length>1?arguments[1]:void 0);return n(this,i)},!0)})),Dm=o((()=>{xl()})),Om=o((()=>{Sl()})),km=o((()=>{var e=Z(),t=Su(),n=e.aTypedArray,r=e.getTypedArrayConstructor,i=e.exportTypedArrayMethod;i(`groupBy`,function(e){var i=arguments.length>1?arguments[1]:void 0;return t(n(this),e,i,r)},!0)})),Am=o((()=>{Vl()})),jm=o((()=>{Hl()})),Mm=o((()=>{var e=Z(),t=J(),n=el(),r=he(),i=tl(),a=me(),o=e.aTypedArray,s=e.getTypedArrayConstructor,c=e.exportTypedArrayMethod,l=Math.max,u=Math.min;c(`toSpliced`,function(e,c){var d=o(this),f=s(d),p=t(d),m=r(e,p),h=arguments.length,g=0,_,v,y,b,x,S,C;if(h===0)_=v=0;else if(h===1)_=0,v=p-m;else if(v=u(l(a(c),0),p-m),_=h-2,_){b=new f(_),y=n(b);for(var w=2;w{var e=_(),t=Z(),n=er(),r=Fu(),i=t.aTypedArray,a=t.getTypedArrayConstructor,o=t.exportTypedArrayMethod,s=e(r);o(`uniqueBy`,function(e){return i(this),n(a(this),s(this,e))},!0)})),Pm=o((()=>{Wl()})),Fm=o((()=>{Yl()})),Im=o((()=>{Zl()})),Lm=o((()=>{$l()})),Rm=o((()=>{eu()})),zm=o((()=>{tu()})),Bm=o((()=>{nu()})),Vm=o((()=>{var e=Y(),t=lu(),n=su().remove;e({target:`WeakMap`,proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e=t(this),r=!0,i,a=0,o=arguments.length;a{var e=Y(),t=su();e({target:`WeakMap`,stat:!0,forced:!0},{from:pf()(t.WeakMap,t.set,!0)})})),Um=o((()=>{var e=Y(),t=su();e({target:`WeakMap`,stat:!0,forced:!0},{of:Tf()(t.WeakMap,t.set,!0)})})),Wm=o((()=>{var e=Y(),t=lu(),n=su(),r=n.get,i=n.has,a=n.set;e({target:`WeakMap`,proto:!0,real:!0,forced:!0},{emplace:function(e,n){var o=t(this),s,c;return i(o,e)?(s=r(o,e),`update`in n&&(s=n.update(s,e,o),a(o,e,s)),s):(c=n.insert(e,o),a(o,e,c),c)}})})),Gm=o((()=>{cu()})),Km=o((()=>{du()})),qm=o((()=>{Y()({target:`WeakMap`,proto:!0,real:!0,forced:!0},{upsert:Af()})})),Jm=o(((e,t)=>{var n=_(),r=WeakSet.prototype;t.exports={WeakSet,add:n(r.add),has:n(r.has),remove:n(r.delete)}})),Ym=o(((e,t)=>{var n=Jm().has;t.exports=function(e){return n(e),e}})),Xm=o((()=>{var e=Y(),t=Ym(),n=Jm().add;e({target:`WeakSet`,proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=t(this),r=0,i=arguments.length;r{var e=Y(),t=Ym(),n=Jm().remove;e({target:`WeakSet`,proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e=t(this),r=!0,i,a=0,o=arguments.length;a{var e=Y(),t=Jm();e({target:`WeakSet`,stat:!0,forced:!0},{from:pf()(t.WeakSet,t.add,!1)})})),$m=o((()=>{var e=Y(),t=Jm();e({target:`WeakSet`,stat:!0,forced:!0},{of:Tf()(t.WeakSet,t.add,!1)})})),eh=o((()=>{var e=Y(),t=u(),n=T(),r=_(),i=m(),a=d(),o=X(),s=ho(),c=Kl().c2i,l=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,h=n(`atob`),g=Array,v=String.fromCharCode,y=r(``.charAt),b=r(``.replace),x=r([].join),S=r(l.exec),C=!!h&&!a(function(){return h(`aGk=`)!==`hi`}),w=C&&a(function(){return h(` `)!==``}),E=C&&!a(function(){h(`a`)}),D=C&&!a(function(){h()}),O=C&&h.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!C||w||E||D||O},{atob:function(e){if(s(arguments.length,1),C&&!w&&!E)return i(h,t,e);var r=b(o(e),f,``),a=0,u=0,d,m,_;r.length&3||(r=b(r,p,``)),d=r.length;var T=d&3;if(T===1||S(l,r))throw new(n(`DOMException`))(`The string is not correctly encoded`,`InvalidCharacterError`);for(var D=new g((d>>2)*3+(T?T-1:0)),O=0;a>(-2*u&6)));return x(D,``)}})})),th=o((()=>{var e=Y(),t=u(),n=T(),r=_(),i=m(),a=d(),o=X(),s=ho(),c=Kl().i2c,l=n(`btoa`),f=Array,p=r([].join),h=r(``.charAt),g=r(``.charCodeAt),v=!!l&&!a(function(){return l(`hi`)!==`aGk=`}),y=v&&!a(function(){l()}),b=v&&a(function(){return l(null)!==`bnVsbA==`}),x=v&&l.length!==1;e({global:!0,bind:!0,enumerable:!0,forced:!v||y||b||x},{btoa:function(e){if(s(arguments.length,1),v)return i(l,t,o(e));for(var r=o(e),a=new f((r.length+2)/3<<2),u=0,d=0,m=c,_,y;h(r,d)||(m=`=`,d%1);){if(y=g(r,d+=3/4),y>255)throw new(n(`DOMException`))(`The string contains characters outside of the Latin1 range`,`InvalidCharacterError`);_=_<<8|y,a[u++]=h(m,63&_>>8-d%1*8)}return p(a,``)}})})),nh=o(((e,t)=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}})),rh=o(((e,t)=>{var n=U()(`span`).classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r})),ih=o((()=>{var e=u(),t=nh(),n=rh(),r=_n(),i=ae(),a=function(e){if(e&&e.forEach!==r)try{i(e,`forEach`,r)}catch{e.forEach=r}};for(var o in t)t[o]&&a(e[o]&&e[o].prototype);a(n)})),ah=o((()=>{var e=u(),t=nh(),n=rh(),r=An(),i=ae(),a=Re(),o=H()(`iterator`),s=r.values,c=function(e,n){if(e){if(e[o]!==s)try{i(e,o,s)}catch{e[o]=s}if(a(e,n,!0),t[n]){for(var c in r)if(e[c]!==r[c])try{i(e,c,r[c])}catch{e[c]=r[c]}}}};for(var l in t)c(e[l]&&e[l].prototype,l);c(n,`DOMTokenList`)})),oh=o(((e,t)=>{t.exports={IndexSizeError:{s:`INDEX_SIZE_ERR`,c:1,m:1},DOMStringSizeError:{s:`DOMSTRING_SIZE_ERR`,c:2,m:0},HierarchyRequestError:{s:`HIERARCHY_REQUEST_ERR`,c:3,m:1},WrongDocumentError:{s:`WRONG_DOCUMENT_ERR`,c:4,m:1},InvalidCharacterError:{s:`INVALID_CHARACTER_ERR`,c:5,m:1},NoDataAllowedError:{s:`NO_DATA_ALLOWED_ERR`,c:6,m:0},NoModificationAllowedError:{s:`NO_MODIFICATION_ALLOWED_ERR`,c:7,m:1},NotFoundError:{s:`NOT_FOUND_ERR`,c:8,m:1},NotSupportedError:{s:`NOT_SUPPORTED_ERR`,c:9,m:1},InUseAttributeError:{s:`INUSE_ATTRIBUTE_ERR`,c:10,m:1},InvalidStateError:{s:`INVALID_STATE_ERR`,c:11,m:1},SyntaxError:{s:`SYNTAX_ERR`,c:12,m:1},InvalidModificationError:{s:`INVALID_MODIFICATION_ERR`,c:13,m:1},NamespaceError:{s:`NAMESPACE_ERR`,c:14,m:1},InvalidAccessError:{s:`INVALID_ACCESS_ERR`,c:15,m:1},ValidationError:{s:`VALIDATION_ERR`,c:16,m:0},TypeMismatchError:{s:`TYPE_MISMATCH_ERR`,c:17,m:1},SecurityError:{s:`SECURITY_ERR`,c:18,m:1},NetworkError:{s:`NETWORK_ERR`,c:19,m:1},AbortError:{s:`ABORT_ERR`,c:20,m:1},URLMismatchError:{s:`URL_MISMATCH_ERR`,c:21,m:1},QuotaExceededError:{s:`QUOTA_EXCEEDED_ERR`,c:22,m:1},TimeoutError:{s:`TIMEOUT_ERR`,c:23,m:1},InvalidNodeTypeError:{s:`INVALID_NODE_TYPE_ERR`,c:24,m:1},DataCloneError:{s:`DATA_CLONE_ERR`,c:25,m:1}}})),sh=o((()=>{var e=Y(),t=T(),n=jr(),r=d(),i=Ae(),a=g(),o=K().f,s=q(),c=Ne(),l=V(),u=ur(),p=G(),m=Pt(),h=Et(),_=oh(),v=Ot(),y=de(),b=f(),x=I(),S=`DOMException`,C=`DATA_CLONE_ERR`,w=t(`Error`),E=t(S)||(function(){try{new((t(`MessageChannel`))||(n(`worker_threads`)).MessageChannel)().port1.postMessage(new WeakMap)}catch(e){if(e.name===C&&e.code===25)return e.constructor}})(),D=E&&E.prototype,O=w.prototype,k=y.set,A=y.getterFor(S),j=`stack`in new w(S),M=function(e){return l(_,e)&&_[e].m?_[e].c:0},N=function(){u(this,P);var e=arguments.length,t=h(e<1?void 0:arguments[0]),n=h(e<2?void 0:arguments[1],`Error`),r=M(n);if(k(this,{type:S,name:n,message:t,code:r}),b||(this.name=n,this.message=t,this.code=r),j){var i=new w(t);i.name=S,o(this,`stack`,a(1,v(i.stack,1)))}},P=N.prototype=i(O),F=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return F(function(){return A(this)[e]})};b&&(c(P,`code`,L(`code`)),c(P,`message`,L(`message`)),c(P,`name`,L(`name`))),o(P,`constructor`,a(1,N));var R=r(function(){return!(new E instanceof w)}),z=R||r(function(){return O.toString!==m||String(new E(1,2))!==`2: 1`}),B=R||r(function(){return new E(1,`DataCloneError`).code!==25}),ee=R||E[C]!==25||D[C]!==25,H=x?z||B||ee:R;e({global:!0,constructor:!0,forced:H},{DOMException:H?N:E});var te=t(S),ne=te.prototype;for(var U in z&&(x||E===te)&&s(ne,`toString`,m),B&&b&&E===te&&c(ne,`code`,F(function(){return M(p(this).name)})),_)if(l(_,U)){var re=_[U],W=re.s,ie=a(6,re.c);l(te,W)||o(te,W,ie),l(ne,W)||o(ne,W,ie)}})),ch=o((()=>{var e=Y(),t=u(),n=T(),r=g(),i=K().f,a=V(),o=ur(),s=Tt(),c=Et(),l=oh(),d=Ot(),p=f(),m=I(),h=`DOMException`,_=n(`Error`),v=n(h),y=function(){o(this,b);var e=arguments.length,t=c(e<1?void 0:arguments[0]),n=new v(t,c(e<2?void 0:arguments[1],`Error`)),a=new _(t);return a.name=h,i(n,`stack`,r(1,d(a.stack,1))),s(n,this,y),n},b=y.prototype=v.prototype,x=`stack`in new _(h),S=`stack`in new v(1,2),C=v&&p&&Object.getOwnPropertyDescriptor(t,h),w=!!C&&!(C.writable&&C.configurable),E=x&&!w&&!S;e({global:!0,constructor:!0,forced:m||E},{DOMException:E?y:v});var D=n(h),O=D.prototype;if(O.constructor!==D){for(var k in m||i(O,`constructor`,r(1,D)),l)if(a(l,k)){var A=l[k],j=A.s;a(D,j)||i(D,j,r(6,A.c))}}})),lh=o((()=>{var e=T(),t=Re(),n=`DOMException`;t(e(n),n)})),uh=o((()=>{var e=Y(),t=u(),n=_o().clear;e({global:!0,bind:!0,enumerable:!0,forced:t.clearImmediate!==n},{clearImmediate:n})})),dh=o(((e,t)=>{var n=u(),r=Ze(),i=C(),a=Rn(),o=D(),s=je(),c=ho(),l=n.Function,d=/MSIE .\./.test(o)||a===`BUN`&&(function(){var e=n.Bun.version.split(`.`);return e.length<3||e[0]===`0`&&(e[1]<3||e[1]===`3`&&e[2]===`0`)})();t.exports=function(e,t){var n=t?2:1;return d?function(a,o){var u=c(arguments.length,1)>n,d=i(a)?a:l(a),f=u?s(arguments,n):[],p=u?function(){r(d,this,f)}:d;return t?e(p,o):e(p)}:e}})),fh=o((()=>{var e=Y(),t=u(),n=_o().set,r=dh(),i=t.setImmediate?r(n,!1):n;e({global:!0,bind:!0,enumerable:!0,forced:t.setImmediate!==i},{setImmediate:i})})),ph=o((()=>{uh(),fh()})),mh=o((()=>{var e=Y(),t=u(),n=So(),r=N(),i=ho(),a=d(),o=f();e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:a(function(){return o&&Object.getOwnPropertyDescriptor(t,`queueMicrotask`).value.length!==1})},{queueMicrotask:function(e){i(arguments.length,1),n(r(e))}})})),hh=o((()=>{var e=Y(),t=u(),n=Ne(),r=f(),i=TypeError,a=Object.defineProperty,o=t.self!==t;try{if(r){var s=Object.getOwnPropertyDescriptor(t,`self`);(o||!s||!s.get||!s.enumerable)&&n(t,`self`,{get:function(){return t},set:function(e){if(this!==t)throw new i(`Illegal invocation`);a(t,`self`,{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else e({global:!0,simple:!0,forced:o},{self:t})}catch{}})),gh=o((()=>{var e=I(),t=Y(),n=u(),r=T(),i=_(),a=d(),o=ee(),s=C(),c=He(),l=b(),f=w(),p=j(),m=Ut(),h=G(),g=Ee(),v=V(),y=Ge(),x=ae(),S=J(),E=ho(),D=hs(),O=Ri(),k=js(),A=Ps(),M=Nr(),N=kt(),P=Mr(),F=n.Object,L=n.Array,R=n.Date,z=n.Error,B=n.TypeError,H=n.PerformanceMark,te=r(`DOMException`),ne=O.Map,U=O.has,re=O.get,W=O.set,ie=k.Set,K=k.add,oe=k.has,se=r(`Object`,`keys`),ce=i([].push),le=i((!0).valueOf),ue=i(1.1.valueOf),de=i(``.valueOf),fe=i(R.prototype.getTime),q=o(`structuredClone`),pe=`DataCloneError`,me=`Transferring`,he=function(e){return!a(function(){var t=new n.Set([7]),r=e(t),i=e(F(7));return r===t||!r.has(7)||!f(i)||+i!=7})&&e},ge=function(e,t){return!a(function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)})},_e=function(e){return!a(function(){var t=e(new n.AggregateError([1],q,{cause:3}));return t.name!==`AggregateError`||t.errors[0]!==1||t.message!==q||t.cause!==3})},ve=n.structuredClone,ye=e||!ge(ve,z)||!ge(ve,te)||!_e(ve),be=!ve&&he(function(e){return new H(q,{detail:e}).detail}),xe=he(ve)||be,Se=function(e){throw new te(`Uncloneable type: `+e,pe)},Ce=function(e,t){throw new te((t||`Cloning`)+` of `+e+` cannot be properly polyfilled in this engine`,pe)},we=function(e,t){return xe||Ce(t),xe(e)},Te=function(){var e;try{e=new n.DataTransfer}catch{try{e=new n.ClipboardEvent(``).clipboardData}catch{}}return e&&e.items&&e.files?e:null},X=function(e,t,r){if(U(t,e))return re(t,e);var i=r||g(e),a,o,c,l,u,d;if(i===`SharedArrayBuffer`)a=xe?xe(e):e;else{var f=n.DataView;!f&&!s(e.slice)&&Ce(`ArrayBuffer`);try{if(s(e.slice)&&!e.resizable)a=e.slice(0);else for(o=e.byteLength,c=(`maxByteLength`in e)?{maxByteLength:e.maxByteLength}:void 0,a=new ArrayBuffer(o,c),l=new f(e),u=new f(a),d=0;d1&&!l(arguments[1])?h(arguments[1]):void 0,n=t?t.transfer:void 0,r,i;n!==void 0&&(r=new ne,i=ke(n,r));var a=Oe(e,r);return i&&Ae(i),a}})})),_h=o((()=>{var e=Y(),t=u(),n=dh()(t.setInterval,!0);e({global:!0,bind:!0,forced:t.setInterval!==n},{setInterval:n})})),vh=o((()=>{var e=Y(),t=u(),n=dh()(t.setTimeout,!0);e({global:!0,bind:!0,forced:t.setTimeout!==n},{setTimeout:n})})),yh=o((()=>{_h(),vh()})),bh=o(((e,t)=>{var n=d(),r=H(),i=f(),a=I(),o=r(`iterator`);t.exports=!n(function(){var e=new URL(`b?a=1&b=2&c=3`,`https://a`),t=e.searchParams,n=new URLSearchParams(`a=1&a=2&b=3`),r=``;return e.pathname=`c%20d`,t.forEach(function(e,n){t.delete(`b`),r+=n+e}),n.delete(`a`,2),n.delete(`b`,void 0),a&&(!e.toJSON||!n.has(`a`,1)||n.has(`a`,2)||!n.has(`a`,void 0)||n.has(`b`))||!t.size&&(a||!i)||!t.sort||e.href!==`https://a/c%20d?a=1&c=3`||t.get(`c`)!==`3`||String(new URLSearchParams(`?a=1`))!==`a=1`||!t[o]||new URL(`https://a@b`).username!==`a`||new URLSearchParams(new URLSearchParams(`a=b`)).get(`a`)!==`b`||new URL(`https://тест`).host!==`xn--e1aybc`||new URL(`https://a#б`).hash!==`#%D0%B1`||r!==`a1c3`||new URL(`https://x`,void 0).host!==`x`})})),xh=o(((e,t)=>{var n=_(),r=2147483647,i=36,a=1,o=26,s=38,c=700,l=72,u=128,d=`-`,f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m=`Overflow: input needs wider integers to process`,h=i-a,g=RangeError,v=n(p.exec),y=Math.floor,b=String.fromCharCode,x=n(``.charCodeAt),S=n([].join),C=n([].push),w=n(``.replace),T=n(``.split),E=n(``.toLowerCase),D=function(e){for(var t=[],n=0,r=e.length;n=55296&&i<=56319&&n>1,e+=y(e/t);e>h*o>>1;)e=y(e/h),r+=i;return y(r+(h+1)*e/(e+s))},A=function(e){var t=[];e=D(e);var n=e.length,s=u,c=0,f=l,p,h;for(p=0;p=s&&hy((r-c)/w))throw new g(m);for(c+=(x-s)*w,s=x,p=0;pr)throw new g(m);if(h===s){for(var T=c,E=i;;){var A=E<=f?a:E>=f+o?o:E-f;if(T{An(),oc();var n=Y(),r=u(),i=vo(),a=T(),o=m(),s=_(),c=f(),l=bh(),d=q(),p=Ne(),h=lr(),v=Re(),y=Dn(),b=de(),x=ur(),S=C(),E=V(),D=Be(),O=Ee(),k=G(),A=w(),j=X(),M=Ae(),N=g(),P=Vt(),F=Bt(),I=kn(),L=ho(),R=H(),z=Gn(),B=R(`iterator`),ee=`URLSearchParams`,te=ee+`Iterator`,ne=b.set,U=b.getterFor(ee),re=b.getterFor(te),W=i(`fetch`),ie=i(`Request`),K=i(`Headers`),ae=ie&&ie.prototype,oe=K&&K.prototype,se=r.TypeError,ce=r.encodeURIComponent,le=String.fromCharCode,ue=a(`String`,`fromCodePoint`),fe=parseInt,pe=s(``.charAt),me=s([].join),he=s([].push),ge=s(``.replace),J=s([].shift),_e=s([].splice),ve=s(``.split),ye=s(``.slice),be=s(/./.exec),xe=/\+/g,Se=`�`,Ce=/^[0-9a-f]+$/i,we=function(e,t){var n=ye(e,t,t+2);return be(Ce,n)?fe(n,16):NaN},Te=function(e){for(var t=0,n=128;n>0&&(e&n)!==0;n>>=1)t++;return t},De=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(e[0]&31)<<6|e[1]&63;break;case 3:t=(e[0]&15)<<12|(e[1]&63)<<6|e[2]&63;break;case 4:t=(e[0]&7)<<18|(e[1]&63)<<12|(e[2]&63)<<6|e[3]&63;break}return t===null||t>1114111||t>=55296&&t<=57343||t<(n>3?65536:n>2?2048:n>1?128:0)?null:t},Oe=function(e){e=ge(e,xe,` `);for(var t=e.length,n=``,r=0;rt){n+=`%`,r++;continue}var a=we(e,r+1);if(a!==a){n+=i,r++;continue}r+=2;var o=Te(a);if(o===0)i=le(a);else{if(o===1||o>4){n+=Se,r++;continue}for(var s=[a],c=1;ct||pe(e,r)!==`%`));){var l=we(e,r+1);if(l!==l||l>191||l<128||c===1&&(a===224&&l<160||a===237&&l>159||a===240&&l<144||a===244&&l>143))break;he(s,l),r+=2,c++}if(s.length!==o){n+=Se;continue}var u=De(s);if(u===null){for(var d=0;d=t.length)return e.target=null,I(void 0,!0);var r=t[n];switch(e.kind){case`keys`:return I(r.key,!1);case`values`:return I(r.value,!1)}return I([r.key,r.value],!1)},!0),Ie=function(e){this.entries=[],this.url=null,e!==void 0&&(A(e)?this.parseObject(e):this.parseQuery(typeof e==`string`?pe(e,0)===`?`?ye(e,1):e:j(e)))};Ie.prototype={type:ee,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t=this.entries,n=F(e),r,i,a,s,c,l,u;if(n)for(r=P(e,n),i=r.next;!(a=o(i,r)).done;){if(s=P(k(a.value)),c=s.next,(l=o(c,s)).done||(u=o(c,s)).done||!o(c,s).done)throw new se(`Expected sequence with length 2`);he(t,{key:j(l.value),value:j(u.value)})}else for(var d in e)E(e,d)&&he(t,{key:d,value:j(e[d])})},parseQuery:function(e){if(e)for(var t=this.entries,n=ve(e,`&`),r=0,i,a;r0?arguments[0]:void 0,t=ne(this,new Ie(e));c||(this.size=t.entries.length)},ze=Le.prototype;if(h(ze,{append:function(e,t){var n=U(this);L(arguments.length,2),he(n.entries,{key:j(e),value:j(t)}),c||this.size++,n.updateURL()},delete:function(e){for(var t=U(this),n=L(arguments.length,1),r=t.entries,i=j(e),a=n<2?void 0:arguments[1],o=a===void 0?a:j(a),s=0;st.key?1:-1}),e.updateURL()},forEach:function(e){for(var t=U(this).entries,n=D(e,arguments.length>1?arguments[1]:void 0),r=0,i;r1?Ue(arguments[1]):{})}}),S(ie)){var We=function(e){return x(this,ae),new ie(e,arguments.length>1?Ue(arguments[1]):{})};ae.constructor=We,We.prototype=ae,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:We})}}t.exports={URLSearchParams:Le,getState:U}})),Ch=o((()=>{lc();var e=Y(),t=f(),n=bh(),r=u(),i=Be(),a=_(),o=q(),s=Ne(),c=ur(),l=V(),d=ja(),p=bn(),m=je(),h=tc().codeAt,g=xh(),v=X(),y=Re(),b=ho(),x=Sh(),S=de(),C=S.set,w=S.getterFor(`URL`),T=x.URLSearchParams,E=x.getState,D=r.URL,O=r.TypeError,k=r.encodeURIComponent,A=r.parseInt,j=Math.floor,M=Math.pow,N=a(``.charAt),P=a(/./.exec),F=a([].join),I=a(1.1.toString),L=a([].pop),R=a([].push),z=a(``.replace),B=a([].shift),ee=a(``.split),H=a(``.slice),te=a(``.toLowerCase),ne=a([].unshift),U=`Invalid authority`,re=`Invalid scheme`,W=`Invalid host`,ie=`Invalid port`,G=/[a-z]/i,K=/[\d+\-.a-z]/i,ae=/\d/,oe=/^0x/i,se=/^[0-7]+$/,ce=/^\d+$/,le=/^[\da-f]+$/i,ue=/[\0\t\n\r #%/:<>?@[\\\]^|]/,fe=/[\0\t\n\r #/:<>?@[\\\]^|]/,pe=/^[\u0000-\u0020]+/,me=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,he=/[\t\n\r]/g,ge,J=function(e){var t=ee(e,`.`),n,r;if(t[t.length-1]===``){if(t.length===1)return!1;t.length--}return n=t[t.length-1],P(ce,n)?!0:P(oe,n)?(r=H(n,2),r===``||!!P(le,r)):!1},_e=function(e){var t=ee(e,`.`),n,r,i,a,o,s,c;if(t.length&&t[t.length-1]===``&&t.length--,n=t.length,n>4)return null;for(r=[],i=0;i1&&N(a,0)===`0`&&(o=P(oe,a)?16:8,a=H(a,o===8?1:2)),a===``)s=0;else{if(!P(o===10?ce:o===8?se:le,a))return null;s=A(a,o)}R(r,s)}for(i=0;i=M(256,5-n))return null}else if(s>255)return null;for(c=L(r),i=0;i6))return;for(s=0;f();){if(c=null,s>0)if(f()===`.`&&s<4)i++;else return;if(!P(ae,f()))return;for(;P(ae,f());){if(l=A(f(),10),c===null)c=l;else if(c===0)return;else c=c*10+l;if(c>255)return;i++}t[n]=t[n]*256+c,s++,(s===2||s===4)&&n++}if(s!==4)return;break}else if(f()===`:`){if(i++,!f())return}else if(f())return;t[n++]=a}if(r!==null)for(u=n-r,n=7;n!==0&&u>0;)d=t[n],t[n--]=t[r+u-1],t[r+--u]=d;else if(n!==8)return;return t},ye=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)e[a]===0?(r===null&&(r=a),++i):(i>n&&(t=r,n=i),r=null,i=0);return i>n?r:t},be=function(e){var t,n,r,i;if(typeof e==`number`){for(t=[],n=0;n<4;n++)ne(t,e%256),e=j(e/256);return F(t,`.`)}if(typeof e==`object`){for(t=``,r=ye(e),n=0;n<8;n++)i&&e[n]===0||(i&&=!1,r===n?(t+=n?`:`:`::`,i=!0):(t+=I(e[n],16),n<7&&(t+=`:`)));return`[`+t+`]`}return e},xe={},Se=d({},xe,{" ":1,'"':1,"#":1,"<":1,">":1}),Ce=d({},Se,{"'":1}),we=d({},xe,{" ":1,'"':1,"<":1,">":1,"`":1}),Te=d({},we,{"#":1,"?":1,"{":1,"}":1,"^":1}),Ee=d({},Te,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),De=function(e,t){var n=h(e,0);return n>=32&&n<127&&!l(t,e)?e:e===`'`&&l(t,e)?`%27`:k(e)},Oe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ke=function(e,t){var n;return e.length===2&&P(G,N(e,0))&&((n=N(e,1))===`:`||!t&&n===`|`)},Ae=function(e){var t;return e.length>1&&ke(H(e,0,2))&&(e.length===2||(t=N(e,2))===`/`||t===`\\`||t===`?`||t===`#`)},Me=function(e){return e===`.`||te(e)===`%2e`},Pe=function(e){return e=te(e),e===`..`||e===`%2e.`||e===`.%2e`||e===`%2e%2e`},Fe={},Ie={},Le={},ze={},Ve={},He={},Ue={},We={},Ge={},Ke={},qe={},Je={},Ye={},Xe={},Ze={},Qe={},$e={},et={},tt={},nt={},rt={},it=function(e,t,n){var r=v(e),i,a,o;if(t){if(a=this.parse(r),a)throw new O(a);this.searchParams=null}else{if(n!==void 0&&(i=new it(n,!0)),a=this.parse(r,null,i),a)throw new O(a);o=E(new T),o.bindURL(this),this.searchParams=o}};it.prototype={type:`URL`,parse:function(e,t,n){var r=this,i=t||Fe,a=0,o=``,s=!1,c=!1,u=!1,d,f,h,g;for(e=v(e),t||(r.scheme=``,r.username=``,r.password=``,r.host=null,r.port=null,r.path=[],r.query=null,r.fragment=null,r.cannotBeABaseURL=!1,e=z(e,pe,``),e=z(e,me,`$1`)),e=z(e,he,``),d=p(e);a<=d.length;){switch(f=d[a],i){case Fe:if(f&&P(G,f))o+=te(f),i=Ie;else if(t)return re;else{i=Le;continue}break;case Ie:if(f&&P(K,f))o+=te(f);else if(f===`:`){if(t&&(r.isSpecial()!==l(Oe,o)||o===`file`&&(r.includesCredentials()||r.port!==null)||r.scheme===`file`&&r.host===``))return;if(r.scheme=o,t){r.isSpecial()&&Oe[r.scheme]===r.port&&(r.port=null);return}o=``,r.scheme===`file`?i=Xe:r.isSpecial()&&n&&n.scheme===r.scheme?i=ze:r.isSpecial()?i=We:d[a+1]===`/`?(i=Ve,a++):(r.cannotBeABaseURL=!0,R(r.path,``),i=tt)}else if(t)return re;else{o=``,i=Le,a=0;continue}break;case Le:if(!n||n.cannotBeABaseURL&&f!==`#`)return re;if(n.cannotBeABaseURL&&f===`#`){r.scheme=n.scheme,r.path=m(n.path),r.query=n.query,r.fragment=``,r.cannotBeABaseURL=!0,i=rt;break}i=n.scheme===`file`?Xe:He;continue;case ze:if(f===`/`&&d[a+1]===`/`)i=Ge,a++;else{i=He;continue}break;case Ve:if(f===`/`){i=Ke;break}else{i=et;continue}case He:if(r.scheme=n.scheme,f===ge)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=m(n.path),r.query=n.query;else if(f===`/`||f===`\\`&&r.isSpecial())i=Ue;else if(f===`?`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=m(n.path),r.query=``,i=nt;else if(f===`#`)r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=m(n.path),r.query=n.query,r.fragment=``,i=rt;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,r.path=m(n.path),r.path.length&&r.path.length--,i=et;continue}break;case Ue:if(r.isSpecial()&&(f===`/`||f===`\\`))i=Ge;else if(f===`/`)i=Ke;else{r.username=n.username,r.password=n.password,r.host=n.host,r.port=n.port,i=et;continue}break;case We:if(i=Ge,f!==`/`||d[a+1]!==`/`)continue;a++;break;case Ge:if(f!==`/`&&f!==`\\`){i=Ke;continue}break;case Ke:if(f===`@`){s&&(o=`%40`+o),s=!0,h=p(o);for(var _=0;_65535)return ie;r.port=r.isSpecial()&&x===Oe[r.scheme]?null:x,o=``}if(t)return;i=$e;continue}else return ie;break;case Xe:if(r.scheme=`file`,r.host=``,f===`/`||f===`\\`)i=Ze;else if(n&&n.scheme===`file`)switch(f){case ge:r.host=n.host,r.path=m(n.path),r.query=n.query;break;case`?`:r.host=n.host,r.path=m(n.path),r.query=``,i=nt;break;case`#`:r.host=n.host,r.path=m(n.path),r.query=n.query,r.fragment=``,i=rt;break;default:r.host=n.host,Ae(F(m(d,a),``))||(r.path=m(n.path),r.shortenPath()),i=et;continue}else{i=et;continue}break;case Ze:if(f===`/`||f===`\\`){i=Qe;break}n&&n.scheme===`file`&&(r.host=n.host,!Ae(F(m(d,a),``))&&ke(n.path[0],!0)&&R(r.path,n.path[0])),i=et;continue;case Qe:if(f===ge||f===`/`||f===`\\`||f===`?`||f===`#`){if(!t&&ke(o))i=et;else if(o===``){if(r.host=``,t)return;i=$e}else{if(g=r.parseHost(o),g)return g;if(r.host===`localhost`&&(r.host=``),t)return;o=``,i=$e}continue}else o+=f;break;case $e:if(r.isSpecial()){if(i=et,f!==`/`&&f!==`\\`)continue}else if(!t&&f===`?`)r.query=``,i=nt;else if(!t&&f===`#`)r.fragment=``,i=rt;else if(f!==ge&&(i=et,f!==`/`))continue;break;case et:if(f===ge||f===`/`||f===`\\`&&r.isSpecial()||!t&&(f===`?`||f===`#`)){if(Pe(o)?(r.shortenPath(),f!==`/`&&!(f===`\\`&&r.isSpecial())&&R(r.path,``)):Me(o)?f!==`/`&&!(f===`\\`&&r.isSpecial())&&R(r.path,``):(r.scheme===`file`&&!r.path.length&&ke(o)&&(r.host!==null&&r.host!==``&&(r.host=``),o=N(o,0)+`:`),R(r.path,o)),o=``,r.scheme===`file`&&(f===ge||f===`?`||f===`#`))for(;r.path.length>1&&r.path[0]===``;)B(r.path);f===`?`?(r.query=``,i=nt):f===`#`&&(r.fragment=``,i=rt)}else o+=De(f,Te);break;case tt:f===`?`?(r.query=``,i=nt):f===`#`?(r.fragment=``,i=rt):f!==ge&&(r.path[0]+=De(f,xe));break;case nt:!t&&f===`#`?(r.fragment=``,i=rt):f!==ge&&(r.query+=De(f,r.isSpecial()?Ce:Se));break;case rt:f!==ge&&(r.fragment+=De(f,we));break}a++}},parseHost:function(e){var t,n,r;if(N(e,0)===`[`){if(N(e,e.length-1)!==`]`||(t=ve(H(e,1,-1)),!t))return W;this.host=t}else if(this.isSpecial()){if(e=g(e),P(ue,e))return W;if(J(e)){if(t=_e(e),t===null)return W;this.host=t}else this.host=e}else{if(P(fe,e))return W;for(t=``,n=p(e),r=0;r1&&o[0]===``&&(l+=`/.`),l+=e.cannotBeABaseURL?o[0]:o.length?`/`+F(o,`/`):``,s!==null&&(l+=`?`+s),c!==null&&(l+=`#`+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e===`blob`)try{return new at(this.path[0]).origin}catch{return`null`}return e===`file`||!this.isSpecial()?`null`:e+`://`+be(this.host)+(t===null?``:`:`+t)},getProtocol:function(){return this.scheme+`:`},setProtocol:function(e){this.parse(v(e)+`:`,Fe)},getUsername:function(){return this.username},setUsername:function(e){var t=p(v(e));if(!this.cannotHaveUsernamePasswordPort()){this.username=``;for(var n=0;n1?arguments[1]:void 0));t||(n.href=r.serialize(),n.origin=r.getOrigin(),n.protocol=r.getProtocol(),n.username=r.getUsername(),n.password=r.getPassword(),n.host=r.getHost(),n.hostname=r.getHostname(),n.port=r.getPort(),n.pathname=r.getPathname(),n.search=r.getSearch(),n.searchParams=r.getSearchParams(),n.hash=r.getHash())},ot=at.prototype,st=function(e,t){return{get:function(){return w(this)[e]()},set:t&&function(e){return w(this)[t](e)},configurable:!0,enumerable:!0}};if(t&&(s(ot,`href`,st(`serialize`,`setHref`)),s(ot,`origin`,st(`getOrigin`)),s(ot,`protocol`,st(`getProtocol`,`setProtocol`)),s(ot,`username`,st(`getUsername`,`setUsername`)),s(ot,`password`,st(`getPassword`,`setPassword`)),s(ot,`host`,st(`getHost`,`setHost`)),s(ot,`hostname`,st(`getHostname`,`setHostname`)),s(ot,`port`,st(`getPort`,`setPort`)),s(ot,`pathname`,st(`getPathname`,`setPathname`)),s(ot,`search`,st(`getSearch`,`setSearch`)),s(ot,`searchParams`,st(`getSearchParams`)),s(ot,`hash`,st(`getHash`,`setHash`))),o(ot,`toJSON`,function(){return w(this).serialize()},{enumerable:!0}),o(ot,`toString`,function(){return w(this).serialize()},{enumerable:!0}),D){var ct=D.createObjectURL,lt=D.revokeObjectURL;ct&&o(at,`createObjectURL`,i(ct,D)),lt&&o(at,`revokeObjectURL`,i(lt,D))}y(at,`URL`),e({global:!0,constructor:!0,forced:!n,sham:!t},{URL:at})})),wh=o((()=>{Ch()})),Th=o((()=>{var e=Y(),t=T(),n=d(),r=ho(),i=X(),a=bh(),o=t(`URL`),s=a&&n(function(){o.canParse()}),c=n(function(){return o.canParse.length!==1});e({target:`URL`,stat:!0,forced:!s||c},{canParse:function(e){var t=r(arguments.length,1),n=i(e),a=t<2||arguments[1]===void 0?void 0:i(arguments[1]);try{return!!new o(n,a)}catch{return!1}}})})),Eh=o((()=>{var e=Y(),t=T(),n=ho(),r=X(),i=bh(),a=t(`URL`);e({target:`URL`,stat:!0,forced:!i},{parse:function(e){var t=n(arguments.length,1),i=r(e),o=t<2||arguments[1]===void 0?void 0:r(arguments[1]);try{return new a(i,o)}catch{return null}}})})),Dh=o((()=>{var e=Y(),t=m();e({target:`URL`,proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})})),Oh=o((()=>{Sh()})),kh=o((()=>{var e=q(),t=_(),n=X(),r=ho(),i=URLSearchParams,a=i.prototype,o=t(a.append),s=t(a.delete),c=t(a.forEach),l=t([].push),u=new i(`a=1&a=2&b=3`);u.delete(`a`,1),u.delete(`b`,void 0),u+``!=`a=2`&&e(a,`delete`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=[];c(this,function(e,t){l(a,{key:t,value:e})}),r(t,1);for(var u=n(e),d=n(i),f=0,p=a.length,m;f{var e=q(),t=_(),n=X(),r=ho(),i=URLSearchParams,a=i.prototype,o=t(a.getAll),s=t(a.has),c=new i(`a=1`);(c.has(`a`,2)||!c.has(`a`,void 0))&&e(a,`has`,function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return s(this,e);var a=o(this,e);r(t,1);for(var c=n(i),l=0;l{var e=f(),t=_(),n=Ne(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!(`size`in r)&&n(r,`size`,{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})})),Mh=o(((e,t)=>{rt(),it(),at(),ot(),st(),ct(),lt(),ut(),dt(),ft(),pt(),mt(),ht(),gt(),_t(),vt(),yt(),Mt(),Nt(),Ft(),Gt(),Kt(),qt(),Yt(),$t(),nn(),an(),sn(),cn(),ln(),un(),fn(),pn(),hn(),gn(),vn(),Sn(),Cn(),wn(),Tn(),An(),jn(),Nn(),Pn(),Fn(),In(),Bn(),Vn(),Hn(),Un(),Wn(),Yn(),Zn(),Qn(),$n(),nr(),rr(),ir(),ar(),or(),sr(),vr(),yr(),br(),Sr(),Cr(),Er(),kr(),Fr(),Ir(),Lr(),Rr(),zr(),Br(),Wr(),Gr(),qr(),Jr(),Xr(),Zr(),$r(),ei(),ti(),ni(),ri(),oi(),si(),pi(),mi(),hi(),gi(),vi(),yi(),bi(),xi(),Si(),Ci(),wi(),Ti(),Ei(),Di(),ki(),tt(),Ai(),Li(),zi(),Bi(),Vi(),Ui(),Wi(),Gi(),Ki(),qi(),Yi(),Xi(),Zi(),Qi(),$i(),ea(),na(),ra(),ia(),aa(),oa(),sa(),ca(),la(),ua(),ma(),ha(),_a(),ya(),ba(),xa(),Sa(),Ca(),Ta(),Da(),Oa(),ka(),Aa(),Ma(),Na(),Fa(),Ia(),La(),Ra(),Ba(),Va(),Ha(),Ua(),Wa(),Ga(),Ka(),qa(),Ja(),Xa(),Za(),Qa(),$a(),eo(),to(),no(),ro(),io(),ao(),oo(),co(),lo(),uo(),fo(),Io(),Lo(),Ro(),zo(),Bo(),Vo(),Jo(),Yo(),Xo(),Zo(),Qo(),$o(),es(),ns(),rs(),is(),as(),os(),ss(),cs(),ls(),us(),ds(),ys(),xs(),Ss(),ws(),Ts(),Es(),Ds(),Os(),As(),Bs(),Hs(),Ws(),Ks(),Js(),Zs(),$s(),ec(),nc(),ac(),oc(),sc(),cc(),lc(),pc(),mc(),gc(),_c(),vc(),yc(),xc(),Sc(),Cc(),wc(),Tc(),Ec(),Dc(),kc(),Mc(),Fc(),Rc(),zc(),Bc(),Vc(),Hc(),Uc(),Wc(),Gc(),Kc(),qc(),Jc(),Yc(),Xc(),il(),al(),ol(),sl(),cl(),ll(),ul(),dl(),fl(),pl(),ml(),hl(),gl(),vl(),yl(),bl(),xl(),Sl(),Cl(),wl(),Tl(),El(),Dl(),Ol(),kl(),Al(),jl(),Ml(),Nl(),Pl(),Fl(),Il(),Ll(),Rl(),zl(),Bl(),Vl(),Hl(),Ul(),Wl(),Yl(),Zl(),$l(),eu(),tu(),nu(),ru(),ou(),cu(),du(),pu(),mu(),hu(),gu(),_u(),vu(),yu(),bu(),xu(),Cu(),wu(),Eu(),Du(),Ou(),ku(),Au(),ju(),Mu(),Nu(),Iu(),Lu(),Ru(),zu(),Bu(),Vu(),Hu(),Ku(),qu(),Ju(),Yu(),Xu(),Zu(),$u(),ed(),nd(),rd(),id(),ad(),od(),sd(),cd(),ud(),fd(),pd(),md(),hd(),gd(),_d(),vd(),yd(),xd(),Sd(),Cd(),wd(),Td(),Ed(),Dd(),kd(),Ad(),jd(),Md(),Nd(),Pd(),Fd(),Id(),Ld(),Rd(),zd(),Bd(),Vd(),Hd(),Ud(),Gd(),Kd(),qd(),Jd(),Yd(),Xd(),ef(),tf(),nf(),rf(),af(),sf(),cf(),lf(),uf(),df(),ff(),mf(),hf(),gf(),_f(),yf(),bf(),xf(),Sf(),Cf(),wf(),Ef(),Df(),Of(),kf(),jf(),Mf(),Ff(),If(),Lf(),zf(),Bf(),Vf(),Hf(),Uf(),Wf(),Gf(),Kf(),qf(),Jf(),Yf(),Xf(),Zf(),Qf(),$f(),ep(),np(),rp(),ip(),ap(),lp(),up(),dp(),fp(),pp(),hp(),gp(),_p(),vp(),yp(),bp(),xp(),Sp(),Cp(),wp(),Tp(),Ep(),Dp(),Ap(),jp(),Mp(),Np(),Pp(),Fp(),Ip(),Lp(),Rp(),zp(),Bp(),Vp(),Hp(),Up(),Wp(),Gp(),Kp(),qp(),Jp(),Yp(),Xp(),Zp(),Qp(),em(),tm(),rm(),im(),am(),om(),sm(),cm(),lm(),um(),fm(),pm(),hm(),gm(),_m(),vm(),ym(),bm(),xm(),Sm(),Cm(),wm(),Tm(),Em(),Dm(),Om(),km(),Am(),jm(),Mm(),Nm(),Pm(),Fm(),Im(),Lm(),Rm(),zm(),Bm(),Vm(),Hm(),Um(),Wm(),Gm(),Km(),qm(),Xm(),Zm(),Qm(),$m(),eh(),th(),ih(),ah(),sh(),ch(),lh(),ph(),mh(),hh(),gh(),yh(),wh(),Th(),Eh(),Dh(),Oh(),kh(),Ah(),jh(),t.exports=Fe()})),Nh=o(((e,t)=>{t.exports=Mh()})),Ph=o(((e,t)=>{var n=`2.0.0`,r=256;t.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:r-6,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),Fh=o(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Ih=o(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Ph(),a=Fh();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Lh=o(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Rh=o(((e,t)=>{var n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),zh=o(((e,t)=>{var n=Fh(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Ph(),{safeRe:a,t:o}=Ih(),s=Lh(),{compareIdentifiers:c}=Rh();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Bh=o(((e,t)=>{var n=zh();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Vh=o(((e,t)=>{var n=Bh();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Hh=o(((e,t)=>{var n=Bh();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Uh=o(((e,t)=>{var n=zh();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Wh=o(((e,t)=>{var n=Bh();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Gh=o(((e,t)=>{var n=zh();t.exports=(e,t)=>new n(e,t).major})),Kh=o(((e,t)=>{var n=zh();t.exports=(e,t)=>new n(e,t).minor})),qh=o(((e,t)=>{var n=zh();t.exports=(e,t)=>new n(e,t).patch})),Jh=o(((e,t)=>{var n=Bh();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Yh=o(((e,t)=>{var n=zh();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Xh=o(((e,t)=>{var n=Yh();t.exports=(e,t,r)=>n(t,e,r)})),Zh=o(((e,t)=>{var n=Yh();t.exports=(e,t)=>n(e,t,!0)})),Qh=o(((e,t)=>{var n=zh();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),$h=o(((e,t)=>{var n=Qh();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),eg=o(((e,t)=>{var n=Qh();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),tg=o(((e,t)=>{var n=Yh();t.exports=(e,t,r)=>n(e,t,r)>0})),ng=o(((e,t)=>{var n=Yh();t.exports=(e,t,r)=>n(e,t,r)<0})),rg=o(((e,t)=>{var n=Yh();t.exports=(e,t,r)=>n(e,t,r)===0})),ig=o(((e,t)=>{var n=Yh();t.exports=(e,t,r)=>n(e,t,r)!==0})),ag=o(((e,t)=>{var n=Yh();t.exports=(e,t,r)=>n(e,t,r)>=0})),og=o(((e,t)=>{var n=Yh();t.exports=(e,t,r)=>n(e,t,r)<=0})),sg=o(((e,t)=>{var n=rg(),r=ig(),i=tg(),a=ag(),o=ng(),s=og();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),cg=o(((e,t)=>{var n=zh(),r=Bh(),{safeRe:i,t:a}=Ih();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),lg=o(((e,t)=>{var n=Bh(),r=Ph(),i=zh(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),ug=o(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),dg=o(((e,t)=>{var n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,O(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>v(e,this.options)).join(` `).split(/\s+/).map(e=>D(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let _=new Map,y=g.map(e=>new a(e,this.options));for(let e of y){if(h(e))return[e];_.set(e.value,e)}_.size>1&&_.has(``)&&_.delete(``);let b=[..._.values()];return r.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>_(e,n)&&t.set.some(t=>_(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,g=e=>e.value===``,_=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=S(e,t),o(`caret`,e),e=b(e,t),o(`tildes`,e),e=w(e,t),o(`xrange`,e),e=E(e,t),o(`stars`,e),e),y=e=>!e||e.toLowerCase()===`x`||e===`*`,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(` `),x=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return y(n)?s=``:y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return y(n)?c=``:y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},w=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>T(e,t)).join(` `)),T=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=y(i),u=l||y(a),d=u||y(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},E=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),D=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),O=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=y(r)?``:y(i)?`>=${r}.0.0${e?`-0`:``}`:y(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=y(l)?``:y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),k=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),fg=o(((e,t)=>{var n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=Lh(),{safeRe:i,t:a}=Ih(),o=sg(),s=Fh(),c=zh(),l=dg()})),pg=o(((e,t)=>{var n=dg();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),mg=o(((e,t)=>{var n=dg();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),hg=o(((e,t)=>{var n=zh(),r=dg();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),gg=o(((e,t)=>{var n=zh(),r=dg();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),_g=o(((e,t)=>{var n=zh(),r=dg(),i=tg();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),vg=o(((e,t)=>{var n=dg();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),yg=o(((e,t)=>{var n=zh(),r=fg(),{ANY:i}=r,a=dg(),o=pg(),s=tg(),c=ng(),l=og(),u=ag();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),bg=o(((e,t)=>{var n=yg();t.exports=(e,t,r)=>n(e,t,`>`,r)})),xg=o(((e,t)=>{var n=yg();t.exports=(e,t,r)=>n(e,t,`<`,r)})),Sg=o(((e,t)=>{var n=dg();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),Cg=o(((e,t)=>{var n=pg(),r=Yh();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{var n=dg(),r=fg(),{ANY:i}=r,a=pg(),o=Yh(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),Tg=o(((e,t)=>{var n=Ih(),r=Ph(),i=zh(),a=Rh();t.exports={parse:Bh(),valid:Vh(),clean:Hh(),inc:Uh(),diff:Wh(),major:Gh(),minor:Kh(),patch:qh(),prerelease:Jh(),compare:Yh(),rcompare:Xh(),compareLoose:Zh(),compareBuild:Qh(),sort:$h(),rsort:eg(),gt:tg(),lt:ng(),eq:rg(),neq:ig(),gte:ag(),lte:og(),cmp:sg(),coerce:cg(),truncate:lg(),Comparator:fg(),Range:dg(),satisfies:pg(),toComparators:mg(),maxSatisfying:hg(),minSatisfying:gg(),minVersion:_g(),validRange:vg(),outside:yg(),gtr:bg(),ltr:xg(),intersects:Sg(),simplifyRange:Cg(),subset:wg(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}));Nh();var Eg=l(Tg(),1),Dg=class{#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e={}){this.customFunctions={},this.#i=null,e.beforeOpen&&(this.#n=e.beforeOpen),e.open&&(this.#c=e.open),e.beforeExtract&&(this.#t=e.beforeExtract),e.beforeChange&&(this.#e=e.beforeChange),e.change&&(this.#r=e.change),e.migrate&&(this.#o=e.migrate),e.migrateElement&&(this.#s=e.migrateElement),e.isDisable&&(this.#a=e.isDisable),this.customFunctions=e.customFunctions||{},this.#i=e.data||null}async beforeChange(e,t){this.#e&&await this.#e(e,t)}beforeExtract(e,t){this.#t&&this.#t(e,t)}beforeOpen(e,t,n){this.#n&&this.#n(e,t,n)}async change(e,t){this.#r&&await this.#r(e,t)}fire(e,t,n,r,...i){let a=new $.Event(e);if(e in this.customFunctions)return this.customFunctions[e]?.call(this,a,t,n,r,...i)}getData(e){if(this.#i&&e in this.#i)return this.#i[e]}isDisable(e){return this.#a?this.#a(e):``}migrate(e){return this.#o?this.#o(e):e.export()}async migrateElement(e,t){this.#s&&await this.#s(e,t)}open(e,t){this.#c&&this.#c(e,t)}setData(e,t){this.#i&&e in this.#i&&(this.#i[e]=t)}},Og=class{#e;#t=!1;get node(){return this.#e}constructor(e){if(!e)throw Error(`要素の取得に失敗しました。`);this.#e=e}getNode(){return this.#e}hide(){this.#e.hidden=!0,this.#t=!1}show(){this.#e.hidden=!1,this.#t=!0}visible(){return this.#t}},kg=class extends Og{#e;get hidden(){return!this.visible()}get isHover(){return this.#e}constructor(e){e.dataset.bge=`bgb-menu`,e.innerHTML=` +
+
+ + +
+
+ + + + + +
+
+ `,super(e),this.#e=!1,this.hide();let t=$(this.node);t.on(`click`,`.bgb-menu-insert-before, .bgb-menu-insert-after`,this.#r.bind(this)),t.on(`click`,`.bgb-menu-block-config`,this.#a.bind(this)),t.on(`click`,`.bgb-menu-block-copy`,this.#t.bind(this)),t.on(`click`,`.bgb-menu-delete`,this.#n.bind(this)),t.on(`click`,`.bgb-menu-move-up, .bgb-menu-move-down`,this.#i.bind(this)),t.on(`mouseenter`,()=>this.#e=!0),t.on(`mouseleave`,()=>this.#e=!1)}setPosition(e){this.node.style.top=`${e.top}px`,this.node.style.left=`${e.left}px`,this.node.style.width=`${e.width}px`}#t(){let e=R_.getCurrentBlock();if(B_.isProcessed||!e)return;if(e.name===`unknown`){alert(`このブロックをコピーするには、ブロックのアップデートが必要です。 +ブロックをアップロードしてください。`);return}this.hide();let t=e.getHTMLStringify();this.show(),av(t),$(` +
+

ブロックの追加ボタンからペースト(貼り付ける)ことができます。

+
+ `).dialog({show:{effect:`fade`,duration:300},hide:{effect:`fade`,duration:300},width:260,height:130,resizable:!1,open:e=>{setTimeout(()=>{e.target&&$(e.target).dialog(`close`)},3e3)}})}async#n(){let e=R_.getCurrentBlock();B_.isProcessed||!e||confirm(`ブロック要素を削除します。 +削除したブロック要素はもとに戻すことはできません。 +削除してもよろしいですか?`)&&(B_.isProcessed=!0,V_.blockMenu.hide(),await e.animate({height:0,opacity:0},500),R_.clearCurrentBlock(),e.remove(),iv(),B_.isProcessed=!1)}#r(e){let t=R_.getCurrentBlock();if(t){let n=$(e.target).hasClass(`bgb-menu-insert-after`);X_.set(t,n),H_.open()}}#i(e){let t=R_.getCurrentBlock();if(B_.isProcessed||!t)return;let n=$(e.target),r=$(t.node),i=n.hasClass(`bgb-menu-move-up`),a;a=i?r.prev():r.next();let o={visibility:`hidden`,pointerEvents:`none`};B_.isProcessed=!0,this.hide(),r.add(a).addClass(`-bge-animation-replacement`),$(`.bge-view-value`).css(`position`,`relative`);let s=r.position(),c=a.position();i?r.insertBefore(a):r.insertAfter(a);let l=a.position(),u=r.position(),d=$(`
`),f=$(`
`);d.append(r.clone()).css(o),f.append(a.clone()).css(o),d.insertAfter(r),f.insertAfter(a),r.css({position:`absolute`,top:s.top,left:s.left,zIndex:1}),a.css({position:`absolute`,top:c.top,left:c.left,zIndex:0}),r.animate({top:u.top,left:u.left},600),a.animate({top:l.top,left:l.left},600,()=>{d.remove(),f.remove(),r.removeAttr(`style`),a.removeAttr(`style`),r.add(a).removeClass(`-bge-animation-replacement`),B_.isProcessed=!1,iv()})}#a(){B_.isProcessed||U_.open()}hide(){super.hide(),$(this.getNode()).find(`.bgb-menu-move-up, .bgb-menu-move-down`).prop(`disabled`,!1)}show(){super.show();let e=$(this.getNode()),t=R_.getCurrentBlock();t&&!t.existPrev()&&e.find(`.bgb-menu-move-up`).prop(`disabled`,!0),t&&!t.existNext()&&e.find(`.bgb-menu-move-down`).prop(`disabled`,!0)}},Ag=class e{constructor(t,n){this.classList=[],this.currentClass=null,this.optionName=t;for(let r of Object.keys(n)){let i=r;if(!(!i||!n[i])){if(i.indexOf(e.classPrefix)!==0){console.warn(`Invalid Error: "${t}" オプションは "${e.classPrefix}" で開始される必要があります。 "${i}" は無効化されました。`);break}this.classList.push({label:n[i]??`N/A`,className:i})}}}getClass(){return this.currentClass}setClass(e){for(let t of this.classList)if(t.className===e){this.currentClass=t;return}console.warn(`"${e}" というクラス名は オプション "${this.optionName}" には設定できませんでした。`)}static{this.classPrefix=`bgb-opt--`}static getOption(t){let n=null;if(z_.blockClassOption)for(let r of Object.keys(z_.blockClassOption)){let i=z_.blockClassOption[r];if(i)for(let a of Object.keys(i)){let i=z_.blockClassOption[r];if(a===t&&i){n=new e(r,i),n.setClass(t);break}}}return n}};function jg(e,t=!1,n=`field`,r){let i=[],a=e.getAttribute(`data-${n}`),o=!!e.closest(`[data-${n}-list]`);if(a==null)throw Error(`data-${n} attriblute is empty.`);let s=`${a}`.split(/\s*,\s*/);for(let n of s){let a,s=``,c;if(n=n.trim(),/^[_a-z-][\w-]*:[_a-z-][\w-]*(?:\([a-z-]+\))?/i.test(n)&&(a=n.split(`:`),n=a[0]?.trim()??``,s=a[1]?.trim()??``),s===`text`)c=e.innerHTML;else if(/^style\([a-z-]+\)$/i.test(s)){let t=s.replace(/^style\(([a-z-]+)\)$/i,`$1`),n;n=e instanceof HTMLElement?e.style:window.getComputedStyle(e),c=n.getPropertyValue(t),t===`background-image`&&(c=Pg(c))}else if(s)c=Mg(e,s,t);else if(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){let t=e.value;c=Ng(Array.isArray(t)?t[0]:t)}else c=e.innerHTML;r&&(c=r(c)),i.push([n,c,o])}return i}function Mg(e,t,n){switch(t){case`contenteditable`:return e instanceof HTMLElement?e.contentEditable===``||e.contentEditable===`true`:e.getAttribute(t)===``||e.getAttribute(t)===`true`;case`checked`:return e.checked;case`disabled`:return e.disabled;case`download`:return e.hasAttribute(`download`)?e.getAttribute(`download`):null;case`href`:return e.getAttribute(t)||``;default:if(t.startsWith(`data-`)){let r=e.getAttribute(t)||``;return n?Ng(r):r}return e.getAttribute(t)||``}}function Ng(e){if(e==null||e===``)return``;switch(e){case`true`:return!0;case`false`:return!1}let t=Number(e);return Number.isFinite(t)?t:e}function Pg(e){let t=`${location.protocol}//${location.hostname}${location.port?`:${location.port}`:``}`;return decodeURI(e.replace(/^url\(["']?([^"']+)["']?\)$/i,`$1`).replace(t,``))}function Fg(e){let t={};for(let n of e){let e=n[0],r=n[1];if(n[2]){let n=t[e];Array.isArray(n)?n.push(r):t[e]=e in t?[n,r]:[r]}else t[e]=r}return t}function Ig(e,t,n,r){let i=Array.from(e.querySelectorAll(`[data-${t}]`)),a=[];for(let e of i)a=[...a,...jg(e,n,t,r)];return Fg(a)}function Lg(e,t,n,r=`field`,i){let a=e.getAttribute(`data-${r}`)||``;for(let r of a.split(/\s*,\s*/)){r=r.trim();let a,o;if(/^[_a-z-][\w-]*:[_a-z-][\w-]*(?:\([a-z-]+\))?/i.test(r)){let e=r.split(`:`);a=e[0]?.trim()??``,o=e[1]?.trim()??``}else a=r.trim(),o=null;if(t===a)if(i&&(n=i(n)),o)if(/^style\([a-z-]+\)$/i.test(o)){let t=o.replace(/^style\(([a-z-]+)\)$/i,`$1`),r;switch(t){case`background-image`:r=`url(${encodeURI(`${n}`)})`;break;default:r=`${n}`}e.setAttribute(`style`,`${t}: ${r}`)}else e instanceof HTMLElement?Rg(e,o,n):e.setAttribute(o,`${n}`);else e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.value=`${n}`:e.innerHTML=`${n}`}}function Rg(e,t,n){if(n==null){e.removeAttribute(t);return}switch(t){case`contenteditable`:switch(n){case`true`:case``:e.contentEditable=`true`;break;default:e.removeAttribute(t)}break;case`dir`:switch(n){case`ltr`:case`rtl`:e.dir=n;break;default:e.removeAttribute(t)}break;case`draggable`:if(typeof n==`boolean`){e.draggable=n;break}switch(n){case`true`:e.draggable=!0;break;case`false`:e.draggable=!1;break;default:e.removeAttribute(t)}break;case`hidden`:e.hidden=!!n;break;case`spellcheck`:e.spellcheck=!!n;break;case`tabindex`:{let t;t=typeof n==`boolean`?n?0:-1:typeof n==`string`?Number.parseInt(n,10):n,e.tabIndex=Number.isNaN(t)?-1:Math.floor(t);break}case`async`:e instanceof HTMLScriptElement?e.async=!!n:e.setAttribute(t,`${n}`);break;case`autocomplete`:e instanceof HTMLInputElement||e instanceof HTMLFormElement?e.autocomplete=n?`${n}`:`off`:e.setAttribute(t,`${n}`);break;case`autofocus`:e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.autofocus=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`autoplay`:e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?e.autoplay=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`checked`:e instanceof HTMLInputElement?e.checked=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`cols`:if(e instanceof HTMLTextAreaElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.cols=r}else e.setAttribute(t,`${n}`);break;case`colspan`:if(e instanceof HTMLTableCellElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.colSpan=r}else e.setAttribute(t,`${n}`);break;case`controls`:e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?e.controls=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`default`:e instanceof HTMLTrackElement?e.default=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`defer`:e instanceof HTMLScriptElement?e.defer=!!n:e.setAttribute(t,`${n}`);break;case`disabled`:e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLInputElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.disabled=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`download`:e instanceof HTMLAnchorElement?n||n===``?e.download=`${n}`:e.removeAttribute(t):e.setAttribute(t,`${n}`);break;case`high`:if(e instanceof HTMLMeterElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.high=r}else e.setAttribute(t,`${n}`);break;case`ismap`:e instanceof HTMLImageElement?e.isMap=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`loop`:e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?e.loop=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`low`:if(e instanceof HTMLMeterElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.low=r}else e.setAttribute(t,`${n}`);break;case`max`:if(e instanceof HTMLInputElement||e instanceof HTMLMeterElement||e instanceof HTMLProgressElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.max=r}else e.setAttribute(t,`${n}`);break;case`maxlength`:if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.maxLength=Math.floor(r)}else e.setAttribute(t,`${n}`);break;case`min`:if(e instanceof HTMLInputElement||e instanceof HTMLMeterElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.min=r}else e.setAttribute(t,`${n}`);break;case`multiple`:e instanceof HTMLInputElement||e instanceof HTMLSelectElement?e.multiple=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`novalidate`:e instanceof HTMLFormElement?e.noValidate=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`optimum`:if(e instanceof HTMLMeterElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.optimum=Math.floor(r)}else e.setAttribute(t,`${n}`);break;case`preload`:if(e instanceof HTMLAudioElement||e instanceof HTMLVideoElement)switch(n){case``:case`auto`:case`metadata`:e.preload=n;break;default:e.preload=`none`}else e.setAttribute(t,`${n}`);break;case`readonly`:e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e.readOnly=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`required`:e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.required=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`reversed`:e instanceof HTMLOListElement?e.reversed=n===``?!0:!!n:e.setAttribute(t,`${n}`);break;case`rows`:if(e instanceof HTMLTextAreaElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.rows=Math.floor(r)}else e.setAttribute(t,`${n}`);break;case`rowspan`:if(e instanceof HTMLTableCellElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.rowSpan=Math.floor(r)}else e.setAttribute(t,`${n}`);break;case`size`:if(e instanceof HTMLInputElement||e instanceof HTMLSelectElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.size=r}else e.setAttribute(t,`${n}`);break;case`span`:if(e instanceof HTMLTableColElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.span=r}else e.setAttribute(t,`${n}`);break;case`start`:if(e instanceof HTMLOListElement){let r=Bg(n);Number.isNaN(r)?e.removeAttribute(t):e.start=r}else e.setAttribute(t,`${n}`);break;case`step`:if(e instanceof HTMLInputElement){if(n===`any`){e.step=n;break}let r=zg(n);Number.isNaN(r)?e.removeAttribute(t):e.step=r.toString(10)}else e.setAttribute(t,`${n}`);break;case`target`:e instanceof HTMLAnchorElement||e instanceof HTMLAreaElement||e instanceof HTMLFormElement?n?e.target=`${n}`:e.removeAttribute(t):e.setAttribute(t,`${n}`);break;default:e.setAttribute(t,`${n}`)}}function zg(e){let t;return t=typeof e==`boolean`?+e:typeof e==`string`?Number.parseFloat(e):e,t}function Bg(e){return Math.floor(zg(e))}function Vg(e,t,n,r){e=e.cloneNode(!0);for(let i in t)if(i in t){let a=t[i],o=`[data-${n}*="${i}"]`,s=Array.from(e.querySelectorAll(o));if(Array.isArray(a)){let e=s[0];if(!e)continue;let t=e.closest(`[data-${n}-list]`);if(!t||t&&t.children.length===0)continue;let c=t.children[0]?.cloneNode(!0);for(;c&&a.length>t.children.length;)t.append(c.cloneNode(!0));let l=Array.from(t.querySelectorAll(o)),u=Array.from(t.children),d=[];for(let[e,t]of[...l].entries())if(a[e]==null){Lg(t,i,``,n,r);let a=u[e];a&&d.push(a)}else Lg(t,i,a[e],n,r),d=[];for(let e of d)e.remove()}else for(let[,e]of[...s].entries())Lg(e,i,a,n,r)}return e}var Hg=class{#e=`field`;#t;#n;#r=!1;constructor(e,t){this.#t=document.createElement(`fp-placeholer`),this.#t.innerHTML=e,t&&(t.attr&&(this.#e=t.attr),this.#r=!!t.typeConvert,this.#n=t.valueFilter)}merge(e){let t=this.toJSON(!1),n=Object.assign(t,e);return this.#t=Vg(this.#t,n,this.#e,this.#n),this}toDOM(){return this.#t}toHTML(){return this.#t.innerHTML}toJSON(e=!0){let t=e?this.#n:void 0;return Ig(this.#t,this.#e,this.#r,t)}};function Ug(e,t){return new Hg(e,t)}function Wg(e,t){for(let[n,r]of Object.entries(t))r&&(e=e.replace(new RegExp(n,`g`),r));return e}function Gg(e,t=!1){return t?e=Wg(e,{゛:`゙`,゙:`゙`,゜:`゚`,゚:`゚`}):(e=Gg(e,!0),e=Wg(e,{が:`が`,ぎ:`ぎ`,ぐ:`ぐ`,げ:`げ`,ご:`ご`,ざ:`ざ`,じ:`じ`,ず:`ず`,ぜ:`ぜ`,ぞ:`ぞ`,だ:`だ`,ぢ:`ぢ`,づ:`づ`,で:`で`,ど:`ど`,ば:`ば`,び:`び`,ぶ:`ぶ`,べ:`べ`,ぼ:`ぼ`,ガ:`ガ`,ギ:`ギ`,グ:`グ`,ゲ:`ゲ`,ゴ:`ゴ`,ザ:`ザ`,ジ:`ジ`,ズ:`ズ`,ゼ:`ゼ`,ゾ:`ゾ`,ダ:`ダ`,ヂ:`ヂ`,ヅ:`ヅ`,デ:`デ`,ド:`ド`,バ:`バ`,ビ:`ビ`,ブ:`ブ`,ベ:`ベ`,ボ:`ボ`,ヷ:`ヷ`,イ゙:`ヸ`,ヴ:`ヴ`,エ゙:`ヹ`,ヺ゙:`ヲ`,ゞ:`ゞ`,ヾ:`ヾ`,ぱ:`ぱ`,ぴ:`ぴ`,ぷ:`ぷ`,ぺ:`ぺ`,ぽ:`ぽ`,パ:`パ`,ピ:`ピ`,プ:`プ`,ペ:`ペ`,ポ:`ポ`})),e}var Kg=new WeakMap,qg=new WeakMap,Jg=class e{#e=!1;#t;get el(){return qg.get(this)}get version(){return this.#t}get isOld(){return this.#e}constructor(e,t){let n;n=typeof e==`string`?$(e).get(0):e,Kg.set(n,this),qg.set(this,n);let r=n.dataset.bgt;r||(r=`unknown`,n.dataset.bgt=r),this.name=r;let i=n.dataset.bgtVer;i||(i=`0.0.0`,n.dataset.bgtVer=i),this.#t=i;let a=z_.types?.[this.name]?.version??`0.0.0`;if(this.#e=sv.lt(this.#t,a),this.module=K_[$.camelCase(`-${this.name}`)],t){this.import(t).then(()=>{this.#n()});return}this.#n()}export(){return e.contentExport(this.el)}async import(t,n=!1){this.module&&n&&await this.module.beforeChange(t,this);let r=Ug(this.el.innerHTML,{attr:`bge`,typeConvert:!0,valueFilter:t=>typeof t==`string`?e.ioFilter(t):t}).merge(t).toHTML();this.el.innerHTML=r,this.#e&&this.module&&await this.module.migrateElement(t,this),this.module&&n&&await this.module.change(t,this),this.#n()}isDisable(){return this.module?this.module.isDisable(this):``}async upgrade(){if(!this.#e)return;let t=z_.types?.[this.name]?.tmpl;if(!t)return;let n=$(t).get(0),r=n.dataset.bgtVer,i=K_[$.camelCase(`-${this.name}`)],a=i?i.migrate(this):this.export(),o=e.contentExport(n),s=Object.assign({},o,a);this.el.innerHTML=n.innerHTML,this.el.dataset.bgtVer=r,await this.import(s),this.#t=r,this.#e=!1}validate(e){let t=[];for(let n of Object.keys(e)){let r=e[n];$(`
${r}
`).find(`.btn, .allbtn`).length>0&&t.push(`値の中にクラス名"btn"もしくは"allbtn"を含むHTMLがあります。 +クラス名"btn"・"allbtn"は使用できません。`)}return t.join(` + +`)}#n(){let e=$(this.el);e.off(`click`),e.on(`click`,()=>(this.#r(),!1))}#r(){W_.open(this)}static getInstance(e){return Kg.get(e)}static contentExport(t){return Ug(t.outerHTML,{attr:`bge`,typeConvert:!0,valueFilter:t=>typeof t==`string`?e.ioFilter(t):t}).toJSON()}static ioFilter(e){if(e=Gg(e),e.trim().startsWith(`<`)){let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelectorAll(`*`);for(let e of n){let t=e.attributes;for(let n=0,r=t.length;ntypeof t==`string`?e.ioFilter(t):t)}},Yg=new WeakMap,Xg=0,Q=class e{#e;#t;#n;#r;#i;#a;#o;#s;#c;get#l(){return $(this.node)}get id(){return this.#n}get name(){return this.#r}get node(){return Yg.get(this)}constructor(t){if(this.types=[],this.#e=[],this.#t={normalRatio:null,spRatio:null,spEnabled:!1},this.#n=``,this.#i=[],this.#a=0,this.#o={publishDatetime:null,unpublishDatetime:null},this.#s=0,this.#c=Xg++,typeof t==`string`){this.#r=t;let n=e.#D(this.#r);n&&Yg.set(this,n)}else if(t){let e=t;Yg.set(this,e),this.#r=`${this.#l.data(`bgb`)}`}else throw Error(`Do not create BurgerBlock. A base element is empty.`);this.#l.find(`[data-bgt]`).each((e,t)=>{let n=new Jg(t);this.types.push(n)}),this.#x(),this.#y(),this.#v(),this.#b(),this.exportScheduledPublishing(),this.#E(),this.#l.on(`mousemove`,()=>{R_.setCurrentBlock(this)&&(cancelAnimationFrame(this.#a),this.#a=requestAnimationFrame(()=>{if(!R_.isSetBlock())return;V_.blockMenu.show();let e=this.node.getBoundingClientRect();V_.blockMenu.setPosition(e)}))}),this.#l.on(`mouseleave`,()=>{requestAnimationFrame(()=>{V_.blockMenu.isHover||(V_.blockMenu.hide(),R_.clearCurrentBlock())})})}animate(e,t){return new Promise(n=>{this.#l.animate(e,t,n)})}clone(){let t=this.#_(),n=new e(this.#r);return n.#S(t),n}existNext(){return this.#l.next().length>0}existPrev(){return this.#l.prev().length>0}exportCustomClassList(){return this.#v(),this.#e}exportGridInfo(){return this.#y(),this.#t}exportId(){return this.#b(),this.#n}exportOptions(){return this.#x(),this.#i}exportScheduledPublishing(){let e=this.#l.attr(`data-bgb-publish-datetime`)||null,t=this.#l.attr(`data-bgb-unpublish-datetime`)||null;return this.#o={publishDatetime:e,unpublishDatetime:t},this.#o}getHTMLStringify(){return this.node.outerHTML}importCustomClassList(e){this.#e=e,this.#u()}importGridInfo(e){this.#t=e,this.#p(),this.#m()}importId(e){this.#n=e,this.#T()}importJSONString(e){let t=JSON.parse(e);try{this.#S(t)}catch(e){throw Error(`ImportError: ${e instanceof Error?e.message:e}`)}}importOptions(e){this.#i=e,this.#d()}importScheduledPublishing(e){this.#o=e,e.publishDatetime?this.#l.attr(`data-bgb-publish-datetime`,e.publishDatetime):this.#l.removeAttr(`data-bgb-publish-datetime`),e.unpublishDatetime?this.#l.attr(`data-bgb-unpublish-datetime`,e.unpublishDatetime):this.#l.removeAttr(`data-bgb-unpublish-datetime`),this.#E()}importTypes(e){for(let[t,n]of this.types.entries())n.import(e(t,n))}is(e){return this.#c===e.#c}isDisable(){let e=``;for(let t of this.types)if(e=t.isDisable(),e)break;return e}remove(){this.#l.off(),this.#l.remove()}toJSONStringify(e){return JSON.stringify(this.#_(),null,e)}#u(){this.#C();let t=[];for(let n of this.#e)n&&!e.NG_CUSTOM_CLASS_LIST.includes(n)?t.push(n):alert(`"${n}" というクラス名は使用できません。`);this.#l.addClass(t.join(` `))}#d(){this.#w();let e=[];for(let t of this.#i)t.currentClass&&e.push(t.currentClass.className);this.#l.addClass(e.join(` `))}#f(e){let t=e?`sp-`:``,n=this.#l.find(`[data-bge-grid-changeable]`),r=n.first(),i=n.last(),a=RegExp(`(bgt-${t}grid(?:1[0-2]*|[1-9]))`,`g`),o=(r.attr(`class`)||``).match(a)||[],s=(i.attr(`class`)||``).match(a)||[];if(r.removeClass(o.join(` `)),i.removeClass(s.join(` `)),e&&!this.#t.spEnabled)return;let c=e?this.#t.spRatio:this.#t.normalRatio;if(c){let e=12-c;if(n.length===1){let n=[`left`,`inline-start`,`start`].includes(r.css(`cssFloat`))?c:e;r.addClass(`bgt-${t}grid${n}`)}else n.length>1&&(r.addClass(`bgt-${t}grid${c}`),i.addClass(`bgt-${t}grid${e}`))}}#p(){this.#f(!1)}#m(){this.#f(!0)}#h(){window.clearInterval(this.#s)}#g(){let e=`data-bgb-publish-datetime-range`,t=this.#o.publishDatetime,n=this.#o.unpublishDatetime;if(t==null&&n==null){this.#l.removeAttr(e);return}let r=!1,i=Date.now();t&&ie.export()),options:this.exportOptions(),customClassList:this.exportCustomClassList(),gridInfo:this.exportGridInfo()}}#v(){this.#e=e.extractCustomClass(this.node)}#y(){this.#t=e.extractGridRatio(this.node)}#b(){this.#n=e.extractId(this.node)}#x(){this.#i=e.extractOptions(this.node)}#S(e){for(let[t,n]of e.typeData.entries())this.types[t]?.import(n);this.importOptions(e.options),this.importCustomClassList(e.customClassList),this.importGridInfo(e.gridInfo)}#C(){let e=(this.#l.attr(`class`)||``).split(/\s+/).filter(e=>e.indexOf(`bgb-`)===0);this.#l.attr(`class`,e.join(` `))}#w(){let e=(this.#l.attr(`class`)||``).split(/\s+/).filter(e=>e.indexOf(`bgb-opt--`)!==0);this.#l.attr(`class`,e.join(` `))}#T(){this.#l.attr(`id`,this.#n)}#E(){this.#h(),this.#g(),this.#s=window.setInterval(this.#g.bind(this),1e3*30)}static{this.NG_CUSTOM_CLASS_LIST=[`btn`,`allbtn`]}static extractOptions(e){let t=($(e).attr(`class`)||``).split(/\s+/),n=[];for(let e of t){if(!e||e.indexOf(`bgb-opt--`)!==0&&e.indexOf(`bgb-`)===0)continue;let t=Ag.getOption(e);t&&n.push(t)}return n}static extractCustomClass(e){let t=($(e).attr(`class`)||``).split(/\s+/),n=[];for(let e of t)!e||e.indexOf(`bgb-opt--`)!==0&&e.indexOf(`bgb-`)===0||Ag.getOption(e)||n.push(e);return n}static extractGridRatio(e){let t=$(e),n=t.find(`[data-bge-grid-changeable]`),r={spEnabled:!1,spRatio:6,normalRatio:6};for(let e of[!0,!1])if(n.length>0){let i=e?`sp-`:``,a=+(((n.attr(`class`)||``).match(RegExp(`bgt-${i}grid(1[0-2]*|[1-9])`))||[])[1]||0),o=!!a;if(n.length===1){let e=t.closest(`body`).length>0;e||t.insertAfter(V_.containerElement),[`right`,`inline-end`,`end`].includes(n.css(`cssFloat`))&&(a=12-a),e||t.detach()}e?(r.spEnabled=o,o&&(r.spRatio=a)):r.normalRatio=a}return r}static extractId(e){return e.id}static createUnknownBlock(t){let n=new e(`wysiwyg`);return n.types[0]?.import({ckeditor:t}),n.#l.attr(`data-bgb`,`unknown`),n.#r=`unknown`,n}static#D(e){let t=Y_.find(`[data-bgb="${e}"]`);if(t.length===0)throw Error(`Do not get BurgerBlock template. "${e}" block is not exist.`);return t.clone()[0]}},Zg=class extends Og{constructor(){super(document.createElement(`div`)),this.node.classList.add(`nodata-button`),this.node.dataset.bge=`initial-insertion`,this.node.innerHTML=``;let e=this.node.querySelector(`button`);e&&e.addEventListener(`click`,this.#e.bind(this))}#e(){B_.isProcessed||(this.hide(),X_.initSet(),H_.open())}},Qg=class e{static get origin(){return`${location.protocol}//${location.hostname}${location.port?`:`+location.port:``}`}static nl2br(e){return`${e}`.replaceAll(/\r\n|\n\r|\r|\n/g,`
`)}static br2nl(e){return`${e}`.replaceAll(/<\s*br\s*\/?>/g,`\r +`)}static formatByteSize(e,t=2,n=!0){let r=e,i=0,a=[`byte`,`kB`,`MB`,`GB`,`TB`,`PB`,`EB`];if(n){for(;r>1024;)r/=1024,i+=1;return i===0&&(t=0),r.toFixed(t)+a[i]}else return e+a[0]}static parseYTId(e){let t=``;if(!e)return t;let n=e.match(/(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/user\/\S+|\/ytscreeningroom\?v=))([\w-]{10,12})\b/);return t=n?n[1]??``:e,t}static getDialogSize(e,t,n=50){let r;switch(t){case`width`:r=window.document.documentElement?window.document.documentElement.clientWidth:0;break;case`height`:r=window.document.documentElement?window.document.documentElement.clientHeight:0;break;default:return 0}return Math.min(r-n,e)}static isValidAsClassName(e){return/^-?[_a-z][\w-]*$/i.test(e)}static getBackgroundImagePath(t){return decodeURI(t.replace(/^url\(["']?([^"']+)["']?\)$/i,`$1`).replace(e.origin,``))}static dataOptimize(e){return Fg(e.map(e=>[e.key,e.datum,e.isArray]))}static base64encode(e){let t=new TextEncoder().encode(e);return btoa(String.fromCodePoint(...t))}static base64decode(e){let t=Uint8Array.from(atob(e),e=>e.codePointAt(0));return new TextDecoder().decode(t)}},$g=class e{static autoMigration(e){let t=$(e);t.find(`[data-bgt="download-file"] [data-bge="url:href"]`).each((e,t)=>{$(t).attr(`data-bge`,`path:href`)}),t.find([`[data-bgt="image"]`,`[data-bgt="image-link"]`,`[data-bgt="trimmed-image"]`,`[data-bgt="trimmed-image-link"]`].join(`,`)).each((e,t)=>{let n=$(t),r=n.find(`[data-bge="popup"]`);if(r.length>0){let e=Jg.contentExport(t),i=e.path,a=e.path,o=n.find(`>div`);o.attr(`data-bge-popup`,a?`1`:`0`),o.attr(`data-bge-empty`,/bg-noimage\.gif$/.test(i)?`1`:`0`),o.attr(`data-bge`,`popup:data-bge-popup, empty:data-bge-empty`),r.remove(),n.attr(`data-bgt-ver`,`v2.5.0`)}}),t.find(`[data-bgt="button"] a[role]`).each((e,t)=>{$(t).removeAttr(`role`)}),t.find(`[data-bgt="table"] table[summary]`).each((e,t)=>{$(t).removeAttr(`summary`)})}static check(t){let n=$(t);e.autoMigration(t);let r=0;for(let e of n.find(`[data-bgt]`).toArray()){let t=Jg.getInstance(e);t&&t.isOld&&(console.log(`Old Block: ${t.name}`),r++)}let i=!!r,a=n.find(`> :not([data-bgb]), > *[data-bgb="unknown"]`).length,o=!!a;console.info(`Old Blocks: ${r}, Unknown Blocks: ${a}`);let s=$(`#ValueMigrationMessage`).hide();if(s.empty(),o||i){s.show(),s.append(`

BurgerEditorで作成されていないコンテンツが含まれているか、
古いバージョンのブロックが使われています

`),s.append(`

ブロックをアップデートしますか?

`);let n=$(``);n.appendTo(s),n.on(`click`,async()=>(n.html(`アップデート中...`),n.prop(`disabled`,!0),await e.migration(t),iv(),!1))}}static async migration(e){let t=$(e);for(let t of e.querySelectorAll(`[data-bgt]`)){let e=Jg.getInstance(t);if(!e)throw Error(`data-bgt属性を持っていますが、BurgerTypeインスタンスに紐付けられていません。`);await e.upgrade()}t.find(`[data-bgb="unknown"]`).each(function(){let e=$(this),t=e.find(`.bgb-container, .bg-editor-block-container, .cb-editor-block-container`);if(t.hasClass(`DownloadFile`)){let n=new Q(`download-file`),r,i=e.find(`[data-type-version]`).attr(`data-type-version`)||``;if(e.find(`[data-bge]`).length>0&&sv.gte(i,`2.0.0`))r=Jg.contentExport(e.get(0));else{let t=e.find(`.bge-download-file-url`).val()||``;r={name:e.find(`.bge-download-file-name, .cbe-download-file-name`).html(),path:Array.isArray(t)?t[0]:t,size:0,"formated-size":`0kB`}}n.types[0]?.import(r),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`GoogleMaps`)||t.hasClass(`GoogleMap`)){let n=new Q(`google-maps`),r,i=e.find(`[data-type-version]`).attr(`data-type-version`)||``;if(e.find(`[data-bge]`).length>0&&sv.gte(i,`2.10.0`))r=Jg.contentExport(e.get(0));else{let t=Number.parseFloat(e.find(`.bge-lat, .cbe-lat`).val()),n=Number.parseFloat(e.find(`.bge-lng, .cbe-lng`).val());r={lat:t,lng:n,zoom:e.find(`.bge-zoom, .cbe-zoom`).val(),url:`//maps.apple.com/?q=${t},${n}`}}n.types[0]?.import(r),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}let n=(e,n)=>{let r=$(n),i,a=r.find(`[data-type-version]`).attr(`data-type-version`)||``;return i=r.find(`[data-bge]`).length>0&&sv.gte(a,`2.0.0`)?Jg.contentExport(r.get(0)):t.hasClass(`cb-editor-type`)?{path:r.find(`.cbe-image-link-url`).val().replace(`cbeditor`,`bgeditor`).replace(`cb-noimage.gif`,`bg-noimage.gif`).replace(`cb-sample.png`,`bg-sample.png`),link:r.find(`.cbe-image-link-link`).val(),target:r.find(`.cbe-image-link-target`).val()===`1`?`_blank`:``,caption:r.find(`.cbe-image-link-caption`).html(),alt:r.find(`.cbe-image-link-caption`).text()}:{path:r.find(`.bge-image-link-url`).val(),link:r.find(`.bge-image-link-link`).val(),target:r.find(`.bge-image-link-target`).val()===`1`?`_blank`:``,caption:r.find(`.bge-image-link-caption`).html(),alt:r.find(`.bge-image-link-caption`).text()},i};if(t.hasClass(`ImageLink1`)){let r=new Q(`image-link1`);r.importTypes(t=>n(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),r.importOptions(Q.extractOptions(t.get(0))),r.importCustomClassList(Q.extractCustomClass(t.get(0))),r.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(r.node),e.remove()}if(t.hasClass(`ImageLink2`)){let r=new Q(`image-link2`);r.importTypes(t=>n(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),r.importOptions(Q.extractOptions(t.get(0))),r.importCustomClassList(Q.extractCustomClass(t.get(0))),r.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(r.node),e.remove()}if(t.hasClass(`ImageLink3`)){let r=new Q(`image-link3`);r.importTypes(t=>n(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),r.importOptions(Q.extractOptions(t.get(0))),r.importCustomClassList(Q.extractCustomClass(t.get(0))),r.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(r.node),e.remove()}let r=(e,t)=>{let n=$(t),r;return r=n.find(`[data-bge]`).length>0?Jg.contentExport(n.get(0)):{path:n.find(`.bge-image-link-trimmed-url`).val(),link:n.find(`.bge-image-link-trimmed-link`).val(),target:n.find(`.bge-image-link-trimmed-target`).val()===`1`?`_blank`:``,caption:n.find(`.bge-image-link-trimmed-caption`).html(),alt:n.find(`.bge-image-link-trimmed-caption`).text()},r};if(t.hasClass(`SquareImageLink2`)){t.removeClass(`SquareImageLink2`);let n=new Q(`trimmed-image-link2`);n.importTypes(t=>r(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`SquareImageLink3`)){t.removeClass(`SquareImageLink3`);let n=new Q(`trimmed-image-link3`);n.importTypes(t=>r(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}let i=(e,n)=>{let r=$(n),i;return i=r.find(`[data-bge]`).length>0?Jg.contentExport(r.get(0)):t.hasClass(`cb-editor-type`)?{path:r.find(`.cbe-image-url`).val().replace(`cbeditor`,`bgeditor`).replace(`cb-noimage.gif`,`bg-noimage.gif`).replace(`cb-sample.png`,`bg-sample.png`),popup:r.find(`.cbe-image-popup`).val()===`1`,caption:r.find(`.cbe-image-caption`).html(),alt:r.find(`.cbe-image-caption`).text()}:{path:r.find(`.bge-image-url`).val(),popup:r.find(`.bge-image-popup`).val()===`1`,caption:r.find(`.bge-image-caption`).html(),alt:r.find(`.bge-image-caption`).text()},i};if(t.hasClass(`Image1`)){let n=new Q(`image1`);n.importTypes(t=>i(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Image2`)){let n=new Q(`image2`);n.importTypes(t=>i(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Image3`)){let n=new Q(`image3`);n.importTypes(t=>i(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Image4`)){let n=new Q(`image4`);n.importTypes(t=>i(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Image5`)){let n=new Q(`image5`);n.importTypes(t=>i(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}let a=(e,t)=>{let n=$(t),r;return r=n.find(`[data-bge]`).length>0?Jg.contentExport(n.get(0)):{path:n.find(`.bge-image-trimmed-url`).val(),link:n.find(`.bge-image-trimmed-link-link`).val(),target:n.find(`.bge-image-trimmed-link-target`).val()===`1`?`_blank`:``,caption:n.find(`.bge-image-trimmed-caption`).html(),alt:n.find(`.bge-image-trimmed-caption`).text()},r};if(t.hasClass(`SquareImage2`)){t.removeClass(`SquareImage2`);let n=new Q(`trimmed-image2`);n.importTypes(t=>a(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`SquareImage3`)){t.removeClass(`SquareImage3`);let n=new Q(`trimmed-image3`);n.importTypes(t=>a(t,e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Table`)){let n=new Q(`table`),r;if(t.find(`[data-bge]`).length>0)r=Jg.contentExport(e.get(0));else{r={};let t=e.find(`.bge-table-full, .cbe-table-full`).val();$(t).find(`tr`).each((e,t)=>{let n=$(t);r[`th-${e}`]=n.find(`th`).html(),r[`td-${e}`]=n.find(`td`).html()})}n.types[0]?.import(r),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}let o=e=>{let n=$(e),r,i=n.find(`[data-type-version]`).attr(`data-type-version`)||``;return r=n.find(`[data-bge]`).length>0&&sv.gte(i,`2.0.0`)?Jg.contentExport(n.get(0)):t.hasClass(`cb-editor-block-container`)?{path:n.find(`.cbe-image-url`).val().replace(`cbeditor`,`bgeditor`).replace(`cb-noimage.gif`,`bg-noimage.gif`).replace(`cb-sample.png`,`bg-sample.png`),popup:n.find(`.cbe-image-popup`).val()===`1`,caption:n.find(`.cbe-image-caption`).html(),alt:n.find(`.cbe-image-caption`).text(),ckeditor:n.find(`.TypeCKEditor .cbe-ckeditor`).html()}:{path:n.find(`.bge-image-url`).val(),popup:n.find(`.bge-image-popup`).val()===`1`,caption:n.find(`.bge-image-caption`).html(),alt:n.find(`.bge-image-caption`).text(),ckeditor:n.find(`.TypeCKEditor .bge-ckeditor`).html()},r};if(t.hasClass(`TextFloatImage1`)){let n=new Q(`text-float-image1`),{path:r,popup:i,caption:a,alt:s,ckeditor:c}=o(e.get(0));n.types[0]?.import({path:r,popup:i,caption:a,alt:s}),n.types[1]?.import({ckeditor:c}),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`TextFloatImage2`)){let n=new Q(`text-float-image2`),{path:r,popup:i,caption:a,alt:s,ckeditor:c}=o(e.get(0));n.types[0]?.import({path:r,popup:i,caption:a,alt:s}),n.types[1]?.import({ckeditor:c}),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}let s=e=>{let n=$(e),r,i=n.find(`[data-type-version]`).attr(`data-type-version`)||``;return r=n.find(`[data-bge]`).length>0&&sv.gte(i,`2.0.0`)?Jg.contentExport(n.get(0)):t.hasClass(`cb-editor-block-container`)?{path:n.find(`.cbe-image-url`).val().replace(`cbeditor`,`bgeditor`).replace(`cb-noimage.gif`,`bg-noimage.gif`).replace(`cb-sample.png`,`bg-sample.png`),popup:n.find(`.cbe-image-popup`).val()===`1`,caption:n.find(`.cbe-image-caption`).html(),alt:n.find(`.cbe-image-caption`).text(),ckeditor:n.find(`.TypeCKEditor .cbe-ckeditor`).html()}:{path:n.find(`.bge-image-url`).val(),popup:n.find(`.bge-image-popup`).val()===`1`,caption:n.find(`.bge-image-caption`).html(),alt:n.find(`.bge-image-caption`).text(),ckeditor:n.find(`.TypeCKEditor .bge-ckeditor`).html()},r};if(t.hasClass(`TextImage1`)){let n=new Q(`text-image1`),{path:r,popup:i,caption:a,alt:o,ckeditor:c}=s(e.get(0));n.types[0]?.import({ckeditor:c}),n.types[1]?.import({path:r,popup:i,caption:a,alt:o}),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`TextImage2`)){let n=new Q(`text-image2`),{path:r,popup:i,caption:a,alt:o,ckeditor:c}=s(e.get(0));n.types[0]?.import({path:r,popup:i,caption:a,alt:o}),n.types[1]?.import({ckeditor:c}),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`TextImage2`)){let n=new Q(`text-image2`),{path:r,popup:i,caption:a,alt:o,ckeditor:c}=s(e.get(0));n.types[0]?.import({path:r,popup:i,caption:a,alt:o}),n.types[1]?.import({ckeditor:c}),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Image2Text2`)){let n=new Q(`image-text2`);n.importTypes(t=>s(e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Image3Text3`)){let n=new Q(`image-text3`);n.importTypes(t=>s(e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}let c=e=>{let t=$(e),n,r=t.find(`[data-type-version]`).attr(`data-type-version`)||``;return n=t.find(`[data-bge]`).length>0&&sv.gte(r,`2.0.0`)?Jg.contentExport(t.get(0)):{path:t.find(`.bge-image-link-url`).val(),link:t.find(`.bge-image-link-link`).val(),caption:t.find(`.bge-image-link-caption`).html(),alt:t.find(`.bge-image-link-caption`).text(),ckeditor:t.find(`.TypeCKEditor .bge-ckeditor`).html()},n};if(t.hasClass(`ImageLink2Text2`)){let n=new Q(`image-link-text2`);n.importTypes(t=>c(e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`ImageLink3Text3`)){let n=new Q(`image-link-text3`);n.importTypes(t=>c(e.find(`.bg-editor-type, .cb-editor-type, [data-bge-type]`).get(t))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Title`)){let n=new Q(`title`);n.types[0]?.import({"title-h2":e.find(`h2`).html()}),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Title2`)){let n=new Q(`title2`);n.types[0]?.import({"title-h3":e.find(`h3`).html()}),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Wysiwyg`)){let n;n=t.hasClass(`cb-editor-block-container`)?e.find(`.TypeCKEditor .cbe-ckeditor`).html():e.find(`.TypeCKEditor .bge-ckeditor`).html();let r=new Q(`wysiwyg`);r.types[0]?.import({ckeditor:n}),r.importOptions(Q.extractOptions(t.get(0))),r.importCustomClassList(Q.extractCustomClass(t.get(0))),r.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(r.node),e.remove()}if(t.hasClass(`Wysiwyg2`)){let n,r;t.hasClass(`cb-editor-block-container`)?(n=e.find(`.TypeCKEditor .cbe-ckeditor`).eq(0).html(),r=e.find(`.TypeCKEditor .cbe-ckeditor`).eq(1).html()):(n=e.find(`.TypeCKEditor .bge-ckeditor`).eq(0).html(),r=e.find(`.TypeCKEditor .bge-ckeditor`).eq(1).html());let i=new Q(`wysiwyg2`);i.types[0]?.import({ckeditor:n}),i.types[1]?.import({ckeditor:r}),i.importOptions(Q.extractOptions(t.get(0))),i.importCustomClassList(Q.extractCustomClass(t.get(0))),i.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(i.node),e.remove()}if(t.hasClass(`Youtube`)){let n=new Q(`youtube`),r,i=e.find(`[data-type-version]`).attr(`data-type-version`)||``;if(e.find(`[data-bge]`).length>0&&sv.gte(i,`2.0.0`))r=Jg.contentExport(e.get(0));else{let t=e.find(`.bge-youtube-url, .cbe-youtube-url`).val(),n=Qg.parseYTId(t);r={id:n,thumb:`//img.youtube.com/vi/`+n+`/mqdefault.jpg`}}n.types[0]?.import(r),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}if(t.hasClass(`Button`)){let n=new Q(`button`);n.types[0]?.import(Jg.contentExport(e.get(0))),n.importOptions(Q.extractOptions(t.get(0))),n.importCustomClassList(Q.extractCustomClass(t.get(0))),n.importGridInfo(Q.extractGridRatio(t.get(0))),e.after(n.node),e.remove()}}),t.find(`[data-bgb="unknown"]`).each((e,t)=>{let n=$(t),r=n.find(`.bge-ckeditor`).html(),i=new Q(`wysiwyg`);i.types[0]?.import({ckeditor:r}),i.importOptions(Q.extractOptions(n.get(0))),i.importCustomClassList(Q.extractCustomClass(n.get(0))),i.importId(Q.extractId(n.get(0))),i.importGridInfo(Q.extractGridRatio(n.get(0))),n.after(i.node),n.remove()}),$(`#ValueMigrationMessage`).html(`

アップデートに成功しました。

この変更を公開側に反映するには「保存」する必要があります。

`).addClass(`bge-vmm--success`)}},e_=10,t_=`bge-content`,n_=[`bge-contents`,`bge_contents`,`bge_content`],r_=class extends Og{#e;#t;#n;#r=!0;#i;#a;#o;get containerElement(){return this.#e}get isVisualMode(){return this.#r}constructor(e,t,n){if(super(e),!e||!t)throw Error(`コンテンツを保持する要素の取得に失敗しました。`);this.#a=t,this.#o=`${n}_${encodeURI(location.pathname+location.search)}`;let r=sessionStorage.getItem(this.#o);if(r&&r.trim()!==t.value.trim()&&confirm(`前回編集したデータが残っています。復元しますか? +(「キャンセル」を選択すると保存済みの内容を使用します)`)&&(this.#a.value=r),s_(n),e.dataset.component=`ContentArea`,this.#i=document.createElement(`textarea`),this.#i.spellcheck=!1,e.append(this.#i),this.#t=document.createElement(`iframe`),this.#t.setAttribute(`width`,`100%;`),this.#t.setAttribute(`scrolling`,`no`),e.append(this.#t),!this.#t.contentWindow)throw Error(`Impossible error: The contentWindow of created iframe is null.`);this.#t.contentWindow.document.open(),this.#t.contentWindow.document.close();let i=a_(`link[href*="bge_style_default.css"]`),a=a_(`link[href*="bge_style.css"]`),o=i_(`link[href*="burger_editor.css"]`);this.#t.contentWindow.document.head&&(i&&this.#t.contentWindow.document.head.append(o_(i,this.#t.contentWindow)),a&&this.#t.contentWindow.document.head.append(o_(a,this.#t.contentWindow)),o&&this.#t.contentWindow.document.head.append(o_(o,this.#t.contentWindow))),this.#t.contentWindow.document.body.setAttribute(`style`,`margin: 0; border: 0;`),this.#e=this.#t.contentWindow.document.createElement(`div`),this.#e.id=t_,this.#e.style.padding=`${e_}px`,this.#e.style.overflow=`hidden`;let s=[...n_];z_.setting?.wrapperClass&&s.push(z_.setting?.wrapperClass),this.#e.setAttribute(`class`,s.join(` `)),this.#e.innerHTML=t.value,this.blockMenu=new kg(this.#t.contentWindow.document.createElement(`div`)),this.#n=new Zg;let c=this.#t.contentWindow.document.createDocumentFragment();c.append(this.blockMenu.getNode()),c.append(this.#n.getNode()),c.append(this.#e),this.#t.contentWindow.document.body.append(c),window.addEventListener(`resize`,this.#u.bind(this),!0),window.addEventListener(`DOMContentLoaded`,this.#u.bind(this),!1),window.document.addEventListener(`load`,this.#u.bind(this),!0),this.#t.contentWindow.addEventListener(`resize`,this.#u.bind(this),!0),this.#t.contentWindow.addEventListener(`DOMContentLoaded`,this.#u.bind(this),!1),this.#t.contentWindow.document.addEventListener(`load`,this.#u.bind(this),!0),this.#i.addEventListener(`blur`,this.#c.bind(this),!1),this.#s(),this.#f(!0);let l=$(`.edit-inner`);$(this.containerElement).on(`mousemove`,`[data-bgt]`,e=>{requestAnimationFrame(()=>{let t=this.getNode().getBoundingClientRect();l.show(),l.css({left:e.pageX+t.left+window.pageXOffset,top:e.pageY+t.top+window.pageYOffset})})}).on(`mouseleave`,`[data-bgt]`,()=>{l.hide()})}check(){$g.check(this.containerElement)}copyTo(e){e.setContentsAsString(this.getContentsAsString()),e.#s()}getContentsAsString(){return this.#e.innerHTML.trim()}isEmpty(){return this.getContentsAsString()===``}isSame(e){return this.getContentsAsString()===e.getContentsAsString()}save(e){if(e)this.#a.value=e;else{let e=$(this.#e),t=new Set([`class`,`id`,`data-bgb`,`data-bgb-publish-datetime`,`data-bgb-unpublish-datetime`,`data-bgb-publish-datetime-range`]);e.find(`[data-bgb]`).each((e,n)=>{let r=n.attributes;for(let e=0,i=r.length;e:not([data-bgb])`).each((e,t)=>{Q.createUnknownBlock(t.outerHTML),t.remove()}),e.find(`[data-bgb]`).each((e,t)=>{new Q(t)});this.check(),this.save()}#c(){this.#r||(this.setContentsAsString(this.#i.value),this.save())}#l(){let e=this.#e.getBoundingClientRect().height+e_*2;this.#t.setAttribute(`height`,`${e}`)}#u(){`requestAnimationFrame`in window?requestAnimationFrame(()=>this.#l()):this.#l()}#d(){this.isEmpty()?this.#n.show():this.#n.hide()}#f(e){this.#r=e,this.node.dataset.componentMode=this.#r?`visual`:`source`,this.#t.hidden=!e,this.#i.hidden=!!e,this.#i.disabled=!!e}};function i_(e){let t=document.querySelector(e);if(!t)throw Error(`CSS用のlink要素の取得に失敗しました。`);return t.getAttribute(`href`)}function a_(e){let t=document.querySelector(e);if(!t)return console.warn(`CSS用のlink要素(${e})が存在しないため取得をしませんでした。`),null;let n=t.getAttribute(`href`);return t.type=`text/bge-css-copied`,t.rel=`nofollow`,n}function o_(e,t){let n=t.document.createElement(`link`);return n.rel=`stylesheet`,n.href=e,n}function s_(e){for(let t=0,n=sessionStorage.length;t{B_.isProcessed=!0,this.node.append(e.node),V_.update(),this.node.style.height=`auto`,this.node.style.height=`${this.node.getBoundingClientRect().height}px`,$(this.node).hide().slideDown().promise().done(()=>{$(e.node).unwrap(),B_.isProcessed=!1,iv(),t(e)})})}set(e,t=!0){let n=e.node;t?V_.containerElement.insertBefore(this.node,n.nextSibling):V_.containerElement.insertBefore(this.node,n)}unset(){this.node.innerHTML===``&&(this.node.remove||this.node.parentNode)&&this.node.remove()}},u_=class extends r_{constructor(e,t){super(e,t,`bge-main-content`),this.show()}copyTo(e){super.copyTo(e)}},d_=class{#e;constructor(){this.#e=$(`body`)}notify(e,t){this.#e.trigger(e,[t])}off(){this.#e.off()}on(e,t,n){this.#e.on(e,(e,r)=>{t.call(n,r)})}},f_=class{#e;get node(){return this.#e}get $el(){return $(this.#e)}constructor(e,t){this.#e=e,this.editorDialog=t}afterInit(){}},p_=class extends f_{constructor(e,t){super(e,t),G_.on(`bge-file-upload-complete`,this.#n,this),G_.on(`bge-file-upload-error`,this.#r,this),G_.on(`bge-file-delete-success`,this.#t,this),G_.on(`bge-file-delete-error`,this.#e,this)}#e(e){let t=this.$el;t.html(`

ファイルの削除に失敗しました(${e})

`).delay(500).slideDown(()=>{t.delay(2e3).slideUp(()=>{t.empty()})})}#t(){let e=this.$el;e.html(`

ファイルの削除が完了しました

`).delay(500).slideDown(()=>{e.delay(2e3).slideUp(()=>{e.empty()})})}#n(){let e=this.$el;e.html(`

アップロードが完了しました

`).delay(500).slideDown(()=>{e.delay(2e3).slideUp(()=>{e.empty()})})}#r(e){let t=this.$el;t.html(`

アップロードに失敗しました(${e})

`).delay(500).slideDown(()=>{t.delay(2e3).slideUp(()=>{t.empty()})})}},m_=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}send(e,t){let n=new FormData;n.append(this.#e,e,e.name),t&&n.append(`_csrfToken`,t);let r=new XMLHttpRequest;r.addEventListener(`load`,this.#n.bind(this),!1),r.addEventListener(`error`,this.#r.bind(this),!1),r.open(`POST`,this.#t,!0),r.send(n)}#n(e){if(!e.target)return;let t=JSON.parse(e.target.responseText);t.error?G_.notify(`bge-file-upload-error`,`Server Error`):G_.notify(`bge-file-upload-complete`,t)}#r(){G_.notify(`bge-file-upload-error`,`XHR Error`)}},h_=class extends f_{constructor(e,t){super(e,t),this.$container=$(`
`),this.$drop=$(`
`),this.$el.wrap(this.$drop),this.$drop.wrap(this.$container),this.$el.on(`change`,this.#e.bind(this)),this.$drop.on(`drop`,this.#t.bind(this)),this.uploadURL=z_.api?z_.api.fileUpload:null,this.editorDialog.$el.on(`dragenter`,e=>{this.editorDialog.$el.addClass(`bge-state-drag`),e.preventDefault()}).on(`dragover`,e=>{e.preventDefault()}).on(`drop`,this.#t.bind(this)).on(`dragend mouseleave mouseenter`,e=>{this.editorDialog.$el.removeClass(`bge-state-drag`),e.stopPropagation()})}#e(e){let t=e.originalEvent.target.files;t&&this.#r(t)}#t(e){let t=e.originalEvent;if(t.dataTransfer){let e=t.dataTransfer.files;this.#r(e)}this.editorDialog.$el.removeClass(`bge-state-drag`),e.preventDefault()}#n(e,t){if(Eg.default.lt(z_.cmsVersion,`5.0.0`)){e.send(t);return}let n=new XMLHttpRequest,r=$.bcUtil?.baseUrl||``;n.open(`GET`,`${r}/baser-core/bc_form/get_token?requestview=false`),n.addEventListener(`load`,()=>{n.readyState===4&&n.status===200&&e.send(t,n.responseText)}),n.send()}#r(e){if(this.uploadURL){let t=new m_(this.$el.attr(`name`)||`${this.$el.data(`post-name`)}`,this.uploadURL);for(let n of e)this._fileValidation(n)&&this.#n(t,n)}else console.warn(`アップロードAPIのパスが不明です。`)}_fileValidation(e){return!!e}},g_=class extends h_{constructor(e,t){super(e,t),this.uploadURL=z_.api?z_.api.imgUpload:null}_fileValidation(e){let t;switch(e.type.toLocaleLowerCase()){case`image/jpeg`:case`image/gif`:case`image/png`:t=!0;break;default:G_.notify(`bge-file-upload-error`,`画像ファイル以外はアップロードできません`),t=!1}return t}},__=class extends f_{#e;#t;constructor(e,t){super(e,t),G_.on(`bge-multi-field-add`,this.#n,this),this.#t=this.$el.find(`[data-bge-list]`),this.#e=this.#t.children().first().clone()}#n(e){let t=this.#e.clone();for(let n of Object.keys(e)){let r=e[n];t.find(`[name="bge-${n}"]`).val(`${r}`);let i=t.find(`[data-bge*="${n}"]`).get(0);i&&Jg.datumToElement(n,`${r}`,i)}this.#t.append(t)}},v_=class extends f_{#e=!0;#t=null;constructor(e,t){super(e,t),this.$el.prop(`disabled`,!0),this.$el.on(`click`,this.#n.bind(this)),G_.on(`bge-file-select`,this.#r,this)}#n(){return this.#t&&G_.notify(`bge-multi-field-add`,{path:this.#t,isEmpty:this.#e}),!1}#r({path:e,isEmpty:t}){this.#t=e,this.#e=t,e&&!t?this.$el.prop(`disabled`,!1):this.$el.prop(`disabled`,!0)}},y_=class extends f_{#e=null;constructor(e,t){super(e,t),this.$el.on(`click`,this.#t.bind(this)),this.deleteURL=z_.api?z_.api.fileDelete:null,G_.on(`bge-file-select`,this.#n,this)}async#t(){if(this.deleteURL){let e=this.$el.parents(`#ContentsEditArea`),t=this.#e;if(!t){alert(`ファイルが選択されていません。`);return}if(!confirm(`ファイルを削除します。よろしいですか? +※ 記事にて利用中のファイルがあった場合 表示されなくなります`))return;let n;Eg.default.gte(z_.cmsVersion,`5.0.0`)&&(await new Promise(e=>{$.bcToken?.check(()=>{e()})}),n=$.bcToken?.key??void 0),await $.ajax(this.deleteURL,{cache:!1,type:`POST`,data:{file:t,_csrfToken:n},success:n=>{switch(n){case`1`:e.find(`div.selected`).remove(),e.find(`[name=bge-path][value="${t}"]`).val(``),G_.notify(`bge-file-delete-success`,null);break;default:G_.notify(`bge-file-delete-error`,``)}}})}else console.warn(`削除APIのパスが不明です。`)}#n({path:e}){this.#e=e||null}},b_=class extends f_{constructor(e,t){super(e,t),this.currentPageNo=1,this.listURL=z_.api?z_.api.fileList:null,this.pageMaxNumber=0,this.pageSplitCount=10,this.searchWord=``;let n=t.$el;G_.on(`bge-file-upload-complete`,this.#a,this),G_.on(`bge-file-listup`,this.#n,this),G_.on(`bge-file-delete-success`,this.#e,this),n.on(`click`,`.bg-upload-file`,e=>this._fileClick(e)),n.on(`dblclick`,`.bg-upload-file`,e=>this._fileDbClick(e)),n.on(`click`,`[data-bge-pagelink]`,async e=>{let t=$(e.currentTarget),n=Number.parseFloat(t.attr(`data-bge-pagelink`)||``)||0;return await this.#r(this.searchWord,n),!1}),n.on(`click`,`.page-ctrl button`,async e=>{let t=$(e.currentTarget),n=Number.parseFloat(t.attr(`data-bge-page-vector`)||``)||0;return await this.#r(this.searchWord,this.currentPageNo+n),!1})}#e(){this.#r(``,this.currentPageNo)}#t(e){let t=[` + `),t.join(``).replaceAll(` `,``)}#n(e=``){this.#r(e,1)}#r(e=``,t=0,n=``){let r=``;return r=n==``?this.$el.parents(`#ContentsEditArea`).find(`[name=bge-path]`).val():n,new Promise((n,i)=>{this.listURL?$.ajax(this.listURL,{cache:!1,type:`GET`,data:{word:e,page:t,selected:r},dataType:`json`,success:t=>{this.searchWord=e,this.#i(t.data,t.pagination),n()}}):(console.warn(`ファイルリストAPIのパスが不明です。`),i())})}#i(e,t){this.$el.children().remove(),this.pageMaxNumber=t.pageMaxNumber;let n=[`
`],r=-1;$.each(e,(e,i)=>{let a=e===0&&(i.fileId===``||i.fileid===``)&&i.size===0,o=i.fileId===t.selectedFileId;o&&(r=e),n.push(`
+
+
+

ID${i.fileId??i.fileid}

+

名称${i.name}

+

更新${i.filetime}

+

サイズ${Qg.formatByteSize(i.size)}

+
+
`)}),n.push(`
`),this.$el.append(n.join(``));let i=Number(t.currentPageNumber);if(this.$el.find(`.file-box[data-org-src]`).each((e,t)=>{let n=$(t),r=n.attr(`data-org-src`)||``;n.hasClass(`file-box--no-image`)||n.css(`background-image`,`url("${encodeURI(r)}")`)}),r>=0){let t=e[r];t&&t.url&&this._select(t.url,t.size||0,!1)}this._changePageTab(i)}#a(e){let t=e.data,n=e.pagination,r=t[0];if(r?.fileId===``&&r?.size===0&&(r=t[1]),!r)throw Error(`アップロード情報が不正です。`);this.#i(t,n)}_changePageTab(e){if($(`#ContentsEditArea .pagination`).remove(),this.pageMaxNumber>1){let t=this.#t(e);this.$el.before(t)}$(`[data-bge-pagelink] a`).removeClass(`current`),$(`[data-bge-pagelink=${e}] a`).addClass(`current`),$(`[data-bge-page]`).hide();let t=$(`[data-bge-page=${e}]`),n=t.find(`.bg-upload-file.selected`);t.show(),n.length>0&&(this.node.scrollTop=0,this.node.scrollTop=n.position().top-50),this.currentPageNo=e}_fileClick(e){let t=$(e.currentTarget),n=t.attr(`data-org-src`)||``,r=Number.parseInt(t.attr(`data-file-size`)||``,10)||0,i=t.attr(`data-bge-empty`)===`1`;return this._select(n,r,i),this.editorDialog.$el.find(`.bg-upload-file`).removeClass(`selected`),t.addClass(`selected`),G_.notify(`bge-file-select`,{path:n,isEmpty:i}),!1}_fileDbClick(e){return this._fileClick(e),$(`.ui-dialog-buttonset button.last`).trigger(`click`),!1}_select(e,t,n){let r=this.editorDialog.$el;r.find(`[name=bge-path]`).val(e),r.find(`[name="bge-formated-size"]`).val(Qg.formatByteSize(t)),r.find(`[name="bge-size"]`).val(`${t}`),r.find(`[name="bge-empty"]`).val(n?`1`:`0`)}async _waitEditorImported(){let e=(e=20)=>new Promise(t=>setTimeout(t,e)),t=this.$el.parents(`#ContentsEditArea`).find(`[name=bge-imported]`);if(t.length>0&&t.val()!=1)for(let n=0;n<10&&(await e(),t.val()!=1);n++);}async afterInit(){await this._waitEditorImported(),await this.#r(``)}},x_=class extends f_{constructor(e,t){super(e,t),this.$el.on(`click`,this.#e.bind(this))}#e(){G_.notify(`bge-file-search`,null)}},S_=class extends f_{constructor(e,t){super(e,t),G_.on(`bge-file-search`,this.#e,this)}#e(){G_.notify(`bge-file-listup`,`${this.$el.val()}`)}},C_=class extends y_{constructor(e,t){super(e,t),this.deleteURL=z_.api?z_.api.imgDelete:null}},w_=class extends b_{constructor(e,t){super(e,t),this.listURL=z_.api?z_.api.imgList:null}},T_=class extends w_{constructor(e,t){super(e,t)}_fileClick(e){let t=$(e.currentTarget),n=t.attr(`data-org-src`)||``,r=t.attr(`data-bge-empty`)===`1`;return this.editorDialog.$el.find(`.bg-upload-file`).removeClass(`selected`),t.addClass(`selected`),G_.notify(`bge-file-select`,{path:n,isEmpty:r}),!1}_fileDbClick(e){this._fileClick(e);let t=$(e.currentTarget),n=t.attr(`data-org-src`)||``,r=t.attr(`data-bge-empty`)===`1`;return G_.notify(`bge-multi-field-add`,{path:n,isEmpty:r}),!1}_select(e,t,n){this.editorDialog.$el.find(`[name="bge-empty"]`).val(n?`1`:`0`)}async afterInit(){await super.afterInit(),this._changePageTab(1),this.editorDialog.$el.find(`.bg-upload-file`).removeClass(`selected`)}},E_=class{get el(){return this.$el.get(0)}constructor(e,t){if(!e)throw Error(`要素の取得に失敗しました。`);this.$el=$(e);let n=$.extend({},t);n.open=this._open.bind(this),n.close=this._close.bind(this),n.create=this._create.bind(this),n.buttons={};for(let e of Object.keys(t.buttons))e&&((e,t)=>{t&&typeof t==`string`&&(n.buttons[t]=()=>{this[e]&&this[e].call(this)})})(e,t.buttons[e]);this.$el.dialog(n)}close(){this.$el.dialog(`close`),V_.save()}create(){this.$el.dialog(`create`)}open(...e){this.$el.dialog(`option`,`width`,Qg.getDialogSize(1200,`width`)),this.$el.dialog(`open`)}reset(){this.$el.find(`input, select, textarea`).val(``)}_close(){}_create(){}_open(...e){}},D_=class extends E_{#e={};constructor(e){if(super(e,{bgiframe:!0,autoOpen:!1,position:Eg.default.gte(`1.11.0`,jQuery.ui.version,!0)?`center`:void 0,modal:!0,buttons:{close:`キャンセル`,complete:`完了`}}),z_.blockClassOption)for(let e of Object.keys(z_.blockClassOption)){let t=z_.blockClassOption[e];if(!t)continue;let n=new Ag(e,t);this.#e[e]=n}e&&($(e).find(`[data-bge-block-option-scheduled-publishing]`).each((e,t)=>{let n=$(t);switch(n.attr(`data-bge-block-option-scheduled-publishing`)){case`publish-date`:case`unpublish-date`:n.datepicker();break;case`publish-time`:case`unpublish-time`:n.timepicker({timeFormat:`H:i`});break}}),z_.setting&&z_.setting.publishTimer&&$(`[data-bge-block-option-scheduled-publishing-area]`).prop(`hidden`,!1))}complete(){let e=R_.getCurrentBlock();e&&(e.importOptions(this.#i()),e.importCustomClassList(this.#t()),e.importId(this.#r()),e.importGridInfo(this.#n()),e.importScheduledPublishing(this.#a())),this.close()}#t(){let e=(this.$el.find(`[data-bge-block-option-custom-class] [data-bge-block-option-input]`).val()||``).split(/\s+/),t=[],n=[];for(let r of e)r!==``&&!t.includes(r)&&(Qg.isValidAsClassName(r)?t.push(r):n.push(r));return n.length>0&&alert(`以下のクラス名は使用できない文字を含むため除外されます。\n${n.join(` +`)}`),t}#n(){let e=this.$el.find(`[name=bge-grid-ratio]`),t=this.$el.find(`[name=bge-sp-grid-ratio]`),n=this.$el.find(`[name=bge-sp-grid-ratio-enabled]`);return{normalRatio:+e.val(),spRatio:+t.val(),spEnabled:n.prop(`checked`)}}#r(){let e=(this.$el.find(`[data-bge-block-option-id] [data-bge-block-option-input]`).val()||``).trim();if(!e)return``;let t=L_+e;if(!/^[\w.:-]+$/.test(t))return alert(`"${t}" はid属性として使用できない文字が含まれています。`),``;let n=R_.getCurrentBlock();return document.getElementById(t)&&n&&n.id!==t?(alert(`"${t}" は既に定義されています。`),``):`${t}`}#i(){let e=[];return this.$el.find(`[data-bge-block-option]`).each((t,n)=>{let r=$(n).find(`[data-bge-block-option-select-box]`);if(r.length===0)return;let i=r.find(`option:selected`);if(i.length===0)return;let a=i.val()||``,o=Ag.getOption(a);o&&e.push(o)}),e}#a(){let e=[null,null],t=[null,null];this.$el.find(`[data-bge-block-option-scheduled-publishing]`).each((n,r)=>{let i=$(r),a=i.attr(`data-bge-block-option-scheduled-publishing`),o=i.val();if(!(!o||typeof o!=`string`))switch(a){case`publish-date`:e[0]=o;break;case`publish-time`:e[1]=o;break;case`unpublish-date`:t[0]=o;break;case`unpublish-time`:t[1]=o;break}});let n=e[0]&&e[1]?e.join(` `):e[0],r=t[0]&&t[1]?t.join(` `):t[0];return{publishDatetime:n||null,unpublishDatetime:r||null}}#o(e){this.$el.find(`[data-bge-block-option-custom-class] [data-bge-block-option-input]`).val(e.join(` `))}#s(e){let t=R_.getCurrentBlock();if(!t){console.warn(`BgE.editor.getCurrentBlock() is null.`);return}let n=this.$el.find(`[data-bge-grid-changer]`),r=$(t.node.querySelectorAll(`[data-bge-grid-changeable]`));if(n.hide(),r.length===0)return;n.show();let i=this.$el.find(`[name=bge-grid-ratio]`),a=this.$el.find(`[name=bge-sp-grid-ratio]`),o=this.$el.find(`[name=bge-sp-grid-ratio-enabled]`);i.val(`${e.normalRatio}`),e.spEnabled&&a.val(`${e.spRatio}`),o.prop(`checked`,e.spEnabled),a.prop(`disabled`,!e.spEnabled),o.off().on(`change`,()=>{a.prop(`disabled`,!o.prop(`checked`))})}#c(e){e&&(e=e.replace(RegExp(`^${L_}`),``),this.$el.find(`[data-bge-block-option-id] [data-bge-block-option-input]`).val(e))}#l(e){this.$el.find(`[data-bge-block-option]`).each((t,n)=>{let r=$(n),i=r.attr(`data-bge-block-option`)||``,a=this.#e[i];if(!a)return;let o=r.find(`[data-bge-block-option-select-box]`);if(o.length===0)return;let s=!1;for(let t of a.classList){let n=$(``);n.appendTo(o);for(let r of e)r.currentClass&&r.currentClass.className===t.className&&(n.prop(`selected`,!0),s=!0)}o.prepend($(`指定なし`))})}#u(e){if(e.publishDatetime){let[t,n]=e.publishDatetime.split(` `);t&&(this.$el.find(`[data-bge-block-option-scheduled-publishing="publish-date"]`).val(t),this.$el.find(`[data-bge-block-option-scheduled-publishing="publish-time"]`).val(n??`00:00`))}if(e.unpublishDatetime){let[t,n]=e.unpublishDatetime.split(` `);t&&(this.$el.find(`[data-bge-block-option-scheduled-publishing="unpublish-date"]`).val(t),this.$el.find(`[data-bge-block-option-scheduled-publishing="unpublish-time"]`).val(n??`00:00`))}}_close(){$(`[data-bge-grid-changer]`).hide(),iv()}_open(){this.reset();let e=R_.getCurrentBlock();e&&(this.#l(e.exportOptions()),this.#o(e.exportCustomClassList()),this.#c(e.exportId()),this.#s(e.exportGridInfo()),this.#u(e.exportScheduledPublishing()))}reset(){super.reset(),this.$el.find(`[data-bge-block-option-select-box]`).empty()}},O_=class extends E_{constructor(e){super(e,{bgiframe:!0,autoOpen:!1,position:Eg.default.gte(`1.11.0`,jQuery.ui.version,!0)?`center`:void 0,modal:!0,buttons:{close:`キャンセル`}}),this.$el.on(`click`,`li`,e=>{let t=$(e.currentTarget);switch(`${t.data(`bge-specific-block`)}`){case`copy`:{let e=ov();if(e){let t=new Q($(e).get(0));this.addBlock(t)}break}default:{let e=new Q(`${t.data(`bge-block`)}`),n=e.isDisable();if(n)return alert(n),!1;this.addBlock(e)}}return this.close(),!1})}addBlock(e){X_.insert(e)}_close(){this.$el.find(`.bge-copied-block`).remove(),B_.isProcessed||iv()}_open(){return ov()?(this.$el.find(`.bg-blocks`).prepend(` +
+
クリップボード
+
+
    +
  • +
    +
    +
    ペースト
    +
    +
  • +
+
+
+ `),!1):!0}},k_=class extends E_{constructor(e){super(e,{bgiframe:!0,autoOpen:!1,position:Eg.default.gte(`1.11.0`,jQuery.ui.version,!0)?`center`:void 0,modal:!0,buttons:{close:`キャンセル`,complete:`完了`}})}async complete(){if(!this.type)return;this.type.module&&this.type.module.beforeExtract(this,this.type);let e=this.type.validate(this.#n());if(e){alert(e);return}await this.type.import(this.#n(),!0),this.close()}#e(){this.$el.find(`[data-bge-event]`).each((e,t)=>{let n=`${$(t).data(`bge-event`)}`,r=n.split(`:`),i=r[0]??`click`,a=r[1]??i;!this.type||!this.type.module||a in this.type.module.customFunctions&&$.isFunction(this.type.module.customFunctions[a])&&this.$el.on(i,`[data-bge-event="${n}"]`,e=>{if(!(!this.type||!this.type.module))return this.type.module.customFunctions[a]?.call(t,e,this,this.type,this.type.module)})})}#t(){this.$el.find(`[data-bge-class]`).each((e,t)=>{let n=Z_[`${$(t).data(`bgeClass`)}`];n&&new n(t,this).afterInit()})}#n(){return M_(this.el)}#r(e){A_(this.el,e)}_close(){G_.off(),this.$el.off(),this.$el.empty(),iv()}_create(){this.$el.closest(`.ui-dialog`).find(`.ui-button:last`).addClass(`last`)}open(e){this.type=e;let t=rv(this.type.name);if(!t)throw Error(`Template not found: ${this.type.name}`);this.$el.append(t),this.#t(),this.#e();let n=this.type.export();this.type.module&&this.type.module.beforeOpen(this,this.type,n),this.#r(n),super.open(),this.type.module&&this.type.module.open(this,this.type)}};function A_(e,t){let n=$(e);for(let e of Object.keys(t)){let r=t[e],i=`[name="bge-${e}"]`,a=`[data-bge*="${e}"]`;if(Array.isArray(r)){let t=n.find(i).closest(`[data-bge-list]`);if(t.children().length===0)continue;let o=t.children().first().clone();for(;r.length>t.children().length;)t.append(o.clone());t.find(i).each((e,t)=>{j_(t,r[e]||``)}),t.find(a).each((t,n)=>{Jg.datumToElement(e,r[t]||``,n)})}else{for(let e of n.find(i).toArray())j_(e,r);for(let t of n.find(a).toArray())Jg.datumToElement(e,r,t)}}}function j_(e,t){if(e.type.toLowerCase()===`checkbox`&&(typeof t==`string`?e.checked=/false|0+/i.test(t)?!1:!!t:e.checked=!!t),e.type.toLowerCase()===`radio`){let n;n=e.value?e.value===t:!!t,e.checked=n}else e.placeholder===t?e.value=``:e.value=`${t}`}function M_(e){let t=[],n=$(e).find(`[name^=bge-]`);n.not(`:radio`).each((e,n)=>{let r=$(n),i=r.attr(`type`)||``,a=(r.attr(`name`)||``).replace(/^bge-(.+)/i,`$1`),o;o=i===`checkbox`?!!r.prop(`checked`):r.val(),t.push({key:a,datum:o,isArray:r.closest(`[data-bge-list]`).length>0})});let r=[];return n.filter(`:radio`).each((e,n)=>{let i=n,a=i.name.replace(/^bge-(.+)/i,`$1`);r.includes(a)||i.checked&&(t.push({key:a,datum:i.value,isArray:$(n).closest(`[data-bge-list]`).length>0}),r.push(a))}),Qg.dataOptimize(t)}var N_=class{#e=null;clearCurrentBlock(){this.#e=null}getCurrentBlock(){return this.#e||console.warn(`block is unselected.`),this.#e}isSetBlock(){return!!this.#e}setCurrentBlock(e){let t=!0;return this.#e&&(t=!this.#e.is(e)),this.#e=e,t}},P_=s({$originalBlockElementContainer:()=>Y_,BLOCK_ID_PREFIX:()=>L_,STORAGE_KEY_OF_COPIED_BLOCK:()=>I_,Util:()=>Qg,blockConfigDialog:()=>U_,blockListDialog:()=>H_,componentObserver:()=>G_,config:()=>z_,copyBlock:()=>av,cssListForCKEditor:()=>J_,currentContentArea:()=>V_,editor:()=>R_,editorComponent:()=>Z_,editorStatus:()=>B_,getCopiedBlock:()=>ov,getTypeEditorTemplate:()=>rv,googleMapsApiKey:()=>q_,init:()=>tv,insertionPoint:()=>X_,modules:()=>K_,registerTypeModule:()=>nv,save:()=>iv,typeEditorDialog:()=>W_,version:()=>F_,versionCheck:()=>sv}),F_=`3.4.0`,I_=`bge-copied-block`,L_=`bge-`,R_=new N_,z_={},B_={isProcessed:!1},V_,H_,U_,W_,G_,K_={},q_,J_,Y_,X_,Z_={FileUploader:h_,FileUploadMessenger:p_,ImageUploader:g_,MultiFieldSelection:__,MultiFieldSelector:v_,UploadFileDeleter:y_,UploadFileList:b_,UploadFileSearchButton:x_,UploadFileSearchForm:S_,UploadImageDeleter:C_,UploadImageList:w_,UploadImageListMultiSelect:T_},Q_,$_,ev=null;function tv(){cv(),uv(),$(`#BtnSave`).unbind(`click`),$(`#BtnSave`).click(()=>($.bcUtil&&$.bcUtil.showLoader(),iv(),$(`#BlogPostMode`).val(`save`),$.bcToken&&$.bcToken.check(()=>{$(`#PageAdminEditForm, #PageAdminAddForm, #BlogPostForm, #CustomEntriesForm`).trigger(`submit`)},{useUpdate:!1,hideLoader:!1}),!1));let e=document.getElementById(`BtnPreview`);if(e){let t=[`data[Page][contents_tmp]`,`data[BlogPost][detail_tmp]`].map(t=>{let n=document.createElement(`input`);return n.type=`hidden`,n.name=t,e.form&&e.form.append(n),n});$(e).on(`click`,()=>{for(let e of t)e.value=V_.getContentsAsString()});let n=$;if($.isFunction(n._data)){let t=n._data(e).events;if(t&&t.click){let e=t.click,n=e.pop();n&&e.unshift(n)}}}}function nv(e,t={}){if(e in K_){console.warn(`"${e}" is already exists.`);return}K_[e]=new Dg(t)}function rv(e){return Q_.find(`.Type${e}`).clone()[0]}function iv(){$_.save(),ev&&ev.save(),console.info(`save to input element for storage.`)}function av(e){sessionStorage.setItem(I_,e)}function ov(){return sessionStorage.getItem(I_)}var sv={lt(e,t,n){return Eg.default.lt(e,t,n)},gt(e,t,n){return Eg.default.gt(e,t,n)},lte(e,t,n){return Eg.default.lte(e,t,n)},gte(e,t,n){return Eg.default.gte(e,t,n)}};function cv(){lv(document.getElementById(`bge-config`));let e=z_.utility&&z_.utility.mainFieldId||``,t=z_.utility?z_.utility.draftFieldId:null;Y_=$(`#DefaultBlock`),Q_=$(`#InputArea`),J_=z_.utility?z_.utility.cssList.join(`,`):``,q_=z_.utility?z_.utility.googleMapsApiKey:``,$(`#PageAdminEditForm, #BlogPostForm, #CustomEntriesForm`).append(``);let n=z_.cmsVersion||``;if(Eg.default.valid(n))z_.cmsVersion=Eg.default.clean(n)||``;else{let e=n.replace(/^(\d+\.\d+\.\d+).*/,`$1`);if(e===n)throw Error(`baserCMSのバージョン情報が不正です。「${n}」はセマンティック バージョニング 2.0.0の仕様に従っていません。`);console.warn(`baserCMSのバージョン情報が不正です。「${n}」はセマンティック バージョニング 2.0.0の仕様に従っていません。${e}として解釈します。`),z_.cmsVersion=e}G_=new d_,X_=new l_,$_=new u_(document.getElementById(`ValueArea`),document.getElementById(e)),t&&(ev=new c_(document.getElementById(`DraftArea`),document.getElementById(t))),H_=new O_(document.getElementById(`PanelArea`)),U_=new D_(document.getElementById(`BgBlockConfigArea`)),W_=new k_(document.getElementById(`ContentsEditArea`))}function lv(e){if(e){let t=e.textContent??``;try{let e=JSON.parse(t);$.extend(z_,e),console.info(`success: Configuration JSON is parsed.`)}catch{console.warn(`parse error: Configuration JSON.`)}}}function uv(){ev&&($(`#CbeHonkouBtn`).on(`click`,e=>{if(!ev)return;let t=$(e.currentTarget);$_.show(),ev.hide(),t.closest(`.draft-btn`).find(`.on`).removeClass(`on`),t.addClass(`on`),$(`#CbeHonkouCopyBtn`).addClass(`on`),$(`#ContentPreviewMode`).val(`publish`),V_=$_,V_.update(),V_.check()}),$(`#CbeSoukouBtn`).on(`click`,e=>{if(!ev)return;let t=$(e.currentTarget);ev.show(),$_.hide(),t.closest(`.draft-btn`).find(`.on`).removeClass(`on`),t.addClass(`on`),$(`#CbeSoukouCopyBtn`).addClass(`on`),$(`#ContentPreviewMode`).val(`draft`),V_=ev,V_.update(),V_.check()}),$(`#CbeSoukouCopyBtn`).click(()=>{ev&&($_.isEmpty()||ev.isSame($_)||confirm(`下書き内容を本稿へ上書きしてもよろしいですか?`))&&(ev.copyTo($_),$(`#CbeHonkouBtn`).trigger(`click`))}),$(`#CbeHonkouCopyBtn`).click(()=>{ev&&(ev.isEmpty()||$_.isSame(ev)||confirm(`本稿の内容を下書きへコピーしてもよろしいですか?`))&&($_.copyTo(ev),$(`#CbeSoukouBtn`).trigger(`click`))}),$(`#CbeHonkouBtn, #CbeSoukouBtn`).on(`dblclick`,e=>{let t=$(e.currentTarget);if(!e.altKey||!t.hasClass(`on`))return;t.trigger(`click`),V_.toggleDisplayMode();let n=V_.isVisualMode?``:`ソース表示`;t.find(`span`).remove(),t.html((e,t)=>t+n)}),$(`#CbeHonkouBtn`).trigger(`click`))}window.BgE=P_,$(()=>{$(`#PageName`).focus(),tv(),$(`.even`).removeClass(`even`),$(`.odd`).removeClass(`odd`),$(`.empty`).removeClass(`empty`),$(`.firstChild`).removeClass(`firstChild`),$(`.lastChild`).removeClass(`lastChild`),$(`br`).removeAttr(`class`)})})();})(); \ No newline at end of file diff --git a/plugins/bc-burger-editor/webroot/js/bge_modules/bge_functions.min.js b/plugins/bc-burger-editor/webroot/js/bge_modules/bge_functions.min.js new file mode 100644 index 0000000000..7018173945 --- /dev/null +++ b/plugins/bc-burger-editor/webroot/js/bge_modules/bge_functions.min.js @@ -0,0 +1,10 @@ +/** +* BurgerEditor v3.5.0-alpha.2 +* +* Copyright: D-ZERO +* License: (MIT OR Apache-2.0) +*/ +;(function () {var BgE=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;lt[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(){}return e.posAbs=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),e.css({position:`absolute`,top:t,left:n})},e.posBase=function(e){var t=e.css(`position`);return(t==null||t===`static`||t===``)&&e.css({position:`relative`}),e},e.z=function(e,t){return t===void 0&&(t=0),e.css({zIndex:t}),e},e.floating=function(e,t){return t===void 0&&(t=!0),e.css({float:t?`left`:`none`}),e},e.isOverflowHidden=function(e){return e.css(`overflow`).toLowerCase()===`hidden`},e.saveCSS=function(e){e.each(function(e,t){var n=$(t);n.data(`originStyle`,n.attr(`style`))})},e.restoreCSS=function(e){e.each(function(e,t){var n=$(t),r=``+n.data(`originStyle`);n.attr(`style`,r)})},e.cleanCSS=function(e){e.each(function(e,t){$(t).attr(`style`,``)})},e}()})),d=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(){}return e.INIT=`init`,e.TRANSITION_END=`transitionEnd`,e.RESIZE=`resize`,e.RESIZE_START=`resizeStart`,e.RESIZE_END=`resizeEnd`,e.REFLOW_METHOD=`reflowMethod`,e.LOAD=`load`,e}()})),f=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(e,t){this.name=e,$.extend(this,t)}return e.create=function(t){for(var n in t)if(t.hasOwnProperty(n)){var r=new e(n,t[n]);e.transitions[n]=r}},e.transitions={},e}()})),p=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=u(),n=d();f().default.create({fade:{init:function(){t.default.posBase(this.container.$el),t.default.posAbs(this.panels.$el)},reflow:function(e){switch(e.timing){case n.default.TRANSITION_END:case n.default.RESIZE_START:case n.default.RESIZE_END:case n.default.LOAD:this.config.resizable&&this.stage.$el.height(this.panels.$el.height()||0),t.default.z(this.panels.$el,0),t.default.z(this.panels.item(this.to).$el,10),this.panels.$el.css({opacity:0}),this.panels.item(this.to).$el.css({opacity:1});break;default:}},silent:function(){},before:function(){},fire:function(){this.panels.item(this.to).$el.css({opacity:0}),t.default.z(this.panels.item(this.to).$el,20),this.animation&&this.animation.stop(),this.animation=this.panels.item(this.to).$el.animate({opacity:1},{duration:this.config.duration}),this.config.crossFade&&this.panels.item(this.from).$el.animate({opacity:0},{duration:this.config.duration})},cancel:function(){},after:function(){this.panels.$el.css({opacity:0}),this.panels.item(this.to).$el.css({opacity:1})}}})})),m=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(){}return e.getSpeed=function(e,t){return e/t},e.getDuration=function(e,t){return e/t},e.getDistance=function(e,t){return e*t},e.getloopSeriesNumber=function(e,t){var n=e%t;return n===0||e<0&&(n=t+Math.abs(e)%t*-1),n},e.getloopSeriesVector=function(t,n,r,i){var a;if(r!==0&&r!==1&&r!==-1)throw RangeError("`direction` is must 1 or -1 or zero.");if(r===0){t=e.getloopSeriesNumber(t,i),n=e.getloopSeriesNumber(n,i);var o=t{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(){}return e.NONE=`none`,e.RETURN=`return`,e.LOOP=`loop`,e}()})),g=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=u(),n=m(),r=d(),i=h(),a=f(),o=function(){function e(e,t,n){var r=this;this.isDragging=!1,this.isSwiping=!1,this.$el=e,this.psycle=t,this.config=n;var i={passive:!0};this.$el[0].addEventListener(`touchstart`,function(e){r._dragStartX=e.touches[0].pageX,r._dragstart(e)},i),this.$el[0].addEventListener(`touchmove`,function(e){r._drag(e)},i),this.$el[0].addEventListener(`touchend`,function(e){r._dragend(e)}),this.$el[0].addEventListener(`touchcancel`,function(e){r._dragend(e)})}return e.prototype._tap=function(){this.isDragging=!1},e.prototype._dragstart=function(e){this.dragStartTimestamp=Date.now(),this.psycle.freeze(),this.dragStartPsycleLeftPosition=this.psycle.container.$el.position().left,this.currentIndex=this.psycle.index},e.prototype._drag=function(e){var t=this,n=e.touches[0].pageX-this._dragStartX,r=this.dragStartPsycleLeftPosition+n;this.isDragging=!0,this._moveValueFromPrevTouchMove=n,cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(function(){t.psycle.container.$el[0].style.left=r+`px`})},e.prototype._dragend=function(e){var t=.25,r=(e.touches[0]||e.changedTouches[0]).pageX-this._dragStartX,a=this.psycle.panelWidth,o=this.dragStartPsycleLeftPosition+r,s=this.psycle.cloneCount*this.psycle.length,c=s*a;a*t;var l=o/a*-1;this.psycle.repeat===i.default.LOOP&&(l-=s);var u=l-this.psycle.index,d=0;if(00?1:-1)*-1,g=n.default.getSpeed(m,this.config.duration),_=n.default.getDuration(m,g),v=this.psycle.index+f,y=200,b=5,x=Date.now()-this.dragStartTimestamp{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(e){this.defaultPrevented=!1,this.type=e,this.timeStamp=new Date().valueOf()}return e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.INIT=`init`,e.PANEL_CHANGE_START_BEFORE=`panelChangeStartBefore`,e.PANEL_CHANGE_START=`panelChangeStart`,e.PANEL_CHANGE_END=`panelChangeEnd`,e.PANEL_CHANGE_CANCEL=`panelChangeCancel`,e.WAIT_START=`waitStart`,e.WAIT_END=`waitEnd`,e.RESIZE_START=`resizeStart`,e.RESIZE_END=`resizeEnd`,e}()})),v=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=_();e.default=function(){function e(){this._listeners={}}return e.prototype.on=function(e,t){for(var n=typeof e==`string`?e.split(/\s+/):e,r=0,i=n.length;r{var t=e&&e.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){t(n,e);function n(t){var n=e.call(this)||this;if(!t.length)throw ReferenceError(`This jQuery object is empty.`);return n.$el=t,n.el=t[0],n}return n.prototype.trigger=function(t,n,r){n===void 0&&(n={}),r===void 0&&(r=this);var i=e.prototype.trigger.call(this,t,n,r);return i&&this.$el.trigger(t,n),i},n.prototype.getWidth=function(){return this.$el.width()||0},n.prototype.getHeight=function(){return this.$el.height()||0},n.prototype.getMaxHeight=function(){var e=0;return this.$el.each(function(t,n){e=Math.max($(n).height()||0,e)}),e},n.prototype.getMinHeight=function(){var e=1/0;return this.$el.each(function(t,n){e=Math.min($(n).height()||0,e)}),e===1/0&&(e=NaN),e},n.prototype.setWidth=function(e){return this.$el.width(e),this},n.prototype.setHeight=function(e){return this.$el.height(e),this},n}(v().default)})),b=s((e=>{var t=e&&e.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(y().default)})),x=s((e=>{var t=e&&e.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0});var n=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;return i.hasImages=!1,i.loaded=!1,i.index=n,i._list=r,i._loadImageObserve(),i}return n.prototype.show=function(){return this.$el.show(),this},n.prototype.hide=function(){return this.$el.hide(),this},n.prototype.clone=function(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);var n=new r(this.$el.clone(),this.index,this._list);return e&&this.$el.after(n.$el),t&&this._list.addClone(n),n},n.prototype._loadImageObserve=function(){var e=this,t=this.$el.find(`img`),n=[];t.length&&(this.hasImages=!0,t.each(function(e,t){var r=$.Deferred();t.onload=function(){r.resolve()},t.onerror=function(){r.resolve()},t.onabort=function(){r.resolve()},n.push(r.promise())}),$.when.apply($,n).done(function(){e.loaded=!0,e.trigger(`load`)}))},n}(y().default);e.default=n;var r=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t,n,r)||this;return t.addClass(`-psycle-clone-element`),t.attr(`data-psycle-clone-element`,`true`),t.attr(`data-psycle-clone-original-index`,``+n),i}return n.prototype._loadImageObserve=function(){},n}(n);e.PsyclePanelClone=r})),S=s((e=>{var t=e&&e.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0});var n=y(),r=x();e.default=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;n.length=0,n._panels=[],n._clones=[];for(var r,i=0,a=t.length;i{var t=e&&e.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r._panels=n,r._panels.on(`load`,function(){r.trigger(`load`)}),r}return n}(y().default)})),w=s((e=>{var t=e&&e.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0});var n=y(),r=_(),i=m(),a=b(),o=S(),s=d(),c=h(),l=C(),u=f();e.default=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;r.index=0,r.vector=0,r.isTransition=!1,r.isPaused=!1,r.cloneCount=0,r._times=[],r._ignoreIndexes=[],r.config=$.extend({instanceKey:`psycle`,startIndex:0,transition:`slide`,duration:600,easing:`swing`,delay:3e3,auto:!0,cancel:!0,repeat:c.default.RETURN,container:`>ul:eq(0)`,panels:`>li`,currentClass:`current`,delayWhenFire:0,clone:2,cols:1,rows:1,offsetX:0,offsetY:0,nearby:!1,innerFocus:!1,noFocus:!0,resizable:!1,draggable:!1,swipeable:!1,dragBlockVertical:!1,bindKeyboard:!1,showOnlyOnce:`.once`,controller:null,marker:null,thumbnail:null,css3:!0,loopCloneLength:null,scenes:[],dimension:`auto`,crossFade:!0},n);var i=t,s=i.find(r.config.container),d=s.find(r.config.panels);if(r.panels=new o.default(d),r.container=new a.default(s),r.stage=new l.default(i,r.panels),r.transition=u.default.transitions[r.config.transition],r.transition==null||r.transition.fallback&&r.transition.fallbackFilter&&r.transition.fallbackFilter()&&(r.transition=u.default.transitions[r.transition.fallback],r.transition==null))throw ReferenceError(`'`+r.config.transition+`' is not transition type.`);return r.index=+r.config.startIndex||0,r.to=r.index,r.from=r.index,r.repeat=r.config.repeat,r.length=r.panels.length,r.progressIndex=r.index,r._resizeable(),r._init(),r._silent(),r.panels.on(`load`,function(){r._load()}),t.data(r.config.instanceKey,r),setTimeout(function(){r._initFinished(),r.config.auto&&r.play()},0),r}return n.prototype.play=function(){var e=this;return this.trigger(`play`)&&(this.config.auto=!0,clearTimeout(this.timer),this.timer=setTimeout(function(){e.next()},this.config.delay)),this},n.prototype.stop=function(){return clearTimeout(this.timer),this.isPaused=!0,this},n.prototype.freeze=function(){return this.animation&&this.animation.stop(),this.stop(),this},n.prototype.gotoPanel=function(e,t,n){return n===void 0&&(n=0),this.isTransition||this.transitionTo(e,t,n),this},n.prototype.prev=function(e){return this.isTransition||this.gotoPanel(this.index-1,e,-1),this},n.prototype.next=function(e){return this.isTransition||this.gotoPanel(this.index+1,e,1),this},n.prototype.reflow=function(e){return this.transition.reflow.call(this,{timing:s.default.REFLOW_METHOD,data:e}),this},n.prototype.isFirst=function(){return this._isFirst(this.index)},n.prototype.isLast=function(){return this._isLast(this.index)},n.prototype.marker=function(e,t){var n=this,i=$(`
    `);t||=r.default.PANEL_CHANGE_END;for(var a=0,o=this.length;a`);s.appendTo(i),this.panels.item(a).$el.filter(this.config.showOnlyOnce).length&&s.addClass(this.config.showOnlyOnce).hide()}var c=i.find(`li`);return this.on(t,function(e){c.removeClass(n.config.currentClass),c.eq(e.data.to).addClass(n.config.currentClass)}),c.eq(this.config.startIndex).addClass(this.config.currentClass),c.on(`click`,function(t){n.gotoPanel($(t.target).index(),e),t.preventDefault()}),i},n.prototype.marked=function(e,t){var n=this,i=$.extend({type:`li`,duration:null},t),a=e[0].nodeName,o=``+i.type;(a===`UL`||a===`OL`)&&(o=`li`);var s;switch(o.toLowerCase()){case`li`:case`list`:case`ls`:case`ul`:case`ol`:s=`li`;break;case`i`:case`in`:case`inline`:case`span`:s=`span`;break;default:s=`div`}for(var c=$(`<`+s+` />`),l=0,u=this.length;l`+s);f.eq(this.config.startIndex).addClass(this.config.currentClass),this.on(r.default.PANEL_CHANGE_END,function(e){f.removeClass(n.config.currentClass),f.eq(e.data.index).addClass(n.config.currentClass)}),f.on(`click`,function(e){n.gotoPanel($(e.target).index(),i.duration),e.preventDefault()})},n.prototype.controller=function(e,t){var n=this,i=$.extend({prev:`.prev`,next:`.next`,duration:null,ifFirstClass:`is-first`,ifLastClass:`is-last`,ifIgnoreClass:`is-ignore`},t),a=i.prev,o=i.next;$(a),$(o),e.on(`click`,a,function(e){n.prev(i.duration),e.preventDefault()}),e.on(`click`,o,function(e){n.next(i.duration),e.preventDefault()});var s=function(){n.isFirst()?e.addClass(i.ifFirstClass):e.removeClass(i.ifFirstClass),n.isLast()?e.addClass(i.ifLastClass):e.removeClass(i.ifLastClass),n._ignoreIndexes[n.index]?e.addClass(i.ifIgnoreClass):e.removeClass(i.ifIgnoreClass)};this.on(r.default.PANEL_CHANGE_END,s),s()},n.prototype.ctrl=function(e,t){this.controller(e,t)},n.prototype.transitionTo=function(e,t,n,r,i){var a=this;n===void 0&&(n=0),i===void 0&&(i=!1),this.before();var o=r&&$.isNumeric(r)?r:this._optimizeVector(e,n),s=this._optimizeCounter(this.index+o,e);if(i){if(this._ignoreIndexes[s]&&this._times[s]>=1)return this.progressIndex===s?this._finaly():(this.progressIndex=s,this.transitionTo(e+n,t,0,o+n,i)),this;this.index===s&&(o=0)}else{for(var c=0;this._ignoreIndexes[s]&&this._times[s]>=1&&c++<50;){if(o=r&&$.isNumeric(r)?r:this._optimizeVector(s+n,n),s=this._optimizeCounter(this.index+o,s+n),this.progressIndex===s)return this._finaly(),this;this.progressIndex=s}if(this.index===s)return this._finaly(),this}this.duration=t||this.config.duration,this.vector=o,this.from=this.index,this.to=s,this.progressIndex=s,this.config.delayWhenFire?(clearTimeout(this._delayTimer),this._delayTimer=setTimeout(function(){a._fire()},this.config.delayWhenFire)):this._fire();var l=this.animation.promise();return l.done(function(){a._done()}),l.fail(function(){a._fail()}),this},n.prototype.before=function(){this.transition.before.call(this),this.panels.resetCurrent(this.config.currentClass),this.trigger(r.default.PANEL_CHANGE_START_BEFORE,this._getState())},n.prototype._optimizeVector=function(e,t){var n=(e+this.length)%this.length,r=Math.abs(this.index-n),a,o=this.index=1;)t+=1;return e===t},n.prototype._isLast=function(e){for(var t=this.length-1;this._ignoreIndexes[t]&&this._times[t]>=1;)--t;return e===t},n.prototype._resizeable=function(){var e=this,t=300,n,r=!1;$(window).on(`resize`,function(i){r||(r=!0,e._resizeStart()),clearTimeout(n),e._resize(),n=setTimeout(function(){e._resizeEnd(),r=!1},t)})},n.prototype._getState=function(){return{index:this.index,stage:this.stage,container:this.container,panel:this.panels.item(this.index),panels:this.panels,stageWidth:this.stageWidth,panelWidth:this.panelWidth,length:this.length,from:this.from,to:this.to,vector:this.vector,isTransition:this.isTransition,isPaused:this.isPaused}},n.prototype._load=function(){this.transition.reflow.call(this,{timing:s.default.LOAD})},n.prototype._init=function(){var e=this;this._times[this.config.startIndex]=1,this.panels.each(function(t,n){n.$el.filter(e.config.showOnlyOnce).length?e._ignoreIndexes[t]=!0:e._ignoreIndexes[t]=!1}),this.transition.init.call(this),this.transition.reflow.call(this,{timing:s.default.INIT})},n.prototype._initFinished=function(){this.trigger(r.default.INIT,this._getState())},n.prototype._silent=function(){this.transition.silent.call(this),this.transition.reflow.call(this,{timing:s.default.TRANSITION_END}),this.panels.setCurrent(this.index,this.config.currentClass)},n.prototype._before=function(){this.before()},n.prototype._fire=function(){this.isTransition=!0,this.trigger(r.default.PANEL_CHANGE_START,this._getState()),this.transition.fire.call(this)},n.prototype._cancel=function(){this.transition.cancel.call(this)},n.prototype._done=function(){this.index=this.to,this.progressIndex=this.to,this.isTransition=!1,this._after(),this._silent(),this.trigger(r.default.PANEL_CHANGE_END,this._getState()),this._times[this.to]=this._times[this.to]+1||1,this._finaly()},n.prototype._after=function(){this.transition.after.call(this)},n.prototype._fail=function(){this.stop(),this._cancel(),this.isTransition=!1,this.trigger(r.default.PANEL_CHANGE_CANCEL,this._getState()),this._finaly()},n.prototype._finaly=function(){this.config.auto?this.repeat===c.default.NONE&&this.isLast()?this.stop():this.play():this.stop()},n.prototype._resize=function(){this.transition.reflow.call(this,{timing:s.default.RESIZE})},n.prototype._resizeStart=function(){this.transition.reflow.call(this,{timing:s.default.RESIZE_START}),this.trigger(r.default.RESIZE_START,this._getState()),this.animation&&this.isTransition&&this.freeze()},n.prototype._resizeEnd=function(){this.transition.reflow.call(this,{timing:s.default.RESIZE_END}),this.trigger(r.default.RESIZE_END,this._getState()),this.isPaused&&this.config.auto&&this.gotoPanel(this.to)},n}(n.default)}));p(),g();var T=l(w(),1);function E(e,t){let n=$(t),r=n.find(`.bgt-gallery`),i=new T.default(r,{transition:r.attr(`data-gallery-effect`),container:`.bgt-gallery__group`,panels:`.bgt-gallery__item`,dragBlockVertical:!0,draggable:!0,swipeable:!0,duration:Number.parseInt(r.attr(`data-gallery-duration`)||``,10),delay:Number.parseInt(r.attr(`data-gallery-delay`)||``,10),auto:r.attr(`data-gallery-autoplay`)===`true`,repeat:`loop`}),a=i.marker();if(a.addClass(`bgt-gallery-marker`),a.appendTo(n),a.find(`li`).each((e,t)=>{let r=n.find(`.bgt-gallery__item`).eq(e).find(`img`).prop(`src`);r&&(t.style.backgroundImage=`url("${r}")`)}),r.attr(`data-gallery-ctrl`)===`true`){let e=$(``);e.appendTo(r),i.controller(e,{prev:`.bgt-gallery-ctrl__prev`,next:`.bgt-gallery-ctrl__next`,ifFirstClass:`bgt-gallery-ctrl__state-is-first`,ifLastClass:`bgt-gallery-ctrl__state-is-last`,ifIgnoreClass:`bgt-gallery-ctrl__state-is-ignore`})}}var D=`bge-map-`,O=0;async function k(e){if(!window?.google?.maps)return;google.maps.marker=await google.maps.importLibrary(`marker`);let t=$(e),n=+t.data(`lat`)||35.681382,r=+t.data(`lng`)||139.766084,i=+t.data(`zoom`)||14,a=new google.maps.LatLng(n,r),o={mapId:`${D}${O++}`,zoom:i,scrollwheel:!1,center:a,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.HYBRID,google.maps.MapTypeId.ROADMAP]}},s=new google.maps.Map(e,o);new google.maps.marker.AdvancedMarkerElement({position:a,map:s})}function A(e){e.dataset.id&&new j(e)}var j=class e{constructor(t){this.isEmbedded=!1,this.player=null;let n=$(t);this.movieId=n.data(`id`),this.title=n.data(`title`)||`YouTube動画`;let r={version:3,rel:0,autoplay:0,controls:1,disablekb:1,iv_load_policy:3,loop:0,modestbranding:1,showinfo:1,wmode:`transparent`,enablejsapi:1};this.src=e.getURI(this.movieId,r),this.playerDomId=this.movieId+`-Player`,this.#t(t),this.#n()}#e(e){this.player=new YT.Player(e,{videoId:this.movieId})}#t(e){let t=$(`